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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d51f6536dc23a170d42dfe4c478344db03394140 | 358 | py | Python | Code/utils.py | kevin-meyers/CS-1.3-Core-Data-Structures | b7d658f21487ae10b1d92764b6e0e20e2b55e083 | [
"MIT"
] | null | null | null | Code/utils.py | kevin-meyers/CS-1.3-Core-Data-Structures | b7d658f21487ae10b1d92764b6e0e20e2b55e083 | [
"MIT"
] | 6 | 2020-02-14T08:58:01.000Z | 2020-03-10T19:55:12.000Z | Code/utils.py | kevin-meyers/CS-1.3-Core-Data-Structures | b7d658f21487ae10b1d92764b6e0e20e2b55e083 | [
"MIT"
] | null | null | null | from hashtable import HashTable
class DefaultTable(HashTable):
def __init__(self, default):
self.default = default
super().__init__()
def __str__(self):
return f'(DefaultTable, (value={self.default})' + super().__str__() + ')'
def __missing__(self, key):
self[key] = self.... | 22.375 | 81 | 0.614525 | 38 | 358 | 5.263158 | 0.421053 | 0.22 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243017 | 358 | 15 | 82 | 23.866667 | 0.738007 | 0 | 0 | 0 | 0 | 0 | 0.106145 | 0.061453 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.7 | 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 | 0 | 1 | 0 | 0 | 3 |
d5382a2a575ed00f0bc1a137fc2e59d852e904ac | 5,266 | py | Python | runway/_logging.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | runway/_logging.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | runway/_logging.py | troyready/runway | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | [
"Apache-2.0"
] | null | null | null | """Runway logging."""
import logging
from enum import IntEnum
class LogLevels(IntEnum):
"""All available log levels."""
NOTSET = 0
DEBUG = 10
VERBOSE = 15
INFO = 20
NOTICE = 25
WARNING = 30
SUCCESS = 35
ERROR = 40
CRITICAL = 50
@classmethod
def has_value(cls, value):
... | 28.934066 | 79 | 0.590011 | 590 | 5,266 | 5.218644 | 0.225424 | 0.034102 | 0.050666 | 0.033128 | 0.478727 | 0.478727 | 0.40013 | 0.315037 | 0.268918 | 0.23644 | 0 | 0.007054 | 0.300038 | 5,266 | 181 | 80 | 29.093923 | 0.828269 | 0.454045 | 0 | 0.117647 | 0 | 0 | 0.006016 | 0 | 0 | 0 | 0 | 0.022099 | 0 | 1 | 0.27451 | false | 0 | 0.039216 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d53a371dec08b1b7abbd5bdba6752791e146d269 | 141 | py | Python | OurTasks/02/05/05.py | nakov/Python-Course-SoftUni | b6036064c259adbdae4e2d87b67230b9cf9ddefc | [
"MIT"
] | 6 | 2017-06-09T17:45:28.000Z | 2020-03-31T11:59:39.000Z | OurTasks/02/05/05.py | nakov/Python-Course-SoftUni | b6036064c259adbdae4e2d87b67230b9cf9ddefc | [
"MIT"
] | null | null | null | OurTasks/02/05/05.py | nakov/Python-Course-SoftUni | b6036064c259adbdae4e2d87b67230b9cf9ddefc | [
"MIT"
] | 1 | 2019-07-02T11:26:00.000Z | 2019-07-02T11:26:00.000Z | num = int (input ())
third_digit = num // 100 % 10;
if third_digit == 7:
print ("True")
else:
print ("False " + str (third_digit))
| 15.666667 | 40 | 0.574468 | 20 | 141 | 3.9 | 0.7 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 0.248227 | 141 | 8 | 41 | 17.625 | 0.679245 | 0 | 0 | 0 | 0 | 0 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d54367aaf19f419e4d84d5e8b97849323f35442b | 138 | py | Python | tests/scripts/kallisto_test.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 73 | 2015-08-17T03:21:32.000Z | 2022-01-02T17:37:56.000Z | tests/scripts/kallisto_test.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 43 | 2017-07-30T03:30:04.000Z | 2022-03-26T04:46:05.000Z | tests/scripts/kallisto_test.py | michalkouril/altanalyze | e721c79c56f7b0022516ff5456ebaa14104c933b | [
"Apache-2.0"
] | 30 | 2015-08-26T07:21:43.000Z | 2021-12-09T02:53:25.000Z |
import subprocess
retcode = subprocess.call(['python', 'AltAnalyze.py', "--","-i", indexFile, "-o", output_path,"--single","-l","200"]+p) | 46 | 119 | 0.637681 | 17 | 138 | 5.117647 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.072464 | 138 | 3 | 119 | 46 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 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 |
d5647902b54d4e2aac3bac50693a9204d88ff41e | 462 | py | Python | wordpress/router.py | equalitie/django-wordpress | 285c10c4afa564e5211b5d82558baeb961de82e8 | [
"BSD-3-Clause"
] | 91 | 2016-11-05T18:27:48.000Z | 2019-09-20T07:17:49.000Z | wordpress/router.py | equalitie/django-wordpress | 285c10c4afa564e5211b5d82558baeb961de82e8 | [
"BSD-3-Clause"
] | 7 | 2016-11-03T15:48:31.000Z | 2019-09-16T18:19:47.000Z | wordpress/router.py | equalitie/django-wordpress | 285c10c4afa564e5211b5d82558baeb961de82e8 | [
"BSD-3-Clause"
] | 24 | 2016-11-21T18:13:46.000Z | 2019-03-17T12:36:46.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
DATABASE = getattr(settings, "WP_DATABASE", "default")
class WordpressRouter(object):
"""
Overrides default wordpress database to WP_DATABASE setting.
"""
def db_for_read(self, model, **hints):
if model._meta.app_label == 'wordpress':... | 23.1 | 64 | 0.649351 | 56 | 462 | 5.178571 | 0.589286 | 0.051724 | 0.055172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002809 | 0.229437 | 462 | 19 | 65 | 24.315789 | 0.811798 | 0.179654 | 0 | 0 | 0 | 0 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d578cbb48d84adabb4cbc43d62f3a3024bf53cc4 | 3,292 | py | Python | fonts/BebasNeue_Bold16pt7b.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | fonts/BebasNeue_Bold16pt7b.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | fonts/BebasNeue_Bold16pt7b.py | cnobile2012/Python-TFT | 812a87e6f694eae338c3d9579ea98eae636f8f99 | [
"MIT"
] | null | null | null | BebasNeue_Bold16pt7bBitmaps = [
0x07, 0x00, 0x60, 0x06, 0x04, 0x63, 0xF6, 0xF7, 0xFF, 0x06, 0x00, 0xF0,
0x19, 0x83, 0x9E, 0x30, 0xC1, 0x08, 0x0C, 0x01, 0x80, 0x30, 0x06, 0x0F,
0xFF, 0xFF, 0xFF, 0xF8, 0x60, 0x0C, 0x01, 0x80, 0x30, 0x00, 0xFF, 0xF6,
0x64, 0xFF, 0xFF, 0xC0, 0xFF, 0xF0, 0x00, 0x70, 0x0E, 0x... | 57.754386 | 75 | 0.54435 | 487 | 3,292 | 3.669405 | 0.234086 | 0.062675 | 0.053721 | 0.071628 | 0.368215 | 0.284275 | 0.275322 | 0.275322 | 0.190263 | 0.185786 | 0 | 0.421769 | 0.285541 | 3,292 | 56 | 76 | 58.785714 | 0.33801 | 0.048603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.451012 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d5a3279e8ffb8bb42c2d38afd7c6c8c0c5d56657 | 94 | py | Python | lambda odd or even.py | keerthana1502/python_practice | 8c0499e014826af78f9a88730551ace3fa79686d | [
"bzip2-1.0.6"
] | null | null | null | lambda odd or even.py | keerthana1502/python_practice | 8c0499e014826af78f9a88730551ace3fa79686d | [
"bzip2-1.0.6"
] | null | null | null | lambda odd or even.py | keerthana1502/python_practice | 8c0499e014826af78f9a88730551ace3fa79686d | [
"bzip2-1.0.6"
] | null | null | null |
y=lambda *b:sum(b)
print(y(1,2,3))
z=lambda **c:sum(c.values())
print(z(one=1,two=2,three=3)) | 18.8 | 29 | 0.62766 | 24 | 94 | 2.458333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 0.06383 | 94 | 5 | 29 | 18.8 | 0.602273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
6338d63c1e7e9814d22d04673347fd2a7e54f1cc | 130 | py | Python | seminar-roulette/frontend/urls.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/frontend/urls.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | null | null | null | seminar-roulette/frontend/urls.py | olliegardner/seminar-roulette | c8330258778dd7f71b1289c5dfe611e5637cf71d | [
"MIT"
] | 1 | 2020-10-07T16:21:59.000Z | 2020-10-07T16:21:59.000Z | from django.urls import re_path
from . import views
urlpatterns = [
re_path(r'^(?!admin|api|/admin|/api).*$', views.index),
] | 21.666667 | 59 | 0.669231 | 19 | 130 | 4.473684 | 0.631579 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138462 | 130 | 6 | 60 | 21.666667 | 0.758929 | 0 | 0 | 0 | 0 | 0 | 0.221374 | 0.221374 | 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 |
634c128c636f51cee55619c484640ad9063da099 | 488 | py | Python | amadeus_demo/map/hotel.py | amadeus4dev/amadeus-hotel-area-safety-pois-django | c3a06190258a25569cddb8f295cd92034b92601e | [
"MIT"
] | 4 | 2020-12-19T11:39:09.000Z | 2021-11-08T15:27:44.000Z | amadeus_demo/map/hotel.py | amadeus4dev/amadeus-hotel-area-safety-pois-django | c3a06190258a25569cddb8f295cd92034b92601e | [
"MIT"
] | 1 | 2021-06-09T19:10:41.000Z | 2021-06-09T19:10:41.000Z | amadeus_demo/map/hotel.py | amadeus4dev/amadeus-hotel-area-safety-pois-django | c3a06190258a25569cddb8f295cd92034b92601e | [
"MIT"
] | 3 | 2021-02-17T14:05:53.000Z | 2022-01-11T11:10:27.000Z | class Hotel:
def __init__(self, hotel):
self.hotel = hotel
def construct_hotel(self):
try:
offer = {}
offer['name'] = self.hotel['hotel']['name']
offer['latitude'] = self.hotel['hotel']['latitude']
offer['longitude'] = self.hotel['hotel']['longitu... | 32.533333 | 70 | 0.538934 | 47 | 488 | 5.489362 | 0.404255 | 0.209302 | 0.271318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29918 | 488 | 14 | 71 | 34.857143 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0.165984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
636bb05841f01a1c1ca9e3d740f9cb9592cf398f | 3,065 | py | Python | ib/ext/ComboLeg.py | LewisW/IbPy | eb6ec62a3c578c650e6b98e56a9b6ed2c0a28f0f | [
"BSD-3-Clause"
] | 1,260 | 2015-01-05T01:38:43.000Z | 2022-03-28T14:08:02.000Z | ib/ext/ComboLeg.py | LewisW/IbPy | eb6ec62a3c578c650e6b98e56a9b6ed2c0a28f0f | [
"BSD-3-Clause"
] | 46 | 2015-01-04T15:37:17.000Z | 2019-10-24T09:53:40.000Z | ib/ext/ComboLeg.py | LewisW/IbPy | eb6ec62a3c578c650e6b98e56a9b6ed2c0a28f0f | [
"BSD-3-Clause"
] | 521 | 2015-01-01T14:26:01.000Z | 2022-03-26T16:22:36.000Z | #!/usr/bin/env python
""" generated source for module ComboLeg """
#
# Original file copyright original author(s).
# This file copyright Troy Melhase, troy@gci.net.
#
# WARNING: all changes to this file will be lost.
from ib.lib.overloading import overloaded
from ib.ext.Util import Util
#
# * ComboLeg.java
# *
#
... | 41.986301 | 243 | 0.682871 | 420 | 3,065 | 4.628571 | 0.228571 | 0.041152 | 0.028807 | 0.061728 | 0.36214 | 0.304527 | 0.271605 | 0.271605 | 0.271605 | 0.271605 | 0 | 0.01172 | 0.220555 | 3,065 | 72 | 244 | 42.569444 | 0.802009 | 0.326591 | 0 | 0.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.068182 | 0.045455 | 0 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
639cb5201cc637993858a272f03b3bcfd6254db1 | 966 | py | Python | user_profile/migrations/0009_auto_20200702_1833.py | BarisX/ecommerce_api | 69191d1086f1befe49175e93dc716f1e4037e21f | [
"MIT"
] | 95 | 2020-04-13T09:02:30.000Z | 2022-03-25T14:11:34.000Z | user_profile/migrations/0009_auto_20200702_1833.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 87 | 2020-02-21T17:58:56.000Z | 2022-03-21T21:37:05.000Z | user_profile/migrations/0009_auto_20200702_1833.py | Bilal815/ecommerce_api | a3d8ce7a9e1fa2528d240d5ab508afe92607c9f8 | [
"MIT"
] | 33 | 2021-01-18T09:30:29.000Z | 2022-03-30T01:31:57.000Z | # Generated by Django 2.1.11 on 2020-07-02 18:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0008_auto_20190913_0939'),
]
operations = [
migrations.AlterField(
model_name='address',
name='crea... | 28.411765 | 73 | 0.594203 | 98 | 966 | 5.653061 | 0.408163 | 0.144404 | 0.180505 | 0.209386 | 0.590253 | 0.590253 | 0.590253 | 0.590253 | 0.590253 | 0.590253 | 0 | 0.047059 | 0.296066 | 966 | 33 | 74 | 29.272727 | 0.767647 | 0.047619 | 0 | 0.592593 | 1 | 0 | 0.115468 | 0.025054 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
63a3dc1dec0109159924fd0b550ec1c448c27cf9 | 130 | py | Python | dice_ml/__init__.py | giandos200/DiCE | b12c369a8327e876f4e14cdc2d01e2f53e471b46 | [
"MIT"
] | 274 | 2019-06-25T14:50:39.000Z | 2020-04-20T16:06:14.000Z | dice_ml/__init__.py | giandos200/DiCE | b12c369a8327e876f4e14cdc2d01e2f53e471b46 | [
"MIT"
] | 14 | 2019-12-02T12:26:42.000Z | 2020-04-22T13:34:03.000Z | dice_ml/__init__.py | giandos200/DiCE | b12c369a8327e876f4e14cdc2d01e2f53e471b46 | [
"MIT"
] | 35 | 2019-06-25T17:42:03.000Z | 2020-04-21T14:59:18.000Z | from .data import Data
from .dice import Dice
from .model import Model
__all__ = ["Data",
"Model",
"Dice"]
| 16.25 | 24 | 0.584615 | 16 | 130 | 4.5 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 130 | 7 | 25 | 18.571429 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 |
63b1b87e547f1509066c7e10a002b132664496f7 | 1,988 | py | Python | object/sprite.py | NoSocksForYou/dropsim | e796c3af52601db845ebe28fa0bfe93337f31f80 | [
"MIT"
] | null | null | null | object/sprite.py | NoSocksForYou/dropsim | e796c3af52601db845ebe28fa0bfe93337f31f80 | [
"MIT"
] | null | null | null | object/sprite.py | NoSocksForYou/dropsim | e796c3af52601db845ebe28fa0bfe93337f31f80 | [
"MIT"
] | null | null | null | import math
import matplotlib.pyplot as plt
import os
import pygame
class Sprite:
PIXEL_WEIGHT = 0.01
PIXEL_DIMEN = 0.195 / 1080
def __init__(self, matrix, mass, path):
self._matrix = matrix
self._mass = mass
self._path = path
self._sufrace = pygame.image.load(self._pat... | 24.243902 | 93 | 0.583501 | 246 | 1,988 | 4.560976 | 0.313008 | 0.062389 | 0.032086 | 0.032086 | 0.108734 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040143 | 0.29829 | 1,988 | 82 | 94 | 24.243902 | 0.764158 | 0.048793 | 0 | 0.125 | 0 | 0 | 0.016419 | 0.012182 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.160714 | 0.517857 | 0.017857 | 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 |
63c9d68099a05c85e3a8a9845df7f2db41b7b553 | 318 | py | Python | velarium/providers/simpleprovider.py | holthe/velarium | c16f608f1f99b1fab6b3556b2da414ea41777f80 | [
"MIT"
] | 2 | 2018-04-07T21:38:24.000Z | 2020-01-22T19:14:01.000Z | velarium/providers/simpleprovider.py | holthe/velarium | c16f608f1f99b1fab6b3556b2da414ea41777f80 | [
"MIT"
] | null | null | null | velarium/providers/simpleprovider.py | holthe/velarium | c16f608f1f99b1fab6b3556b2da414ea41777f80 | [
"MIT"
] | null | null | null | from velarium.providers import baseprovider
class SimpleProvider(baseprovider.BaseProvider):
def __init__(self, app_dir, name, configs_url):
self._name = name
self.configs_url = configs_url
super(SimpleProvider, self).__init__(app_dir)
def get_name(self):
return self._name
| 24.461538 | 53 | 0.710692 | 38 | 318 | 5.526316 | 0.473684 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210692 | 318 | 12 | 54 | 26.5 | 0.836653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 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 |
63d3ad4f1ef361c8ca82acccb1da38bc190dbeb9 | 1,070 | py | Python | mypython_forex_quotes/ForexDataClient.py | daniel-julio-iglesias/forge | a3f39bee572a6d4669db6ecdb690eb82df5ebcc1 | [
"MIT"
] | null | null | null | mypython_forex_quotes/ForexDataClient.py | daniel-julio-iglesias/forge | a3f39bee572a6d4669db6ecdb690eb82df5ebcc1 | [
"MIT"
] | null | null | null | mypython_forex_quotes/ForexDataClient.py | daniel-julio-iglesias/forge | a3f39bee572a6d4669db6ecdb690eb82df5ebcc1 | [
"MIT"
] | null | null | null | from __future__ import print_function
import json
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
class ForexDataClient:
def __init__(self, api_key):
self.api_key = api_key
self.base_uri = 'http://forex.1forge.com/1.0.3/' # Reflects v1.0.3 as on the ... | 30.571429 | 112 | 0.646729 | 138 | 1,070 | 4.847826 | 0.434783 | 0.044843 | 0.089686 | 0.038864 | 0.047833 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009732 | 0.231776 | 1,070 | 34 | 113 | 31.470588 | 0.804136 | 0.040187 | 0 | 0.074074 | 0 | 0 | 0.15122 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0.185185 | 0.148148 | 0.703704 | 0.074074 | 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 |
89211fce610a0f48bdc6596283a53b881236e4ab | 475 | py | Python | src/api/v1/models/stocks/stocks.py | HALLOWe3n/StockCompAPI | 696bd6e70d97ac7748a542ff3e95ce4347a198b0 | [
"MIT"
] | null | null | null | src/api/v1/models/stocks/stocks.py | HALLOWe3n/StockCompAPI | 696bd6e70d97ac7748a542ff3e95ce4347a198b0 | [
"MIT"
] | null | null | null | src/api/v1/models/stocks/stocks.py | HALLOWe3n/StockCompAPI | 696bd6e70d97ac7748a542ff3e95ce4347a198b0 | [
"MIT"
] | null | null | null | # Created by PyCharm Professional.
# User: romandemyanchuk
# Date: 6/27/20
# Time: 7:33 PM
# To change this template use File | Settings | File and Code Templates.
from src.api.db.queries.stocks import StockQueries
class StockModel:
def __init__(self):
self.query = StockQueries()
def get_stocks_list... | 25 | 72 | 0.701053 | 66 | 475 | 4.893939 | 0.69697 | 0.083591 | 0.092879 | 0.111455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.2 | 475 | 18 | 73 | 26.388889 | 0.828947 | 0.322105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8940cc8411640425dacc97425fdcd9c9cc7bf212 | 268 | py | Python | fbpic/fields/__init__.py | fractional-ray/fbpic | 2574662669acead79190fdb416723ac359fceceb | [
"BSD-3-Clause-LBNL"
] | 131 | 2016-09-26T05:57:47.000Z | 2022-03-10T04:32:32.000Z | fbpic/fields/__init__.py | RemiLehe/fbpic | f0d55048eb669081c26eff28fee39891b62aaeb2 | [
"BSD-3-Clause-LBNL"
] | 398 | 2016-09-26T14:09:34.000Z | 2022-03-17T23:11:57.000Z | fbpic/fields/__init__.py | RemiLehe/fbpic | f0d55048eb669081c26eff28fee39891b62aaeb2 | [
"BSD-3-Clause-LBNL"
] | 61 | 2016-09-26T05:38:21.000Z | 2022-01-11T14:42:53.000Z | """
This file is part of the Fourier-Bessel Particle-In-Cell code (FB-PIC)
It imports the Fields object from the fields package, so that
this object can be used at a higher level.
"""
from .fields import Fields, cuda_installed
__all__ = [ 'Fields', 'cuda_installed' ]
| 33.5 | 70 | 0.75 | 44 | 268 | 4.431818 | 0.75 | 0.092308 | 0.194872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160448 | 268 | 7 | 71 | 38.285714 | 0.866667 | 0.652985 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
894fdfdb7592b01225994887ad1a69b7c01b417e | 154 | py | Python | pinax/webanalytics/__init__.py | jheerman/pinax-webanalytics | 68b008240378507d771343a6db45d34e249b47df | [
"MIT"
] | 45 | 2016-03-17T14:53:03.000Z | 2021-04-13T04:11:48.000Z | pinax/webanalytics/__init__.py | jheerman/pinax-webanalytics | 68b008240378507d771343a6db45d34e249b47df | [
"MIT"
] | 8 | 2017-12-05T00:48:14.000Z | 2021-04-23T01:44:07.000Z | pinax/webanalytics/__init__.py | jheerman/pinax-webanalytics | 68b008240378507d771343a6db45d34e249b47df | [
"MIT"
] | 13 | 2016-03-19T09:05:47.000Z | 2022-02-18T21:29:21.000Z | import pkg_resources
default_app_config = "pinax.webanalytics.apps.AppConfig"
__version__ = pkg_resources.get_distribution("pinax-webanalytics").version
| 30.8 | 74 | 0.850649 | 18 | 154 | 6.777778 | 0.722222 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058442 | 154 | 4 | 75 | 38.5 | 0.841379 | 0 | 0 | 0 | 0 | 0 | 0.331169 | 0.214286 | 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 |
8967869d02d0a3aaf248526de06891512ac210a5 | 149 | py | Python | mfc_scraper/locators/figure_locators.py | laurent-radoux/mfc_scraper | fb68e88bf4d11ac340d95497af9d560d34080c1c | [
"MIT"
] | 1 | 2021-06-21T19:55:37.000Z | 2021-06-21T19:55:37.000Z | mfc_scraper/locators/figure_locators.py | laurent-radoux/mfc_scraper | fb68e88bf4d11ac340d95497af9d560d34080c1c | [
"MIT"
] | null | null | null | mfc_scraper/locators/figure_locators.py | laurent-radoux/mfc_scraper | fb68e88bf4d11ac340d95497af9d560d34080c1c | [
"MIT"
] | 1 | 2022-02-27T08:44:17.000Z | 2022-02-27T08:44:17.000Z | class FigureLocators:
"""
CSS locators for particular information within a figure html element
"""
ID = "a meta"
NAME = "a img"
| 18.625 | 72 | 0.624161 | 18 | 149 | 5.166667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288591 | 149 | 7 | 73 | 21.285714 | 0.877358 | 0.456376 | 0 | 0 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
898089818d1b5c6ababcb21a4ce5bdfb45f1c484 | 248 | py | Python | Jupyter/colorh1.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/colorh1.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | Jupyter/colorh1.py | MooersLab/jupyterlabpymolpysnipsplus | b886750d63372434df53d4d6d7cdad6cb02ae4e7 | [
"MIT"
] | null | null | null | # Description: Run the colorh1 function from the pymolshortcuts.py file to color protein molecules according to the Eisenberg hydrophobicity scale, scheme 1.
# Source: placeHolder
"""
cmd.do('cmd.do("colorh1")')
"""
cmd.do('cmd.do("colorh1")')
| 27.555556 | 158 | 0.733871 | 34 | 248 | 5.352941 | 0.676471 | 0.10989 | 0.087912 | 0.10989 | 0.186813 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.133065 | 248 | 8 | 159 | 31 | 0.827907 | 0.830645 | 0 | 0 | 0 | 0 | 0.515152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8983ae8cefdc5290d94a187e78296593dfd206e0 | 361 | py | Python | src/utils/__init__.py | Kamuish/serval | 37807c4dc9d16bd91daa3931a89f128404c83dd6 | [
"MIT"
] | null | null | null | src/utils/__init__.py | Kamuish/serval | 37807c4dc9d16bd91daa3931a89f128404c83dd6 | [
"MIT"
] | 20 | 2020-01-30T22:08:59.000Z | 2020-02-17T23:24:11.000Z | src/utils/__init__.py | Kamuish/serval | 37807c4dc9d16bd91daa3931a89f128404c83dd6 | [
"MIT"
] | null | null | null | from .logger import setup_logger
setup_logger()
from .create_print_file import create_print_file
from .input_handler import build_parser, arg2slice
from .gplot import *
from .pause import pause, stop
from .fits_files_class import FitsClass
from .reader_writer.write_handler import write_handler
from .reader_writ... | 18.05 | 55 | 0.831025 | 52 | 361 | 5.461538 | 0.442308 | 0.137324 | 0.105634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003175 | 0.127424 | 361 | 19 | 56 | 19 | 0.898413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.888889 | 0 | 0.888889 | 0.111111 | 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 |
89990eae3d9e8e8435331116e8cf5b8742c5342c | 104 | py | Python | fantasy_pytest/__init__.py | 9nix00/fantasy | 64ffdd081883fd67f4fc5c9d0ed578392bfec860 | [
"MIT"
] | 1 | 2018-06-21T16:18:42.000Z | 2018-06-21T16:18:42.000Z | fantasy_pytest/__init__.py | 9nix00/fantasy | 64ffdd081883fd67f4fc5c9d0ed578392bfec860 | [
"MIT"
] | 3 | 2020-02-14T15:48:51.000Z | 2020-08-18T12:44:17.000Z | fantasy_pytest/__init__.py | wangwenpei/fantasy | 64ffdd081883fd67f4fc5c9d0ed578392bfec860 | [
"MIT"
] | null | null | null | """
=============
fantasy pytest
=============
"""
version = "0.4.2"
version_info = version.split('.')
| 11.555556 | 33 | 0.451923 | 10 | 104 | 4.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.125 | 104 | 8 | 34 | 13 | 0.472527 | 0.403846 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
899ad6600245dad53f935a06e65194a6029f8121 | 1,683 | py | Python | projects.py | osma/annif | 81a746e17898e7678f53afe433baed6ac7114ebd | [
"CC0-1.0"
] | 16 | 2017-04-10T06:50:25.000Z | 2021-11-17T11:26:04.000Z | projects.py | osma/annif | 81a746e17898e7678f53afe433baed6ac7114ebd | [
"CC0-1.0"
] | 11 | 2017-04-13T11:31:49.000Z | 2018-10-23T05:17:50.000Z | projects.py | osma/annif | 81a746e17898e7678f53afe433baed6ac7114ebd | [
"CC0-1.0"
] | 1 | 2019-10-25T20:54:55.000Z | 2019-10-25T20:54:55.000Z | #!/usr/bin/env python3
import configparser
class AnnifProject:
def __init__(self, project_id, config):
self.project_id = project_id
self.config = config
def get_index_name(self):
return self.config['indexname']
def get_language(self):
return self.config['language'... | 31.166667 | 124 | 0.656566 | 202 | 1,683 | 5.19802 | 0.366337 | 0.102857 | 0.049524 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00077 | 0.228758 | 1,683 | 53 | 125 | 31.754717 | 0.808166 | 0.168746 | 0 | 0 | 0 | 0 | 0.111433 | 0.016643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.029412 | 0.176471 | 0.617647 | 0.147059 | 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 |
899e030eeedb519c2e76b5e27579c77c84f45666 | 448 | py | Python | pyrival/__init__.py | AbhiY98/PyRival | c7b2a4156725251ce23210d4b2dbeb9e6535c5d3 | [
"MIT"
] | 3 | 2020-05-07T10:48:11.000Z | 2020-08-15T08:31:40.000Z | pyrival/__init__.py | Mukundan314/PyRival | 49c32c1f41e0257bef0f6ac04c415d2b0ff89248 | [
"Apache-2.0"
] | null | null | null | pyrival/__init__.py | Mukundan314/PyRival | 49c32c1f41e0257bef0f6ac04c415d2b0ff89248 | [
"Apache-2.0"
] | 2 | 2021-05-22T13:45:06.000Z | 2022-03-06T18:22:05.000Z | from .algebra import *
from .combinatorics import *
from .data_structures import *
from .geometry import *
from .graphs import *
from .linear_algebra import *
from .numerical import *
from .strings import *
from .version import version
__version__ = version
__all__ = (algebra.__all__ + combinatorics.__all__ + data_st... | 29.866667 | 114 | 0.765625 | 51 | 448 | 5.862745 | 0.254902 | 0.267559 | 0.113712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154018 | 448 | 14 | 115 | 32 | 0.788918 | 0 | 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 | 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 |
89a16ead904c53b821db8c1245c4ed596c109001 | 106 | py | Python | Language/Lexer/token.py | anoppa/Proyecto-IA-Sim-Comp | 71132bd0c6cb5aeff812fd96e0017be71178a5f3 | [
"MIT"
] | 1 | 2022-03-11T14:24:10.000Z | 2022-03-11T14:24:10.000Z | Language/Lexer/token.py | anoppa/Proyecto-IA-Sim-Comp | 71132bd0c6cb5aeff812fd96e0017be71178a5f3 | [
"MIT"
] | null | null | null | Language/Lexer/token.py | anoppa/Proyecto-IA-Sim-Comp | 71132bd0c6cb5aeff812fd96e0017be71178a5f3 | [
"MIT"
] | 1 | 2022-01-19T04:29:19.000Z | 2022-01-19T04:29:19.000Z | class Token:
def __init__(self, expr, t) -> None:
self.expression = expr
self.type = t | 26.5 | 40 | 0.575472 | 14 | 106 | 4.071429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.311321 | 106 | 4 | 41 | 26.5 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9845bc4359bb646e54f63421fb4cd192870f4c59 | 1,563 | py | Python | __init__.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | 1 | 2021-08-08T03:15:47.000Z | 2021-08-08T03:15:47.000Z | __init__.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | null | null | null | __init__.py | tjsego/simservice | 1ca1df4c6644f22217645575719cfa72f5b9f895 | [
"MIT"
] | null | null | null | """
simservice
-----------
A library for building simulation services in Python.
MIT License
-----------
Copyright (c) 2021 T.J. Sego, Ph.D.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software with... | 33.978261 | 110 | 0.765835 | 232 | 1,563 | 5.112069 | 0.581897 | 0.074199 | 0.021922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00306 | 0.163788 | 1,563 | 45 | 111 | 34.733333 | 0.904361 | 0.815739 | 0 | 0 | 0 | 0 | 0.042146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9884299917344fe8196754db1fed0fdba3ccf5e8 | 115 | py | Python | yc44/51.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc44/51.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | yc44/51.py | c-yan/yukicoder | cdbbd65402177225dd989df7fe01f67908484a69 | [
"MIT"
] | null | null | null | W = int(input())
D = int(input())
for i in range(D - 1):
t = int(W / ((D - i) * (D - i)))
W -= t
print(W)
| 14.375 | 36 | 0.417391 | 23 | 115 | 2.086957 | 0.478261 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.313043 | 115 | 7 | 37 | 16.428571 | 0.594937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9894d54b141ca462043ee961da0f4fb5d08ebfae | 962 | py | Python | src/extras/kucera_francis.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | src/extras/kucera_francis.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | src/extras/kucera_francis.py | Somsubhra/Simplify | eeb0899347fb6474de2d674a04b6cd2838dc3490 | [
"MIT"
] | null | null | null | __author__ = 's7a'
# The Kucera Francis class
class KuceraFrancis:
# Constructor for the Kucera Francis class
def __init__(self, dict_file):
dict = open(dict_file, 'r')
# Construct the Kucera Francis frequency dictionary
self.kucera_francis_frequency = {}
for line in dict.re... | 26 | 65 | 0.606029 | 114 | 962 | 4.95614 | 0.333333 | 0.20708 | 0.272566 | 0.184071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009077 | 0.31289 | 962 | 37 | 66 | 26 | 0.845688 | 0.218295 | 0 | 0 | 0 | 0 | 0.006693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.380952 | 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 |
98ac67ce9cdafc027891865fb6458ddeb5c7e548 | 1,609 | py | Python | cspyce/arrays.py | fyellin/pds-cspyce | e7f7cac09c93d2ebf9d592d91f8f221bfcbabb5a | [
"AFL-3.0"
] | null | null | null | cspyce/arrays.py | fyellin/pds-cspyce | e7f7cac09c93d2ebf9d592d91f8f221bfcbabb5a | [
"AFL-3.0"
] | 4 | 2018-10-30T21:56:05.000Z | 2022-03-28T23:45:27.000Z | cspyce/arrays.py | fyellin/pds-cspyce | e7f7cac09c93d2ebf9d592d91f8f221bfcbabb5a | [
"AFL-3.0"
] | 2 | 2019-12-14T05:32:52.000Z | 2022-03-02T21:55:11.000Z | ################################################################################
# cspyce/arrays.py
################################################################################
# Array handler for the cspyce library
#
# This module implements support for multidimensional arrays by building upon
# all of the vectori... | 40.225 | 80 | 0.548788 | 161 | 1,609 | 5.372671 | 0.478261 | 0.041619 | 0.048555 | 0.076301 | 0.085549 | 0.085549 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118707 | 1,609 | 39 | 81 | 41.25641 | 0.610014 | 0.512119 | 0 | 0.285714 | 0 | 0 | 0.052448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.571429 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
98b145ace97fbb51dd8a3f035110e06af2aed55c | 78 | py | Python | app-3/application/__init__.py | sc18kg/QA-PROJECT-2 | 210aa32f637b7fe8f10f74bbc5429c5093101b8e | [
"Unlicense"
] | 1 | 2020-07-30T11:00:13.000Z | 2020-07-30T11:00:13.000Z | app-3/application/__init__.py | sc18kg/QA-PROJECT-2 | 210aa32f637b7fe8f10f74bbc5429c5093101b8e | [
"Unlicense"
] | 2 | 2020-11-11T16:29:18.000Z | 2022-02-10T01:40:11.000Z | Kubernetes_Deployment/client/application/__init__.py | kmaciver/newsflash | 520199ef3273b38de1c9e06076b9edf39f6b5252 | [
"MIT"
] | 1 | 2020-08-07T08:53:51.000Z | 2020-08-07T08:53:51.000Z | from flask import Flask
app = Flask(__name__)
from application import routes | 15.6 | 30 | 0.807692 | 11 | 78 | 5.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 78 | 5 | 30 | 15.6 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f27cc7725f6e462fdefe2dfc8441e99072df30d | 2,315 | py | Python | sandbox/plc4py/src/main/python/org/apache/plc4x/PlcConnection.py | KonstantinKe/plc4x | 0046436f81b1b2a45c6cbca5fa5cbe0a16f7199f | [
"Apache-2.0",
"Unlicense"
] | 556 | 2019-04-23T12:16:28.000Z | 2022-03-31T13:55:29.000Z | sandbox/plc4py/src/main/python/org/apache/plc4x/PlcConnection.py | KonstantinKe/plc4x | 0046436f81b1b2a45c6cbca5fa5cbe0a16f7199f | [
"Apache-2.0",
"Unlicense"
] | 140 | 2019-05-04T19:43:10.000Z | 2022-03-31T10:37:11.000Z | sandbox/plc4py/src/main/python/org/apache/plc4x/PlcConnection.py | KonstantinKe/plc4x | 0046436f81b1b2a45c6cbca5fa5cbe0a16f7199f | [
"Apache-2.0",
"Unlicense"
] | 238 | 2019-04-23T17:48:14.000Z | 2022-03-31T14:08:37.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | 30.866667 | 103 | 0.700648 | 296 | 2,315 | 5.385135 | 0.412162 | 0.026349 | 0.043915 | 0.084693 | 0.080301 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002793 | 0.226782 | 2,315 | 75 | 104 | 30.866667 | 0.88771 | 0.339093 | 0 | 0 | 0 | 0 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.026316 | 0.157895 | 0.684211 | 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 |
7f43bbc184c4689a9f27168aa6fe41963d6037fa | 26 | py | Python | sample_project/celeryapp/__init__.py | baranbartu/djcelery-admin | 4743905f681a0e40a3cded721a36d7eee243671e | [
"MIT"
] | 23 | 2015-11-23T14:27:29.000Z | 2020-10-05T03:40:33.000Z | sample_project/__init__.py | baranbartu/djcelery-admin | 4743905f681a0e40a3cded721a36d7eee243671e | [
"MIT"
] | 10 | 2015-11-29T17:47:43.000Z | 2016-01-15T13:44:32.000Z | sample_project/__init__.py | baranbartu/djcelery-admin | 4743905f681a0e40a3cded721a36d7eee243671e | [
"MIT"
] | 6 | 2017-01-23T12:37:45.000Z | 2019-09-24T13:46:33.000Z | __author__ = 'baranbartu'
| 13 | 25 | 0.769231 | 2 | 26 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 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 |
7f45f6bd0bf78e0053d13a2fc059e49d29207838 | 110 | py | Python | scale/ingest/__init__.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/ingest/__init__.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/ingest/__init__.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | """This model handles the ingestion of new data into scale"""
default_app_config = 'ingest.apps.IngestConfig'
| 36.666667 | 61 | 0.781818 | 16 | 110 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 110 | 2 | 62 | 55 | 0.865979 | 0.5 | 0 | 0 | 0 | 0 | 0.489796 | 0.489796 | 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 |
7f5ec473dfa6793fd72fd842371c3e82d13f9404 | 258 | py | Python | sphinx/pocketsphinx-5prealpha/swig/python/test/fsg_test.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 2 | 2021-01-13T21:17:42.000Z | 2021-01-13T21:17:42.000Z | sphinx/pocketsphinx-5prealpha/swig/python/test/fsg_test.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | null | null | null | sphinx/pocketsphinx-5prealpha/swig/python/test/fsg_test.py | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
from sphinxbase.sphinxbase import LogMath
from sphinxbase.sphinxbase import FsgModel
lmath = LogMath()
fsg = FsgModel("simple_grammar", lmath, 1.0, 10)
fsg.word_add("hello")
fsg.word_add("world")
print (fsg.word_id("world"))
| 18.428571 | 48 | 0.751938 | 38 | 258 | 5 | 0.578947 | 0.110526 | 0.252632 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017391 | 0.108527 | 258 | 13 | 49 | 19.846154 | 0.808696 | 0.062016 | 0 | 0 | 0 | 0 | 0.120833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7f777bd0519a2af3f753451b726fcd4c2da6dafd | 2,823 | py | Python | examples/academic/swp/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 61 | 2018-05-24T13:14:05.000Z | 2022-03-29T11:35:03.000Z | examples/academic/swp/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 229 | 2018-05-28T08:31:09.000Z | 2022-03-21T11:02:41.000Z | examples/academic/swp/run.py | Noxsense/mCRL2 | dd2fcdd6eb8b15af2729633041c2dbbd2216ad24 | [
"BSL-1.0"
] | 28 | 2018-04-11T14:09:39.000Z | 2022-02-25T15:57:39.000Z | import os
# SWP_lists
os.system('mcrl22lps -v swp_lists.mcrl2 swp_lists.lps')
os.system('lps2pbes -v -f nodeadlock.mcf swp_lists.lps swp_lists.nodeadlock.pbes')
os.system('pbes2bool -v swp_lists.nodeadlock.pbes')
os.system('lps2pbes -v -f infinitely_often_enabled_then_infinitely_often_taken.mcf swp_lists.lps swp_list... | 67.214286 | 166 | 0.829968 | 460 | 2,823 | 4.793478 | 0.23913 | 0.108844 | 0.092517 | 0.077098 | 0.718821 | 0.662585 | 0.595465 | 0.543311 | 0.478458 | 0.312472 | 0 | 0.010031 | 0.081828 | 2,823 | 41 | 167 | 68.853659 | 0.840664 | 0.229189 | 0 | 0 | 0 | 0 | 0.844947 | 0.553761 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f79539a8255aa17d9083bed5b59f9d1eee17e3a | 3,717 | py | Python | back-end/mapping.py | tamasandacian/Flask-Angular-YelpChatbot | 562b03ac928f0888829ef903ed7bb9429a9e51d1 | [
"MIT"
] | 6 | 2020-10-28T15:27:25.000Z | 2022-03-08T08:22:53.000Z | back-end/mapping.py | tamasandacian/Flask-Angular-YelpChatbot | 562b03ac928f0888829ef903ed7bb9429a9e51d1 | [
"MIT"
] | 10 | 2020-09-06T15:41:44.000Z | 2022-03-02T04:58:59.000Z | back-end/mapping.py | tamasandacian/Flask-Angular-YelpChatbot | 562b03ac928f0888829ef903ed7bb9429a9e51d1 | [
"MIT"
] | 2 | 2020-12-13T04:21:20.000Z | 2022-01-18T20:41:51.000Z | restaurant_mapping = '''
{
"mappings": {
"properties": {
"address": {
"type": "text"
},
"country": {
"type": "text"
},
"cuisine": {
"type": "text"
},
"email": {
... | 24.453947 | 38 | 0.243207 | 163 | 3,717 | 5.404908 | 0.325153 | 0.208854 | 0.068104 | 0.045403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.614205 | 3,717 | 151 | 39 | 24.615894 | 0.614365 | 0 | 0 | 0.353333 | 0 | 0 | 0.985741 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7f9153db0224b144ce437f1839ca628033989e94 | 1,224 | py | Python | hw2/base/distances.py | hhio618/AUT-ml-hw-2017 | c82e2813348f988f291377c78edbd58868b81ac0 | [
"Apache-2.0"
] | null | null | null | hw2/base/distances.py | hhio618/AUT-ml-hw-2017 | c82e2813348f988f291377c78edbd58868b81ac0 | [
"Apache-2.0"
] | null | null | null | hw2/base/distances.py | hhio618/AUT-ml-hw-2017 | c82e2813348f988f291377c78edbd58868b81ac0 | [
"Apache-2.0"
] | null | null | null | #
# Created by Homayoun Heidarzadeh
#
import numpy as np
# Efficient row-wise distances
class EuclideanRowWise:
def __init__(self):
pass
def __call__(self, *args, **kwargs):
x = args[0]
matrix = args[1]
return np.sum(np.abs(x - matrix) ** 2, axis=-1) ** (1. / 2)
def __re... | 20.745763 | 108 | 0.54902 | 162 | 1,224 | 3.851852 | 0.259259 | 0.040064 | 0.070513 | 0.096154 | 0.471154 | 0.471154 | 0.435897 | 0.435897 | 0.435897 | 0.435897 | 0 | 0.026807 | 0.29902 | 1,224 | 58 | 109 | 21.103448 | 0.700466 | 0.04902 | 0 | 0.594595 | 0 | 0 | 0.036238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.324324 | false | 0.081081 | 0.027027 | 0.108108 | 0.675676 | 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 |
7fa2522ca00b16c01ae6b26fc09a0ef117756170 | 1,299 | py | Python | Domain/FacesCollection.py | miguel-kjh/ReID-in-Sport-competitions | c7abd47e6ce659aa73e76f797215941a11416981 | [
"MIT"
] | 5 | 2021-06-30T07:41:42.000Z | 2022-01-20T17:57:36.000Z | Domain/FacesCollection.py | miguel-kjh/ReID-in-Sport-competitions | c7abd47e6ce659aa73e76f797215941a11416981 | [
"MIT"
] | null | null | null | Domain/FacesCollection.py | miguel-kjh/ReID-in-Sport-competitions | c7abd47e6ce659aa73e76f797215941a11416981 | [
"MIT"
] | null | null | null | from Domain.Face import Face
class FacesCollection:
def __init__(self, model: str = "", data: dict = None):
if not data:
self.facesCollection = []
self.model = model
else:
self.facesCollection = [
Face(key,
face['posX'],
... | 26.510204 | 79 | 0.525019 | 131 | 1,299 | 5.083969 | 0.351145 | 0.256757 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001189 | 0.352579 | 1,299 | 48 | 80 | 27.0625 | 0.790725 | 0 | 0 | 0 | 0 | 0 | 0.046332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.028571 | 0.171429 | 0.485714 | 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 |
7fa88ab5fc1d77cb940b9caa1f76a656dea71aa1 | 1,347 | py | Python | models/components/shared.py | kkleidal/GatedPixelCNNPyTorch | 286298a0cd81ed2f6cb918fd39ce4da2c0e92802 | [
"MIT"
] | 63 | 2017-12-29T16:17:09.000Z | 2022-01-09T10:59:59.000Z | models/components/shared.py | MegaYEye/GatedPixelCNNPyTorch | 286298a0cd81ed2f6cb918fd39ce4da2c0e92802 | [
"MIT"
] | null | null | null | models/components/shared.py | MegaYEye/GatedPixelCNNPyTorch | 286298a0cd81ed2f6cb918fd39ce4da2c0e92802 | [
"MIT"
] | 18 | 2017-12-20T21:51:11.000Z | 2021-09-28T11:07:31.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import os
import numpy as np
from collections import deque, OrderedDict
gpu = os.environ.get("CUDA_VISIBLE_DEVICES", "") != "" and torch.cuda.is_available()
class EMA:
def __init__(self, _sentinal=None, alpha=No... | 28.0625 | 84 | 0.615442 | 185 | 1,347 | 4.281081 | 0.335135 | 0.068182 | 0.041667 | 0.037879 | 0.136364 | 0.088384 | 0.088384 | 0.088384 | 0.088384 | 0.088384 | 0 | 0.005123 | 0.275427 | 1,347 | 47 | 85 | 28.659574 | 0.806352 | 0 | 0 | 0.102564 | 0 | 0 | 0.072012 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.205128 | false | 0 | 0.179487 | 0.102564 | 0.564103 | 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 |
7fbc9893df6a85e240e852b2066dc92401bbd51b | 203 | py | Python | utils/winNumCounter.py | feelool007/Lotto1224 | fd360fad7260fd9022c8f71d6f48a79f59266b72 | [
"MIT"
] | null | null | null | utils/winNumCounter.py | feelool007/Lotto1224 | fd360fad7260fd9022c8f71d6f48a79f59266b72 | [
"MIT"
] | null | null | null | utils/winNumCounter.py | feelool007/Lotto1224 | fd360fad7260fd9022c8f71d6f48a79f59266b72 | [
"MIT"
] | null | null | null | def winNumCounter(results) -> dict:
t = dict()
for r in results:
for n in r:
try:
t[n] += 1
except KeyError:
t[n] = 1
return t
| 20.3 | 35 | 0.403941 | 25 | 203 | 3.28 | 0.56 | 0.04878 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.502463 | 203 | 9 | 36 | 22.555556 | 0.792079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7fbeabbf1ad635c7e341a9ec66b98eb9fba32663 | 1,321 | py | Python | integration_tests/lcd_gov.py | cloutier/terra.py | 55e0f9c6a643f6f208eb686b397aafa3d1009629 | [
"MIT"
] | null | null | null | integration_tests/lcd_gov.py | cloutier/terra.py | 55e0f9c6a643f6f208eb686b397aafa3d1009629 | [
"MIT"
] | null | null | null | integration_tests/lcd_gov.py | cloutier/terra.py | 55e0f9c6a643f6f208eb686b397aafa3d1009629 | [
"MIT"
] | null | null | null | from terra_sdk.client.lcd import LCDClient, PaginationOptions
def main():
terra = LCDClient(
url="https://lcd.terra.dev/",
chain_id="columbus-5",
)
pagOpt = PaginationOptions(limit=2, count_total=True)
# result = terra.gov.proposals()
# print("whole proposals", result)
# resu... | 26.959184 | 62 | 0.653293 | 156 | 1,321 | 5.49359 | 0.346154 | 0.166861 | 0.212369 | 0.210035 | 0.392065 | 0.229872 | 0.107351 | 0.107351 | 0 | 0 | 0 | 0.03071 | 0.211204 | 1,321 | 48 | 63 | 27.520833 | 0.791747 | 0.536715 | 0 | 0.25 | 0 | 0 | 0.054237 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6805ffd96ecfa106d9cd501746c7e411ec60cab | 265 | py | Python | qxlc/util/slimit_filter.py | daboross/qxlc | dba9ab6bb4d962a4b98c69a4350d9e208164aed2 | [
"Apache-2.0"
] | 2 | 2015-01-11T11:53:53.000Z | 2016-07-30T02:01:46.000Z | qxlc/util/slimit_filter.py | daboross/qxlc | dba9ab6bb4d962a4b98c69a4350d9e208164aed2 | [
"Apache-2.0"
] | 1 | 2015-01-06T06:04:21.000Z | 2015-01-06T10:58:16.000Z | qxlc/util/slimit_filter.py | daboross/qxlc | dba9ab6bb4d962a4b98c69a4350d9e208164aed2 | [
"Apache-2.0"
] | 1 | 2021-09-05T15:04:57.000Z | 2021-09-05T15:04:57.000Z | from slimit import minify
from webassets.filter import Filter
class SlimitFilter(Filter):
name = 'slimit'
def output(self, _in, out, **kwargs):
out.write(minify(_in.read()))
def input(self, _in, out, **kwargs):
out.write(_in.read())
| 20.384615 | 41 | 0.645283 | 35 | 265 | 4.771429 | 0.514286 | 0.071856 | 0.107784 | 0.179641 | 0.275449 | 0.275449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215094 | 265 | 12 | 42 | 22.083333 | 0.802885 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f689084168d382e27697c8c26761c6c8b59be52a | 1,680 | py | Python | MindLink-Eumpy/data_collection_framework/util/face_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 7 | 2020-11-19T14:34:50.000Z | 2022-02-26T14:16:50.000Z | MindLink-Eumpy/data_collection_framework/util/face_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 1 | 2021-08-20T07:30:32.000Z | 2021-09-01T07:20:14.000Z | MindLink-Eumpy/data_collection_framework/util/face_record.py | Breeze1in1drizzle/MindLink-Exploring | 24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59 | [
"MIT"
] | 2 | 2021-07-20T08:59:14.000Z | 2021-08-10T08:03:56.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 18 10:56:13 2018
@author: Yongrui Huang
"""
import sys
sys.path.append('../')
from data_collection_framework.util import record
import cv2
# class FacialExpressionRecorder(record.AbstractRecorder)
class FacialExpressionRecorder(record.AbstractRecorder):
'''
... | 31.698113 | 83 | 0.647619 | 218 | 1,680 | 4.889908 | 0.509174 | 0.042214 | 0.056285 | 0.143527 | 0.041276 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015953 | 0.291071 | 1,680 | 52 | 84 | 32.307692 | 0.879093 | 0.604762 | 0 | 0 | 0 | 0 | 0.006198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.230769 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
f68b0a4ea2f569c4681dc198049f3a923e6b4126 | 522 | py | Python | avaliacoes/api/viewsets.py | RodrigoMachado9/django-api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | 1 | 2020-06-29T21:14:43.000Z | 2020-06-29T21:14:43.000Z | avaliacoes/api/viewsets.py | RodrigoMachado9/django_api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | 1 | 2020-06-22T01:54:45.000Z | 2020-06-22T01:54:45.000Z | avaliacoes/api/viewsets.py | RodrigoMachado9/django_api | 65d61f5cd8e2ca4552af8d5bec9c862ce49b07b8 | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ModelViewSet
from avaliacoes.models import Avaliacao
from .serializers import AvaliacaoSerializer
class AvaliacaoViewSet(ModelViewSet):
"""
A simple ViewSet for viewing and editing accounts.
"""
# todo > object = manager , view convesando com model
# peg... | 34.8 | 85 | 0.745211 | 60 | 522 | 6.45 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204981 | 522 | 14 | 86 | 37.285714 | 0.93253 | 0.421456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
f68e2a66cd8c6d28d5ebe364d116efa4648efeb4 | 301 | py | Python | modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/rodrigo_portal_gun/main.py | drigols/Studies | 9c293156935b491ded24be6b511daac67fd43538 | [
"MIT"
] | null | null | null | modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/rodrigo_portal_gun/main.py | drigols/Studies | 9c293156935b491ded24be6b511daac67fd43538 | [
"MIT"
] | null | null | null | modules/python-codes/modules/tips-and-tricks/cli-with-typer/modules/rodrigo-portal-gun/rodrigo_portal_gun/main.py | drigols/Studies | 9c293156935b491ded24be6b511daac67fd43538 | [
"MIT"
] | null | null | null | import typer
app = typer.Typer()
@app.callback()
def callback():
"""
Awesome Portal Gun
"""
@app.command()
def shoot():
"""
Shoot the portal gun
"""
typer.echo("Shooting portal gun")
@app.command()
def load():
"""
Load the portal gun
"""
typer.echo("Loading portal gun")
| 10.75 | 35 | 0.601329 | 38 | 301 | 4.763158 | 0.394737 | 0.248619 | 0.132597 | 0.209945 | 0.475138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222591 | 301 | 27 | 36 | 11.148148 | 0.773504 | 0.196013 | 0 | 0.2 | 0 | 0 | 0.177885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | 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 |
f69058fd0e41dce13763f362b70ed13cabe60dbe | 603 | py | Python | semmc-fuzzer/fuzzermon/fuzzermon/main/migrations/0014_auto_20180730_1809.py | pnwamk/semmc | f0765fdf6c7bb7348e0225aea3f2969a82d79f1f | [
"BSD-3-Clause"
] | 33 | 2018-07-15T20:43:17.000Z | 2021-04-05T18:02:13.000Z | semmc-fuzzer/fuzzermon/fuzzermon/main/migrations/0014_auto_20180730_1809.py | pnwamk/semmc | f0765fdf6c7bb7348e0225aea3f2969a82d79f1f | [
"BSD-3-Clause"
] | 27 | 2018-08-17T21:34:31.000Z | 2022-01-24T21:18:09.000Z | semmc-fuzzer/fuzzermon/fuzzermon/main/migrations/0014_auto_20180730_1809.py | pnwamk/semmc | f0765fdf6c7bb7348e0225aea3f2969a82d79f1f | [
"BSD-3-Clause"
] | 6 | 2019-10-29T18:47:24.000Z | 2021-07-02T13:16:11.000Z | # Generated by Django 2.0.7 on 2018-07-30 18:09
from django.db import migrations
class Migration(migrations.Migration):
atomic = False
dependencies = [
('main', '0013_auto_20180730_1808'),
]
operations = [
migrations.RenameModel(
old_name='TestFailure',
new_n... | 22.333333 | 47 | 0.578773 | 54 | 603 | 6.296296 | 0.685185 | 0.185294 | 0.211765 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075426 | 0.318408 | 603 | 26 | 48 | 23.192308 | 0.751825 | 0.074627 | 0 | 0.3 | 1 | 0 | 0.197842 | 0.041367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f6e0ad06f87e9df94e673db9af3a5f1b4ad877f8 | 268 | py | Python | leetCode/algorithms/easy/find_subsequence_of_length_k_with_the_largest_sum.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 25 | 2015-01-21T16:39:18.000Z | 2021-05-24T07:01:24.000Z | leetCode/algorithms/easy/find_subsequence_of_length_k_with_the_largest_sum.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 2 | 2020-09-30T19:39:36.000Z | 2020-10-01T17:15:16.000Z | leetCode/algorithms/easy/find_subsequence_of_length_k_with_the_largest_sum.py | ferhatelmas/algo | a7149c7a605708bc01a5cd30bf5455644cefd04d | [
"WTFPL"
] | 15 | 2015-01-21T16:39:27.000Z | 2020-10-01T17:00:22.000Z | from operator import itemgetter
from typing import List
class Solution:
def maxSubsequence(self, nums: List[int], k: int) -> List[int]:
tops = sorted((n, i) for i, n in enumerate(nums))[-k:]
return [n for n, i in sorted(tops, key=itemgetter(1))]
| 29.777778 | 67 | 0.652985 | 42 | 268 | 4.166667 | 0.571429 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.212687 | 268 | 8 | 68 | 33.5 | 0.824645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
f6e6d4416de9db78763b0e5c9440bbb10ce33433 | 238 | py | Python | dynamic_subdomains/urls.py | Oksamies/django-dynamic-subdomains-ai | bd2f19270a62c680a61cd501692907d6298ba18c | [
"BSD-3-Clause"
] | 6 | 2015-02-25T20:04:33.000Z | 2020-11-27T19:06:46.000Z | dynamic_subdomains/urls.py | Oksamies/django-dynamic-subdomains-ai | bd2f19270a62c680a61cd501692907d6298ba18c | [
"BSD-3-Clause"
] | 1 | 2015-01-15T10:54:45.000Z | 2016-02-26T17:41:26.000Z | dynamic_subdomains/urls.py | Oksamies/django-dynamic-subdomains-ai | bd2f19270a62c680a61cd501692907d6298ba18c | [
"BSD-3-Clause"
] | 3 | 2016-01-11T12:42:57.000Z | 2020-09-20T03:54:36.000Z | from django.conf.urls import patterns, url
from debug_toolbar.urls import _PREFIX
urlpatterns = patterns('dynamic_subdomains.views',
url(r'^%s/subdomain/redirect/$' % _PREFIX, 'redirect',
name='debug-subdomain-redirect'),
)
| 26.444444 | 58 | 0.731092 | 29 | 238 | 5.862069 | 0.655172 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134454 | 238 | 8 | 59 | 29.75 | 0.825243 | 0 | 0 | 0 | 0 | 0 | 0.336134 | 0.302521 | 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 |
f6f0b6d3c5406497edfbfca04d7999901b2cbe57 | 3,927 | py | Python | transformers/debug.py | denjiry/camxes-py | 31ea188e9a8603a95a1379fcce174c2a93b6497c | [
"MIT"
] | null | null | null | transformers/debug.py | denjiry/camxes-py | 31ea188e9a8603a95a1379fcce174c2a93b6497c | [
"MIT"
] | null | null | null | transformers/debug.py | denjiry/camxes-py | 31ea188e9a8603a95a1379fcce174c2a93b6497c | [
"MIT"
] | null | null | null |
# pylint: disable=I0011, C0111, no-self-use, invalid-name
import re
from parsimonious.nodes import NodeVisitor
from parsimonious_ext.expression_nodes import LITERAL, REGEX
from transformers.camxes_morphology import is_selmaho_expression
def _is_consonant(name):
return re.match(r"^[bcdfghjklmnpqrstvxz]$", name)... | 27.65493 | 70 | 0.667431 | 486 | 3,927 | 5.166667 | 0.170782 | 0.100757 | 0.174034 | 0.091597 | 0.479092 | 0.428515 | 0.428515 | 0.397053 | 0.397053 | 0.354042 | 0 | 0.002678 | 0.239368 | 3,927 | 141 | 71 | 27.851064 | 0.837965 | 0.014006 | 0 | 0.357143 | 0 | 0 | 0.008532 | 0.005946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.316327 | false | 0 | 0.040816 | 0.214286 | 0.77551 | 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 |
100563f2a31e62ae4e2bc491216a03f612d0e929 | 122 | py | Python | run.py | herrniemand/Flask-U2F-DEMO | ccfa4dcb52f2014057629ea922118656488d3231 | [
"MIT"
] | 8 | 2016-09-04T15:32:10.000Z | 2019-01-11T08:45:00.000Z | run.py | herrniemand/U2F-Flask-Demo | ccfa4dcb52f2014057629ea922118656488d3231 | [
"MIT"
] | 20 | 2016-06-07T09:47:57.000Z | 2019-01-11T09:22:56.000Z | run.py | herrniemand/U2F-Flask-Demo | ccfa4dcb52f2014057629ea922118656488d3231 | [
"MIT"
] | 1 | 2018-10-17T18:40:04.000Z | 2018-10-17T18:40:04.000Z | #!/usr/bin/env python
from app import app
context = ('domain.crt', 'domain.key')
app.run(debug=True, ssl_context=context) | 24.4 | 40 | 0.729508 | 20 | 122 | 4.4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098361 | 122 | 5 | 40 | 24.4 | 0.8 | 0.163934 | 0 | 0 | 0 | 0 | 0.196078 | 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 |
63e09ce3088436ecdc76d9c063d2449241cdf6d8 | 104 | py | Python | django/bitcoin_monitor/apps.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 1 | 2020-01-01T15:54:45.000Z | 2020-01-01T15:54:45.000Z | django/bitcoin_monitor/apps.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | 13 | 2019-02-28T03:24:54.000Z | 2021-09-22T17:50:00.000Z | django/bitcoin_monitor/apps.py | chanhosuh/bitcoin-monitor | acecfcf020cf2debfdf3a2e8c446007d7412d8e1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BitcoinMonitorConfig(AppConfig):
name = 'bitcoin_monitor'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 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 |
63eed340dd525d9ec2cab9873b47e093464e5b92 | 429 | py | Python | utils/temperature.py | MasterOdin/Python-Utils | e91444ee4c55ef758b67bf10a55af753444c4e42 | [
"Unlicense"
] | null | null | null | utils/temperature.py | MasterOdin/Python-Utils | e91444ee4c55ef758b67bf10a55af753444c4e42 | [
"Unlicense"
] | null | null | null | utils/temperature.py | MasterOdin/Python-Utils | e91444ee4c55ef758b67bf10a55af753444c4e42 | [
"Unlicense"
] | null | null | null | def celsius_to_fahrenheit(degrees):
"""
Given a temperature in celsius, return it in fahrenheit
:param degrees:
:return:
"""
return (degrees * 1.8) + 32.
def fahrenheit_to_celsius(degrees):
"""
Given a temperature in fahrenheit, return it in celsius
:param degrees:
:return:
... | 18.652174 | 59 | 0.62704 | 51 | 429 | 5.039216 | 0.411765 | 0.093385 | 0.101167 | 0.18677 | 0.44358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025237 | 0.261072 | 429 | 22 | 60 | 19.5 | 0.785489 | 0.379953 | 0 | 0 | 0 | 0 | 0.03653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 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 |
63f2229ef2e70ec0e7f825977fa1f7181ddfce76 | 328 | py | Python | list_order.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | list_order.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | list_order.py | joshavenue/python_notebook | 8d46ba88ef4f05dea6801364bc134edb981df02e | [
"Unlicense"
] | null | null | null | x = list(range(0,20,1) // From 0 till 20, add 1 by 1
print(x[::2]) // Print x list in multiplication of 2
print(x[2::]) // Print x list beginning from index number 2
print(x[2:6:1]) // Print x list beginning from index no. 2 till index no.6 with multiplying power ... | 41 | 119 | 0.564024 | 57 | 328 | 3.245614 | 0.403509 | 0.194595 | 0.151351 | 0.12973 | 0.432432 | 0.432432 | 0 | 0 | 0 | 0 | 0 | 0.085586 | 0.323171 | 328 | 7 | 120 | 46.857143 | 0.747748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
63f5e1e570ca7e009fad096b496483900f3b033b | 298 | py | Python | Ex090.py | LC-ardovino/CursoEmVideo | 7f7967f3d2837d734ed74bd86aea79bb437012b9 | [
"MIT"
] | null | null | null | Ex090.py | LC-ardovino/CursoEmVideo | 7f7967f3d2837d734ed74bd86aea79bb437012b9 | [
"MIT"
] | null | null | null | Ex090.py | LC-ardovino/CursoEmVideo | 7f7967f3d2837d734ed74bd86aea79bb437012b9 | [
"MIT"
] | null | null | null | aluno = dict()
aluno['Nome'] = str(input("Digite o nome: "))
aluno['Nota'] = float(input(f"A nota do aluno {aluno['Nome']}:"))
if aluno['média'] >= 7:
aluno['Situação'] = 'Aprovado.'
elif 5 <= aluno['média'] < 7:
aluno['Situação'] = 'Recuperação.'
else:
aluno['Situação'] = 'Reprovado.' | 33.111111 | 65 | 0.597315 | 39 | 298 | 4.564103 | 0.564103 | 0.219101 | 0.123596 | 0.179775 | 0.269663 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011952 | 0.157718 | 298 | 9 | 66 | 33.111111 | 0.697211 | 0 | 0 | 0 | 0 | 0 | 0.401338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 3 |
12138154e7547dc4c6f68ff5a5e8ae4cc66e3d85 | 376 | py | Python | src/encoded/tests/test_upgrade_sc_atac_library_complexity_quality_metric.py | ENCODE-DCC/encoded | 77688076259af7441a9ffc3e3104f115c988d8e9 | [
"MIT"
] | 102 | 2015-05-20T01:17:43.000Z | 2022-03-07T06:03:55.000Z | src/encoded/tests/test_upgrade_sc_atac_library_complexity_quality_metric.py | ENCODE-DCC/encoded | 77688076259af7441a9ffc3e3104f115c988d8e9 | [
"MIT"
] | 901 | 2015-01-07T23:11:57.000Z | 2022-03-18T13:56:12.000Z | src/encoded/tests/test_upgrade_sc_atac_library_complexity_quality_metric.py | ENCODE-DCC/encoded | 77688076259af7441a9ffc3e3104f115c988d8e9 | [
"MIT"
] | 65 | 2015-02-06T23:00:26.000Z | 2022-01-22T07:58:44.000Z | import pytest
def test_sc_atac_library_complexity_quality_metric_1_2(upgrader, sc_atac_library_complexity_quality_metric_1):
value = upgrader.upgrade('sc_atac_library_complexity_quality_metric', sc_atac_library_complexity_quality_metric_1, current_version='1', target_version='2')
assert 'pct_duplicate_reads' ... | 47 | 159 | 0.848404 | 55 | 376 | 5.236364 | 0.454545 | 0.083333 | 0.180556 | 0.319444 | 0.510417 | 0.510417 | 0.385417 | 0 | 0 | 0 | 0 | 0.017544 | 0.090426 | 376 | 7 | 160 | 53.714286 | 0.824561 | 0 | 0 | 0 | 0 | 0 | 0.218085 | 0.109043 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 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 |
1215793c9e78dcb8b182e46968afc2e957f7bee6 | 1,484 | py | Python | applications/CompressiblePotentialFlowApplication/python_scripts/potential_flow_analysis.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/CompressiblePotentialFlowApplication/python_scripts/potential_flow_analysis.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/CompressiblePotentialFlowApplication/python_scripts/potential_flow_analysis.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | # Importing Kratos
import KratosMultiphysics
# Importing the base class
from KratosMultiphysics.analysis_stage import AnalysisStage
class PotentialFlowAnalysis(AnalysisStage):
'''Main script for potential flow simulations.'''
def _CreateSolver(self):
if self.project_parameters["solver_settings"]["sol... | 67.454545 | 169 | 0.783019 | 153 | 1,484 | 7.294118 | 0.300654 | 0.128136 | 0.13172 | 0.169355 | 0.610215 | 0.544803 | 0.544803 | 0.390681 | 0.293907 | 0.134409 | 0 | 0 | 0.128706 | 1,484 | 21 | 170 | 70.666667 | 0.863109 | 0.057951 | 0 | 0 | 0 | 0 | 0.189073 | 0.015816 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
1231ea3217f81ebd466799163d2e399a1a8a22af | 394 | py | Python | ProjectEuler/056.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | ProjectEuler/056.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | ProjectEuler/056.py | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | '''
Author: tusikalanse
Date: 2021-07-10 18:12:09
LastEditTime: 2021-07-10 18:12:09
LastEditors: tusikalanse
Description:
'''
'''
Author: tusikalanse
Date: 2021-07-10 18:12:08
LastEditTime: 2021-07-10 18:12:09
LastEditors: tusikalanse
Description:
'''
ans = 0
for i in range(1, 100):
for j in range(100):
... | 17.909091 | 48 | 0.659898 | 64 | 394 | 4.0625 | 0.453125 | 0.092308 | 0.123077 | 0.153846 | 0.715385 | 0.715385 | 0.707692 | 0.707692 | 0.453846 | 0.453846 | 0 | 0.198758 | 0.182741 | 394 | 22 | 49 | 17.909091 | 0.608696 | 0.296954 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
12320863e7506c79ded4cb130094c5a081180222 | 1,154 | py | Python | app/cartographic_transformations.py | ondrej-tucek/city-pollution | ade55184bc3f5ef74de59d4f4c1437ba96b083f3 | [
"0BSD"
] | null | null | null | app/cartographic_transformations.py | ondrej-tucek/city-pollution | ade55184bc3f5ef74de59d4f4c1437ba96b083f3 | [
"0BSD"
] | null | null | null | app/cartographic_transformations.py | ondrej-tucek/city-pollution | ade55184bc3f5ef74de59d4f4c1437ba96b083f3 | [
"0BSD"
] | null | null | null | """
This file contains cartographic transformations.
For more details see page
http://freegis.fsv.cvut.cz/gwiki/S-JTSK
"""
from pyproj import Proj, transform
def jtsk_to_wgs84(x, y):
"""
Return tuple (lon, lat) coordinates.
Use:
x, y = -868208.53, -1095793.57
lon, lat = jtsk_to_wgs84(x, ... | 24.041667 | 94 | 0.614385 | 180 | 1,154 | 3.883333 | 0.416667 | 0.020029 | 0.030043 | 0.034335 | 0.39485 | 0.309013 | 0.309013 | 0.309013 | 0.309013 | 0.309013 | 0 | 0.127517 | 0.225303 | 1,154 | 47 | 95 | 24.553191 | 0.654362 | 0.462738 | 0 | 0.444444 | 0 | 0.222222 | 0.453875 | 0.177122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
12411ebc966efcd52e587e1c7fbff5d49f000ea1 | 197 | py | Python | iseteam/pictures/urls.py | R3SWebDevelopment/iseteam | 4f0e74a14f45b263a3d9fdab554bd21540fd4e22 | [
"MIT"
] | null | null | null | iseteam/pictures/urls.py | R3SWebDevelopment/iseteam | 4f0e74a14f45b263a3d9fdab554bd21540fd4e22 | [
"MIT"
] | null | null | null | iseteam/pictures/urls.py | R3SWebDevelopment/iseteam | 4f0e74a14f45b263a3d9fdab554bd21540fd4e22 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from iseteam.parties.views import post, view
urlpatterns = patterns('iseteam.pictures.views',
url(r'^upload/$','upload', name ="upload"),
) | 21.888889 | 51 | 0.730964 | 26 | 197 | 5.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116751 | 197 | 9 | 52 | 21.888889 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.217172 | 0.111111 | 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 |
12450fe723496912f16eb2aa157bc3241500cd80 | 469 | py | Python | pygame_gui/core/drawable_shapes/__init__.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 339 | 2019-10-30T01:42:23.000Z | 2022-03-31T06:11:18.000Z | pygame_gui/core/drawable_shapes/__init__.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 236 | 2019-10-15T18:33:06.000Z | 2022-03-03T19:18:09.000Z | pygame_gui/core/drawable_shapes/__init__.py | glipR/pygame_gui | 0cbf7056518377b455d51a8d20167f4029756ad9 | [
"MIT"
] | 55 | 2019-11-02T09:19:56.000Z | 2022-01-21T18:48:24.000Z | from pygame_gui.core.drawable_shapes.drawable_shape import DrawableShape
from pygame_gui.core.drawable_shapes.rect_drawable_shape import RectDrawableShape
from pygame_gui.core.drawable_shapes.rounded_rect_drawable_shape import RoundedRectangleShape
from pygame_gui.core.drawable_shapes.ellipse_drawable_shape import Elli... | 46.9 | 93 | 0.82516 | 49 | 469 | 7.489796 | 0.326531 | 0.108992 | 0.141689 | 0.185286 | 0.337875 | 0.337875 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119403 | 469 | 9 | 94 | 52.111111 | 0.88862 | 0 | 0 | 0 | 0 | 0 | 0.151386 | 0.044776 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1257e93ddf15056db1057462425b8a8fdcbaa7f8 | 30 | py | Python | __init__.py | cppisgood/FriendRatingRPC | e9ec0a0efc6ecae3f6dce2b07a0391df64531236 | [
"MIT"
] | null | null | null | __init__.py | cppisgood/FriendRatingRPC | e9ec0a0efc6ecae3f6dce2b07a0391df64531236 | [
"MIT"
] | null | null | null | __init__.py | cppisgood/FriendRatingRPC | e9ec0a0efc6ecae3f6dce2b07a0391df64531236 | [
"MIT"
] | null | null | null | __all__ = ['proto', 'service'] | 30 | 30 | 0.633333 | 3 | 30 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0.387097 | 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 |
125b8d4feecd253bef0a3a9ed176d0730479370b | 179 | py | Python | subpixelEdges 2.13/pa.py | yunswj/subpixel | 8a6d3edf1568ad868567bb73c942fd9cc4b87ae2 | [
"MIT"
] | null | null | null | subpixelEdges 2.13/pa.py | yunswj/subpixel | 8a6d3edf1568ad868567bb73c942fd9cc4b87ae2 | [
"MIT"
] | null | null | null | subpixelEdges 2.13/pa.py | yunswj/subpixel | 8a6d3edf1568ad868567bb73c942fd9cc4b87ae2 | [
"MIT"
] | null | null | null | from scihub import SciHub
sh = SciHub()
results = sh.download(
'https://www.sciencedirect.com/science/article/abs/pii/S0262885612001850?via%3Dihub', path='paper.pdf')
| 25.571429 | 108 | 0.72067 | 23 | 179 | 5.608696 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109677 | 0.134078 | 179 | 6 | 109 | 29.833333 | 0.722581 | 0 | 0 | 0 | 0 | 0.25 | 0.526012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1265b7980c393ad9c816e3c72e2ec9a7d40d7fbe | 701 | py | Python | inqry/system_specs/diskutil.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 37 | 2017-05-12T02:32:26.000Z | 2019-05-03T14:43:08.000Z | inqry/system_specs/diskutil.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 11 | 2017-08-27T03:36:18.000Z | 2018-10-28T01:31:12.000Z | inqry/system_specs/diskutil.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 15 | 2019-06-13T11:29:12.000Z | 2022-02-28T06:40:14.000Z | import re
import shlex
import subprocess
BASE_COMMAND = '/usr/sbin/diskutil'
def get_all_physical_ids(diskutil_list_output=None):
diskutil_list_output = diskutil_list_output or list_all()
pattern = re.compile(r'(/dev/disk\d+)')
return re.findall(pattern, diskutil_list_output)
def get_disk_info(disk_id)... | 26.961538 | 79 | 0.766049 | 99 | 701 | 5.050505 | 0.383838 | 0.096 | 0.144 | 0.114 | 0.234 | 0.234 | 0.164 | 0 | 0 | 0 | 0 | 0.001626 | 0.122682 | 701 | 25 | 80 | 28.04 | 0.811382 | 0 | 0 | 0 | 0 | 0 | 0.0699 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
89c9381352ccf123d55e13d79a2925d2cf9f4594 | 56 | py | Python | cbe/cbe/customer/__init__.py | cdaf/cbe | 7945a3fad11ae4612e22163094571ac9157dca7f | [
"Apache-2.0"
] | 3 | 2019-02-26T19:54:51.000Z | 2021-03-23T02:57:02.000Z | cbe/cbe/customer/__init__.py | cdaf/cbe | 7945a3fad11ae4612e22163094571ac9157dca7f | [
"Apache-2.0"
] | 6 | 2016-12-23T02:11:21.000Z | 2018-09-30T18:50:59.000Z | cbe/cbe/customer/__init__.py | cdaf/cbe | 7945a3fad11ae4612e22163094571ac9157dca7f | [
"Apache-2.0"
] | 4 | 2017-02-11T04:40:52.000Z | 2020-10-12T22:22:54.000Z | default_app_config = 'cbe.customer.apps.CustomerConfig'
| 28 | 55 | 0.839286 | 7 | 56 | 6.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 56 | 1 | 56 | 56 | 0.849057 | 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 |
89c95d95c60f0b509f940b4b81a889f5b6f918c0 | 212 | py | Python | LCOF/11-20/20/20.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | LCOF/11-20/20/20.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | LCOF/11-20/20/20.py | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | import re
class Solution(object):
def isNumber(self, s):
"""
:type s: str
:rtype: bool
"""
return bool(re.match('^[+-]?(\d*\.?\d*|\d+\.)([eE][+-]?\d+)?$', s.strip())) | 21.2 | 83 | 0.419811 | 25 | 212 | 3.56 | 0.72 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.292453 | 212 | 10 | 83 | 21.2 | 0.593333 | 0.117925 | 0 | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
89cdcafedad236deb81c6438efaf07fed31397c6 | 271 | py | Python | emotionreader/emotionreader/views.py | dave5801/emotion-reader | 7d5c305563d5f3b962d8d8aaaab0443217964edc | [
"MIT"
] | 2 | 2017-12-08T17:03:41.000Z | 2017-12-18T16:41:07.000Z | emotionreader/emotionreader/views.py | dave5801/emotion-reader | 7d5c305563d5f3b962d8d8aaaab0443217964edc | [
"MIT"
] | 28 | 2017-12-16T04:48:13.000Z | 2022-03-11T23:11:53.000Z | emotionreader/emotionreader/views.py | dave5801/emotion-reader | 7d5c305563d5f3b962d8d8aaaab0443217964edc | [
"MIT"
] | 1 | 2018-01-09T01:52:22.000Z | 2018-01-09T01:52:22.000Z | """Views."""
from django.views.generic import TemplateView
class HomeView(TemplateView):
"""Home page view."""
template_name = 'emotionreader/home.html'
class AboutView(TemplateView):
"""The about view."""
template_name = 'emotionreader/about.html'
| 18.066667 | 46 | 0.697417 | 29 | 271 | 6.448276 | 0.62069 | 0.128342 | 0.171123 | 0.31016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158672 | 271 | 14 | 47 | 19.357143 | 0.820175 | 0.140221 | 0 | 0 | 0 | 0 | 0.21659 | 0.21659 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
89d0789fcb981b8082c1ace4faad2aa5f6f23ce5 | 13,318 | py | Python | sdk/python/pulumi_vault/identity/group_policies.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-10-07T17:44:18.000Z | 2022-03-30T20:46:33.000Z | sdk/python/pulumi_vault/identity/group_policies.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 79 | 2019-10-11T18:13:07.000Z | 2022-03-31T21:09:41.000Z | sdk/python/pulumi_vault/identity/group_policies.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-28T10:08:40.000Z | 2020-03-17T14:20:55.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 36.587912 | 196 | 0.601592 | 1,439 | 13,318 | 5.359277 | 0.111188 | 0.088434 | 0.061722 | 0.042142 | 0.759077 | 0.724066 | 0.696966 | 0.660529 | 0.64834 | 0.627593 | 0 | 0.00053 | 0.291335 | 13,318 | 363 | 197 | 36.688705 | 0.816593 | 0.345622 | 0 | 0.570552 | 1 | 0 | 0.085033 | 0.005598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153374 | false | 0.006135 | 0.030675 | 0 | 0.276074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89dd9421cd78db396acf299a14b0e6dc0d367712 | 127 | py | Python | papergit/config/__init__.py | jameshruby/paper-to-git | ac7e79c76e336aee621549bd397e4459b2a0379f | [
"Apache-2.0"
] | 78 | 2017-03-02T18:45:00.000Z | 2021-08-08T06:18:03.000Z | papergit/config/__init__.py | jameshruby/paper-to-git | ac7e79c76e336aee621549bd397e4459b2a0379f | [
"Apache-2.0"
] | 13 | 2017-03-18T21:23:02.000Z | 2018-09-18T06:12:11.000Z | papergit/config/__init__.py | jameshruby/paper-to-git | ac7e79c76e336aee621549bd397e4459b2a0379f | [
"Apache-2.0"
] | 12 | 2017-06-20T01:26:01.000Z | 2021-09-10T19:25:08.000Z | """Configuration package."""
from papergit.config.config import BaseConfig
__all__ = [
'config'
]
config = BaseConfig()
| 12.7 | 45 | 0.700787 | 12 | 127 | 7.083333 | 0.666667 | 0.282353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165354 | 127 | 9 | 46 | 14.111111 | 0.801887 | 0.173228 | 0 | 0 | 0 | 0 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
89e8991f9fb0e840a3f0b8f873de235262bc6495 | 287 | py | Python | codility.com/Max slice problem/o(n).py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | codility.com/Max slice problem/o(n).py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | codility.com/Max slice problem/o(n).py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | def golden_max_slice(arr):
max_ending = max_slice = 0
for a in arr:
max_ending = max(0, max_ending + a)
max_slice = max(max_slice, max_ending)
print(max_ending, max_slice)
return max_slice
a = [5, -7, 3, 5, -2, 4, -1]
print(golden_max_slice(arr=a))
| 23.916667 | 46 | 0.623693 | 50 | 287 | 3.3 | 0.36 | 0.339394 | 0.218182 | 0.206061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042056 | 0.254355 | 287 | 11 | 47 | 26.090909 | 0.728972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.222222 | 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 |
89f7c39f2237da07f99f2156aaf7bd1c0ce8c17b | 157 | py | Python | hello/__init__.py | RGupta6586/Buildbot_TCS | de3be93a97eda0870826784ca3259ffa035e46b2 | [
"MIT"
] | null | null | null | hello/__init__.py | RGupta6586/Buildbot_TCS | de3be93a97eda0870826784ca3259ffa035e46b2 | [
"MIT"
] | null | null | null | hello/__init__.py | RGupta6586/Buildbot_TCS | de3be93a97eda0870826784ca3259ffa035e46b2 | [
"MIT"
] | null | null | null | """hello world module"""
def hello(who):
"""function that greats"""
return "hello " + who
def test(d):
"""TCS test function"""
return d
| 12.076923 | 30 | 0.566879 | 20 | 157 | 4.45 | 0.6 | 0.179775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261147 | 157 | 12 | 31 | 13.083333 | 0.767241 | 0.363057 | 0 | 0 | 0 | 0 | 0.072289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
d624b61833caa355dab9745a8f26918a446388af | 452 | py | Python | zconnect/_messages/__init__.py | zconnect-iot/zconnect-django | 5c569f54f100e23d72e2ac4de795739ea461a431 | [
"MIT"
] | 2 | 2018-08-19T16:16:39.000Z | 2019-06-11T02:23:50.000Z | zconnect/_messages/__init__.py | zconnect-iot/zconnect-django | 5c569f54f100e23d72e2ac4de795739ea461a431 | [
"MIT"
] | 2 | 2018-07-05T09:51:54.000Z | 2018-07-06T13:12:04.000Z | zconnect/_messages/__init__.py | zconnect-iot/zconnect-django | 5c569f54f100e23d72e2ac4de795739ea461a431 | [
"MIT"
] | null | null | null | # pylint: disable=wildcard-import,unused-wildcard-import
from .sender import * # noqa
from .listener import * # noqa
from .bases import * # noqa
from .broker_interfaces.ibm import * # noqa
from .message import * # noqa
from .schemas import * # noqa
__all__ = [
"get_sender",
"get_listener",
"Handler... | 20.545455 | 56 | 0.661504 | 49 | 452 | 5.877551 | 0.44898 | 0.208333 | 0.243056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214602 | 452 | 21 | 57 | 21.52381 | 0.811268 | 0.185841 | 0 | 0 | 0 | 0 | 0.3 | 0.116667 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d652f930f8e95668ae254b0eab6897f3ecf3efff | 532 | py | Python | tests/mock_protocol.py | skivis/BlackSheep | 486f04ba2045f31dd3e188f52c45a275eb150967 | [
"MIT"
] | 482 | 2018-12-20T09:30:23.000Z | 2021-02-08T18:34:16.000Z | tests/mock_protocol.py | skivis/BlackSheep | 486f04ba2045f31dd3e188f52c45a275eb150967 | [
"MIT"
] | 125 | 2021-02-15T09:29:51.000Z | 2022-03-25T19:48:23.000Z | tests/mock_protocol.py | skivis/BlackSheep | 486f04ba2045f31dd3e188f52c45a275eb150967 | [
"MIT"
] | 27 | 2021-03-20T16:17:58.000Z | 2022-03-02T19:37:42.000Z | import asyncio
class MockContext:
def __init__(self):
self.connections = []
class MockProtocol(asyncio.Protocol):
def __init__(self, context: MockContext):
self.context = context
context.connections.append(self)
def data_received(self, data):
pass
def eof_received(s... | 17.16129 | 45 | 0.62782 | 58 | 532 | 5.517241 | 0.413793 | 0.109375 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.289474 | 532 | 30 | 46 | 17.733333 | 0.846561 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0.3 | 0.05 | 0 | 0.55 | 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 |
c3968a598c0017126fda24ea12acd727d06d8c31 | 506 | py | Python | problems/leetcode.com/first-bad-version/first-bad-version.py | 9oelM/rdsa | 939821fbb13229b1ea9c95997654386da7abdbac | [
"MIT"
] | null | null | null | problems/leetcode.com/first-bad-version/first-bad-version.py | 9oelM/rdsa | 939821fbb13229b1ea9c95997654386da7abdbac | [
"MIT"
] | null | null | null | problems/leetcode.com/first-bad-version/first-bad-version.py | 9oelM/rdsa | 939821fbb13229b1ea9c95997654386da7abdbac | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/first-bad-version/
# The isBadVersion API is already defined for you.
def isBadVersion(version: int) -> bool:
pass
class Solution:
def search(self, left: int, right: int) -> int:
if left == right:
return left
middle = (left + right) // 2
if isBadVersion(... | 26.631579 | 51 | 0.628458 | 66 | 506 | 4.818182 | 0.5 | 0.09434 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007916 | 0.250988 | 506 | 18 | 52 | 28.111111 | 0.831135 | 0.1917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0 | 0.076923 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c3a4b1467a1c6d4e32f0fb3c6f8cbe18536f3c42 | 989 | py | Python | MoinMoin/datastruct/backends/config_dicts.py | RealTimeWeb/wikisite | 66a22c68c172f0ebb3c88a9885ccd33e2d59c3c5 | [
"Apache-2.0"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/config_dicts.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 3 | 2020-06-26T21:21:32.000Z | 2020-06-26T21:21:36.000Z | Documentation/ManualSource/wikicmd/MoinMoin/datastruct/backends/config_dicts.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 2 | 2017-01-25T20:06:44.000Z | 2021-03-25T18:39:55.000Z | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - config dict backend
The config group backend enables you to define dicts in a configuration file.
@copyright: 2009 MoinMoin:DmitrijsMilajevs
@license: GPL, see COPYING for details
"""
from MoinMoin.datastruct.backends import BaseDict, BaseDictsBackend, DictDoesNotExistErro... | 24.725 | 90 | 0.709808 | 117 | 989 | 5.692308 | 0.495727 | 0.108108 | 0.054054 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011436 | 0.204247 | 989 | 39 | 91 | 25.358974 | 0.834816 | 0.222447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0.055556 | 0.055556 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
c3a9c069de23693f939b1e2ef62743ef93870141 | 4,663 | py | Python | src/pageviews.py | ashwinnimhan/Wikipedia-EDA | e04bebeb5c5365da4051f7521e772d282e882916 | [
"Apache-2.0"
] | null | null | null | src/pageviews.py | ashwinnimhan/Wikipedia-EDA | e04bebeb5c5365da4051f7521e772d282e882916 | [
"Apache-2.0"
] | null | null | null | src/pageviews.py | ashwinnimhan/Wikipedia-EDA | e04bebeb5c5365da4051f7521e772d282e882916 | [
"Apache-2.0"
] | null | null | null | from pyspark.sql.functions import col
from pyspark.sql.functions import *
from pyspark.sql import SQLContext, Row
from pyspark import SparkContext, SparkConf
sc = SparkContext()
sqlContext = SQLContext(sc)
sc.setLogLevel("ERROR")
raw_data = sc.textFile("/wiki/pageviews-by-second-tsv")
header = raw_data.first()
data2 ... | 53.597701 | 260 | 0.462149 | 447 | 4,663 | 4.794183 | 0.250559 | 0.035931 | 0.041064 | 0.061596 | 0.429771 | 0.366309 | 0.243584 | 0.211853 | 0.211853 | 0.211853 | 0 | 0.0132 | 0.057688 | 4,663 | 86 | 261 | 54.22093 | 0.474511 | 0.023804 | 0 | 0.26087 | 0 | 0 | 0.561566 | 0.362577 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057971 | null | null | 0.449275 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
c3ba999d3c75e981dc376f9af8a1361a781d1e36 | 563 | py | Python | terse/ReportGenerator/ReportGenerator.py | talipovm/Terse | e6bfd3ac0d411b18d5167019623d5451695e787c | [
"MIT"
] | 2 | 2015-04-08T21:28:35.000Z | 2015-04-08T23:25:04.000Z | terse/ReportGenerator/ReportGenerator.py | talipovm/Terse | e6bfd3ac0d411b18d5167019623d5451695e787c | [
"MIT"
] | null | null | null | terse/ReportGenerator/ReportGenerator.py | talipovm/Terse | e6bfd3ac0d411b18d5167019623d5451695e787c | [
"MIT"
] | 1 | 2015-04-08T21:29:22.000Z | 2015-04-08T21:29:22.000Z | import logging
log = logging.getLogger(__name__)
from ReportGenerator.Job import Job
from ReportGenerator.Top_ReportGenerator import Top_ReportGenerator
class ReportGenerator(Top_ReportGenerator):
def __init__(self, processed):
super().__init__(we=self.settings.Engine3D(),parsed=processed)
def prepa... | 25.590909 | 70 | 0.690941 | 72 | 563 | 5.138889 | 0.472222 | 0.145946 | 0.178378 | 0.091892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002222 | 0.20071 | 563 | 21 | 71 | 26.809524 | 0.82 | 0 | 0 | 0.133333 | 0 | 0 | 0.005329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.133333 | 0.2 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c3c265969c3ce33b581050824b1ce24987af6e0a | 1,223 | py | Python | Tests/test_ook_parser.py | faragoa/sendook | aaee5a2c3a0cea212d571358b9bfc0a472265202 | [
"Apache-2.0"
] | null | null | null | Tests/test_ook_parser.py | faragoa/sendook | aaee5a2c3a0cea212d571358b9bfc0a472265202 | [
"Apache-2.0"
] | null | null | null | Tests/test_ook_parser.py | faragoa/sendook | aaee5a2c3a0cea212d571358b9bfc0a472265202 | [
"Apache-2.0"
] | null | null | null | from sendook import parse_code
import pytest
# TESTS pytest
def test_parse_code_none_expectempty():
code = None
assert(parse_code(code) == [])
def test_parse_code_empty_expectempty():
code = ""
assert(parse_code(code) == [])
def test_parse_code_one1():
assert(parse_code("1") == [[1, 1]])
de... | 22.648148 | 118 | 0.686836 | 149 | 1,223 | 5.322148 | 0.228188 | 0.249685 | 0.151324 | 0.201765 | 0.313997 | 0.271122 | 0.138714 | 0.138714 | 0 | 0 | 0 | 0.159647 | 0.165168 | 1,223 | 53 | 119 | 23.075472 | 0.617042 | 0.009812 | 0 | 0.2 | 0 | 0 | 0.167907 | 0.148883 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.333333 | false | 0 | 0.066667 | 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 |
c3ce6486a42a32ee7668d28ad85823f176b3fea1 | 182 | py | Python | src/api/run_server.py | franloza/contratosdemadrid | eb93e62c74d5ef741b1e0f12cedab4cc53236a70 | [
"MIT"
] | null | null | null | src/api/run_server.py | franloza/contratosdemadrid | eb93e62c74d5ef741b1e0f12cedab4cc53236a70 | [
"MIT"
] | null | null | null | src/api/run_server.py | franloza/contratosdemadrid | eb93e62c74d5ef741b1e0f12cedab4cc53236a70 | [
"MIT"
] | null | null | null | import uvicorn
def run_server(**kwargs):
uvicorn.run(**kwargs)
if __name__ == '__main__':
from api.app.asgi import app
run_server(app=app, host="0.0.0.0", port=9000)
| 16.545455 | 50 | 0.664835 | 29 | 182 | 3.827586 | 0.586207 | 0.054054 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0.175824 | 182 | 10 | 51 | 18.2 | 0.686667 | 0 | 0 | 0 | 0 | 0 | 0.082418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.333333 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c3f8a0f6b37f2b807f028d4bf4190e7d398ab072 | 242 | py | Python | Python3/0893-Groups-of-Special-Equivalent-Strings/soln-2.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0893-Groups-of-Special-Equivalent-Strings/soln-2.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0893-Groups-of-Special-Equivalent-Strings/soln-2.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def numSpecialEquivGroups(self, A: List[str]) -> int:
def encode(s):
odds, evens = s[1::2], s[::2]
return ''.join(sorted(evens) + sorted(odds))
return len(set(encode(s) for s in A))
| 34.571429 | 57 | 0.549587 | 34 | 242 | 3.911765 | 0.647059 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017341 | 0.285124 | 242 | 6 | 58 | 40.333333 | 0.751445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7f129d23aa48bc4e6916f84ed98982382ece0cfc | 51 | py | Python | codewof/programming/content/en/add-10/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/add-10/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/add-10/solution.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | number = int(input("Number: "))
print(number + 10)
| 17 | 31 | 0.647059 | 7 | 51 | 4.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.137255 | 51 | 2 | 32 | 25.5 | 0.704545 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
613acd4e95e0bfada3aac5785924b560770f0567 | 585 | py | Python | rastachimp/utils.py | gvellut/rastachimp | 9c3e58e80f95d73322b0f8b323cd341574451373 | [
"MIT"
] | 6 | 2019-11-04T13:42:52.000Z | 2021-12-10T00:31:22.000Z | rastachimp/utils.py | gvellut/rastachimp | 9c3e58e80f95d73322b0f8b323cd341574451373 | [
"MIT"
] | null | null | null | rastachimp/utils.py | gvellut/rastachimp | 9c3e58e80f95d73322b0f8b323cd341574451373 | [
"MIT"
] | null | null | null | from rtree import Rtree
from shapely.geometry import shape
def set_geom(f, geom):
return (geom, f[1])
def as_shapely(fs):
return (set_geom(f, shape(f[0])) for f in fs)
def extract_geoms(fs):
return [f[0] for f in fs]
def build_spatial_index(geometries):
spatial_index = Rtree()
for g, geom in... | 17.727273 | 49 | 0.65812 | 95 | 585 | 3.957895 | 0.389474 | 0.12766 | 0.042553 | 0.031915 | 0.069149 | 0.069149 | 0.069149 | 0 | 0 | 0 | 0 | 0.006711 | 0.235897 | 585 | 32 | 50 | 18.28125 | 0.834452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 0.7 | 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 |
615b6441fb904bebb7c7d1bd3f817006515479cb | 126 | py | Python | configs/mmocr/text-recognition/text-recognition_onnxruntime_static.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | configs/mmocr/text-recognition/text-recognition_onnxruntime_static.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | configs/mmocr/text-recognition/text-recognition_onnxruntime_static.py | zhiqwang/mmdeploy | 997d111a6f4ca9624ab3b36717748e6ce002037d | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | _base_ = [
'./text-recognition_static.py', '../../_base_/backends/onnxruntime.py'
]
onnx_config = dict(input_shape=None)
| 21 | 74 | 0.690476 | 15 | 126 | 5.333333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 126 | 5 | 75 | 25.2 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.507937 | 0.507937 | 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 |
617fc40b503adec2583296288f06d70edbd90c18 | 286 | py | Python | routing/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 7 | 2021-09-03T12:18:52.000Z | 2021-09-07T09:53:14.000Z | routing/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 4 | 2021-09-04T09:00:11.000Z | 2021-09-22T07:26:17.000Z | routing/app.py | Throttlerz-devs/flask-tutorial | 09e1ad364c73ffba4e698592219d448865c6b31a | [
"MIT"
] | 6 | 2021-09-03T14:37:33.000Z | 2021-09-03T21:46:25.000Z | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'This is Index Page'
@app.route('/login')
def login():
return 'This is Login Page'
@app.route('/hello')
def hello():
return 'Hello, World'
if __name__=="__main__":
app.run(debug=True) | 15.888889 | 31 | 0.646853 | 41 | 286 | 4.219512 | 0.487805 | 0.138728 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 286 | 18 | 32 | 15.888889 | 0.739316 | 0 | 0 | 0 | 0 | 0 | 0.240418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.230769 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
61a7f64537b8219ade31d5f9c146f37092742a72 | 119 | py | Python | abc142_d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc142_d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc142_d.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | A, B = map(int, input().split())
def gcd(a, b):
# 最大公約数
if b == 0:
return a
return gcd(b, a % b)
| 13.222222 | 32 | 0.453782 | 21 | 119 | 2.571429 | 0.571429 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.361345 | 119 | 8 | 33 | 14.875 | 0.697368 | 0.042017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 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 |
61a917337892e92a81d5ce121ba47bf66c542a78 | 121 | py | Python | Day 2/Number_Manipulation_and_F_strings.py | hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021 | 5340007d8405df2e29643b47d3ff9fa4f7af9e10 | [
"Unlicense"
] | null | null | null | Day 2/Number_Manipulation_and_F_strings.py | hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021 | 5340007d8405df2e29643b47d3ff9fa4f7af9e10 | [
"Unlicense"
] | null | null | null | Day 2/Number_Manipulation_and_F_strings.py | hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021 | 5340007d8405df2e29643b47d3ff9fa4f7af9e10 | [
"Unlicense"
] | null | null | null | print(round(8/3))
print(8//3)
counter=0
winning=False
print(f"The counter is {counter} and the winning is {winning}")
| 15.125 | 63 | 0.710744 | 22 | 121 | 3.909091 | 0.545455 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.132231 | 121 | 8 | 64 | 15.125 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.434426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 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 |
61b93215bde59f25f68a0bfdc30b76aea54be7bc | 647 | py | Python | domain/entities/customer.py | lukehassel/hotel_management | 8094a5d7743d0ca4049d1ecb16f9d110cb509d3f | [
"MIT"
] | null | null | null | domain/entities/customer.py | lukehassel/hotel_management | 8094a5d7743d0ca4049d1ecb16f9d110cb509d3f | [
"MIT"
] | null | null | null | domain/entities/customer.py | lukehassel/hotel_management | 8094a5d7743d0ca4049d1ecb16f9d110cb509d3f | [
"MIT"
] | null | null | null | from domain.entities.room.room import Room
class Customer:
customerId = ""
name = ""
room = Room()
hotel_visits = 0
def getRoom(self):
return self.room
def setRoom(self, room):
self.room = room
def setCustomerId(self, customerId: str):
self.customerId = customerI... | 19.606061 | 48 | 0.629057 | 75 | 647 | 5.36 | 0.333333 | 0.136816 | 0.139303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002155 | 0.282844 | 647 | 32 | 49 | 20.21875 | 0.864224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.045455 | 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 |
61c96048c4ef00b889e3e576d6926cb94e8c2d16 | 1,854 | py | Python | germanetpy/iliRecord.py | Germanet-sfs/germanetpy | 806c38084a71ffe190438af968716ad06b7c813d | [
"Apache-2.0"
] | 5 | 2020-05-29T20:40:36.000Z | 2022-01-06T13:34:42.000Z | germanetpy/iliRecord.py | Germanet-sfs/germanetpy | 806c38084a71ffe190438af968716ad06b7c813d | [
"Apache-2.0"
] | 3 | 2021-01-28T15:46:27.000Z | 2021-06-07T15:23:49.000Z | germanetpy/iliRecord.py | Germanet-sfs/germanetpy | 806c38084a71ffe190438af968716ad06b7c813d | [
"Apache-2.0"
] | 1 | 2021-07-19T18:47:51.000Z | 2021-07-19T18:47:51.000Z | class IliRecord:
def __init__(self, lexunit_id: str, ewnRelation: str, pwnWord: str, pwn20Id: str, pwn30Id: str, source: str,
pwn20synonyms: list, pwn20paraphrase: str = None):
"""
This class holds an ili record object. These store a mapping between a lexical unit and the correpond... | 30.393443 | 129 | 0.659655 | 205 | 1,854 | 5.790244 | 0.273171 | 0.075821 | 0.094356 | 0.048863 | 0.053917 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038405 | 0.269687 | 1,854 | 60 | 130 | 30.9 | 0.838257 | 0.269148 | 0 | 0.216216 | 0 | 0.027027 | 0.088165 | 0.07228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.27027 | false | 0 | 0 | 0.243243 | 0.540541 | 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 |
61ca93479ffe2267e24db01dbfbc17808de97d66 | 330 | py | Python | simulation/device/simulated/battery/lpdm_exception/lpdm_battery_charge_while_discharging.py | LBNL-ETA/LPDM | 3384a784b97e49cd7a801b758717a7107a51119f | [
"BSD-3-Clause-LBNL"
] | 2 | 2019-01-05T02:33:38.000Z | 2020-04-22T16:57:50.000Z | simulation/device/simulated/battery/lpdm_exception/lpdm_battery_charge_while_discharging.py | LBNL-ETA/LPDM | 3384a784b97e49cd7a801b758717a7107a51119f | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-04-17T18:13:08.000Z | 2021-04-23T22:40:23.000Z | simulation/device/simulated/battery/lpdm_exception/lpdm_battery_charge_while_discharging.py | LBNL-ETA/LPDM | 3384a784b97e49cd7a801b758717a7107a51119f | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-01-31T08:37:44.000Z | 2019-01-31T08:37:44.000Z | from device.base.lpdm_exception import LpdmBaseException
class LpdmBatteryChargeWhileDischarging(LpdmBaseException):
"""Attempted to charge battery while there is a load on it"""
def __init__(self, value="Attempt to charge the battery while it is currently discharging."):
LpdmBaseException.__init__(sel... | 47.142857 | 97 | 0.784848 | 39 | 330 | 6.410256 | 0.717949 | 0.064 | 0.104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 330 | 6 | 98 | 55 | 0.886525 | 0.166667 | 0 | 0 | 0 | 0 | 0.237918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4ede75ec5b3e7d5bd40f95355a904adf39f1d8a4 | 448 | py | Python | pytagcloud/colors.py | Warfields/PyTagCloud | 22b6cd1e6627a393fbc94653e6230aaf73e1396b | [
"BSD-3-Clause"
] | 204 | 2015-01-03T03:05:54.000Z | 2022-03-31T14:17:57.000Z | pytagcloud/colors.py | Warfields/PyTagCloud | 22b6cd1e6627a393fbc94653e6230aaf73e1396b | [
"BSD-3-Clause"
] | 8 | 2015-10-31T00:30:06.000Z | 2021-05-25T05:35:06.000Z | pytagcloud/colors.py | Warfields/PyTagCloud | 22b6cd1e6627a393fbc94653e6230aaf73e1396b | [
"BSD-3-Clause"
] | 75 | 2015-01-14T03:59:39.000Z | 2021-09-20T05:37:40.000Z | # -*- coding: utf-8 -*-
COLOR_SCHEMES = {
'oldschool': ((59,76,76), (125,140,116), (217,175,95), (127,92,70), (51,36,35)),
'citrus': ((34,51,49), (70,102,66), (153,142,61), (229,156,44), (255,116,37)),
'goldfish': ((229,106,0), (204,199,148), (153,145,124), (88,89,86),... | 56 | 97 | 0.444196 | 69 | 448 | 2.869565 | 0.797101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.441088 | 0.261161 | 448 | 7 | 98 | 64 | 0.1571 | 0.046875 | 0 | 0 | 0 | 0 | 0.072941 | 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 | 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 |
f6108bbff4cbb17db1a3b8c45d7d64ac846a6b71 | 231 | py | Python | dom_tree/exceptions.py | zhanghaobin/news-crawler | c8dd59790c8dd1d3eae2614faee0a5250dcf9db8 | [
"MIT"
] | 9 | 2020-03-21T06:44:10.000Z | 2020-03-21T14:00:55.000Z | dom_tree/exceptions.py | zhanghaobin/news-crawler | c8dd59790c8dd1d3eae2614faee0a5250dcf9db8 | [
"MIT"
] | null | null | null | dom_tree/exceptions.py | zhanghaobin/news-crawler | c8dd59790c8dd1d3eae2614faee0a5250dcf9db8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
class DOMTreeError(Exception):
"""
base exception object for package `dom_tree`
"""
class MultipleNodesError(DOMTreeError):
"""
more than 1 nodes found rather than expected 1
"""
| 16.5 | 50 | 0.632035 | 25 | 231 | 5.8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017143 | 0.242424 | 231 | 13 | 51 | 17.769231 | 0.811429 | 0.493506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
f612598ba492b7ea2249bcfc9293d84e36ffaca4 | 231 | py | Python | day_24/00_open_file/main.py | steveanlorn/python_bootcamp_100_days | e542df58406ecae54c76fc8d5cbe08b81243b92f | [
"MIT"
] | null | null | null | day_24/00_open_file/main.py | steveanlorn/python_bootcamp_100_days | e542df58406ecae54c76fc8d5cbe08b81243b92f | [
"MIT"
] | null | null | null | day_24/00_open_file/main.py | steveanlorn/python_bootcamp_100_days | e542df58406ecae54c76fc8d5cbe08b81243b92f | [
"MIT"
] | 1 | 2021-06-04T03:37:22.000Z | 2021-06-04T03:37:22.000Z | with open("files.txt", "r+") as file:
content = file.read()
print(content)
file.seek(0)
file.truncate()
new_content = int(content) + 1
file.write(str(new_content))
file.seek(0)
print(file.read())
| 17.769231 | 37 | 0.597403 | 33 | 231 | 4.121212 | 0.545455 | 0.242647 | 0.220588 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016949 | 0.233766 | 231 | 12 | 38 | 19.25 | 0.751412 | 0 | 0 | 0.222222 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
f6216d17ecb1c55308e64f10b5cd930f2e4b3c04 | 98 | py | Python | helper/unt/category.py | debiff/atum | 87a962bcea71e124783665026d71a64350eeec6e | [
"MIT"
] | null | null | null | helper/unt/category.py | debiff/atum | 87a962bcea71e124783665026d71a64350eeec6e | [
"MIT"
] | null | null | null | helper/unt/category.py | debiff/atum | 87a962bcea71e124783665026d71a64350eeec6e | [
"MIT"
] | null | null | null | from enum import Enum
class Category(Enum):
ARTICLE = 'text_article'
BOOK = 'text_book'
| 14 | 28 | 0.683673 | 13 | 98 | 5 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22449 | 98 | 6 | 29 | 16.333333 | 0.855263 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
f624ecc290a6cad9fd46590ff97a35f436c293f0 | 1,346 | py | Python | distributions/losses.py | aigagror/wasserstein-style-transfer | c947a716c9db5f9077d7d311adfebe80defeac16 | [
"MIT"
] | 81 | 2020-07-21T14:30:06.000Z | 2020-10-10T17:11:10.000Z | distributions/losses.py | n1ckfg/wasserstein-style-transfer | c947a716c9db5f9077d7d311adfebe80defeac16 | [
"MIT"
] | 9 | 2021-04-22T02:47:09.000Z | 2021-08-16T14:36:31.000Z | distributions/losses.py | aigagror/wasserstein-style-transfer | c947a716c9db5f9077d7d311adfebe80defeac16 | [
"MIT"
] | 14 | 2020-07-21T14:30:11.000Z | 2020-08-21T07:30:47.000Z | import tensorflow as tf
from absl import flags
from distributions import compute_wass_dist, compute_co_raw_m2_loss, compute_covar_loss, compute_mean_loss, \
compute_var_loss
FLAGS = flags.FLAGS
class NoOpLoss(tf.keras.losses.Loss):
def call(self, y_true, y_pred):
return tf.zeros(tf.shape(y_true)[0],... | 29.26087 | 112 | 0.703566 | 223 | 1,346 | 3.946188 | 0.197309 | 0.085227 | 0.088636 | 0.147727 | 0.552273 | 0.523864 | 0.510227 | 0.510227 | 0.480682 | 0.457955 | 0 | 0.02281 | 0.185736 | 1,346 | 45 | 113 | 29.911111 | 0.780109 | 0 | 0 | 0.275862 | 0 | 0 | 0.019316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.137931 | 0.724138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
f6256c425b4b8f1ffe1cfa818844442bef160f95 | 12,041 | py | Python | tests/test_utilities/test_state_machine.py | mteter-upenn/bacpypes | 88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6 | [
"MIT"
] | null | null | null | tests/test_utilities/test_state_machine.py | mteter-upenn/bacpypes | 88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6 | [
"MIT"
] | null | null | null | tests/test_utilities/test_state_machine.py | mteter-upenn/bacpypes | 88623988103a48a3f5c8dfd0eb0ca7ffa0bd82b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Test Utilities State Machine
----------------------------
"""
import unittest
from bacpypes.debugging import bacpypes_debugging, ModuleLogger
from ..state_machine import State, StateMachine, StateMachineGroup
from ..time_machine import reset_time_machine, run_time_ma... | 29.296837 | 83 | 0.656756 | 1,495 | 12,041 | 5.063545 | 0.080268 | 0.063408 | 0.050727 | 0.038838 | 0.809643 | 0.769353 | 0.71321 | 0.646896 | 0.565918 | 0.5214 | 0 | 0.01075 | 0.273814 | 12,041 | 410 | 84 | 29.368293 | 0.854986 | 0.17756 | 0 | 0.55814 | 0 | 0 | 0.061914 | 0.032383 | 0 | 0 | 0 | 0 | 0.35814 | 1 | 0.074419 | false | 0 | 0.023256 | 0 | 0.12093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
f643772b87ac763f1a6f738de7c18d86429a350c | 56 | py | Python | benderopt/__init__.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 66 | 2019-01-08T14:34:21.000Z | 2020-10-22T00:54:58.000Z | benderopt/__init__.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 4 | 2019-03-03T19:17:26.000Z | 2020-10-22T18:37:30.000Z | benderopt/__init__.py | tchar/benderopt | 83a6bbb9c5732f6232c1a1bbc971f8022a975a28 | [
"MIT"
] | 5 | 2019-04-29T03:28:54.000Z | 2020-10-22T19:45:40.000Z | from .minimizer import minimize
__all__ = ["minimize"]
| 14 | 31 | 0.75 | 6 | 56 | 6.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 56 | 3 | 32 | 18.666667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 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 |
f64a3fb8ca546184b499c5d4c65b1b2038e86ce2 | 20 | py | Python | tests/upnp/__init__.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 60 | 2018-09-14T18:57:38.000Z | 2022-02-19T18:16:24.000Z | tests/upnp/__init__.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 37 | 2018-09-04T08:51:11.000Z | 2022-02-21T01:36:21.000Z | tests/upnp/__init__.py | palfrey/Cohen3 | d5779b4cbcf736e12d0ccfd162238ac5c376bb0b | [
"MIT"
] | 16 | 2019-02-19T18:34:58.000Z | 2022-02-05T15:36:33.000Z | __author__ = 'ilya'
| 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 |
f65e3da4ef4045eec4729ada2ed68a2e051fcfd3 | 59 | py | Python | catatom2osm/__init__.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 8 | 2018-01-30T18:26:29.000Z | 2022-02-03T19:16:54.000Z | catatom2osm/__init__.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 99 | 2018-01-22T08:37:53.000Z | 2022-03-28T13:50:06.000Z | catatom2osm/__init__.py | OSM-es/CatAtom2Osm | 89394161b07c5dd7cd2843bce8f911b93796b33a | [
"BSD-2-Clause"
] | 9 | 2018-01-21T15:51:41.000Z | 2022-01-04T18:35:19.000Z | __version__ = '1.8.6'
from catatom2osm.__main__ import run
| 19.666667 | 36 | 0.779661 | 9 | 59 | 4.222222 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.118644 | 59 | 2 | 37 | 29.5 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0.084746 | 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 |
f67103bac3e04180b029fdace695af8873f6240f | 236 | py | Python | hansberger/datasets/signals.py | 097475/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 1 | 2019-04-03T13:44:38.000Z | 2019-04-03T13:44:38.000Z | hansberger/datasets/signals.py | 097475/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 4 | 2020-06-06T00:19:57.000Z | 2022-03-11T23:56:24.000Z | hansberger/datasets/signals.py | 097475/hansberger | bb4ba1cbc410e7242a12f841e447b4d68f4298f6 | [
"MIT"
] | 2 | 2019-04-17T09:23:32.000Z | 2019-05-03T10:38:16.000Z | from django.dispatch import receiver
from django.db.models import signals
from .models import Dataset
@receiver(signals.post_delete, sender=Dataset)
def submission_delete(sender, instance, **kwargs):
instance.source.delete(False)
| 26.222222 | 50 | 0.805085 | 31 | 236 | 6.064516 | 0.580645 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105932 | 236 | 8 | 51 | 29.5 | 0.890995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 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 |
f6753491818291a230aa02f0cbb1c9506341df80 | 23 | py | Python | cerebro/baseline/__init__.py | Jonathan-Livingston-Seagull/cerebro-dl | e4e215847187a9c3a4fa34192ac1809711b735f6 | [
"BSD-3-Clause"
] | null | null | null | cerebro/baseline/__init__.py | Jonathan-Livingston-Seagull/cerebro-dl | e4e215847187a9c3a4fa34192ac1809711b735f6 | [
"BSD-3-Clause"
] | null | null | null | cerebro/baseline/__init__.py | Jonathan-Livingston-Seagull/cerebro-dl | e4e215847187a9c3a4fa34192ac1809711b735f6 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'seagull'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 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 |
f67dbdcb027f02cb60bc05dc2ee6086d745e314c | 287 | py | Python | examples/full/app/api/__init__.py | rbw0/flask-journey | 6181f59a7b5eef6a85b86ce6ed7d03c91f6bd285 | [
"MIT"
] | 14 | 2018-03-10T05:55:04.000Z | 2018-06-18T09:14:53.000Z | examples/full/app/api/__init__.py | rbw/flask-journey | 6181f59a7b5eef6a85b86ce6ed7d03c91f6bd285 | [
"MIT"
] | 6 | 2018-03-11T01:24:08.000Z | 2018-03-12T16:13:44.000Z | examples/full/app/api/__init__.py | rbw/flask-journey | 6181f59a7b5eef6a85b86ce6ed7d03c91f6bd285 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app import factory
from app.core import journey
from .bundles import v1, server_info
def create_app():
app = factory.create_app(__name__)
journey.attach_bundle(v1)
journey.attach_bundle(server_info)
journey.init_app(app)
return app
| 16.882353 | 38 | 0.714286 | 41 | 287 | 4.731707 | 0.487805 | 0.072165 | 0.195876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.188153 | 287 | 16 | 39 | 17.9375 | 0.819742 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.