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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2cd644986651d15bbbf3c199b30b098fe1984eba | 77 | py | Python | tests/__init__.py | quentinf00/pytorch_memory_logging | fbe4db47d66fbae52b98d5f73838e8461bab29a3 | [
"MIT"
] | null | null | null | tests/__init__.py | quentinf00/pytorch_memory_logging | fbe4db47d66fbae52b98d5f73838e8461bab29a3 | [
"MIT"
] | null | null | null | tests/__init__.py | quentinf00/pytorch_memory_logging | fbe4db47d66fbae52b98d5f73838e8461bab29a3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for pytorch_memory_logging."""
| 19.25 | 51 | 0.649351 | 10 | 77 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.142857 | 77 | 3 | 52 | 25.666667 | 0.712121 | 0.883117 | 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 |
2cd8d58fc520c8fcd95d780ac73e4734447db368 | 322 | py | Python | zopyx/smartprintng/plone/interfaces.py | zopyx/zopyx.smartprintng.plone | bacc8a2f44b6a2d2e8dba4a82364915d0954f1e5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | zopyx/smartprintng/plone/interfaces.py | zopyx/zopyx.smartprintng.plone | bacc8a2f44b6a2d2e8dba4a82364915d0954f1e5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-02-01T12:53:25.000Z | 2016-02-01T12:53:26.000Z | zopyx/smartprintng/plone/interfaces.py | zopyx/zopyx.smartprintng.plone | bacc8a2f44b6a2d2e8dba4a82364915d0954f1e5 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | from zope.interface import Interface
class IPPContent(Interface):
""" Marker interface for Plone content to be considered as
content for Produce & Publish.
"""
class IArchiveFolder(Interface):
""" Marker interface for folder with archived content that will
be ignored inside @@asHTML
"""
| 26.833333 | 67 | 0.701863 | 37 | 322 | 6.108108 | 0.675676 | 0.132743 | 0.212389 | 0.238938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226708 | 322 | 11 | 68 | 29.272727 | 0.907631 | 0.534161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2cf55ffa8e75a0ddbf2213805a230733bf736a02 | 187 | py | Python | Src/Clova/vendor/future/moves/urllib/robotparser.py | NishiYusuke/Line-boot-award | d77f26b9109f3cba45be5906bcb6c9314974cd92 | [
"MIT"
] | 2 | 2020-08-17T07:52:48.000Z | 2020-12-18T16:39:32.000Z | Src/Clova/vendor/future/moves/urllib/robotparser.py | NishiYusuke/Line-boot-award | d77f26b9109f3cba45be5906bcb6c9314974cd92 | [
"MIT"
] | 5 | 2020-12-15T23:40:14.000Z | 2022-02-23T15:43:18.000Z | Src/Clova/vendor/future/moves/urllib/robotparser.py | NishiYusuke/Line-boot-award | d77f26b9109f3cba45be5906bcb6c9314974cd92 | [
"MIT"
] | 4 | 2019-05-16T09:57:33.000Z | 2021-07-14T12:31:21.000Z | from __future__ import absolute_import
from future.utils import PY3
if PY3:
from urllib.robotparser import *
else:
__future_module__ = True
from robotparser import *
| 20.777778 | 39 | 0.73262 | 23 | 187 | 5.521739 | 0.521739 | 0.15748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.229947 | 187 | 8 | 40 | 23.375 | 0.868056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 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 |
fa04581904e132622813dbfef6ec040212d90c9b | 178 | py | Python | parcelhubPOS/wsgi.py | ngcw/parcelhubpos | 25404f9e944fd48fc8b19504d3e19e3beaa3e801 | [
"MIT"
] | null | null | null | parcelhubPOS/wsgi.py | ngcw/parcelhubpos | 25404f9e944fd48fc8b19504d3e19e3beaa3e801 | [
"MIT"
] | null | null | null | parcelhubPOS/wsgi.py | ngcw/parcelhubpos | 25404f9e944fd48fc8b19504d3e19e3beaa3e801 | [
"MIT"
] | null | null | null | from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = get_wsgi_application()
application = DjangoWhiteNoise(application) | 35.6 | 49 | 0.870787 | 20 | 178 | 7.55 | 0.45 | 0.092715 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078652 | 178 | 5 | 50 | 35.6 | 0.920732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fa615c46655e06417b1966bed033398bc9170b6e | 88 | py | Python | scripts/test/test_nuke.py | varshar16/teuthology | 321319b12ea4ff9b63c7655015a3156de2c3b279 | [
"MIT"
] | 117 | 2015-03-24T17:30:44.000Z | 2022-03-27T13:29:55.000Z | scripts/test/test_nuke.py | varshar16/teuthology | 321319b12ea4ff9b63c7655015a3156de2c3b279 | [
"MIT"
] | 1,014 | 2015-01-05T21:33:17.000Z | 2022-03-31T13:10:09.000Z | scripts/test/test_nuke.py | varshar16/teuthology | 321319b12ea4ff9b63c7655015a3156de2c3b279 | [
"MIT"
] | 237 | 2015-01-04T03:37:42.000Z | 2022-03-31T16:53:19.000Z | from script import Script
class TestNuke(Script):
script_name = 'teuthology-nuke'
| 14.666667 | 35 | 0.75 | 11 | 88 | 5.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 88 | 5 | 36 | 17.6 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.170455 | 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 |
d718691181a6fbe522c85015da3f3dc8e4a813c1 | 200 | py | Python | memberaudit/apps.py | buahaha/aa-memberaudit | 3824fd5dec06631f7b54caa0248c2f6dcb08636a | [
"MIT"
] | null | null | null | memberaudit/apps.py | buahaha/aa-memberaudit | 3824fd5dec06631f7b54caa0248c2f6dcb08636a | [
"MIT"
] | null | null | null | memberaudit/apps.py | buahaha/aa-memberaudit | 3824fd5dec06631f7b54caa0248c2f6dcb08636a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from . import __version__
class MemberAuditConfig(AppConfig):
name = "memberaudit"
label = "memberaudit"
verbose_name = f"Member Audit v{__version__}"
| 20 | 49 | 0.74 | 22 | 200 | 6.318182 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 200 | 9 | 50 | 22.222222 | 0.847561 | 0 | 0 | 0 | 0 | 0 | 0.245 | 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 |
d72d61769adf546fe9bfa9c8f2c11b1287b5c786 | 156 | py | Python | Pacotes/aula13.py | TonyRio/Python-Exercicios | 8a72d1b12418c6485794dae184425df0daf098bb | [
"MIT"
] | null | null | null | Pacotes/aula13.py | TonyRio/Python-Exercicios | 8a72d1b12418c6485794dae184425df0daf098bb | [
"MIT"
] | null | null | null | Pacotes/aula13.py | TonyRio/Python-Exercicios | 8a72d1b12418c6485794dae184425df0daf098bb | [
"MIT"
] | null | null | null | a= int(input('digite o numero inicial : '))
b= int(input('digite o numero final: '))
for c in range(a, b+1):
print('{} Natan'.format(c+1))
print('FIM')
| 26 | 43 | 0.615385 | 28 | 156 | 3.428571 | 0.642857 | 0.166667 | 0.291667 | 0.3125 | 0.4375 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.160256 | 156 | 5 | 44 | 31.2 | 0.717557 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d732bb28e18a6c9061e6eef3d22187eeadc6cc7d | 2,134 | py | Python | formation.py | Alberdi/rogueforce | 0eccee6132d92173624e31a4d2520ea81b6327d6 | [
"ISC"
] | null | null | null | formation.py | Alberdi/rogueforce | 0eccee6132d92173624e31a4d2520ea81b6327d6 | [
"ISC"
] | null | null | null | formation.py | Alberdi/rogueforce | 0eccee6132d92173624e31a4d2520ea81b6327d6 | [
"ISC"
] | null | null | null | class Formation(object):
def __init__(self, general):
self.general = general
def place_minions(self): pass
def mirror(self, x, y):
return (self.general.bg.width - x - 1, self.general.bg.height - y - 1) if self.general.side else (x, y)
class FlyingWedge(Formation):
def __init__(self, general, increment=1):
super(FlyingWedge, self).__init__(general)
self.increment = increment
def place_minions(self):
n = self.general.minions_alive
for i in range(14, 3, -1):
offset_y = 0
for x in range(i, 3, -1):
for j in range(0, self.increment + 1):
if n <= 0: return
minion_placed = self.general.minion.clone(*self.mirror(x, self.general.y + offset_y))
if minion_placed is not None:
self.general.bg.minions.append(minion_placed)
n -= 1
offset_y = abs(offset_y)+1 if j%2 else -offset_y
class InvertedWedge(Formation):
def __init__(self, general, increment=1):
super(InvertedWedge, self).__init__(general)
self.increment = increment
def place_minions(self):
n = self.general.minions_alive
for i in range(4, 15):
offset_y = 0
for x in range(i, 15):
for j in range(0, self.increment + 1):
if n <= 0: return
minion_placed = self.general.minion.clone(*self.mirror(x, self.general.y + offset_y))
if minion_placed is not None:
self.general.bg.minions.append(minion_placed)
n -= 1
offset_y = abs(offset_y)+1 if j%2 else -offset_y
class Rows(Formation):
def __init__(self, general, rows=21):
super(Rows, self).__init__(general)
self.rows = rows
def place_minions(self):
n = self.general.minions_alive
for x in range(5, 15):
offset_y = 0
r = self.rows
while r > 0:
if n <= 0: return
minion_placed = self.general.minion.clone(*self.mirror(x, self.general.y + offset_y))
if minion_placed is not None:
self.general.bg.minions.append(minion_placed)
n -= 1
offset_y = abs(offset_y)+1 if r%2 or not self.rows%2 else -offset_y
r -= 1
| 32.830769 | 107 | 0.625586 | 323 | 2,134 | 3.950464 | 0.164087 | 0.172414 | 0.05094 | 0.056426 | 0.73511 | 0.71395 | 0.71395 | 0.71395 | 0.616771 | 0.616771 | 0 | 0.026549 | 0.258669 | 2,134 | 64 | 108 | 33.34375 | 0.780025 | 0 | 0 | 0.581818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0.018182 | 0 | 0.018182 | 0.254545 | 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 |
ad1ac0ca29a253792d1b206f5750af0cbdf205f0 | 35 | py | Python | Company_Con/M-SOLUTIONS/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | Company_Con/M-SOLUTIONS/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | Company_Con/M-SOLUTIONS/A.py | yosho-18/AtCoder | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | [
"MIT"
] | null | null | null | n = int(input())
print(180*(n - 2)) | 17.5 | 18 | 0.542857 | 7 | 35 | 2.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0.142857 | 35 | 2 | 18 | 17.5 | 0.5 | 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 |
ad1c15817a5cc14a8ef3e194a156960e885c815b | 41 | py | Python | Shivani/Address.py | 63Shivani/Python-BootCamp | 2ed0ef95af35d35c0602031670fecfc92d8cea0a | [
"MIT"
] | null | null | null | Shivani/Address.py | 63Shivani/Python-BootCamp | 2ed0ef95af35d35c0602031670fecfc92d8cea0a | [
"MIT"
] | null | null | null | Shivani/Address.py | 63Shivani/Python-BootCamp | 2ed0ef95af35d35c0602031670fecfc92d8cea0a | [
"MIT"
] | null | null | null | a=input("enter your address\n")
print(a)
| 13.666667 | 31 | 0.707317 | 8 | 41 | 3.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 41 | 2 | 32 | 20.5 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.487805 | 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 |
ad2aa94545858ef35235841a7ec80f1d9a7b5271 | 365 | py | Python | __init__.py | wf8yip/campus-event-finder-skill | 3c20809d8aadd6ac8dee6b8c6d34a43c16e31048 | [
"MIT"
] | null | null | null | __init__.py | wf8yip/campus-event-finder-skill | 3c20809d8aadd6ac8dee6b8c6d34a43c16e31048 | [
"MIT"
] | null | null | null | __init__.py | wf8yip/campus-event-finder-skill | 3c20809d8aadd6ac8dee6b8c6d34a43c16e31048 | [
"MIT"
] | null | null | null | from mycroft import MycroftSkill, intent_file_handler
class CampusEventFinder(MycroftSkill):
def __init__(self):
MycroftSkill.__init__(self)
@intent_file_handler('finder.event.campus.intent')
def handle_finder_event_campus(self, message):
self.speak_dialog('finder.event.campus')
def create_skill():
return CampusEventFinder()
| 22.8125 | 54 | 0.750685 | 41 | 365 | 6.268293 | 0.536585 | 0.128405 | 0.198444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156164 | 365 | 15 | 55 | 24.333333 | 0.834416 | 0 | 0 | 0 | 0 | 0 | 0.123626 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 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 |
ad4c6a319d286c3ea612ef6083baf6d055013e2f | 240 | py | Python | pychess/ic/managers/ICCNewsManager.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | null | null | null | pychess/ic/managers/ICCNewsManager.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | 40 | 2019-05-04T04:46:31.000Z | 2022-02-26T10:37:51.000Z | pychess/ic/managers/ICCNewsManager.py | jacobchrismarsh/chess_senior_project | 7797b1f96fda5d4d268224a21e54a744d17e7b81 | [
"MIT"
] | null | null | null | from gi.repository import GObject
from pychess.ic.managers.NewsManager import NewsManager
class ICCNewsManager(NewsManager):
def __init__(self, connection):
GObject.GObject.__init__(self)
self.connection = connection
| 24 | 55 | 0.7625 | 26 | 240 | 6.730769 | 0.576923 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 240 | 9 | 56 | 26.666667 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
ad6237d1c89d7154db19caf7b18a02b9512de4c4 | 1,090 | py | Python | quite/gui/interfaces/ability_interfaces/container_ability_interface.py | KD-Group/quite | 49f62a182d5c49bc812290e189a8e05d630bd6ab | [
"MIT"
] | 4 | 2019-04-08T04:13:33.000Z | 2020-12-25T13:15:10.000Z | quite/gui/interfaces/ability_interfaces/container_ability_interface.py | KD-Group/quite | 49f62a182d5c49bc812290e189a8e05d630bd6ab | [
"MIT"
] | 2 | 2018-05-28T02:59:14.000Z | 2018-06-27T13:44:01.000Z | quite/gui/interfaces/ability_interfaces/container_ability_interface.py | SF-Zhou/quite | 49f62a182d5c49bc812290e189a8e05d630bd6ab | [
"MIT"
] | 3 | 2018-01-03T11:29:57.000Z | 2018-03-12T00:34:21.000Z | from .. import BaseInterface
from ... import run_deferred_function
from PySide.QtCore import QSize
class ContainerAbilityInterface(BaseInterface):
def set_central_widget(self, w, **kwargs):
return run_deferred_function('set_central_widget', self, w, **kwargs)
def set_square_widget(self, w, spacing=0):
return run_deferred_function('set_square_widget', self, w, spacing)
def set_layout_spacing(self, spacing):
return run_deferred_function('set_layout_spacing', self, spacing)
def export_to_image(self, filename: str, export_size=QSize(1060, 730)):
if filename.lower().endswith('.pdf'):
return self.export_to_pdf(filename, export_size)
else:
return self.export_to_bitmap(filename, export_size)
def export_to_pdf(self, filename, export_size=QSize(1060, 730)):
return run_deferred_function('export_to_pdf', self, filename, export_size)
def export_to_bitmap(self, filename, export_size=QSize(1060, 730)):
return run_deferred_function('export_to_bitmap', self, filename, export_size)
| 40.37037 | 85 | 0.730275 | 144 | 1,090 | 5.215278 | 0.256944 | 0.074567 | 0.151798 | 0.166445 | 0.659121 | 0.458056 | 0.28229 | 0.178429 | 0.178429 | 0.178429 | 0 | 0.024309 | 0.169725 | 1,090 | 26 | 86 | 41.923077 | 0.805525 | 0 | 0 | 0 | 0 | 0 | 0.078899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.157895 | 0.263158 | 0.894737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a8def80a1f7dc89470e356529697734c7e2d0d74 | 11,103 | py | Python | 2021/day1/day1.py | Deph0/adventofcode | 79433579954d177d886cfb550b3e03d2e3ca21dc | [
"MIT"
] | null | null | null | 2021/day1/day1.py | Deph0/adventofcode | 79433579954d177d886cfb550b3e03d2e3ca21dc | [
"MIT"
] | 1 | 2021-05-26T20:36:27.000Z | 2021-05-26T21:42:06.000Z | 2021/day1/day1.py | Deph0/adventofcode | 79433579954d177d886cfb550b3e03d2e3ca21dc | [
"MIT"
] | null | null | null | def input():
#return [199,200,208,210,200,207,240,269,260,263] # example 1
return [170,176,179,180,195,197,203,211,212,200,225,227,235,250,263,262,265,266,267,261,269,270,284,289,295,265,269,271,273,274,297,302,301,279,304,329,330,347,352,370,377,382,388,391,393,386,387,390,399,387,395,400,418,428,429,443,444,449,460,464,466,467,480,502,504,505,502,497,499,503,513,521,500,537,530,534,535,544,545,548,549,556,557,565,594,595,599,597,611,612,620,622,626,641,639,638,639,641,645,656,657,658,674,701,702,709,716,725,726,734,740,743,735,753,768,779,776,775,777,778,791,795,806,826,833,837,828,839,838,822,823,827,847,857,866,867,868,871,872,877,879,882,888,885,887,888,891,890,899,898,900,901,910,897,880,857,858,857,860,866,882,878,875,874,873,880,881,876,877,879,880,886,883,884,874,882,889,890,886,880,885,887,894,908,907,912,916,917,916,917,918,910,912,930,928,949,950,968,969,968,975,980,984,996,1007,1001,1003,1001,1002,1003,978,977,992,1002,1003,1004,1020,1022,1027,1033,1036,1044,1054,1056,1059,1057,1058,1057,1035,1037,1036,1037,1038,1069,1108,1106,1098,1101,1102,1103,1127,1128,1132,1129,1144,1147,1148,1151,1160,1145,1146,1161,1164,1165,1166,1165,1169,1168,1169,1167,1175,1170,1174,1169,1168,1166,1161,1162,1180,1182,1187,1189,1190,1193,1206,1232,1233,1235,1236,1237,1230,1231,1237,1229,1228,1229,1227,1228,1226,1228,1231,1232,1230,1231,1240,1248,1252,1251,1271,1285,1294,1273,1266,1267,1270,1256,1264,1266,1274,1276,1270,1280,1282,1301,1303,1306,1310,1317,1316,1332,1340,1332,1335,1333,1355,1358,1352,1353,1341,1364,1343,1339,1335,1346,1353,1357,1358,1353,1328,1345,1348,1353,1354,1332,1342,1346,1354,1365,1366,1372,1373,1381,1377,1390,1411,1412,1422,1421,1419,1420,1406,1405,1373,1375,1376,1391,1407,1409,1410,1411,1420,1425,1430,1426,1432,1431,1446,1448,1428,1438,1436,1437,1438,1456,1458,1456,1445,1444,1453,1419,1420,1438,1448,1450,1444,1443,1444,1448,1450,1453,1451,1457,1455,1451,1455,1453,1454,1456,1457,1462,1466,1478,1484,1493,1489,1490,1484,1483,1481,1486,1488,1495,1498,1510,1505,1513,1514,1546,1567,1589,1603,1604,1610,1630,1627,1629,1621,1622,1631,1632,1639,1640,1638,1633,1617,1606,1607,1609,1613,1610,1618,1610,1599,1584,1593,1594,1599,1598,1597,1599,1618,1622,1626,1627,1640,1635,1655,1666,1683,1685,1686,1688,1690,1689,1686,1687,1701,1711,1710,1713,1747,1753,1754,1758,1759,1764,1751,1752,1743,1769,1767,1773,1777,1780,1779,1767,1739,1741,1739,1736,1738,1746,1748,1751,1755,1763,1765,1757,1758,1759,1760,1766,1776,1777,1772,1770,1773,1774,1782,1775,1776,1785,1787,1790,1788,1785,1784,1783,1780,1777,1779,1813,1814,1813,1816,1817,1819,1827,1828,1829,1826,1827,1824,1814,1831,1821,1826,1827,1825,1835,1865,1867,1868,1865,1870,1868,1867,1884,1885,1913,1903,1913,1917,1918,1920,1921,1918,1922,1908,1918,1948,1954,1956,1962,1966,1968,1967,1968,1957,1958,1969,1975,1976,1989,1988,1977,1999,2005,1996,1994,1996,1997,2022,2044,2050,2052,2044,2030,2031,2040,2041,2042,2053,2054,2050,2055,2057,2083,2089,2091,2090,2099,2103,2102,2103,2107,2130,2140,2155,2156,2157,2158,2178,2184,2183,2185,2188,2194,2198,2208,2215,2200,2208,2210,2212,2217,2218,2215,2217,2218,2216,2229,2236,2237,2225,2232,2223,2216,2239,2243,2260,2271,2274,2275,2282,2283,2270,2255,2258,2257,2260,2261,2262,2269,2268,2267,2276,2278,2283,2321,2322,2326,2334,2335,2336,2343,2351,2350,2356,2347,2344,2348,2350,2362,2356,2346,2324,2325,2327,2325,2329,2333,2334,2333,2334,2323,2325,2323,2350,2320,2322,2319,2318,2317,2326,2349,2353,2348,2347,2364,2391,2399,2400,2403,2404,2398,2414,2419,2421,2423,2430,2404,2390,2429,2416,2413,2437,2438,2440,2442,2431,2430,2432,2435,2441,2442,2445,2446,2453,2452,2458,2457,2439,2445,2446,2465,2467,2466,2467,2469,2467,2471,2470,2460,2461,2481,2505,2506,2510,2524,2531,2533,2565,2568,2576,2577,2585,2593,2594,2617,2622,2642,2652,2654,2663,2666,2667,2676,2693,2704,2718,2721,2722,2734,2723,2725,2723,2724,2729,2728,2724,2725,2726,2749,2750,2762,2746,2747,2760,2766,2768,2767,2772,2775,2776,2783,2792,2803,2804,2807,2829,2826,2827,2825,2828,2827,2828,2836,2839,2843,2851,2850,2851,2854,2855,2852,2862,2868,2883,2897,2903,2904,2911,2912,2896,2904,2903,2905,2904,2920,2916,2918,2917,2926,2946,2947,2955,2956,2957,2960,2954,2955,2959,2967,2973,2977,3018,3017,3023,3029,3030,3020,3049,3052,3045,3056,3065,3066,3075,3087,3112,3118,3117,3131,3177,3173,3171,3190,3210,3208,3227,3228,3246,3239,3247,3240,3239,3237,3234,3248,3247,3249,3248,3255,3227,3233,3239,3245,3246,3228,3227,3225,3236,3233,3235,3246,3259,3265,3268,3257,3255,3256,3259,3260,3259,3264,3266,3261,3266,3226,3238,3218,3220,3200,3226,3219,3230,3229,3271,3275,3276,3277,3290,3289,3291,3286,3287,3288,3292,3290,3294,3267,3274,3276,3289,3286,3295,3304,3299,3310,3311,3318,3332,3323,3325,3336,3333,3334,3337,3335,3336,3337,3329,3324,3285,3293,3306,3304,3315,3324,3331,3335,3330,3343,3349,3350,3349,3356,3355,3333,3336,3337,3362,3351,3356,3353,3352,3356,3357,3359,3361,3366,3371,3378,3380,3384,3380,3382,3389,3388,3387,3402,3426,3421,3416,3414,3415,3417,3421,3424,3427,3428,3440,3441,3449,3450,3425,3424,3423,3424,3425,3435,3441,3460,3459,3451,3460,3477,3479,3481,3471,3476,3482,3479,3483,3472,3486,3522,3524,3526,3527,3529,3509,3508,3519,3514,3515,3521,3519,3520,3533,3535,3536,3537,3539,3547,3546,3555,3541,3540,3541,3542,3544,3549,3550,3549,3546,3558,3559,3566,3575,3580,3599,3640,3641,3642,3656,3660,3662,3661,3646,3644,3656,3629,3628,3630,3631,3634,3640,3639,3644,3645,3646,3652,3650,3649,3669,3679,3671,3688,3666,3667,3668,3666,3679,3680,3683,3686,3687,3690,3691,3692,3694,3723,3719,3730,3732,3745,3769,3775,3777,3781,3788,3794,3803,3798,3804,3803,3816,3819,3822,3842,3852,3855,3893,3892,3893,3898,3905,3904,3917,3925,3923,3887,3888,3911,3919,3922,3930,3935,3933,3951,3952,3953,3958,3969,3968,3979,3994,4005,4004,4011,4025,4027,4034,4040,4041,4034,4032,4033,4025,4024,4025,4023,4026,4035,4058,4062,4065,4088,4103,4102,4118,4126,4130,4154,4153,4157,4177,4176,4185,4188,4212,4215,4224,4234,4236,4244,4245,4240,4248,4255,4257,4264,4254,4263,4262,4269,4275,4284,4285,4290,4293,4294,4311,4304,4305,4290,4297,4300,4302,4305,4312,4338,4339,4367,4362,4384,4387,4395,4394,4407,4421,4432,4436,4432,4436,4439,4465,4474,4478,4479,4476,4480,4471,4491,4495,4499,4500,4526,4528,4538,4537,4538,4541,4548,4554,4556,4557,4590,4595,4604,4592,4601,4606,4627,4646,4636,4632,4633,4634,4632,4636,4650,4666,4676,4673,4677,4649,4650,4654,4667,4675,4676,4681,4692,4687,4689,4687,4666,4658,4661,4663,4670,4671,4677,4674,4675,4676,4677,4681,4683,4686,4690,4710,4713,4716,4704,4700,4678,4679,4681,4682,4681,4683,4682,4680,4682,4691,4694,4693,4691,4694,4709,4711,4710,4711,4713,4715,4716,4717,4716,4723,4724,4725,4743,4747,4757,4758,4781,4783,4782,4781,4791,4806,4810,4809,4826,4825,4830,4862,4861,4864,4866,4860,4858,4860,4861,4862,4861,4862,4868,4876,4873,4887,4902,4905,4904,4906,4901,4903,4910,4912,4914,4913,4916,4930,4931,4930,4931,4962,4963,4967,4990,4991,4990,5003,5045,5046,5075,5102,5101,5088,5079,5096,5103,5105,5103,5101,5094,5095,5114,5122,5125,5122,5125,5133,5140,5146,5152,5150,5148,5149,5168,5174,5172,5164,5166,5188,5198,5203,5202,5221,5228,5232,5237,5252,5253,5264,5262,5283,5288,5290,5292,5291,5309,5310,5320,5324,5328,5332,5333,5354,5358,5364,5374,5394,5395,5407,5408,5412,5426,5436,5437,5440,5441,5443,5445,5449,5454,5455,5456,5460,5459,5476,5473,5475,5479,5472,5475,5476,5494,5502,5503,5511,5526,5553,5558,5562,5564,5555,5558,5570,5542,5544,5517,5515,5521,5525,5542,5543,5553,5580,5581,5582,5581,5596,5597,5606,5607,5609,5610,5612,5600,5601,5606,5607,5598,5600,5598,5597,5596,5597,5624,5625,5626,5633,5603,5593,5594,5595,5594,5581,5598,5601,5618,5616,5614,5618,5624,5627,5634,5635,5639,5649,5646,5623,5622,5625,5620,5622,5604,5603,5608,5606,5620,5649,5646,5648,5640,5644,5645,5647,5652,5649,5648,5674,5679,5687,5686,5694,5691,5701,5709,5707,5709,5711,5715,5713,5722,5718,5719,5720,5722,5701,5704,5693,5708,5707,5699,5702,5703,5704,5705,5718,5715,5731,5745,5746,5747,5754,5757,5761,5755,5752,5763,5762,5776,5775,5788,5769,5780,5772,5779,5801,5791,5793,5823,5805,5791,5796,5800,5798,5799,5806,5809,5812,5816,5827,5829,5835,5839,5842,5843,5861,5862,5886,5888,5890,5898,5899,5900,5894,5875,5887,5891,5892,5904,5895,5896,5905,5906,5913,5907,5914,5918,5926,5929,5930,5935,5941,5926,5920,5916,5917,5922,5925,5931,5933,5932,5931,5938,5939,5936,5929,5930,5931,5937,5944,5962,5977,5979,5982,5983,5985,5990,5995,5992,5973,5976,5979,5987,5993,5994,5997,6010,5992,6009,6031,6030,6031,6037,6040,6036,6038,6031,6027,6019,6023,6024,6025,6043,6057,6060,6062,6061,6063,6080,6092,6107,6108,6110,6113,6123,6132,6113,6114,6135,6134,6139,6140,6131,6141,6181,6197,6198,6199,6200,6217,6223,6247,6256,6285,6286,6281,6290,6296,6295,6286,6299,6296,6298,6299,6312,6311,6312,6313,6310,6322,6323,6331,6330,6331,6339,6340,6342,6345,6347,6352,6353,6354,6362,6375,6369,6381,6392,6395,6397,6400,6393,6375,6381,6387,6390,6397,6406,6421,6422,6423,6427,6430,6431,6434,6453,6470,6471,6480,6483,6490,6461,6465,6467,6473,6476,6492,6502,6500,6499,6493,6494,6500,6505,6507,6508,6536,6535,6551,6557,6565,6572,6570,6574,6565,6569,6568,6569,6577,6579,6580,6578,6580,6581,6578,6581,6580,6579,6580,6593,6584,6585,6597,6598,6599,6604,6596,6597,6604,6601,6602,6601,6615,6597,6598,6597,6608,6619,6623,6624,6627,6630,6631,6653,6669,6685,6688,6700,6696,6697,6705,6709,6736,6737,6734,6738,6729,6731,6739,6741,6743,6744,6755,6758,6765,6767,6766,6775,6791,6792,6757,6729,6726,6736,6737,6741,6719,6733,6734,6740,6748,6754,6769,6773,6777,6763,6767,6768,6773,6776,6777,6789,6790,6797,6794,6792,6793,6794,6792,6810,6830,6850,6851,6852,6861,6859,6882,6884,6875,6898,6905,6908,6902,6903,6888,6890,6891,6892,6901,6905,6904,6903,6907,6915,6918,6934,6921,6915,6940,6952,6953,6951,6955,6967,6968,6969,6968,6969,6983,7012,7013,7028,7026,7029,7014,7015,7014,7003,7004,7008,7013,7014,7029,7030,7059,7071,7055,7051,7053,7054,7045,7046,7032,7033,7035,7046,7029,7034,7040,7050,7035,7036,7037,7041,7045,7052,7078,7090,7100,7099,7116,7123,7142,7143,7140,7135,7136,7158,7165,7181,7179,7181]
def pt1():
prev = 0
prevInc = 0
i = input()
print("in",i)
for x in i:
if x > prev:
print("inc", prev, x)
prevInc += 1
if x < prev:
print("dec", prev, x)
if x == prev:
print("eqa", prev, x)
prev = x
print("amount of inc:", prevInc)
# 1478 - 1 (first inc from 0 doent count)
def enumerate2(xs, start=0, step=1):
for x in xs:
yield (start, x)
start += step
def pt2():
i = input()
currsum = 0
sumOfSums = []
try:
for idx, val in enumerate2(i, 3, 1):
a = i[idx-3]
b = i[idx-2]
c = i[idx-1]
sumA = a+b+c
#print(a,b,c, "Sum:", sumA)
sumOfSums.append(sumA)
except: pass
#print(sumOfSums)
prev = 0
prevInc = 0
i = list(sumOfSums)
for x in i:
if x > prev:
#print("inc", prev, x)
prevInc += 1
if x < prev:
print("dec", prev, x)
if x == prev:
print("eqa", prev, x)
prev = x
print("amount of inc:", prevInc - 1) # first inc doesnt count
# 1523
def main():
#pt1()
pt2()
main() | 182.016393 | 9,805 | 0.754661 | 2,182 | 11,103 | 3.840055 | 0.785518 | 0.004774 | 0.005013 | 0.008593 | 0.027927 | 0.024585 | 0.024585 | 0.024585 | 0.024585 | 0.024585 | 0 | 0.743563 | 0.048545 | 11,103 | 61 | 9,806 | 182.016393 | 0.049602 | 0.017653 | 0 | 0.458333 | 0 | 0 | 0.004129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0.020833 | 0 | 0.020833 | 0.125 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d11be9e47369990377c852645037c670cbb04824 | 105 | py | Python | flowchem/components/devices/Hamilton/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | 6 | 2021-12-19T11:28:03.000Z | 2022-02-10T10:33:51.000Z | flowchem/components/devices/Hamilton/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | 18 | 2021-11-22T11:19:27.000Z | 2022-03-11T14:28:28.000Z | flowchem/components/devices/Hamilton/__init__.py | cambiegroup/flowchem | f835c79c09ebc3b84c8aacdabbecede4bb9603f2 | [
"MIT"
] | null | null | null | """ Hamilton devices """
from .ML600 import ML600, HamiltonPumpIO
__all__ = ["ML600", "HamiltonPumpIO"]
| 21 | 40 | 0.714286 | 10 | 105 | 7.1 | 0.7 | 0.535211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098901 | 0.133333 | 105 | 4 | 41 | 26.25 | 0.681319 | 0.152381 | 0 | 0 | 0 | 0 | 0.234568 | 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 |
d13f36807b4fdf4465476978d5bd8aa7b4f1ab75 | 140 | py | Python | display_time.py | VaheC/Python_assigments | 9a46c19128d43fabd112983477d0dfed3639984a | [
"MIT"
] | null | null | null | display_time.py | VaheC/Python_assigments | 9a46c19128d43fabd112983477d0dfed3639984a | [
"MIT"
] | null | null | null | display_time.py | VaheC/Python_assigments | 9a46c19128d43fabd112983477d0dfed3639984a | [
"MIT"
] | null | null | null | import time
from datetime import datetime as dt
def display_time(sleep_period):
time.sleep(sleep_period)
return dt.now().time()
| 23.333333 | 35 | 0.735714 | 21 | 140 | 4.761905 | 0.571429 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 140 | 6 | 36 | 23.333333 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d1416dabccf7a5598a8998dc26509e8a28142913 | 203 | py | Python | paccmann_generator/__init__.py | PaccMann/paccmann_generator | 135cce12f29fcb5d8665fe99a64a5176067d2ab2 | [
"MIT"
] | 5 | 2019-11-04T20:33:37.000Z | 2022-01-09T11:12:35.000Z | paccmann_generator/__init__.py | PaccMann/paccmann_generator | 135cce12f29fcb5d8665fe99a64a5176067d2ab2 | [
"MIT"
] | 5 | 2020-04-01T08:16:26.000Z | 2020-11-03T08:44:51.000Z | paccmann_generator/__init__.py | PaccMann/paccmann_generator | 135cce12f29fcb5d8665fe99a64a5176067d2ab2 | [
"MIT"
] | 3 | 2020-09-08T14:05:56.000Z | 2021-06-07T18:57:39.000Z | """Initialize paccmann_generator module."""
from .reinforce_omics import ReinforceOmic # noqa
from .reinforce_proteins import ReinforceProtein # noqa
name = 'paccmann_generator'
__version__ = '0.0.2'
| 29 | 56 | 0.788177 | 23 | 203 | 6.608696 | 0.695652 | 0.223684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.118227 | 203 | 6 | 57 | 33.833333 | 0.832402 | 0.236453 | 0 | 0 | 0 | 0 | 0.155405 | 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 |
d16323934eb8d34211ee5832a32b715705d45040 | 4,420 | py | Python | fixture/Python3/expected_xml/Block4.py | exKAZUu/ParserTests | 609cfc62b70c8d04d5a2ced25a213a8d601e7011 | [
"Apache-2.0"
] | null | null | null | fixture/Python3/expected_xml/Block4.py | exKAZUu/ParserTests | 609cfc62b70c8d04d5a2ced25a213a8d601e7011 | [
"Apache-2.0"
] | null | null | null | fixture/Python3/expected_xml/Block4.py | exKAZUu/ParserTests | 609cfc62b70c8d04d5a2ced25a213a8d601e7011 | [
"Apache-2.0"
] | null | null | null | <file_input>
<stmt>
<compound_stmt>
<if_stmt>
<NAME startline="1">if</NAME>
<test>
<or_test>
<and_test>
<not_test>
<comparison>
<expr>
<xor_expr>
<and_expr>
<shift_expr>
<arith_expr>
<term>
<factor>
<power>
<atom>
<NAME startline="1">True</NAME>
</atom>
</power>
</factor>
</term>
</arith_expr>
</shift_expr>
</and_expr>
</xor_expr>
</expr>
</comparison>
</not_test>
</and_test>
</or_test>
</test>
<COLON startline="1">:</COLON>
<suite>
<NEWLINE startline="1"></NEWLINE>
<INDENT startline="2"></INDENT>
<stmt>
<simple_stmt>
<small_stmt>
<expr_stmt>
<testlist_star_expr>
<test>
<or_test>
<and_test>
<not_test>
<comparison>
<expr>
<xor_expr>
<and_expr>
<shift_expr>
<arith_expr>
<term>
<factor>
<power>
<atom>
<NAME startline="2">i</NAME>
</atom>
</power>
</factor>
</term>
</arith_expr>
</shift_expr>
</and_expr>
</xor_expr>
</expr>
</comparison>
</not_test>
</and_test>
</or_test>
</test>
</testlist_star_expr>
<EQUAL startline="2">=</EQUAL>
<testlist_star_expr>
<test>
<or_test>
<and_test>
<not_test>
<comparison>
<expr>
<xor_expr>
<and_expr>
<shift_expr>
<arith_expr>
<term>
<factor>
<power>
<atom>
<NUMBER startline="2">0</NUMBER>
</atom>
</power>
</factor>
</term>
</arith_expr>
</shift_expr>
</and_expr>
</xor_expr>
</expr>
</comparison>
</not_test>
</and_test>
</or_test>
</test>
</testlist_star_expr>
</expr_stmt>
</small_stmt>
<NEWLINE startline="2"></NEWLINE>
</simple_stmt>
</stmt>
<DEDENT startline="2"></DEDENT>
</suite>
</if_stmt>
</compound_stmt>
</stmt>
<NEWLINE startline="2"></NEWLINE>
<ENDMARKER startline="2"></ENDMARKER>
</file_input> | 37.457627 | 80 | 0.240271 | 220 | 4,420 | 4.545455 | 0.168182 | 0.08 | 0.06 | 0.039 | 0.688 | 0.632 | 0.632 | 0.632 | 0.632 | 0.632 | 0 | 0.009123 | 0.677602 | 4,420 | 118 | 81 | 37.457627 | 0.692632 | 0 | 0 | 0.79661 | 0 | 0 | 0.002714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
66fdec9037f62846b51c090c97b87563528800c3 | 171 | py | Python | Scripts/django-admin.py | akim69/blog-ar | be6ada32d0953fc8e08a772fd0a228e1a0f03346 | [
"bzip2-1.0.6"
] | null | null | null | Scripts/django-admin.py | akim69/blog-ar | be6ada32d0953fc8e08a772fd0a228e1a0f03346 | [
"bzip2-1.0.6"
] | null | null | null | Scripts/django-admin.py | akim69/blog-ar | be6ada32d0953fc8e08a772fd0a228e1a0f03346 | [
"bzip2-1.0.6"
] | null | null | null | #!d:\webapp\django_frameworks\2020\04\blogger\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 28.5 | 64 | 0.795322 | 23 | 171 | 5.391304 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.087719 | 171 | 5 | 65 | 34.2 | 0.75641 | 0.368421 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0f00ec3d881e0b58c455eda1ac165982ae00d23a | 85 | py | Python | RetrievalModels/utils/cache.py | hrwX/RetrievalModels | ed05ece5d1c66a721dcdccdf6207fb31ef675bbd | [
"MIT"
] | null | null | null | RetrievalModels/utils/cache.py | hrwX/RetrievalModels | ed05ece5d1c66a721dcdccdf6207fb31ef675bbd | [
"MIT"
] | null | null | null | RetrievalModels/utils/cache.py | hrwX/RetrievalModels | ed05ece5d1c66a721dcdccdf6207fb31ef675bbd | [
"MIT"
] | null | null | null | # Copyright (c) 2022, hrwX
# MIT License. See license.txt
class Cache(dict):
pass
| 12.142857 | 30 | 0.694118 | 13 | 85 | 4.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0.188235 | 85 | 6 | 31 | 14.166667 | 0.797101 | 0.623529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
0f014721d16ded9ac2fccd09367595b74d5e073b | 114 | py | Python | src/deep_learning/node_socket/__init__.py | nutti/DeepLearning-In-Blender | bdb870bd8ed383977f2f6c98f8a020f250affa5a | [
"MIT"
] | 10 | 2020-06-28T05:50:41.000Z | 2022-01-30T01:31:43.000Z | src/deep_learning/node_socket/socket/__init__.py | nutti/DeepLearning-In-Blender | bdb870bd8ed383977f2f6c98f8a020f250affa5a | [
"MIT"
] | null | null | null | src/deep_learning/node_socket/socket/__init__.py | nutti/DeepLearning-In-Blender | bdb870bd8ed383977f2f6c98f8a020f250affa5a | [
"MIT"
] | 1 | 2020-07-26T12:36:32.000Z | 2020-07-26T12:36:32.000Z | if "bpy" in locals():
import importlib
importlib.reload(tensor)
else:
from . import tensor
import bpy | 16.285714 | 28 | 0.684211 | 15 | 114 | 5.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22807 | 114 | 7 | 29 | 16.285714 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.026087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0f14b95096d247643500161c18ea514a9d4939ab | 50 | py | Python | helloworld.py | zhaomeng79/helloword | cc06ee3b74522eff51713c87f88165d4a19e1abc | [
"Apache-2.0"
] | null | null | null | helloworld.py | zhaomeng79/helloword | cc06ee3b74522eff51713c87f88165d4a19e1abc | [
"Apache-2.0"
] | null | null | null | helloworld.py | zhaomeng79/helloword | cc06ee3b74522eff51713c87f88165d4a19e1abc | [
"Apache-2.0"
] | null | null | null | '''The first python code'''
print 'hello,world!'
| 12.5 | 27 | 0.66 | 7 | 50 | 4.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 50 | 3 | 28 | 16.666667 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0f1a77087b565c617e297eebfcde9db6a1e6adfe | 546 | py | Python | users/migrations/0003_auto_20201023_1721.py | namanmalikk/UpCare | 43af1a3d291d4580cdf9348e9c38da4a7e41db73 | [
"Apache-2.0"
] | null | null | null | users/migrations/0003_auto_20201023_1721.py | namanmalikk/UpCare | 43af1a3d291d4580cdf9348e9c38da4a7e41db73 | [
"Apache-2.0"
] | null | null | null | users/migrations/0003_auto_20201023_1721.py | namanmalikk/UpCare | 43af1a3d291d4580cdf9348e9c38da4a7e41db73 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.10 on 2020-10-23 11:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_doctor_speciality'),
]
operations = [
migrations.RemoveField(
model_name='doctor',
name='phone',
),
migrations.RemoveField(
model_name='doctor',
name='qualification',
),
migrations.RemoveField(
model_name='patient',
name='qualification',
),
]
| 21 | 48 | 0.549451 | 48 | 546 | 6.145833 | 0.604167 | 0.213559 | 0.264407 | 0.305085 | 0.271186 | 0.271186 | 0 | 0 | 0 | 0 | 0 | 0.055402 | 0.338828 | 546 | 25 | 49 | 21.84 | 0.761773 | 0.084249 | 0 | 0.526316 | 1 | 0 | 0.154618 | 0.044177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0f220eb42c84f96ba3c092f80bba6cb808514ae0 | 162 | py | Python | timestamp.py | fbl4kd43m0n/Python | 324f6bb1255d5deab981c457864be6c9ac4a30a7 | [
"MIT"
] | 2 | 2019-01-31T14:43:58.000Z | 2019-05-14T09:30:12.000Z | timestamp.py | fbl4kd43m0n/Python | 324f6bb1255d5deab981c457864be6c9ac4a30a7 | [
"MIT"
] | null | null | null | timestamp.py | fbl4kd43m0n/Python | 324f6bb1255d5deab981c457864be6c9ac4a30a7 | [
"MIT"
] | null | null | null | import pefile
import time
pe = pefile.PE("veri.exe")
timestamp = pe.FILE_HEADER.TimeDateStamp
print time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(timestamp))
| 23.142857 | 66 | 0.734568 | 26 | 162 | 4.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08642 | 162 | 6 | 67 | 27 | 0.797297 | 0 | 0 | 0 | 0 | 0 | 0.154321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | null | null | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0f37aca0a8a8344544398a1afe4f75dd4c0af841 | 444 | py | Python | account/models.py | iamfoysal/employe_info | 6d6416f9c63758451483f9d26a073b8775893c7e | [
"Apache-2.0"
] | 1 | 2022-03-07T06:18:21.000Z | 2022-03-07T06:18:21.000Z | account/models.py | iamfoysal/employe_info | 6d6416f9c63758451483f9d26a073b8775893c7e | [
"Apache-2.0"
] | null | null | null | account/models.py | iamfoysal/employe_info | 6d6416f9c63758451483f9d26a073b8775893c7e | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.db import models
from django.contrib.auth.models import User
class CreateCustomer(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, null = True, blank= True)
name = models.CharField(max_length=255, null = True, blank= True)
phone = models.CharField(max_length=15, null = True, blank= True)
def __str__(self):
return str(self.user)
| 24.666667 | 89 | 0.698198 | 60 | 444 | 5.05 | 0.483333 | 0.09901 | 0.128713 | 0.168317 | 0.191419 | 0.191419 | 0.191419 | 0 | 0 | 0 | 0 | 0.014124 | 0.202703 | 444 | 17 | 90 | 26.117647 | 0.841808 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
0f4aeaaa843460324ab55d956dab9cbd5a4cb13f | 64 | py | Python | authors/apps/profiles/__init__.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 1 | 2018-11-08T16:47:03.000Z | 2018-11-08T16:47:03.000Z | authors/apps/profiles/__init__.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 72 | 2018-10-23T12:34:14.000Z | 2021-06-01T22:50:57.000Z | authors/apps/profiles/__init__.py | andela/-ah-backend-thor | fe8d49531ccb1adebfea8b0f30ff0ebd172c31ba | [
"BSD-3-Clause"
] | 1 | 2018-10-23T16:18:01.000Z | 2018-10-23T16:18:01.000Z | default_app_config = 'authors.apps.profiles.apps.ProfilesConfig' | 64 | 64 | 0.859375 | 8 | 64 | 6.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 64 | 1 | 64 | 64 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0.630769 | 0.630769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0f90df39bf36680b12e4228a9291340bcb378201 | 686 | py | Python | raco/replace_with_repr.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 61 | 2015-02-09T17:27:40.000Z | 2022-03-28T14:37:53.000Z | raco/replace_with_repr.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 201 | 2015-01-03T02:46:19.000Z | 2017-09-19T02:16:36.000Z | raco/replace_with_repr.py | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 17 | 2015-06-03T12:01:30.000Z | 2021-11-27T15:49:21.000Z | # These imports are required here -- for eval inside replace_with_repr
from raco.expression import *
from raco.algebra import *
from raco.relation_key import *
from raco.scheme import *
from raco.backends.myria import *
from raco.backends.cpp import *
from raco.backends.radish import *
from raco.backends.sparql import *
# NOTES: relying on import * for eval is error prone due
# to namespace collisions
# NOTES: what to do if a operator has two constructors?
def replace_with_repr(plan):
r = repr(plan)
try:
return eval(r)
except (TypeError, AttributeError, SyntaxError):
print 'Error with repr {r} of plan {p}'.format(r=r, p=plan)
raise
| 29.826087 | 70 | 0.717201 | 101 | 686 | 4.821782 | 0.554455 | 0.131417 | 0.201232 | 0.180698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201166 | 686 | 22 | 71 | 31.181818 | 0.888686 | 0.303207 | 0 | 0 | 0 | 0 | 0.065539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.533333 | null | null | 0.066667 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
7e398c77fed204fd3577ac756197c6785a1b7cf8 | 201 | py | Python | venv/bin/django-admin.py | eustone/PatientManagement | 9b4895edb509e6609afe766d7cf5b8844757d047 | [
"Apache-2.0"
] | 2 | 2020-03-27T14:22:22.000Z | 2020-03-27T15:53:52.000Z | venv/bin/django-admin.py | eustone/PatientManagement | 9b4895edb509e6609afe766d7cf5b8844757d047 | [
"Apache-2.0"
] | 5 | 2021-03-19T01:13:01.000Z | 2021-09-22T18:47:41.000Z | venv/bin/django-admin.py | eustone/PatientManagement | 9b4895edb509e6609afe766d7cf5b8844757d047 | [
"Apache-2.0"
] | null | null | null | #!/home/kingzozo/DevProjects/Health/HospitalManagementSystem/PatientManagement/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 33.5 | 94 | 0.825871 | 22 | 201 | 7.045455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 201 | 5 | 95 | 40.2 | 0.833333 | 0.462687 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7e61e79252cfaa4582badfe4e48f512975b45ac9 | 6,427 | py | Python | extractor/daily_viral_playlists.py | ron-debajyoti/visualify | ed9eded85dcc1c1132da9528d761051a56567809 | [
"MIT"
] | 1 | 2021-02-09T13:19:43.000Z | 2021-02-09T13:19:43.000Z | extractor/daily_viral_playlists.py | ron-debajyoti/visualify | ed9eded85dcc1c1132da9528d761051a56567809 | [
"MIT"
] | 11 | 2020-11-27T18:23:20.000Z | 2022-02-28T03:53:12.000Z | extractor/daily_viral_playlists.py | ron-debajyoti/easy-visualify | 420d2df525d5accbbebe17143bcaac09e8a2cc6e | [
"MIT"
] | null | null | null |
viralPlaylists = [
{'country_code':'AD','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMxjQJh4Um8T'},
{'country_code':'AE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbN6kflPvZZn0'},
{'country_code':'AR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJajpaXyaKll'},
{'country_code':'AU','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbO5MSE9RdfN2'},
{'country_code':'AT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKxYYIUIgn7V'},
{'country_code':'BE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJx9hUtTN0Sj'},
{'country_code':'BO','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMTKZuy8ORFV'},
{'country_code':'BR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMOkSwG072hV'},
{'country_code':'BG','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJcpVBLdFV7m'},
{'country_code':'CA','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKfIuOAZrk7G'},
{'country_code':'CL','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJs8e2vk15a8'},
{'country_code':'CO','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKrooeK9WSFF'},
{'country_code':'CR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKOefHPXPMyf'},
{'country_code':'CZ','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMBUm3g7j4Kb'},
{'country_code':'DK','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMA8BIYDeMkD'},
{'country_code':'DO','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJWZV7aRNQck'},
{'country_code':'EC','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJpRQ294oZ9N'},
{'country_code':'SV','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLxoIml4MYkT'},
{'country_code':'EE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbK4KA2JSuft7'},
{'country_code':'EG','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJSvmuZN9Jja'},
{'country_code':'FI','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMBNcyQCfU4w'},
{'country_code':'FR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJmRv5TqJW16'},
{'country_code':'DE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNv6cjoMVCyg'},
{'country_code':'GR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLOov4J0GutU'},
{'country_code':'GT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNF1heNYHDnE'},
{'country_code':'HN','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNpKdqfZ9Upp'},
{'country_code':'HK','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKXd6qahcpCg'},
{'country_code':'HU','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLuey1EKVv9I'},
{'country_code':'IS','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMHnoaLVkVuk'},
{'country_code':'IN','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbK4NvPi6Sxit'},
{'country_code':'ID','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKpV6RVDTWcZ'},
{'country_code':'IE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLzhUVGQUCoe'},
{'country_code':'IS','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNGlbFNNXxgC'},
{'country_code':'IT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKbvcwe5owJ1'},
{'country_code':'JP','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbINTEnbFeb8d'},
{'country_code':'LV','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbIUY6VUoboP4'},
{'country_code':'LT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLDLOTfCtAUM'},
{'country_code':'LU','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJ9SRaVj0yDF'},
{'country_code':'MY','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLRmg3qDbY1H'},
# {'country_code':'MT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMD2H5HJqmx9'},
{'country_code':'MX','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLuUZrygauiA'},
{'country_code':'NL','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMQaPQjt027d'},
{'country_code':'NZ','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJ7gPAehey5W'},
{'country_code':'NI','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKgCVIE0PTOD'},
{'country_code':'NO','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbOcsE2WCaJa2'},
{'country_code':'PA','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMIO7B1pcKUy'},
{'country_code':'PY','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNxY4E5g33Gy'},
{'country_code':'PE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbN7gfhgaomhA'},
{'country_code':'PH','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJv2Mvelmc3I'},
{'country_code':'PL','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNGGDnE9UFTF'},
{'country_code':'PT','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKHoaIcElSSA'},
{'country_code':'RO','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNwDVyEEfWV3'},
{'country_code':'RU','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNwDVyEEfWV3'},
{'country_code':'SG','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbJVi45MafAu0'},
{'country_code':'SA','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMq8xkWZE6se'},
{'country_code':'SK','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbK3Iy2zvpfp4'},
{'country_code':'ZA','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNaCk6h5bujZ'},
{'country_code':'ES','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMfVLvbaC3bj'},
{'country_code':'SE','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbIPOivNiyjjS'},
{'country_code':'CH','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbNjqq6Tw4Fb0'},
{'country_code':'TW','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMGnTCc4Vx7v'},
{'country_code':'TH','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMnf7ONzeQWM'},
{'country_code':'TR','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbMIJZxwqzod6'},
{'country_code':'GB','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbL3DLHfQeDmV'},
{'country_code':'UA','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbLwLH0YjrtGb'},
{'country_code':'US','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbKuaTI1Z1Afx'},
{'country_code':'UY','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbM1qaaFAyPLz'},
{'country_code':'VN','uri':'spotify:user:spotifycharts:playlist:37i9dQZEVXbL1G1MbPav3j'}
] | 80.3375 | 95 | 0.753384 | 613 | 6,427 | 7.787928 | 0.231648 | 0.156682 | 0.199413 | 0.384583 | 0.517805 | 0.048597 | 0.048597 | 0.048597 | 0 | 0 | 0 | 0.051574 | 0.055703 | 6,427 | 80 | 96 | 80.3375 | 0.735047 | 0.013848 | 0 | 0 | 0 | 0 | 0.793087 | 0.613321 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7e63b8d64aa6726184cf3d78b4eda2b12f866db4 | 61 | py | Python | src/spaceone/config/model/__init__.py | choonho/config | 9da8ddc18263fca91f8b3969355bb48f6cada6ff | [
"Apache-2.0"
] | null | null | null | src/spaceone/config/model/__init__.py | choonho/config | 9da8ddc18263fca91f8b3969355bb48f6cada6ff | [
"Apache-2.0"
] | null | null | null | src/spaceone/config/model/__init__.py | choonho/config | 9da8ddc18263fca91f8b3969355bb48f6cada6ff | [
"Apache-2.0"
] | null | null | null | from spaceone.config.model.config_map_model import ConfigMap
| 30.5 | 60 | 0.885246 | 9 | 61 | 5.777778 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 61 | 1 | 61 | 61 | 0.912281 | 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 |
7e72dca01561f09c22e30273bbda3d0aeb73a5f0 | 154 | py | Python | motion_arbiter/script/download_nltk_data.py | ehwa009/social_mind | 0507f47b29371ef167b30b60bdd446fde118b626 | [
"Apache-2.0"
] | 7 | 2018-08-09T02:40:58.000Z | 2022-02-07T03:32:23.000Z | motion_arbiter/script/download_nltk_data.py | ehwa009/social_mind | 0507f47b29371ef167b30b60bdd446fde118b626 | [
"Apache-2.0"
] | null | null | null | motion_arbiter/script/download_nltk_data.py | ehwa009/social_mind | 0507f47b29371ef167b30b60bdd446fde118b626 | [
"Apache-2.0"
] | 2 | 2018-08-09T02:41:06.000Z | 2018-08-27T03:54:10.000Z | #!/usr/bin/env python
#-*- encoding: utf8 -*-
import nltk
nltk.download('stopwords')
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
| 17.111111 | 43 | 0.733766 | 19 | 154 | 5.842105 | 0.736842 | 0.324324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.084416 | 154 | 8 | 44 | 19.25 | 0.780142 | 0.272727 | 0 | 0 | 0 | 0 | 0.363636 | 0.236364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7e7cfadeadc2192c402a3307dd87925e5bc97e50 | 207 | py | Python | homeassistant/helpers/supervisor.py | robaston9/core | c76d2c4283234f6b434bea8348d1cc8cd17ab4b3 | [
"Apache-2.0"
] | null | null | null | homeassistant/helpers/supervisor.py | robaston9/core | c76d2c4283234f6b434bea8348d1cc8cd17ab4b3 | [
"Apache-2.0"
] | null | null | null | homeassistant/helpers/supervisor.py | robaston9/core | c76d2c4283234f6b434bea8348d1cc8cd17ab4b3 | [
"Apache-2.0"
] | null | null | null | """Supervisor helper."""
import os
from homeassistant.core import callback
@callback
def has_supervisor() -> bool:
"""Return true if supervisor is available."""
return "SUPERVISOR" in os.environ
| 17.25 | 49 | 0.714976 | 25 | 207 | 5.88 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169082 | 207 | 11 | 50 | 18.818182 | 0.854651 | 0.280193 | 0 | 0 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7e8ed03759151b641bde1908c0fa69b874204019 | 614 | py | Python | ejemplos/python/Project/core.py | Angelgf22/curso-tdd | cd49b787ce65f58cced1b6ba63ea9f390aee9dea | [
"MIT"
] | 66 | 2019-10-25T07:41:22.000Z | 2022-03-15T11:43:48.000Z | ejemplos/python/Project/core.py | Angelgf22/curso-tdd | cd49b787ce65f58cced1b6ba63ea9f390aee9dea | [
"MIT"
] | 267 | 2019-10-23T07:53:20.000Z | 2022-03-09T16:57:18.000Z | ejemplos/python/Project/core.py | Angelgf22/curso-tdd | cd49b787ce65f58cced1b6ba63ea9f390aee9dea | [
"MIT"
] | 188 | 2019-10-21T17:47:35.000Z | 2022-03-17T19:30:52.000Z | """
Project tendrá todo lo relacionado con los proyectos de estudiantes en una asignatura.
"""
class Project:
"""
Clase contenedor de todo lo relacionado con un proyecto en GitHub
"""
def __init__(self, name: str ):
self._name = name
@property
def name(self):
"""
Simplemente el nombre del proyecto
"""
return self._name
def new_milestone(self, milestone):
pass
def milestones(self):
pass
def percentage_completed(self):
pass
def completion_summary(self):
pass
def data(self):
pass
| 18.058824 | 86 | 0.599349 | 70 | 614 | 5.128571 | 0.557143 | 0.077994 | 0.091922 | 0.111421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322476 | 614 | 33 | 87 | 18.606061 | 0.862981 | 0.30456 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 1 | 0.4375 | false | 0.3125 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7ea73d6f4bb41f27d0a9e00afbab2c02122c3c6c | 274 | py | Python | malib/replay_buffers/__init__.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 6 | 2021-05-19T10:25:36.000Z | 2021-12-27T03:30:33.000Z | malib/replay_buffers/__init__.py | wwxFromTju/malib | 7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2 | [
"MIT"
] | 1 | 2021-05-29T04:51:37.000Z | 2021-05-30T06:18:10.000Z | malib/replay_buffers/__init__.py | ying-wen/malib_deprecated | 875338b81c4d87064ad31201f461ef742db05f25 | [
"MIT"
] | 1 | 2021-05-31T16:16:12.000Z | 2021-05-31T16:16:12.000Z | # Created by yingwen at 2019-03-10
from malib.replay_buffers.indexed_replay_buffer import IndexedReplayBuffer
from malib.replay_buffers.indexed_rollout_replay_buffer import (
IndexedRolloutReplayBuffer,
)
__all__ = ["IndexedReplayBuffer", "IndexedRolloutReplayBuffer"]
| 34.25 | 74 | 0.843066 | 29 | 274 | 7.586207 | 0.62069 | 0.081818 | 0.136364 | 0.2 | 0.263636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032129 | 0.091241 | 274 | 7 | 75 | 39.142857 | 0.851406 | 0.116788 | 0 | 0 | 0 | 0 | 0.1875 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
7eb04250f99d3c80a55dbbd1c7268821917a4c60 | 69 | py | Python | videoCrawler/videoCrawler/__init__.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | videoCrawler/videoCrawler/__init__.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | videoCrawler/videoCrawler/__init__.py | lovishchopra/ITRI-Car-Accident | 96a1ffa25eacfb2885ea1fa0852a91c8bb5ec95d | [
"MIT"
] | null | null | null | import videoCrawler
name = 'videoCrawler'
crawl = videoCrawler.crawl | 17.25 | 26 | 0.811594 | 7 | 69 | 8 | 0.571429 | 0.607143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 4 | 26 | 17.25 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0.171429 | 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 |
0e20aa437e7fbb2516471bdfe4824ae26752aa3f | 2,852 | py | Python | smart-camera/app/test/test_camera_recording.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 2 | 2021-04-29T19:28:59.000Z | 2021-04-29T21:20:32.000Z | smart-camera/app/test/test_camera_recording.py | EmixMaxime/mx-home-security | ec6d329a09bb2e0afbbd7e481937893311f02634 | [
"MIT"
] | 101 | 2020-06-26T19:51:24.000Z | 2021-03-28T09:35:55.000Z | smart-camera/app/test/test_camera_recording.py | mxmaxime/mx-tech-house | f6b66b8390b348e48d4c6ea0da51e409f3845fd6 | [
"MIT"
] | null | null | null | import json
from io import BytesIO
from unittest import TestCase, skip
from unittest.mock import Mock, patch, call
from camera.camera_object_detection import CameraObjectDetection
from camera.camera_recording import CameraRecording
from datetime import datetime, timedelta
class TestCameraRecording(TestCase):
def setUp(self) -> None:
self.device_id = 'some_uuid'
self.event_ref = 'some_event_ref'
self.camera_recorder_mock = Mock()
self.camera_recording = CameraRecording(self.device_id, self.camera_recorder_mock)
def test_start_record_video(self):
self.camera_recording.start_recording(self.event_ref)
self.camera_recording.start_recording(self.event_ref)
self.camera_recorder_mock.start_recording.assert_called_once_with(f'{self.event_ref}-0')
def test_split_record_video(self):
self.camera_recording.start_recording(self.event_ref)
self.camera_recording.split_recording(self.event_ref)
self.camera_recorder_mock.split_recording.assert_not_called()
with patch('utils.time.datetime') as mock_datetime:
mock_datetime.datetime.now.return_value = datetime.now() + timedelta(seconds=CameraRecording.SECONDS_FIRST_MOTION_VIDEO)
video_ref = self.camera_recording.split_recording(self.event_ref)
self.camera_recording.split_recording(self.event_ref)
self.assertEqual(video_ref, f'{self.event_ref}-0')
self.camera_recorder_mock.split_recording.assert_called_once_with(f'{self.event_ref}-1')
self.camera_recorder_mock.reset_mock()
with patch('utils.time.datetime') as mock_datetime:
mock_datetime.datetime.now.return_value = datetime.now() + timedelta(seconds=CameraRecording.SECONDS_MOTION_VIDEO)
video_ref = self.camera_recording.split_recording(self.event_ref)
self.assertEqual(video_ref, f'{self.event_ref}-1')
self.camera_recorder_mock.split_recording.assert_called_once_with(f'{self.event_ref}-2')
def test_stop_record_video(self):
self.camera_recording.start_recording(self.event_ref)
video_ref = self.camera_recording.stop_recording(self.event_ref)
self.camera_recorder_mock.stop_recording.assert_called_once_with()
self.assertEqual(video_ref, f'{self.event_ref}-0')
self.camera_recorder_mock.reset_mock()
self.camera_recording.start_recording(self.event_ref)
with patch('utils.time.datetime') as mock_datetime:
mock_datetime.datetime.now.return_value = datetime.now() + timedelta(seconds=CameraRecording.SECONDS_MOTION_VIDEO)
video_ref = self.camera_recording.split_recording(self.event_ref)
video_ref = self.camera_recording.stop_recording(self.event_ref)
self.assertEqual(video_ref, f'{self.event_ref}-1')
| 45.269841 | 132 | 0.748948 | 373 | 2,852 | 5.38874 | 0.155496 | 0.109453 | 0.119403 | 0.125373 | 0.777114 | 0.762189 | 0.738308 | 0.728358 | 0.685075 | 0.652736 | 0 | 0.002926 | 0.16129 | 2,852 | 62 | 133 | 46 | 0.837375 | 0 | 0 | 0.511111 | 0 | 0 | 0.07223 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.088889 | false | 0 | 0.155556 | 0 | 0.266667 | 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 |
0e7513ba8f91533d964e481300aca57e4c5834eb | 33 | py | Python | openedx_webhooks/lib/jira/__init__.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 9 | 2016-12-20T04:18:46.000Z | 2021-09-09T10:50:03.000Z | openedx_webhooks/lib/jira/__init__.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 119 | 2015-01-20T12:01:28.000Z | 2021-12-17T18:50:46.000Z | openedx_webhooks/lib/jira/__init__.py | stvstnfrd/openedx-webhooks | c12aede9eb87ae67bc3d3c9fb9ebe4879f668ba5 | [
"Apache-2.0"
] | 19 | 2015-01-20T11:58:43.000Z | 2021-11-01T09:38:32.000Z | """
Tools to work with JIRA.
"""
| 8.25 | 24 | 0.575758 | 5 | 33 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 33 | 3 | 25 | 11 | 0.730769 | 0.727273 | 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 |
0e917fd7b0b60d63647bf7916a86cf16d06279ff | 868 | py | Python | kalliope/core/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | 1 | 2020-03-30T15:03:19.000Z | 2020-03-30T15:03:19.000Z | kalliope/core/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | null | null | null | kalliope/core/__init__.py | joshuaboniface/kalliope | 0e040be3165e838485d1e5addc4d2c5df12bfd84 | [
"MIT"
] | null | null | null | from kalliope.core.OrderAnalyser import OrderAnalyser
from kalliope.core.OrderListener import OrderListener
from kalliope.core.ShellGui import ShellGui
from kalliope.core.Utils.Utils import Utils
from kalliope.core.Utils import FileManager
from kalliope.core.ResourcesManager import ResourcesManager
from kalliope.core.NeuronLauncher import NeuronLauncher
from kalliope.core.SynapseLauncher import SynapseLauncher
from kalliope.core.Lifo.LIFOBuffer import LIFOBuffer
from kalliope.core.NeuronParameterLoader import NeuronParameterLoader
from kalliope.core.NeuronModule import NeuronModule
from kalliope.core.SignalModule import SignalModule, MissingParameter
from kalliope.core.PlayerModule import PlayerModule
from kalliope.core.HookManager import HookManager
from kalliope.core.Lifo.LIFOBuffer import LIFOBuffer
from kalliope.core.Lifo.LifoManager import LifoManager | 54.25 | 69 | 0.883641 | 101 | 868 | 7.594059 | 0.207921 | 0.250326 | 0.333768 | 0.078227 | 0.161669 | 0.161669 | 0.161669 | 0.161669 | 0.161669 | 0.161669 | 0 | 0 | 0.073733 | 868 | 16 | 70 | 54.25 | 0.95398 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0e9cd3edf907f2e22cf1be8aa6311a532de8482e | 899 | py | Python | tests/utilities/test_utilities.py | andrewtarzia/PoreMapper | fc98324275e0e4fb3735b9a9cc4a79a34567eca2 | [
"MIT"
] | 7 | 2021-12-16T13:01:04.000Z | 2021-12-29T10:09:37.000Z | tests/utilities/test_utilities.py | Chemwzd/PoreMapper | fc98324275e0e4fb3735b9a9cc4a79a34567eca2 | [
"MIT"
] | null | null | null | tests/utilities/test_utilities.py | Chemwzd/PoreMapper | fc98324275e0e4fb3735b9a9cc4a79a34567eca2 | [
"MIT"
] | 1 | 2021-12-16T13:01:03.000Z | 2021-12-16T13:01:03.000Z | import pytest
from pore_mapper import get_tensor_eigenvalues
import numpy as np
@pytest.fixture
def tensor():
return np.array([
[-0.09852765, 0.633203, -0.05770473],
[ 0.76346367, -0.09852765, 0.00571956],
[ 0.00571956, -0.05770473, 0.60333333],
])
@pytest.fixture
def sorted_():
return np.array([
0.6382683737293516, 0.5602684660129408, -0.7922588097422931
])
@pytest.fixture
def unsorted_():
return np.array([-0.79225881, 0.56026847, 0.63826837])
def test_get_tensor_eigenvalues(tensor, sorted_, unsorted_):
print(get_tensor_eigenvalues(tensor, sort=True))
print(get_tensor_eigenvalues(tensor, sort=False))
assert np.all(np.allclose(
get_tensor_eigenvalues(tensor, sort=True),
sorted_,
))
assert np.all(np.allclose(
get_tensor_eigenvalues(tensor, sort=False),
unsorted_,
))
| 23.051282 | 67 | 0.669633 | 110 | 899 | 5.290909 | 0.345455 | 0.092784 | 0.206186 | 0.223368 | 0.32646 | 0.32646 | 0.175258 | 0.175258 | 0.175258 | 0.175258 | 0 | 0.220196 | 0.206897 | 899 | 38 | 68 | 23.657895 | 0.596073 | 0 | 0 | 0.37931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068966 | 1 | 0.137931 | false | 0 | 0.103448 | 0.103448 | 0.344828 | 0.068966 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
7ec515ed41c438cbeef77cd764ccf5c4e7ebccbe | 91 | py | Python | spamalot/apps.py | BrianLoveGa/python_practice_spam | e15a385409754e5e2d101b7c03efaa3f724efa03 | [
"Unlicense"
] | 1 | 2019-11-30T21:22:44.000Z | 2019-11-30T21:22:44.000Z | spamalot/apps.py | BrianLoveGa/python_practice_spam | e15a385409754e5e2d101b7c03efaa3f724efa03 | [
"Unlicense"
] | 7 | 2020-06-06T00:41:01.000Z | 2022-02-10T11:09:39.000Z | spamalot/apps.py | BrianLoveGa/python_practice_spam | e15a385409754e5e2d101b7c03efaa3f724efa03 | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class SpamalotConfig(AppConfig):
name = 'spamalot'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 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 |
7ef65f4c6eca292c12287ccc9f1d0d842f0c083f | 222 | py | Python | bookmarks/admin.py | RossBrunton/BMAT | 5e102935cc6166f4d8ea13051769787c47303153 | [
"MIT"
] | null | null | null | bookmarks/admin.py | RossBrunton/BMAT | 5e102935cc6166f4d8ea13051769787c47303153 | [
"MIT"
] | 47 | 2015-09-02T10:22:41.000Z | 2021-06-10T19:15:00.000Z | bookmarks/admin.py | RossBrunton/BMAT | 5e102935cc6166f4d8ea13051769787c47303153 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Bookmark
class BookmarkAdmin(admin.ModelAdmin):
list_display = ("pk", "owner",)
search_fields = ["title", "url"]
admin.site.register(Bookmark, BookmarkAdmin)
| 22.2 | 44 | 0.734234 | 26 | 222 | 6.192308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13964 | 222 | 9 | 45 | 24.666667 | 0.842932 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7d1d02727b2e3678f14b5e410e5bb7f1937e8643 | 95 | py | Python | config/__init__.py | gzisopoulos/python-iot-data-integrity | d13d386a2297edbe71fa7b8afca574bb090d6fe8 | [
"MIT"
] | 2 | 2020-12-08T08:43:18.000Z | 2020-12-08T08:43:46.000Z | config/__init__.py | gzisopoulos/python-iot-data-integrity | d13d386a2297edbe71fa7b8afca574bb090d6fe8 | [
"MIT"
] | null | null | null | config/__init__.py | gzisopoulos/python-iot-data-integrity | d13d386a2297edbe71fa7b8afca574bb090d6fe8 | [
"MIT"
] | null | null | null | import os
config_dir = os.path.abspath(os.path.dirname(__file__))
from .config import Config
| 15.833333 | 55 | 0.778947 | 15 | 95 | 4.6 | 0.6 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115789 | 95 | 5 | 56 | 19 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7d3de404a4d688e8d4cc5cfc78c56a3cd8602be1 | 20 | py | Python | nexttransit/bart/__init__.py | ahartoto/nexttransit | f91fc0d5625edbba73a80304031f0e70064af741 | [
"MIT"
] | null | null | null | nexttransit/bart/__init__.py | ahartoto/nexttransit | f91fc0d5625edbba73a80304031f0e70064af741 | [
"MIT"
] | null | null | null | nexttransit/bart/__init__.py | ahartoto/nexttransit | f91fc0d5625edbba73a80304031f0e70064af741 | [
"MIT"
] | null | null | null | """
BART Module
"""
| 5 | 11 | 0.5 | 2 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 20 | 3 | 12 | 6.666667 | 0.625 | 0.55 | 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 |
add5314a793e03c77974539a111174623a4a7300 | 355 | py | Python | api/serializers/user.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | null | null | null | api/serializers/user.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | 4 | 2021-04-08T19:01:31.000Z | 2021-06-10T17:58:27.000Z | api/serializers/user.py | Endzel/mini-payments | 189544e853c3dc4679be875190ab40e12a052822 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from api.models import UserProfile, Account
class UserProfileSerializer(serializers.ModelSerializer):
class Meta:
model = UserProfile
fields = '__all__'
class UserAccountSerializer(serializers.ModelSerializer):
class Meta:
model = Account
fields = ('user', 'balance',)
| 19.722222 | 57 | 0.709859 | 32 | 355 | 7.71875 | 0.59375 | 0.210526 | 0.251012 | 0.283401 | 0.323887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216901 | 355 | 17 | 58 | 20.882353 | 0.888489 | 0 | 0 | 0.2 | 0 | 0 | 0.050704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
adfc3874d193f9cc99df886632ce9cd58433737c | 716 | py | Python | Algorithms_easy/1085. Sum of Digits in the Minimum Number.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_easy/1085. Sum of Digits in the Minimum Number.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_easy/1085. Sum of Digits in the Minimum Number.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
1085. Sum of Digits in the Minimum Number
Easy
Given an array A of positive integers, let S be the sum of the digits of the minimal element of A.
Return 0 if S is odd, otherwise return 1.
Example 1:
Input: [34,23,1,24,75,33,54,8]
Output: 0
Explanation:
The minimal element is 1, and the sum of those digits is S = 1 which is odd, so the answer is 0.
Example 2:
Input: [99,77,33,66,55]
Output: 1
Explanation:
The minimal element is 33, and the sum of those digits is S = 3 + 3 = 6 which is even, so the answer is 1.
Constraints:
1 <= A.length <= 100
1 <= A[i] <= 100
"""
class Solution:
def sumOfDigits(self, A: List[int]) -> int:
return (sum(int(x) for x in str(min(A))) % 2) ^ 1
| 22.375 | 106 | 0.659218 | 140 | 716 | 3.371429 | 0.471429 | 0.042373 | 0.050847 | 0.118644 | 0.233051 | 0.105932 | 0.105932 | 0.105932 | 0 | 0 | 0 | 0.096364 | 0.231844 | 716 | 32 | 107 | 22.375 | 0.761818 | 0.803073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
bc03b02d82ea2972db07e8944ead57dc3f095b9a | 8,411 | bzl | Python | example/third_party/org_eclipse_jetty.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_eclipse_jetty.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | example/third_party/org_eclipse_jetty.bzl | wix-playground/rules_maven_third_party | ff0b486df194779d7d8e6c9102cd12138e3305c3 | [
"Apache-2.0"
] | null | null | null | load("@rules_maven_third_party//:import_external.bzl", import_external = "import_external")
def dependencies():
import_external(
name = "org_eclipse_jetty_jetty_alpn_client",
artifact = "org.eclipse.jetty:jetty-alpn-client:9.4.44.v20210927",
artifact_sha256 = "5f1a72fbb81f0e4d2e5797c2ba28a331ec979e669151fdd026adf3bbd61bdf71",
srcjar_sha256 = "f804490d22c84820e86f955ca40a256fd2c90867132d1df907078df9fe282c65",
deps = [
"@org_eclipse_jetty_jetty_io",
],
)
import_external(
name = "org_eclipse_jetty_jetty_alpn_java_client",
artifact = "org.eclipse.jetty:jetty-alpn-java-client:9.4.44.v20210927",
artifact_sha256 = "72efbef86f774a35be0012245eddf45a6830363dc7ae69d54be299d6ba5238e6",
srcjar_sha256 = "47af253f99d04feeffbf056be8491a7f8020824cc162adf8d41b2c01aa517652",
deps = [
"@org_eclipse_jetty_jetty_alpn_client",
],
)
import_external(
name = "org_eclipse_jetty_jetty_alpn_java_server",
artifact = "org.eclipse.jetty:jetty-alpn-java-server:9.4.44.v20210927",
artifact_sha256 = "17c25f4449d925a24034fa8d4244afc461a91226cf8cd6a18dcd1516d388243e",
srcjar_sha256 = "f5613fb63f447c5561b47d07db6d6d50a067357f37c4068471213f1c62c3943c",
deps = [
"@org_eclipse_jetty_jetty_alpn_server",
"@org_eclipse_jetty_jetty_io",
],
)
import_external(
name = "org_eclipse_jetty_jetty_alpn_openjdk8_client",
artifact = "org.eclipse.jetty:jetty-alpn-openjdk8-client:9.4.44.v20210927",
artifact_sha256 = "46812326132df5c4e3e9bcf3cfa2a61ddd84865819aca361a6734c77e8eda6eb",
srcjar_sha256 = "16a9363248d9d9b72322c6f9bf281903b98834ab9c605278bf13deaed224d120",
deps = [
"@org_eclipse_jetty_jetty_alpn_client",
],
)
import_external(
name = "org_eclipse_jetty_jetty_alpn_openjdk8_server",
artifact = "org.eclipse.jetty:jetty-alpn-openjdk8-server:9.4.44.v20210927",
artifact_sha256 = "da3720f93b4ddb4a21c17f7164612ac9148aa9058bd9b18c6af76e4faa1627e4",
srcjar_sha256 = "89911e08725d1b7fa5df79b47aa8d7d59d2b3f5d2d341121124a33362b6f7a3f",
deps = [
"@org_eclipse_jetty_jetty_alpn_server",
"@org_eclipse_jetty_jetty_io",
],
)
import_external(
name = "org_eclipse_jetty_jetty_alpn_server",
artifact = "org.eclipse.jetty:jetty-alpn-server:9.4.44.v20210927",
artifact_sha256 = "d8bac1939b715e42c5a16897eb5380664405a8fd3414e3f5e24d2e13d4314d8b",
srcjar_sha256 = "69e6d8c88591192a82b05fadbdca87ad761a0253723e02554804b289dfcb5212",
deps = [
"@org_eclipse_jetty_jetty_server",
],
)
import_external(
name = "org_eclipse_jetty_jetty_client",
artifact = "org.eclipse.jetty:jetty-client:9.4.44.v20210927",
artifact_sha256 = "81c335a33fea19ab71470e2b89295161f98a773fd3dfba1f4c4f9a358608090d",
srcjar_sha256 = "14a26502d4851ae514cf97305ee7787a6ad3eb6ae2f9986240d01d3409ba932c",
deps = [
"@org_eclipse_jetty_jetty_http",
"@org_eclipse_jetty_jetty_io",
],
)
import_external(
name = "org_eclipse_jetty_jetty_continuation",
artifact = "org.eclipse.jetty:jetty-continuation:9.4.44.v20210927",
artifact_sha256 = "cfb01376d77e2872a65ece6a997eff93ebc374e04db5c72a9748dca524b7e0f8",
srcjar_sha256 = "5ad0aeaa3524c359233f85d1ef16a82f99b972dff55a35fcfb32a654ac9f1b3e",
)
import_external(
name = "org_eclipse_jetty_jetty_http",
artifact = "org.eclipse.jetty:jetty-http:9.4.44.v20210927",
artifact_sha256 = "0a09fac4c0ea826f920cfe8d5beced61dcd8fec0eae99b88c7619609fa0dc403",
srcjar_sha256 = "5d11274eefac7c5ab79ee8d606b55232284cb1eca7241cfce0f0c292f0805a49",
deps = [
"@org_eclipse_jetty_jetty_io",
"@org_eclipse_jetty_jetty_util",
],
)
import_external(
name = "org_eclipse_jetty_jetty_io",
artifact = "org.eclipse.jetty:jetty-io:9.4.44.v20210927",
artifact_sha256 = "3c6f1105500921aa4f9687c3a1b5fd9eba4661a5f438aa089829c2ecc9726745",
srcjar_sha256 = "35c1d56be44844a51669206c5b4ff1fd5e39cac0cde2ae10ebc514e0b087671a",
deps = [
"@org_eclipse_jetty_jetty_util",
],
)
import_external(
name = "org_eclipse_jetty_jetty_proxy",
artifact = "org.eclipse.jetty:jetty-proxy:9.4.44.v20210927",
artifact_sha256 = "4f2d609dc08bf50abe249a3597f5afebd523491a27d72896e6cbcd949761331a",
srcjar_sha256 = "40084df19c6e85d093fc4235cdf074206858f1ccf4cf295c3571117b27aa15dc",
deps = [
"@org_eclipse_jetty_jetty_client",
"@org_eclipse_jetty_jetty_util",
],
)
import_external(
name = "org_eclipse_jetty_jetty_security",
artifact = "org.eclipse.jetty:jetty-security:9.4.44.v20210927",
artifact_sha256 = "d7545a58dc0107035757da6538b70d2bbbc02d78e5f382ca670d258ce822a9f7",
srcjar_sha256 = "0c0799daaab341fb2595d813367e2c6fb46074d6f3f2ecc98b368c881c544e58",
deps = [
"@org_eclipse_jetty_jetty_server",
],
)
import_external(
name = "org_eclipse_jetty_jetty_server",
artifact = "org.eclipse.jetty:jetty-server:9.4.44.v20210927",
artifact_sha256 = "d4f51fb02454b1c79489418f080d3409c557abca181f083881977b7a729a8f86",
srcjar_sha256 = "24b41fe85e2aaf382fcb15d948dc1857876d44413ee73c6370fb64db8bbdb183",
deps = [
"@javax_servlet_javax_servlet_api//:linkable",
"@org_eclipse_jetty_jetty_http",
"@org_eclipse_jetty_jetty_io",
],
)
import_external(
name = "org_eclipse_jetty_jetty_servlet",
artifact = "org.eclipse.jetty:jetty-servlet:9.4.44.v20210927",
artifact_sha256 = "eb85f2cfa2cb2b809ccea0c92e33fb68542f5c0286575b48dac895daba7bd0ee",
srcjar_sha256 = "d60c4396f6de63e70741449a7a823a391b1395910b3c189d46feb6218c480802",
deps = [
"@org_eclipse_jetty_jetty_security",
"@org_eclipse_jetty_jetty_util_ajax",
],
)
import_external(
name = "org_eclipse_jetty_jetty_servlets",
artifact = "org.eclipse.jetty:jetty-servlets:9.4.44.v20210927",
artifact_sha256 = "9f70d4dc470bc2581ad182de4411ce774cd4865ca643eafc044e867f49502b43",
srcjar_sha256 = "33d9543fc73d2e4275e6aabddc91bb78a69083ba3379c9e795a359f39909ecf7",
deps = [
"@org_eclipse_jetty_jetty_continuation",
"@org_eclipse_jetty_jetty_http",
"@org_eclipse_jetty_jetty_io",
"@org_eclipse_jetty_jetty_util",
],
)
import_external(
name = "org_eclipse_jetty_jetty_util",
artifact = "org.eclipse.jetty:jetty-util:9.4.44.v20210927",
artifact_sha256 = "539179024520b614f62d5d83f25bea111f7b991c399e5f737fa6aa2750489079",
srcjar_sha256 = "d797940703141bf91eed55e45f226b18b7294382689819ddc03ddbbd0b44c770",
)
import_external(
name = "org_eclipse_jetty_jetty_util_ajax",
artifact = "org.eclipse.jetty:jetty-util-ajax:9.4.44.v20210927",
artifact_sha256 = "15aee9ad62b6af6d3f90ee37c4d190003305b4b92d9b2646fcd4e9df46c9225f",
srcjar_sha256 = "1cf877168e068194362d7a2268441038a70e3e72500c1b1dc3dd97ec463d196d",
deps = [
"@org_eclipse_jetty_jetty_util",
],
)
import_external(
name = "org_eclipse_jetty_jetty_webapp",
artifact = "org.eclipse.jetty:jetty-webapp:9.4.44.v20210927",
artifact_sha256 = "b447a5dd9957f2cd414041aea46d2812bd39acc175d6d396941f8e1ce2995e96",
srcjar_sha256 = "d19891ccb0d3c676c71a2afeaa13bc5fade973e242a0705a952a8198db86150e",
deps = [
"@org_eclipse_jetty_jetty_servlet",
"@org_eclipse_jetty_jetty_xml",
],
)
import_external(
name = "org_eclipse_jetty_jetty_xml",
artifact = "org.eclipse.jetty:jetty-xml:9.4.44.v20210927",
artifact_sha256 = "5d8a77311c87015006547d23bd06e36b02212c48ca26c2b0b30b8d2ca3c6e6c3",
srcjar_sha256 = "e1a92231a24e0d91cb1c013d2accde3dfe6f72d45bddd66c3819765c87ff1502",
deps = [
"@org_eclipse_jetty_jetty_util",
],
)
| 38.760369 | 93 | 0.703484 | 660 | 8,411 | 8.554545 | 0.119697 | 0.116897 | 0.175345 | 0.233794 | 0.507085 | 0.415338 | 0.326603 | 0.215019 | 0.199433 | 0.195182 | 0 | 0.28634 | 0.212341 | 8,411 | 216 | 94 | 38.939815 | 0.565887 | 0 | 0 | 0.418994 | 0 | 0.022346 | 0.590893 | 0.58911 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005587 | true | 0 | 0.111732 | 0 | 0.117318 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bc080cd681b032b7f62b7874bff694aab18225da | 496 | py | Python | bastion_ssh/errors.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 13 | 2016-06-17T18:29:53.000Z | 2021-08-02T04:46:04.000Z | bastion_ssh/errors.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 1 | 2019-02-21T08:32:01.000Z | 2019-02-28T08:11:11.000Z | bastion_ssh/errors.py | wcc526/bastion-ssh | 15211937c706ff970588ccdc99dec6bc660a4077 | [
"Apache-2.0"
] | 8 | 2016-03-15T09:12:13.000Z | 2020-09-29T09:00:25.000Z | #!/usr/bin/env python
# coding: utf-8
class ClientError(Exception):
pass
class ServerError(Exception):
pass
class BadParameter(RuntimeError):
pass
class DockerNotFound(RuntimeError):
pass
class PublicImageNotFound(RuntimeError):
pass
class StreamOutputError(Exception):
pass
class InternalError(RuntimeError):
pass
class ConnectionError(RuntimeError):
pass
class MissingAsset(RuntimeError):
pass
class NothingChanged(RuntimeError):
pass
| 11.809524 | 40 | 0.733871 | 47 | 496 | 7.744681 | 0.446809 | 0.222527 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002488 | 0.189516 | 496 | 41 | 41 | 12.097561 | 0.902985 | 0.068548 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
bc3502d497861ee76c62a677228e09899a8992fa | 190 | py | Python | kYPython/Scrapy/myspider/myspider/start.py | kyaing/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | 10 | 2017-02-23T07:42:20.000Z | 2017-02-23T07:42:25.000Z | kYPython/Scrapy/myspider/myspider/start.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null | kYPython/Scrapy/myspider/myspider/start.py | kaideyi/KDYSample | 6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5 | [
"MIT"
] | null | null | null | # /usr/bin/ python3
# -*- coding: utf-8 -*-
# @Time : 2019-02-10 16:09
# @Author : kyaing
# @File : start.py
from scrapy import cmdline
cmdline.execute("scrapy crawl itcast".split()) | 23.75 | 46 | 0.636842 | 27 | 190 | 4.481481 | 0.925926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090323 | 0.184211 | 190 | 8 | 46 | 23.75 | 0.690323 | 0.552632 | 0 | 0 | 0 | 0 | 0.2375 | 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 |
70ae5e9d83b0f48a86ffade0878c50075d4a5923 | 53 | py | Python | kgtools/features.py | wclaus22/kaggletools | 64a8762f63055a5283137f81bfb5ecef7eaa36f8 | [
"MIT"
] | null | null | null | kgtools/features.py | wclaus22/kaggletools | 64a8762f63055a5283137f81bfb5ecef7eaa36f8 | [
"MIT"
] | null | null | null | kgtools/features.py | wclaus22/kaggletools | 64a8762f63055a5283137f81bfb5ecef7eaa36f8 | [
"MIT"
] | null | null | null | """A collection of feature engineering approaches"""
| 26.5 | 52 | 0.773585 | 6 | 53 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113208 | 53 | 1 | 53 | 53 | 0.87234 | 0.867925 | 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 |
70b3eac6c1f3fce3a06b21ac0b9d72d270b4b14d | 156 | py | Python | HackerRank/Algorithm/warmup/AVeryBigSum.py | dusadpiyush96/Competetive | 370e2058f330eefdf2caa404ee2a43daa62669ee | [
"MIT"
] | null | null | null | HackerRank/Algorithm/warmup/AVeryBigSum.py | dusadpiyush96/Competetive | 370e2058f330eefdf2caa404ee2a43daa62669ee | [
"MIT"
] | null | null | null | HackerRank/Algorithm/warmup/AVeryBigSum.py | dusadpiyush96/Competetive | 370e2058f330eefdf2caa404ee2a43daa62669ee | [
"MIT"
] | null | null | null | n = int(raw_input())
arr = (raw_input().split())
integers=[int(x) for x in arr]
#for x in arr:
#x=int(x)
sum=0
for x in integers:
sum+=x
print sum
| 15.6 | 30 | 0.608974 | 32 | 156 | 2.90625 | 0.40625 | 0.129032 | 0.193548 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.211538 | 156 | 9 | 31 | 17.333333 | 0.747967 | 0.134615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
70c733e20a73da0268cb5cb41312270dd82a3184 | 46 | py | Python | src/8sem/words_count.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | 2 | 2019-10-19T22:29:50.000Z | 2019-10-19T22:29:52.000Z | src/8sem/words_count.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | src/8sem/words_count.py | freepvps/hsesamples | adbf35c1c94521d78fb75f72287512a37e49bdc8 | [
"MIT"
] | null | null | null | n = input().lower().split()
print(len(set(n))) | 23 | 27 | 0.608696 | 8 | 46 | 3.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 2 | 28 | 23 | 0.651163 | 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 |
70cb4800bec94b99fb230c7bb53242b0e1d0d1ad | 57 | py | Python | abc/120/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/120/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/120/A.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | A, B, C = map(int, input().split())
print(min(B // A, C)) | 28.5 | 35 | 0.526316 | 12 | 57 | 2.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 57 | 2 | 36 | 28.5 | 0.625 | 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 |
70f99eb4df896759b9e4ba23c91ab1fb777a3c7a | 111 | py | Python | t.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | t.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | t.py | Tristan-Anderson/Slifer_Lab | 5a463f2ebd7f495bce70b12252dbfffac35445f1 | [
"MIT"
] | null | null | null | from slifercal import slifercal as sc
k=sc()
k.import_datafile(datafile_location="data_record_12-20-2019.csv") | 27.75 | 65 | 0.81982 | 19 | 111 | 4.578947 | 0.736842 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07767 | 0.072072 | 111 | 4 | 65 | 27.75 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0.232143 | 0.232143 | 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 |
cb2618062c7abd5c975a07fa76b4f8fffbc51c68 | 163 | py | Python | pytimize/parsers/_symbol.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | 10 | 2020-02-24T01:52:20.000Z | 2022-03-12T02:50:58.000Z | pytimize/parsers/_symbol.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | null | null | null | pytimize/parsers/_symbol.py | TerrayTM/pytimize | 5d3508e8da4d2e6c8e52d3386b580bc300dc52d5 | [
"Apache-2.0"
] | 2 | 2021-10-03T22:18:47.000Z | 2021-10-03T22:19:27.000Z | SUBSCRIPT = str.maketrans("0123456789", "₀₁₂₃₄₅₆₇₈₉")
class SymbolParser:
@staticmethod
def subscript(string):
return string.translate(SUBSCRIPT)
| 23.285714 | 53 | 0.723926 | 15 | 163 | 7.866667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0.171779 | 163 | 6 | 54 | 27.166667 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0.122699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
cb47e9bf1bae90ed30ff7999073387383eaec0fb | 765 | py | Python | api/constants/routes.py | josesalasdev/apisrun | 720ee8af9ddb356a9b60bf983251bb1a081d4c80 | [
"MIT"
] | 4 | 2021-07-26T23:01:11.000Z | 2022-03-09T14:41:48.000Z | api/constants/routes.py | josesalasdev/apisrun | 720ee8af9ddb356a9b60bf983251bb1a081d4c80 | [
"MIT"
] | 16 | 2022-02-28T23:12:48.000Z | 2022-03-27T19:56:21.000Z | api/constants/routes.py | josesalasdev/apisrun | 720ee8af9ddb356a9b60bf983251bb1a081d4c80 | [
"MIT"
] | null | null | null | class RouterPath:
"""Router paths constant"""
NODES = "/admin/nodes"
LEVEL_ONE = "/{level_one}"
LEVEL_TWO = "/{level_one}/{level_two}"
LEVEL_THREE = "/{level_one}/{level_two}/{level_three}"
LEVEL_FOUR = "/{level_one}/{level_two}/{level_three}/{level_four}"
LEVEL_FIVE = "/{level_one}/{level_two}/{level_three}/{level_four}/" "{level_five}"
LEVEL_SIX = (
"/{level_one}/{level_two}/{level_three}/{level_four}"
"/{level_five}/{level_six}"
)
LEVEL_SEVEN = (
"/{level_one}/{level_two}/{level_three}/{level_four}"
"/{level_five}/{level_six}/{level_seven}"
)
class HTTPMethod:
"""Http Methods"""
GET = "GET"
POST = "POST"
PUT = "PUT"
PATCH = "PATCH"
DELETE = "DELETE"
| 27.321429 | 86 | 0.597386 | 92 | 765 | 4.586957 | 0.25 | 0.151659 | 0.246446 | 0.265403 | 0.703791 | 0.665877 | 0.665877 | 0.604265 | 0.604265 | 0.521327 | 0 | 0 | 0.207843 | 765 | 27 | 87 | 28.333333 | 0.69637 | 0.044444 | 0 | 0.095238 | 0 | 0 | 0.538889 | 0.459722 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.714286 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
cb5fbbb7b87858816e1f0ea6811f42f56c711912 | 293 | py | Python | test_cast/2019-11-13/Exchange/solution.py | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | test_cast/2019-11-13/Exchange/solution.py | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | test_cast/2019-11-13/Exchange/solution.py | qinggniq/Algorithm-Practice | 24339bd059cd3cf7fe8e93a74d54b59cf4686a1b | [
"MIT"
] | null | null | null | class Solution:
def exchangeBits(self, num: int) -> int:
return (((0xaaaaaaaa & num) >> 1) ^ ((0x55555555 & num) << 1)) & (pow(2, 31) - 1)
if __name__ == "__main__":
print(bin(Solution().exchangeBits(0b1101)))
print(bin(Solution().exchangeBits(0b100000000000000000001)))
| 32.555556 | 89 | 0.631399 | 32 | 293 | 5.53125 | 0.65625 | 0.045198 | 0.180791 | 0.316384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179167 | 0.180887 | 293 | 8 | 90 | 36.625 | 0.558333 | 0 | 0 | 0 | 0 | 0 | 0.027304 | 0 | 0 | 0 | 0.068259 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.5 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
cb81f4c445bb3d3cea7c7fa35b8d444e9adfc3fa | 38 | py | Python | kite-python/kite_pkgexploration/kite/pkgexploration/examples/runtime_helper.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | kite-python/kite_pkgexploration/kite/pkgexploration/examples/runtime_helper.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | kite-python/kite_pkgexploration/kite/pkgexploration/examples/runtime_helper.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | PI = 3
LARGE = 12345
empty = object()
| 9.5 | 16 | 0.631579 | 6 | 38 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 0.236842 | 38 | 3 | 17 | 12.666667 | 0.62069 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 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 |
cba79dd422201dae6b022884fed5a405065bac26 | 234 | py | Python | RLBench/spaces/__init__.py | ZXspectrumZ80/The-RL-works | 73b27b528bb382536ba1d233b4b3c04f7ac993d0 | [
"MIT"
] | 19 | 2017-04-05T09:42:20.000Z | 2021-03-26T00:56:43.000Z | SafeRLBench/spaces/__init__.py | befelix/Safe-RL-Benchmark | 6a126f215c3d72e2d56d5b516087f820554ad9c8 | [
"MIT"
] | null | null | null | SafeRLBench/spaces/__init__.py | befelix/Safe-RL-Benchmark | 6a126f215c3d72e2d56d5b516087f820554ad9c8 | [
"MIT"
] | 5 | 2017-10-16T10:58:33.000Z | 2018-11-14T14:13:42.000Z | from __future__ import division, print_function, absolute_import
from .rd_space import RdSpace
from .bounded_space import BoundedSpace
from .discrete_space import DiscreteSpace
__all__ = ['RdSpace', 'BoundedSpace', 'DiscreteSpace']
| 29.25 | 64 | 0.824786 | 27 | 234 | 6.666667 | 0.555556 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106838 | 234 | 7 | 65 | 33.428571 | 0.861244 | 0 | 0 | 0 | 0 | 0 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cbba5a05461c074623ab4011150b53835ac703a3 | 71 | py | Python | rings/__main__.py | jpohlmeyer/TheLordOfTheHoleyRings | bb47cd7917865cfb29f3ef18f059a56bf75f99ac | [
"MIT"
] | null | null | null | rings/__main__.py | jpohlmeyer/TheLordOfTheHoleyRings | bb47cd7917865cfb29f3ef18f059a56bf75f99ac | [
"MIT"
] | null | null | null | rings/__main__.py | jpohlmeyer/TheLordOfTheHoleyRings | bb47cd7917865cfb29f3ef18f059a56bf75f99ac | [
"MIT"
] | null | null | null | from rings.app import App
if __name__ == "__main__":
App().main()
| 14.2 | 26 | 0.647887 | 10 | 71 | 3.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 4 | 27 | 17.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 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 |
cbcb73680581637fe71cff6237866dd7c95d707f | 128 | py | Python | Backend/splitpay/user/views.py | sauravsharma1/SplitPay-HCI | 31ca7801d2849f830a75e317fb731a0d5e36464c | [
"MIT"
] | 3 | 2021-08-19T14:50:39.000Z | 2021-08-19T18:32:10.000Z | Backend/splitpay/user/views.py | tanmayb104/SplitPay-HCI | b7a22639670706fb7b173c25a7ebbb84e929cecb | [
"MIT"
] | null | null | null | Backend/splitpay/user/views.py | tanmayb104/SplitPay-HCI | b7a22639670706fb7b173c25a7ebbb84e929cecb | [
"MIT"
] | 2 | 2021-05-27T20:40:24.000Z | 2021-06-04T20:10:38.000Z | from rest_auth.registration.views import RegisterView
class CustomRegisterView(RegisterView):
queryset = User.objects.all() | 32 | 53 | 0.820313 | 14 | 128 | 7.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101563 | 128 | 4 | 54 | 32 | 0.904348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
cbe072e599c2dea7eac3454d339db9f06a9d4ed3 | 73 | py | Python | run.py | cyprieng/twitter-contest | 5ceecce6fb3476e547a3428fc1e2e91086dc3aba | [
"MIT"
] | null | null | null | run.py | cyprieng/twitter-contest | 5ceecce6fb3476e547a3428fc1e2e91086dc3aba | [
"MIT"
] | null | null | null | run.py | cyprieng/twitter-contest | 5ceecce6fb3476e547a3428fc1e2e91086dc3aba | [
"MIT"
] | null | null | null | from twitter_contest import TwitterContest
t = TwitterContest()
t.run()
| 14.6 | 42 | 0.794521 | 9 | 73 | 6.333333 | 0.777778 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 73 | 4 | 43 | 18.25 | 0.890625 | 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 |
1db0c4497f2a6e02df6cfe85a07a0fe0139800b8 | 184 | py | Python | lesson4/lesson4.6.py | madskoefoed/Machine-Learning-for-Trading.py | e79884e668470500b9b55e8f86aa2a1f734e60c3 | [
"MIT"
] | null | null | null | lesson4/lesson4.6.py | madskoefoed/Machine-Learning-for-Trading.py | e79884e668470500b9b55e8f86aa2a1f734e60c3 | [
"MIT"
] | null | null | null | lesson4/lesson4.6.py | madskoefoed/Machine-Learning-for-Trading.py | e79884e668470500b9b55e8f86aa2a1f734e60c3 | [
"MIT"
] | null | null | null | # Lesson 4.6 - Creating NumPy arrays
import numpy as np
def test_run():
print(np.array([2,3,4]))
print(np.array([(2,3,4), (5,6,7)]))
if __name__ == "__main__":
test_run() | 20.444444 | 39 | 0.608696 | 33 | 184 | 3.090909 | 0.636364 | 0.137255 | 0.235294 | 0.254902 | 0.294118 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.184783 | 184 | 9 | 40 | 20.444444 | 0.606667 | 0.184783 | 0 | 0 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1de2c13dbd5538249161f89f0c82bb1c49ece330 | 16,247 | py | Python | hearthbreaker/tags/selector.py | yoazmenda/Hearthstone_deck_builder | b8fd89295b70d45f22a9e1834de789dc57c2ab54 | [
"MIT"
] | null | null | null | hearthbreaker/tags/selector.py | yoazmenda/Hearthstone_deck_builder | b8fd89295b70d45f22a9e1834de789dc57c2ab54 | [
"MIT"
] | null | null | null | hearthbreaker/tags/selector.py | yoazmenda/Hearthstone_deck_builder | b8fd89295b70d45f22a9e1834de789dc57c2ab54 | [
"MIT"
] | null | null | null | import abc
from hearthbreaker.tags.base import Selector, Player, Picker, Function, Amount, Condition
import hearthbreaker.tags.condition
class FriendlyPlayer(Player):
def match(self, source, obj):
return obj.player is source.player
def get_players(self, target):
return [target]
def __to_json__(self):
return "friendly"
class EnemyPlayer(Player):
def get_players(self, target):
return [target.opponent]
def match(self, source, obj):
return obj.player is source.player.opponent
def __to_json__(self):
return "enemy"
class BothPlayer(Player):
def match(self, source, obj):
return True
def get_players(self, target):
return [target.opponent, target]
def __to_json__(self):
return "both"
class PlayerOne(Player):
def match(self, source, obj):
return obj.player is source.player.game.players[0]
def get_players(self, target):
return [target.game.players[0]]
def __to_json__(self):
return "player_one"
class PlayerTwo(Player):
def match(self, source, obj):
return obj.player is source.player.game.players[1]
def get_players(self, target):
return [target.game.players[1]]
def __to_json__(self):
return "player_two"
class CurrentPlayer(Player):
def match(self, source, obj):
return obj.player is source.player.game.current_player
def get_players(self, target):
return [target.game.current_player]
def __to_json__(self):
return "current_player"
class OtherPlayer(Player):
def match(self, source, obj):
return obj.player is source.player.game.other_player
def get_players(self, target):
return [target.game.other_player]
def __to_json__(self):
return "other_player"
class AllPicker(Picker):
def pick(self, source, targets):
return targets
def __to_json__(self):
return {
'name': "all"
}
class UserPicker(Picker):
def pick(self, source, targets):
if source.card.current_target:
return [source.card.current_target]
filtered_targets = [target for target in filter(lambda t: t.player is source.player or not t.stealth, targets)]
if len(filtered_targets) > 0:
source.card.current_target = source.player.agent.choose_target(filtered_targets)
return [source.card.current_target]
return filtered_targets
def __to_json__(self):
return {
'name': "user"
}
class RandomPicker(Picker):
def __init__(self, count=1):
self.count = count
def pick(self, source, targets):
for i in range(self.count):
if len(targets) > 0:
yield source.player.game.random_choice(targets)
targets = [target for target in filter(lambda t: not (t.is_minion() and t.dead), targets)]
def __to_json__(self):
return {
'name': "random",
'count': self.count
}
class CardSelector(Selector, metaclass=abc.ABCMeta):
def __init__(self, players=FriendlyPlayer(), condition=None):
self.players = players
self.condition = condition
def get_targets(self, source, obj=None):
players = self.players.get_players(source.player)
targets = []
for p in players:
for card in p.hand:
if self.match(source, card):
targets.append(card)
return targets
def match(self, source, obj):
if self.condition:
return obj.is_card() and self.players.match(source, obj) and self.condition.evaluate(source, obj)
return obj.is_card() and self.players.match(source, obj)
def __to_json__(self):
if self.condition:
return {
'name': 'card',
'players': self.players,
'condition': self.condition,
}
return {
'name': 'card',
'players': self.players
}
def __from_json__(self, players='friendly', condition=None):
self.players = Player.from_json(players)
if condition:
self.condition = Condition.from_json(**condition)
else:
self.condition = None
return self
class LastDrawnSelector(CardSelector):
def __init__(self, players=FriendlyPlayer()):
super().__init__(players)
def get_targets(self, source, obj=None):
if source.player.fatigue > 0:
return []
players = self.players.get_players(source.player)
return [player.hand[-1] for player in players]
def match(self, source, obj):
return obj in self.get_targets(source, obj)
def __to_json__(self):
return {
'name': 'last_drawn',
'players': self.players
}
def __from_json__(self, players='friendly'):
self.players = Player.from_json(players)
return self
class HeroSelector(Selector):
def __init__(self, players=FriendlyPlayer(), picker=AllPicker()):
self.players = players
self.picker = picker
def get_targets(self, source, obj=None):
return [p.hero for p in self.players.get_players(source.player)]
def choose_targets(self, source, target=None):
possible_targets = self.get_targets(source, target)
return self.picker.pick(source, possible_targets)
def match(self, source, obj):
return obj.is_hero() and self.players.match(source, obj)
def __to_json__(self):
return {
'name': 'hero',
'players': self.players,
'picker': self.picker
}
def __from_json__(self, picker, players='friendly'):
self.players = Player.from_json(players)
self.picker = Picker.from_json(**picker)
return self
class PlayerSelector(Selector):
def __init__(self, players=FriendlyPlayer()):
self.players = players
def get_targets(self, source, obj=None):
return self.players.get_players(source.player)
def match(self, source, obj):
return source.player is obj
def __to_json__(self):
return {
'name': 'player',
'players': self.players
}
def __from_json__(self, players='friendly'):
self.players = Player.from_json(players)
return self
class MinionSelector(Selector):
def __init__(self, condition=hearthbreaker.tags.condition.MinionIsNotTarget(), players=FriendlyPlayer(),
picker=AllPicker()):
self.condition = condition
self.players = players
self.picker = picker
def get_targets(self, source, obj=None):
players = self.players.get_players(source.player)
targets = []
for p in players:
for minion in p.minions:
if self.match(source, minion):
targets.append(minion)
return targets
def choose_targets(self, source, target=None):
possible_targets = self.get_targets(source, target)
return self.picker.pick(source, possible_targets)
def match(self, source, obj):
if self.condition:
return not obj.is_card() and obj.is_minion() and not obj.dead and self.players.match(source, obj)\
and self.condition.evaluate(source, obj)
else:
return obj.is_minion() and self.players.match(source, obj) and not obj.dead
def __to_json__(self):
if self.condition:
return {
'name': 'minion',
'condition': self.condition,
'players': self.players,
'picker': self.picker
}
return {
'name': 'minion',
'players': self.players,
'picker': self.picker
}
def __from_json__(self, players, picker, condition=None):
if condition:
self.condition = hearthbreaker.tags.condition.Condition.from_json(**condition)
else:
self.condition = None
self.players = Player.from_json(players)
self.picker = Picker.from_json(**picker)
return self
class DeadMinionSelector(Selector):
def __init__(self, condition=None, players=FriendlyPlayer()):
self.condition = condition
self.players = players
def get_targets(self, source, obj=None):
players = self.players.get_players(source.player)
targets = []
for p in players:
for minion in p.dead_this_turn:
if self.match(source, minion):
targets.append(minion)
return targets
def match(self, source, obj):
if self.condition:
return not obj.is_card() and obj.is_minion() and self.players.match(source, obj) \
and self.condition.evaluate(source, obj)
else:
return obj.is_minion() and self.players.match(source, obj)
def __to_json__(self):
if self.condition:
return {
'name': 'dead_minion',
'condition': self.condition,
'players': self.players,
}
return {
'name': 'minion',
'players': self.players,
}
def __from_json__(self, players, condition=None):
if condition:
self.condition = hearthbreaker.tags.condition.Condition.from_json(**condition)
else:
self.condition = None
self.players = Player.from_json(players)
return self
class CharacterSelector(Selector):
def __init__(self, condition=hearthbreaker.tags.condition.MinionIsNotTarget(), players=FriendlyPlayer(),
picker=AllPicker()):
self.condition = condition
self.players = players
self.picker = picker
def get_targets(self, source, obj=None):
players = self.players.get_players(source.player)
targets = []
for p in players:
for minion in p.minions:
if self.match(source, minion):
targets.append(minion)
for p in players: # Done in this order for historical reasons.
if self.match(source, p.hero):
targets.append(p.hero)
return targets
def choose_targets(self, source, target=None):
possible_targets = self.get_targets(source, target)
return self.picker.pick(source, possible_targets)
def match(self, source, obj):
if self.condition:
return not obj.is_card() and not obj.dead and self.players.match(source, obj) \
and self.condition.evaluate(source, obj)
else:
return not obj.is_card() and not obj.dead and self.players.match(source, obj)
def __to_json__(self):
if self.condition:
return {
'name': 'character',
'condition': self.condition,
'players': self.players,
'picker': self.picker
}
return {
'name': 'character',
'players': self.players,
'picker': self.picker,
}
def __from_json__(self, players, picker, condition=None):
if condition:
self.condition = hearthbreaker.tags.condition.Condition.from_json(**condition)
else:
self.condition = None
self.players = Player.from_json(players)
self.picker = Picker.from_json(**picker)
return self
class SelfSelector(Selector):
def get_targets(self, source, obj=None):
return [source]
def match(self, source, obj):
return source is obj
def __to_json__(self):
return {
'name': 'self'
}
class ConstantSelector(Selector):
def __init__(self, targets):
self.targets = targets
def match(self, source, obj):
return obj.is_character() and obj.born in self.targets
def get_targets(self, source, target=None):
result = []
for t in self.targets:
for player in target.game.players:
for minion in player.minions:
if minion.born == t:
result.append(minion)
return result
def __to_json__(self):
return {
'name': 'constant',
'targets': self.targets
}
class TargetSelector(Selector):
def __init__(self, condition=None):
super().__init__()
self.condition = condition
def get_targets(self, source, obj=None):
if not self.condition or self.condition.evaluate(source, obj):
return [obj]
return []
def match(self, source, obj):
return False
def __to_json__(self):
if self.condition:
return {
'name': 'target',
'condition': self.condition,
}
return {
'name': 'target',
}
def __from_json__(self, condition=None):
if condition:
self.condition = hearthbreaker.tags.condition.Condition.from_json(**condition)
else:
self.condition = None
return self
class WeaponSelector(Selector):
def __init__(self, players=FriendlyPlayer()):
self.players = players
def get_targets(self, source, obj=None):
return [p.hero.weapon for p in self.players.get_players(source.player) if p.hero.weapon]
def match(self, source, obj):
return obj.is_weapon() and self.players.match(source, obj)
def __to_json__(self):
return {
'name': 'weapon',
'players': self.players
}
def __from_json__(self, players='friendly'):
self.players = Player.from_json(players)
return self
class Count(Function):
def __init__(self, selector):
self.selector = selector
def do(self, target, *args):
return len(self.selector.get_targets(target))
def __to_json__(self):
return {
'name': 'count',
'selector': self.selector
}
def __from_json__(self, selector):
self.selector = Selector.from_json(**selector)
return self
class Attribute(Function):
def __init__(self, attribute, selector):
self.attribute = attribute
self.selector = selector
def do(self, target, *args):
targets = self.selector.get_targets(target)
total = 0
for t in targets:
if self.attribute == "damage":
total += t.calculate_max_health() - t.health
elif self.attribute == 'mana':
total += t.card.mana
elif self.attribute == "attack":
total += t.calculate_attack()
else:
total += getattr(t, self.attribute)
return total
def __to_json__(self):
return {
'name': 'attribute',
'attribute': self.attribute,
'selector': self.selector
}
def __from_json__(self, attribute, selector):
self.attribute = attribute
self.selector = Selector.from_json(**selector)
return self
class Difference(Function, metaclass=Amount):
def __init__(self, value):
self.value = value
def do(self, target, *args):
return max(0, self.value - self.get_amount(target, target, *args))
def __to_json__(self):
return {
'name': 'difference',
'value': self.value,
}
def __from_json__(self, value):
self.value = value
return self
class RandomAmount(Function):
def __init__(self, minimum, maximum):
self.minimum = minimum
self.maximum = maximum
def do(self, target, *args):
return target.player.game._generate_random_between(self.minimum, self.maximum)
def __to_json__(self):
return {
'name': 'random_amount',
'minimum': self.minimum,
'maximum': self.maximum,
}
class EventValue(Function):
def __init__(self):
pass
def do(self, target, *args):
return args[0]
def __to_json__(self):
return {
'name': 'event_value'
}
| 28.304878 | 119 | 0.593279 | 1,808 | 16,247 | 5.128872 | 0.075774 | 0.067616 | 0.039254 | 0.03645 | 0.761889 | 0.717567 | 0.654696 | 0.602502 | 0.537259 | 0.466408 | 0 | 0.00106 | 0.303133 | 16,247 | 573 | 120 | 28.354276 | 0.817965 | 0.002585 | 0 | 0.585034 | 0 | 0 | 0.036783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229025 | false | 0.002268 | 0.006803 | 0.115646 | 0.514739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
1de4e3f27e701c127070d7617656562cbc856840 | 243 | py | Python | smdc/__init__.py | thinkdolabs/semantic-markdown-converter | 50c38243e8f11fac06fa36d2d5140c2a413e9c26 | [
"MIT"
] | 1 | 2020-12-17T02:49:08.000Z | 2020-12-17T02:49:08.000Z | smdc/__init__.py | thinkdolabs/semantic-markdown-converter | 50c38243e8f11fac06fa36d2d5140c2a413e9c26 | [
"MIT"
] | null | null | null | smdc/__init__.py | thinkdolabs/semantic-markdown-converter | 50c38243e8f11fac06fa36d2d5140c2a413e9c26 | [
"MIT"
] | null | null | null | from .note import Note, Relationship
from .args import convert_args, server_args
from smdc.format import FORMAT_TYPES
from .convert import convert
from .parse import parse_folder, parse_note, note_name, obsidian_url
from .server import server
| 34.714286 | 68 | 0.835391 | 37 | 243 | 5.297297 | 0.405405 | 0.132653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119342 | 243 | 6 | 69 | 40.5 | 0.915888 | 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 |
3804e733c033152dc0e49218cebb6af48113f852 | 1,375 | py | Python | test.py | Abhinav-ranish/covid-script | 143a26c2682394aa37366f5ea90ff59c3af92478 | [
"MIT"
] | 2 | 2021-09-11T19:31:17.000Z | 2021-09-18T09:10:03.000Z | test.py | Abhinav-ranish/covid-script | 143a26c2682394aa37366f5ea90ff59c3af92478 | [
"MIT"
] | null | null | null | test.py | Abhinav-ranish/covid-script | 143a26c2682394aa37366f5ea90ff59c3af92478 | [
"MIT"
] | null | null | null |
stats = [
{"ID":"900ee27f-fa31-4656-bce1-1f7fc2cfbf1a","Country":"Qatar","CountryCode":"QA","Province":"","City":"","CityCode":"","Lat":"25.35","Lon":"51.18","Confirmed":233567,"Deaths":602,"Recovered":0,"Active":232965,"Date":"2021-09-06T00:00:00Z"},
{"ID":"13a35a5c-e9d7-4d61-8ddc-0fbdf3f0a54b","Country":"Qatar","CountryCode":"QA","Province":"","City":"","CityCode":"","Lat":"25.35","Lon":"51.18","Confirmed":233756,"Deaths":603,"Recovered":0,"Active":233153,"Date":"2021-09-07T00:00:00Z"},
{"ID":"0ab90d04-4749-49b6-a081-414af2677be0","Country":"Qatar","CountryCode":"QA","Province":"","City":"","CityCode":"","Lat":"25.35","Lon":"51.18","Confirmed":233928,"Deaths":604,"Recovered":0,"Active":233324,"Date":"2021-09-08T00:00:00Z"},
{"ID":"80e858ad-dcf2-43b5-83c8-c01edbacb870","Country":"Qatar","CountryCode":"QA","Province":"","City":"","CityCode":"","Lat":"25.35","Lon":"51.18","Confirmed":234093,"Deaths":604,"Recovered":0,"Active":233489,"Date":"2021-09-09T00:00:00Z"},
{"ID":"37f06a00-a002-4370-bed8-e09eb593e21a","Country":"Qatar","CountryCode":"QA","Province":"","City":"","CityCode":"","Lat":"25.35","Lon":"51.18","Confirmed":234236,"Deaths":604,"Recovered":0,"Active":233632,"Date":"2021-09-10T00:00:00Z"}
]
statsdata = (stats.json())
for country in statsdata:
print(country['Country']) #How do i print only the last line values
| 105.769231 | 242 | 0.647273 | 185 | 1,375 | 4.810811 | 0.437838 | 0.067416 | 0.129213 | 0.140449 | 0.466292 | 0.382022 | 0.382022 | 0.382022 | 0.382022 | 0.382022 | 0 | 0.215046 | 0.042909 | 1,375 | 12 | 243 | 114.583333 | 0.461246 | 0.029091 | 0 | 0 | 0 | 0 | 0.584406 | 0.13626 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
381e1b9ed449d0e9940d12095c8b21c794da9866 | 125 | py | Python | bot/src/yellowbot/config.py | rainbowbreeze/yellowbutler | 1dac7d312fce78127cac45f17da526c6a66be36a | [
"Apache-2.0"
] | null | null | null | bot/src/yellowbot/config.py | rainbowbreeze/yellowbutler | 1dac7d312fce78127cac45f17da526c6a66be36a | [
"Apache-2.0"
] | null | null | null | bot/src/yellowbot/config.py | rainbowbreeze/yellowbutler | 1dac7d312fce78127cac45f17da526c6a66be36a | [
"Apache-2.0"
] | null | null | null | """Configuration file for the project
See example at
- https://github.com/airbnb/superset/blob/master/superset/config.py
""" | 25 | 67 | 0.768 | 18 | 125 | 5.333333 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088 | 125 | 5 | 68 | 25 | 0.842105 | 0.944 | 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 |
382af1efa8f5130678a884fa28bff1831e69ffc8 | 2,302 | py | Python | tests/test_parser.py | tomasfarias/Pygists | 11fcddc3b8be660c9d0afa4a612cf55b22d02393 | [
"MIT"
] | 1 | 2020-07-09T05:23:29.000Z | 2020-07-09T05:23:29.000Z | tests/test_parser.py | tomasfarias/Pygists | 11fcddc3b8be660c9d0afa4a612cf55b22d02393 | [
"MIT"
] | null | null | null | tests/test_parser.py | tomasfarias/Pygists | 11fcddc3b8be660c9d0afa4a612cf55b22d02393 | [
"MIT"
] | 1 | 2021-07-01T03:43:56.000Z | 2021-07-01T03:43:56.000Z | import datetime as dt
from pygists.cli import create_parser
def test_parse_ls_command():
parser = create_parser()
args = parser.parse_args([
'ls', '-s', '2019-01-01T12:00:01', '-u', 'test_user', '-t', 'test_token'
])
assert args.subcommand == 'ls'
assert args.username == 'test_user'
assert args.token == 'test_token'
assert args.since == dt.datetime(2019, 1, 1, 12, 0, 1)
def test_parse_create_command():
parser = create_parser()
args = parser.parse_args([
'create', 'path/to/file.py', 'path/to/another_file.py',
'-d', 'My gist', '-u', 'test_user', '-t', 'test_token',
])
assert args.subcommand == 'create'
assert args.username == 'test_user'
assert args.token == 'test_token'
assert args.file == ['path/to/file.py', 'path/to/another_file.py']
assert args.description == 'My gist'
def test_parse_get_command():
parser = create_parser()
args = parser.parse_args([
'get', '1a2b3c4d5e6f', '--json', '-u', 'test_user', '-t', 'test_token',
])
assert args.subcommand == 'get'
assert args.username == 'test_user'
assert args.token == 'test_token'
assert args.id == '1a2b3c4d5e6f'
assert args.json is True
assert args.show_content is False
def test_parse_update_command():
parser = create_parser()
args = parser.parse_args([
'update', '1a2b3c4d5e6f', '--add', 'path/to/file.py', 'path/to/another_file.py',
'--modify', 'old_name.py=path/to/new_file.py',
'--delete', 'delete_file.py', 'delete_file2.py',
'-u', 'test_user', '-t', 'test_token',
])
assert args.subcommand == 'update'
assert args.username == 'test_user'
assert args.token == 'test_token'
assert args.id == '1a2b3c4d5e6f'
assert args.add == ['path/to/file.py', 'path/to/another_file.py']
assert args.modify == ['old_name.py=path/to/new_file.py']
assert args.delete == ['delete_file.py', 'delete_file2.py']
def test_parse_delete_command():
parser = create_parser()
args = parser.parse_args([
'delete', '1a2b3c4d5e6f', '-u', 'test_user', '-t', 'test_token',
])
assert args.subcommand == 'delete'
assert args.username == 'test_user'
assert args.token == 'test_token'
assert args.id == '1a2b3c4d5e6f'
| 31.108108 | 88 | 0.627281 | 306 | 2,302 | 4.526144 | 0.186275 | 0.187726 | 0.108303 | 0.137184 | 0.757401 | 0.757401 | 0.757401 | 0.712635 | 0.553791 | 0.347292 | 0 | 0.033696 | 0.200695 | 2,302 | 73 | 89 | 31.534247 | 0.719022 | 0 | 0 | 0.491228 | 0 | 0 | 0.288445 | 0.066898 | 0 | 0 | 0 | 0 | 0.45614 | 1 | 0.087719 | false | 0 | 0.035088 | 0 | 0.122807 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 |
383f21317f15b45b57a9549a2ba729898455ea2f | 261 | py | Python | Python/leetcode/PascalsTriangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/leetcode/PascalsTriangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/leetcode/PascalsTriangle.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 1.12.2016
@author: Darren
''''''
Given numRows, generate the first numRows of Pascal s triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"
'''
| 11.863636 | 65 | 0.475096 | 38 | 261 | 3.263158 | 0.631579 | 0.080645 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133721 | 0.340996 | 261 | 21 | 66 | 12.428571 | 0.587209 | 0.858238 | 0 | 0.153846 | 1 | 0 | 0.964103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69736ae04c7ddb7685097e11cf97206ba1557f36 | 66 | py | Python | op2d/hal/backend/pihelpers/__init__.py | op2-project/op2-daemon | fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc | [
"FTL"
] | 10 | 2015-04-07T19:13:25.000Z | 2020-10-04T20:17:39.000Z | op2d/hal/backend/pihelpers/__init__.py | op2-project/op2-daemon | fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc | [
"FTL"
] | null | null | null | op2d/hal/backend/pihelpers/__init__.py | op2-project/op2-daemon | fb7878b3e7da44c2f639fdd9e09f30ca3fddf6cc | [
"FTL"
] | null | null | null |
"""Some utility modules for interfacing with the Raspberry Pi"""
| 22 | 64 | 0.757576 | 9 | 66 | 5.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 66 | 2 | 65 | 33 | 0.892857 | 0.878788 | 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 |
6983e5c055f125284eb7902921df700b24a919e1 | 137 | py | Python | lens/parsers/__init__.py | port-zero/lens | 06b52dd8ac3dde2f7f162a567f8e5e961e7209b1 | [
"MIT"
] | 11 | 2016-11-25T20:07:15.000Z | 2021-04-03T07:39:38.000Z | lens/parsers/__init__.py | port-zero/lens | 06b52dd8ac3dde2f7f162a567f8e5e961e7209b1 | [
"MIT"
] | null | null | null | lens/parsers/__init__.py | port-zero/lens | 06b52dd8ac3dde2f7f162a567f8e5e961e7209b1 | [
"MIT"
] | 2 | 2016-11-30T11:49:42.000Z | 2017-09-18T04:57:03.000Z | from lens.parsers.json import Parser as Json
from lens.parsers.xml import Parser as Xml
parsers = {
"json": Json,
"xml": Xml
}
| 17.125 | 44 | 0.678832 | 21 | 137 | 4.428571 | 0.380952 | 0.172043 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218978 | 137 | 7 | 45 | 19.571429 | 0.869159 | 0 | 0 | 0 | 0 | 0 | 0.051095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
698cc20668d76a7cfd9104c3bbb4219339272338 | 375 | py | Python | korbinian/__init__.py | teese/korbinian | 3715b40830957f04c4f44b01025449bc6b6a936e | [
"MIT"
] | 3 | 2018-03-08T12:03:50.000Z | 2018-04-09T12:44:39.000Z | korbinian/__init__.py | teese/korbinian | 3715b40830957f04c4f44b01025449bc6b6a936e | [
"MIT"
] | 2 | 2018-06-06T09:51:11.000Z | 2018-08-06T15:56:41.000Z | korbinian/__init__.py | teese/korbinian | 3715b40830957f04c4f44b01025449bc6b6a936e | [
"MIT"
] | null | null | null | import korbinian.common
import korbinian.cons_ratio
import korbinian.fasta
import korbinian.fastagap
import korbinian.gap
import korbinian.gap_figs
import korbinian.prot_list
import korbinian.simap_download
import korbinian.simap_parse
import korbinian.blast
import korbinian.filtering
import korbinian.utils
import korbinian.run_korbinian
import korbinian.MSA_normalisation
| 25 | 34 | 0.888 | 49 | 375 | 6.653061 | 0.408163 | 0.644172 | 0.110429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074667 | 375 | 14 | 35 | 26.785714 | 0.939481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
69965a0c4f266c305763bc6f1613b45c4c7c33b5 | 146 | py | Python | problemsets/Codeforces/Python/A1177.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A1177.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/Python/A1177.py | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | """
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
k=int(input())
print(''.join(map(str,range(1,k+1)))[k-1]) | 18.25 | 42 | 0.609589 | 22 | 146 | 4.045455 | 0.727273 | 0.292135 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.123288 | 146 | 8 | 42 | 18.25 | 0.671875 | 0.513699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
69b70323e38f867f7815f861fd97033e54ee935e | 23 | py | Python | example_data/subdir/yes01.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | example_data/subdir/yes01.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | example_data/subdir/yes01.py | Cogmob/epr | 7217c978afd2af87cce06db0ad1e0ab7e395ee9d | [
"MIT"
] | null | null | null | afdskadfj
epr(((((
| 7.666667 | 12 | 0.521739 | 2 | 23 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 23 | 2 | 13 | 11.5 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
69f33425d5865f53d275178d58bf066fa90bc701 | 121 | py | Python | scripts/hello_world_brunosxs.py | breezage/Hacktoberfest-1 | 6f6d52248c79c0e72fd13b599500318fce3f9ab0 | [
"MIT"
] | null | null | null | scripts/hello_world_brunosxs.py | breezage/Hacktoberfest-1 | 6f6d52248c79c0e72fd13b599500318fce3f9ab0 | [
"MIT"
] | null | null | null | scripts/hello_world_brunosxs.py | breezage/Hacktoberfest-1 | 6f6d52248c79c0e72fd13b599500318fce3f9ab0 | [
"MIT"
] | 1 | 2019-10-24T06:45:21.000Z | 2019-10-24T06:45:21.000Z | # LANGUAGE: Python
# AUTHOR: BrunoSXS
# GITHUB: https://github.com/brunosxs
#!/usr/bin/python3
print ("Hello, World!")
| 15.125 | 37 | 0.694215 | 15 | 121 | 5.6 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.123967 | 121 | 7 | 38 | 17.285714 | 0.783019 | 0.710744 | 0 | 0 | 0 | 0 | 0.433333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
69fcffab7857dcb039cfa9fb3eba8cde0c027e4c | 46 | py | Python | Chapter 07/Chap07_Example7.58.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.58.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | Chapter 07/Chap07_Example7.58.py | Anancha/Programming-Techniques-using-Python | e80c329d2a27383909d358741a5cab03cb22fd8b | [
"MIT"
] | null | null | null | t1 = ()
print(t1) # ET1
print(type(t1)) # ET2
| 11.5 | 21 | 0.565217 | 8 | 46 | 3.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 0.195652 | 46 | 3 | 22 | 15.333333 | 0.567568 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 |
3851c9af285e29a910e4c21de7825012b9fee7c4 | 34 | py | Python | tests/__init__.py | mmgalushka/object-detection-vae | f96d59cf3d63a4a8b84e7371b709bba7228607a8 | [
"MIT"
] | null | null | null | tests/__init__.py | mmgalushka/object-detection-vae | f96d59cf3d63a4a8b84e7371b709bba7228607a8 | [
"MIT"
] | null | null | null | tests/__init__.py | mmgalushka/object-detection-vae | f96d59cf3d63a4a8b84e7371b709bba7228607a8 | [
"MIT"
] | null | null | null | """
The Deeptrace test module.
""" | 11.333333 | 26 | 0.647059 | 4 | 34 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 3 | 27 | 11.333333 | 0.758621 | 0.764706 | 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 |
3856d6027fdd71b7d6e1504c1b289b22634dcebd | 630 | py | Python | terminaltables/__init__.py | liiight/terminaltables | 0ed2d3e7d658d14292899532a881d16477b74310 | [
"MIT"
] | 1 | 2017-03-16T12:02:11.000Z | 2017-03-16T12:02:11.000Z | terminaltables/__init__.py | liiight/terminaltables | 0ed2d3e7d658d14292899532a881d16477b74310 | [
"MIT"
] | null | null | null | terminaltables/__init__.py | liiight/terminaltables | 0ed2d3e7d658d14292899532a881d16477b74310 | [
"MIT"
] | 1 | 2021-04-20T11:13:21.000Z | 2021-04-20T11:13:21.000Z | """Generate simple tables in terminals from a nested list of strings.
Use SingleTable or DoubleTable instead of AsciiTable for box-drawing characters.
https://github.com/Robpol86/terminaltables
https://pypi.python.org/pypi/terminaltables
"""
from terminaltables.ascii_table import AsciiTable # noqa
from terminaltables.github_table import GithubFlavoredMarkdownTable # noqa
from terminaltables.other_tables import DoubleTable # noqa
from terminaltables.other_tables import SingleTable # noqa
from terminaltables.other_tables import PorcelainTable # noqa
__author__ = '@Robpol86'
__license__ = 'MIT'
__version__ = '3.0.0'
| 35 | 80 | 0.815873 | 76 | 630 | 6.539474 | 0.552632 | 0.181087 | 0.177062 | 0.162978 | 0.235412 | 0.235412 | 0 | 0 | 0 | 0 | 0 | 0.012545 | 0.114286 | 630 | 17 | 81 | 37.058824 | 0.878136 | 0.415873 | 0 | 0 | 1 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.625 | 0 | 0.625 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
388bed36d460757341b816da4a713fa4231e376f | 31 | py | Python | chempy/_release.py | Narsil/chempy | ac7217f45a8cfe3b11ca771f78f0a04c07708818 | [
"BSD-2-Clause"
] | 30 | 2015-11-12T09:18:36.000Z | 2022-03-16T23:25:03.000Z | chempy/_release.py | Narsil/chempy | ac7217f45a8cfe3b11ca771f78f0a04c07708818 | [
"BSD-2-Clause"
] | 9 | 2016-01-01T22:37:28.000Z | 2018-08-15T11:17:48.000Z | pyneqsys/_release.py | bjodah/pyneqsys | 1e8b63ee6e820d33a87b95c057655df03e1e4fc6 | [
"BSD-2-Clause"
] | 4 | 2018-01-17T02:53:21.000Z | 2021-02-02T22:52:56.000Z | __version__ = "0.6.0.dev0+git"
| 15.5 | 30 | 0.677419 | 6 | 31 | 2.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.096774 | 31 | 1 | 31 | 31 | 0.464286 | 0 | 0 | 0 | 0 | 0 | 0.451613 | 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 |
38a607fdd14e14cfc9b3f2afc00fb7e6f1d91838 | 745 | py | Python | screen/vector.py | ablarry/pygraphforce | 6cb3481c97eaf029764fb3037cab0dc7425477a5 | [
"MIT"
] | null | null | null | screen/vector.py | ablarry/pygraphforce | 6cb3481c97eaf029764fb3037cab0dc7425477a5 | [
"MIT"
] | null | null | null | screen/vector.py | ablarry/pygraphforce | 6cb3481c97eaf029764fb3037cab0dc7425477a5 | [
"MIT"
] | null | null | null | import math
class Vector:
def __init__(self, x, y):
self.x = x
self.y = y
def point(self):
point = (math.floor(self.x), math.floor(self.y))
return point
def __mul__(self, other):
if isinstance(other, self.__class__):
return Vector(self.x * other.x, self.y * other.y)
else:
return Vector(self.x * other, self.y * other)
def __sub__(self, other):
return Vector(self.x - other.x, self.y - other.y)
def distance(self):
return math.sqrt(self.x ** 2 + self.y ** 2)
def __add__(self, other):
return Vector(self.x + other.x, self.y + other.y)
def __str__(self):
return "(" + str(self.x) + ", " + str(self.y) + ")" | 25.689655 | 61 | 0.547651 | 107 | 745 | 3.588785 | 0.214953 | 0.117188 | 0.0625 | 0.177083 | 0.385417 | 0.328125 | 0.328125 | 0.328125 | 0.328125 | 0.328125 | 0 | 0.003846 | 0.302013 | 745 | 29 | 62 | 25.689655 | 0.734615 | 0 | 0 | 0 | 0 | 0 | 0.005362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.047619 | 0.190476 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
38bad96cf1e58d5faa9b1ac62edae13c6093cd4d | 768 | py | Python | trace-viewer/PRESUBMIT.py | RSB4760/apq8016_external_chromium-trace | 45b575bb05b3714142a9d67b9bd153740ef99226 | [
"BSD-3-Clause"
] | null | null | null | trace-viewer/PRESUBMIT.py | RSB4760/apq8016_external_chromium-trace | 45b575bb05b3714142a9d67b9bd153740ef99226 | [
"BSD-3-Clause"
] | null | null | null | trace-viewer/PRESUBMIT.py | RSB4760/apq8016_external_chromium-trace | 45b575bb05b3714142a9d67b9bd153740ef99226 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
def RunChecks(input_api, output_api):
results = []
from build import presubmit_checks
results += presubmit_checks.RunChecks(input_api)
return map(output_api.PresubmitError, results)
def CheckChange(input_api, output_api):
original_sys_path = sys.path
try:
sys.path += [input_api.PresubmitLocalPath()]
return RunChecks(input_api, output_api)
finally:
sys.path = original_sys_path
def CheckChangeOnUpload(input_api, output_api):
return CheckChange(input_api, output_api)
def CheckChangeOnCommit(input_api, output_api):
return CheckChange(input_api, output_api)
| 28.444444 | 72 | 0.777344 | 107 | 768 | 5.364486 | 0.457944 | 0.125436 | 0.170732 | 0.207317 | 0.317073 | 0.1777 | 0.1777 | 0.1777 | 0.1777 | 0.1777 | 0 | 0.006107 | 0.147135 | 768 | 26 | 73 | 29.538462 | 0.870229 | 0.201823 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.117647 | 0.117647 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
c7ff35ee1e1148e038af0fa213f5d0c07a8aa7d3 | 13,510 | py | Python | tests/test_cli.py | tklebanoff/kapitan | 1e55f356ef0212f98fdf76bddc25f183dd42e694 | [
"Apache-2.0"
] | null | null | null | tests/test_cli.py | tklebanoff/kapitan | 1e55f356ef0212f98fdf76bddc25f183dd42e694 | [
"Apache-2.0"
] | null | null | null | tests/test_cli.py | tklebanoff/kapitan | 1e55f356ef0212f98fdf76bddc25f183dd42e694 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Kapitan Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"cli tests"
import base64
import contextlib
import io
import os
import tempfile
import shutil
import subprocess
import sys
import unittest
from kapitan.cli import main
SECRETS_PATH = tempfile.mkdtemp()
# set GNUPGHOME if only running this test
# otherwise it will reuse the value from test_gpg.py
if os.environ.get("GNUPGHOME", None) is None:
GNUPGHOME = tempfile.mkdtemp()
os.environ["GNUPGHOME"] = GNUPGHOME
class CliFuncsTest(unittest.TestCase):
def setUp(self):
example_key = 'examples/kubernetes/secrets/example@kapitan.dev.key'
example_key = os.path.join(os.getcwd(), example_key)
example_key_ownertrust = tempfile.mktemp()
# always trust this key - for testing only!
with open(example_key_ownertrust, "w") as fp:
fp.write("D9234C61F58BEB3ED8552A57E28DC07A3CBFAE7C:6\n")
subprocess.run(["gpg", "--import", example_key])
subprocess.run(["gpg", "--import-ownertrust", example_key_ownertrust])
os.remove(example_key_ownertrust)
def test_cli_secret_write_reveal_gpg(self):
"""
run $ kapitan secrets --write gpg:test_secret
and $ kapitan secrets --reveal
with example@kapitan.dev recipient
"""
test_secret_content = "I am a secret!"
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "gpg:test_secret",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH,
"--recipients", "example@kapitan.dev"]
main()
test_tag_content = "revealing: ?{gpg:test_secret}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("revealing: {}".format(test_secret_content),
stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_base64_write_reveal_gpg(self):
"""
run $ kapitan secrets --write gpg:test_secretb64 --base64
and $ kapitan secrets --reveal
with example@kapitan.dev recipient
"""
test_secret_content = "I am another secret!"
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "gpg:test_secretb64",
"-f", test_secret_file, "--base64",
"--secrets-path", SECRETS_PATH,
"--recipients", "example@kapitan.dev"]
main()
test_tag_content = "?{gpg:test_secretb64}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
stdout_base64 = base64.b64decode(stdout.getvalue()).decode()
self.assertEqual(test_secret_content, stdout_base64)
os.remove(test_tag_file)
def test_cli_secret_validate_targets(self):
"""
run $ kapitan secrets --validate-targets
expect 0 (success) exit status code
"""
with self.assertRaises(SystemExit) as cm:
sys.argv = ["kapitan", "secrets", "--validate-targets",
"--secrets-path", "examples/kubernetes/secrets/targets/",
"--inventory-path", "examples/kubernetes/inventory/"]
main()
self.assertEqual(cm.exception.code, 0)
def test_cli_secret_write_reveal_gkms(self):
"""
run $ kapitan secrets --write gkms:test_secret
and $ kapitan secrets --reveal
using mock KMS key
"""
test_secret_content = "mock"
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "gkms:test_secret",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH,
"--key", "mock"]
main()
test_tag_content = "revealing: ?{gkms:test_secret}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("revealing: {}".format(test_secret_content),
stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_write_reveal_awskms(self):
"""
run $ kapitan secrets --write awskms:test_secret
and $ kapitan secrets --reveal
using mock KMS key
"""
test_secret_content = "mock"
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "awskms:test_secret",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH,
"--key", "mock"]
main()
test_tag_content = "revealing: ?{awskms:test_secret}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("revealing: {}".format(test_secret_content),
stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_write_ref(self):
"""
run $ kapitan secrets --write ref:test_secret
and $ kapitan secrets --reveal -f sometest_file
"""
test_secret_content = "secret_value!"
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "ref:test_secret",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH]
main()
test_tag_content = "revealing: ?{ref:test_secret}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("revealing: {}".format(test_secret_content),
stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_write_base64_ref(self):
"""
run $ kapitan secrets --write ref:test_secret --base64
and $ kapitan secrets --reveal -f sometest_file
"""
test_secret_content = "secret_value!"
test_secret_content_b64 = base64.b64encode(test_secret_content.encode())
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "ref:test_secret",
"--base64", "-f", test_secret_file,
"--secrets-path", SECRETS_PATH]
main()
test_tag_content = "revealing: ?{ref:test_secret}"
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("revealing: {}".format(test_secret_content_b64.decode()),
stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_subvar_ref(self):
"""
run $ kapitan secrets --write ref:test_secret
and $ kapitan secrets --reveal -f sometest_file
"""
test_secret_content = """
var1:
var2: hello
var3:
var4: world
"""
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "ref:test_secret_subvar",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH]
main()
test_tag_content = """
revealing1: ?{ref:test_secret_subvar@var1.var2}
revealing2: ?{ref:test_secret_subvar@var3.var4}
"""
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
expected = """
revealing1: {}
revealing2: {}
"""
self.assertEqual(expected.format("hello", "world"),stdout.getvalue())
os.remove(test_tag_file)
def test_cli_secret_subvar_gpg(self):
"""
run $ kapitan secrets --write gpg:test_secret
and $ kapitan secrets --reveal -f sometest_file
"""
test_secret_content = """
var1:
var2: hello
var3:
var4: world
"""
test_secret_file = tempfile.mktemp()
with open(test_secret_file, "w") as fp:
fp.write(test_secret_content)
sys.argv = ["kapitan", "secrets", "--write", "gpg:test_secret_subvar",
"-f", test_secret_file,
"--secrets-path", SECRETS_PATH,
"--recipients", "example@kapitan.dev"]
main()
test_tag_content = """
revealing1: ?{gpg:test_secret_subvar@var1.var2}
revealing2: ?{gpg:test_secret_subvar@var3.var4}
"""
test_tag_file = tempfile.mktemp()
with open(test_tag_file, "w") as fp:
fp.write(test_tag_content)
sys.argv = ["kapitan", "secrets", "--reveal",
"-f", test_tag_file,
"--secrets-path", SECRETS_PATH]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
expected = """
revealing1: {}
revealing2: {}
"""
self.assertEqual(expected.format("hello", "world"), stdout.getvalue())
os.remove(test_tag_file)
def test_cli_searchvar(self):
"""
run $ kapitan searchvar mysql.replicas
"""
sys.argv = ["kapitan", "searchvar", "mysql.replicas",
"--inventory-path", "examples/kubernetes/inventory/"]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("examples/kubernetes/inventory/targets/minikube-mysql.yml 1\n", stdout.getvalue())
def test_cli_inventory(self):
"""
run $ kapitan inventory -t minikube-es -F -p cluster
"""
sys.argv = ["kapitan", "inventory", "-t", "minikube-es", "-F", "-p", "cluster",
"--inventory-path", "examples/kubernetes/inventory/"]
# set stdout as string
stdout = io.StringIO()
with contextlib.redirect_stdout(stdout):
main()
self.assertEqual("id: minikube\nname: minikube\ntype: minikube\nuser: minikube\n",
stdout.getvalue())
def tearDown(self):
shutil.rmtree(SECRETS_PATH, ignore_errors=True)
| 35.459318 | 109 | 0.571577 | 1,473 | 13,510 | 5.023761 | 0.133062 | 0.095946 | 0.047568 | 0.016081 | 0.74027 | 0.726622 | 0.700541 | 0.698919 | 0.689189 | 0.678784 | 0 | 0.009947 | 0.30792 | 13,510 | 380 | 110 | 35.552632 | 0.781497 | 0.140415 | 0 | 0.731225 | 0 | 0 | 0.211655 | 0.044751 | 0 | 0 | 0 | 0 | 0.047431 | 1 | 0.051383 | false | 0 | 0.047431 | 0 | 0.102767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a0455e2ac7b23b2fe1c4c73d67281ccd74544eb | 5,296 | py | Python | fec/version/v6_3/__init__.py | h4ck3rm1k3/FEC-Field-Documentation | c2f1f36e14c67ac3656c09f801b9f595d3e9f92e | [
"Unlicense"
] | 1 | 2016-06-13T23:54:31.000Z | 2016-06-13T23:54:31.000Z | fec/version/v6_3/__init__.py | h4ck3rm1k3/FEC-Field-Documentation | c2f1f36e14c67ac3656c09f801b9f595d3e9f92e | [
"Unlicense"
] | null | null | null | fec/version/v6_3/__init__.py | h4ck3rm1k3/FEC-Field-Documentation | c2f1f36e14c67ac3656c09f801b9f595d3e9f92e | [
"Unlicense"
] | 1 | 2019-07-03T10:35:19.000Z | 2019-07-03T10:35:19.000Z | import fec.version.v6_3.F1
import fec.version.v6_3.F10
import fec.version.v6_3.F105
import fec.version.v6_3.F13
import fec.version.v6_3.F132
import fec.version.v6_3.F133
import fec.version.v6_3.F1M
import fec.version.v6_3.F1S
import fec.version.v6_3.F2
import fec.version.v6_3.F24
import fec.version.v6_3.F2S
import fec.version.v6_3.F3
import fec.version.v6_3.F3P
import fec.version.v6_3.F3P31
import fec.version.v6_3.F3PS
import fec.version.v6_3.F3S
import fec.version.v6_3.F3X
import fec.version.v6_3.F3Z
import fec.version.v6_3.F4
import fec.version.v6_3.F5
import fec.version.v6_3.F56
import fec.version.v6_3.F57
import fec.version.v6_3.F6
import fec.version.v6_3.F65
import fec.version.v6_3.F7
import fec.version.v6_3.F76
import fec.version.v6_3.F8
import fec.version.v6_3.F82
import fec.version.v6_3.F83
import fec.version.v6_3.F9
import fec.version.v6_3.F91
import fec.version.v6_3.F92
import fec.version.v6_3.F93
import fec.version.v6_3.F94
import fec.version.v6_3.F99
import fec.version.v6_3.HRD
import fec.version.v6_3.SA
import fec.version.v6_3.SB
import fec.version.v6_3.SC
import fec.version.v6_3.SC1
import fec.version.v6_3.SC2
import fec.version.v6_3.SD
import fec.version.v6_3.SE
import fec.version.v6_3.SF
import fec.version.v6_3.SH1
import fec.version.v6_3.SH2
import fec.version.v6_3.SH3
import fec.version.v6_3.SH4
import fec.version.v6_3.SH5
import fec.version.v6_3.SH6
import fec.version.v6_3.SI
import fec.version.v6_3.SL
import fec.version.v6_3.TEXT
import fechbase
class Version(fechbase.VersionBase):
def __init__(self):
fechbase.VersionBase.__init__(self)
self.records = {
'F1' : fec.version.v6_3.F1.Records,
'F10' : fec.version.v6_3.F10.Records,
'F105' : fec.version.v6_3.F105.Records,
'F13' : fec.version.v6_3.F13.Records,
'F132' : fec.version.v6_3.F132.Records,
'F133' : fec.version.v6_3.F133.Records,
'F1M' : fec.version.v6_3.F1M.Records,
'F1S' : fec.version.v6_3.F1S.Records,
'F2' : fec.version.v6_3.F2.Records,
'F24' : fec.version.v6_3.F24.Records,
'F2S' : fec.version.v6_3.F2S.Records,
'F3' : fec.version.v6_3.F3.Records,
'F3P' : fec.version.v6_3.F3P.Records,
'F3P31' : fec.version.v6_3.F3P31.Records,
'F3PS' : fec.version.v6_3.F3PS.Records,
'F3S' : fec.version.v6_3.F3S.Records,
'F3X' : fec.version.v6_3.F3X.Records,
'F3Z' : fec.version.v6_3.F3Z.Records,
'F4' : fec.version.v6_3.F4.Records,
'F5' : fec.version.v6_3.F5.Records,
'F56' : fec.version.v6_3.F56.Records,
'F57' : fec.version.v6_3.F57.Records,
'F6' : fec.version.v6_3.F6.Records,
'F65' : fec.version.v6_3.F65.Records,
'F7' : fec.version.v6_3.F7.Records,
'F76' : fec.version.v6_3.F76.Records,
'F8' : fec.version.v6_3.F8.Records,
'F82' : fec.version.v6_3.F82.Records,
'F83' : fec.version.v6_3.F83.Records,
'F9' : fec.version.v6_3.F9.Records,
'F91' : fec.version.v6_3.F91.Records,
'F92' : fec.version.v6_3.F92.Records,
'F93' : fec.version.v6_3.F93.Records,
'F94' : fec.version.v6_3.F94.Records,
'F99' : fec.version.v6_3.F99.Records,
'HRD' : fec.version.v6_3.HRD.Records,
'SA' : fec.version.v6_3.SA.Records,
'SB' : fec.version.v6_3.SB.Records,
'SC' : fec.version.v6_3.SC.Records,
'SC1' : fec.version.v6_3.SC1.Records,
'SC2' : fec.version.v6_3.SC2.Records,
'SD' : fec.version.v6_3.SD.Records,
'SE' : fec.version.v6_3.SE.Records,
'SF' : fec.version.v6_3.SF.Records,
'SH1' : fec.version.v6_3.SH1.Records,
'SH2' : fec.version.v6_3.SH2.Records,
'SH3' : fec.version.v6_3.SH3.Records,
'SH4' : fec.version.v6_3.SH4.Records,
'SH5' : fec.version.v6_3.SH5.Records,
'SH6' : fec.version.v6_3.SH6.Records,
'SI' : fec.version.v6_3.SI.Records,
'SL' : fec.version.v6_3.SL.Records,
'TEXT' : fec.version.v6_3.TEXT.Records,
}
self.field_order = [
'F1',
'F10',
'F105',
'F13',
'F132',
'F133',
'F1M',
'F1S',
'F2',
'F24',
'F2S',
'F3',
'F3P',
'F3P31',
'F3PS',
'F3S',
'F3X',
'F3Z',
'F4',
'F5',
'F56',
'F57',
'F6',
'F65',
'F7',
'F76',
'F8',
'F82',
'F83',
'F9',
'F91',
'F92',
'F93',
'F94',
'F99',
'HRD',
'SA',
'SB',
'SC',
'SC1',
'SC2',
'SD',
'SE',
'SF',
'SH1',
'SH2',
'SH3',
'SH4',
'SH5',
'SH6',
'SI',
'SL',
'TEXT',
]
| 31.52381 | 53 | 0.54494 | 760 | 5,296 | 3.646053 | 0.088158 | 0.382533 | 0.45904 | 0.497293 | 0.719596 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129421 | 0.311367 | 5,296 | 167 | 54 | 31.712575 | 0.630381 | 0 | 0 | 0 | 0 | 0 | 0.056269 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005988 | false | 0 | 0.323353 | 0 | 0.335329 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2a0dddeb579c74f293a07f211ac585ddcdd00619 | 109 | py | Python | recipes/Python/577000_Altering_immutable_string_object/recipe-577000.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577000_Altering_immutable_string_object/recipe-577000.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577000_Altering_immutable_string_object/recipe-577000.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from ctypes import *
s = "I'm immutable"
p = cast(c_char_p(s),POINTER(c_char))
p[4] = " "
p[5] = " "
print s
| 15.571429 | 37 | 0.59633 | 22 | 109 | 2.818182 | 0.681818 | 0.16129 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.192661 | 109 | 6 | 38 | 18.166667 | 0.681818 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2a30b4e32518dba093093ce11ffeb1f9b3edc691 | 4,212 | py | Python | src/com/inductiveautomation/ignition/common/script/abc/__init__.py | thecesrom/8.1 | 0a0fa304137d9eca3e9fd8517b2c9569243121e4 | [
"MIT"
] | 1 | 2022-03-16T05:51:43.000Z | 2022-03-16T05:51:43.000Z | src/com/inductiveautomation/ignition/common/script/abc/__init__.py | thecesrom/8.1 | 0a0fa304137d9eca3e9fd8517b2c9569243121e4 | [
"MIT"
] | 3 | 2022-03-15T21:33:48.000Z | 2022-03-22T21:24:46.000Z | src/com/inductiveautomation/ignition/common/script/abc/__init__.py | thecesrom/8.1 | 0a0fa304137d9eca3e9fd8517b2c9569243121e4 | [
"MIT"
] | 1 | 2022-03-16T18:26:53.000Z | 2022-03-16T18:26:53.000Z | __all__ = [
"AbstractJythonMap",
"AbstractJythonSequence",
"AbstractMutableJythonMap",
"AbstractMutableJythonSequence",
"JythonMap",
"JythonSequence",
"MutableJythonMap",
"MutableJythonSequence",
]
class JythonMap(object):
def __contains__(self, item):
raise NotImplementedError
def __finditem__(self, key):
raise NotImplementedError
def __iter__(self):
raise NotImplementedError
def __len__(self):
raise NotImplementedError
def get(self, *args):
raise NotImplementedError
def has_key(self, pyKey):
raise NotImplementedError
def items(self):
pass
def iteritems(self):
raise NotImplementedError
def iterkeys(self):
raise NotImplementedError
def itervalues(self):
raise NotImplementedError
def keys(self):
raise NotImplementedError
def values(self):
raise NotImplementedError
class JythonSequence(object):
def __contains__(self, item):
raise NotImplementedError
def __iter__(self):
raise NotImplementedError
def __len__(self):
raise NotImplementedError
def __mul__(self, other):
pass
def __repr__(self):
pass
def __rmul__(self, other):
raise NotImplementedError
def count(self, element):
raise NotImplementedError
def index(self, element):
raise NotImplementedError
class MutableJythonMap(object):
def __delitem__(self, key):
raise NotImplementedError
def __setitem__(self, key, value):
raise NotImplementedError
def clear(self):
raise NotImplementedError
def pop(self, *args):
raise NotImplementedError
def popitem(self):
raise NotImplementedError
def setdefault(self, *args):
raise NotImplementedError
def update(self, *args, **kwargs):
raise NotImplementedError
class MutableJythonSequence(object):
def __add__(self, other):
raise NotImplementedError
def __imul__(self, other):
raise NotImplementedError
def append(self, element):
raise NotImplementedError
def extend(self, sequence):
raise NotImplementedError
def insert(self, index, element):
raise NotImplementedError
def pop(self, *args):
raise NotImplementedError
def remove(self, element):
raise NotImplementedError
def sort(self, *args, **kwargs):
raise NotImplementedError
class AbstractJythonMap(JythonMap):
def __contains__(self, item):
pass
def __finditem__(self, key):
pass
def __iter__(self):
pass
def __len__(self):
pass
def get(self, *args):
pass
def has_key(self, pyKey):
pass
def items(self):
pass
def iteritems(self):
pass
def iterkeys(self):
pass
def itervalues(self):
pass
def keys(self):
pass
def values(self):
pass
class AbstractJythonSequence(JythonSequence):
def __contains__(self, item):
pass
def __iter__(self):
pass
def __len__(self):
pass
def __mul__(self, other):
pass
def __repr__(self):
pass
def __rmul__(self, other):
pass
def count(self, element):
pass
def index(self, element):
pass
class AbstractMutableJythonMap(MutableJythonMap):
def __delitem__(self, key):
pass
def __setitem__(self, key, value):
pass
def clear(self):
pass
def pop(self, *args):
pass
def popitem(self):
pass
def setdefault(self, *args):
pass
def update(self, *args, **kwargs):
pass
class AbstractMutableJythonSequence(MutableJythonSequence):
def __add__(self, other):
pass
def __imul__(self, other):
pass
def append(self, element):
pass
def extend(self, sequence):
pass
def insert(self, index, element):
pass
def pop(self, *args):
pass
def remove(self, element):
pass
def sort(self, *args, **kwargs):
pass
| 17.772152 | 59 | 0.618946 | 399 | 4,212 | 6.238095 | 0.140351 | 0.095621 | 0.303736 | 0.124548 | 0.527119 | 0.325432 | 0.2728 | 0.226999 | 0.196063 | 0.143833 | 0 | 0 | 0.301994 | 4,212 | 236 | 60 | 17.847458 | 0.846599 | 0 | 0 | 0.886076 | 0 | 0 | 0.036087 | 0.022792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.443038 | false | 0.240506 | 0 | 0 | 0.493671 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2a61bc7466f75783110034c2e3f249ed709351a6 | 2,162 | py | Python | DrawDataPlot.py | 1029153958/TrumpTwitterAnalysis-1 | c77702e1389a18467b46bad98bffc721c9a8bd18 | [
"MIT"
] | 1 | 2020-04-18T17:24:31.000Z | 2020-04-18T17:24:31.000Z | DrawDataPlot.py | 1029153958/TrumpTwitterAnalysis-1 | c77702e1389a18467b46bad98bffc721c9a8bd18 | [
"MIT"
] | null | null | null | DrawDataPlot.py | 1029153958/TrumpTwitterAnalysis-1 | c77702e1389a18467b46bad98bffc721c9a8bd18 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
# a=[1,3]
# b=["Indifferent","Positive"]
# plt.pie(a,labels=b,autopct='%1.2f%%',
# explode=[0.1 for i in range(len(a))],shadow=True,pctdistance=0.8)
# plt.title("Twitter's Content Analysis - England")
# plt.axis('equal')
# plt.show()
# datas=[('@BarackObama', 702),('@FoxNews', 433),('@FoxAnd\nFriends', 419),('@Apprentice\nNBC', 377),('@Mitt\nRomney', 306),
# ('@CNN', 256),('@Ivanka\nTrump', 186),('@Megyn\nKelly', 148),('@Sean\nHannity', 140),('@O\'Reilly\nFactor', 125)
# ,('@Celeb\nApprentice', 122),('@NBC', 109),('@Trump\nDoral', 106),('@Macys', 106),('@Nytimes', 105),
# ('@Eric\nTrump', 97),('@Greta\nWire', 90),('@Alexs\nAlmond', 90),('@Bill\nMaher', 85),('@NewsMax\nMedia', 83)]
#
# X=[i for i in range(20)]
# H=[data[1] for data in datas]
# Name=[data[0][1:] for data in datas]
#
# plt.bar([x for x in X],H,0.8)
# for i in range(20):
# plt.text(X[i],H[i],Name[i],ha='center',va='bottom')
# plt.title("Trump Analysis - @")
# plt.show()
# a=[3,12,5,1]
# b=["Family","Politician","NewsReporter","Comedian"]
# plt.pie(a,labels=b,autopct='%1.2f%%',
# explode=[0.1 for i in range(len(a))],shadow=True,pctdistance=0.8)
# plt.title("Trump Analysis - Character")
# plt.axis('equal')
# plt.show()
# a=[3,17]
# b=["Support","Oppose"]
# plt.pie(a,labels=b,autopct='%1.2f%%',
# explode=[0.1 for i in range(len(a))],shadow=True,pctdistance=0.8)
# plt.title("Trump Analysis - Character")
# plt.axis('equal')
# plt.show()
# words=[('Obama', 1293),('America', 1065),('Barack\nObama', 708),('Hillary', 595),('#Trump\n2016', 571),('2016', 570)
# ,('Interview', 562),('Job', 534),('FoxNews', 474),('World', 462),('Work', 455),('China', 450),('Apprentice', 446)
# ,('Golf', 427),('FoxAndFriends', 426),('Clinton', 426),('American', 392),('CNN', 386),
# ('#Make\nAmerica\nGreatAgain', 375),('Money', 352)]
#
# X=[i for i in range(20)]
# H=[word[1] for word in words]
# Name=[word[0] for word in words]
#
# plt.bar([x for x in X],H,0.8)
# for i in range(20):
# plt.text(X[i],H[i],Name[i],ha='center',va='bottom')
# plt.title("Trump Analysis - Key Word")
# plt.show()
| 37.275862 | 124 | 0.586031 | 337 | 2,162 | 3.759644 | 0.448071 | 0.022099 | 0.033149 | 0.060773 | 0.446725 | 0.408051 | 0.408051 | 0.408051 | 0.382794 | 0.382794 | 0 | 0.090281 | 0.129047 | 2,162 | 57 | 125 | 37.929825 | 0.582581 | 0.935245 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2a6452f16ca79427e44b0e24020100cd0f3eb3cc | 90 | py | Python | Handlers/callbacks/__init__.py | amrhwanis22/CarRecognition | 48285f1f56ca3543697ba3cdb726a88aecaf19a5 | [
"CNRI-Python"
] | null | null | null | Handlers/callbacks/__init__.py | amrhwanis22/CarRecognition | 48285f1f56ca3543697ba3cdb726a88aecaf19a5 | [
"CNRI-Python"
] | null | null | null | Handlers/callbacks/__init__.py | amrhwanis22/CarRecognition | 48285f1f56ca3543697ba3cdb726a88aecaf19a5 | [
"CNRI-Python"
] | null | null | null | from .TrainingMonitor import TrainingMonitor
from .epochcheckpoint import EpochCheckpoint
| 30 | 44 | 0.888889 | 8 | 90 | 10 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 90 | 2 | 45 | 45 | 0.97561 | 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 |
2a885ee9883a9a354f45f1e3f95a65bbe6ade045 | 463 | py | Python | rx/disposables/singleassignmentdisposable.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/disposables/singleassignmentdisposable.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | rx/disposables/singleassignmentdisposable.py | AlexMost/RxPY | 05cb14c72806dc41e243789c05f498dede11cebd | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-04T11:13:49.000Z | 2021-11-04T11:13:49.000Z | from .booleandisposable import BooleanDisposable
class SingleAssignmentDisposable(BooleanDisposable):
"""Represents a disposable resource which only allows a single assignment
of its underlying disposable resource. If an underlying disposable resource
has already been set, future attempts to set the underlying disposable
resource will throw an Error."""
def __init__(self):
super(SingleAssignmentDisposable, self).__init__(True)
| 38.583333 | 79 | 0.784017 | 51 | 463 | 6.960784 | 0.686275 | 0.202817 | 0.23662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168467 | 463 | 11 | 80 | 42.090909 | 0.922078 | 0.535637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2a8a4932ba12fb9bf3d912425e56f760d7c548b1 | 315 | py | Python | scripts/__main__.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | scripts/__main__.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | scripts/__main__.py | tompsh/tompsh.github.io | 3283ee2de46730adf14ef4f6bd2963b345500562 | [
"BSD-2-Clause"
] | null | null | null | from congress_crawler import CongressCrawler
from markdown_builders import CongressMarkdownBuilder, SenateMarkdownBuilder
from senate_crawler import SenateCrawler
if __name__ == "__main__":
SenateCrawler().run()
SenateMarkdownBuilder().run()
CongressCrawler().run()
CongressMarkdownBuilder().run()
| 31.5 | 76 | 0.796825 | 27 | 315 | 8.888889 | 0.555556 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120635 | 315 | 9 | 77 | 35 | 0.866426 | 0 | 0 | 0 | 0 | 0 | 0.025397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 0 | 0.375 | 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 |
aa5a1fb7851d71f1c4e6c89e67c519d0306ef585 | 13,450 | py | Python | portal/lib/dart/portal/blueprints/api/views.py | plockaby/dart | 43f8e471759fb05d9fdfce522ec9976e1e77ee08 | [
"Artistic-2.0"
] | 2 | 2021-06-10T19:18:12.000Z | 2021-11-03T00:35:44.000Z | portal/lib/dart/portal/blueprints/api/views.py | plockaby/dart | 43f8e471759fb05d9fdfce522ec9976e1e77ee08 | [
"Artistic-2.0"
] | null | null | null | portal/lib/dart/portal/blueprints/api/views.py | plockaby/dart | 43f8e471759fb05d9fdfce522ec9976e1e77ee08 | [
"Artistic-2.0"
] | 1 | 2021-10-05T09:52:34.000Z | 2021-10-05T09:52:34.000Z | from ...app import logger
from ...app import cache
from ... import requests as r
from . import api
from flask import make_response, jsonify, request
from dart.common.html import sanitize
from dart.common import PROCESSES_TO_IGNORE
import requests
import traceback
import yaml
@api.route("/hosts", methods=["GET"])
def hosts():
try:
@cache.cached(timeout=10, key_prefix="api/select/hosts")
def select():
return r.select_hosts()
results = list(filter(lambda x: x["polled"] is not None, select()))
return make_response(jsonify(results), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/hosts/autocomplete", methods=["GET"])
def autocomplete_host():
try:
search = request.args.get("q")
results = []
@cache.cached(timeout=60, key_prefix="api/hosts/autocomplete")
def get_results():
return r.select_hosts()
if (search):
search = search.lower()
results = filter(lambda x: x.startswith(search), map(lambda x: x["fqdn"], get_results()))
return make_response(jsonify({"results": sorted(results)}), 200)
except Exception:
logger.debug(traceback.format_exc())
return make_response(jsonify([]), 200)
@api.route("/host/<string:fqdn>/active", methods=["GET"])
def host_active(fqdn):
try:
@cache.cached(timeout=1, key_prefix="api/host/{}".format(fqdn))
def select():
return r.select_host(fqdn)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["active"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/host/<string:fqdn>/pending", methods=["GET"])
def host_pending(fqdn):
try:
@cache.cached(timeout=1, key_prefix="api/host/{}".format(fqdn))
def select():
return r.select_host(fqdn)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["pending"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/host/<string:fqdn>/assigned", methods=["GET"])
def host_assigned(fqdn):
try:
@cache.cached(timeout=1, key_prefix="api/host/{}".format(fqdn))
def select():
return r.select_host(fqdn)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["assignments"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/host/<string:fqdn>", methods=["DELETE"])
def delete_host(fqdn):
try:
try:
r.delete_host(fqdn)
cache.clear()
return make_response(jsonify({}), 200)
except requests.RequestException as e:
response = e.response.json()
return make_response(jsonify({"code": response["code"], "message": sanitize(response["message"])}), response["code"])
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/processes", methods=["GET"])
def processes():
try:
@cache.cached(timeout=10, key_prefix="api/select/processes")
def select():
return r.select_processes()
results = select()
return make_response(jsonify(results), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/processes/autocomplete", methods=["GET"])
def autocomplete_process():
try:
search = request.args.get("q")
results = []
@cache.cached(timeout=60, key_prefix="api/autocomplete/process")
def get_results():
return r.select_processes()
if (search):
search = search.lower()
results = filter(lambda x: x.startswith(search), map(lambda x: x["name"], get_results()))
return make_response(jsonify({"results": sorted(results)}), 200)
except Exception:
logger.debug(traceback.format_exc())
return make_response(jsonify([]), 200)
@api.route("/processes/autocomplete/environment/<string:process_name>", methods=["GET"])
def autocomplete_process_environment(process_name):
try:
search = request.args.get("q")
results = []
@cache.cached(timeout=60, key_prefix="api/autocomplete/process/{}/environment".format(process_name))
def get_results():
return r.select_process(process_name)
if (search):
search = search.lower()
results = filter(lambda x: x.startswith(search), map(lambda x: x["name"], get_results()["environments"]))
return make_response(jsonify({"results": sorted(results)}), 200)
except Exception:
logger.debug(traceback.format_exc())
return make_response(jsonify([]), 200)
@api.route("/process/<string:name>/active", methods=["GET"])
def process_active(name):
try:
@cache.cached(timeout=1, key_prefix="api/process/{}".format(name))
def select():
return r.select_process(name)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["active"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/process/<string:name>/pending", methods=["GET"])
def process_pending(name):
try:
@cache.cached(timeout=1, key_prefix="api/process/{}".format(name))
def select():
return r.select_process(name)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["pending"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/process/<string:name>/assigned", methods=["GET"])
def process_assigned(name):
try:
@cache.cached(timeout=1, key_prefix="api/process/{}".format(name))
def select():
return r.select_process(name)
result = select()
if (result is None):
return make_response(jsonify([]), 404)
else:
return make_response(jsonify(result["assignments"]), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/process/<string:name>", methods=["DELETE"])
def delete_process(name):
try:
if (name in PROCESSES_TO_IGNORE):
return make_response(jsonify({"code": 400, "message": "No changes are allowed to the {} process.".format(sanitize(name))}), 400)
try:
r.delete_process(name)
cache.clear()
return make_response(jsonify({}), 200)
except requests.RequestException as e:
response = e.response.json()
return make_response(jsonify({"code": response["code"], "message": sanitize(response["message"])}), response["code"])
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/action", methods=["POST"])
def action():
# this will read a POST message to choose:
# 1. reread/rewrite a host
# 2. start/stop/restart/update a process
# 3. enable/disable a process
# 4. unassign a process
# 5. assign a process (only task that needs an environment)
try:
action = request.form.get("action")
if (action is None):
return make_response(jsonify({"code": 400, "message": "No action defined."}), 400)
# standardize the action
action = str(action).lower()
# all of the things that we could possibly need
fqdn = request.form.get("fqdn")
process_name = request.form.get("process_name")
process_environment = request.form.get("process_environment")
# everything needs an fqdn
if (not fqdn):
return make_response(jsonify({"code": 400, "message": "Missing fully qualified domain name."}), 400)
# actions that need only an fqdn
if (action == "reread"):
r.send_host_command(fqdn, "reread")
return make_response(jsonify({}), 200)
if (action == "rewrite"):
r.send_host_command(fqdn, "rewrite")
return make_response(jsonify({}), 200)
# actions that need a process
if (not process_name):
return make_response(jsonify({"code": 400, "message": "Missing process name."}), 400)
# make sure the action isn't against an invalid process
if (process_name in PROCESSES_TO_IGNORE):
return make_response(jsonify({"code": 400, "message": "No changes are allowed to the {} process.".format(sanitize(process_name))}), 400)
if (action == "start"):
r.send_process_command(fqdn, process_name, "start")
return make_response(jsonify({}), 200)
if (action == "stop"):
r.send_process_command(fqdn, process_name, "stop")
return make_response(jsonify({}), 200)
if (action == "restart"):
r.send_process_command(fqdn, process_name, "restart")
return make_response(jsonify({}), 200)
if (action == "update"):
r.send_process_command(fqdn, process_name, "update")
return make_response(jsonify({}), 200)
if (action == "enable"):
r.enable_process(fqdn, process_name)
return make_response(jsonify({}), 200)
if (action == "disable"):
r.disable_process(fqdn, process_name)
return make_response(jsonify({}), 200)
if (action == "unassign"):
r.unassign_process(fqdn, process_name)
return make_response(jsonify({}), 200)
# actions that need an environment
if (not process_environment):
return make_response(jsonify({"code": 400, "message": "Missing process environment."}), 400)
if (action == "assign"):
r.assign_process(fqdn, process_name, process_environment)
return make_response(jsonify({}), 200)
logger.warning("received invalid action: {}".format(action))
return make_response(jsonify({"code": 400, "message": "Invalid action."}), 400)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
@api.route("/register", methods=["PUT"])
def register():
try:
# make sure that we were given a request body
if (not request.data):
return make_response(jsonify({"code": 400, "message": "No registration data provided."}), 400)
# make sure that it is valid utf8 data
try:
data = request.data.decode("utf8")
except UnicodeDecodeError:
return make_response(jsonify({"code": 400, "message": "Could not process registration data. The provided data must be UTF-8 encoded."}), 400)
try:
data = yaml.load(data, Loader=yaml.SafeLoader)
except yaml.YAMLError:
return make_response(jsonify({"code": 400, "message": "Could not process registration data. You have not provided valid YAML data."}), 400)
# make sure we have some data
if (data is None):
return make_response(jsonify({"code": 400, "message": "Could not process registration data. You have not provided valid YAML data."}), 400)
return make_response(jsonify(r.register(data)), 200)
except Exception as e:
logger.error("internal server error: {}".format(str(e)))
logger.error(traceback.format_exc())
return make_response(jsonify({"code": 500, "message": sanitize(str(e))}), 500)
| 38.101983 | 153 | 0.61658 | 1,596 | 13,450 | 5.096491 | 0.107143 | 0.087042 | 0.137817 | 0.178264 | 0.747971 | 0.719572 | 0.701131 | 0.657487 | 0.639415 | 0.603885 | 0 | 0.025421 | 0.236654 | 13,450 | 352 | 154 | 38.210227 | 0.766826 | 0.04171 | 0 | 0.630037 | 0 | 0 | 0.149472 | 0.027812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.03663 | 0.040293 | 0.384615 | 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 |
aa87883a2223fe52c866e4b31c0eec4ffc6fa44d | 59 | py | Python | AT/test6/__init__.py | cheneytest/testgit | 570a3317a1b04b19c24a66e129df252cf8777e03 | [
"BSD-Source-Code"
] | null | null | null | AT/test6/__init__.py | cheneytest/testgit | 570a3317a1b04b19c24a66e129df252cf8777e03 | [
"BSD-Source-Code"
] | null | null | null | AT/test6/__init__.py | cheneytest/testgit | 570a3317a1b04b19c24a66e129df252cf8777e03 | [
"BSD-Source-Code"
] | null | null | null | # make Python treat the directories as containing packages
| 29.5 | 58 | 0.830508 | 8 | 59 | 6.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 59 | 1 | 59 | 59 | 0.98 | 0.949153 | 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 |
aa879df12e2f25e61066ee7ce142f999fad4ba03 | 162 | py | Python | babi/_types.py | ClasherKasten/babi | e11d61da9387b3740fcf7c9ec631e51cfd4b194b | [
"MIT"
] | 223 | 2019-07-14T04:21:24.000Z | 2022-03-23T21:34:11.000Z | babi/_types.py | ClasherKasten/babi | e11d61da9387b3740fcf7c9ec631e51cfd4b194b | [
"MIT"
] | 101 | 2019-09-02T02:25:22.000Z | 2022-03-23T20:18:34.000Z | babi/_types.py | ClasherKasten/babi | e11d61da9387b3740fcf7c9ec631e51cfd4b194b | [
"MIT"
] | 57 | 2019-10-19T23:30:13.000Z | 2022-03-21T21:43:05.000Z | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Protocol # python3.8+
else:
Protocol = object
| 18 | 45 | 0.771605 | 21 | 162 | 5.666667 | 0.619048 | 0.168067 | 0.268908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.191358 | 162 | 8 | 46 | 20.25 | 0.89313 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
aab90367f995aeaad791be0e5e976142a0baaa64 | 151 | py | Python | venv/lib/python2.7/site-packages/newrelic-2.62.0.47/newrelic/api/pre_function.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | 1 | 2016-04-22T15:44:08.000Z | 2016-04-22T15:44:08.000Z | lib/python2.7/site-packages/newrelic-2.12.0.10/newrelic/api/pre_function.py | Arable/evepod | 85638e76cb8529e8ed38fa9849596374719bcb91 | [
"Apache-2.0"
] | null | null | null | lib/python2.7/site-packages/newrelic-2.12.0.10/newrelic/api/pre_function.py | Arable/evepod | 85638e76cb8529e8ed38fa9849596374719bcb91 | [
"Apache-2.0"
] | null | null | null | # Use of these from this module will be deprecated.
from ..common.object_wrapper import (pre_function, PreFunctionWrapper,
wrap_pre_function)
| 30.2 | 70 | 0.774834 | 20 | 151 | 5.65 | 0.85 | 0.19469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165563 | 151 | 4 | 71 | 37.75 | 0.896825 | 0.324503 | 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 |
2ae397a5b5259afe4b8a9e1c48ae102e969780b0 | 106 | py | Python | snake/test.py | saikiran1096/snake_q_learning | d7fb135886c6df26f87fbae3e97e0902f4fa3765 | [
"MIT"
] | null | null | null | snake/test.py | saikiran1096/snake_q_learning | d7fb135886c6df26f87fbae3e97e0902f4fa3765 | [
"MIT"
] | null | null | null | snake/test.py | saikiran1096/snake_q_learning | d7fb135886c6df26f87fbae3e97e0902f4fa3765 | [
"MIT"
] | null | null | null | import snake
import tensorflow as tf
x = tf.ones((4, snake.model.model.NUM_CLASSES), dtype=tf.float32)
| 15.142857 | 65 | 0.745283 | 18 | 106 | 4.333333 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0.132075 | 106 | 6 | 66 | 17.666667 | 0.815217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6332c7e08b364e7b99d22445f7f071bb4f0dbf08 | 78 | py | Python | tory.py | tsteining/cs3240-labdemo | 5ea6d91724920afd934e524b5a8f508e441b534e | [
"MIT"
] | null | null | null | tory.py | tsteining/cs3240-labdemo | 5ea6d91724920afd934e524b5a8f508e441b534e | [
"MIT"
] | null | null | null | tory.py | tsteining/cs3240-labdemo | 5ea6d91724920afd934e524b5a8f508e441b534e | [
"MIT"
] | null | null | null | import helper
if __name__ == "__main__":
helper.greeting("my name is tory")
| 15.6 | 35 | 0.717949 | 11 | 78 | 4.363636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 78 | 4 | 36 | 19.5 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0.294872 | 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 |
6333e4611acbdec7e1a798a6ec129ec1af74903f | 24 | py | Python | rotkehlchen/chain/ethereum/modules/aave/constants.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 137 | 2018-03-05T11:53:29.000Z | 2019-11-03T16:38:42.000Z | rotkehlchen/chain/ethereum/modules/aave/constants.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 385 | 2018-03-08T12:43:41.000Z | 2019-11-10T09:15:36.000Z | rotkehlchen/chain/ethereum/modules/aave/constants.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 59 | 2018-03-08T10:08:27.000Z | 2019-10-26T11:30:44.000Z | CPT_AAVE_V1 = 'aave-v1'
| 12 | 23 | 0.708333 | 5 | 24 | 3 | 0.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0.125 | 24 | 1 | 24 | 24 | 0.619048 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2d50c965c21584335275e37eb7b7d41e1ce92e29 | 70 | py | Python | gweld/chart.py | ieuan-jones/gweld | b4afba685f7f75379cd17c1fc0ab83e2e9009e80 | [
"MIT"
] | null | null | null | gweld/chart.py | ieuan-jones/gweld | b4afba685f7f75379cd17c1fc0ab83e2e9009e80 | [
"MIT"
] | null | null | null | gweld/chart.py | ieuan-jones/gweld | b4afba685f7f75379cd17c1fc0ab83e2e9009e80 | [
"MIT"
] | null | null | null | from lxml import etree
class Chart:
def plot(self):
pass
| 11.666667 | 22 | 0.628571 | 10 | 70 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 70 | 5 | 23 | 14 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2d6f6c4f94d45b7cf4de86084c80fe658f4edf25 | 138 | py | Python | locale/pot/api/utilities/_autosummary/pyvista-ParametricFigure8Klein-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 4 | 2020-08-07T08:19:19.000Z | 2020-12-04T09:51:11.000Z | locale/pot/api/utilities/_autosummary/pyvista-ParametricFigure8Klein-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 19 | 2020-08-06T00:24:30.000Z | 2022-03-30T19:22:24.000Z | locale/pot/api/utilities/_autosummary/pyvista-ParametricFigure8Klein-1.py | tkoyama010/pyvista-doc-translations | 23bb813387b7f8bfe17e86c2244d5dd2243990db | [
"MIT"
] | 1 | 2021-03-09T07:50:40.000Z | 2021-03-09T07:50:40.000Z | # Create a ParametricFigure8Klein mesh
#
import pyvista
mesh = pyvista.ParametricFigure8Klein()
mesh.plot(color='w', smooth_shading=True)
| 23 | 41 | 0.804348 | 16 | 138 | 6.875 | 0.75 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.094203 | 138 | 5 | 42 | 27.6 | 0.864 | 0.26087 | 0 | 0 | 0 | 0 | 0.010101 | 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 |
2d78320df0a9ebe132209e6dfc157ef14b3998e4 | 1,145 | py | Python | models.py | penzance/student_locations | 44618a237a9061dbc9d705810ad88d255781f44d | [
"MIT"
] | 1 | 2015-06-12T13:48:42.000Z | 2015-06-12T13:48:42.000Z | models.py | penzance/student_locations | 44618a237a9061dbc9d705810ad88d255781f44d | [
"MIT"
] | null | null | null | models.py | penzance/student_locations | 44618a237a9061dbc9d705810ad88d255781f44d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Locations(models.Model):
resource_link_id = models.CharField(max_length=50)
user_id = models.CharField(max_length=50)
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
email = models.CharField(max_length=50)
organization = models.CharField(max_length=100)
first_name_permission = models.BooleanField()
last_name_permission = models.BooleanField()
email_permission = models.BooleanField()
organization_permission = models.BooleanField()
address = models.CharField(max_length=100)
latitude = models.CharField(max_length=50)
longitude = models.CharField(max_length=50)
mapurl = models.CharField(max_length=200)
generated_latitude = models.CharField(max_length=50)
generated_longitude = models.CharField(max_length=50)
country = models.CharField(max_length=50)
region = models.CharField(max_length=50)
locality = models.CharField(max_length=50)
method = models.CharField(max_length=10)
class Meta:
unique_together = (("resource_link_id", "user_id"),)
| 36.935484 | 60 | 0.747598 | 143 | 1,145 | 5.755245 | 0.286713 | 0.291616 | 0.349939 | 0.466586 | 0.500608 | 0.308627 | 0 | 0 | 0 | 0 | 0 | 0.036045 | 0.151965 | 1,145 | 30 | 61 | 38.166667 | 0.811535 | 0.020961 | 0 | 0 | 0 | 0 | 0.020554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.958333 | 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 |
2dd7811e2fc306be1c5767d480f72ee92ff20c8c | 147 | py | Python | SCS/apps.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | SCS/apps.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | SCS/apps.py | hellen6654/DataBase_CGHP | d4e393d3994c3a7b576c651ad2ac7ef919a3f386 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ScsConfig(AppConfig):
name = 'SCS'
verbose_name = '購物車管理子系統'
verbose_name_plural = '購物車管理子系統' | 21 | 36 | 0.721088 | 17 | 147 | 6.058824 | 0.705882 | 0.213592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 147 | 7 | 36 | 21 | 0.865546 | 0 | 0 | 0 | 0 | 0 | 0.128378 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
2df3d93f9424a474942dce41d7be0db2c141526b | 115 | py | Python | memories/app.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | memories/app.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | memories/app.py | marchelbling/memories-api | e82d6c6ae2b7873fc35ebb301fc073e3ef968a1e | [
"MIT"
] | null | null | null | import falcon
from api.search import SearchApi
app = falcon.API()
# search
app.add_route('/search', SearchApi())
| 14.375 | 37 | 0.73913 | 16 | 115 | 5.25 | 0.5625 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 115 | 7 | 38 | 16.428571 | 0.84 | 0.052174 | 0 | 0 | 0 | 0 | 0.065421 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.