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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05c2b4c203d0b4347265ef5b093f2b12bb11a172 | 90 | py | Python | bangoo/navigation/signals.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | bangoo/navigation/signals.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | bangoo/navigation/signals.py | slapec/bangoo | 34facf122f15943a4368d5c2f45fe178ff01edaa | [
"MIT"
] | null | null | null | from django.dispatch import Signal
menu_created = Signal(providing_args=['menu', 'user']) | 30 | 54 | 0.777778 | 12 | 90 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 90 | 3 | 54 | 30 | 0.829268 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
05d52fc555b9571a463b07cf43c0f4a17cf53ad0 | 294 | py | Python | pythonUtils/TUI_tools/test_tui_tools.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | 1 | 2015-07-21T05:15:11.000Z | 2015-07-21T05:15:11.000Z | pythonUtils/TUI_tools/test_tui_tools.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | null | null | null | pythonUtils/TUI_tools/test_tui_tools.py | tgquintela/pythonUtils | 6f2e5ba3be67a48d3cd5cf72dcabfae04cfa7afe | [
"MIT"
] | null | null | null |
"""
test_tui_tools
--------------
Test module for testint TUI_tools
"""
#check_quest_info
#automatic_questioner
#get_default
#get_default3
#automatic_questioner3
#
#
#selection_list_options
#selection_options
#confirmation_question
#simple_input
#
#general_questioner
def test():
pass
| 11.307692 | 33 | 0.761905 | 34 | 294 | 6.147059 | 0.735294 | 0.076555 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.115646 | 294 | 25 | 34 | 11.76 | 0.796154 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
05e92e32f9a984ab340e450ce9816130b17b6a29 | 1,656 | py | Python | athena-tool/test/eval_topo.py | shlee89/athena | ecc95b1f44d157b8f0f039e461df7c9f35305664 | [
"Apache-2.0"
] | 13 | 2017-08-04T02:16:10.000Z | 2019-11-27T16:18:50.000Z | athena-tool/test/eval_topo.py | shlee89/athena | ecc95b1f44d157b8f0f039e461df7c9f35305664 | [
"Apache-2.0"
] | 10 | 2017-10-04T08:29:08.000Z | 2020-03-06T21:02:30.000Z | athena-tool/test/eval_topo.py | shlee89/athena | ecc95b1f44d157b8f0f039e461df7c9f35305664 | [
"Apache-2.0"
] | 9 | 2018-06-27T09:22:36.000Z | 2021-06-29T12:06:24.000Z | #!/usr/bin/python
"""
Custom topology for Mininet, generated by GraphML-Topo-to-Mininet-Network-Generator.
"""
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.node import Node
from mininet.node import CPULimitedHost
from mininet.node import OVSSwitch... | 31.245283 | 107 | 0.745773 | 228 | 1,656 | 5.377193 | 0.513158 | 0.107667 | 0.04894 | 0.068516 | 0.044046 | 0.044046 | 0 | 0 | 0 | 0 | 0 | 0.030958 | 0.161232 | 1,656 | 52 | 108 | 31.846154 | 0.851692 | 0.271135 | 0 | 0 | 1 | 0 | 0.12602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.46875 | null | null | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
05ef8296dce13160ebe9bbc54a148dcacb6876b8 | 347 | py | Python | lingcod/screencasts/migrations/0003_populate_youtube_screencasts.py | google-code-export/marinemap | b7d58db11720637845b6a83bf70435c32c5af531 | [
"BSD-3-Clause"
] | 3 | 2017-06-09T20:44:58.000Z | 2017-12-26T12:09:21.000Z | lingcod/screencasts/migrations/0003_populate_youtube_screencasts.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | null | null | null | lingcod/screencasts/migrations/0003_populate_youtube_screencasts.py | underbluewaters/marinemap | c001e16615caa2178c65ca0684e1b6fd56d3f93d | [
"BSD-3-Clause"
] | 3 | 2016-11-30T13:41:56.000Z | 2019-05-07T17:07:12.000Z | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.core.management import call_command
class Migration(DataMigration):
def forwards(self, orm):
call_command('loaddata', 'youtube_screencasts.json')
def backwards(sel... | 21.6875 | 60 | 0.726225 | 45 | 347 | 5.533333 | 0.622222 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007168 | 0.195965 | 347 | 15 | 61 | 23.133333 | 0.885305 | 0.043228 | 0 | 0 | 0 | 0 | 0.09697 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.5 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
05fa924234c46b21ac3eca3061b7acf97137adcd | 254 | py | Python | django_settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | django_settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | django_settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | import sys
sys.dont_write_bytecode = True
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
import django
django.setup()
from asgiref.sync import sync_to_async
from db.models import *
| 23.090909 | 59 | 0.807087 | 38 | 254 | 5.157895 | 0.578947 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 254 | 10 | 60 | 25.4 | 0.852174 | 0 | 0 | 0 | 0 | 0 | 0.232283 | 0.185039 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
af057649a6ac19943cdfd005c8ed7ab4ec2819dd | 20 | py | Python | djqgrid/templatetags/__init__.py | soradi/djqgrid | c3bda84995a740b05c7a9538e38a86a95f7a5207 | [
"MIT"
] | 3 | 2015-03-15T14:44:56.000Z | 2022-01-12T21:56:36.000Z | djqgrid/templatetags/__init__.py | soradi/djqgrid | c3bda84995a740b05c7a9538e38a86a95f7a5207 | [
"MIT"
] | 6 | 2015-07-05T16:45:51.000Z | 2021-06-10T19:10:25.000Z | djqgrid/templatetags/__init__.py | soradi/djqgrid | c3bda84995a740b05c7a9538e38a86a95f7a5207 | [
"MIT"
] | 7 | 2015-03-20T13:45:14.000Z | 2021-01-08T20:52:32.000Z | __author__ = 'zmbq'
| 10 | 19 | 0.7 | 2 | 20 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.588235 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af21ac88cd69db5adddc4432b3a49cd01cce71f8 | 341 | py | Python | pdfparse/file_io.py | danshorstein/parsable | 591c155fe727e339b7b0b8b7f859cd4fa13bdb96 | [
"MIT"
] | 1 | 2018-06-19T04:04:25.000Z | 2018-06-19T04:04:25.000Z | pdfparse/file_io.py | danshorstein/parsable | 591c155fe727e339b7b0b8b7f859cd4fa13bdb96 | [
"MIT"
] | null | null | null | pdfparse/file_io.py | danshorstein/parsable | 591c155fe727e339b7b0b8b7f859cd4fa13bdb96 | [
"MIT"
] | null | null | null | import ftfy
def read_text_file(filename):
'''opens the text file and fixes any encoding issues'''
filein = open(filename, 'br')
filein = ftfy.fix_file(filein)
data = [row.strip('\n') for row in filein]
return data
def save_to_csv(stuff): #TODO - add a save to csv option/????
'''saves the fil... | 22.733333 | 61 | 0.645161 | 53 | 341 | 4.056604 | 0.660377 | 0.069767 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225806 | 341 | 14 | 62 | 24.357143 | 0.814394 | 0.316716 | 0 | 0 | 0 | 0 | 0.018018 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
af2a5bec34389748169fad03fd7a7d59a94f7c1e | 325 | py | Python | Programming-Basics-with-Python-April-2019/16_nested_loops_lab/04_combination.py | marinakolova/Python-Courses | eb95c782307be561b5026c5adafaa001b04caf4f | [
"MIT"
] | null | null | null | Programming-Basics-with-Python-April-2019/16_nested_loops_lab/04_combination.py | marinakolova/Python-Courses | eb95c782307be561b5026c5adafaa001b04caf4f | [
"MIT"
] | null | null | null | Programming-Basics-with-Python-April-2019/16_nested_loops_lab/04_combination.py | marinakolova/Python-Courses | eb95c782307be561b5026c5adafaa001b04caf4f | [
"MIT"
] | null | null | null | n = int(input())
combinations = 0
for x1 in range(0, n + 1):
for x2 in range(0, n + 1):
for x3 in range(0, n + 1):
for x4 in range(0, n + 1):
for x5 in range(0, n + 1):
if x1 + x2 + x3 + x4 + x5 == n:
combinations += 1
print(combinati... | 25 | 51 | 0.430769 | 51 | 325 | 2.745098 | 0.313725 | 0.25 | 0.285714 | 0.321429 | 0.442857 | 0.371429 | 0 | 0 | 0 | 0 | 0 | 0.120879 | 0.44 | 325 | 12 | 52 | 27.083333 | 0.648352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af30beb77a1a5ea711f23d91fccd03ccd1ab007a | 812 | py | Python | backend/models/TvShows.py | HernanGC/Movify | 0d485c7fd01f45fbf751dd467350b048b8121375 | [
"MIT"
] | null | null | null | backend/models/TvShows.py | HernanGC/Movify | 0d485c7fd01f45fbf751dd467350b048b8121375 | [
"MIT"
] | 1 | 2021-03-28T07:55:00.000Z | 2021-03-28T07:55:00.000Z | backend/models/TvShows.py | HernanGC/Movify | 0d485c7fd01f45fbf751dd467350b048b8121375 | [
"MIT"
] | null | null | null | from typing import Union
from . import Omdb
class TvShows(Omdb.Omdb):
def __init__(self):
self.shows_data: dict = {}
super().__init__()
def set_show_data(self, show_data: dict) -> None:
self.show_data = show_data
def get_show_data(self) -> dict:
return self.show_data
... | 28 | 103 | 0.657635 | 127 | 812 | 3.850394 | 0.275591 | 0.163599 | 0.171779 | 0.110429 | 0.167689 | 0.07771 | 0 | 0 | 0 | 0 | 0 | 0.00319 | 0.227833 | 812 | 28 | 104 | 29 | 0.776715 | 0 | 0 | 0.105263 | 0 | 0 | 0.007389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.368421 | false | 0 | 0.105263 | 0.157895 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
af424ffed2c2215112d88d6182603155f95d02a8 | 1,114 | py | Python | Phase-2/List/Day-40.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 11 | 2020-05-11T08:41:21.000Z | 2022-02-27T08:21:37.000Z | Phase-2/List/Day-40.py | emetowinner/python-challenges | 520da69da0f2632deb1e81136d2b62d40555a4aa | [
"MIT"
] | 9 | 2020-05-12T10:46:06.000Z | 2020-05-28T17:37:19.000Z | Phase-2/List/Day-40.py | CodedLadiesInnovateTech/python-challenges | 22ce26c68fea6c7c243ada831e47c52e27a62127 | [
"MIT"
] | 44 | 2020-05-10T20:53:32.000Z | 2021-04-25T18:47:08.000Z | '''
1. Write a Python function that takes two lists and returns True if they have at least one common member.
2. Write a Python program to print a specified list after removing the 0th, 4th and 5th elements.
Sample List : ['Red', 'Green', 'White', 'Black', 'Pink', 'Yellow']
Expected Output : ['Green', 'White', 'Blac... | 44.56 | 161 | 0.743268 | 197 | 1,114 | 4.203046 | 0.416244 | 0.072464 | 0.144928 | 0.206522 | 0.509662 | 0.39372 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0 | 0.029083 | 0.197487 | 1,114 | 24 | 162 | 46.416667 | 0.897092 | 0.990126 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
af62f65cb23efbd6ed56c0aef8fe358b786d115d | 369 | py | Python | contextmonkey/tracelayer/handlers/file/__init__.py | manojrege/contextmonkey | 9974889a726d7f60c6da0d6ccab97113ce635a14 | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:28:12.000Z | 2019-04-18T11:25:44.000Z | contextmonkey/tracelayer/handlers/file/__init__.py | manojrege/contextmonkey | 9974889a726d7f60c6da0d6ccab97113ce635a14 | [
"BSD-3-Clause"
] | null | null | null | contextmonkey/tracelayer/handlers/file/__init__.py | manojrege/contextmonkey | 9974889a726d7f60c6da0d6ccab97113ce635a14 | [
"BSD-3-Clause"
] | null | null | null | """Modules for fetching traces from a trace file."""
__all__=['CSVFileRequestHandler',
'FileRequestHandlerFactory',
'TEXTFileRequestHandler',
'ContextMonkeyFileCache',
'FileSchemaFactory',
'XMLFileRequestHandler',
'FileRequestHandler',
'JSONFileRequ... | 30.75 | 52 | 0.636856 | 18 | 369 | 12.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265583 | 369 | 11 | 53 | 33.545455 | 0.852399 | 0.124661 | 0 | 0 | 0 | 0 | 0.599369 | 0.488959 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
af71fa332550cf6feb6acbaa2d638a695fa65046 | 2,121 | py | Python | hooks/webkitpy/layout_tests/port/config_mock.py | nizovn/luna-sysmgr | 48b7e2546e81d6ad1604353f2e5ab797a7d1667c | [
"Apache-2.0"
] | 15 | 2015-05-25T19:28:05.000Z | 2021-05-03T09:21:22.000Z | WebKit/Tools/Scripts/webkitpy/layout_tests/port/config_mock.py | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | WebKit/Tools/Scripts/webkitpy/layout_tests/port/config_mock.py | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 7 | 2019-01-30T08:56:04.000Z | 2021-11-19T16:14:54.000Z | #!/usr/bin/env python
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | 41.588235 | 72 | 0.756719 | 285 | 2,121 | 5.568421 | 0.529825 | 0.063012 | 0.045369 | 0.028986 | 0.115942 | 0.085696 | 0.085696 | 0.085696 | 0.085696 | 0.085696 | 0 | 0.002302 | 0.180575 | 2,121 | 50 | 73 | 42.42 | 0.910817 | 0.730316 | 0 | 0 | 0 | 0 | 0.029685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0 | 0.384615 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
af78a8aba7db1449afecc8107965213db7ca8751 | 195 | py | Python | Challenges/Desafio031.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | Challenges/Desafio031.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | Challenges/Desafio031.py | JeffersonYepes/Python | 406423ba0b570680dab9e1b0d0380b41fbe7fe32 | [
"MIT"
] | null | null | null | print('*** Calculadora de preço de passagem ***\n')
d = float(input('Digite a distância da viagem em Km: '))
p = d * 0.50 if d <= 200 else d * 0.45
print('Você deverá pagar: R${:.2f}'.format(p))
| 39 | 56 | 0.625641 | 36 | 195 | 3.388889 | 0.805556 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062112 | 0.174359 | 195 | 4 | 57 | 48.75 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
af887f561bd30b1637adb297aeb4d6ce8ab02757 | 687 | py | Python | diofant/geometry/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | 1 | 2021-08-22T09:34:15.000Z | 2021-08-22T09:34:15.000Z | diofant/geometry/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | null | null | null | diofant/geometry/__init__.py | project-kotinos/diofant___diofant | 882549ac3a4dac238695aa620c02fce6ca33f9d3 | [
"BSD-3-Clause"
] | null | null | null | """
A geometry module for the Diofant library. This module contains all of the
entities and functions needed to construct basic geometrical data and to
perform simple informational queries.
Notes
=====
Currently the geometry module supports 2-dimensional
and 3-dimensional Euclidean space.
"""
from .curve import Cur... | 29.869565 | 74 | 0.800582 | 94 | 687 | 5.829787 | 0.659574 | 0.051095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013559 | 0.141194 | 687 | 22 | 75 | 31.227273 | 0.915254 | 0.417758 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
af8e02df150669e0de128bfae3435af7e4789bd1 | 698 | py | Python | leetcode/easy/others/test_palindrome_number.py | yenbohuang/online-contest-python | c60b332866caa28e1ae5e216cbfc2c6f869a751a | [
"Apache-2.0"
] | null | null | null | leetcode/easy/others/test_palindrome_number.py | yenbohuang/online-contest-python | c60b332866caa28e1ae5e216cbfc2c6f869a751a | [
"Apache-2.0"
] | null | null | null | leetcode/easy/others/test_palindrome_number.py | yenbohuang/online-contest-python | c60b332866caa28e1ae5e216cbfc2c6f869a751a | [
"Apache-2.0"
] | null | null | null | # https://leetcode.com/problems/palindrome-number/
import unittest
class Solution(object):
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
xString = str(x)
return xString == xString[::-1]
class TestSolution(unittest.TestCase):
def setUp(self):
... | 19.388889 | 58 | 0.621777 | 79 | 698 | 5.316456 | 0.493671 | 0.07619 | 0.078571 | 0.128571 | 0.328571 | 0.328571 | 0.180952 | 0 | 0 | 0 | 0 | 0.022945 | 0.250716 | 698 | 35 | 59 | 19.942857 | 0.780115 | 0.10745 | 0 | 0 | 0 | 0 | 0.013536 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.333333 | false | 0.055556 | 0.055556 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
af90799de81a50eed01ac9c0a3c58ed9590461dd | 154 | py | Python | openprocurement/bridge/pricequotation/utils.py | quintagroup/openprocurement.bridge.pricequotation | 015cf1396357c3380ad0c2a7697051cfea9797ae | [
"Apache-2.0"
] | null | null | null | openprocurement/bridge/pricequotation/utils.py | quintagroup/openprocurement.bridge.pricequotation | 015cf1396357c3380ad0c2a7697051cfea9797ae | [
"Apache-2.0"
] | null | null | null | openprocurement/bridge/pricequotation/utils.py | quintagroup/openprocurement.bridge.pricequotation | 015cf1396357c3380ad0c2a7697051cfea9797ae | [
"Apache-2.0"
] | 1 | 2021-01-15T12:55:39.000Z | 2021-01-15T12:55:39.000Z | # -*- coding: utf-8 -*-
def journal_context(record={}, params={}):
for k, v in params.items():
record["JOURNAL_" + k] = v
return record
| 19.25 | 42 | 0.558442 | 20 | 154 | 4.2 | 0.7 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.246753 | 154 | 7 | 43 | 22 | 0.715517 | 0.136364 | 0 | 0 | 0 | 0 | 0.061069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
afa76cbb96796ad442a83d31dd82b04e2255f5c6 | 22 | py | Python | redis_session/tests/__init__.py | gautamk/redis-session | 90d172b9e3a95e8672f3a2583736ae6b1744868f | [
"MIT"
] | 1 | 2015-11-06T00:01:36.000Z | 2015-11-06T00:01:36.000Z | black/n/white/__init__.py | gautamk/BlackNWhite | bf7ab09f1a666d2f8cabb049ef15aa160025a525 | [
"MIT"
] | null | null | null | black/n/white/__init__.py | gautamk/BlackNWhite | bf7ab09f1a666d2f8cabb049ef15aa160025a525 | [
"MIT"
] | null | null | null | __author__ = 'gautam'
| 11 | 21 | 0.727273 | 2 | 22 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 22 | 1 | 22 | 22 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bb5f956c9535e72961cf1ae38be5beb477d5044a | 1,383 | py | Python | modularodm/query/queryset.py | felliott/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | 4 | 2018-09-21T18:57:03.000Z | 2020-10-19T05:38:14.000Z | modularodm/query/queryset.py | cos-archives/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | null | null | null | modularodm/query/queryset.py | cos-archives/modular-odm | 8a34891892b8af69b21fdc46701c91763a5c1cf9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class BaseQuerySet(object):
_NEGATIVE_INDEXING = False
def __init__(self, schema, data=None):
self.schema = schema
self.primary = schema._primary_name
self.data = data
def __getitem__(self, index):
... | 24.263158 | 108 | 0.616775 | 166 | 1,383 | 4.951807 | 0.343373 | 0.144769 | 0.170316 | 0.175182 | 0.30292 | 0.180049 | 0.180049 | 0.072993 | 0 | 0 | 0 | 0.004111 | 0.296457 | 1,383 | 56 | 109 | 24.696429 | 0.840699 | 0.015184 | 0 | 0.390244 | 0 | 0 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.219512 | false | 0.170732 | 0.04878 | 0 | 0.341463 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
bb69a3a8e7122db63153242773c89c3d60851195 | 639 | py | Python | tests/controllers/security/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | tests/controllers/security/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | tests/controllers/security/conftest.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Arquivo para fixtures"""
from pytest import fixture
from mitmirror.data.security import Authentication
from mitmirror.presenters.controllers.security import AuthenticationController
from tests.mocks import UserRepositorySpy, PasswordHashSpy
@fixture
def password_hash():
"""Montando password_hash"""
return... | 26.625 | 78 | 0.793427 | 63 | 639 | 7.904762 | 0.507937 | 0.096386 | 0.100402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007207 | 0.131455 | 639 | 23 | 79 | 27.782609 | 0.89009 | 0.13928 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.384615 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
bb69a42d08ba4e205135e33ca1eb108950d9541c | 71 | py | Python | hello.py | rls7599/cs3240-labdemo | 0a09d00cd793807933362a7f8ed99e0e258f426f | [
"MIT"
] | null | null | null | hello.py | rls7599/cs3240-labdemo | 0a09d00cd793807933362a7f8ed99e0e258f426f | [
"MIT"
] | null | null | null | hello.py | rls7599/cs3240-labdemo | 0a09d00cd793807933362a7f8ed99e0e258f426f | [
"MIT"
] | null | null | null | __author__ = 'Ronnie'
from helper import greeting
greeting("good-bye") | 17.75 | 27 | 0.774648 | 9 | 71 | 5.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112676 | 71 | 4 | 28 | 17.75 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb797214a32ccdb8fdf395fb992c32a62b09ee57 | 1,617 | py | Python | arm_prosthesis/external_communication/models/dto/set_positions_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 2 | 2021-11-08T01:52:36.000Z | 2021-11-08T01:52:38.000Z | arm_prosthesis/external_communication/models/dto/set_positions_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | null | null | null | arm_prosthesis/external_communication/models/dto/set_positions_dto.py | paulrozhkin/arm_prosthesis_raspberry | a643dc84109f1d516fa2ca50414f95f408d6da7d | [
"MIT"
] | 1 | 2020-11-08T16:45:23.000Z | 2020-11-08T16:45:23.000Z | from arm_prosthesis.external_communication.models.dto.entity_dto import EntityDto
from gestures_pb2 import SetPositions
class SetPositionsDto(EntityDto):
def __init__(self):
self._little_finger_position = 0
self._ring_finger_position = 0
self._middle_finger_position = 0
... | 33.6875 | 82 | 0.714286 | 180 | 1,617 | 5.95 | 0.238889 | 0.326797 | 0.151261 | 0.098039 | 0.200747 | 0.144725 | 0 | 0 | 0 | 0 | 0 | 0.004819 | 0.230056 | 1,617 | 47 | 83 | 34.404255 | 0.855422 | 0 | 0 | 0.138889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.138889 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
bb88d45aa9121d008dcc48f82afbbc3fce25bf27 | 957 | py | Python | taurex/data/profiles/chemistry/filechemistry.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 10 | 2019-12-18T09:19:16.000Z | 2021-06-21T11:02:06.000Z | taurex/data/profiles/chemistry/filechemistry.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 10 | 2020-03-24T18:02:15.000Z | 2021-08-23T20:32:09.000Z | taurex/data/profiles/chemistry/filechemistry.py | ucl-exoplanets/TauREx3_public | cf8da465448df44c3c4dcc2cd0002ef34edd3920 | [
"BSD-3-Clause"
] | 8 | 2020-03-26T14:16:42.000Z | 2021-12-18T22:11:25.000Z | from .autochemistry import AutoChemistry
import numpy as np
from taurex.cache import OpacityCache
class ChemistryFile(AutoChemistry):
"""
Chemistry profile read from file
Parameters
----------
gases : :obj:`list`
Gases in file
filename : str
filename for mix ratios
"""... | 20.804348 | 57 | 0.633229 | 105 | 957 | 5.47619 | 0.466667 | 0.046957 | 0.041739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.269592 | 957 | 46 | 58 | 20.804348 | 0.822604 | 0.144201 | 0 | 0.086957 | 0 | 0 | 0.025707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.130435 | 0.130435 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
bba9e333edc502cb52d1172cc8d6cb6fa8697393 | 1,492 | py | Python | skeleton/OpenPose.py | GuillaumeRochette/Reconstruction3D | 358d9cb55486ad0f81a31df8ab4159153765e7e5 | [
"Apache-2.0"
] | 1 | 2022-01-10T09:14:34.000Z | 2022-01-10T09:14:34.000Z | skeleton/OpenPose.py | GuillaumeRochette/Reconstruction3D | 358d9cb55486ad0f81a31df8ab4159153765e7e5 | [
"Apache-2.0"
] | null | null | null | skeleton/OpenPose.py | GuillaumeRochette/Reconstruction3D | 358d9cb55486ad0f81a31df8ab4159153765e7e5 | [
"Apache-2.0"
] | null | null | null | EDGES_BODY_25 = [
[0, 1],
[1, 2],
[2, 3],
[3, 4],
[1, 5],
[5, 6],
[6, 7],
[1, 8],
[8, 9],
[9, 10],
[10, 11],
[11, 22],
[22, 23],
[11, 24],
[8, 12],
[12, 13],
[13, 14],
[14, 19],
[19, 20],
[14, 21],
[0, 15],
[15, 17],
[0, 16],
... | 12.862069 | 17 | 0.267426 | 221 | 1,492 | 1.78733 | 0.325792 | 0.01519 | 0.022785 | 0.03038 | 0.36962 | 0.356962 | 0.260759 | 0.121519 | 0 | 0 | 0 | 0.440191 | 0.439678 | 1,492 | 115 | 18 | 12.973913 | 0.032297 | 0 | 0 | 0.424779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bba9e8c0dfcc46dbd993b06ee31e676306c17731 | 224 | py | Python | Lesson09/testModule.py | PacktPublishing/Python-Fundamentals | f24569826b1b7f97e3d54630a34ae61110ca12da | [
"MIT"
] | 1 | 2021-04-23T14:01:56.000Z | 2021-04-23T14:01:56.000Z | Lesson09/testModule.py | PacktPublishing/Python-Fundamentals | f24569826b1b7f97e3d54630a34ae61110ca12da | [
"MIT"
] | null | null | null | Lesson09/testModule.py | PacktPublishing/Python-Fundamentals | f24569826b1b7f97e3d54630a34ae61110ca12da | [
"MIT"
] | 4 | 2021-06-29T05:57:44.000Z | 2021-09-02T10:14:55.000Z | #import myModule
from myModule import *
r = float(input('Please enter radius:'))
print('The circumference of the circle with radius', r, 'is', circumference(r))
print('The area of the circle with radius', r, 'is', area(r)) | 32 | 79 | 0.714286 | 35 | 224 | 4.571429 | 0.485714 | 0.1 | 0.1375 | 0.1875 | 0.3 | 0.3 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 224 | 7 | 80 | 32 | 0.833333 | 0.066964 | 0 | 0 | 0 | 0 | 0.483254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
bbc57307ade97ecd5dd81aa238fd3fb3bb70eadd | 167 | py | Python | Python/CodeForces Solutions/1-500/122A.py | 7namansharma/Comp-Prog | b760ef9b4173e6d5851dc63cc92a8e935baf60ed | [
"MIT"
] | null | null | null | Python/CodeForces Solutions/1-500/122A.py | 7namansharma/Comp-Prog | b760ef9b4173e6d5851dc63cc92a8e935baf60ed | [
"MIT"
] | null | null | null | Python/CodeForces Solutions/1-500/122A.py | 7namansharma/Comp-Prog | b760ef9b4173e6d5851dc63cc92a8e935baf60ed | [
"MIT"
] | null | null | null | l = [4, 7, 44, 47, 74, 77, 444, 447, 474, 477, 744, 747, 774, 777]
n = int(input())
for i in l:
if n%i==0:
print("YES")
break
else:
print("NO") | 20.875 | 66 | 0.479042 | 32 | 167 | 2.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0.311377 | 167 | 8 | 67 | 20.875 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0.029762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bbe62ea15b978c35fb248e2608da6551eb9c8a33 | 82 | py | Python | Topics/Datetime module/Happy birthday_/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | 1 | 2021-07-26T03:06:14.000Z | 2021-07-26T03:06:14.000Z | Topics/Datetime module/Happy birthday_/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | null | null | null | Topics/Datetime module/Happy birthday_/main.py | valenciarichards/hypernews-portal | 0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3 | [
"MIT"
] | null | null | null | import datetime
# create birthday here
birthday = datetime.datetime(1989, 7, 20)
| 16.4 | 41 | 0.768293 | 11 | 82 | 5.727273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.146341 | 82 | 4 | 42 | 20.5 | 0.8 | 0.243902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bbe934a5ba0cfa5b11b383c16f0d2f9d6efd28c9 | 213 | py | Python | backend/tasks/fazer/serializers.py | carlosdesousa91/projetoTasks | acd71315538de744876d965b6a57afe2c684e466 | [
"Apache-2.0"
] | null | null | null | backend/tasks/fazer/serializers.py | carlosdesousa91/projetoTasks | acd71315538de744876d965b6a57afe2c684e466 | [
"Apache-2.0"
] | null | null | null | backend/tasks/fazer/serializers.py | carlosdesousa91/projetoTasks | acd71315538de744876d965b6a57afe2c684e466 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from tasks.fazer.models import Fazer
class FazerSerializer(serializers.ModelSerializer):
class Meta:
model = Fazer
fields = ['id', 'titulo', 'descricao'] | 30.428571 | 51 | 0.723005 | 23 | 213 | 6.652174 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187793 | 213 | 7 | 52 | 30.428571 | 0.884393 | 0 | 0 | 0 | 0 | 0 | 0.079439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bbedd4ad824b8fbc4767251fe4156d96ef0990ea | 102 | py | Python | py_tdlib/constructors/text_entities.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/text_entities.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/text_entities.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Type
class textEntities(Type):
entities = None # type: "vector<textEntity>"
| 17 | 46 | 0.72549 | 12 | 102 | 6.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 102 | 5 | 47 | 20.4 | 0.860465 | 0.254902 | 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 | 0 | 0 | 0 | 3 |
a552989eeabeadca5c849100e9241a93ec2c3cd9 | 1,150 | py | Python | src/injecta/generator/ServiceGenerator.py | DataSentics/injecta | 090eeac6c76c43d40be71df678222a07b0a3c783 | [
"MIT"
] | 3 | 2021-09-27T12:55:00.000Z | 2022-01-31T19:13:23.000Z | src/injecta/generator/ServiceGenerator.py | DataSentics/injecta | 090eeac6c76c43d40be71df678222a07b0a3c783 | [
"MIT"
] | null | null | null | src/injecta/generator/ServiceGenerator.py | DataSentics/injecta | 090eeac6c76c43d40be71df678222a07b0a3c783 | [
"MIT"
] | 1 | 2021-03-04T09:12:05.000Z | 2021-03-04T09:12:05.000Z | from injecta.generator.ObjectGenerator import ObjectGenerator
from injecta.generator.ServiceMethodNameTranslator import ServiceMethodNameTranslator
from injecta.service.resolved.ResolvedService import ResolvedService
class ServiceGenerator:
def __init__(self, object_generator: ObjectGenerator, service_method_name... | 54.761905 | 136 | 0.767826 | 124 | 1,150 | 6.685484 | 0.209677 | 0.144753 | 0.12304 | 0.195416 | 0.3269 | 0.289505 | 0.289505 | 0.289505 | 0.108565 | 0.108565 | 0 | 0 | 0.147826 | 1,150 | 20 | 137 | 57.5 | 0.845918 | 0 | 0 | 0 | 0 | 0 | 0.081739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a5553996b4295f74a8da49f73158fac5c83fb453 | 192 | py | Python | software/ekf/ekf_sim/test.py | tucuongbrt/PIFer | e2ac4d4443e1c6a6263f91c32f28dbe767590359 | [
"MIT"
] | 2 | 2021-03-17T18:23:15.000Z | 2021-03-18T06:19:44.000Z | software/ekf/ekf_sim/test.py | tucuongbrt/PIFer | e2ac4d4443e1c6a6263f91c32f28dbe767590359 | [
"MIT"
] | 2 | 2021-04-03T08:50:46.000Z | 2021-04-03T08:50:57.000Z | software/ekf/ekf_sim/test.py | tucuongbrt/PIFer | e2ac4d4443e1c6a6263f91c32f28dbe767590359 | [
"MIT"
] | 2 | 2021-04-14T00:18:23.000Z | 2021-05-06T05:57:54.000Z | from math import *
A = [[0, 0, 3],
[13.2, 0, 3],
[0, 3.6, 3],
[13.2, 3.6, 3]]
x = 0.0
y = 0.6
z = 0
for a in A:
d = sqrt((x-a[0])**2 + (y-a[1])**2 + (z-a[2])**2)
print(d) | 14.769231 | 53 | 0.369792 | 48 | 192 | 1.479167 | 0.375 | 0.084507 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219697 | 0.3125 | 192 | 13 | 54 | 14.769231 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5688136762ffec25650a4c381ad2f92108f1f93 | 300 | py | Python | mason/test/support/clients/test2/execution.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 4 | 2021-04-12T17:49:34.000Z | 2022-01-23T19:54:29.000Z | mason/test/support/clients/test2/execution.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 24 | 2021-04-30T18:40:25.000Z | 2021-05-12T20:52:06.000Z | mason/test/support/clients/test2/execution.py | kyprifog/mason | bf45672124ef841bc16216c293034f4ccc506621 | [
"Apache-2.0"
] | 3 | 2021-04-12T19:40:43.000Z | 2021-09-07T21:56:36.000Z | from mason.clients.engines.execution import ExecutionClient
from mason.test.support.clients.test2 import Test2Client
class Test2ExecutionClient(ExecutionClient):
def __init__(self, client: Test2Client):
self.client = client
def is_async(self) -> bool:
return False
| 27.272727 | 59 | 0.733333 | 33 | 300 | 6.515152 | 0.666667 | 0.083721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016529 | 0.193333 | 300 | 10 | 60 | 30 | 0.871901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a577f7147985a375134a32eaf3309b85193b0bf7 | 161 | py | Python | django_string/random_string.py | reimibeta/django-string | df16542aa3c4f619eb5b419c61c37d34a463fab1 | [
"MIT"
] | null | null | null | django_string/random_string.py | reimibeta/django-string | df16542aa3c4f619eb5b419c61c37d34a463fab1 | [
"MIT"
] | null | null | null | django_string/random_string.py | reimibeta/django-string | df16542aa3c4f619eb5b419c61c37d34a463fab1 | [
"MIT"
] | null | null | null | import uuid
class RandomString:
# def __init__(self):
def ustring(self):
return uuid.uuid4().hex[:8].upper()
random_string = RandomString()
| 13.416667 | 43 | 0.652174 | 19 | 161 | 5.263158 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.217391 | 161 | 11 | 44 | 14.636364 | 0.777778 | 0.118012 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a5a3fa10cce288f0d15c5812cf0dc00e1cd6a9ec | 45,816 | py | Python | transmutagen/tests/crv_coeffs.py | ergs/transmutagen | 16b9467a3bb52914b641e1d9a5de643eb3fff214 | [
"BSD-3-Clause"
] | 4 | 2017-02-09T19:22:36.000Z | 2018-04-04T10:19:45.000Z | transmutagen/tests/crv_coeffs.py | ergs/transmutagen | 16b9467a3bb52914b641e1d9a5de643eb3fff214 | [
"BSD-3-Clause"
] | 7 | 2017-05-19T15:31:52.000Z | 2018-01-21T19:25:49.000Z | transmutagen/tests/crv_coeffs.py | ergs/transmutagen | 16b9467a3bb52914b641e1d9a5de643eb3fff214 | [
"BSD-3-Clause"
] | null | null | null | """
exp(-t) on [0, oo) best CRAM coefficients from the appendix of the paper
"Extended Numerical Computations on the '1/9' Conjecture in Rational
Approximation Theory", A. J. Carpenter, A. Ruttan, and R.S. Varga
The coefficients have been OCRed from https://finereaderonline.com which uses
Abbyy, and verified by hand.
... | 39.360825 | 111 | 0.561463 | 3,831 | 45,816 | 6.692508 | 0.321587 | 0.004212 | 0.034323 | 0.026912 | 0.059636 | 0.016849 | 0.011701 | 0.010297 | 0.008581 | 0.007333 | 0 | 0.669459 | 0.301772 | 45,816 | 1,163 | 112 | 39.394669 | 0.13201 | 0.033678 | 0 | 0.030275 | 0 | 0 | 0.566991 | 0.553677 | 0 | 0 | 0 | 0.00086 | 0 | 1 | 0.00367 | false | 0.000917 | 0.010092 | 0 | 0.015596 | 0.008257 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5ab017d83f366bbd99a2b022abc25a7a8eabcc4 | 108 | py | Python | commenting_system/apps.py | nadavspinco/picATrip | 592577d16f55f811fb91f8ac2c5472f79896681e | [
"MIT"
] | 1 | 2021-03-09T09:34:46.000Z | 2021-03-09T09:34:46.000Z | commenting_system/apps.py | nadavspinco/picATrip | 592577d16f55f811fb91f8ac2c5472f79896681e | [
"MIT"
] | 91 | 2021-03-08T16:54:36.000Z | 2021-05-02T10:39:31.000Z | commenting_system/apps.py | nadavspinco/picATrip | 592577d16f55f811fb91f8ac2c5472f79896681e | [
"MIT"
] | 7 | 2021-03-08T15:50:49.000Z | 2021-03-11T19:29:08.000Z | from django.apps import AppConfig
class CommentingSystemConfig(AppConfig):
name = 'commenting_system'
| 18 | 40 | 0.796296 | 11 | 108 | 7.727273 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138889 | 108 | 5 | 41 | 21.6 | 0.913978 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
a5b36dcf703d62a12dc218289ede91542dd19ea6 | 126,189 | py | Python | template_container_macaque/labels/slice_17.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_macaque/labels/slice_17.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | template_container_macaque/labels/slice_17.py | lkondratova/Brainplot | 3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d | [
"MIT"
] | null | null | null | coordinates_7F0030 = ((151, 114),
(151, 115), (151, 116), (151, 117), (151, 118), (151, 119), (151, 120), (151, 121), (151, 122), (151, 123), (151, 124), (151, 125), (151, 126), (151, 127), (151, 128), (151, 129), (151, 130), (151, 131), (151, 132), (151, 133), (151, 135), (152, 111), (152, 113), (152, 135), (153, 11... | 774.165644 | 865 | 0.499275 | 20,958 | 126,189 | 3.005583 | 0.010354 | 0.000286 | 0.000286 | 0.000381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.598892 | 0.168652 | 126,189 | 162 | 866 | 778.944444 | 0.001554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a5b4653191d3f654d7c1579bc9434a04803d1ae5 | 193 | py | Python | src/api/urls.py | nefarius/portfolio-backend | f595041354eedee71a4aa5b761501be030b81d09 | [
"Apache-2.0"
] | 6 | 2019-06-19T12:56:42.000Z | 2021-12-26T07:22:47.000Z | src/api/urls.py | nefarius/portfolio-backend | f595041354eedee71a4aa5b761501be030b81d09 | [
"Apache-2.0"
] | 13 | 2019-12-20T10:39:44.000Z | 2022-02-10T09:11:09.000Z | src/api/urls.py | nefarius/portfolio-backend | f595041354eedee71a4aa5b761501be030b81d09 | [
"Apache-2.0"
] | 1 | 2021-12-01T12:03:29.000Z | 2021-12-01T12:03:29.000Z | from django.urls import include, re_path
from . import urls_api
urlpatterns = [
re_path(r'^(?P<version>(v1))/', include(urls_api)),
# path('auth/', include('rest_framework.urls')),
]
| 21.444444 | 55 | 0.668394 | 27 | 193 | 4.592593 | 0.592593 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006061 | 0.145078 | 193 | 8 | 56 | 24.125 | 0.745455 | 0.238342 | 0 | 0 | 0 | 0 | 0.131034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
36ff2931c5c5511cd76024b5180a0ddd9b99b30d | 556 | py | Python | tests/test_country.py | mgorny/babelfish | 62ee6f572585ed4d0d1cde51374aa7afdfe8aed2 | [
"BSD-3-Clause"
] | 18 | 2015-01-07T19:55:47.000Z | 2022-03-05T00:04:48.000Z | tests/test_country.py | mgorny/babelfish | 62ee6f572585ed4d0d1cde51374aa7afdfe8aed2 | [
"BSD-3-Clause"
] | 22 | 2015-01-06T11:49:47.000Z | 2021-11-09T12:11:30.000Z | tests/test_country.py | mgorny/babelfish | 62ee6f572585ed4d0d1cde51374aa7afdfe8aed2 | [
"BSD-3-Clause"
] | 13 | 2015-01-06T11:51:01.000Z | 2021-08-16T09:35:49.000Z | import pickle
import pytest
from babelfish.country import Country
def test_eq():
assert Country("US") == Country("US")
def test_ne():
assert Country("GB") != Country("US")
def test_hash_eq():
assert hash(Country("US")) == hash("US")
def test_hasattr_name():
assert hasattr(Country("US"), "name")
de... | 20.592593 | 69 | 0.663669 | 74 | 556 | 4.851351 | 0.324324 | 0.13649 | 0.075209 | 0.089136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004301 | 0.163669 | 556 | 26 | 70 | 21.384615 | 0.767742 | 0 | 0 | 0 | 0 | 0 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.388889 | true | 0 | 0.166667 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3c0b6540aae2d4f8cd884e58714412d7dce5c598 | 650 | py | Python | app/util/test.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | app/util/test.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | app/util/test.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | """ Utilities for testing """
import json
from urllib.parse import quote
from base64 import b64encode
def create_json_param(param):
'''
Encode json param to string under the following sequence
json -> json.dumps -> base64encode -> urllib.parse.quote
Args:
param: json param needs to be encoded.... | 23.214286 | 60 | 0.655385 | 80 | 650 | 5.275 | 0.4625 | 0.063981 | 0.042654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016427 | 0.250769 | 650 | 28 | 61 | 23.214286 | 0.850103 | 0.515385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3c28c7aa380e6d094ab444af65fc05748dd4407b | 235 | py | Python | python/testData/inspections/PyDocstringInspection/src/test.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/inspections/PyDocstringInspection/src/test.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/inspections/PyDocstringInspection/src/test.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class A:
pass
def foo():
pass
class B:
""""""
pass
def bar():
""""""
pass
class C:
@property
def x(self):
return 42
@x.setter
def x(self, value):
pass
@x.deleter
def x(self):
pass | 8.392857 | 21 | 0.485106 | 33 | 235 | 3.454545 | 0.484848 | 0.105263 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.361702 | 235 | 28 | 22 | 8.392857 | 0.746667 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.333333 | 0 | 0.055556 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3c2b647476a0a347b6e528a80b465c3a3f714c44 | 269 | py | Python | odata1cw/utils.py | SkiBY/1c-odata | e1709ae6a21a4d1352ffa89e6702da5f242172e8 | [
"Unlicense"
] | 5 | 2020-02-20T13:02:01.000Z | 2021-12-06T09:44:42.000Z | odata1cw/utils.py | SkiBY/1c-odata | e1709ae6a21a4d1352ffa89e6702da5f242172e8 | [
"Unlicense"
] | 1 | 2020-12-15T18:01:57.000Z | 2020-12-15T18:01:57.000Z | odata1cw/utils.py | SkiBY/1c-odata | e1709ae6a21a4d1352ffa89e6702da5f242172e8 | [
"Unlicense"
] | 6 | 2019-11-24T15:04:00.000Z | 2021-12-13T07:21:48.000Z | def make_url_part(name, value, value_type):
if value == None:
return ''
if type(value) != value_type:
raise ValueError('{}={} must be {}'.format(
name, value, value_type))
result = "&${}={}".format(name, value)
return result
| 29.888889 | 51 | 0.565056 | 32 | 269 | 4.59375 | 0.5 | 0.183673 | 0.285714 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267658 | 269 | 8 | 52 | 33.625 | 0.746193 | 0 | 0 | 0 | 0 | 0 | 0.085502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c5ea7aa48b3ba051c5d79211ea441fe7d2e3e0f | 178 | py | Python | homeworks/alexander_sidorov/lesson10/level03.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | homeworks/alexander_sidorov/lesson10/level03.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | 8 | 2019-11-15T18:15:56.000Z | 2020-02-03T18:05:05.000Z | homeworks/alexander_sidorov/lesson10/level03.py | tgrx/Z22 | b2539682ff26c8b6d9f63a7670c8a9c6b614a8ff | [
"Apache-2.0"
] | null | null | null | import re
WORD_RE = re.compile("[A-Z][a-z]+")
def validate_password(password: str) -> int:
words = len(WORD_RE.findall(password))
return 5 - words if words < 5 else 0
| 19.777778 | 44 | 0.657303 | 30 | 178 | 3.8 | 0.633333 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 0.191011 | 178 | 8 | 45 | 22.25 | 0.770833 | 0 | 0 | 0 | 0 | 0 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.4 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
3c6039a68ceb6dba667249eae285718ead6d213e | 48 | py | Python | cifr/models/discriminators/__init__.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | cifr/models/discriminators/__init__.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | cifr/models/discriminators/__init__.py | shi510/cifr-pytorch | 8e9aec5e520f0c1d89e97fd60abc7d72ff1a2854 | [
"Apache-2.0"
] | null | null | null | from .unet import UNet
__all__ = [
"UNet"
] | 9.6 | 22 | 0.604167 | 6 | 48 | 4.166667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 48 | 5 | 23 | 9.6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3c94592e0e78c9156434afccf98eff5f53be0212 | 1,303 | py | Python | storage/team17/BMode.py | XiomRB/tytus | 0873e4bdce5c110bee6ef2aa98240be6a93ae024 | [
"MIT"
] | 1 | 2021-01-09T05:32:35.000Z | 2021-01-09T05:32:35.000Z | storage/team17/BMode.py | XiomRB/tytus | 0873e4bdce5c110bee6ef2aa98240be6a93ae024 | [
"MIT"
] | null | null | null | storage/team17/BMode.py | XiomRB/tytus | 0873e4bdce5c110bee6ef2aa98240be6a93ae024 | [
"MIT"
] | null | null | null | from DataBase import *
b = DB()
#---------------------FUNCIONES BASES DE DATOS----------------------#
def createDatabase(database: str) -> int:
return b.createDatabase(database)
def showDatabases() -> list:
return b.showDatabases()
def alterDatabase(databaseOld, databaseNew) -> int:
return b... | 31.780488 | 71 | 0.629317 | 137 | 1,303 | 5.985401 | 0.240876 | 0.093902 | 0.097561 | 0.139024 | 0.121951 | 0.070732 | 0.070732 | 0 | 0 | 0 | 0 | 0 | 0.167306 | 1,303 | 41 | 72 | 31.780488 | 0.75576 | 0.143515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.458333 | false | 0 | 0.041667 | 0.458333 | 0.958333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b1b50eb9801a7443e9e398126024a04b818e0b9f | 262 | py | Python | opsdroid_homeassistant/__init__.py | davdr/opsdroid-homeassistant | 1a0ee19230dc3d56485fd27d14bc4c027df63405 | [
"Apache-2.0"
] | 1 | 2021-09-27T11:28:42.000Z | 2021-09-27T11:28:42.000Z | opsdroid_homeassistant/__init__.py | davdr/opsdroid-homeassistant | 1a0ee19230dc3d56485fd27d14bc4c027df63405 | [
"Apache-2.0"
] | 19 | 2020-01-04T13:48:33.000Z | 2021-06-01T11:18:07.000Z | opsdroid_homeassistant/__init__.py | davdr/opsdroid-homeassistant | 1a0ee19230dc3d56485fd27d14bc4c027df63405 | [
"Apache-2.0"
] | 3 | 2020-05-03T21:24:38.000Z | 2021-09-27T11:28:43.000Z | from .connector import HassConnector, HassEvent, HassServiceCall
from .matcher import match_hass_state_changed, match_sunrise, match_sunset
from .skill import HassSkill
from ._version import get_versions
__version__ = get_versions()["version"]
del get_versions
| 32.75 | 74 | 0.843511 | 33 | 262 | 6.30303 | 0.575758 | 0.158654 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099237 | 262 | 7 | 75 | 37.428571 | 0.881356 | 0 | 0 | 0 | 0 | 0 | 0.026718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b1b875432a1ecc2aebab68ecf5b0e7941b29445c | 322 | py | Python | manage.py | seawolf42/django-lookup-tables | b60060f64048805017bde08f85df5614cb2e9ec2 | [
"BSD-3-Clause"
] | 2 | 2018-06-06T19:07:46.000Z | 2018-06-21T17:09:24.000Z | manage.py | seawolf42/django-lookup-tables | b60060f64048805017bde08f85df5614cb2e9ec2 | [
"BSD-3-Clause"
] | 11 | 2018-05-04T04:03:10.000Z | 2018-08-10T16:50:39.000Z | manage.py | seawolf42/django-lookup-tables | b60060f64048805017bde08f85df5614cb2e9ec2 | [
"BSD-3-Clause"
] | 1 | 2018-10-18T17:34:15.000Z | 2018-10-18T17:34:15.000Z | import os
import sys
from django.core.management import execute_from_command_line
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
os.environ.setdefault('LOOKUP_TABLES_DRF_FIELD_INIT_NO_RESET', str(sys.argv[1] != 'runserver'))
execute_from_command_line(sys.argv... | 29.272727 | 99 | 0.782609 | 45 | 322 | 5.111111 | 0.644444 | 0.095652 | 0.156522 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.10559 | 322 | 10 | 100 | 32.2 | 0.795139 | 0 | 0 | 0 | 0 | 0 | 0.279503 | 0.18323 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b1c0c71c2290d445d24a40e86c911576e4bbc62f | 1,583 | py | Python | blog/models.py | kekehurry/ganzige.site | 4fc2fce6c03b302e115feccae6e02bd9e1e8231d | [
"MIT"
] | null | null | null | blog/models.py | kekehurry/ganzige.site | 4fc2fce6c03b302e115feccae6e02bd9e1e8231d | [
"MIT"
] | null | null | null | blog/models.py | kekehurry/ganzige.site | 4fc2fce6c03b302e115feccae6e02bd9e1e8231d | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Author(models.Model):
name = models.CharField(max_length=50)
introduction = models.CharField(max_length=100, null=True, blank=True)
portrait = models.CharField(
max_length=100, default='http://ganzige.site/media/portrait/default.jpg')
... | 27.77193 | 81 | 0.675932 | 214 | 1,583 | 4.827103 | 0.327103 | 0.077444 | 0.10455 | 0.1394 | 0.480155 | 0.300097 | 0.234269 | 0.234269 | 0.234269 | 0.234269 | 0 | 0.016575 | 0.199621 | 1,583 | 56 | 82 | 28.267857 | 0.798737 | 0.015161 | 0 | 0.307692 | 0 | 0 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.025641 | 0.205128 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b1c321ecb92dab52740fd224b5920c4c7a385c6d | 1,171 | py | Python | ogr2osm/datawriter_base_class.py | HSLdevcom/ogr2osm | ea0a485c76e60376b9da1cdfb3064bf6679c6e9f | [
"MIT"
] | null | null | null | ogr2osm/datawriter_base_class.py | HSLdevcom/ogr2osm | ea0a485c76e60376b9da1cdfb3064bf6679c6e9f | [
"MIT"
] | null | null | null | ogr2osm/datawriter_base_class.py | HSLdevcom/ogr2osm | ea0a485c76e60376b9da1cdfb3064bf6679c6e9f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2021 Roel Derickx, Paul Norman <penorman@mac.com>,
# Sebastiaan Couwenberg <sebastic@xs4all.nl>, The University of Vermont
# <andrew.guertin@uvm.edu>, github contributors
# Released under the MIT license, as given in the file LICENSE, which must
# accompany any distributio... | 18.887097 | 76 | 0.603757 | 140 | 1,171 | 4.864286 | 0.55 | 0.071953 | 0.088106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013614 | 0.309991 | 1,171 | 61 | 77 | 19.196721 | 0.829208 | 0.274125 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.45 | false | 0.4 | 0.05 | 0.05 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b1c7df0450906d86589f1aef7c8cfec986fd1b43 | 129 | py | Python | Reflected.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | 15 | 2018-02-18T04:13:23.000Z | 2022-03-10T18:24:36.000Z | Reflected.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | null | null | null | Reflected.py | ep4sh/pyddos | 95e86dbc3249f4ce9bb36c71663f0851d4db82cf | [
"MIT"
] | 7 | 2019-09-04T02:38:17.000Z | 2022-02-10T07:00:26.000Z | from scapy.all import *
p=IP( dst='10.50.0.59')/TCP(flags="S", sport=RandShort(), dport=int(80))
send(p, verbose=1, loop=1)
| 18.428571 | 74 | 0.635659 | 25 | 129 | 3.28 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097345 | 0.124031 | 129 | 6 | 75 | 21.5 | 0.628319 | 0 | 0 | 0 | 0 | 0 | 0.085938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b1cec5fa6968d5269a887b5e4411955fb63b6e59 | 3,487 | py | Python | loopchain/consensus/epoch.py | ahastudio/loopchain | 88b76956c069fedc1a0a2d239f47c3866493ad0f | [
"Apache-2.0"
] | null | null | null | loopchain/consensus/epoch.py | ahastudio/loopchain | 88b76956c069fedc1a0a2d239f47c3866493ad0f | [
"Apache-2.0"
] | null | null | null | loopchain/consensus/epoch.py | ahastudio/loopchain | 88b76956c069fedc1a0a2d239f47c3866493ad0f | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 ICON Foundation
#
# 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 writi... | 27.896 | 109 | 0.687697 | 462 | 3,487 | 4.829004 | 0.242424 | 0.114747 | 0.075303 | 0.057373 | 0.227701 | 0.131331 | 0.102196 | 0 | 0 | 0 | 0 | 0.004842 | 0.229997 | 3,487 | 124 | 110 | 28.120968 | 0.826071 | 0.167766 | 0 | 0.168675 | 0 | 0 | 0.04681 | 0.011789 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26506 | false | 0.024096 | 0.036145 | 0.144578 | 0.506024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b1e594bdada5757ef36ed9344808d7b934b2a674 | 1,100 | py | Python | acme_report.py | pragmatizt/DS-Unit-3-Sprint-1-Software-Engineering | f6f3a3fa3fe2e4b968a7f12ea874d54df5b19b2d | [
"MIT"
] | null | null | null | acme_report.py | pragmatizt/DS-Unit-3-Sprint-1-Software-Engineering | f6f3a3fa3fe2e4b968a7f12ea874d54df5b19b2d | [
"MIT"
] | null | null | null | acme_report.py | pragmatizt/DS-Unit-3-Sprint-1-Software-Engineering | f6f3a3fa3fe2e4b968a7f12ea874d54df5b19b2d | [
"MIT"
] | null | null | null | from random import randint, sample, uniform
from acme import Product
# Useful to use with random.sample to generate names
ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved']
NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetrap', '???']
# IRA's questions: is this still considered part of acm... | 33.333333 | 78 | 0.700909 | 154 | 1,100 | 4.896104 | 0.649351 | 0.023873 | 0.03183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00227 | 0.199091 | 1,100 | 32 | 79 | 34.375 | 0.853575 | 0.58 | 0 | 0 | 1 | 0 | 0.188995 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
59046d7a594aad605571b041189cff32a2e1acc8 | 18 | py | Python | pencompy/__init__.py | dubnom/pencompy | 8b3bb34898936d0999a8ede3b0e31259ce948386 | [
"MIT"
] | null | null | null | pencompy/__init__.py | dubnom/pencompy | 8b3bb34898936d0999a8ede3b0e31259ce948386 | [
"MIT"
] | null | null | null | pencompy/__init__.py | dubnom/pencompy | 8b3bb34898936d0999a8ede3b0e31259ce948386 | [
"MIT"
] | null | null | null | name = "pencompy"
| 9 | 17 | 0.666667 | 2 | 18 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
59089f3e817e631a2c324dff33bf47d4b0baa3b9 | 403 | py | Python | app/api_v1/resources/tests.py | chenke91/ckPermission | 42c71684bc0387ecb032b4c4fac0bdb66a22761c | [
"MIT"
] | null | null | null | app/api_v1/resources/tests.py | chenke91/ckPermission | 42c71684bc0387ecb032b4c4fac0bdb66a22761c | [
"MIT"
] | null | null | null | app/api_v1/resources/tests.py | chenke91/ckPermission | 42c71684bc0387ecb032b4c4fac0bdb66a22761c | [
"MIT"
] | null | null | null | #encoding: utf-8
from flask.ext.restful import Resource, reqparse
class Test(Resource):
def __init__(self):
self.parser = reqparse.RequestParser()
self.parser.add_argument('id', type=int)
super(AccountAPI, self).__init__()
def get(self):
return {'id': id}
def post(self)... | 18.318182 | 48 | 0.595533 | 49 | 403 | 4.714286 | 0.612245 | 0.103896 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003472 | 0.28536 | 403 | 22 | 49 | 18.318182 | 0.798611 | 0.037221 | 0 | 0.214286 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.214286 | 0.071429 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
59264ad261a6a23e0ac546edc8bdbf80096b30e2 | 153 | py | Python | ecs/documents/urls.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 9 | 2017-02-13T18:17:13.000Z | 2020-11-21T20:15:54.000Z | ecs/documents/urls.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 2 | 2021-05-20T14:26:47.000Z | 2021-05-20T14:26:48.000Z | ecs/documents/urls.py | programmierfabrik/ecs | 2389a19453e21b2ea4e40b272552bcbd42b926a9 | [
"Apache-2.0"
] | 4 | 2017-04-02T18:48:59.000Z | 2021-11-23T15:40:35.000Z | from django.conf.urls import url
from ecs.documents import views
urlpatterns = (
url(r'^ref/(?P<ref_key>[0-9a-f]{32})/$', views.download_once),
)
| 17 | 66 | 0.679739 | 25 | 153 | 4.08 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.137255 | 153 | 8 | 67 | 19.125 | 0.742424 | 0 | 0 | 0 | 0 | 0 | 0.20915 | 0.20915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3cb456e1a35f3768f8fe8fc9cb8d42f8abaa2637 | 1,508 | py | Python | tests/test_timex_not_applicable.py | yagays/ja-timex | 533b76d8586c65c6e7c95fc029f0f53eb1ee9fea | [
"MIT"
] | 89 | 2021-08-02T01:36:03.000Z | 2022-03-31T03:15:57.000Z | tests/test_timex_not_applicable.py | yagays/ja-timex | 533b76d8586c65c6e7c95fc029f0f53eb1ee9fea | [
"MIT"
] | 21 | 2021-08-02T04:08:26.000Z | 2022-02-23T10:32:50.000Z | tests/test_timex_not_applicable.py | yagays/ja-timex | 533b76d8586c65c6e7c95fc029f0f53eb1ee9fea | [
"MIT"
] | 7 | 2021-08-02T03:32:50.000Z | 2022-03-25T03:48:25.000Z | import pytest
from ja_timex.timex import TimexParser
@pytest.fixture(scope="module")
def p():
return TimexParser()
# 取得すべきではない表現が正しく取得されないか
def test_century_without_number(p):
assert p.parse("世紀の瞬間を目撃した") == []
assert p.parse("世紀末のノストラダムスの大予言") == []
def test_phrase_contains_temporal_expression(p):... | 23.2 | 54 | 0.644562 | 210 | 1,508 | 4.533333 | 0.395238 | 0.132353 | 0.147059 | 0.220588 | 0.226891 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0.067152 | 0.180371 | 1,508 | 64 | 55 | 23.5625 | 0.702265 | 0.106101 | 0 | 0 | 0 | 0 | 0.177745 | 0 | 0 | 0 | 0 | 0 | 0.636364 | 1 | 0.212121 | false | 0 | 0.060606 | 0.030303 | 0.30303 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cb60e3ff1806d0ff93de7de27fa54226cf6b4d3 | 42 | py | Python | influxdb_metrics/__init__.py | cron-ooo/django-influxdb-metrics | 7cecc315e12219897d941a6c02eac8ffc182b645 | [
"MIT"
] | null | null | null | influxdb_metrics/__init__.py | cron-ooo/django-influxdb-metrics | 7cecc315e12219897d941a6c02eac8ffc182b645 | [
"MIT"
] | null | null | null | influxdb_metrics/__init__.py | cron-ooo/django-influxdb-metrics | 7cecc315e12219897d941a6c02eac8ffc182b645 | [
"MIT"
] | null | null | null | __version__ = '2.0.0' # pragma: no cover
| 21 | 41 | 0.642857 | 7 | 42 | 3.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0.190476 | 42 | 1 | 42 | 42 | 0.588235 | 0.380952 | 0 | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3cd819e3c44904b31df4b5b17775873732a67ddc | 1,209 | py | Python | tests/test_mantiddata.py | jl-wynen/mantid-data | c8d7b3ea9b18956f15cc8c3950d0a1eeab9d35e3 | [
"BSD-3-Clause"
] | null | null | null | tests/test_mantiddata.py | jl-wynen/mantid-data | c8d7b3ea9b18956f15cc8c3950d0a1eeab9d35e3 | [
"BSD-3-Clause"
] | null | null | null | tests/test_mantiddata.py | jl-wynen/mantid-data | c8d7b3ea9b18956f15cc8c3950d0a1eeab9d35e3 | [
"BSD-3-Clause"
] | null | null | null | # SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2022 mantiddata contributors (https://github.com/mantid-data)
# flake8: noqa: E501
import mantiddata
import pytest
@pytest.fixture
def inventory():
return mantiddata.create()
def test_PG3_characterization_2011_08_31_HR_txt_is_correct(inventory):
expec... | 36.636364 | 122 | 0.722084 | 252 | 1,209 | 3.384921 | 0.507937 | 0.014068 | 0.053927 | 0.058617 | 0.075029 | 0.075029 | 0.075029 | 0 | 0 | 0 | 0 | 0.427136 | 0.177006 | 1,209 | 32 | 123 | 37.78125 | 0.430151 | 0.109181 | 0 | 0 | 0 | 0.043478 | 0.719478 | 0.060578 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.086957 | false | 0 | 0.086957 | 0.043478 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3ce80badbc9edc176d4f21efdd039f40660c3093 | 154 | py | Python | scripts/dataset_scripts/atl07.py | tedmaksym/leadingtophytoplankton | 165a4ccf5b79ef7858be3b13551728fe7873a659 | [
"BSD-3-Clause"
] | null | null | null | scripts/dataset_scripts/atl07.py | tedmaksym/leadingtophytoplankton | 165a4ccf5b79ef7858be3b13551728fe7873a659 | [
"BSD-3-Clause"
] | null | null | null | scripts/dataset_scripts/atl07.py | tedmaksym/leadingtophytoplankton | 165a4ccf5b79ef7858be3b13551728fe7873a659 | [
"BSD-3-Clause"
] | 1 | 2020-11-13T12:41:48.000Z | 2020-11-13T12:41:48.000Z | from .dataset import *
class ATL07(DataSet):
def visualize(self):
print('visualization function has yet to be implemented')
pass | 22 | 65 | 0.655844 | 18 | 154 | 5.611111 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.266234 | 154 | 7 | 66 | 22 | 0.876106 | 0 | 0 | 0 | 0 | 0 | 0.309677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a70e2f635d31fe060dcfcc8df8180f260c9b1c31 | 88 | py | Python | secrets.py | lhandal/tinder-bot | 5a57a724f4601f26ecc66956227d879eb31415a3 | [
"MIT"
] | 1 | 2021-02-04T10:31:13.000Z | 2021-02-04T10:31:13.000Z | secrets.py | lhandal/tinder-bot | 5a57a724f4601f26ecc66956227d879eb31415a3 | [
"MIT"
] | 1 | 2021-06-08T21:39:22.000Z | 2021-06-08T21:39:22.000Z | secrets.py | lhandal/tinder-bot | 5a57a724f4601f26ecc66956227d879eb31415a3 | [
"MIT"
] | 4 | 2020-06-02T19:51:22.000Z | 2022-03-16T08:17:09.000Z | # Facebook Credentials
username = 'ENTER USERNAME HERE'
password = 'ENTER PASSWORD HERE' | 29.333333 | 32 | 0.784091 | 10 | 88 | 6.9 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 88 | 3 | 33 | 29.333333 | 0.907895 | 0.227273 | 0 | 0 | 0 | 0 | 0.567164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
a713220f94af93eeccee4670f4c1021a90616622 | 355 | py | Python | ssm/main.py | Lonestar137/SSH-Man | d28316463e83cb4b83921660783c95bf0816ed39 | [
"MIT"
] | null | null | null | ssm/main.py | Lonestar137/SSH-Man | d28316463e83cb4b83921660783c95bf0816ed39 | [
"MIT"
] | null | null | null | ssm/main.py | Lonestar137/SSH-Man | d28316463e83cb4b83921660783c95bf0816ed39 | [
"MIT"
] | null | null | null | import time
import ssm.nframes
from ssm.nframes import queue
from ssm.nframes import initiate_vars
from curses import wrapper
from decouple import config, AutoConfig
from ssm.datastore import *
def main():
#The only relevant line of code if not using a monitor server.
initiate_vars()
wrapper(queue)
if __nam... | 15.434783 | 62 | 0.749296 | 51 | 355 | 5.019608 | 0.568627 | 0.117188 | 0.109375 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188732 | 355 | 22 | 63 | 16.136364 | 0.888889 | 0.171831 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.583333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
a72df99a5667a14759c295c2a39127856f1f4b3f | 18,761 | py | Python | nemesis.py | pyrex8/block_the_knight_kivy | d3c1bc690c7b021331f9ac44461330be797394a8 | [
"MIT"
] | 1 | 2017-09-08T14:20:03.000Z | 2017-09-08T14:20:03.000Z | nemesis.py | pyrex8/block_the_knight_kivy | d3c1bc690c7b021331f9ac44461330be797394a8 | [
"MIT"
] | null | null | null | nemesis.py | pyrex8/block_the_knight_kivy | d3c1bc690c7b021331f9ac44461330be797394a8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
""" pyweek 22 entry 'You can't let him in here."""
__author__ = "Rex Allison"
__copyright__ = "Copyright 2016, Rex Allison"
__license__ = "MIT"
nemesis = [
# nemesis 1
' '
,' '
,' '
,' X'
... | 22.740606 | 52 | 0.123874 | 846 | 18,761 | 2.732861 | 0.070922 | 0.154844 | 0.144031 | 0.136678 | 0.636246 | 0.515571 | 0.403114 | 0.348183 | 0.268599 | 0.218858 | 0 | 0.011674 | 0.758009 | 18,761 | 824 | 53 | 22.768204 | 0.497577 | 0.020361 | 0 | 0.991724 | 0 | 0 | 0.331145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a73241a56782c8e2614bc1231350a507d702ea4f | 373 | py | Python | openwatch/recordings/urls.py | Miserlou/OpenWatch | 874b03b0f2f7be58bbd35e1515f53a24d6a68116 | [
"Apache-2.0"
] | 2 | 2015-03-01T18:33:30.000Z | 2015-11-08T16:10:13.000Z | openwatch/recordings/urls.py | Miserlou/OpenWatch | 874b03b0f2f7be58bbd35e1515f53a24d6a68116 | [
"Apache-2.0"
] | null | null | null | openwatch/recordings/urls.py | Miserlou/OpenWatch | 874b03b0f2f7be58bbd35e1515f53a24d6a68116 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls.defaults import *
from openwatch.recordings.models import Recording
info_dict = {
'queryset': Recording.objects.all(),
}
urlpatterns = patterns('',
(r'^upload$', 'openwatch.recordings.views.upload'),
(r'^uploadnocaptcha$', 'openwatch.recordings.views.upload_no_captcha'),
(r'... | 28.692308 | 77 | 0.707775 | 40 | 373 | 6.525 | 0.6 | 0.291188 | 0.275862 | 0.229885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126005 | 373 | 12 | 78 | 31.083333 | 0.800614 | 0 | 0 | 0 | 0 | 0 | 0.410188 | 0.297587 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a7336624b95379d57edf5a9ef692268e27bda973 | 319 | py | Python | tachyon/propiedades/admin.py | Tachyon-BR/TachyonBR | 9afc99bbf0f6dea19d34dc1487165174733a0e66 | [
"MIT"
] | 1 | 2020-01-29T18:35:22.000Z | 2020-01-29T18:35:22.000Z | tachyon/propiedades/admin.py | Tachyon-BR/TachyonBR | 9afc99bbf0f6dea19d34dc1487165174733a0e66 | [
"MIT"
] | 12 | 2020-03-04T20:37:33.000Z | 2022-03-12T00:17:24.000Z | tachyon/propiedades/admin.py | Tachyon-BR/TachyonBR | 9afc99bbf0f6dea19d34dc1487165174733a0e66 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Propiedad)
admin.site.register(Foto)
admin.site.register(PropiedadComentario)
admin.site.register(CodigoPostal)
admin.site.register(FB_Page)
admin.site.register(MARCA_AGUA)
admin.site.register(IbanOnlineSolicitud) | 26.583333 | 40 | 0.830721 | 42 | 319 | 6.261905 | 0.452381 | 0.239544 | 0.452471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065831 | 319 | 12 | 41 | 26.583333 | 0.88255 | 0.081505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
596415875a55444e1d2fb2e0e10d3e547307e64d | 319 | py | Python | syloga/utils/try_or_default.py | xaedes/python-symbolic-logic-to-gate | a0dc9be9e04290008cf709fac789d224ab8c14b0 | [
"MIT"
] | null | null | null | syloga/utils/try_or_default.py | xaedes/python-symbolic-logic-to-gate | a0dc9be9e04290008cf709fac789d224ab8c14b0 | [
"MIT"
] | null | null | null | syloga/utils/try_or_default.py | xaedes/python-symbolic-logic-to-gate | a0dc9be9e04290008cf709fac789d224ab8c14b0 | [
"MIT"
] | null | null | null |
def try_or_default(default_value, func):
def wrap(*args, **kwargs):
try:
return func(*args, **kwargs)
except:
return default_value
return wrap
def try_or_false(func):
return try_or_default(False, func)
def try_or_true(func):
return try_or_default(True, func)
| 19.9375 | 40 | 0.636364 | 44 | 319 | 4.340909 | 0.295455 | 0.13089 | 0.125654 | 0.157068 | 0.230366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266458 | 319 | 15 | 41 | 21.266667 | 0.816239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
597c9ff7ee35d274e952a57c4145e1f0c80bb907 | 56 | py | Python | tests/app/polls/__init__.py | aioworkers/aioworkers-django | 027fb8691aa42af547e4161a96e141e7a501b13b | [
"Apache-2.0"
] | 1 | 2019-02-12T13:25:26.000Z | 2019-02-12T13:25:26.000Z | tests/app/polls/__init__.py | aioworkers/aioworkers-django | 027fb8691aa42af547e4161a96e141e7a501b13b | [
"Apache-2.0"
] | null | null | null | tests/app/polls/__init__.py | aioworkers/aioworkers-django | 027fb8691aa42af547e4161a96e141e7a501b13b | [
"Apache-2.0"
] | null | null | null | default_app_config = 'tests.app.polls.apps.PollsConfig'
| 28 | 55 | 0.821429 | 8 | 56 | 5.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.830189 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
59a5b4e9434a4cdfce36a44bb2a2d976e2c164b4 | 230 | py | Python | topCoder/srms/300s/srm330/div2/sortness.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | topCoder/srms/300s/srm330/div2/sortness.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | topCoder/srms/300s/srm330/div2/sortness.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | class Sortness:
def getSortness(self, a):
s = 0.0
for i, e in enumerate(a):
s += len(filter(lambda j: j > e, a[:i]))
s += len(filter(lambda j: j < e, a[i+1:]))
return s / len(a)
| 28.75 | 54 | 0.46087 | 38 | 230 | 2.789474 | 0.5 | 0.113208 | 0.188679 | 0.301887 | 0.396226 | 0.396226 | 0.396226 | 0.396226 | 0.396226 | 0 | 0 | 0.02069 | 0.369565 | 230 | 7 | 55 | 32.857143 | 0.710345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
59a7eb1ba799527ed2fa613b4d04de2743d030fe | 96 | py | Python | chips/sensor/lis3dh/drivers.py | ariegg/webiopi-drivers | 47c3ce9c53c6928998acbdb259b06f47da2b634d | [
"Apache-2.0"
] | 2 | 2018-01-18T08:09:02.000Z | 2018-01-18T08:09:10.000Z | chips/sensor/lis3dh/drivers.py | ariegg/webiopi-drivers | 47c3ce9c53c6928998acbdb259b06f47da2b634d | [
"Apache-2.0"
] | null | null | null | chips/sensor/lis3dh/drivers.py | ariegg/webiopi-drivers | 47c3ce9c53c6928998acbdb259b06f47da2b634d | [
"Apache-2.0"
] | null | null | null | # This code has to be added to the corresponding __init__.py
DRIVERS["lis3dh"] = ["LIS3DH"]
| 19.2 | 62 | 0.697917 | 14 | 96 | 4.5 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.1875 | 96 | 4 | 63 | 24 | 0.782051 | 0.604167 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
59c7657bb77d09c160a8851ec290f061e028a8dd | 403 | py | Python | playground/simpletarget/simpletarget_wrapper.py | toanngosy/neuropilot | e164693b9a500cce5d0aea8795d7fddc7b1d5405 | [
"MIT"
] | 3 | 2019-04-30T09:20:55.000Z | 2020-09-02T18:45:42.000Z | playground/simpletarget/simpletarget_wrapper.py | toanngosy/neuropilot | e164693b9a500cce5d0aea8795d7fddc7b1d5405 | [
"MIT"
] | null | null | null | playground/simpletarget/simpletarget_wrapper.py | toanngosy/neuropilot | e164693b9a500cce5d0aea8795d7fddc7b1d5405 | [
"MIT"
] | null | null | null | import gym
import numpy as np
class ObsWrapper(gym.ObservationWrapper):
def __init__(self,env):
super(ObsWrapper, self).__init__(env)
def observation(self, observation):
return self.target - self.state
class STRewardWrapper(gym.RewardWrapper):
def __init__(self,env):
super(STRewardWrapper, self).__init__(e... | 22.388889 | 51 | 0.761787 | 53 | 403 | 5.490566 | 0.415094 | 0.04811 | 0.075601 | 0.09622 | 0.130584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121588 | 403 | 17 | 52 | 23.705882 | 0.822034 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
59c8757fe24cf14337ff7604ccc218d9aca1c7c7 | 2,078 | py | Python | ap-demo-test/CreateBQTable.py | ksayyed/hello-world | 45dbb7efc3c81ee6452840f0f80a025edaeb46da | [
"MIT"
] | null | null | null | ap-demo-test/CreateBQTable.py | ksayyed/hello-world | 45dbb7efc3c81ee6452840f0f80a025edaeb46da | [
"MIT"
] | null | null | null | ap-demo-test/CreateBQTable.py | ksayyed/hello-world | 45dbb7efc3c81ee6452840f0f80a025edaeb46da | [
"MIT"
] | null | null | null | from google.cloud import bigquery
def create_table_with_schema(dataset_id, table_id):
#Create new table within existing dataset.
client = bigquery.Client()
dataset_ref = client.dataset(dataset_id)
schema = [
bigquery.SchemaField('id', 'INTEGER', mode='REQUIRED'),
bigquery.SchemaField('... | 46.177778 | 80 | 0.691049 | 224 | 2,078 | 6.151786 | 0.254464 | 0.248186 | 0.232221 | 0.359942 | 0.602322 | 0.451379 | 0.148766 | 0.080552 | 0 | 0 | 0 | 0 | 0.163138 | 2,078 | 45 | 81 | 46.177778 | 0.792409 | 0.025505 | 0 | 0.055556 | 0 | 0 | 0.285079 | 0.01087 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.055556 | 0.027778 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab68db7d637f055103f3ac7f91bfa31170c6cc2b | 687 | py | Python | level3_1 - Find the Access Codes/tests.py | berman82312/google-foobar | e5185f8b5d59519aa2ee0c74d4157faa80054e8a | [
"MIT"
] | null | null | null | level3_1 - Find the Access Codes/tests.py | berman82312/google-foobar | e5185f8b5d59519aa2ee0c74d4157faa80054e8a | [
"MIT"
] | null | null | null | level3_1 - Find the Access Codes/tests.py | berman82312/google-foobar | e5185f8b5d59519aa2ee0c74d4157faa80054e8a | [
"MIT"
] | null | null | null | import unittest
import solution
class SolutionTest(unittest.TestCase):
def test1(self):
test_input = [1, 1, 1]
self.assertEqual(solution.solution(test_input), 1)
def test2(self):
test_input = [1, 2, 3, 4, 5, 6]
self.assertEqual(solution.solution(test_input), 3)
def test3(self):
test_input =... | 25.444444 | 58 | 0.669578 | 102 | 687 | 4.333333 | 0.352941 | 0.20362 | 0.147059 | 0.350679 | 0.520362 | 0.452489 | 0 | 0 | 0 | 0 | 0 | 0.096429 | 0.184862 | 687 | 26 | 59 | 26.423077 | 0.692857 | 0 | 0 | 0 | 0 | 0 | 0.011645 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ab7a3162cff6850b28f929270b7d012875566dde | 1,346 | py | Python | subscriptions/ListParamSub.py | dseisun/tableau_admin | 08f8ee35d71dc8d56c6d6d00479ed160530c34b9 | [
"MIT"
] | 26 | 2015-08-20T19:36:02.000Z | 2021-05-18T14:11:30.000Z | subscriptions/ListParamSub.py | dseisun/tableau_admin | 08f8ee35d71dc8d56c6d6d00479ed160530c34b9 | [
"MIT"
] | 3 | 2016-10-05T19:40:39.000Z | 2018-03-22T17:07:29.000Z | subscriptions/ListParamSub.py | dseisun/tableau_admin | 08f8ee35d71dc8d56c6d6d00479ed160530c34b9 | [
"MIT"
] | 11 | 2015-08-24T03:50:10.000Z | 2021-08-28T10:22:37.000Z | import datetime
def previous_sat():
days_since_sat = (datetime.date.isoweekday(datetime.date.today()) + 1) % 7
most_recent_sat = datetime.date.today() - datetime.timedelta(days=days_since_sat)
return most_recent_sat.strftime("%Y-%m-%d")
def previous_day():
previous_day = datetime.date.today() - datetime.ti... | 36.378378 | 83 | 0.704309 | 189 | 1,346 | 4.835979 | 0.195767 | 0.105033 | 0.130197 | 0.111597 | 0.54814 | 0.519694 | 0.275711 | 0.275711 | 0.188184 | 0 | 0 | 0.00339 | 0.123328 | 1,346 | 36 | 84 | 37.388889 | 0.771186 | 0 | 0 | 0 | 0 | 0 | 0.091603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.037037 | 0.148148 | 0.62963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ab8173104922ea3ad5f45619459a6a209f8ef1a3 | 750 | py | Python | tests/test_database/test_create_tables.py | drigols/dota2learning | 7eff9ba8b69962893f7f7617d43c95f32b54f665 | [
"MIT"
] | null | null | null | tests/test_database/test_create_tables.py | drigols/dota2learning | 7eff9ba8b69962893f7f7617d43c95f32b54f665 | [
"MIT"
] | null | null | null | tests/test_database/test_create_tables.py | drigols/dota2learning | 7eff9ba8b69962893f7f7617d43c95f32b54f665 | [
"MIT"
] | null | null | null | # Authors: Rodrigo Leite <drigols.creative@gmail.com>
#
# License: MIT
from __future__ import annotations
import pytest
from dota2learning.database.create_tables import create_table
from dota2learning.sql.create_table import hero_table
from dota2learning.sql.create_table import invalid_table
@pytest.mark.create_tab... | 27.777778 | 61 | 0.784 | 104 | 750 | 5.403846 | 0.403846 | 0.215302 | 0.078292 | 0.088968 | 0.288256 | 0.288256 | 0.288256 | 0.13879 | 0 | 0 | 0 | 0.004688 | 0.146667 | 750 | 26 | 62 | 28.846154 | 0.873438 | 0.309333 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ab889e504a7ad9ca1f8bd810df5846d70d2ae00d | 275 | py | Python | multiviewdata/torchdatasets/utils.py | jameschapman19/multiviewdata | 0f08791beffd950b31d3bc51e5c0e8b51bd47a24 | [
"MIT"
] | null | null | null | multiviewdata/torchdatasets/utils.py | jameschapman19/multiviewdata | 0f08791beffd950b31d3bc51e5c0e8b51bd47a24 | [
"MIT"
] | null | null | null | multiviewdata/torchdatasets/utils.py | jameschapman19/multiviewdata | 0f08791beffd950b31d3bc51e5c0e8b51bd47a24 | [
"MIT"
] | null | null | null | import gzip
def fopen(p, flag="r"):
"""Opens as gzipped if appropriate, else as ascii."""
if p.endswith(".gz"):
if "w" in flag:
return gzip.open(p, "wb")
else:
return gzip.open(p, "rt")
else:
return open(p, flag)
| 21.153846 | 57 | 0.512727 | 39 | 275 | 3.615385 | 0.564103 | 0.106383 | 0.198582 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.334545 | 275 | 12 | 58 | 22.916667 | 0.770492 | 0.170909 | 0 | 0.222222 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
ab8ace0a90f7cc36a920a25adbb6c8c574abcff7 | 132 | py | Python | Desafios/ex010/ex010.py | Jose-Wilson/Python | d7dc9f16b53708089c9e2659568220b7869bab99 | [
"MIT"
] | null | null | null | Desafios/ex010/ex010.py | Jose-Wilson/Python | d7dc9f16b53708089c9e2659568220b7869bab99 | [
"MIT"
] | null | null | null | Desafios/ex010/ex010.py | Jose-Wilson/Python | d7dc9f16b53708089c9e2659568220b7869bab99 | [
"MIT"
] | null | null | null | d = float(input('Quanto dinheiro você tem na carteira? R$ '))
dol = d / 3.27
print(f'Com R${d:.2f} você pode comprar US${dol:.2f}')
| 33 | 61 | 0.643939 | 26 | 132 | 3.269231 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045045 | 0.159091 | 132 | 3 | 62 | 44 | 0.720721 | 0 | 0 | 0 | 0 | 0 | 0.643939 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
aba9ea9e638ed0026cc4df87033175d803ff1cb8 | 4,215 | py | Python | GarageWarden/settings.py | narcolepticsnowman/GarageWarden | 19eba7145a2444337ccaf3af13c83e8a94d2dfcb | [
"MIT"
] | null | null | null | GarageWarden/settings.py | narcolepticsnowman/GarageWarden | 19eba7145a2444337ccaf3af13c83e8a94d2dfcb | [
"MIT"
] | 1 | 2016-10-07T23:40:28.000Z | 2016-10-08T06:16:49.000Z | GarageWarden/settings.py | narcolepticsnowman/GarageWarden | 19eba7145a2444337ccaf3af13c83e8a94d2dfcb | [
"MIT"
] | null | null | null | """
Django settings for GarageWarden project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | 30.323741 | 114 | 0.719573 | 544 | 4,215 | 5.488971 | 0.404412 | 0.065305 | 0.051574 | 0.058607 | 0.220027 | 0.178835 | 0.126591 | 0.126591 | 0.076021 | 0.034829 | 0 | 0.014617 | 0.172242 | 4,215 | 138 | 115 | 30.543478 | 0.841215 | 0.446026 | 0 | 0 | 1 | 0 | 0.513032 | 0.440052 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068493 | 0.013699 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
abc694ae2eace0d7cd5e88ec8a7521aed0b228ca | 605 | py | Python | examples/docs_snippets/docs_snippets/concepts/ops_jobs_graphs/graphs/graphs.py | schrockn/dagster | 3bb4e9247a693e48d84e9c86f73d83633d91a5c7 | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/ops_jobs_graphs/graphs/graphs.py | schrockn/dagster | 3bb4e9247a693e48d84e9c86f73d83633d91a5c7 | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets/concepts/ops_jobs_graphs/graphs/graphs.py | schrockn/dagster | 3bb4e9247a693e48d84e9c86f73d83633d91a5c7 | [
"Apache-2.0"
] | null | null | null | # isort: skip_file
# pylint: disable=unused-argument,reimported
from dagster import DependencyDefinition, GraphDefinition, graph, op
@op
def my_op():
pass
# start_graph_one
@op
def return_one(context):
return 1
@op
def add_one(context, number: int):
return number + 1
@graph
def one_plus_one():
... | 13.152174 | 68 | 0.733884 | 88 | 605 | 4.704545 | 0.386364 | 0.086957 | 0.086957 | 0.108696 | 0.144928 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.160331 | 605 | 45 | 69 | 13.444444 | 0.811024 | 0.289256 | 0 | 0.315789 | 0 | 0 | 0.035629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0.052632 | 0.052632 | 0.105263 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
abcb5d349c8220b126b5818906bdb16d6c901888 | 47 | py | Python | state_fin_ingest/dir.py | poffdeluxe/state-fin-ingest | 206f9c7cf852565edb6a414244944c62738bd71e | [
"MIT"
] | null | null | null | state_fin_ingest/dir.py | poffdeluxe/state-fin-ingest | 206f9c7cf852565edb6a414244944c62738bd71e | [
"MIT"
] | 2 | 2020-10-11T21:01:47.000Z | 2020-10-15T15:41:34.000Z | state_fin_ingest/dir.py | poffdeluxe/state-fin-ingest | 206f9c7cf852565edb6a414244944c62738bd71e | [
"MIT"
] | 1 | 2022-01-27T21:32:20.000Z | 2022-01-27T21:32:20.000Z | INPUT_DIR = "./input"
TEMP_DIR = "./TEMP_DATA"
| 15.666667 | 24 | 0.659574 | 7 | 47 | 4 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 47 | 2 | 25 | 23.5 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
28060429e098342494a341a673a6b455ef22dd5d | 636 | py | Python | fme_server_lib/FMERepositoryUtility/FMWCollectionFile.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | null | null | null | fme_server_lib/FMERepositoryUtility/FMWCollectionFile.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | 2 | 2021-07-26T20:33:16.000Z | 2021-07-26T20:33:19.000Z | fme_server_lib/FMERepositoryUtility/FMWCollectionFile.py | bcgov/fme | 0564363c59ccd06fe79459ec08ff3b7c5bf7e061 | [
"Apache-2.0"
] | null | null | null | import os
import re
from .FMWCollection import FMWCollection
class FMWCollectionFile(FMWCollection):
def __init__(self, repo_dir, fmw_filter=None):
self.repo_dir = repo_dir
super().__init__(fmw_filter)
def populate_repos(self):
return os.listdir(self.repo_dir)
def populate_fmws... | 27.652174 | 106 | 0.674528 | 92 | 636 | 4.413043 | 0.358696 | 0.137931 | 0.135468 | 0.110837 | 0.123153 | 0.123153 | 0.123153 | 0 | 0 | 0 | 0 | 0 | 0.205975 | 636 | 22 | 107 | 28.909091 | 0.80396 | 0 | 0 | 0 | 0 | 0 | 0.02673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.2 | 0.133333 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f9f17299f18fe71c54eeac76ec61f859a1e8f253 | 143 | py | Python | beautifultable/compat.py | onmeac/beautifultable | feb09003cbb926a272f25156fb2e4e4246a454a8 | [
"MIT"
] | 137 | 2017-01-16T16:48:12.000Z | 2022-03-28T22:41:23.000Z | beautifultable/compat.py | onmeac/beautifultable | feb09003cbb926a272f25156fb2e4e4246a454a8 | [
"MIT"
] | 123 | 2017-01-17T12:14:01.000Z | 2022-03-31T17:38:49.000Z | beautifultable/compat.py | onmeac/beautifultable | feb09003cbb926a272f25156fb2e4e4246a454a8 | [
"MIT"
] | 25 | 2017-03-18T09:04:26.000Z | 2022-03-31T16:20:42.000Z | from itertools import zip_longest # noqa: F401
from collections.abc import Iterable # noqa: F401
to_unicode = str
basestring = (str, bytes)
| 23.833333 | 50 | 0.762238 | 20 | 143 | 5.35 | 0.75 | 0.149533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.167832 | 143 | 5 | 51 | 28.6 | 0.84874 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
f9f889b9173d1f7957177bccdcfb3291004578eb | 436 | py | Python | tracim/tracim/lib/exception.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | 1 | 2016-09-27T12:16:05.000Z | 2016-09-27T12:16:05.000Z | tracim/tracim/lib/exception.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | null | null | null | tracim/tracim/lib/exception.py | lebouquetin/tracim | dc3485f92b07ced3230834a5852c9f9574477c1c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class TracimError(Exception):
pass
class RunTimeError(TracimError):
pass
class ContentRevisionUpdateError(RuntimeError):
pass
class ContentRevisionDeleteError(ContentRevisionUpdateError):
pass
class ConfigurationError(TracimError):
pass
class AlreadyExistError(Tra... | 12.823529 | 61 | 0.747706 | 35 | 436 | 9.314286 | 0.4 | 0.193252 | 0.245399 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002786 | 0.176606 | 436 | 33 | 62 | 13.212121 | 0.905292 | 0.048165 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
f9fa6711573f19ad4a219e412f957fde96aaa90e | 175 | py | Python | twitter_clone/tweets/validators.py | dashgin/twitter_clone | 8e4b73b11b865eac19e8427bf043877b268e4e17 | [
"MIT"
] | null | null | null | twitter_clone/tweets/validators.py | dashgin/twitter_clone | 8e4b73b11b865eac19e8427bf043877b268e4e17 | [
"MIT"
] | null | null | null | twitter_clone/tweets/validators.py | dashgin/twitter_clone | 8e4b73b11b865eac19e8427bf043877b268e4e17 | [
"MIT"
] | null | null | null | from django.forms import forms
def validate_f_word(content):
if "fuck" in content.lower():
raise forms.ValidationError("Can't tweet F word!")
return content
| 21.875 | 58 | 0.702857 | 25 | 175 | 4.84 | 0.76 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 175 | 7 | 59 | 25 | 0.864286 | 0 | 0 | 0 | 0 | 0 | 0.131429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 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 | 0 | 1 | 0 | 0 | 3 |
e6026c76273e2e08653321e24567afc1f11e3bf9 | 875 | py | Python | ciclo1_python/ucaldas/MisionTIC_UCaldas_Ciclo1/Andres Felipe Escallon Portilla/Semana2/Talleres/info_add_talleres/Tallersemana201/main.py | felipeescallon/mision_tic_2022 | 20496fc40b18d2e98114d6362928f34fde41aaae | [
"CC0-1.0"
] | 7 | 2021-07-05T21:25:50.000Z | 2021-11-09T11:09:41.000Z | ciclo1_python/ucaldas/MisionTIC_UCaldas_Ciclo1/Andres Felipe Escallon Portilla/Semana2/Talleres/info_add_talleres/Tallersemana201/main.py | felipeescallon/mision_tic_2022 | 20496fc40b18d2e98114d6362928f34fde41aaae | [
"CC0-1.0"
] | null | null | null | ciclo1_python/ucaldas/MisionTIC_UCaldas_Ciclo1/Andres Felipe Escallon Portilla/Semana2/Talleres/info_add_talleres/Tallersemana201/main.py | felipeescallon/mision_tic_2022 | 20496fc40b18d2e98114d6362928f34fde41aaae | [
"CC0-1.0"
] | null | null | null | """ Taller 2.1 Salida Estandar:Pantalla #
Tu nombre aquí
Mayo xx-XX """
#======================================================================
# E S P A C I O D E T R A B A J O A L U M N O
# =====================================================================
def presentar_datos_personales... | 28.225806 | 71 | 0.470857 | 91 | 875 | 4.373626 | 0.582418 | 0.090452 | 0.105528 | 0.150754 | 0.351759 | 0.351759 | 0.261307 | 0.261307 | 0 | 0 | 0 | 0.005427 | 0.157714 | 875 | 30 | 72 | 29.166667 | 0.5346 | 0.731429 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.3 | true | 0 | 0 | 0 | 0.3 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e629133ddff66b23d4b2d5a926bae4c567182636 | 97 | py | Python | landlab/components/potentiality_flowrouting/__init__.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 257 | 2015-01-13T16:01:21.000Z | 2022-03-29T22:37:43.000Z | landlab/components/potentiality_flowrouting/__init__.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 1,222 | 2015-02-05T21:36:53.000Z | 2022-03-31T17:53:49.000Z | landlab/components/potentiality_flowrouting/__init__.py | amanaster2/landlab | ea17f8314eb12e3fc76df66c9b6ff32078caa75c | [
"MIT"
] | 274 | 2015-02-11T19:56:08.000Z | 2022-03-28T23:31:07.000Z | from .route_flow_by_boundary import PotentialityFlowRouter
__all__ = ["PotentialityFlowRouter"]
| 24.25 | 58 | 0.85567 | 9 | 97 | 8.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082474 | 97 | 3 | 59 | 32.333333 | 0.853933 | 0 | 0 | 0 | 0 | 0 | 0.226804 | 0.226804 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e64816b9e75a4d5ea71c4e176143e09a34fe5ff2 | 142 | py | Python | 1_Datentypen/02_listen/list.py | DavidStahl97/Python-Grundkurs | 6796d19116d2f838b193b106d00bc2e74a8cdcb4 | [
"MIT"
] | null | null | null | 1_Datentypen/02_listen/list.py | DavidStahl97/Python-Grundkurs | 6796d19116d2f838b193b106d00bc2e74a8cdcb4 | [
"MIT"
] | null | null | null | 1_Datentypen/02_listen/list.py | DavidStahl97/Python-Grundkurs | 6796d19116d2f838b193b106d00bc2e74a8cdcb4 | [
"MIT"
] | null | null | null | # Grundsätzliches
####### Methoden von Listen
# kopieren von listen und deren tücken
# richtiges kopieren geht über copy()
# Slicing
| 9.466667 | 38 | 0.697183 | 16 | 142 | 6.1875 | 0.8125 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211268 | 142 | 14 | 39 | 10.142857 | 0.883929 | 0.816901 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e64b7bc2ed0ed94144133152695715e5caabf80e | 1,781 | py | Python | test/unit_tests/gerneral/test__fetch_yahoo.py | KIC/pandas_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | 3 | 2019-12-05T11:56:26.000Z | 2021-08-07T08:06:37.000Z | test/unit_tests/gerneral/test__fetch_yahoo.py | KIC/pandas_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | 6 | 2020-01-23T10:25:13.000Z | 2022-02-10T00:39:27.000Z | test/unit_tests/gerneral/test__fetch_yahoo.py | KIC/pandas_utils | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | [
"MIT"
] | null | null | null | import logging
from unittest import TestCase
import pandas as pd
import pandas_ml_utils as pmu
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logging.info(f"{pmu.__version__}")
class TestFetchYahoo(TestCase):
def test__with_prefix(self):
"""when"""
df = pd.fetch_yahoo(spy="spy", vi... | 43.439024 | 326 | 0.576642 | 213 | 1,781 | 4.638498 | 0.234742 | 0.077935 | 0.040486 | 0.048583 | 0.746964 | 0.746964 | 0.708502 | 0.657895 | 0.657895 | 0.657895 | 0 | 0 | 0.167883 | 1,781 | 40 | 327 | 44.525 | 0.666667 | 0.010668 | 0 | 0 | 0 | 0 | 0.287478 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e651509548248412b7fb5679ca9d9f3b0e29a1a5 | 308 | py | Python | VSCode_work/chapter5/chapter5_5_6.py | yangyahu-1994/Python-Crash-Course | 6f8ef7fe8466d88931a0d3cc423ba5d966663b9d | [
"MIT"
] | 12 | 2020-10-22T14:03:27.000Z | 2022-03-28T08:14:22.000Z | VSCode_work/chapter5/chapter5_5_6.py | syncccc/Python-Crash-Course | 51fe429dd606583a790f3c1603bb3439382c09e0 | [
"MIT"
] | null | null | null | VSCode_work/chapter5/chapter5_5_6.py | syncccc/Python-Crash-Course | 51fe429dd606583a790f3c1603bb3439382c09e0 | [
"MIT"
] | 9 | 2020-12-22T10:22:12.000Z | 2022-03-28T08:14:53.000Z | # 创建变量
age = 26
# 条件判断
if age < 2:
print("He is a baby.")
elif 2 <= age < 4:
print("\nHe is learning to walk.")
elif 4 <= age < 13:
print("\nHe is a child.")
elif 13 <= age < 20:
print("\nHe is a teenager.")
elif 20 <= age < 65:
print("\nHe is an adult.")
else:
print("\nHe is old.") | 19.25 | 38 | 0.542208 | 54 | 308 | 3.092593 | 0.481481 | 0.239521 | 0.299401 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.272727 | 308 | 16 | 39 | 19.25 | 0.674107 | 0.029221 | 0 | 0 | 0 | 0 | 0.343434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e667255045dccb2e2ff39de85f4427d15da8ec88 | 3,212 | py | Python | flink_rest_client/v1/client.py | frego-dev/flink-rest-client | e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd | [
"MIT"
] | null | null | null | flink_rest_client/v1/client.py | frego-dev/flink-rest-client | e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd | [
"MIT"
] | null | null | null | flink_rest_client/v1/client.py | frego-dev/flink-rest-client | e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd | [
"MIT"
] | null | null | null | from flink_rest_client.common import _execute_rest_request
from flink_rest_client.v1.jars import JarsClient
from flink_rest_client.v1.jobmanager import JobmanagerClient
from flink_rest_client.v1.jobs import JobsClient
from flink_rest_client.v1.taskmanagers import TaskManagersClient
class DatasetTrigger:
def __ini... | 25.903226 | 115 | 0.603674 | 360 | 3,212 | 5.191667 | 0.258333 | 0.035313 | 0.053505 | 0.067416 | 0.222579 | 0.167469 | 0.124131 | 0.107009 | 0.107009 | 0 | 0 | 0.004885 | 0.298879 | 3,212 | 123 | 116 | 26.113821 | 0.825044 | 0.268991 | 0 | 0.115385 | 0 | 0 | 0.131024 | 0.093876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.096154 | 0.115385 | 0.596154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0500535abe297374a034deb6461b3d46d5726c99 | 434 | wsgi | Python | tools.wsgi | rosenbergdm/ro-tools | d44e8d9521fa5f8d797419fe54fbee657146ebd2 | [
"MIT"
] | null | null | null | tools.wsgi | rosenbergdm/ro-tools | d44e8d9521fa5f8d797419fe54fbee657146ebd2 | [
"MIT"
] | null | null | null | tools.wsgi | rosenbergdm/ro-tools | d44e8d9521fa5f8d797419fe54fbee657146ebd2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Make sure you add WSGIPassAuthorization to the apache conf
import sys
import logging
logging.basicConfig(stream=sys.stderr)
# sys.path.insert(0, '/usr/local/src')
# from signout.app import application
# from signout.db import load_db_settings
# load_db_settings(application)
# application = cre... | 24.111111 | 60 | 0.769585 | 66 | 434 | 4.984848 | 0.575758 | 0.042553 | 0.079027 | 0.085106 | 0.151976 | 0.151976 | 0.151976 | 0 | 0 | 0 | 0 | 0.007833 | 0.117512 | 434 | 17 | 61 | 25.529412 | 0.851175 | 0.612903 | 0 | 0 | 0 | 0 | 0.14375 | 0.14375 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0521b2e9c6de5bfb42543b20b483ce467428f01a | 51 | py | Python | StockCrawler/__init__.py | ryanwcyin/StockCrawler | 166078336fd1647833fdc66d087d56fc3f9d6aa8 | [
"MIT"
] | null | null | null | StockCrawler/__init__.py | ryanwcyin/StockCrawler | 166078336fd1647833fdc66d087d56fc3f9d6aa8 | [
"MIT"
] | null | null | null | StockCrawler/__init__.py | ryanwcyin/StockCrawler | 166078336fd1647833fdc66d087d56fc3f9d6aa8 | [
"MIT"
] | null | null | null | from . import StockCrawler
__all__ = [StockCrawler] | 25.5 | 26 | 0.803922 | 5 | 51 | 7.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 51 | 2 | 27 | 25.5 | 0.822222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
0527433f9df7e420172838869aa2ce8fd4052f95 | 59 | py | Python | water_store/models.py | anthonycarlos92/seedLA_HTB_2015 | a3e5bb03ee00760413d49a1074289f51149222ca | [
"MIT"
] | 1 | 2021-08-04T18:34:48.000Z | 2021-08-04T18:34:48.000Z | water_store/models.py | SeedCG/waterlog_rest_api | a3e5bb03ee00760413d49a1074289f51149222ca | [
"MIT"
] | 3 | 2020-06-05T17:18:26.000Z | 2021-06-10T18:34:31.000Z | water_store/models.py | SeedCG/waterlog_rest_api | a3e5bb03ee00760413d49a1074289f51149222ca | [
"MIT"
] | null | null | null | __author__ = 'anthonymendoza'
from model_register import * | 19.666667 | 29 | 0.813559 | 6 | 59 | 7.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118644 | 59 | 3 | 30 | 19.666667 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
053e05ede1b21020ad6f66dab45fc964db0ae042 | 783 | py | Python | algos/default.py | tpudlik/sbf | 02ac18d39ad824d5ddc903e339e5af222a7b697a | [
"MIT"
] | 4 | 2018-08-28T01:59:17.000Z | 2021-10-31T11:11:49.000Z | algos/default.py | tpudlik/sbf | 02ac18d39ad824d5ddc903e339e5af222a7b697a | [
"MIT"
] | null | null | null | algos/default.py | tpudlik/sbf | 02ac18d39ad824d5ddc903e339e5af222a7b697a | [
"MIT"
] | 3 | 2017-08-15T18:24:01.000Z | 2021-10-31T11:12:00.000Z | """Default scipy spherical Bessel function algorithms.
The wrappers defined in this module produce a uniform interface with the
other algorithms.
"""
import numpy as np
import scipy.special
@np.vectorize
def sph_jn(n, z):
return scipy.special.sph_jn(n, z)[0][-1]
@np.vectorize
def sph_yn(n, z):
return scipy.... | 21.162162 | 72 | 0.664112 | 149 | 783 | 3.375839 | 0.295302 | 0.067594 | 0.111332 | 0.135189 | 0.506958 | 0.506958 | 0.163022 | 0.163022 | 0.163022 | 0.163022 | 0 | 0.026563 | 0.182631 | 783 | 36 | 73 | 21.75 | 0.759375 | 0.260536 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.35 | false | 0 | 0.1 | 0.35 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
0569f78da269d3775d6be595527eaa6a801abf04 | 1,035 | py | Python | gooey/gui/components/mouse.py | Jacke/Gooey | 329b6954befcb74f0243e1282e77ab7bff8e7abf | [
"MIT"
] | 13,430 | 2015-01-01T04:52:02.000Z | 2022-03-31T23:34:03.000Z | gooey/gui/components/mouse.py | Jacke/Gooey | 329b6954befcb74f0243e1282e77ab7bff8e7abf | [
"MIT"
] | 669 | 2015-01-02T04:51:28.000Z | 2022-03-29T08:32:30.000Z | gooey/gui/components/mouse.py | Jacke/Gooey | 329b6954befcb74f0243e1282e77ab7bff8e7abf | [
"MIT"
] | 890 | 2015-01-09T19:15:46.000Z | 2022-03-31T12:34:24.000Z | """
WxPython lacks window level event hooks. Meaning, there's no
general way to subscribe to every mouse event that goes on within
the application.
To implement features which respond to clicks outside of their
immediate scope, for instance, dropdowns, a workaround in the form
of manually binding all mouse events, for... | 36.964286 | 107 | 0.783575 | 155 | 1,035 | 5.206452 | 0.729032 | 0.01487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02746 | 0.155556 | 1,035 | 28 | 108 | 36.964286 | 0.895881 | 0.799034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
0594da3725492bac326ed2a09f4c0f4a876c41ac | 367 | py | Python | iceworm/engine/connectors/mirrors.py | wrmsr0/iceworm | 09431bb3cdc4f6796aafca41e37d42ebe0ddfeef | [
"BSD-3-Clause"
] | null | null | null | iceworm/engine/connectors/mirrors.py | wrmsr0/iceworm | 09431bb3cdc4f6796aafca41e37d42ebe0ddfeef | [
"BSD-3-Clause"
] | 1 | 2021-01-19T14:29:19.000Z | 2021-01-19T14:34:27.000Z | iceworm/engine/connectors/mirrors.py | wrmsr0/iceworm | 09431bb3cdc4f6796aafca41e37d42ebe0ddfeef | [
"BSD-3-Clause"
] | 1 | 2020-12-31T22:29:52.000Z | 2020-12-31T22:29:52.000Z | """
TODO:
- caching / offline
"""
import abc
import typing as ta
from omnibus import lang
from ...types import QualifiedName
from ... import metadata as md
class Mirror(lang.Abstract):
@abc.abstractmethod
def reflect(self, names: ta.Optional[ta.Iterable[QualifiedName]] = None) -> ta.Mapping[QualifiedName,... | 19.315789 | 117 | 0.719346 | 45 | 367 | 5.866667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171662 | 367 | 18 | 118 | 20.388889 | 0.868421 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5532b5b7c504c6259374ab07857c83635050b6d7 | 3,365 | py | Python | tests/test_vsphere_client.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 589 | 2017-03-09T19:01:22.000Z | 2022-03-23T08:18:32.000Z | tests/test_vsphere_client.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 244 | 2017-03-09T19:37:36.000Z | 2022-03-29T07:14:21.000Z | tests/test_vsphere_client.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 304 | 2017-03-09T19:15:01.000Z | 2022-03-31T04:26:59.000Z | #!/usr/bin/env python
"""
* *******************************************************
* Copyright (c) VMware, Inc. 2018. All Rights Reserved.
* SPDX-License-Identifier: MIT
* *******************************************************
*
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
* WARRANTIES OR CONDITIONS... | 28.041667 | 85 | 0.747994 | 379 | 3,365 | 6.48285 | 0.269129 | 0.116402 | 0.146927 | 0.193325 | 0.358567 | 0.144078 | 0.129426 | 0.092796 | 0.092796 | 0.092796 | 0 | 0.001358 | 0.124814 | 3,365 | 119 | 86 | 28.277311 | 0.832937 | 0.162259 | 0 | 0.096774 | 0 | 0 | 0.060832 | 0 | 0 | 0 | 0 | 0 | 0.532258 | 1 | 0.306452 | false | 0 | 0.080645 | 0 | 0.387097 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
55466a314bf60a2669df298393420ca7914f6aa8 | 149 | py | Python | RNA_secondary_structure_prediction/app/urls.py | Debapriya-Tula/RNA_sequence | 392948606e97990440e036753c9cfd61bdfdeb60 | [
"MIT"
] | null | null | null | RNA_secondary_structure_prediction/app/urls.py | Debapriya-Tula/RNA_sequence | 392948606e97990440e036753c9cfd61bdfdeb60 | [
"MIT"
] | null | null | null | RNA_secondary_structure_prediction/app/urls.py | Debapriya-Tula/RNA_sequence | 392948606e97990440e036753c9cfd61bdfdeb60 | [
"MIT"
] | null | null | null | from django.urls import path
from app import views
#Template tagging
app_name = 'app'
urlpatterns = [
path('', views.predict, name='predict')
] | 16.555556 | 43 | 0.711409 | 20 | 149 | 5.25 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167785 | 149 | 9 | 44 | 16.555556 | 0.846774 | 0.107383 | 0 | 0 | 0 | 0 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
554e8867430c9358d2a4f06f3095a360424b803f | 77 | py | Python | tests/unicode/file1.py | Jahangir-Sh/micropython | 072bd07f178998f2c88cd2ceef86dea7902a1764 | [
"MIT"
] | 2 | 2022-01-27T14:09:06.000Z | 2022-02-16T23:05:52.000Z | tests/unicode/file1.py | roger-/micropython | bad2df3e95cd5719099319d71590a79bf6bc4493 | [
"MIT"
] | null | null | null | tests/unicode/file1.py | roger-/micropython | bad2df3e95cd5719099319d71590a79bf6bc4493 | [
"MIT"
] | 2 | 2016-12-19T14:41:42.000Z | 2019-04-07T16:13:58.000Z | f = open("unicode/data/utf-8_1.txt")
l = f.readline()
print(l)
print(len(l))
| 15.4 | 36 | 0.649351 | 16 | 77 | 3.0625 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 0.103896 | 77 | 4 | 37 | 19.25 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0.311688 | 0.311688 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
55524061112972017401dead968075a0e07f9f3a | 396 | py | Python | rasa_nlu/__init__.py | madkote/rasa-nlu-contrib | 38804da8a1debb172a3ad06a9b867a0ae8ee9b59 | [
"Apache-2.0"
] | null | null | null | rasa_nlu/__init__.py | madkote/rasa-nlu-contrib | 38804da8a1debb172a3ad06a9b867a0ae8ee9b59 | [
"Apache-2.0"
] | null | null | null | rasa_nlu/__init__.py | madkote/rasa-nlu-contrib | 38804da8a1debb172a3ad06a9b867a0ae8ee9b59 | [
"Apache-2.0"
] | null | null | null | import logging
import rasa_nlu.version
from rasa_nlu.train import train # noqa F401
from rasa_nlu.test import run_evaluation as test # noqa F401
from rasa_nlu.test import cross_validate # noqa F401
from rasa_nlu.training_data import load_data # noqa F401
logging.getLogger(__name__).ad... | 30.461538 | 61 | 0.760101 | 55 | 396 | 5.072727 | 0.4 | 0.150538 | 0.157706 | 0.172043 | 0.275986 | 0.207885 | 0.207885 | 0 | 0 | 0 | 0 | 0.037267 | 0.186869 | 396 | 12 | 62 | 33 | 0.829193 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
557c41a55b5b736a16b3315ae2131102daef30ef | 419 | py | Python | sat/util/__init__.py | larsksy/Semantic-Adversarial-Toolbox | f5a79e3aa5dc15d7f2fd677ea64f41dd3a1e9cd8 | [
"MIT"
] | null | null | null | sat/util/__init__.py | larsksy/Semantic-Adversarial-Toolbox | f5a79e3aa5dc15d7f2fd677ea64f41dd3a1e9cd8 | [
"MIT"
] | null | null | null | sat/util/__init__.py | larsksy/Semantic-Adversarial-Toolbox | f5a79e3aa5dc15d7f2fd677ea64f41dd3a1e9cd8 | [
"MIT"
] | 1 | 2021-09-30T07:48:47.000Z | 2021-09-30T07:48:47.000Z | from sat.util.conversion import nchw_to_nhwc, nhwc_to_nchw, unnormalize, rgb_lab, rgb_bgr
from sat.util.visualization import single_image, adversarial_delta
from sat.util.tqdm import get_tqdm, get_tqdm_iterable
from sat.util.store import save_model, load_model, load_checkpoint, load_adv_list, load_adv_dataset, \
lo... | 69.833333 | 104 | 0.856802 | 68 | 419 | 4.852941 | 0.411765 | 0.084848 | 0.133333 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085919 | 419 | 5 | 105 | 83.8 | 0.861619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 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 | 0 | 0 | 0 | 3 |
5598c1863f4aec3126fdccc3fe83f472130fd9cd | 105 | py | Python | content/en/api/tags/code_snippets/result.api-tags-get-host.py | wparth/documentation | 45246d61fe8a708e12152c7a76fea6e62730348d | [
"BSD-3-Clause"
] | 1 | 2020-04-09T01:40:33.000Z | 2020-04-09T01:40:33.000Z | content/en/api/tags/code_snippets/result.api-tags-get-host.py | wparth/documentation | 45246d61fe8a708e12152c7a76fea6e62730348d | [
"BSD-3-Clause"
] | null | null | null | content/en/api/tags/code_snippets/result.api-tags-get-host.py | wparth/documentation | 45246d61fe8a708e12152c7a76fea6e62730348d | [
"BSD-3-Clause"
] | null | null | null | {
'Datadog': [
'host:dev-test',
'environment:test'
],
'Users': [
'role:database'
]
}
| 10.5 | 22 | 0.47619 | 9 | 105 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295238 | 105 | 9 | 23 | 11.666667 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e95795f4cc30b671e3e8e8d24aad6b5f02108bac | 303 | py | Python | crud.py | TusharK16/Bolster | a5d1dd8dfc7cd79dc6c72c3cfff1cc23a6a144ec | [
"MIT"
] | null | null | null | crud.py | TusharK16/Bolster | a5d1dd8dfc7cd79dc6c72c3cfff1cc23a6a144ec | [
"MIT"
] | null | null | null | crud.py | TusharK16/Bolster | a5d1dd8dfc7cd79dc6c72c3cfff1cc23a6a144ec | [
"MIT"
] | null | null | null | from pymongo import MongoClient
myclient = MongoClient("mongodb://localhost:27017/")
def get_connection(db_name):
return myclient[db_name]
def insert_row(db_name,collection_name,json_obj):
con = get_connection(db_name)
collection = con[collection_name]
collection.insert_one(json_obj) | 27.545455 | 52 | 0.778878 | 41 | 303 | 5.463415 | 0.512195 | 0.107143 | 0.133929 | 0.169643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.125413 | 303 | 11 | 53 | 27.545455 | 0.826415 | 0 | 0 | 0 | 0 | 0 | 0.085526 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.5 | 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 | 0 | 0 | 0 | 3 |
e97d5279b1452a284f831b76de7ceaf7ae56ab54 | 155 | py | Python | Strings/1607 - Avance as Letras.py | PedroTejon/Beecrowd-Online-Judge-URI- | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | 2 | 2021-12-14T01:40:54.000Z | 2021-12-24T22:33:22.000Z | Strings/1607 - Avance as Letras.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | Strings/1607 - Avance as Letras.py | PedroTejon/Beecrowd-Online-Judge-URI | 5d681ff1b4db452cb45e4013c8570f83824e34c2 | [
"MIT"
] | null | null | null | for _ in range(int(input())):
print([ord(y) - ord(x) if ord(y) >= ord(x) else (ord(y) - 97) + (26 - (ord(x) - 97)) for x, y in zip(*input().split())])
| 51.666667 | 124 | 0.516129 | 30 | 155 | 2.633333 | 0.5 | 0.151899 | 0.177215 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048 | 0.193548 | 155 | 2 | 125 | 77.5 | 0.584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.