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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
daeeb10429a954984fa34fafdb24d779d3cd2376 | 203 | py | Python | smlogging.py | nooneisperfect/ReadYourMAPFile | 8afecd0eecb13b09211350bf6cea664401401154 | [
"MIT"
] | null | null | null | smlogging.py | nooneisperfect/ReadYourMAPFile | 8afecd0eecb13b09211350bf6cea664401401154 | [
"MIT"
] | null | null | null | smlogging.py | nooneisperfect/ReadYourMAPFile | 8afecd0eecb13b09211350bf6cea664401401154 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
INFO = 1
ERROR = 2
DEBUG = 4
#loglevel = DEBUG | INFO | ERROR
loglevel = ERROR
def log(level, *args):
if (loglevel & level) != 0:
print (" ".join(map(str, args)))
| 14.5 | 40 | 0.551724 | 28 | 203 | 4 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.261084 | 203 | 13 | 41 | 15.615385 | 0.713333 | 0.256158 | 0 | 0 | 0 | 0 | 0.006803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daf202d4163d6e7a0c819a189c55c6f4bf766c29 | 12,092 | py | Python | vilya/libs/consts.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 1,582 | 2015-01-05T02:41:44.000Z | 2022-03-30T20:03:22.000Z | vilya/libs/consts.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 66 | 2015-01-23T07:58:04.000Z | 2021-11-12T02:23:27.000Z | vilya/libs/consts.py | mubashshirjamal/code | d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382 | [
"BSD-3-Clause"
] | 347 | 2015-01-05T07:47:07.000Z | 2021-09-20T21:22:32.000Z | IGNORE_FILE_EXTS = (
'.tar', '.zip', '.rar', '.gz', '.bz', '.bz2',
'.bmp', '.jpeg', '.jpg', '.png', '.gif', '.svg', '.ico',
'.mp3', '.svn-base', '.swf', '.ttf', '.jar', '.fla' , '.flash', '.pdf',
'.wmv', '.asf', '.asx', '.rm', '.rmvb', '.mpg', '.mpeg', '.mpe', '.pcap',
'.3gp', '.mov', '.mp4', '.m4v'... | 54.224215 | 94 | 0.219319 | 629 | 12,092 | 4.198728 | 0.534181 | 0.045816 | 0.012117 | 0.031806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010943 | 0.644806 | 12,092 | 222 | 95 | 54.468468 | 0.603958 | 0.035643 | 0 | 0 | 0 | 0 | 0.214408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daf816f710073d707897bf437df49279e350b9d1 | 1,516 | py | Python | code/run/remote-server/admin_views.py | xianggenb/Android-Studio-Health-Monitor-App | 65d3eddd4382786b8dbb75be7383430ec7cc04cf | [
"MIT"
] | null | null | null | code/run/remote-server/admin_views.py | xianggenb/Android-Studio-Health-Monitor-App | 65d3eddd4382786b8dbb75be7383430ec7cc04cf | [
"MIT"
] | null | null | null | code/run/remote-server/admin_views.py | xianggenb/Android-Studio-Health-Monitor-App | 65d3eddd4382786b8dbb75be7383430ec7cc04cf | [
"MIT"
] | null | null | null | from admin_app_config import db
from models import (User, HazardSummary, HazardLocation)
from views.home_view import HomeView
from views.login_view import LoginView
from views.logout_view import LogoutView
from views.user_view import UserView
from views.mobile_view import (MobileLoginView, MobileView)
from views.user_d... | 38.871795 | 72 | 0.739446 | 185 | 1,516 | 5.913514 | 0.237838 | 0.073126 | 0.109689 | 0.036563 | 0.043876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164248 | 1,516 | 38 | 73 | 39.894737 | 0.863457 | 0.063325 | 0 | 0 | 0 | 0 | 0.103253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.407407 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dafaefb8351bc5759fafc0e5fb744fc034e50b0f | 1,593 | py | Python | GmailBot.py | umaimagit/EverydayTasksAutomation | f7624179e8868854335b1f48c8fbb4aee092f723 | [
"MIT"
] | null | null | null | GmailBot.py | umaimagit/EverydayTasksAutomation | f7624179e8868854335b1f48c8fbb4aee092f723 | [
"MIT"
] | null | null | null | GmailBot.py | umaimagit/EverydayTasksAutomation | f7624179e8868854335b1f48c8fbb4aee092f723 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 27 16:16:27 2019
@author: Umaima
"""
# Gmail automation with selenium
from selenium import webdriver
#from selenium.webdriver.common.keys import Keys
import time
class GmailBot:
def __init__(self, email, password):
self.email = email
self.password ... | 28.446429 | 172 | 0.642185 | 191 | 1,593 | 5.157068 | 0.439791 | 0.060914 | 0.103553 | 0.115736 | 0.126904 | 0.062944 | 0.062944 | 0 | 0 | 0 | 0 | 0.017143 | 0.231011 | 1,593 | 56 | 173 | 28.446429 | 0.786939 | 0.151915 | 0 | 0.117647 | 0 | 0.029412 | 0.166418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.205882 | 0.058824 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dafb6b3457c782b6b3d1bc00ee3e63485247d354 | 1,558 | py | Python | mntnr_hardware/__init__.py | wryfi/mntnr_hardware | 9883bd0f44f8f663f907a60ae69154dfa728bb66 | [
"BSD-3-Clause"
] | null | null | null | mntnr_hardware/__init__.py | wryfi/mntnr_hardware | 9883bd0f44f8f663f907a60ae69154dfa728bb66 | [
"BSD-3-Clause"
] | null | null | null | mntnr_hardware/__init__.py | wryfi/mntnr_hardware | 9883bd0f44f8f663f907a60ae69154dfa728bb66 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T22:05:30.000Z | 2018-08-28T22:05:30.000Z | from enumfields import Enum
class RackOrientation(Enum):
FRONT = 1
REAR = 2
class Labels:
FRONT = 'Front-facing'
REAR = 'Rear-facing'
class SwitchSpeed(Enum):
TEN = 10
ONE_HUNDRED = 100
GIGABIT = 1000
TEN_GIGABIT = 10000
FORTY_GIGABIT = 40000
class Labels:
... | 17.505618 | 45 | 0.549422 | 186 | 1,558 | 4.483871 | 0.354839 | 0.092326 | 0.043165 | 0.040767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092462 | 0.361361 | 1,558 | 88 | 46 | 17.704545 | 0.745729 | 0 | 0 | 0.164179 | 0 | 0 | 0.137997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.61194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9706d173549fd02601583bd3c49d038ae9b28229 | 4,264 | py | Python | troposphere_mate/associate/apigw.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | 10 | 2019-07-08T14:52:16.000Z | 2021-10-15T22:18:22.000Z | troposphere_mate/associate/apigw.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | 1 | 2019-07-08T00:36:50.000Z | 2019-07-08T00:36:50.000Z | troposphere_mate/associate/apigw.py | tsuttsu305/troposphere_mate-project | 15ee94cc913efb32bc991979efcad943c992074c | [
"MIT"
] | 2 | 2020-03-22T14:44:54.000Z | 2020-08-05T02:08:01.000Z | # -*- coding: utf-8 -*-
from troposphere_mate import Ref, GetAtt, Sub
from troposphere_mate import awslambda, apigateway
from ..core.associate_linker import Linker, x_depends_on_y, LinkerApi as LinkerApi_
from ..core.metadata import (
TROPOSPHERE_METADATA_FIELD_NAME,
ResourceLevelField,
initiate_default_re... | 38.414414 | 118 | 0.636257 | 410 | 4,264 | 6.353659 | 0.221951 | 0.048369 | 0.023033 | 0.025336 | 0.535125 | 0.493282 | 0.424184 | 0.352783 | 0.352783 | 0.352783 | 0 | 0.009431 | 0.278846 | 4,264 | 110 | 119 | 38.763636 | 0.837724 | 0.103659 | 0 | 0.25 | 0 | 0.013158 | 0.038616 | 0.023062 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0.052632 | 0.052632 | 0 | 0.197368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9708760b7e9f0aa6ad8dfa1d336f3da39e08b877 | 4,336 | py | Python | Project_2/connect4/TD_learning/connect4.py | ElchinValiyev/GameAI | bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e | [
"MIT"
] | null | null | null | Project_2/connect4/TD_learning/connect4.py | ElchinValiyev/GameAI | bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e | [
"MIT"
] | null | null | null | Project_2/connect4/TD_learning/connect4.py | ElchinValiyev/GameAI | bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import random
BOARDWIDTH = 7
BOARDHEIGHT = 6
EMPTY = 0
def make_autopct(values):
def my_autopct(pct):
if pct == 0:
return ""
else:
return '{p:.2f}% '.format(p=pct)
return my_autopct
def plotResults(red_wins, black_w... | 30.535211 | 119 | 0.593865 | 606 | 4,336 | 4.191419 | 0.245875 | 0.04252 | 0.056693 | 0.061417 | 0.274409 | 0.236614 | 0.187795 | 0.187795 | 0.187795 | 0.184252 | 0 | 0.022527 | 0.293589 | 4,336 | 141 | 120 | 30.751773 | 0.806725 | 0.153367 | 0 | 0.242424 | 0 | 0 | 0.035313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.030303 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97090a9f37e28443d908496d07bb569c45e1dad3 | 1,505 | py | Python | pyntcontrib/__init__.py | rags/pynt-contrib | 912315f2df9ea9b4b61abc923cad8807eed54cba | [
"MIT"
] | 5 | 2015-03-15T18:55:14.000Z | 2020-08-14T06:27:58.000Z | pyntcontrib/__init__.py | rags/pynt-contrib | 912315f2df9ea9b4b61abc923cad8807eed54cba | [
"MIT"
] | 6 | 2015-05-22T15:18:35.000Z | 2021-12-09T03:05:21.000Z | pyntcontrib/__init__.py | rags/pynt-contrib | 912315f2df9ea9b4b61abc923cad8807eed54cba | [
"MIT"
] | 4 | 2015-02-16T14:46:37.000Z | 2020-04-13T10:53:45.000Z | import contextlib
import os
from subprocess import check_call, CalledProcessError
import sys
from pynt import task
__license__ = "MIT License"
__contact__ = "http://rags.github.com/pynt-contrib/"
@contextlib.contextmanager
def safe_cd(path):
"""
Changes to a directory, yields, and changes back.
Additional... | 26.875 | 109 | 0.649169 | 195 | 1,505 | 4.866667 | 0.482051 | 0.031612 | 0.031612 | 0.044257 | 0.099052 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002558 | 0.220598 | 1,505 | 56 | 110 | 26.875 | 0.806479 | 0.300997 | 0 | 0.060606 | 0 | 0 | 0.08517 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.121212 | false | 0 | 0.151515 | 0 | 0.333333 | 0.121212 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9711a629050a939c28a3db2d3c7d8d16d134fd9a | 218 | py | Python | python/01/led_pwm_hw.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | 6 | 2022-03-05T02:36:57.000Z | 2022-03-12T12:31:27.000Z | python/01/led_pwm_hw.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | python/01/led_pwm_hw.py | matsujirushi/raspi_parts_kouryaku | 35cd6f34d21c5e3160636671175fa8d5aff2d4dc | [
"Apache-2.0"
] | null | null | null | import sys
import pigpio
LED_PIN = 12
LED_PWM_FREQUENCY = 8000
pwm_duty = float(sys.argv[1])
pi = pigpio.pi()
pi.set_mode(LED_PIN, pigpio.OUTPUT)
pi.hardware_PWM(LED_PIN, int(LED_PWM_FREQUENCY), int(pwm_duty * 1e6))
| 19.818182 | 69 | 0.761468 | 40 | 218 | 3.875 | 0.5 | 0.116129 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046632 | 0.114679 | 218 | 10 | 70 | 21.8 | 0.756477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9712796735b7c17f94f6fdb19d228e8dcd8a82af | 15,900 | py | Python | src/app.py | arashshams/dsci532-group3 | 814701de429448be93a43c61ac4a80a5b53a3c3b | [
"MIT"
] | null | null | null | src/app.py | arashshams/dsci532-group3 | 814701de429448be93a43c61ac4a80a5b53a3c3b | [
"MIT"
] | null | null | null | src/app.py | arashshams/dsci532-group3 | 814701de429448be93a43c61ac4a80a5b53a3c3b | [
"MIT"
] | null | null | null | import os
import dash
import dash_html_components as html
import dash_core_components as dcc
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output
import altair as alt
import geopandas as gpd
import pandas as pd
from datetime import datetime, date
import json
import plotly.express as px... | 29.887218 | 125 | 0.617296 | 1,820 | 15,900 | 5.198901 | 0.199451 | 0.020926 | 0.03234 | 0.010146 | 0.317375 | 0.206405 | 0.172902 | 0.15409 | 0.126823 | 0.097442 | 0 | 0.00847 | 0.257484 | 15,900 | 531 | 126 | 29.943503 | 0.792987 | 0 | 0 | 0.216783 | 0 | 0 | 0.206032 | 0.00255 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.006993 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
971aa8aac4cb17e5c53d9f68b166f52532d81380 | 922 | py | Python | py_hardway/ex7_s.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | py_hardway/ex7_s.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | py_hardway/ex7_s.py | missulmer/Pythonstudy | fc811570cafaa383ac98f489028583081932b3e5 | [
"CC0-1.0"
] | null | null | null | # study drills
# the next three lines print the quoted strings.
# where the %s appears it prints the variable defined in short quotes defined at the
# end of the line
print "Mary had a little lamb."
print "Its fleece was white as %s." 'snow'
print "And everywhere that Mary went."
# what did that do?
print "." * 10 ... | 25.611111 | 85 | 0.685466 | 159 | 922 | 3.974843 | 0.584906 | 0.023734 | 0.037975 | 0.031646 | 0.053797 | 0.053797 | 0 | 0 | 0 | 0 | 0 | 0.047288 | 0.220174 | 922 | 36 | 86 | 25.611111 | 0.831711 | 0.577007 | 0 | 0 | 0 | 0 | 0.255937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
971ad876b3a36a09f2892fb46e29564f2cd45225 | 35,238 | py | Python | GDSII_Library.py | UUhy/PythonGDSII | c49f8a0cc5359ca2d37f3d3fc3efcaea8135ea5b | [
"MIT"
] | 6 | 2016-08-27T13:59:45.000Z | 2021-09-08T16:36:35.000Z | GDSII_Library.py | UUhy/PythonGDSII | c49f8a0cc5359ca2d37f3d3fc3efcaea8135ea5b | [
"MIT"
] | null | null | null | GDSII_Library.py | UUhy/PythonGDSII | c49f8a0cc5359ca2d37f3d3fc3efcaea8135ea5b | [
"MIT"
] | 2 | 2020-06-06T14:55:33.000Z | 2022-02-22T19:50:20.000Z | #!/usr/bin/env ipython
import numpy as np
import re
import datetime as dt
import copy
from GDSII import GDSII
from GDSII_Structure import GDSII_Structure
class GDSII_Library(GDSII):
'''
GDSII_Library class : subclass of GDSII
GDSII Stream file format release 6.0
Library record
The librar... | 37.288889 | 160 | 0.564987 | 4,015 | 35,238 | 4.929016 | 0.114819 | 0.025013 | 0.019101 | 0.021122 | 0.473573 | 0.427438 | 0.358868 | 0.322486 | 0.285599 | 0.27044 | 0 | 0.032526 | 0.346501 | 35,238 | 944 | 161 | 37.32839 | 0.826863 | 0.056189 | 0 | 0.234104 | 0 | 0.008671 | 0.12639 | 0.034912 | 0 | 0 | 0.002432 | 0 | 0 | 0 | null | null | 0 | 0.017341 | null | null | 0.020231 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
971c7ffd1920be046081d64c4068fb513bfea59c | 6,063 | py | Python | python_code/data_scraping.py | brschneidE3/LegalNetworks | 79f91f9341a6fe2d6afe97c3ba7e14ca12f3f1d1 | [
"MIT"
] | 2 | 2016-06-30T21:32:00.000Z | 2016-07-06T06:39:39.000Z | python_code/data_scraping.py | brschneidE3/LegalNetworks | 79f91f9341a6fe2d6afe97c3ba7e14ca12f3f1d1 | [
"MIT"
] | 11 | 2016-08-23T01:12:49.000Z | 2016-08-26T13:58:01.000Z | python_code/data_scraping.py | brschneidE3/LegalNetworks | 79f91f9341a6fe2d6afe97c3ba7e14ca12f3f1d1 | [
"MIT"
] | 5 | 2016-06-30T15:29:15.000Z | 2020-05-26T22:38:24.000Z |
"""
ADD A DESCRIPTION OF WHAT THIS FILE IS FOR
"""
__author__ = 'brsch'
import helper_functions
import os
import time
import json
proj_cwd = os.path.dirname(os.getcwd())
data_dir = proj_cwd + r'/data'
# Unchanging courtlistener API info
site_dict_url = 'https://www.courtlistener.com/api/rest/v3/'
site_dict = helpe... | 39.37013 | 114 | 0.677552 | 805 | 6,063 | 4.804969 | 0.231056 | 0.064633 | 0.059721 | 0.064633 | 0.505429 | 0.444416 | 0.391934 | 0.347983 | 0.306618 | 0.28697 | 0 | 0.003224 | 0.232723 | 6,063 | 153 | 115 | 39.627451 | 0.828246 | 0.113475 | 0 | 0.333333 | 0 | 0 | 0.097985 | 0 | 0 | 0 | 0 | 0.006536 | 0 | 0 | null | null | 0.037037 | 0.049383 | null | null | 0.024691 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
971c8aed81f2203094ed8191af59c99c6964dc98 | 10,736 | py | Python | parser/team01/analizador_sintactico.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team01/analizador_sintactico.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | parser/team01/analizador_sintactico.py | susanliss/tytus | a613a2352cf4a1d0e90ce27bb346ab60ed8039cc | [
"MIT"
] | null | null | null | import ply.yacc as yacc
import tempfile
from analizador_lexico import tokens
from analizador_lexico import analizador
from Nodo import *
from expresiones import *
from instrucciones import *
from graphviz import *
# Asociación de operadores y precedencia
# precedence = (
# ('left','MAS'),
# ('left','DIVIDI... | 27.528205 | 99 | 0.509221 | 1,296 | 10,736 | 3.986883 | 0.124228 | 0.017805 | 0.048771 | 0.048771 | 0.43952 | 0.386298 | 0.301722 | 0.20418 | 0.141862 | 0.135862 | 0 | 0.017592 | 0.248137 | 10,736 | 389 | 100 | 27.598972 | 0.622522 | 0.340723 | 0 | 0.352941 | 0 | 0 | 0.164867 | 0.036806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203209 | false | 0 | 0.042781 | 0 | 0.251337 | 0.02139 | 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 | 0 | 0 | 0 | 0 | 1 |
971dc645e2ced44066eb4b268d9cd100e26f56b4 | 1,409 | py | Python | for_interfaces.py | cybermetabolism/devoji-to-gitcoin-bounty-oracle | b76db0f4e7912a9acb4affba442e062f68c67ed7 | [
"MIT"
] | null | null | null | for_interfaces.py | cybermetabolism/devoji-to-gitcoin-bounty-oracle | b76db0f4e7912a9acb4affba442e062f68c67ed7 | [
"MIT"
] | null | null | null | for_interfaces.py | cybermetabolism/devoji-to-gitcoin-bounty-oracle | b76db0f4e7912a9acb4affba442e062f68c67ed7 | [
"MIT"
] | null | null | null | html_code = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jekyll ui</title>
</head>
<body>
<h2>emoji language gitcoin bounty</h2>
<p>Please enter the emoji code here: </p>
<input type="button" value="🐛" id="button1"/>
<input type="button" value="🌟" id="button2"/>
<input... | 29.354167 | 111 | 0.661462 | 160 | 1,409 | 5.81875 | 0.3625 | 0.189044 | 0.064447 | 0.085929 | 0.522019 | 0.522019 | 0.47261 | 0.305048 | 0.305048 | 0.305048 | 0 | 0.034818 | 0.123492 | 1,409 | 48 | 112 | 29.354167 | 0.719028 | 0 | 0 | 0.355556 | 0 | 0.022222 | 0.986525 | 0.326241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
972062222623675ca73cdba1211933d67c4181f9 | 11,891 | py | Python | tests/model_test.py | gaganchhabra/appkernel | 91ead266929d6febf8597877ccf23d0efd5252c0 | [
"Apache-2.0"
] | 156 | 2018-05-08T23:46:54.000Z | 2021-09-14T11:23:26.000Z | tests/model_test.py | gaganchhabra/appkernel | 91ead266929d6febf8597877ccf23d0efd5252c0 | [
"Apache-2.0"
] | 5 | 2018-07-13T11:28:59.000Z | 2019-04-11T19:30:22.000Z | tests/model_test.py | gaganchhabra/appkernel | 91ead266929d6febf8597877ccf23d0efd5252c0 | [
"Apache-2.0"
] | 12 | 2018-07-12T15:07:28.000Z | 2020-10-25T06:32:44.000Z | import json
from decimal import Decimal
from pymongo import MongoClient
from appkernel import PropertyRequiredException
from appkernel.configuration import config
from appkernel.repository import mongo_type_converter_to_dict, mongo_type_converter_from_dict
from .utils import *
import pytest
from jsonschema import valid... | 40.583618 | 112 | 0.701623 | 1,539 | 11,891 | 5.221572 | 0.135802 | 0.046043 | 0.029866 | 0.034843 | 0.504107 | 0.433176 | 0.325411 | 0.251369 | 0.195869 | 0.186411 | 0 | 0.007251 | 0.153309 | 11,891 | 292 | 113 | 40.722603 | 0.790922 | 0.028677 | 0 | 0.217573 | 0 | 0 | 0.147513 | 0 | 0 | 0 | 0 | 0.003425 | 0.414226 | 1 | 0.079498 | false | 0.020921 | 0.037657 | 0 | 0.117155 | 0.09205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9721af62fd31f1b5a9a72e33e3238e99464538f0 | 7,212 | py | Python | mailchimp_marketing_asyncio/models/gallery_folder.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/gallery_folder.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | null | null | null | mailchimp_marketing_asyncio/models/gallery_folder.py | john-parton/mailchimp-asyncio | 3865ca0867bec8f537dc1e3256aa3a160c00f8a2 | [
"Apache-2.0"
] | 1 | 2022-03-09T14:52:22.000Z | 2022-03-09T14:52:22.000Z | # coding: utf-8
"""
Mailchimp Marketing API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 3.0.74
Contact: apihelp@mailchimp.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import... | 27.953488 | 120 | 0.573489 | 894 | 7,212 | 4.493289 | 0.1566 | 0.065721 | 0.113518 | 0.103062 | 0.491909 | 0.41648 | 0.382873 | 0.302465 | 0.170774 | 0.108539 | 0 | 0.024578 | 0.334304 | 7,212 | 257 | 121 | 28.062257 | 0.812122 | 0.401276 | 0 | 0.073395 | 1 | 0 | 0.051959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.165138 | false | 0 | 0.027523 | 0 | 0.330275 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9725f65f203a6a32df526e58f0caaeb41486158b | 487 | py | Python | messages/GetUserIdMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 2 | 2020-04-15T11:20:59.000Z | 2021-05-12T13:01:36.000Z | messages/GetUserIdMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-06-05T04:48:56.000Z | 2018-06-05T04:48:56.000Z | messages/GetUserIdMessage.py | zadjii/nebula | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | [
"MIT"
] | 1 | 2018-08-15T06:45:46.000Z | 2018-08-15T06:45:46.000Z | # last generated 2016-10-14 13:51:52.122000
from messages import BaseMessage
from msg_codes import GET_USER_ID as GET_USER_ID
__author__ = 'Mike'
class GetUserIdMessage(BaseMessage):
def __init__(self, username=None):
super(GetUserIdMessage, self).__init__()
self.type = GET_USER_ID
self.us... | 25.631579 | 48 | 0.700205 | 60 | 487 | 5.333333 | 0.583333 | 0.065625 | 0.084375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052493 | 0.217659 | 487 | 18 | 49 | 27.055556 | 0.787402 | 0.084189 | 0 | 0 | 1 | 0 | 0.027088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
972f2262e62a00a736dafb1cbb98d00cef0e6c23 | 3,851 | py | Python | emka_trans/accounts/forms.py | mmamica/ERP-system | 121648b1e4f8090d22a72a7bc01e6b08ab00f603 | [
"BSD-2-Clause"
] | null | null | null | emka_trans/accounts/forms.py | mmamica/ERP-system | 121648b1e4f8090d22a72a7bc01e6b08ab00f603 | [
"BSD-2-Clause"
] | 7 | 2020-02-11T23:36:31.000Z | 2022-03-11T23:37:53.000Z | emka_trans/accounts/forms.py | mmamica/ERP-system | 121648b1e4f8090d22a72a7bc01e6b08ab00f603 | [
"BSD-2-Clause"
] | 2 | 2018-10-31T12:03:19.000Z | 2019-02-09T10:53:09.000Z | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserChangeForm
from accounts.models import UserProfileInfo
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth import authenticate
import requests
from admin_app.models import Magazine
... | 40.114583 | 110 | 0.643989 | 411 | 3,851 | 5.931873 | 0.304136 | 0.040607 | 0.055373 | 0.051682 | 0.458573 | 0.436013 | 0.386382 | 0.312551 | 0.271534 | 0.182937 | 0 | 0.015578 | 0.216567 | 3,851 | 95 | 111 | 40.536842 | 0.792509 | 0 | 0 | 0.309859 | 0 | 0 | 0.202545 | 0.018696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042254 | false | 0.112676 | 0.112676 | 0 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
973eb1d05e72ed1e7c41e7cd5e67793fba52f7a6 | 765 | py | Python | p731_my_calendar_ii.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | p731_my_calendar_ii.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | p731_my_calendar_ii.py | feigaochn/leetcode | abf0877fae02aa9c2549051f0b68df0ace952512 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
class MyCalendarTwo:
def __init__(self):
self.events = []
def book(self, start, end):
"""
:type start: int
:type end: int
:rtype: bool
"""
events = self.events[::]
events.append((start, 1))
events.a... | 20.675676 | 34 | 0.503268 | 94 | 765 | 3.968085 | 0.5 | 0.128686 | 0.193029 | 0.075067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054435 | 0.351634 | 765 | 36 | 35 | 21.25 | 0.697581 | 0.103268 | 0 | 0 | 0 | 0 | 0.012403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0 | 0 | 0.217391 | 0.26087 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9740360c76da23f826c148848bf0d24e39e693ba | 446 | py | Python | tests/test_fixtures.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | tests/test_fixtures.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | tests/test_fixtures.py | khusrokarim/ward | f62bcb3a43d1589f28799d3db8e095c35ee28ca1 | [
"MIT"
] | null | null | null | from ward import expect, fixture, test
from ward.fixtures import Fixture, FixtureCache
@fixture
def exception_raising_fixture():
def i_raise_an_exception():
raise ZeroDivisionError()
return Fixture(fn=i_raise_an_exception)
@test("FixtureCache.cache_fixture can store and retrieve a single fixture")
... | 23.473684 | 75 | 0.755605 | 59 | 446 | 5.491525 | 0.457627 | 0.092593 | 0.141975 | 0.104938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154709 | 446 | 18 | 76 | 24.777778 | 0.859416 | 0 | 0 | 0 | 0 | 0 | 0.147982 | 0.058296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97416b0e9958cd86fc9e9dfc6f8bd4b6ecd45671 | 1,545 | py | Python | Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex02_digits.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex02_digits.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex02_digits.py | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | # Beispielprogramm für das Buch "Python Challenge"
#
# Copyright 2020 by Michael Inden
def count_digits(value):
if value < 0:
raise ValueError("value must be >= 0")
# rekursiver Abbruch
if value < 10:
return 1
# rekursiver Abstieg
return count_digits(value // 10) + 1
def count_... | 19.807692 | 53 | 0.673786 | 215 | 1,545 | 4.55814 | 0.223256 | 0.078571 | 0.10102 | 0.168367 | 0.721429 | 0.660204 | 0.555102 | 0.509184 | 0.509184 | 0.426531 | 0 | 0.052986 | 0.230421 | 1,545 | 77 | 54 | 20.064935 | 0.771236 | 0.125566 | 0 | 0.425 | 0 | 0 | 0.046234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175 | false | 0 | 0 | 0.075 | 0.4 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
974334bff6fa2781bd4fbb4ac48767a55e240df5 | 292 | py | Python | back_end/test/b64_decode.py | Wizard-J/Jsite | ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d | [
"MIT"
] | null | null | null | back_end/test/b64_decode.py | Wizard-J/Jsite | ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d | [
"MIT"
] | null | null | null | back_end/test/b64_decode.py | Wizard-J/Jsite | ddfe8deae0a9f3490b50ed4829d2563cfb6b3c1d | [
"MIT"
] | null | null | null | import base64
path = "E:\\project\\JSite\\front_end\\src\\statics\\img\\sidebar-bg.jpg"
with open(path,"rb") as f:
img = f.read()
# print(base64.b64encode(img))
encoded = base64.b64encode(img)
with open("./sidebar-bg-b64","wb") as coded:
coded.write(encoded)
| 20.857143 | 73 | 0.623288 | 42 | 292 | 4.309524 | 0.642857 | 0.099448 | 0.198895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.188356 | 292 | 14 | 74 | 20.857143 | 0.71308 | 0.09589 | 0 | 0 | 0 | 0 | 0.319392 | 0.243346 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
97451c8a926945504921c4da6535cc1264838b4f | 963 | py | Python | blockchain/settings.py | sdediego/blockchain-api-client | 0c9969aa9502ec148380c8b673e1f7bed49277e9 | [
"MIT"
] | 2 | 2021-01-07T11:11:15.000Z | 2021-05-01T06:27:19.000Z | blockchain/settings.py | sdediego/blockchain-api-client | 0c9969aa9502ec148380c8b673e1f7bed49277e9 | [
"MIT"
] | null | null | null | blockchain/settings.py | sdediego/blockchain-api-client | 0c9969aa9502ec148380c8b673e1f7bed49277e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
# Settings for Blockchain API project
# Configure Blockchain API resources
RESOURCES = {
'charts': 'BlockchainAPIChart',
'stats': 'BlockchainAPIStatistics',
'pools': 'BlockchainAPIPool',
}
# Blockchain Charts
CHARTS = [
# Bitcoin stats
'total-bitcoins',
... | 21.4 | 39 | 0.641745 | 95 | 963 | 6.505263 | 0.621053 | 0.063107 | 0.058252 | 0.10356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001305 | 0.204569 | 963 | 44 | 40 | 21.886364 | 0.805483 | 0.193146 | 0 | 0 | 0 | 0 | 0.627604 | 0.236979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
974b6b2e0a9b4e8f6e0f915190176e48f5988174 | 8,158 | py | Python | viterbi/viterbi.py | cornell-brg/xloops-bmarks | 2f91a5aad168882672a8f150fc59158575ae5923 | [
"BSD-3-Clause"
] | 3 | 2017-09-26T16:03:28.000Z | 2021-01-16T03:29:50.000Z | viterbi/viterbi.py | cornell-brg/xloops-bmarks | 2f91a5aad168882672a8f150fc59158575ae5923 | [
"BSD-3-Clause"
] | null | null | null | viterbi/viterbi.py | cornell-brg/xloops-bmarks | 2f91a5aad168882672a8f150fc59158575ae5923 | [
"BSD-3-Clause"
] | 1 | 2017-10-13T22:03:22.000Z | 2017-10-13T22:03:22.000Z | #! /usr/bin/python2.6
# Convolutional Encoder and Hard-Decision Viterbi Decoder
# Code and example inspired by the tutorial at
# http://home.netcom.com/~chip.f/viterbi/algrthms.html
import itertools
K = 3
RATE = 1.0/2
POLY = [7, 5]
#***************************************************************
# CONVOLUTIONAL ENC... | 31.137405 | 76 | 0.532483 | 1,280 | 8,158 | 3.366406 | 0.184375 | 0.022743 | 0.017405 | 0.012068 | 0.227199 | 0.186354 | 0.159202 | 0.130425 | 0.105825 | 0.099095 | 0 | 0.100256 | 0.281074 | 8,158 | 261 | 77 | 31.256705 | 0.634442 | 0.486761 | 0 | 0.144068 | 0 | 0 | 0.045816 | 0 | 0 | 0 | 0 | 0.003831 | 0 | 0 | null | null | 0 | 0.008475 | null | null | 0.110169 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
974ef1668585c1dbba3e00f269474755d4745745 | 1,309 | py | Python | models/user.py | wimp-project/backend | 3d091dfa587f437155e9bfde188cd9d22acffb1c | [
"Apache-2.0"
] | null | null | null | models/user.py | wimp-project/backend | 3d091dfa587f437155e9bfde188cd9d22acffb1c | [
"Apache-2.0"
] | null | null | null | models/user.py | wimp-project/backend | 3d091dfa587f437155e9bfde188cd9d22acffb1c | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import List
from sqlalchemy.orm import relationship
from app import db
from models import Feedback
@dataclass
class User(db.Model):
__tablename__ = 'user'
user_id: int = db.Column(db.Integer, primary_key=True)
name: str = db.Column(db.String(), nullable=Fa... | 25.173077 | 68 | 0.633308 | 158 | 1,309 | 5.075949 | 0.329114 | 0.079801 | 0.099751 | 0.081047 | 0.216958 | 0.119701 | 0.119701 | 0 | 0 | 0 | 0 | 0 | 0.262032 | 1,309 | 51 | 69 | 25.666667 | 0.830228 | 0 | 0 | 0 | 0 | 0 | 0.035905 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.071429 | 0.119048 | 0.02381 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9754b40821b519aeee669973156d970b18ef6f3b | 12,626 | py | Python | indicnlp/transliterate/unicode_transliterate.py | shubham303/indic_nlp_library | 9dfcd95bbb5ffaf6cd266dbe066926511f6486a1 | [
"MIT"
] | 432 | 2015-01-16T01:44:45.000Z | 2022-03-26T19:20:28.000Z | indicnlp/transliterate/unicode_transliterate.py | yuimo/indic_nlp_library | 1e0f224dcf9d00664e0435399b087a4c6f07787d | [
"MIT"
] | 47 | 2015-01-08T05:38:07.000Z | 2022-01-29T12:25:25.000Z | indicnlp/transliterate/unicode_transliterate.py | yuimo/indic_nlp_library | 1e0f224dcf9d00664e0435399b087a4c6f07787d | [
"MIT"
] | 146 | 2015-02-27T11:30:17.000Z | 2022-03-29T16:55:19.000Z | #
# Copyright (c) 2013-present, Anoop Kunchukuttan
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
#Program for text written in one Indic script to another based on Unicode mappings.
#
# @author Anoop Kunch... | 36.281609 | 158 | 0.55156 | 1,483 | 12,626 | 4.564396 | 0.260958 | 0.014478 | 0.014182 | 0.013296 | 0.187029 | 0.143153 | 0.118334 | 0.099719 | 0.074309 | 0.074309 | 0 | 0.035283 | 0.337795 | 12,626 | 347 | 159 | 36.386167 | 0.774309 | 0.304451 | 0 | 0.1875 | 0 | 0.005682 | 0.05034 | 0.00528 | 0 | 0 | 0.00751 | 0.011527 | 0 | 1 | 0.028409 | false | 0 | 0.039773 | 0 | 0.119318 | 0.005682 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9755655848e3645e82e46ee6f7430862891521dc | 2,141 | py | Python | teamscale_precommit_client/client_configuration_utils.py | cqse/teamscale-cli | d296867ea9841d5063ab0b4017f057f5ef865906 | [
"Apache-2.0"
] | 5 | 2017-09-10T15:53:47.000Z | 2022-03-28T19:17:16.000Z | teamscale_precommit_client/client_configuration_utils.py | cqse/teamscale-cli | d296867ea9841d5063ab0b4017f057f5ef865906 | [
"Apache-2.0"
] | 8 | 2019-11-04T11:37:12.000Z | 2021-09-01T12:44:53.000Z | teamscale_precommit_client/client_configuration_utils.py | cqse/teamscale-cli | d296867ea9841d5063ab0b4017f057f5ef865906 | [
"Apache-2.0"
] | 4 | 2017-07-13T11:33:08.000Z | 2021-05-19T08:14:58.000Z | from teamscale_client.teamscale_client_config import TeamscaleClientConfig
def get_teamscale_client_configuration(config_file):
"""Gets a Teamscale client configuration from the provided config file or a config file in the user's home dir
or both combined. This allows users to separate their credentials (e.g.... | 46.543478 | 120 | 0.734703 | 266 | 2,141 | 5.612782 | 0.315789 | 0.150703 | 0.060281 | 0.126591 | 0.310784 | 0.262559 | 0.262559 | 0.223711 | 0.223711 | 0.223711 | 0 | 0 | 0.222793 | 2,141 | 45 | 121 | 47.577778 | 0.897236 | 0.303596 | 0 | 0.5 | 0 | 0 | 0.062842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.033333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9755a8953f00ba9ee6536d7a6482292ffdc4fe51 | 386 | py | Python | class.py | NageshJ2014/TestRepor | bea3c5feca4fda196f43797d12bf752d7c97959a | [
"MIT"
] | null | null | null | class.py | NageshJ2014/TestRepor | bea3c5feca4fda196f43797d12bf752d7c97959a | [
"MIT"
] | null | null | null | class.py | NageshJ2014/TestRepor | bea3c5feca4fda196f43797d12bf752d7c97959a | [
"MIT"
] | null | null | null | lottery_player = {"name" : "Rolf", "numbers" : (20,40,30,85)}
#print(lottery_player)
class Lottery_player:
def __init__(self,name="Rolf",numbers=(20,40,30,85)):
self.name = name
self.numbers = numbers
def total(self):
return sum(self.numbers)
Player = Lottery_player("Nagesh",(12,24,36,... | 27.571429 | 61 | 0.660622 | 55 | 386 | 4.490909 | 0.418182 | 0.210526 | 0.121457 | 0.137652 | 0.186235 | 0.186235 | 0.186235 | 0 | 0 | 0 | 0 | 0.080745 | 0.165803 | 386 | 13 | 62 | 29.692308 | 0.686335 | 0.054404 | 0 | 0 | 0 | 0 | 0.068681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.1 | 0.4 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
9757b985e9c8b271c35b7344664275097565ac25 | 385 | py | Python | anonramblings/ramblings/migrations/0010_post_comment_count.py | emre/anonramblings | d759529ced9e6431ab133b1a5a156d0791499948 | [
"MIT"
] | 2 | 2021-05-05T13:57:16.000Z | 2022-01-31T23:27:01.000Z | anonramblings/ramblings/migrations/0010_post_comment_count.py | emre/anonramblings | d759529ced9e6431ab133b1a5a156d0791499948 | [
"MIT"
] | 8 | 2021-03-19T03:25:40.000Z | 2022-03-12T00:29:41.000Z | anonramblings/ramblings/migrations/0010_post_comment_count.py | emre/anonramblings | d759529ced9e6431ab133b1a5a156d0791499948 | [
"MIT"
] | 1 | 2021-07-28T20:42:51.000Z | 2021-07-28T20:42:51.000Z | # Generated by Django 3.0.6 on 2020-05-17 12:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ramblings', '0009_post_reply_to'),
]
operations = [
migrations.AddField(
model_name='post',
name='comment_count',
... | 20.263158 | 49 | 0.597403 | 42 | 385 | 5.357143 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072993 | 0.288312 | 385 | 18 | 50 | 21.388889 | 0.748175 | 0.116883 | 0 | 0 | 1 | 0 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9758e2ddd1c967f4883f65f45506a362b63c2dbf | 674 | py | Python | testdatageneration.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | testdatageneration.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | testdatageneration.py | odeliss/wapetex | 1ad6740f537724e3640175234ea5d120912a0c3c | [
"MIT"
] | null | null | null | from datagenerationpipeline import dataGenerationPipeline
imageDirectory = "\\\\192.168.1.37\\Multimedia\\datasets\\test\\watches_categories\\1"
fileType=".jpg"
pipeline=dataGenerationPipeline(imageDirectory, fileType)
print("[INFO]: There should be 200 images in directory 1")
pipeline.rotate()
#assert there are 10... | 29.304348 | 86 | 0.79822 | 85 | 674 | 6.317647 | 0.458824 | 0.074488 | 0.158287 | 0.178771 | 0.284916 | 0.284916 | 0.284916 | 0.284916 | 0.284916 | 0.201117 | 0 | 0.045226 | 0.114243 | 674 | 23 | 87 | 29.304348 | 0.854271 | 0.338279 | 0 | 0 | 0 | 0 | 0.27088 | 0.151242 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
975a8fb496a42ce8f844e09b00e9d873ba96e0c1 | 640 | py | Python | backend/uclapi/dashboard/management/commands/clear_dashboard_data.py | nayanadasgupta/uclapi | 54fbdf4232fe3b309332291c29233dcb6e21b2c9 | [
"MIT"
] | null | null | null | backend/uclapi/dashboard/management/commands/clear_dashboard_data.py | nayanadasgupta/uclapi | 54fbdf4232fe3b309332291c29233dcb6e21b2c9 | [
"MIT"
] | null | null | null | backend/uclapi/dashboard/management/commands/clear_dashboard_data.py | nayanadasgupta/uclapi | 54fbdf4232fe3b309332291c29233dcb6e21b2c9 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from dashboard.models import User, App, APICall, Webhook, WebhookTriggerHistory
class Command(BaseCommand):
help = 'Cleans Dashboard of everything'
def handle(self, *args, **options):
string = input("THIS WILL WIPE THESE MODELS ARE YOU S... | 33.684211 | 80 | 0.607813 | 66 | 640 | 5.893939 | 0.621212 | 0.128535 | 0.205656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279688 | 640 | 18 | 81 | 35.555556 | 0.843818 | 0 | 0 | 0 | 0 | 0 | 0.165595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.384615 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
975c661a2ed79ebfe594ddcbc6c5b3d8097ea75a | 1,905 | py | Python | tensorflow/python/tools/module_util.py | KosingZhu/tensorflow | 7ac2521a4e609ddef0f0ea3ffc2e76102da934d7 | [
"Apache-2.0"
] | 190,993 | 2015-11-09T13:17:30.000Z | 2022-03-31T23:05:27.000Z | tensorflow/python/tools/module_util.py | govl-psb/tensorflow-1 | 60028072a1c3b4376e145b6fea8e4ccd3324377f | [
"Apache-2.0"
] | 48,461 | 2015-11-09T14:21:11.000Z | 2022-03-31T23:17:33.000Z | tensorflow/python/tools/module_util.py | govl-psb/tensorflow-1 | 60028072a1c3b4376e145b6fea8e4ccd3324377f | [
"Apache-2.0"
] | 104,981 | 2015-11-09T13:40:17.000Z | 2022-03-31T19:51:54.000Z | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 30.725806 | 80 | 0.688714 | 274 | 1,905 | 4.689781 | 0.434307 | 0.046693 | 0.028016 | 0.024903 | 0.133852 | 0.10428 | 0.04358 | 0 | 0 | 0 | 0 | 0.010925 | 0.183202 | 1,905 | 61 | 81 | 31.229508 | 0.81491 | 0.582152 | 0 | 0.37931 | 0 | 0 | 0.003984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.206897 | 0.034483 | 0.517241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
975c7839637c611ed347b35e3dd2e10172a0ba70 | 1,855 | py | Python | main_num_learners.py | crm416/online_boosting | fa9312968882607bf0e1c3ec0057499c852d9334 | [
"MIT"
] | 56 | 2015-05-15T14:11:15.000Z | 2022-02-08T07:03:11.000Z | main_num_learners.py | crm416/online_boosting | fa9312968882607bf0e1c3ec0057499c852d9334 | [
"MIT"
] | 4 | 2016-06-27T21:12:17.000Z | 2021-09-10T06:24:42.000Z | main_num_learners.py | crm416/online_boosting | fa9312968882607bf0e1c3ec0057499c852d9334 | [
"MIT"
] | 27 | 2015-07-29T08:16:12.000Z | 2021-12-20T08:38:22.000Z | import argparse
from random import seed
from yaml import dump
from utils.experiment import testNumLearners
from utils.utils import *
if __name__ == "__main__":
seed(0)
parser = argparse.ArgumentParser(
description='Test error for a combination of ensembler and weak learner.')
parser.add_argument('... | 37.857143 | 133 | 0.639353 | 222 | 1,855 | 5.193694 | 0.351351 | 0.095403 | 0.117953 | 0.052038 | 0.208153 | 0.114484 | 0.114484 | 0.114484 | 0.114484 | 0 | 0 | 0.002833 | 0.238814 | 1,855 | 48 | 134 | 38.645833 | 0.813739 | 0 | 0 | 0.071429 | 0 | 0 | 0.237197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0.02381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97646dc31ea15ad111584c8c7d0cfe3ea8c82afc | 1,435 | py | Python | evaluation_data_purify.py | gucheol/deep-text-recognition-benchmark | 5dcc0b0c9ee76ebb9fb9d6fdd12081e145228451 | [
"Apache-2.0"
] | null | null | null | evaluation_data_purify.py | gucheol/deep-text-recognition-benchmark | 5dcc0b0c9ee76ebb9fb9d6fdd12081e145228451 | [
"Apache-2.0"
] | null | null | null | evaluation_data_purify.py | gucheol/deep-text-recognition-benchmark | 5dcc0b0c9ee76ebb9fb9d6fdd12081e145228451 | [
"Apache-2.0"
] | null | null | null | import os
import glob
import shutil
from PIL import Image
# for file_path in glob.glob('./data/evaluation/card_evaluation/*.png'):
# file_name = os.path.basename(file_path)
# if file_name.find(',') >= 0 or file_name.find('@') >=0 or file_name.find('*') > 0 or file_name.find(':') > 0 \
# or file_nam... | 43.484848 | 125 | 0.651568 | 224 | 1,435 | 3.90625 | 0.200893 | 0.182857 | 0.109714 | 0.088 | 0.649143 | 0.482286 | 0.368 | 0.368 | 0.253714 | 0.173714 | 0 | 0.010989 | 0.17561 | 1,435 | 32 | 126 | 44.84375 | 0.728656 | 0.712195 | 0 | 0 | 0 | 0 | 0.163265 | 0.086735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97652dad0d24bff9e884b8ab02b7cab7fc0c6add | 3,137 | py | Python | back/to_do/models.py | valuko/ChiefOnboarding | 29de9c4c5e0fffbe3ed5ee156de04c1305f5f990 | [
"MIT"
] | null | null | null | back/to_do/models.py | valuko/ChiefOnboarding | 29de9c4c5e0fffbe3ed5ee156de04c1305f5f990 | [
"MIT"
] | null | null | null | back/to_do/models.py | valuko/ChiefOnboarding | 29de9c4c5e0fffbe3ed5ee156de04c1305f5f990 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.postgres.fields import JSONField
from django.db import models
from organization.models import BaseTemplate
from misc.models import Content
class ToDo(BaseTemplate):
content = models.ManyToManyField(Content)
due_on_day = models.IntegerField(de... | 35.247191 | 71 | 0.370099 | 247 | 3,137 | 4.546559 | 0.319838 | 0.0561 | 0.081033 | 0.07569 | 0.32146 | 0.296527 | 0.296527 | 0.296527 | 0.296527 | 0.296527 | 0 | 0.007848 | 0.512592 | 3,137 | 88 | 72 | 35.647727 | 0.726619 | 0.014664 | 0 | 0.469136 | 0 | 0 | 0.136982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.061728 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97704084969125b59abada527b11433f30191adb | 2,249 | py | Python | 19-CS-Data-Structures/01_queue/queue.py | shalevy1/data-science-journal | 2a6beaf5bf328e257b638a695983457a9f3cd7ce | [
"MIT"
] | 71 | 2019-03-05T04:44:48.000Z | 2022-03-24T09:47:48.000Z | 19-CS-Data-Structures/01_queue/queue.py | emichris/data-science-journal | 2a6beaf5bf328e257b638a695983457a9f3cd7ce | [
"MIT"
] | null | null | null | 19-CS-Data-Structures/01_queue/queue.py | emichris/data-science-journal | 2a6beaf5bf328e257b638a695983457a9f3cd7ce | [
"MIT"
] | 37 | 2019-03-07T05:08:03.000Z | 2022-01-05T11:32:51.000Z | class Queue:
def __init__(self):
self.size = 0
# what data structure should we
# use to store queue elements?
self.storage = LinkedList()
def enqueue(self, item):
self.storage.add_to_tail(item)
self.size += 1
def dequeue(self):
item = self.storage.po... | 24.445652 | 78 | 0.563806 | 303 | 2,249 | 4.013201 | 0.260726 | 0.092105 | 0.029605 | 0.042763 | 0.244243 | 0.220395 | 0.202303 | 0.159539 | 0.159539 | 0.159539 | 0 | 0.002079 | 0.358382 | 2,249 | 91 | 79 | 24.714286 | 0.84061 | 0.160071 | 0 | 0.333333 | 0 | 0 | 0.006397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.063492 | 0.428571 | 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 | 0 | 0 | 0 | 0 | 1 |
97713924466420a67ca1075690a2168958f9b689 | 386 | py | Python | tests/qos/conftest.py | dmytroxshevchuk/sonic-mgmt | b784e598a063aba71fdf9ca23fe142840926e4cf | [
"Apache-2.0"
] | 132 | 2016-10-19T12:34:44.000Z | 2022-03-16T09:00:39.000Z | tests/qos/conftest.py | dmytroxshevchuk/sonic-mgmt | b784e598a063aba71fdf9ca23fe142840926e4cf | [
"Apache-2.0"
] | 3,152 | 2016-09-21T23:05:58.000Z | 2022-03-31T23:29:08.000Z | tests/qos/conftest.py | dmytroxshevchuk/sonic-mgmt | b784e598a063aba71fdf9ca23fe142840926e4cf | [
"Apache-2.0"
] | 563 | 2016-09-20T01:00:15.000Z | 2022-03-31T22:43:54.000Z | from .args.qos_sai_args import add_qos_sai_args
from .args.buffer_args import add_dynamic_buffer_calculation_args
# QoS pytest arguments
def pytest_addoption(parser):
'''
Adds option to QoS pytest
Args:
parser: pytest parser object
Returns:
None
'''
add_qos... | 22.705882 | 65 | 0.694301 | 50 | 386 | 5 | 0.4 | 0.072 | 0.12 | 0.104 | 0.248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251295 | 386 | 16 | 66 | 24.125 | 0.865052 | 0.274611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9771643a5eb5a2dc56adf6885238245644629ff0 | 2,178 | py | Python | tool_read_file_to_db/read_file_to_db.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | 1 | 2015-10-15T12:26:07.000Z | 2015-10-15T12:26:07.000Z | tool_read_file_to_db/read_file_to_db.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | null | null | null | tool_read_file_to_db/read_file_to_db.py | xuerenlv/PaperWork | f096b57a80e8d771f080a02b925a22edbbee722a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on Oct 16, 2015
@author: nlp
'''
import os
from store_model import Single_weibo_store
import sys
import traceback
reload(sys)
sys.setdefaultencoding('utf8')
if __name__ == '__main__':
filelist = os.listdir('./china_hongkong_conflict_files')
count = 0
for... | 30.25 | 147 | 0.459137 | 228 | 2,178 | 4.140351 | 0.280702 | 0.047669 | 0.095339 | 0.104873 | 0.298729 | 0.229873 | 0.148305 | 0.148305 | 0.148305 | 0.148305 | 0 | 0.0152 | 0.426079 | 2,178 | 71 | 148 | 30.676056 | 0.74 | 0.009642 | 0 | 0 | 0 | 0 | 0.081043 | 0.029858 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018868 | 0.075472 | null | null | 0.132075 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
977fc6853aaa0d619d82cb395d51d55e9e1ce4d2 | 2,875 | py | Python | tests/test_cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | 2 | 2021-12-10T22:43:23.000Z | 2021-12-21T13:07:00.000Z | tests/test_cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | null | null | null | tests/test_cell.py | kafonek/gridthings | adb84fb1beedc56a9ab59c7597f32234e9a1c4bc | [
"BSD-3-Clause"
] | null | null | null | import pytest
from gridthings import Cell
# Cells represent individual data points in a grid
# They implement a variety of mathematical dunder methods
# so that they can be compared, sorted, and manipulated
def test_cell_when_equal():
c1 = Cell(y=0, x=0, value="foo")
c2 = Cell(y=0, x=1, value="foo")
# u... | 23.565574 | 75 | 0.559304 | 464 | 2,875 | 3.314655 | 0.234914 | 0.093628 | 0.031209 | 0.03381 | 0.342653 | 0.321847 | 0.287386 | 0.164499 | 0.164499 | 0.117685 | 0 | 0.087763 | 0.306435 | 2,875 | 121 | 76 | 23.760331 | 0.683551 | 0.171478 | 0 | 0.148148 | 0 | 0 | 0.032586 | 0 | 0 | 0 | 0 | 0 | 0.679012 | 1 | 0.08642 | false | 0 | 0.024691 | 0 | 0.135802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9784d42a1c4e5682d5ec513e37b92248a55cbfc7 | 2,619 | py | Python | scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_daemon_server.py | timgates42/trex-core | efe94752fcb2d0734c83d4877afe92a3dbf8eccd | [
"Apache-2.0"
] | 956 | 2015-06-24T15:04:55.000Z | 2022-03-30T06:25:04.000Z | scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_daemon_server.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 782 | 2015-09-20T15:19:00.000Z | 2022-03-31T23:52:05.000Z | scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_daemon_server.py | angelyouyou/trex-core | fddf78584cae285d9298ef23f9f5c8725e16911e | [
"Apache-2.0"
] | 429 | 2015-06-27T19:34:21.000Z | 2022-03-23T11:02:51.000Z | #!/usr/bin/python
import outer_packages
import daemon
from trex_server import do_main_program, trex_parser
import CCustomLogger
import logging
import time
import sys
import os, errno
import grp
import signal
from daemon import runner
from extended_daemon_runner import ExtendedDaemonRunner
import lockfile
import errno... | 32.7375 | 124 | 0.668194 | 331 | 2,619 | 5.114804 | 0.44713 | 0.01772 | 0.029533 | 0.047253 | 0.112817 | 0.112817 | 0.089191 | 0.038984 | 0 | 0 | 0 | 0.003511 | 0.238641 | 2,619 | 79 | 125 | 33.151899 | 0.845537 | 0.100802 | 0 | 0.034483 | 0 | 0 | 0.254259 | 0.061329 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.241379 | null | null | 0.068966 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
978e233dc431934534cc3bd95d8585a26e8e3a65 | 10,560 | py | Python | Minion/Collectors/Linux_CPU.py | onderogluserdar/boardInstrumentFramework | 00f4dc5f3e6993ce372ee12067da43720d1ae175 | [
"Apache-2.0"
] | 16 | 2018-02-19T11:07:33.000Z | 2022-01-02T10:32:00.000Z | Minion/Collectors/Linux_CPU.py | onderogluserdar/boardInstrumentFramework | 00f4dc5f3e6993ce372ee12067da43720d1ae175 | [
"Apache-2.0"
] | 11 | 2018-04-10T23:38:15.000Z | 2021-02-17T17:38:05.000Z | Minion/Collectors/Linux_CPU.py | onderogluserdar/boardInstrumentFramework | 00f4dc5f3e6993ce372ee12067da43720d1ae175 | [
"Apache-2.0"
] | 11 | 2017-12-31T06:22:47.000Z | 2021-11-12T21:08:41.000Z | ##############################################################################
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www... | 35.79661 | 192 | 0.598201 | 1,519 | 10,560 | 4.096116 | 0.236998 | 0.047734 | 0.052073 | 0.068467 | 0.290903 | 0.267277 | 0.22758 | 0.211186 | 0.189971 | 0.189971 | 0 | 0.093646 | 0.260795 | 10,560 | 294 | 193 | 35.918367 | 0.703305 | 0.276515 | 0 | 0.20904 | 0 | 0 | 0.076734 | 0.01363 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00565 | 0.016949 | null | null | 0.00565 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
978fbaff88cb9d2e30b3261bededc96e338a55fc | 704 | py | Python | desktop/core/ext-py/cx_Oracle-6.4.1/samples/tutorial/query_one.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/cx_Oracle-6.4.1/samples/tutorial/query_one.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/cx_Oracle-6.4.1/samples/tutorial/query_one.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #------------------------------------------------------------------------------
# query_one.py (Section 3.2)
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Copyright 2017, 2018, Oracle and/or its affiliat... | 30.608696 | 79 | 0.411932 | 62 | 704 | 4.483871 | 0.645161 | 0.115108 | 0.100719 | 0.136691 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015432 | 0.079545 | 704 | 22 | 80 | 32 | 0.41358 | 0.585227 | 0 | 0.4 | 0 | 0 | 0.118881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0.3 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9792d54aeea464c184704efbc281d9858db17ba9 | 466 | py | Python | therma.py | tomacorp/thermapythia | d6392a9e9eb9a5123ae3031812a0b4f8324d7211 | [
"BSD-3-Clause"
] | 3 | 2015-09-16T17:41:19.000Z | 2016-01-03T00:39:26.000Z | therma.py | tomacorp/thermapythia | d6392a9e9eb9a5123ae3031812a0b4f8324d7211 | [
"BSD-3-Clause"
] | null | null | null | therma.py | tomacorp/thermapythia | d6392a9e9eb9a5123ae3031812a0b4f8324d7211 | [
"BSD-3-Clause"
] | null | null | null | #!/Users/toma/python278i/bin/python
# -*- coding: utf-8 -*-
#
import MainWindow
import os
import platform
import sys
from PyQt4.QtGui import (QApplication, QIcon)
__version__ = "1.0.0"
def main():
app = QApplication(sys.argv)
app.setOrganizationName("tomacorp")
app.setOrganizationDomain("tomacorp.com") ... | 18.64 | 45 | 0.680258 | 57 | 466 | 5.333333 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02046 | 0.160944 | 466 | 25 | 46 | 18.64 | 0.757033 | 0.120172 | 0 | 0 | 0 | 0 | 0.105392 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97982c6badb5db97f6d265ff0132df59709c6088 | 548 | py | Python | 001 - Delete-Clusters.py | georgeeks/mslearn-dp100 | c60fc679d02857d701ea22fb78cd718e1eda196f | [
"MIT"
] | null | null | null | 001 - Delete-Clusters.py | georgeeks/mslearn-dp100 | c60fc679d02857d701ea22fb78cd718e1eda196f | [
"MIT"
] | null | null | null | 001 - Delete-Clusters.py | georgeeks/mslearn-dp100 | c60fc679d02857d701ea22fb78cd718e1eda196f | [
"MIT"
] | null | null | null | # tutorial/99-Delete-clusters.py
from azureml.core import Workspace
from azureml.core.compute import ComputeTarget, AmlCompute
from azureml.core.compute_target import ComputeTargetException
import os
#path = os.path.join(os.getcwd(), 'DP100\.azureml')
ws = Workspace.from_config() # This automatically looks for a dire... | 24.909091 | 80 | 0.797445 | 75 | 548 | 5.693333 | 0.466667 | 0.140515 | 0.105386 | 0.103045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010225 | 0.107664 | 548 | 21 | 81 | 26.095238 | 0.862986 | 0.304745 | 0 | 0 | 0 | 0 | 0.029333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
979be19a10d1b6a18b4f7ec9cf459f6ed79e2619 | 3,353 | py | Python | gen_syscalls.py | HexRabbit/syscall-table | 7b3ead6b682bb28d12242ce856466d92e8d2a3b7 | [
"MIT"
] | 3 | 2021-05-04T02:36:51.000Z | 2021-11-17T11:25:35.000Z | gen_syscalls.py | HexRabbit/syscall-table | 7b3ead6b682bb28d12242ce856466d92e8d2a3b7 | [
"MIT"
] | null | null | null | gen_syscalls.py | HexRabbit/syscall-table | 7b3ead6b682bb28d12242ce856466d92e8d2a3b7 | [
"MIT"
] | null | null | null | import re, json, ctags
from ctags import CTags, TagEntry
prefix = './linux/'
# file generated by ctags --fields=afmikKlnsStz --c-kinds=+pc -R
tags = CTags(prefix+'tags')
entry = TagEntry()
syscall_tbl = open(prefix+'arch/x86/entry/syscalls/syscall_64.tbl', 'r')
syscall_out = open('www/syscall.json', 'w+')
syscall_f... | 32.553398 | 99 | 0.418431 | 320 | 3,353 | 4.25 | 0.375 | 0.022059 | 0.020588 | 0.030882 | 0.076471 | 0.044118 | 0.044118 | 0.044118 | 0.044118 | 0 | 0 | 0.018003 | 0.453325 | 3,353 | 102 | 100 | 32.872549 | 0.72395 | 0.060245 | 0 | 0.180723 | 1 | 0 | 0.082645 | 0.030833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.024096 | 0 | 0.048193 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
979fd0d7547609d07755de0da08727f099ba8a70 | 1,931 | py | Python | pilea/cli.py | hfjn/pilea | 384be918fc3dcca7ba7a9a568048344e51d83506 | [
"MIT"
] | null | null | null | pilea/cli.py | hfjn/pilea | 384be918fc3dcca7ba7a9a568048344e51d83506 | [
"MIT"
] | null | null | null | pilea/cli.py | hfjn/pilea | 384be918fc3dcca7ba7a9a568048344e51d83506 | [
"MIT"
] | null | null | null | from pathlib import Path
import time
import click
from click import ClickException, Context, pass_context
from livereload import Server
from pilea.build_controller import BuildController
from pilea.state import State, pass_state
from shutil import copytree
import os
EXECUTION_PATH = Path(os.getcwd())
INPUT_FOLDER = ... | 26.819444 | 85 | 0.69912 | 252 | 1,931 | 5.234127 | 0.349206 | 0.090978 | 0.075815 | 0.06975 | 0.197877 | 0.193328 | 0.193328 | 0.169826 | 0.08188 | 0.08188 | 0 | 0.002554 | 0.189021 | 1,931 | 71 | 86 | 27.197183 | 0.839719 | 0.224236 | 0 | 0.225 | 0 | 0 | 0.152374 | 0.074415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.15 | 0.225 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
97b30b1a99597239b0ca0a239d78f81c1d4ed4fb | 1,718 | py | Python | revscoring/revscoring/languages/tests/test_tamil.py | yafeunteun/wikipedia-spam-classifier | fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519 | [
"MIT"
] | 2 | 2016-10-26T18:58:53.000Z | 2017-06-22T20:11:20.000Z | revscoring/revscoring/languages/tests/test_tamil.py | yafeunteun/wikipedia-spam-classifier | fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519 | [
"MIT"
] | null | null | null | revscoring/revscoring/languages/tests/test_tamil.py | yafeunteun/wikipedia-spam-classifier | fca782b39b287fbc0b2dd54f8e2bf33c6d3bc519 | [
"MIT"
] | null | null | null | import pickle
from nose.tools import eq_
from .. import tamil
from .util import compare_extraction
BAD = [
"பூல்",
"பூலு",
"கூதி",
"தேவுடியாள்",
"தேவடியாள்",
"ஓத்த",
"ஓத்தா",
"சுன்னி",
"சுண்ணி",
"ஓல்",
"ஓழ்",
"ஓலு",
"ஓழு",
"ஓழி",
"ஒம்மால",
"சூத்து",
... | 23.534247 | 69 | 0.490687 | 731 | 1,718 | 1.582763 | 0.161423 | 0.041487 | 0.028522 | 0.025929 | 0.294728 | 0.157303 | 0.127917 | 0.067416 | 0.059637 | 0 | 0 | 0.011278 | 0.225844 | 1,718 | 72 | 70 | 23.861111 | 0.616541 | 0 | 0 | 0 | 0 | 0 | 0.153759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.093023 | 0 | 0.139535 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97b73ec49e7d08bc70511bb1c18873813e3dd6c3 | 3,276 | py | Python | tests/test_mgxs_openmc/test_mgxs_openmc.py | lsder/OpenMOC | bf21a19f51b2d42c6323f33e58c92f71614c9288 | [
"MIT"
] | 97 | 2015-01-02T02:13:45.000Z | 2022-03-09T14:12:45.000Z | tests/test_mgxs_openmc/test_mgxs_openmc.py | lsder/OpenMOC | bf21a19f51b2d42c6323f33e58c92f71614c9288 | [
"MIT"
] | 325 | 2015-01-07T17:43:14.000Z | 2022-02-21T17:22:00.000Z | tests/test_mgxs_openmc/test_mgxs_openmc.py | lsder/OpenMOC | bf21a19f51b2d42c6323f33e58c92f71614c9288 | [
"MIT"
] | 73 | 2015-01-17T19:11:58.000Z | 2022-03-24T16:31:37.000Z | #!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.pardir)
sys.path.insert(0, os.path.join(os.pardir, 'openmoc'))
from testing_harness import MultiSimTestHarness
import openmoc
try:
import openmc.openmoc_compatible
import openmc.mgxs
except:
print("OpenMC could not be imported, it's require... | 32.76 | 84 | 0.625763 | 356 | 3,276 | 5.539326 | 0.398876 | 0.053245 | 0.022312 | 0.014199 | 0.016227 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005215 | 0.297619 | 3,276 | 99 | 85 | 33.090909 | 0.851804 | 0.195665 | 0 | 0.068966 | 0 | 0 | 0.085506 | 0.02684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12069 | false | 0.068966 | 0.12069 | 0 | 0.275862 | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
97c2d019181e3638d000cb650084276d3846f859 | 1,233 | py | Python | monitoring/migrations/0002_communitysetting_jobsetting.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | monitoring/migrations/0002_communitysetting_jobsetting.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | 3 | 2021-03-20T10:35:08.000Z | 2022-03-21T16:54:05.000Z | monitoring/migrations/0002_communitysetting_jobsetting.py | hyphae/apis-service_center | 0a6f0d349a435a3c739c2ee1ebdcc010c2dd13d1 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.11 on 2020-05-25 06:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('monitoring', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CommunitySetting',
fields=[
... | 35.228571 | 114 | 0.562044 | 119 | 1,233 | 5.655462 | 0.495798 | 0.059435 | 0.106984 | 0.142645 | 0.430906 | 0.390788 | 0.347697 | 0.347697 | 0.347697 | 0.347697 | 0 | 0.040369 | 0.296837 | 1,233 | 34 | 115 | 36.264706 | 0.735871 | 0.037307 | 0 | 0.357143 | 1 | 0 | 0.144304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97c7fdc9ac8156fb54395b624f33da926c4ade42 | 1,010 | py | Python | httprider/widgets/key_value_widget.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 27 | 2019-12-20T00:10:28.000Z | 2022-03-09T18:04:23.000Z | httprider/widgets/key_value_widget.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 6 | 2019-10-13T08:50:21.000Z | 2020-06-05T12:23:08.000Z | httprider/widgets/key_value_widget.py | iSWORD/http-rider | 5d9e5cc8c5166ab58f81d30d21b3ce2497bf09b9 | [
"MIT"
] | 7 | 2019-08-10T01:38:31.000Z | 2021-08-23T05:28:46.000Z | from PyQt5 import QtWidgets
from ..core import DynamicStringData
from ..generated.key_value_widget import Ui_KeyValueWidget
class KeyValueWidget(QtWidgets.QWidget, Ui_KeyValueWidget):
def __init__(self, parent=None, parent_widget_item=None, on_remove_callback=None):
super(KeyValueWidget, self).__init__(p... | 32.580645 | 86 | 0.682178 | 129 | 1,010 | 5.077519 | 0.395349 | 0.045802 | 0.054962 | 0.039695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001266 | 0.217822 | 1,010 | 30 | 87 | 33.666667 | 0.827848 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97ccf0c6eb9faafa03fff4b6c94b150bf838ef43 | 936 | py | Python | myApp/api/urls.py | Chrisfufu/freshworksTesting | 0ba164b471dc30186bf5976f88b84173680c7402 | [
"Apache-2.0"
] | null | null | null | myApp/api/urls.py | Chrisfufu/freshworksTesting | 0ba164b471dc30186bf5976f88b84173680c7402 | [
"Apache-2.0"
] | 4 | 2020-05-01T20:22:23.000Z | 2021-03-30T13:22:12.000Z | myApp/api/urls.py | Chrisfufu/freshworksTesting | 0ba164b471dc30186bf5976f88b84173680c7402 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.contrib import admin
from django.conf.urls.static import static
from .views import *
from django.conf import settings
# the following is the controller APIs.
urlpatterns = [
# feed duck information controllers.
# it has create information, view all information and d... | 44.571429 | 92 | 0.705128 | 130 | 936 | 5.030769 | 0.361538 | 0.036697 | 0.091743 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004938 | 0.134615 | 936 | 20 | 93 | 46.8 | 0.802469 | 0.251068 | 0 | 0 | 0 | 0 | 0.228777 | 0.064748 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97cd0fc738251d76e245d77892aab4cc6ec6a44b | 1,432 | py | Python | Python3/1302.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/1302.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/1302.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 72 ms submission
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def deepestLea... | 33.302326 | 98 | 0.625698 | 140 | 1,432 | 4.192857 | 0.285714 | 0.034072 | 0.074957 | 0.085179 | 0.507666 | 0.507666 | 0.507666 | 0.507666 | 0.507666 | 0.507666 | 0 | 0.00501 | 0.303073 | 1,432 | 42 | 99 | 34.095238 | 0.583166 | 0.208799 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97d0cdd1d7dc4a1ad072b4685f7e01f1a36d454f | 1,282 | py | Python | aoj/ALDS1_7_C_Tree_Walk.py | negiandleek/til | 5cc2759e4fe128f75414388ae3d7f99a1e10057a | [
"MIT"
] | null | null | null | aoj/ALDS1_7_C_Tree_Walk.py | negiandleek/til | 5cc2759e4fe128f75414388ae3d7f99a1e10057a | [
"MIT"
] | null | null | null | aoj/ALDS1_7_C_Tree_Walk.py | negiandleek/til | 5cc2759e4fe128f75414388ae3d7f99a1e10057a | [
"MIT"
] | null | null | null | # coding: utf-8
# Your code here!
n = int(input().rstrip())
nodes = [None] * n
for i in range(n):
index, left, right = list(map(int, input().rstrip().split()))
nodes[index] = [left, right, -1]
for i in range(n):
left, right, _ = nodes[i]
nodes[left][2] = i
nodes[right][2] = i
root = 0
for i ... | 19.723077 | 65 | 0.571763 | 157 | 1,282 | 4.643312 | 0.254777 | 0.074074 | 0.076818 | 0.045267 | 0.120713 | 0.071331 | 0.071331 | 0 | 0 | 0 | 0 | 0.01383 | 0.266771 | 1,282 | 64 | 66 | 20.03125 | 0.761702 | 0.022621 | 0 | 0.24 | 0 | 0 | 0.024 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.06 | false | 0 | 0 | 0 | 0.06 | 0.12 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
97d2cc459ecfb1d248b036a4795d385abf261c4b | 698 | py | Python | jp.atcoder/ddcc2020-qual/ddcc2020_qual_b/8576141.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/ddcc2020-qual/ddcc2020_qual_b/8576141.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/ddcc2020-qual/ddcc2020_qual_b/8576141.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | # 2019-11-23 21:00:35(JST)
import itertools
import sys
def main():
n, *A = map(int, sys.stdin.read().split())
S = sum(A)
l = 0
for i in range(n):
l += A[i]
if l >= S // 2:
if l == S / 2:
ans = 0
break
else:
... | 19.388889 | 58 | 0.2851 | 81 | 698 | 2.358025 | 0.432099 | 0.041885 | 0.04712 | 0.078534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.588825 | 698 | 35 | 59 | 19.942857 | 0.592334 | 0.034384 | 0 | 0.24 | 0 | 0 | 0.012559 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.12 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8aedc332164e92ae64bc6098fbddffb8e2c2aa25 | 517 | py | Python | Grundgeruest/migrations/0005_auto_20171211_1421.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 1 | 2017-10-27T15:05:17.000Z | 2017-10-27T15:05:17.000Z | Grundgeruest/migrations/0005_auto_20171211_1421.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 135 | 2017-07-31T20:11:59.000Z | 2022-03-11T23:16:37.000Z | Grundgeruest/migrations/0005_auto_20171211_1421.py | valuehack/scholarium.at | b81220ab18ae6db057132ae2cc43afc22545e5e6 | [
"MIT"
] | 4 | 2017-11-20T12:10:50.000Z | 2018-03-12T10:51:12.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-11 14:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Grundgeruest', '0004_auto_20171211_1418'),
]
operations = [
migrations.Alte... | 24.619048 | 92 | 0.649903 | 55 | 517 | 5.909091 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086076 | 0.235977 | 517 | 20 | 93 | 25.85 | 0.736709 | 0.131528 | 0 | 0 | 1 | 0 | 0.170404 | 0.05157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8af6dfc9c3c3a4202d2b9ec19367ea034cb347e9 | 338 | py | Python | Forms/API/errors/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | Forms/API/errors/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | Forms/API/errors/tests.py | looking-for-a-job/django-examples | dfafa450668cac5c0351f6c7238b8886511229bf | [
"Unlicense"
] | null | null | null | from django.test import TestCase
from .forms import MyForm
"""
https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.errors
"""
form = MyForm({'subject':'','sender':'invalid-email'})
print(form.errors)
print(form.errors.as_data())
# {'sender': ['Enter a valid email address.'], 'subject': ['This fiel... | 28.166667 | 86 | 0.704142 | 47 | 338 | 5.042553 | 0.680851 | 0.126582 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091716 | 338 | 11 | 87 | 30.727273 | 0.771987 | 0.248521 | 0 | 0 | 0 | 0 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8af6e3a9bcda757f2edf5527f08126dc11e6052c | 3,865 | py | Python | src/sdk/python/OsduClient/models/legal_tag_invalid_response_list.py | mstest123/self-managed-osdu_from_Daniel | 10a0c1d25804caa920bf18c6c7c1d8e711c63756 | [
"MIT"
] | 3 | 2021-11-05T20:52:54.000Z | 2021-11-23T23:02:29.000Z | src/sdk/python/OsduClient/models/legal_tag_invalid_response_list.py | mstest123/self-managed-osdu_from_Daniel | 10a0c1d25804caa920bf18c6c7c1d8e711c63756 | [
"MIT"
] | 4 | 2021-11-05T19:57:08.000Z | 2021-12-14T13:59:04.000Z | src/sdk/python/OsduClient/models/legal_tag_invalid_response_list.py | mstest123/self-managed-osdu_from_Daniel | 10a0c1d25804caa920bf18c6c7c1d8e711c63756 | [
"MIT"
] | 36 | 2021-08-31T20:58:25.000Z | 2022-03-30T17:02:57.000Z | # coding: utf-8
"""
self-managed-osdu
Rest API Documentation for Self Managed OSDU # noqa: E501
OpenAPI spec version: 0.11.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from OsduClient.configuration import Configurati... | 30.674603 | 108 | 0.610867 | 429 | 3,865 | 5.312354 | 0.275058 | 0.100044 | 0.133392 | 0.052655 | 0.36244 | 0.321194 | 0.321194 | 0.143923 | 0.11233 | 0.033348 | 0 | 0.012973 | 0.30194 | 3,865 | 125 | 109 | 30.92 | 0.831727 | 0.280207 | 0 | 0.066667 | 1 | 0 | 0.043111 | 0.012257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.383333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8afb56345a6d69e55e114bf357b957b2a619dda9 | 557 | py | Python | typed_jsonrpc/msg_types.py | thautwarm/typed-jsonrpc | 40fd57f96eb6e3116962a3a67c19935dc38e8bd9 | [
"MIT"
] | 5 | 2021-12-27T03:59:31.000Z | 2021-12-28T13:38:01.000Z | typed_jsonrpc/msg_types.py | thautwarm/typed-jsonrpc | 40fd57f96eb6e3116962a3a67c19935dc38e8bd9 | [
"MIT"
] | null | null | null | typed_jsonrpc/msg_types.py | thautwarm/typed-jsonrpc | 40fd57f96eb6e3116962a3a67c19935dc38e8bd9 | [
"MIT"
] | null | null | null | import typing
Json = list["Json"] | dict[str, "Json"] | int | float | str | None
CANCEL_METHOD = "$/cancelRequest"
JSONRPC_VERSION = "2.0"
class ResponseError(typing.TypedDict):
code: int
message: str
data: Json | None
class Response(typing.TypedDict):
id: str
result: Json | None
error: Re... | 17.40625 | 66 | 0.653501 | 68 | 557 | 5.323529 | 0.426471 | 0.165746 | 0.116022 | 0.110497 | 0.18232 | 0.18232 | 0.18232 | 0 | 0 | 0 | 0 | 0.004728 | 0.240575 | 557 | 31 | 67 | 17.967742 | 0.851064 | 0 | 0 | 0.409091 | 0 | 0 | 0.046679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c10508a6dd6b9107f42859ed73bde9ab98366b43 | 548 | py | Python | catan-services_1.0/examples/gps.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 15 | 2015-06-05T20:13:40.000Z | 2020-12-24T05:16:57.000Z | catan-services_1.0/examples/gps.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 10 | 2016-03-04T23:05:56.000Z | 2016-05-18T18:14:13.000Z | catan-services_1.0/examples/gps.py | mit-ll/CATAN | 7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac | [
"BSD-3-Clause"
] | 6 | 2015-10-15T19:23:58.000Z | 2021-06-29T07:36:16.000Z | """
This is a simple example script showing our GPS module
(c) 2015 Massachusetts Institute of Technology
"""
# CATAN
import catan.utils as utils
from catan.gps import GPSReceiver
if __name__ == "__main__":
gps = GPSReceiver(serial_interface="/dev/ttyUSB1")
while True:
coor... | 21.076923 | 58 | 0.589416 | 62 | 548 | 5 | 0.66129 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013661 | 0.332117 | 548 | 26 | 59 | 21.076923 | 0.833333 | 0.009124 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | null | null | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c108045693240ca03d5c31ed2d4944c993bd4df5 | 2,384 | py | Python | whirlpool/__init__.py | datashaman/whirlpool | 6d59ab3960da23c2f7267fbdb976ed97a0e1192c | [
"BSD-3-Clause"
] | 1 | 2019-03-08T04:07:08.000Z | 2019-03-08T04:07:08.000Z | whirlpool/__init__.py | datashaman/whirlpool | 6d59ab3960da23c2f7267fbdb976ed97a0e1192c | [
"BSD-3-Clause"
] | null | null | null | whirlpool/__init__.py | datashaman/whirlpool | 6d59ab3960da23c2f7267fbdb976ed97a0e1192c | [
"BSD-3-Clause"
] | null | null | null | """
Tuplespace implementation for python.
Copyright (c) 2010, Marlin Forbes
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,... | 36.676923 | 82 | 0.708893 | 314 | 2,384 | 5.33758 | 0.541401 | 0.019093 | 0.020286 | 0.027446 | 0.109785 | 0.081146 | 0.081146 | 0.081146 | 0.081146 | 0.081146 | 0 | 0.008224 | 0.234899 | 2,384 | 64 | 83 | 37.25 | 0.910636 | 0 | 0 | 0 | 0 | 0 | 0.057457 | 0.02934 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1118202ea659fcb28ec7edad2eb924afaa77b47 | 1,304 | py | Python | esi_leap/resource_objects/resource_object_factory.py | DanNiESh/esi-leap | 6e3d26f6643d2e2161ed2f7a32a2989a8b1b70ed | [
"Apache-2.0"
] | null | null | null | esi_leap/resource_objects/resource_object_factory.py | DanNiESh/esi-leap | 6e3d26f6643d2e2161ed2f7a32a2989a8b1b70ed | [
"Apache-2.0"
] | null | null | null | esi_leap/resource_objects/resource_object_factory.py | DanNiESh/esi-leap | 6e3d26f6643d2e2161ed2f7a32a2989a8b1b70ed | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 40.75 | 78 | 0.743098 | 176 | 1,304 | 5.323864 | 0.5 | 0.064034 | 0.046958 | 0.060832 | 0.170758 | 0.110993 | 0.076841 | 0 | 0 | 0 | 0 | 0.003791 | 0.190951 | 1,304 | 31 | 79 | 42.064516 | 0.88436 | 0.418712 | 0 | 0 | 0 | 0 | 0.080754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c11229a74a8e6de839392a71e3f123928400d2bd | 2,784 | py | Python | pyext/professor2/ml/histos.py | iamholger/professor | 25753a19de0dbbd2db0eb80cedc87adc017459a1 | [
"MIT"
] | 2 | 2016-12-01T13:08:45.000Z | 2017-01-09T05:36:44.000Z | pyext/professor2/ml/histos.py | iamholger/professor | 25753a19de0dbbd2db0eb80cedc87adc017459a1 | [
"MIT"
] | null | null | null | pyext/professor2/ml/histos.py | iamholger/professor | 25753a19de0dbbd2db0eb80cedc87adc017459a1 | [
"MIT"
] | null | null | null | # -*- python -*-
from professor2.histos import *
class MLHisto(Histo):
"Specialisation of Histo as a container of MLBins"
def __init__(self, nnbins=None, path=None):
Histo.__init__(self, nnbins, path)
def toDataHisto(self, *params):
"Convert this IpolBin to a DataBin with values and erro... | 37.12 | 103 | 0.634698 | 382 | 2,784 | 4.520942 | 0.358639 | 0.018529 | 0.026057 | 0.034742 | 0.075275 | 0.016213 | 0.016213 | 0 | 0 | 0 | 0 | 0.009157 | 0.25467 | 2,784 | 74 | 104 | 37.621622 | 0.823133 | 0.243175 | 0 | 0.058824 | 0 | 0 | 0.098561 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.372549 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c11569955e681a96e76398ca40577050f6e30477 | 1,925 | py | Python | visualSHARK/migrations/0019_auto_20201227_0947.py | smartshark/visualSHARK | 57d95da29726e3b5521c316a52e4ffddf4cd5028 | [
"Apache-2.0"
] | 1 | 2021-12-14T13:21:07.000Z | 2021-12-14T13:21:07.000Z | visualSHARK/migrations/0019_auto_20201227_0947.py | smartshark/visualSHARK | 57d95da29726e3b5521c316a52e4ffddf4cd5028 | [
"Apache-2.0"
] | 19 | 2017-09-28T12:45:11.000Z | 2022-02-10T06:50:04.000Z | visualSHARK/migrations/0019_auto_20201227_0947.py | smartshark/visualSHARK | 57d95da29726e3b5521c316a52e4ffddf4cd5028 | [
"Apache-2.0"
] | 2 | 2018-01-11T14:55:06.000Z | 2020-11-10T15:34:25.000Z | # Generated by Django 2.2.13 on 2020-12-27 09:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('visualSHARK', '0018_aut... | 34.375 | 133 | 0.619221 | 187 | 1,925 | 6.224599 | 0.326203 | 0.061856 | 0.103093 | 0.120275 | 0.483677 | 0.483677 | 0.434708 | 0.343643 | 0.343643 | 0.343643 | 0 | 0.027085 | 0.271169 | 1,925 | 55 | 134 | 35 | 0.802566 | 0.023896 | 0 | 0.571429 | 1 | 0 | 0.134257 | 0.049014 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.061224 | 0 | 0.122449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c11646ea4aaa686d23b7dccafc01a61484cd3f5d | 1,532 | py | Python | satisfiability.py | maxtuno/CNFExamples | 55402c9eef128b6f3dfd2c86f6599c70a91c13ce | [
"Unlicense"
] | 2 | 2021-03-24T00:19:02.000Z | 2021-03-24T00:23:51.000Z | satisfiability.py | maxtuno/CNFExamples | 55402c9eef128b6f3dfd2c86f6599c70a91c13ce | [
"Unlicense"
] | null | null | null | satisfiability.py | maxtuno/CNFExamples | 55402c9eef128b6f3dfd2c86f6599c70a91c13ce | [
"Unlicense"
] | null | null | null | import functools
import operator
import peqnp.cnf as cnf
n, m, instance = 10, 24, [[9, -5, 10, -6, 3],
[6, 8],
[8, 4],
[-10, 5],
[-9, 8],
[-9, -3],
[-2, 5],
... | 31.916667 | 104 | 0.333551 | 179 | 1,532 | 2.849162 | 0.424581 | 0.011765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105333 | 0.510444 | 1,532 | 47 | 105 | 32.595745 | 0.574667 | 0.112272 | 0 | 0 | 0 | 0 | 0.037611 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c120b6c20bdb5d3abff9801da35dee337cbef829 | 481 | py | Python | src/python/Algorithms/scc.py | rmallermartins/graphun | 9ac252ccd3de5ce5c86c0ec1ffa06576bf02dca9 | [
"MIT"
] | 1 | 2015-09-20T20:53:38.000Z | 2015-09-20T20:53:38.000Z | src/python/Algorithms/scc.py | rmallermartins/graphun | 9ac252ccd3de5ce5c86c0ec1ffa06576bf02dca9 | [
"MIT"
] | null | null | null | src/python/Algorithms/scc.py | rmallermartins/graphun | 9ac252ccd3de5ce5c86c0ec1ffa06576bf02dca9 | [
"MIT"
] | null | null | null | import sys
sys.path.append("../Structures/")
import graph
from dfs import Dfs
from collections import deque
class Scc:
def execute(self, G):
dfs = Dfs()
dfs.executeNormal(G)
G.buildTranspGraph()
dfs.executeTransp(G)
self.printScc(G, dfs.getSccList())
def printScc(self,... | 21.863636 | 42 | 0.559252 | 57 | 481 | 4.719298 | 0.54386 | 0.037175 | 0.096654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328482 | 481 | 21 | 43 | 22.904762 | 0.832817 | 0 | 0 | 0 | 0 | 0 | 0.029106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c120c40d183f8e3e0347bdbc304c15ed7c63a90f | 1,784 | py | Python | pyxtal/constants.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 1 | 2022-02-25T22:38:58.000Z | 2022-02-25T22:38:58.000Z | pyxtal/constants.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 24 | 2018-04-06T20:57:11.000Z | 2018-08-03T23:51:40.000Z | pyxtal/constants.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 3 | 2018-05-20T15:04:24.000Z | 2018-07-13T14:49:37.000Z | """
Module to store the constants
"""
import numpy as np
from pyxtal.version import __version__
# Constants
# ------------------------------
tol_m = 0.3 # seperation tolerance in Angstroms
rad = np.pi / 180.0 # converting degrees to radians
deg = 180.0 / np.pi # converting radians to degrees
pyxtal_verbosity = 1 ... | 41.488372 | 71 | 0.41704 | 113 | 1,784 | 5.955752 | 0.725664 | 0.011887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015957 | 0.367713 | 1,784 | 42 | 72 | 42.47619 | 0.580674 | 0.14574 | 0 | 0 | 0 | 0.030303 | 0.676159 | 0.153642 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c125f72e747a58fa2b3296e2c5c3398213e9449e | 283 | py | Python | imageRecognition/testCode/resizeImage.py | Emilurenius/Pool-Table-RGB | 209ca77b21e5fe487c65488a8b77afbd7d9982da | [
"Unlicense"
] | null | null | null | imageRecognition/testCode/resizeImage.py | Emilurenius/Pool-Table-RGB | 209ca77b21e5fe487c65488a8b77afbd7d9982da | [
"Unlicense"
] | null | null | null | imageRecognition/testCode/resizeImage.py | Emilurenius/Pool-Table-RGB | 209ca77b21e5fe487c65488a8b77afbd7d9982da | [
"Unlicense"
] | null | null | null | import cv2
img = cv2.imread("resources/lambo.png")
print(img.shape)
imgResize = cv2.resize(img,(300,200))
print(imgResize.shape)
imgCropped = img[0:200,200:500]
cv2.imshow("Image", img)
cv2.imshow("Image resize", imgResize)
cv2.imshow("Image cropped", imgCropped)
cv2.waitKey(0) | 18.866667 | 39 | 0.734982 | 43 | 283 | 4.837209 | 0.465116 | 0.129808 | 0.201923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093385 | 0.091873 | 283 | 15 | 40 | 18.866667 | 0.715953 | 0 | 0 | 0 | 0 | 0 | 0.172535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c13fd713a0f2f3a58e8597e81451e809945faf77 | 764 | py | Python | Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/AdvanceFeatures/PatchCode.py | aspose-barcode/Aspose.BarCode-for-Java | 00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65 | [
"MIT"
] | 10 | 2016-05-09T07:05:51.000Z | 2019-05-22T07:31:49.000Z | Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/AdvanceFeatures/PatchCode.py | aspose-barcode/Aspose.BarCode-for-Java | 00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65 | [
"MIT"
] | 3 | 2017-05-01T08:36:07.000Z | 2019-01-09T21:16:13.000Z | Plugins/Aspose.BarCode Java for Jython/asposebarcode/WorkingWithBarcode/AdvanceFeatures/PatchCode.py | aspose-barcode/Aspose.BarCode-for-Java | 00a0ef02cb58fda84b47939f7f8c0e2e5ca9fb65 | [
"MIT"
] | 14 | 2016-04-09T07:27:37.000Z | 2021-05-26T10:42:26.000Z | from asposebarcode import Settings
from com.aspose.barcode import BarCodeBuilder
from com.aspose.barcode import Symbology
class PatchCode:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithBarcode/AdvanceBarcodeFeatures/PatchCode/'
# Instantiate barcode object
builder = ... | 28.296296 | 91 | 0.675393 | 76 | 764 | 6.631579 | 0.618421 | 0.027778 | 0.051587 | 0.079365 | 0.103175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257853 | 764 | 27 | 92 | 28.296296 | 0.888889 | 0.179319 | 0 | 0 | 0 | 0 | 0.181672 | 0.083601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c141f3fd55e7ce5599dce6da9d1e33bd41ae36ad | 8,453 | py | Python | sdk/python/pulumi_google_native/file/v1beta1/get_instance.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/file/v1beta1/get_instance.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/file/v1beta1/get_instance.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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 _utilities
fro... | 36.752174 | 239 | 0.640956 | 967 | 8,453 | 5.346432 | 0.180972 | 0.015087 | 0.025145 | 0.075435 | 0.210058 | 0.114507 | 0.078917 | 0.029014 | 0 | 0 | 0 | 0.001114 | 0.256714 | 8,453 | 229 | 240 | 36.912664 | 0.821741 | 0.131314 | 0 | 0.127389 | 1 | 0 | 0.150214 | 0.017689 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10828 | false | 0 | 0.038217 | 0 | 0.254777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c143abf2ec98e142b550d073a16683e6e77948a3 | 3,224 | py | Python | module2-sql-for-analysis/insert_titanic.py | ameralhomdy/DS-Unit-3-Sprint-2-SQL-and-Databases | 6de6cbb510ea3051adee343f612875bda1783a9a | [
"MIT"
] | null | null | null | module2-sql-for-analysis/insert_titanic.py | ameralhomdy/DS-Unit-3-Sprint-2-SQL-and-Databases | 6de6cbb510ea3051adee343f612875bda1783a9a | [
"MIT"
] | null | null | null | module2-sql-for-analysis/insert_titanic.py | ameralhomdy/DS-Unit-3-Sprint-2-SQL-and-Databases | 6de6cbb510ea3051adee343f612875bda1783a9a | [
"MIT"
] | null | null | null | import psycopg2
import pandas as pd
import sqlite3
import helper
from settings import secrets
def load_dataset(fpath, verbose=False):
df = pd.read_csv(fpath)
df['Name'] = df['Name'].str.replace("'", "")
if verbose:
print('Shape is: ', df.shape)
print('-'*80)
print('Pandas Data Fra... | 29.045045 | 94 | 0.585918 | 386 | 3,224 | 4.753886 | 0.297927 | 0.045777 | 0.021798 | 0.026158 | 0.182016 | 0.182016 | 0.171662 | 0.152589 | 0.152589 | 0.12861 | 0 | 0.011066 | 0.243176 | 3,224 | 110 | 95 | 29.309091 | 0.740984 | 0.10763 | 0 | 0.209877 | 0 | 0 | 0.366713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0.123457 | 0.061728 | 0 | 0.098765 | 0.283951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c149cfd9c23dd84afe143513bfeb4629f25013e4 | 1,998 | py | Python | queue_/queue_stack.py | makar-fedorov/programming-2021-19fpl | 335aa9959c4fd2adbbd1ec560d9005792dd022ca | [
"MIT"
] | null | null | null | queue_/queue_stack.py | makar-fedorov/programming-2021-19fpl | 335aa9959c4fd2adbbd1ec560d9005792dd022ca | [
"MIT"
] | null | null | null | queue_/queue_stack.py | makar-fedorov/programming-2021-19fpl | 335aa9959c4fd2adbbd1ec560d9005792dd022ca | [
"MIT"
] | null | null | null | """
Programming for linguists
Implementation of the data structure "QueueStack"
"""
from typing import Iterable
class QueueStack:
"""
Queue Data Structure from Stack
"""
def __init__(self, data: Iterable = None, queue_size: int = 'no_info'):
if data and isinstance(data, list):
s... | 26.64 | 93 | 0.562563 | 248 | 1,998 | 4.46371 | 0.282258 | 0.130081 | 0.054201 | 0.03523 | 0.234869 | 0.173442 | 0.121048 | 0.065041 | 0 | 0 | 0 | 0.003826 | 0.345846 | 1,998 | 74 | 94 | 27 | 0.843152 | 0.315816 | 0 | 0.0625 | 0 | 0 | 0.01209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.03125 | 0 | 0.40625 | 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 | 0 | 0 | 0 | 0 | 1 |
c14e227b71e5e5e356c7a8671750612d13164dd7 | 342 | py | Python | cactus/listener/__init__.py | danielchasehooper/Cactus | b6dc9fb92248e1fd7fb6f44b57b8835802e9d880 | [
"BSD-3-Clause"
] | 1,048 | 2016-06-04T07:37:40.000Z | 2022-03-06T02:03:16.000Z | cactus/listener/__init__.py | danielchasehooper/Cactus | b6dc9fb92248e1fd7fb6f44b57b8835802e9d880 | [
"BSD-3-Clause"
] | 49 | 2016-06-11T18:53:40.000Z | 2021-09-29T07:07:53.000Z | cactus/listener/__init__.py | kamalx/Cactus | 8badeff999b9e63092eef0bac2d33d1e6d7c50ed | [
"BSD-3-Clause"
] | 153 | 2016-06-04T08:55:22.000Z | 2021-11-12T17:35:51.000Z | import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Liste... | 22.8 | 99 | 0.792398 | 39 | 342 | 6.820513 | 0.666667 | 0.075188 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.143275 | 342 | 14 | 100 | 24.428571 | 0.90785 | 0 | 0 | 0 | 0 | 0 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c14eeb22a54bad19c3e3502b5805aea4035fad64 | 2,150 | py | Python | tests/__init__.py | posita/modwalk | afa29877cee39e1f0ed15aea92c1892f7763cfc4 | [
"MIT"
] | null | null | null | tests/__init__.py | posita/modwalk | afa29877cee39e1f0ed15aea92c1892f7763cfc4 | [
"MIT"
] | null | null | null | tests/__init__.py | posita/modwalk | afa29877cee39e1f0ed15aea92c1892f7763cfc4 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
# ======================================================================
"""
Copyright and other protections apply. Please see the accompanying
:doc:`LICENSE <LICENSE>` and :doc:`CREDITS <CREDITS>` file(s) for rights
and restrictions governing use of this software. All rights not
expressly wai... | 41.346154 | 170 | 0.662326 | 235 | 2,150 | 6.004255 | 0.52766 | 0.079376 | 0.051028 | 0.042523 | 0.199858 | 0.140326 | 0.096386 | 0.096386 | 0.096386 | 0 | 0 | 0.012036 | 0.111163 | 2,150 | 51 | 171 | 42.156863 | 0.726321 | 0.650698 | 0 | 0 | 0 | 0 | 0.121379 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c156457bc2fd760fb0007fa78b43e7dd0c8890e9 | 1,981 | py | Python | Demo/common/example_math_file.py | quecpython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | 4 | 2021-01-28T01:30:59.000Z | 2021-06-15T07:13:41.000Z | Demo/common/example_math_file.py | QuePython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | null | null | null | Demo/common/example_math_file.py | QuePython/EC100Y-SDK | 712c7eb7b54a3971009d94f6d6b21a6011d56f68 | [
"MIT"
] | 3 | 2021-04-07T09:55:59.000Z | 2022-01-08T15:15:23.000Z | # 数学运算math函数示例
import math
import log
# 设置日志输出级别
log.basicConfig(level=log.INFO)
math_log = log.getLogger("Math")
# x**y运算后的值
result = math.pow(2,3)
math_log.info(result)
# 8.0
# 取大于等于x的最小的整数值,如果x是一个整数,则返回x
result = math.ceil(4.12)
math_log.info(result)
# 5
# 把y的正负号加到x前面,可以使用0
result = math.copysign(2,-3)
math_... | 17.530973 | 130 | 0.732963 | 321 | 1,981 | 4.454829 | 0.358255 | 0.107692 | 0.161538 | 0.24965 | 0.234965 | 0.165734 | 0.11958 | 0.074825 | 0.057343 | 0 | 0 | 0.118377 | 0.104493 | 1,981 | 113 | 131 | 17.530973 | 0.687711 | 0.395255 | 0 | 0.456522 | 0 | 0 | 0.003466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
c1564a5c256a10855d150a5fd026c4361884e9a1 | 23,153 | py | Python | pandas/tests/strings/test_extract.py | oricou/pandas | 9405e58d9268041f5416711c051cf5429a19bf49 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 2 | 2021-05-07T04:58:36.000Z | 2021-05-07T04:58:59.000Z | pandas/tests/strings/test_extract.py | oricou/pandas | 9405e58d9268041f5416711c051cf5429a19bf49 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2021-05-11T00:05:40.000Z | 2021-05-11T00:05:40.000Z | pandas/tests/strings/test_extract.py | oricou/pandas | 9405e58d9268041f5416711c051cf5429a19bf49 | [
"PSF-2.0",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 2 | 2021-06-16T07:19:12.000Z | 2021-12-16T10:24:44.000Z | from datetime import datetime
import re
import numpy as np
import pytest
from pandas import (
DataFrame,
Index,
MultiIndex,
Series,
_testing as tm,
)
def test_extract_expand_None():
values = Series(["fooBAD__barBAD", np.nan, "foo"])
with pytest.raises(ValueError, match="expand must be Tr... | 35.456355 | 87 | 0.584546 | 3,170 | 23,153 | 4.110095 | 0.08612 | 0.038683 | 0.05388 | 0.074603 | 0.775731 | 0.72047 | 0.671732 | 0.647555 | 0.621997 | 0.589761 | 0 | 0.020818 | 0.228221 | 23,153 | 652 | 88 | 35.510736 | 0.708322 | 0.116702 | 0 | 0.430672 | 0 | 0 | 0.139063 | 0.029501 | 0 | 0 | 0 | 0 | 0.140756 | 1 | 0.037815 | false | 0 | 0.010504 | 0 | 0.048319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1694c22e735324dcf986339ad60bea367b99317 | 13,029 | py | Python | carla/evaluation/benchmark.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | null | null | null | carla/evaluation/benchmark.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | null | null | null | carla/evaluation/benchmark.py | jayanthyetukuri/CARLA | c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950 | [
"MIT"
] | null | null | null | import timeit
from typing import Union
import numpy as np
import pandas as pd
import copy
from carla.evaluation.distances import get_distances
from carla.evaluation.nearest_neighbours import yNN, yNN_prob, yNN_dist
from carla.evaluation.manifold import yNN_manifold, sphere_manifold
from carla.evaluation.process_nans ... | 29.477376 | 109 | 0.623072 | 1,268 | 13,029 | 6.143533 | 0.142744 | 0.067779 | 0.116816 | 0.045186 | 0.52991 | 0.48113 | 0.447754 | 0.434403 | 0.387291 | 0.324904 | 0 | 0.001321 | 0.302863 | 13,029 | 441 | 110 | 29.544218 | 0.856325 | 0.211528 | 0 | 0.316279 | 0 | 0 | 0.032722 | 0.015562 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.074419 | false | 0 | 0.083721 | 0 | 0.237209 | 0.004651 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1733997bcc45a94db8c344c734af2c48bfaa014 | 6,188 | py | Python | remind.py | ksu-hmi/Remind_Rx | c204b8f4884587a89a9f0bd5caba62fa941931a2 | [
"MIT"
] | null | null | null | remind.py | ksu-hmi/Remind_Rx | c204b8f4884587a89a9f0bd5caba62fa941931a2 | [
"MIT"
] | null | null | null | remind.py | ksu-hmi/Remind_Rx | c204b8f4884587a89a9f0bd5caba62fa941931a2 | [
"MIT"
] | 1 | 2020-11-06T20:48:56.000Z | 2020-11-06T20:48:56.000Z | #Importing all the necessary libraries:
from tkinter import *
import datetime
import time
import sys
import signal
import os
import webbrowser
import time
import re
# Log into the app
print ("RemindRx, your guide to better health")
print("Enter Email address(Username): ")
email_address = input()
while "@" not in ema... | 34.187845 | 161 | 0.660149 | 864 | 6,188 | 4.659722 | 0.274306 | 0.080477 | 0.04769 | 0.031297 | 0.226528 | 0.205415 | 0.15847 | 0.14456 | 0.14456 | 0.14456 | 0 | 0.015494 | 0.228184 | 6,188 | 181 | 162 | 34.187845 | 0.827471 | 0.077085 | 0 | 0.19708 | 0 | 0.007299 | 0.379092 | 0.006336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029197 | false | 0.10219 | 0.065693 | 0 | 0.124088 | 0.248175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c175e0ea31d9ea1c827628244f0c6bf3dec0f456 | 2,044 | py | Python | setup.py | Jim00000/waterwave-simulator | 62f00fc302bfbe938f4577da51d4644abea8e1f4 | [
"MIT"
] | 1 | 2021-02-20T08:19:54.000Z | 2021-02-20T08:19:54.000Z | setup.py | Jim00000/waterwave-simulator | 62f00fc302bfbe938f4577da51d4644abea8e1f4 | [
"MIT"
] | null | null | null | setup.py | Jim00000/waterwave-simulator | 62f00fc302bfbe938f4577da51d4644abea8e1f4 | [
"MIT"
] | null | null | null | """
Copyright (C) 2017 the team of Jim00000, ActKz and pityYo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, m... | 58.4 | 121 | 0.655577 | 256 | 2,044 | 5.171875 | 0.566406 | 0.066465 | 0.019637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008081 | 0.273483 | 2,044 | 35 | 122 | 58.4 | 0.883502 | 0.606654 | 0 | 0 | 0 | 0 | 0.204804 | 0.05689 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c17600716905d7d73138bda1369b9e6c303ae728 | 642 | py | Python | server/processes/migrations/0082_auto_20191219_0855.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | server/processes/migrations/0082_auto_20191219_0855.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | 6 | 2021-11-01T01:35:40.000Z | 2022-02-11T03:33:06.000Z | server/processes/migrations/0082_auto_20191219_0855.py | CloudReactor/task_manager | 464ca74371064fabb9a21b1f5bacba30360932ab | [
"Fair"
] | null | null | null | # Generated by Django 2.2.2 on 2019-12-19 08:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('processes', '0081_auto_20191217_0709'),
]
operations = [
migrations.AddField(
model_name='processtype',
... | 26.75 | 65 | 0.601246 | 65 | 642 | 5.707692 | 0.615385 | 0.010782 | 0.123989 | 0.145553 | 0.355795 | 0.355795 | 0.355795 | 0.355795 | 0.355795 | 0.355795 | 0 | 0.068889 | 0.299065 | 642 | 23 | 66 | 27.913043 | 0.755556 | 0.070093 | 0 | 0.352941 | 1 | 0 | 0.211538 | 0.152098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c177c8407b522c8c3861773c5cb5cd8a399d9c14 | 1,905 | py | Python | examples/chrome-dino/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 12 | 2019-04-18T13:32:48.000Z | 2020-06-19T13:45:34.000Z | examples/chrome-dino/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 1 | 2019-06-20T03:44:07.000Z | 2019-06-21T14:35:44.000Z | examples/chrome-dino/main.py | robianmcd/keras-mri | dd8619ca848cb64555fbd7aca5b7aa1941cdc08b | [
"MIT"
] | 3 | 2019-04-18T19:36:52.000Z | 2020-01-30T22:51:02.000Z | from keras.models import Model
from keras.layers import Input, Conv2D, Flatten, Dense, concatenate
import numpy as np
import imageio
import os
import os.path as path
import kmri
base_path = path.dirname(path.realpath(__file__))
weights_path = path.join(base_path, 'model-weights.h5')
labeled_path = path.join(base_path,... | 41.413043 | 102 | 0.489239 | 195 | 1,905 | 4.569231 | 0.34359 | 0.080808 | 0.040404 | 0.053872 | 0.06734 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018151 | 0.074541 | 1,905 | 46 | 103 | 41.413043 | 0.487238 | 0.367979 | 0 | 0 | 0 | 0 | 0.062762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.28 | 0 | 0.28 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1866a8f4e02c66657c9393a58c5d6d4fd7982ea | 1,187 | py | Python | lunch/models.py | pythondev0101/django_eats_easy_ordering_system | f65a88b4a46e056be35909799a01784f741cdfac | [
"MIT"
] | null | null | null | lunch/models.py | pythondev0101/django_eats_easy_ordering_system | f65a88b4a46e056be35909799a01784f741cdfac | [
"MIT"
] | 4 | 2020-02-11T23:58:56.000Z | 2021-06-08T19:52:35.000Z | lunch/models.py | pythondev0101/eats_easy_ordering_system | f65a88b4a46e056be35909799a01784f741cdfac | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class Order(models.Model):
"""Blueprint for Order object"""
weekorder = models.ForeignKey('human_resource.OrderForWeek',on_delete=models.SET_NULL,null=True)
name = models.Cha... | 38.290323 | 113 | 0.734625 | 160 | 1,187 | 5.31875 | 0.41875 | 0.056404 | 0.065805 | 0.079906 | 0.197415 | 0.13631 | 0.13631 | 0 | 0 | 0 | 0 | 0.008588 | 0.117102 | 1,187 | 30 | 114 | 39.566667 | 0.803435 | 0.043808 | 0 | 0 | 0 | 0 | 0.113778 | 0.024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.055556 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c1919785121420d2cf3c1d8b70b7d4984a424e77 | 1,141 | py | Python | pypadb/decorator/select.py | ChenzDNA/pypadb | c63f220dc04788151da0cd699c7d460f3740ef92 | [
"Apache-2.0"
] | 1 | 2022-01-17T13:49:49.000Z | 2022-01-17T13:49:49.000Z | pypadb/decorator/select.py | ChenzDNA/pypadb | c63f220dc04788151da0cd699c7d460f3740ef92 | [
"Apache-2.0"
] | null | null | null | pypadb/decorator/select.py | ChenzDNA/pypadb | c63f220dc04788151da0cd699c7d460f3740ef92 | [
"Apache-2.0"
] | null | null | null | import functools
from types import GenericAlias
from typing import Callable, Any
from ..connection_pool import cursor_type, connection
from ..exception import RequireReturnTypeAnnotation
from ..utils import inspect_util
def select(sql: str, data_type: Any) -> Callable:
def deco(fun: Callable):
@functools... | 32.6 | 95 | 0.598598 | 128 | 1,141 | 5.179688 | 0.421875 | 0.060332 | 0.042232 | 0.057315 | 0.069382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318142 | 1,141 | 34 | 96 | 33.558824 | 0.852185 | 0 | 0 | 0 | 0 | 0 | 0.026293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c192b47adae9eb3879d4982c65815cfcb207bdea | 834 | py | Python | Markov.py | timestocome/AliceInWonderland | fbdc2c398bf87e923aa5ed0eadce28b9468d0783 | [
"MIT"
] | null | null | null | Markov.py | timestocome/AliceInWonderland | fbdc2c398bf87e923aa5ed0eadce28b9468d0783 | [
"MIT"
] | null | null | null | Markov.py | timestocome/AliceInWonderland | fbdc2c398bf87e923aa5ed0eadce28b9468d0783 | [
"MIT"
] | 1 | 2019-09-17T16:20:55.000Z | 2019-09-17T16:20:55.000Z |
# http://github.com/timestocome/
# build a markov chain and use it to predict Alice In Wonderland/Through the Looking Glass text
import numpy as np
import pickle
from collections import Counter
import markovify # https://github.com/jsvine/markovify
################################################################... | 25.272727 | 95 | 0.586331 | 97 | 834 | 4.731959 | 0.628866 | 0.039216 | 0.043573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008219 | 0.1247 | 834 | 33 | 96 | 25.272727 | 0.620548 | 0.384892 | 0 | 0 | 0 | 0 | 0.206044 | 0.156593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c195ccf037f167efac02fe8e8a152ceac2635f4e | 9,524 | py | Python | test/schema.py | fanngyuan/vitess | 8e4f697be6c06dfb50f91cb083e156bdf45b72f8 | [
"BSD-3-Clause"
] | null | null | null | test/schema.py | fanngyuan/vitess | 8e4f697be6c06dfb50f91cb083e156bdf45b72f8 | [
"BSD-3-Clause"
] | null | null | null | test/schema.py | fanngyuan/vitess | 8e4f697be6c06dfb50f91cb083e156bdf45b72f8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import os
import socket
import utils
import tablet
shard_0_master = tablet.Tablet()
shard_0_replica1 = tablet.Tablet()
shard_0_replica2 = tablet.Tablet()
shard_0_rdonly = tablet.Tablet()
shard_0_backup = tablet.Tablet()
shard_1_master = tablet.Tablet()
shard_1_replica1 = tablet.Tablet()
def setup... | 34.382671 | 103 | 0.691516 | 1,298 | 9,524 | 4.748074 | 0.173344 | 0.068149 | 0.075288 | 0.057926 | 0.429985 | 0.314782 | 0.261236 | 0.21986 | 0.187246 | 0.127049 | 0 | 0.026725 | 0.202436 | 9,524 | 276 | 104 | 34.507246 | 0.784623 | 0.125577 | 0 | 0.193237 | 0 | 0 | 0.185127 | 0.014463 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004831 | 0.019324 | null | null | 0.014493 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c199677582d8f32ea39fbcf2bb3589a6c45802dc | 515 | py | Python | surveillance/stats.py | bkmeneguello/surveillance | 8eaa25274bf4566abd0baa810e9dd93f3c4ff417 | [
"Unlicense"
] | 1 | 2016-11-20T23:38:07.000Z | 2016-11-20T23:38:07.000Z | surveillance/stats.py | bkmeneguello/surveillance | 8eaa25274bf4566abd0baa810e9dd93f3c4ff417 | [
"Unlicense"
] | null | null | null | surveillance/stats.py | bkmeneguello/surveillance | 8eaa25274bf4566abd0baa810e9dd93f3c4ff417 | [
"Unlicense"
] | null | null | null | import os
import statsd
client = statsd.StatsClient(prefix='surveillance',
host=os.environ.get('STATSD_HOST', 'localhost'),
port=int(os.environ.get('STATSD_PORT', 8125)),
maxudpsize=int(os.environ.get('STATSD_MAX_UDP_SIZE', 512)),
... | 30.294118 | 87 | 0.590291 | 60 | 515 | 4.966667 | 0.466667 | 0.120805 | 0.161074 | 0.241611 | 0.14094 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024523 | 0.287379 | 515 | 16 | 88 | 32.1875 | 0.787466 | 0 | 0 | 0 | 0 | 0 | 0.141748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1a1baf56ca935da029c36d9f6bbded8d4d7581a | 755 | py | Python | authentik/stages/user_write/api.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 15 | 2020-01-05T09:09:57.000Z | 2020-11-28T05:27:39.000Z | authentik/stages/user_write/api.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 302 | 2020-01-21T08:03:59.000Z | 2020-12-04T05:04:57.000Z | authentik/stages/user_write/api.py | BeryJu/passbook | 350f0d836580f4411524614f361a76c4f27b8a2d | [
"MIT"
] | 3 | 2020-03-04T08:21:59.000Z | 2020-08-01T20:37:18.000Z | """User Write Stage API Views"""
from rest_framework.viewsets import ModelViewSet
from authentik.core.api.used_by import UsedByMixin
from authentik.flows.api.stages import StageSerializer
from authentik.stages.user_write.models import UserWriteStage
class UserWriteStageSerializer(StageSerializer):
"""UserWriteSt... | 29.038462 | 97 | 0.762914 | 75 | 755 | 7.48 | 0.546667 | 0.069519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148344 | 755 | 25 | 98 | 30.2 | 0.872473 | 0.099338 | 0 | 0 | 0 | 0 | 0.085843 | 0.036145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c1a804ed96e390221cbe98c571970ffd946bc657 | 11,084 | py | Python | preprocess_optimized.py | OEMarshall/REU2016-Supervised-Experiments | 2f1c784d870136d0b6911662a569b6f35c86f2e5 | [
"MIT"
] | null | null | null | preprocess_optimized.py | OEMarshall/REU2016-Supervised-Experiments | 2f1c784d870136d0b6911662a569b6f35c86f2e5 | [
"MIT"
] | null | null | null | preprocess_optimized.py | OEMarshall/REU2016-Supervised-Experiments | 2f1c784d870136d0b6911662a569b6f35c86f2e5 | [
"MIT"
] | null | null | null | import numpy
import sys
import pickle
f = open("kddcup.names","r")
counter = 1
labels = {}; features = {}
for line in f:
line = line.strip() #get rid of period at end
if counter == 1:
s = line.split(",") #split first line on comma
for label in s:
labels[label] = 0 #each CSV in first line is label, add to
... | 37.445946 | 124 | 0.614219 | 1,714 | 11,084 | 3.84189 | 0.1972 | 0.060744 | 0.089598 | 0.08079 | 0.274108 | 0.204252 | 0.061655 | 0.030068 | 0.013364 | 0.013364 | 0 | 0.036269 | 0.238813 | 11,084 | 295 | 125 | 37.572881 | 0.744222 | 0.328582 | 0 | 0.145923 | 0 | 0 | 0.084149 | 0.002855 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004292 | 0.012876 | null | null | 0.030043 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1abf9253cf29a61e45750d1bf377b0136960f87 | 240 | py | Python | src/scmdata/__init__.py | chrisroadmap/scmdata | eb15096d6e33907302581d8add68d77e29a62166 | [
"BSD-3-Clause"
] | 2 | 2020-05-11T14:44:36.000Z | 2021-09-18T12:08:41.000Z | src/scmdata/__init__.py | chrisroadmap/scmdata | eb15096d6e33907302581d8add68d77e29a62166 | [
"BSD-3-Clause"
] | 160 | 2020-03-26T06:29:23.000Z | 2022-03-18T23:36:24.000Z | src/scmdata/__init__.py | chrisroadmap/scmdata | eb15096d6e33907302581d8add68d77e29a62166 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T16:07:10.000Z | 2021-11-11T16:07:10.000Z | """
scmdata, simple data handling for simple climate model data
"""
from ._version import get_versions # isort:skip
__version__ = get_versions()["version"]
del get_versions
from scmdata.run import ScmRun, run_append # noqa: F401, E402
| 21.818182 | 62 | 0.758333 | 33 | 240 | 5.242424 | 0.636364 | 0.190751 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.15 | 240 | 10 | 63 | 24 | 0.818627 | 0.366667 | 0 | 0 | 0 | 0 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c1ac178b7ba46b37c8636711a92026a1c31bb185 | 1,330 | py | Python | UNIQ/actquant.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | 6 | 2019-04-28T05:30:00.000Z | 2020-01-21T08:16:13.000Z | UNIQ/actquant.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | null | null | null | UNIQ/actquant.py | aqui-tna/darts-UNIQ | 293a27b104bc0f53c6093829d1184686b788fba9 | [
"Apache-2.0"
] | 5 | 2019-04-29T05:57:04.000Z | 2021-04-21T00:19:11.000Z | import torch.nn as nn
from UNIQ.quantize import act_quantize, act_noise, check_quantization
import torch.nn.functional as F
class ActQuant(nn.Module):
def __init__(self, quatize_during_training=False, noise_during_training=False, quant=False, noise=False,
bitwidth=32):
super(ActQuant, se... | 40.30303 | 108 | 0.697744 | 167 | 1,330 | 5.299401 | 0.305389 | 0.221469 | 0.166102 | 0.141243 | 0.327684 | 0.327684 | 0.327684 | 0.327684 | 0.327684 | 0.20565 | 0 | 0.001931 | 0.221053 | 1,330 | 32 | 109 | 41.5625 | 0.852317 | 0.056391 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.12 | false | 0 | 0.12 | 0 | 0.32 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1ad9d6209f5a2c39a4dd94ace1330887348eebb | 1,566 | py | Python | test/test_assertions.py | maxtremaine/sudoku_solver.py | 79c4cc253643a39362c56bd839eb2f973b7cb7d0 | [
"Unlicense"
] | null | null | null | test/test_assertions.py | maxtremaine/sudoku_solver.py | 79c4cc253643a39362c56bd839eb2f973b7cb7d0 | [
"Unlicense"
] | null | null | null | test/test_assertions.py | maxtremaine/sudoku_solver.py | 79c4cc253643a39362c56bd839eb2f973b7cb7d0 | [
"Unlicense"
] | null | null | null | from unittest import TestCase
from src.assertions import is_sudoku_file, is_sudoku_string
class TestAssertions(TestCase):
def test_is_sudoku_file(self):
valid_file = '\n'.join([
' abc def ghi',
'1 7__|_4_|__1',
'2 __1|___|2__',
'3 _6_|2_9|_8_',
... | 36.418605 | 109 | 0.561941 | 187 | 1,566 | 2.823529 | 0.208556 | 0.136364 | 0.132576 | 0.130682 | 0.361742 | 0.352273 | 0.219697 | 0.219697 | 0.219697 | 0.219697 | 0 | 0.092406 | 0.302043 | 1,566 | 42 | 110 | 37.285714 | 0.390668 | 0 | 0 | 0.564103 | 0 | 0 | 0.358876 | 0.15645 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.051282 | false | 0 | 0.051282 | 0 | 0.128205 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1adc27d5a87e1a51bba930690c6bad475868ade | 1,864 | py | Python | badwing/firework.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | 3 | 2020-03-23T06:43:25.000Z | 2022-02-18T16:35:56.000Z | badwing/firework.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | 2 | 2020-03-26T02:05:36.000Z | 2021-08-02T19:13:06.000Z | badwing/firework.py | kfields/badwing | 5f53c98cbb6fca8390e1632fa559f5201861365b | [
"MIT"
] | null | null | null | import random
import arcade
from badwing.constants import *
from badwing.effect import Effect
from badwing.particle import AnimatedAlphaParticle
#TODO: Some of this will go up into ParticleEffect
class Firework(Effect):
def __init__(self, position=(0,0), r1=30, r2=40):
super().__init__(position)
... | 33.285714 | 86 | 0.624464 | 233 | 1,864 | 4.811159 | 0.454936 | 0.053524 | 0.021409 | 0.024978 | 0.039251 | 0.039251 | 0 | 0 | 0 | 0 | 0 | 0.031555 | 0.285944 | 1,864 | 56 | 87 | 33.285714 | 0.810669 | 0.123927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.119048 | false | 0 | 0.119048 | 0 | 0.261905 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1ae04672617e9718dea8c73133e2c4940e396cd | 1,664 | py | Python | tf_quant_finance/math/qmc/__init__.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 3,138 | 2019-07-24T21:43:17.000Z | 2022-03-30T12:11:09.000Z | tf_quant_finance/math/qmc/__init__.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 63 | 2019-09-07T19:16:03.000Z | 2022-03-29T19:29:40.000Z | tf_quant_finance/math/qmc/__init__.py | slowy07/tf-quant-finance | 0976f720fb58a2d7bfd863640c12a2425cd2f94f | [
"Apache-2.0"
] | 423 | 2019-07-26T21:28:05.000Z | 2022-03-26T13:07:44.000Z | # Lint as: python3
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 39.619048 | 109 | 0.808894 | 242 | 1,664 | 5.293388 | 0.417355 | 0.042155 | 0.077283 | 0.126464 | 0.330211 | 0.330211 | 0.310695 | 0.295082 | 0.266979 | 0.07338 | 0 | 0.006164 | 0.122596 | 1,664 | 41 | 110 | 40.585366 | 0.871233 | 0.374399 | 0 | 0 | 0 | 0 | 0.174339 | 0.101861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c1b1855717bcffe783d999170bec0cfedec81c36 | 4,530 | py | Python | bo/pp/pp_gp_my_distmat.py | ZachZhu7/banana-git | 09e049b91d9b5c39b44191318b7b22692d38d5dd | [
"Apache-2.0"
] | 167 | 2019-10-26T19:54:49.000Z | 2021-12-14T15:25:32.000Z | bo/pp/pp_gp_my_distmat.py | ZachZhu7/banana-git | 09e049b91d9b5c39b44191318b7b22692d38d5dd | [
"Apache-2.0"
] | 8 | 2019-10-28T12:40:13.000Z | 2020-07-26T03:19:43.000Z | bo/pp/pp_gp_my_distmat.py | ZachZhu7/banana-git | 09e049b91d9b5c39b44191318b7b22692d38d5dd | [
"Apache-2.0"
] | 23 | 2019-10-28T12:26:32.000Z | 2020-10-12T12:31:39.000Z | """
Classes for GP models without any PP backend, using a given distance matrix.
"""
from argparse import Namespace
import time
import copy
import numpy as np
from scipy.spatial.distance import cdist
from bo.pp.pp_core import DiscPP
from bo.pp.gp.gp_utils import kern_exp_quad, kern_matern32, \
get_cholesky_decomp, ... | 36.532258 | 95 | 0.64415 | 638 | 4,530 | 4.377743 | 0.246082 | 0.028643 | 0.035088 | 0.026853 | 0.222342 | 0.166488 | 0.129968 | 0.077336 | 0.077336 | 0.077336 | 0 | 0.012093 | 0.233333 | 4,530 | 123 | 96 | 36.829268 | 0.792111 | 0.183223 | 0 | 0.049383 | 0 | 0 | 0.026685 | 0 | 0 | 0 | 0 | 0.01626 | 0 | 1 | 0.148148 | false | 0.024691 | 0.111111 | 0 | 0.333333 | 0.17284 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1b19be323fa6f89620f75ce693b73f91c28df81 | 291 | py | Python | Practice/subsetprod.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | Practice/subsetprod.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | Practice/subsetprod.py | ashishjayamohan/competitive-programming | 05c5c560c2c2eb36121c52693b8c7d084f435f9e | [
"MIT"
] | null | null | null | T = int(input())
while T:
n = int(input())
a = list(map(int, input().split()))
a.sort()
negs0 = a[-5] * a[-4] * a[-3] * a[-2] * a[-1]
negs2 = a[0] * a[1] * a[-1] * a[-2] * a[-3]
negs4 = a[0] * a[1] * a[2] * a[3] * a[-1]
print(max(negs0, negs2, negs4))
T -= 1
| 26.454545 | 49 | 0.412371 | 56 | 291 | 2.142857 | 0.375 | 0.083333 | 0.075 | 0.066667 | 0.15 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0.10628 | 0.28866 | 291 | 10 | 50 | 29.1 | 0.47343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1b5aa3aec71c786345681d706a1ccb96078f5ac | 4,684 | py | Python | Crawler/GitCrawler_U.py | FalconLK/FaCoY | 520a66f94fe501b4328656a418791193266739e9 | [
"Apache-2.0"
] | 24 | 2018-10-01T14:45:16.000Z | 2022-02-19T08:28:26.000Z | Crawler/GitCrawler_U.py | FalconLK/FaCoY | 520a66f94fe501b4328656a418791193266739e9 | [
"Apache-2.0"
] | 2 | 2019-06-10T14:08:38.000Z | 2021-10-13T01:05:51.000Z | Crawler/GitCrawler_U.py | FalconLK/facoy | 520a66f94fe501b4328656a418791193266739e9 | [
"Apache-2.0"
] | 7 | 2018-10-19T05:56:16.000Z | 2022-02-20T04:51:07.000Z | #!/usr/bin/jython
# -*- coding: utf-8 -*-
from subprocess import call # , Popen
import requests
from os import makedirs, removedirs, walk, remove, listdir, stat, rename
from os.path import isdir, join, getmtime, abspath
from pymysql import connect
from time import strftime, gmtime
def many(cur):
while True:
... | 31.863946 | 133 | 0.546114 | 573 | 4,684 | 4.340314 | 0.375218 | 0.028146 | 0.024125 | 0.013269 | 0.036992 | 0.036992 | 0.036992 | 0.036992 | 0.036992 | 0.036992 | 0 | 0.027831 | 0.332622 | 4,684 | 146 | 134 | 32.082192 | 0.767754 | 0.117421 | 0 | 0.057143 | 0 | 0 | 0.117985 | 0.035171 | 0 | 0 | 0 | 0.006849 | 0 | 0 | null | null | 0.019048 | 0.07619 | null | null | 0.07619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1b8054632b4339c9cf99306c31ecd2ac93083a8 | 1,200 | py | Python | netbox_ddns/migrations/0003_dnsstatus.py | FreedomNetNL/netbox-ddns | 6fb341ef16387a46108c8c0aa9ae95c1635a9f16 | [
"Apache-2.0"
] | 58 | 2020-04-15T00:29:32.000Z | 2022-03-11T21:57:25.000Z | netbox_ddns/migrations/0003_dnsstatus.py | FreedomNetNL/netbox-ddns | 6fb341ef16387a46108c8c0aa9ae95c1635a9f16 | [
"Apache-2.0"
] | 16 | 2020-04-15T10:31:53.000Z | 2022-03-07T20:23:13.000Z | netbox_ddns/migrations/0003_dnsstatus.py | BouchardClaude/netbox-ddns | 4c50cfaff2183fdea8a3987191a19a4d8d139329 | [
"Apache-2.0"
] | 9 | 2020-04-17T08:23:49.000Z | 2021-12-20T07:59:15.000Z | # Generated by Django 3.0.5 on 2020-04-15 10:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ipam', '0036_standardize_description'),
('netbox_ddns', '0002_add_ttl'),
]
operations = [
migration... | 37.5 | 119 | 0.603333 | 117 | 1,200 | 6.034188 | 0.581197 | 0.050992 | 0.073654 | 0.096317 | 0.308782 | 0.288952 | 0.288952 | 0 | 0 | 0 | 0 | 0.026136 | 0.266667 | 1,200 | 31 | 120 | 38.709677 | 0.776136 | 0.0375 | 0 | 0 | 1 | 0 | 0.178664 | 0.024284 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c1ca22b109aff6fd48fb266845ca6f3332fc0a | 11,594 | py | Python | tests/test_box.py | ikalnytskyi/picobox | 7744331a702941b4acbbb983d245a26100744919 | [
"MIT"
] | 35 | 2017-11-26T20:04:46.000Z | 2020-09-11T08:41:16.000Z | tests/test_box.py | ikalnytskyi/picobox | 7744331a702941b4acbbb983d245a26100744919 | [
"MIT"
] | 9 | 2017-11-14T15:44:04.000Z | 2021-05-08T19:00:46.000Z | tests/test_box.py | ikalnytskyi/picobox | 7744331a702941b4acbbb983d245a26100744919 | [
"MIT"
] | 2 | 2018-03-15T20:05:10.000Z | 2021-07-08T00:39:54.000Z | """Test picobox class."""
import collections
import inspect
import itertools
import traceback
import picobox
import pytest
def test_box_put_key(boxclass, supported_key):
testbox = boxclass()
testbox.put(supported_key, "the-value")
assert testbox.get(supported_key) == "the-value"
def test_box_put_valu... | 22.733333 | 86 | 0.504313 | 1,530 | 11,594 | 3.710458 | 0.09281 | 0.014444 | 0.067641 | 0.019024 | 0.6514 | 0.582174 | 0.549938 | 0.521578 | 0.505373 | 0.47349 | 0 | 0.050078 | 0.281784 | 11,594 | 509 | 87 | 22.777996 | 0.63168 | 0.001639 | 0 | 0.573643 | 0 | 0 | 0.059124 | 0 | 0 | 0 | 0 | 0 | 0.080103 | 1 | 0.129199 | false | 0.118863 | 0.015504 | 0.03876 | 0.198966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c1c630572405487b922b9b7cc3e72ffddcf037ed | 727 | py | Python | test/test_version.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | 1 | 2021-04-12T09:32:21.000Z | 2021-04-12T09:32:21.000Z | test/test_version.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | null | null | null | test/test_version.py | dell/dataiq-plugin-example | 7c323ec2d878ed705c4c74ab045e15595bd84b0b | [
"Apache-2.0"
] | null | null | null | import unittest
from test import AppTest
class TestVersion(AppTest):
@staticmethod
def make_version_request(client, token):
return client.get(
'/version/',
headers={'Authorization': token})
def test_version(self, client, auth_provider):
r = TestVersion.make_versio... | 24.233333 | 50 | 0.602476 | 85 | 727 | 4.894118 | 0.458824 | 0.079327 | 0.129808 | 0.173077 | 0.173077 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.288858 | 727 | 29 | 51 | 25.068966 | 0.783366 | 0 | 0 | 0.090909 | 0 | 0 | 0.066025 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.136364 | false | 0 | 0.090909 | 0.045455 | 0.318182 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
c1cf0e4b5f392d7c257a8d6c2ffdfc65d44259a4 | 1,474 | py | Python | src/ssh_server.py | ramonmeza/PythonSSHServerTutorial | f3e88792b44e59b706c71df9248b287935daa81d | [
"MIT"
] | 4 | 2020-11-02T11:15:45.000Z | 2022-03-24T03:45:02.000Z | src/ssh_server.py | ramonmeza/PythonSSHServerTutorial | f3e88792b44e59b706c71df9248b287935daa81d | [
"MIT"
] | null | null | null | src/ssh_server.py | ramonmeza/PythonSSHServerTutorial | f3e88792b44e59b706c71df9248b287935daa81d | [
"MIT"
] | null | null | null | import paramiko
from src.server_base import ServerBase
from src.ssh_server_interface import SshServerInterface
from src.shell import Shell
class SshServer(ServerBase):
def __init__(self, host_key_file, host_key_file_password=None):
super(SshServer, self).__init__()
self._host_key = paramiko.RSAK... | 33.5 | 101 | 0.62483 | 169 | 1,474 | 5.248521 | 0.426036 | 0.047351 | 0.049605 | 0.047351 | 0.075536 | 0.067644 | 0.067644 | 0 | 0 | 0 | 0 | 0 | 0.31479 | 1,474 | 44 | 102 | 33.5 | 0.878218 | 0.255088 | 0 | 0.083333 | 0 | 0 | 0.002757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.125 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.