hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
0b124230923f4cc04dd7b876719e51743fc23060
2,382
py
Python
snake/draw.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
1
2019-09-27T13:47:20.000Z
2019-09-27T13:47:20.000Z
snake/draw.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
snake/draw.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
import pygame class Drawer(): DEFAULT_BACKGROUND_COLOR = 0, 0, 0 DEFAULT_GRID_COLOR = 40, 40, 40 DEFAULT_SNAKE_COLOR = 0, 255, 0 DEFAULT_APPLE_COLOR = 255, 0, 0 DEFAULT_SCORE_COLOR = 255, 255, 255 DEFAULT_CELL_WIDTH = 10 DEFAULT_CELL_HEIGHT = 10 def __init__(self, grid_width, grid_he...
38.419355
95
0.65911
8cdf223fe2b67756c037896a349946c4eeb5bc0e
2,983
py
Python
src/onegov/org/forms/ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat import MessageFile from onegov.core.security import Private from onegov.form import Form from onegov.form.fields import ChosenSelectField from onegov.form.fields import UploadFileWithORMSupport from onegov.form.filters import strip_whitespace from onegov.form.validators import FileSizeLimit from onegov...
30.752577
76
0.644318
ad1425998173266fc25fc758bfb578667e1a0bfe
5,882
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/crack_caesar/crack_caesar.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/crack_caesar/crack_caesar.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/crack_caesar/crack_caesar.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Write a program that automatically finds the key for the ciphertext in the file [`ciphertext.txt`](ciphertext.txt), then decodes it and shows the plaintext. # (All non-letters should pass through the decoding as-is, i.e. spaces and punctuation should be preserved. The input will not contain any lowercase letters) imp...
36.308642
158
0.573444
d150c64d96a001c1e2d929717baef3470056a2ee
4,940
py
Python
haas_lib_bundles/python/libraries/ui_lite/humiturePanel/humiturePanel.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/ui_lite/humiturePanel/humiturePanel.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/ui_lite/humiturePanel/humiturePanel.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import lvgl as lv RESOURCES_ROOT = "S:/data/pyamp/" lvglInitialized = False class HumiturePanel: container = None scr = None humidityValue = None humidityLable = None def __init__(self): self.createPage() def createPage(self): global lvglInitialized if lvglInitializ...
36.865672
98
0.665182
7e472e219539dcaf472080e50b0edba6edd1b573
565
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/set_pricing_rule_for_buying_or_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_0/set_pricing_rule_for_buying_or_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/set_pricing_rule_for_buying_or_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc("accounts", "doctype", "pricing_rule") frappe.db.sql("""update `tabPricing Rule` set selling=1 where i...
40.357143
92
0.718584
0ea09e77cc9aa5aea6a85535eb54fd8bbfde507d
3,835
py
Python
U_Generate_Image.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
U_Generate_Image.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
U_Generate_Image.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
""" https://www.pygame.org/docs/tut/PygameIntro.html Generate an image for the programm to use """ import pygame from os import walk from numpy import where # import main def int_put(text): return int(input(text)) def to_real_pos(x, y, c): return x * c, y * c def run(grid=None, rest=None): p...
29.5
109
0.599739
0ea398234e1a7f282d04ff3222f391d870aa4973
423
py
Python
2015/09/seminary-20150921/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/09/seminary-20150921/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/09/seminary-20150921/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1HySLHXxoFuNY8c-XkZbrYGI8n09PxgJVzb0TivTNdps' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS AGES = [ '...
18.391304
77
0.70922
adbb004012e04fdaff50fec8673238429b87a564
1,002
py
Python
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P07_CinemaTickets.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P07_CinemaTickets.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Lab/Solutions/P07_CinemaTickets.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
capacity = 0 total_tickets = 0 kid = 0 student = 0 standard = 0 while True: movie = input() if movie == "Finish": break total_available = int(input()) available = total_available while available != 0: seat_type = input() if seat_type == "End": break else...
26.368421
74
0.571856
70f4ebeb54dafb21f7b4db3c4a042908fd7ea645
164
py
Python
src/dao/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/dao/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/dao/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""dao - Data Access Object packages for IO tasks""" from .csv_ import CSVDAO from .db import StationDAO, DBManager __all__ = ["CSVDAO", "DBManager", "StationDAO"]
32.8
52
0.731707
cb0704f108d74b6e25acb6ffc808d26a5970b2c8
6,004
py
Python
official/cv/resnext/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/resnext/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/resnext/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
38.735484
112
0.7002
380157f29253735aefaba3e9820312f638b4a040
958
py
Python
nz_crawl_demo/day6/test.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day6/test.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day6/test.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import urllib.request import urllib.parse import json import time import random import hashlib content = input('请输入需要翻译的句子:') url = 'http://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule&sessionFrom=https://www.google.com/' data = {} u = 'fanyideskweb' d = content f = str(int(time.time() * 1000) + ...
23.365854
113
0.68476
38a0f6f37fa7bb6842187b535994b1bce8689560
46
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.13-list-sum-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.13-list-sum-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.13-list-sum-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li = [1, 2, 3] result = sum(li) print(result)
11.5
16
0.586957
2acf216b90720c266e9582ab16b4204a8a072a25
47
py
Python
backbone/resnest/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
3,168
2020-04-04T01:22:28.000Z
2022-03-31T12:14:50.000Z
backbone/resnest/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
138
2020-04-04T02:12:30.000Z
2022-03-21T03:20:52.000Z
backbone/resnest/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
527
2020-04-04T05:17:26.000Z
2022-03-31T06:15:34.000Z
from .resnest import * from .ablation import *
15.666667
23
0.744681
2d7248b30bd5aa22104d9b1ba2c462c688024b40
2,113
py
Python
S6/CS334-NPL/004b_chat_server_udp (006b).py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S6/CS334-NPL/004b_chat_server_udp (006b).py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S6/CS334-NPL/004b_chat_server_udp (006b).py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
import socket import select HEADER_LENGTH = 10 IP = "127.0.0.1" PORT = 1234 server_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_socket.bind((IP, PORT)) #server_socket.listen() sockets_list = [server_socket] clients = {} print(...
36.431034
123
0.649787
fa7b4c5a512eede009761a93e4235a0790ea40fd
3,728
py
Python
Fastir_Collector/factory/factory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/factory/factory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/factory/factory.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from settings import FASTIR_ROOT import os import sys import inspect import importlib import pkgutil def _list_packages(): directories = [] lib_dir = FASTIR_ROOT if lib_dir.endswith('.zip'): lib_dir = lib_dir[0:-4] for root, dirna...
31.863248
98
0.61427
fae73f229927d672e051bb07274e406b0550377c
259
py
Python
top/clearlight/reptile/bilibili/fish_c/reptile/demo02.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/fish_c/reptile/demo02.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/fish_c/reptile/demo02.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import urllib.request response = urllib.request.urlopen('http://placekitten.com/g/1080/960') cat_img = response.read() with open('cat_1080_960.jpg', 'wb') as f: f.write(cat_img) print(response.geturl()) print(response.info()) print(response.getcode())
23.545455
70
0.72973
87b6f5bdc47af4e7633e98a376791c4c7b57adba
3,186
py
Python
research/nlp/hypertext/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/hypertext/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/hypertext/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
36.62069
111
0.704331
57833be467ad86cb041c0a60b77e87f2a347a6e2
2,477
py
Python
Start.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
1
2022-03-16T11:25:31.000Z
2022-03-16T11:25:31.000Z
Start.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
null
null
null
Start.py
StefanHol/SchoolReport_Excel2Word2PDF
49be73f669df7b5f25713dac3cc96929d44211e4
[ "Apache-2.0" ]
null
null
null
# python3 # coding: utf-8 import sys import os import logging import logging.handlers try: from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QIcon from PyQt5.QtCore import QSize used_Qt_Version = 5 print("PyQt Version:", used_Qt_Version) except Exception as e: print(e) exit(...
30.207317
80
0.679451
eabea51633e4aaad70fa99fca7b672681481c1cf
2,335
py
Python
showcase8/com/aaron/Serial_Electronic_balance.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase8/com/aaron/Serial_Electronic_balance.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase8/com/aaron/Serial_Electronic_balance.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- codiing:utf-8 -*- """ serial port test 通讯设置格式: 波特率:9600(72.b.L.4) 校验位:NONE(73.PA.0) 数据位:8 停止位:2 4F 30 0D 0A 正常结束 4F 31 0D 0A 持续输出 工作位(71.o.c.1):1 4F 32 0D 0A 如果稳定持续输出 工作位(71.o.c.2):2 4F 39 0D 0A 稳定后输出指令 工作位(71.o.c.4):4 4F 38 0D 0A 立即后输出指令(不管是否稳定) 工作位(71.o.c.4):4 响应数据:A00 正常结束 41 30 30 E01 命令错误 45 30 31 """ ...
22.451923
95
0.527623
21d0d9e713166473bfecf7f9836ff99e890ecaca
10,008
py
Python
recommenders/multi_armed_bandits_benchmarks/multi_armed_bandits.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
recommenders/multi_armed_bandits_benchmarks/multi_armed_bandits.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
recommenders/multi_armed_bandits_benchmarks/multi_armed_bandits.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Exploring multi-armed bandit baseline strategies # Our problem: # For the next 100 days, we will have 1 hour to play a video games. # We have 20 games, but have no idea which one we will enjoy the most. # How do we decide what to play each day? # We assume that the enjoyment we get from a single hou...
37.066667
131
0.698241
df7bdfe73420e55ca4570e85a14a28a9c7d00604
2,663
py
Python
account/forms.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
account/forms.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
account/forms.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth import password_validation, authenticate #%% from account.models import Account, AccountManager from files.models import ExcelDocument #%% class AccountAuthenticationForm(forms.ModelForm): """ A f...
35.039474
145
0.68006
d53838bca333c27d0b558ba8483e9a388f4bc5d6
4,362
py
Python
main.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
main.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
main.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
import Image_Recognition.Find_Car as find_car import Image_Recognition.Find_Box as find_box import Image_Recognition.Find_Rotation as find_rot import Image_Recognition.Show_Scan as show import Simplification.Image_Greyscaling as img_greyscale import Simplification.Grid_Creation as create_grid import Pathfinding.Fin...
29.275168
104
0.64718
98b551aec4a7e93daf3a0e5864727b76993e218b
898
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/rotated_sorted_array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/rotated_sorted_array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/rotated_sorted_array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Input : arr[] = {15, 18, 2, 3, 6, 12} # Output: 2 # Explanation : Initial array must be {2, 3, # 6, 12, 15, 18}. We get the given array after # rotating the initial array twice. # Input : arr[] = {7, 9, 11, 12, 5} # Output: 4 # Input: arr[] = {7, 9, 11, 12, 15}; # Output: 0 def single_rotation(arr,l): temp =...
19.521739
47
0.550111
f696dfa0c8ef28fd3108c78d93aa1744c4d6451a
13,108
py
Python
python_playground/data/utils.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/utils.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/utils.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import heapq import math import time from multiprocessing import Pool, freeze_support, cpu_count import numba import numpy as np import scipy from scipy import sparse # set the printing config np.set_printoptions(precision=3) # set the core number PROCESS = cpu_count() - 4 # set correspoing rows to zero def csr_ro...
34.046753
112
0.5769
10125da23fdd37a78869c97f719cd8cf4e6f02ed
617
py
Python
gunicorn.conf.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
gunicorn.conf.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
gunicorn.conf.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import multiprocessing import os # Bind port = os.getenv( "PORT", "5000" ) # No Prefix here because some hosting provider use 'PORT' bind = os.getenv("GUNICORN_BIND", f"0.0.0.0:{port}") # Workers workers = multiprocessing.cpu_count() * 2 + 1 # Logging capture_output = True accesslog = os.getenv("GUNICORN_ACCESS...
26.826087
66
0.677472
1240c52d84f69ca2797fe34492cbbe63dd8b49bf
18,120
py
Python
Packs/Lansweeper/Integrations/Lansweeper/Lansweeper.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Lansweeper/Integrations/Lansweeper/Lansweeper.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/Lansweeper/Integrations/Lansweeper/Lansweeper.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import traceback from typing import Any, Callable import demistomock as demisto import urllib3 from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-...
34.580153
119
0.570971
12466d0b3fe2ebf68f98cf3a3d914c9eb447b22a
978
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.9-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.9-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.9-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 7.9 Circular Array # Implement a CircularArray class that supports an array-like data # structure which can be efficiently rotated. # If possible, the class should use a generic type (also called a # template) and should support iteration via the standard for # (Obj o: circularArray) notation. # Circ...
28.764706
67
0.616564
c3da2ad3c9ca96c7b87a1ead3db654345b5f30a0
2,050
py
Python
6.Tree/Binary Search Tree/Python/binary_search_tree.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
3
2020-09-10T18:40:40.000Z
2020-09-15T17:32:12.000Z
6.Tree/Binary Search Tree/Python/binary_search_tree.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
6.Tree/Binary Search Tree/Python/binary_search_tree.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
class Node: def __init__(self, value): self.left = None self.value = value self.right = None class BST: def __init__(self): self.root = None # insertion in binary search tree def insert(self, value): if self.root is None: self.root = Node(value) ...
26.282051
62
0.496585
c3e075fa65fe80e385af19dbe7cb3ec56397bb2e
4,417
py
Python
tests/conftest.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
tests/conftest.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
tests/conftest.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
from pathlib import Path import pytest import numpy as np import pandas as pd from pyntcloud import PyntCloud @pytest.fixture() def data_path(): return Path(__file__).parent.absolute() / "data" @pytest.fixture() def xyz(): return np.array([ [0. , 0. , 0. ], [0.1, 0.1, 0.1], [0.2, ...
27.60625
97
0.542223
9ce512d8d11883b372ea9cd082e92ee04453e3b2
1,858
py
Python
REWORK/src/py/profile.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/profile.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/profile.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
# ┌─────────────────────────────────────────────────────────────────────────┐ # │ Instagram Automated Commenting 2.0 │ # ├─────────────────────────────────────────────────────────────────────────┤ # │ DO NOT indicate used program sections as your own. │ # │ DO N...
44.238095
77
0.488698
1402506a524ba8ba978f22315f135e13f3c365e7
8,241
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/visualization/mpl_dump_twoAgainst.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/visualization/mpl_dump_twoAgainst.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/visualization/mpl_dump_twoAgainst.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
36.303965
91
0.604053
14a614ba850bfc0eb0fd6993303c9761d08882e2
19
py
Python
frappe-bench/env/lib/python2.7/site-packages/braintree/version.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/braintree/version.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/braintree/version.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
Version = "3.43.0"
9.5
18
0.578947
25b17b4710c51dd90d4a237232f2ffac825bc4ba
363
py
Python
exercises/fr/solution_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("fr_core_news_sm") text = ( "Le groupe aéronautique Airbus construit des avions et des " "hélicoptères vendus dans le monde entier. Le siège opérationnel du " "groupe est situé en France à Toulouse dans la région Occitanie." ) # Tokenise seulement le texte doc = nlp.make_doc(...
27.923077
73
0.738292
25fa71298ed08370743b9c74c8c2fbcd590dfa64
1,004
py
Python
数据结构/NowCode/9_containMainStack.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/9_containMainStack.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/9_containMainStack.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 包含min函数的栈 # 定义栈的数据结构,请在该类型中实现一个能够得到栈中所含最小元素的min函数(时间复杂度应为O(1))。 # 注意:保证测试中不会当栈为空的时候,对栈调用pop()或者min()或者top()方法。 class Solution: # 初始化 def __init__(self): self.stack = [] # 存储最小元素 self.minValue = [] # 压栈 def push(self, node): self.stack.append(node) # 维护当前最小的数组...
22.818182
55
0.526892
d3058903f459e757f3b43c2d85d10f1ce9c116f4
16,030
py
Python
src/onegov/core/cli/commands.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/cli/commands.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/cli/commands.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import click import email import mailbox import os import platform import shutil import subprocess import sys from cached_property import cached_property from fnmatch import fnmatch from mailthon.middleware import TLS, Auth from onegov.core.cache import lru_cache from onegov.core.cli.core import command_group, pass_gr...
33.60587
79
0.639301
9f44c7ee288d02552ad230de5df4453f7aa2cd4e
967
py
Python
package/password_generator.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
package/password_generator.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
package/password_generator.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
from string import ascii_lowercase, ascii_uppercase, digits import random sonderzeichen = [a for a in "!#$%&()*+,-./:;<=>?@[\]^_`{|}~"] sonderzeichen = [a for a in "!#$%&():<=>?@_{|}"] sonderzeichen = [a for a in "!#$%&:=@_"] sonderzeichen = [a for a in "_"] kleinbuchstaben = [a for a in ascii_lowercase] grossbuchst...
27.628571
61
0.630817
46c5e7feab1a200f2bade4a5b0d0cd3fb12f221b
826
py
Python
ZbjDjChannels/ZbjDjChannels/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/ZbjDjChannels/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/ZbjDjChannels/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import chatroom.routing import chatsolo.routing import djim.routing ''' 此根路由配置指定在与Channels开发服务器建立连接时, ProtocolTypeRouter将首先检查连接类型。如果它是WebSocket连接(ws://或wss://), 则将连接到AuthMiddlewareStack. 在AuthMiddlewareStack将填充的连接的...
33.04
127
0.803874
46d5fbb6fdb049f8a29abd5d138a5822b921e6af
13,926
py
Python
spo/spo/doctype/mandat/mandat.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
null
null
null
spo/spo/doctype/mandat/mandat.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/doctype/mandat/mandat.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from spo.utils.timesheet_handlings import handle_timesheet, get_total_ts_time, get_zeiten_uebersich...
66.314286
355
0.541433
20c4dd786b4d13b9e68f3a97618265a7149b03ff
416
py
Python
exercises/python/data-types/strings/find-string.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/strings/find-string.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/strings/find-string.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
# Sample Input # ABCDCDC # CDC # Sample Output # 2 def count_substring(string, sub_string): count = 0 for i in range(len(string) + 1 - len(sub_string)): if string[i:i+len(sub_string)] == sub_string: count += 1 return count if __name__ == '__main__': string = input().strip() ...
17.333333
54
0.620192
a62853aead154d14017084a18db9c679999409a7
204
py
Python
exercises/en/exc_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/exc_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/exc_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.en import English nlp = English() people = ["David Bowie", "Angela Merkel", "Lady Gaga"] # Create a list of patterns for the PhraseMatcher patterns = [nlp(person) for person in people]
22.666667
54
0.72549
a6b1c7e033663b6434d179be019a32a71d4bae35
85
py
Python
casts/apps.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/apps.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/apps.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CastsConfig(AppConfig): name = "casts"
14.166667
33
0.741176
a6bcf9e0b16f445fbef4e6470810f7a38cec49af
1,799
py
Python
addition_module/DMUE/convert_weights.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/convert_weights.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/convert_weights.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
import os import argparse from collections import OrderedDict import torch # parser = argparse.ArgumentParser(description='convert multi-branch weights to target branch weights.') # parser.add_argument("--ori_path", type=str, help="path to multi-branch weights") # parser.add_argument("--dst_path", type=str, help="pa...
37.479167
104
0.637021
a6cfd92d4e02eaf60880f5314aad520d2026a174
1,961
py
Python
pyconuk/management/commands/upload_schedule.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
3
2017-10-24T13:33:29.000Z
2017-10-30T10:47:28.000Z
pyconuk/management/commands/upload_schedule.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
78
2017-02-14T16:49:58.000Z
2018-04-19T06:28:42.000Z
pyconuk/management/commands/upload_schedule.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
36
2017-06-19T07:48:38.000Z
2018-01-19T11:08:10.000Z
from datetime import datetime import psycopg2 import yaml from django.core.management import BaseCommand from pyconuk.models import Session class Command(BaseCommand): def handle(self, *args, **kwargs): with open('db_connection.yml') as f: db_connection = yaml.load(f) connection = psy...
28.838235
108
0.598164
f345c0a719d6d6ad4b46fdcb079b0e338a5405b4
427
py
Python
Algorithms/Strings/funny_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/funny_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/funny_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def funnyString(s): r = s[::-1] for i in range(1, len(s) - 1): ds = abs(ord(s[i]) - ord(s[i-1])) dr = abs(ord(r[i]) - ord(r[i-1])) if ds != dr: return ('Not Funny') # print(s[i], s[i-1], r[i], r[i-1]) return ('Funny') q = int(in...
20.333333
43
0.480094
3463966718f163a559b88fde45d44ada2246fca8
7,335
py
Python
rfvision/models/pose_estimators/articulation/datasets/articulation_dataset.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/models/pose_estimators/articulation/datasets/articulation_dataset.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/models/pose_estimators/articulation/datasets/articulation_dataset.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
import json from torch.utils.data import Dataset from .pipelines_test import * from .pipelines_train import * from rfvision.datasets import DATASETS from rfvision.datasets.pipelines import ToTensor, Compose, Collect train_keys = ['parts_pts', 'parts_pts_feature', 'parts_cls', 'mask_array', 'nocs_p'...
39.86413
125
0.560191
59f6eacefd9af38b0ea9ebbcebe578249361390f
9,915
py
Python
experimental/ArithmeticSimple/ArithmeticRightRecursiveParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
experimental/ArithmeticSimple/ArithmeticRightRecursiveParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
experimental/ArithmeticSimple/ArithmeticRightRecursiveParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ####################################################################### # # SYMBOLS SECTION - Can be edited. Changes will be preserved. # ####################################################################### import collections from functools import partial import os import sys dhparser_path...
37.69962
111
0.629349
edef6956481b476c29c88f7a383d1a663de85ad6
2,293
py
Python
cogs/wetter.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
cogs/wetter.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
cogs/wetter.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from discord.ext import commands import discord import requests class Wetter(commands.Cog): def __init__(self, client): self.client = client self.api_key = "7d518678abe248fc7de360ba82f9375b" self.base_url = "http://api.openweathermap.org/data/2.5/weather?" @commands.command(name="wett...
48.787234
115
0.581334
b6848ae7983d822898eed6bd391f307d2e766a6a
658
py
Python
Crashkurs Python/18_Funktionen_plotten.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
2
2020-03-23T14:57:50.000Z
2021-03-24T18:12:07.000Z
Crashkurs Python/18_Funktionen_plotten.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/18_Funktionen_plotten.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as plt import math def poly(x): # x^3 - x + 2 return x**3-x+2 def some_sinus(x): # 3.sin(4x) return 3 * math.sin(4*x) # Die Kurven sollen auf x = [-2, +1.5] mit einem 0.1 Intervall # gezeichnet werden. resolution = 0.1 xmin = -2 xmax = 1.5 plt.figure(figsize=(4,4)) # 400x400 P...
22.689655
70
0.607903
1e1417186fd4699203108e96e87b22d62605b20a
5,980
py
Python
src/aijack/collaborative/fedgems/api.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/collaborative/fedgems/api.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/collaborative/fedgems/api.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
import copy import numpy as np import torch from sklearn.metrics import accuracy_score from ..core.api import BaseFLKnowledgeDistillationAPI class FedGEMSAPI(BaseFLKnowledgeDistillationAPI): def __init__( self, server, clients, public_dataloader, local_dataloaders, ...
33.977273
88
0.591304
bf8deaa68b2db9cc41794d0355060f0d3ef56e71
523
py
Python
top/clearlight/thread/threading/threading1.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/thread/threading/threading1.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/thread/threading/threading1.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import threading def thread_job(): print("This is an added Thread, number is %s" % threading.current_thread()) # pass def thread_job2(): print("why only first thread") def main(): # 添加一个线程 added_thread = threading.Thread(target=thread_job()) added_thread2 = threading.Thread(target=thread_job...
21.791667
79
0.688337
78510a8a785e9779a9ebfbe4d81284105dfb9b37
5,616
py
Python
lib/python/qmk/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Functions that help you work with QMK keymaps. """ from pathlib import Path from milc import cli from qmk.keyboard import rules_mk import qmk.path # The `keymap.c` template to use when a keyboard doesn't have its own DEFAULT_KEYMAP_C = """#include QMK_KEYBOARD_H /* THIS FILE WAS GENERATED! * * This file was ge...
29.403141
130
0.630164
158b3f0ba802270e7f6110555d4f93f535398536
5,147
py
Python
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/test_data/context.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/test_data/context.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/test_data/context.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
FETCH_PASSWORD_CONTEXT = { "PAM360.Account(val.PASSWORD && val.PASSWORD == obj.PASSWORD)": { "operation":{ "result":{ "message":"Password fetched successfully", "status":"Success" }, "Details":{ "PASSWORD":"A1@8ZnQx)mh&=" }, "name":"GET PASSWORD" } } } ...
27.232804
188
0.539149
eca4944ef671d72d11ea80c7a95e35b73d4b5112
599
py
Python
checklisten/templatetags/t_checklisten/get_tasks.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/checklisten/templatetags/t_checklisten/get_tasks.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/checklisten/templatetags/t_checklisten/get_tasks.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django import template from checklisten.models import ChecklisteAufgabe register = template.Library() @register.filter def get_tasks(checklist_id): """ Gets all ChecklisteAufgabe objects that belong to the Checkliste identified by checklist_id. :param checklist_id: The ID of the Checkliste to fetch...
29.95
96
0.772955
172ea6daa9bef0a749ed0ce6a3dbf476df3cbdd6
3,546
py
Python
Python/Sonstige_Uebungen/Machine Learning/Iris/ML_Iris.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/Machine Learning/Iris/ML_Iris.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/Machine Learning/Iris/ML_Iris.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # #### # File: ML_Iris.py # Project: Iris #----- # Created Date: Saturday 16.01.2021, 20:08 # Author: Apop85 #----- # Last Modified: Saturday 16.01.2021, 20:11 #----- # Copyright (c) 2021 Apop85 # This software is published under the MIT license. # Check http://www.openso...
32.53211
90
0.728426
1755cf0ddfd27b7ce3a45e96220f30e20d2fba41
5,291
py
Python
DeanonBotTelegram-master/Deanon_bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
DeanonBotTelegram-master/Deanon_bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
DeanonBotTelegram-master/Deanon_bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Библиотеки import telebot from telebot import types import os#, #signal, pickle, sys import time import random my_id = 'Id' #Айди ######################ТОКЕН########################################### bot = telebot.TeleBot('Token')#Токен из ботфазера ## ##############################################...
50.390476
154
0.712153
16f5fac5a05e50ff4ce8a3806dbf39b651943a52
1,734
py
Python
data_augmentation.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
3
2020-04-01T08:13:31.000Z
2020-10-30T01:01:41.000Z
data_augmentation.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
null
null
null
data_augmentation.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
1
2021-01-27T11:46:49.000Z
2021-01-27T11:46:49.000Z
from pathlib import Path import csv import numpy as np def duplicate_classes(data_dir = '', classes = [], save_labels=False): saved_files = 0 for _class in classes: # # Obtiene el listado de todos los archivos *.np en el directorio de la clase. # files = list(Path(data_dir + '/'...
36.125
90
0.517301
e5c49d0a285756c06bebfbe2ee565a71986f50d2
9,318
py
Python
webinterface/tests/unit_tests/fixtures.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/tests/unit_tests/fixtures.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/tests/unit_tests/fixtures.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from webinterface.models import * import logging import sys # class LogThisTestCase(type): # def __new__(cls, name, bases, dct): # # if the TestCase already provides setUp, wrap it # if 'setUp' in dct: # setUp = dct['setUp'] # else: # setUp = lambda self: None # # ...
46.824121
118
0.626315
0078bfecf51c4aa0736da727e8e61cba4de2a7d0
291
py
Python
Problems/Two Pointers/easy/ReverseWordsInString3/test_reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/ReverseWordsInString3/test_reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/ReverseWordsInString3/test_reverse_words_3.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from reverse_words_3 import reverseWords class Test(TestCase): def test_reverse_words(self): self.assertEqual(reverseWords("Let's take LeetCode contest"), "s'teL ekat edoCteeL tsetnoc") self.assertEqual(reverseWords("God Ding"), "doG gniD")
41.571429
100
0.752577
008c517962cc0d90c8640af2862480bff8909dc5
1,185
py
Python
repo/plugin.video.wakanim/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.wakanim/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.wakanim/default.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# -*- coding: utf-8 -*- # Wakanim - Watch videos from the german anime platform Wakanim.tv on Kodi. # Copyright (C) 2017 MrKrabat # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either ...
32.916667
75
0.745148
8ae61eb3dfd601510ad6b914231c0de779458453
515
py
Python
setup.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
1
2020-11-17T09:08:24.000Z
2020-11-17T09:08:24.000Z
setup.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
null
null
null
setup.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
1
2020-11-17T09:08:26.000Z
2020-11-17T09:08:26.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages setup(name='gst-web', version='1.0', description='A Web UI for Building, Debugging and Controlling Gstreamer Pipelines', url='https://github.com/half2me/gst-web', author='Benjamin Tamasi', author_email='h@lfto.me', l...
27.105263
89
0.607767
e741ead0d8986cf76e389f8348243e043e8b93f9
4,157
py
Python
painter.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
painter.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
painter.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
from luma.core.render import canvas from luma.led_matrix.device import ws2812 from luma.led_matrix.device import max7219 from luma.core import legacy from luma.core.interface.serial import spi, noop from luma.core.virtual import viewport from luma.core.legacy.font import proportional, LCD_FONT from block import Tetris...
37.790909
121
0.605004
820c00a7bcb767865e9bf53882e66e6babde7dc5
660
py
Python
sched/multiple_times.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
sched/multiple_times.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
sched/multiple_times.py
MilovanTomasevic/stackoverflow
472d207cc839389ae877233bccacc4b27474c844
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime from apscheduler.schedulers.blocking import BlockingScheduler sched = BlockingScheduler() ''' date: Use when you want to run the job just once at a certain point of time interval: Use when you want to run the job at fixed intervals of time cron: Use when you want t...
22.758621
77
0.706061
413a4014b82243c051a8524f7eb4dcf41e0db2aa
237
py
Python
website/apps/fileupload/admin.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/fileupload/admin.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/fileupload/admin.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
from django.contrib import admin from fileupload.models import File class FileAdmin(admin.ModelAdmin): readonly_fields = ('file_tag',) list_display = ('file', 'file_tag_thumb', 'created') admin.site.register(File, FileAdmin)
21.545455
56
0.746835
ec05f4dbbc13e6ed50965da8b4a1882df21ddcc0
2,807
py
Python
model/layers.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/layers.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/layers.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
import math import torch from torch import nn import torch.nn.functional as F from torch.nn.utils import spectral_norm as SpectralNorm class BilinearInterpolation(nn.Module): """ F.interpolate class wrapper """ def forward(self, x): x = F.interpolate(x, scale_factor=2, mode='bilinear', ...
32.639535
84
0.611329
ec2db71b16dd3a2ad7dcbb4b6ceca12a9dad70d5
731
py
Python
spark_sql/plt.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
6
2021-11-11T01:06:08.000Z
2021-11-18T02:45:25.000Z
spark_sql/plt.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
null
null
null
spark_sql/plt.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
null
null
null
from matplotlib import pyplot as plt res =[0.9818177997884187, 0.9818177997884187, 0.9818177997884187, 0.9818177997884187, 0.9818177997884187, 0.9518989805253717, 0.9518989805253717, 0.9303697554081927, 0.8814335986347056, 0.8814335986347056, 0.8814335986347056, 0.5814253468668773, 0.42863167830836285, 0.7183524897483...
38.473684
367
0.76197
2e1272336c664e7d00a78e8388acc4575040c7c6
9,624
py
Python
aiotftp/packets.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
aiotftp/packets.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
aiotftp/packets.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """TFTP packet helpers.""" from __future__ import annotations from dataclasses import dataclass from typing import Any, Dict, Optional, Union from . import utils class TFTPPacketFactory: _default_options: Dict[str, Any] _supported_options: Dict[str, Any] def __init__( ...
30.169279
101
0.58458
2e60bb86d91640226baa05585a230b50336c0875
332
py
Python
MAIN/STM32F405/V03/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V03/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V03/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAX_SEAT_NUMBER = 33 class DataBase(): class SeatConfig: MaxNumber = MAX_SEAT_NUMBER CurrentNumber = 33 class Sensor: Threshold = 31 PositiveTolerance = 25 NegativeTolerance = 5 ID = [bytearray(10)] * MAX_SEAT_NUMBER def __init__(self): super().__in...
20.75
46
0.599398
2b1b056ae81a63d2404fa203436175409f06a6ec
2,243
py
Python
static/python-scripts/poster_split.py
QCrypt/website-2022
7bf3f7300a6408e268d67092b939640c15fec9a1
[ "MIT" ]
null
null
null
static/python-scripts/poster_split.py
QCrypt/website-2022
7bf3f7300a6408e268d67092b939640c15fec9a1
[ "MIT" ]
null
null
null
static/python-scripts/poster_split.py
QCrypt/website-2022
7bf3f7300a6408e268d67092b939640c15fec9a1
[ "MIT" ]
2
2021-08-18T13:11:48.000Z
2021-12-29T06:23:24.000Z
import copy import simplejson as json from collections import OrderedDict import csv #create Ordered Dictionary using keyword # 'object_pairs_hook=OrderDict' with open('2021_posters.json', encoding='utf8') as fh: data = json.load(fh, object_pairs_hook=OrderedDict) with open('poster_schedule.csv', encoding=...
35.046875
81
0.537673
2b4fa0fa5177ecdbb9b34eb5a0a44c85ceea1dff
618
py
Python
public_identifiers/validators.py
strange-dv/django-public-identifiers
1d3f7752b16f48d1004328b5dad7acf6e83a9703
[ "MIT" ]
null
null
null
public_identifiers/validators.py
strange-dv/django-public-identifiers
1d3f7752b16f48d1004328b5dad7acf6e83a9703
[ "MIT" ]
null
null
null
public_identifiers/validators.py
strange-dv/django-public-identifiers
1d3f7752b16f48d1004328b5dad7acf6e83a9703
[ "MIT" ]
null
null
null
from django.core import validators from django.utils.translation import gettext_lazy as _ class ISBNValidator(validators.RegexValidator): # example: 978-1-56619-909-4 regex = r"^(?=(?:\D*\d){10}(?:(?:\D*\d){3})?$)[\d-]+$" message = _("Enter a valid ISBN.") class DOIValidator(validators.RegexValidator):...
25.75
60
0.606796
5149d4000bf60adf69385e529dbdd74cd166b23b
1,211
py
Python
projects/g4h1-wsn/src/wsn/medium.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/wsn/medium.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h1-wsn/src/wsn/medium.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import logging import numpy import time from .message import BaseMessage class WsnMedium(object): """无线传感网络的无线信号传播介质 节点往介质中发送信息,介质给节点传递信息 介质的“物理特性”决定了一个信息将会送达到哪些节点 """ # 配置日志 logger: logging.Logger = logging.getLogger('wsn.medium') # wsn: Wsn def __init__(self, wsn)...
24.22
93
0.491329
7a80bec0e8da80ec22d82694a8bd04f8983bb94c
2,076
py
Python
modeling/head/deeplabv3.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/head/deeplabv3.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/head/deeplabv3.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from modeling.model_utils.aspp import build_aspp from modeling.model_utils.decoder import build_decoder from modeling.backbone import build_backbone class DeepLab(nn.Module): d...
34.6
100
0.632466
7ac1927d3b216a7919bf86504c7a8d86f40c103f
524
py
Python
sql/ide-scripting.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
sql/ide-scripting.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
sql/ide-scripting.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
1
2020-10-02T04:57:25.000Z
2020-10-02T04:57:25.000Z
from builtins import print from psycopg2 import connect conn = connect( host="localhost", database="felix", user="felix", password="password") cur = conn.cursor() # execute a statement cur.execute('SELECT * FROM test') # display the PostgreSQL database server version result = cur.fetchone() print(re...
18.714286
48
0.708015
8f9b3463346a7ada35e603c4fc4272bfc634efc4
317
py
Python
FooBar/2021/crypto/Lost-N/enc.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
FooBar/2021/crypto/Lost-N/enc.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
FooBar/2021/crypto/Lost-N/enc.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from Crypto.Util.number import getPrime, bytes_to_long, inverse p = getPrime(512) q = getPrime(512) n = p * q e = 65537 plain = open('plaintext.txt','r').read().lower() ct = [] f = open('encrypted','w') for i in plain: ct.append(pow(ord(i),e,n)) f.write('ct = ' + str(ct) + '\n') #f.write('n = ' + str(n) + '\n')
21.133333
63
0.596215
8fb5f2887d5c8e89a1b20d0d003ff68fdb5ede22
14,309
py
Python
official/nlp/ernie/run_ernie_mrc.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/ernie/run_ernie_mrc.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/ernie/run_ernie_mrc.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
53.793233
115
0.666434
f166353612fa878c33d7500b1a1897e1928e9671
1,383
py
Python
pyScript/custom_src/EditVarVal_Dialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/EditVarVal_Dialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/EditVarVal_Dialog.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QPlainTextEdit, QShortcut from PySide2.QtGui import QKeySequence class EditVarVal_Dialog(QDialog): def __init__(self, parent, var): super(EditVarVal_Dialog, self).__init__(parent) # shortcut save_shortcut = QShortcut(QK...
29.425532
95
0.658713
f17d47746594ca2c6b329bece7393c8de35736b0
325
py
Python
useCanopy.py
lizhanlian/CanopyByPython
89f94f7b2713c536afbcbded43534b28977cfb24
[ "MIT" ]
37
2018-06-06T05:58:54.000Z
2022-02-21T04:49:54.000Z
Canopy/useCanopy.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
null
null
null
Canopy/useCanopy.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
35
2018-10-01T16:12:34.000Z
2022-02-21T03:35:33.000Z
# -*- coding: utf-8 -*- # @Author: Alan Lau # @Date: 2017-09-06 17:47:51 # @Last Modified by: Alan Lau # @Last Modified time: 2017-09-06 17:47:51 from canopy import Canopy import numpy as np dataset = np.random.rand(500, 2) gc = Canopy(dataset) gc.setThreshold(0.6, 0.4) canopies = gc.clustering() print(len(canopi...
19.117647
42
0.68
2d1481327c3556a66d9da56f48af168fa83059d1
911
py
Python
database.py
Joseorina/upgraded-adventure
c925963def44225a34212fdd7d0cc5b453727b60
[ "MIT" ]
1
2019-10-07T02:01:17.000Z
2019-10-07T02:01:17.000Z
database.py
Joseorina/upgraded-adventure
c925963def44225a34212fdd7d0cc5b453727b60
[ "MIT" ]
null
null
null
database.py
Joseorina/upgraded-adventure
c925963def44225a34212fdd7d0cc5b453727b60
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Postgres(ABC): @abstractmethod def connect(self,database_url): pass #@abstractmethod def session(self): autocommit = True pass @abstractmethod def create_database(self, database_name): pass #@abstractmethod de...
17.519231
51
0.621295
7afae0c44cffc26bf5b2c1e80204b3dd9ff83dc2
1,001
py
Python
Sprint-Challenge--Algorithms/recursive_count_th/count_th.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
null
null
null
Sprint-Challenge--Algorithms/recursive_count_th/count_th.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Sprint-Challenge--Algorithms/recursive_count_th/count_th.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Algorithms :: Sprint Challenge - "th" counter Your function should take in a single parameter (a string `word`) Your function should return a count of how many occurences of ***"th"*** occur within `word`. Case matters. Your function must utilize recursion. It cannot contain any loops. """ def count_th(word: str...
34.517241
107
0.666334
bb51c52e2a450bdea7f9aba0f15ed2fd1f85a973
2,590
py
Python
src/onegov/ballot/collections/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/collections/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/collections/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot.models import Vote from onegov.core.collection import Pagination from sqlalchemy import cast from sqlalchemy import desc from sqlalchemy import distinct from sqlalchemy import extract from sqlalchemy import Integer class VoteCollectionPagination(Pagination): def __init__(self, session, page=0,...
27.263158
75
0.62278
3b101673e131ed61b42b5f181428fa83acfc3e32
1,800
py
Python
python/system/websocket.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
1
2020-09-29T17:44:31.000Z
2020-09-29T17:44:31.000Z
python/system/websocket.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
python/system/websocket.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
import tornado.websocket import json import datetime from system.log import log from system.webserver import Webserver from game.player import Player class Websocket(tornado.websocket.WebSocketHandler): websocket_send_data = [] websocket_clients = [] def websocket_send(client,data,binary=False): ...
31.578947
79
0.615556
8dc0eadcdb809364d669b3a26b91799c90284353
501
py
Python
python/en/archive/dropbox/miscellaneous_python_files/new 6.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/new 6.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/new 6.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
// Introducing C++ Classes, pp.270-272 // The general form of a simple class declaration, p.272 /* class class-name { private date and functions public: public data and functions } object name list; */ // pp.270-271 #define SIZE 100 //This creates the class stack. class stack{ int stck[SIZE] int tos; public: ...
14.735294
56
0.62475
ebcc089e60d55ed6f17f0880af7671b6236a5402
1,858
py
Python
classification/scripts/configs_hyperparameter_tuning/BoW_binary_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/configs_hyperparameter_tuning/BoW_binary_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/configs_hyperparameter_tuning/BoW_binary_best_f1.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
class Configurations: configs = [ # # Configurations for Machine-Learning Pipeline # {# bow binary best f1 # basic preprocessing "textToLowerCase": True, "textReplaceUmlaut": True, "textRemoveSpecialCharacters": True, "text...
30.966667
75
0.465554
69393f0a68191d70bca3cc41cd0a7d90e00b0cb2
1,030
py
Python
tests/test_energiemenge.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_energiemenge.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_energiemenge.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.bo.energiemenge import Energiemenge, EnergiemengeSchema from bo4e.enum.lokationstyp import Lokationstyp from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] from tests.test_verbrauch import example_verbrauch # type:ignore[import] ...
34.333333
92
0.676699
6967f6ff6a84dd0594a70cb42e8f8749a9473dbf
622
py
Python
src/classes/event_handler.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/classes/event_handler.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/classes/event_handler.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
class EventHandler: def welcome_event_handler(self, events, game, key): for event in events: if event.type == key: if game.user_data["username"]: game.change_activity("main") else: game.change_activity("login") def...
34.555556
62
0.527331
ba4d5889932e68b0965c4f52f5c787f9345d153e
607
py
Python
fun/fun/doctype/timepass/timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/timepass/timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
fun/fun/doctype/timepass/timepass.py
solankevaibhav12/fun
01cb29109137093ef578155919ae934b8be24c88
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Vfun and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class Timepass(Document): pass # def before_save(self): # dob = self.date_of_birth # year_of_birth = int(dob[:4]) # current_year = 2022 # self.age = curren...
17.342857
49
0.672158
79f47028c68ab0fa7d039dc24464cd2c7f77b4f7
5,514
py
Python
csv_export/generic_csv_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
csv_export/generic_csv_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
csv_export/generic_csv_exporter.py
cyber-perikarp/auskunftsbegehren_at_adressen_parser
bc3ba4b7d3fc1da29fa5e505131cc1c7e90fd9b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import csv import argparse import sys import os import logzero from logzero import logger as log from locale import strxfrm #### Config #### # CLI Params parser = argparse.ArgumentParser("generic_csv_exporter.py") parser.add_argument("--loglevel", help="DEBUG, INFO, ERRO...
34.4625
162
0.63638
3011c53756e84ce1c7d33e88ef11cfdaae20ade4
238
py
Python
CareerTinderServer/CareerTinder/admin.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/admin.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/admin.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Hiree, Company, Recruiter, Relations # Register your models here. admin.site.register(Hiree) admin.site.register(Company) admin.site.register(Recruiter) admin.site.register(Relations)
26.444444
56
0.815126
2326144551296abed7e1a585150ebd83d569b90e
860
py
Python
tests/test.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
tests/test.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
tests/test.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
from operator import itemgetter data = [('a',1,'acb'),('c', 13, 'lol'),('b', 0, 'eh'),('d', 4, 'Affe'),('f', 8, 'Keks'),('f', 8, 'Keks'),('f', 4, 'huh?')] output = sorted(data, key=itemgetter(2)) #for element in output: # print (element) my_dict={} for element in output: print(element) if element[0] in my_...
26.875
122
0.565116
00045fe851b13ba0c48c56d250cc7aed6f9eda03
25,973
py
Python
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GSuiteSecurityAlertCenter/Integrations/GSuiteSecurityAlertCenter/GSuiteSecurityAlertCenter.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import urllib3 import traceback from datetime import datetime from typing import Any, Dict, List, Callable, Tuple, Optional # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' DEFAULT_FIRST_FETCH = '3 days' D...
35.677198
118
0.665653
001688aed31f6cd768aedba6e8d0c1b177b16dc7
69
py
Python
Pythonjunior2020/Woche1/Aufgabe_1_2_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_2_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_2_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 1.2.1, Woche 1, Block 2, Aufgabe 1 # Ausgabe print("Hallo Stella")
17.25
36
0.666667
0020e5bb5d888e587b315ad74dc1b17d317dd3e7
164
py
Python
ffeKiosk/admin.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
ffeKiosk/admin.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
ffeKiosk/admin.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.models import Permission from django.contrib.auth.admin import UserAdmin admin.site.register(Permission)
27.333333
49
0.847561
cc6c2d35556753586a5cc4e7ce441f025ad9d0cf
7,850
py
Python
ReceiveWidget.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
1
2021-08-15T03:30:07.000Z
2021-08-15T03:30:07.000Z
ReceiveWidget.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
null
null
null
ReceiveWidget.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
null
null
null
import email import poplib from email.header import decode_header from email.parser import Parser from email.utils import parseaddr from PyQt5.QtWidgets import QWidget, QLineEdit, QLabel, QPushButton, QFileDialog, QTextEdit, QMessageBox class ReceiveWidget(QWidget): def __init__(self): super(ReceiveWidge...
40.25641
111
0.57121
ccafebcc178a8bd67ece4595986560f0c7423dd4
1,696
py
Python
spo/spo/doctype/facharzt_bericht/facharzt_bericht.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/spo/doctype/facharzt_bericht/facharzt_bericht.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/doctype/facharzt_bericht/facharzt_bericht.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class FacharztBericht(Document): pass @frappe.whitelist() def get_adressat(facharzt=None, fachar...
32
154
0.674528
88627771a9d9b000105406fd43713d378d015c4f
1,115
py
Python
src/bo4e/com/rufnummer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/rufnummer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/rufnummer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Rufnummer class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.enum.rufnummernart import Rufnummernart # pylint: disable=too-few-pub...
27.875
173
0.73722
888c06e9a4a6bfaceb6261d1536d109bf40a1e37
6,261
py
Python
mobile/src/operators/kernel/cl/gen_code.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/src/operators/kernel/cl/gen_code.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/src/operators/kernel/cl/gen_code.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
# Copyright (c) 2019 PaddlePaddle 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...
29.956938
104
0.532503
ee0f231887a6b2bd7f31d5bbe52246e127715c0b
3,590
py
Python
research/cv/midas/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/midas/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/midas/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
38.191489
92
0.580223
4e9d0135d3312a611c4d87c43628bfd01302de43
331
py
Python
FZServer/python/logbook-tutorial.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
FZServer/python/logbook-tutorial.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
FZServer/python/logbook-tutorial.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
# -*- coding: utf-8 -*- from logbook import Logger, StreamHandler, FileHandler import sys StreamHandler(sys.stdout).push_application() FileHandler('app.log').push_application() # 会覆盖上一个Handler log = Logger('Logbook') log.info('Hello, World!') log.error('it is err') if __name__ == '__main__': print('Let us pl...
20.6875
58
0.712991
0188439f923b3b1ea1cccd1e77f9add105760d3b
10,530
py
Python
tests/onegov/election_day/formats/vote/test_wabstim.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/vote/test_wabstim.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/formats/vote/test_wabstim.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import tarfile from datetime import date from io import BytesIO from onegov.ballot import Vote from onegov.election_day.formats import import_vote_wabstim from onegov.election_day.models import Municipality from tests.onegov.election_day.common import get_tar_file_path def test_import_wabstim_vote_1(session): dom...
31.339286
75
0.395726
c91f5fd7e7cde5c675589bb7a0c7c15704dca9c4
17,801
py
Python
Packs/GreatHorn/Integrations/GreatHorn/GreatHorn.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GreatHorn/Integrations/GreatHorn/GreatHorn.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GreatHorn/Integrations/GreatHorn/GreatHorn.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import traceback from typing import Any, Dict, Optional import demistomock as demisto # noqa: F401 import urllib3 from CommonServerPython import * # noqa: F401 # Disable insecure warnings urllib3.disable_warnings() ''' CLIENT CLASS ''' class Client(BaseClient): """Client class to interact with th...
36.552361
127
0.565755
a326fccede0aefdfcee4eeba1f6e9c0bbb6d87c1
723
py
Python
server.py
HyechurnJang/rdhcp
6e9e983527a501b3f0d1bfcb796b62868b5b6292
[ "Apache-2.0" ]
null
null
null
server.py
HyechurnJang/rdhcp
6e9e983527a501b3f0d1bfcb796b62868b5b6292
[ "Apache-2.0" ]
null
null
null
server.py
HyechurnJang/rdhcp
6e9e983527a501b3f0d1bfcb796b62868b5b6292
[ "Apache-2.0" ]
1
2020-10-07T00:24:45.000Z
2020-10-07T00:24:45.000Z
# -*- coding: utf-8 -*- ''' Created on 2018. 4. 27. @author: HyechurnJang ''' import os import pygics import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-m', '--mgmt', help='Restricted Mgmt NIC for NameSpace', required=True) parser.add_arg...
32.863636
103
0.650069