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
525d7fdd8d8e007e3f856f84150bad9d1bea211f
4,114
py
Python
modules/cdfreader.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/cdfreader.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/cdfreader.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
"""Reads variable data from a CDF produced by TRANSP This module has been tested to work with how data is formatted for both DIII-D and NSTX TRANSP discharge types, and may not work for other types of discharges. The CDF's must be saved in the "cdfs" folder of the top level directory in order for this module to find ...
32.140625
101
0.686193
df6150ddc08628ec79156bc039faafd917b19f5e
1,824
py
Python
Curso_Python/Secao7-Bases-de-dado-com-Python/152_python_sqlite3_mais_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/152_python_sqlite3_mais_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/152_python_sqlite3_mais_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import sqlite3 class AgendaDB: def __init__(self, file): self.conn = sqlite3.connect(file) self.cursor = self.conn.cursor() def insert(self, name, telephone): consult = 'INSERT OR IGNORE INTO agenda (name, telephone) VALUES (?, ?)' self.cursor.execute(consult, (name, telephone...
27.223881
80
0.600877
10d5857c1540d9513da8c9a97a5b7072ef34e875
3,150
py
Python
Licence 2/I32/Projet-Camping/interface.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I32/Projet-Camping/interface.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I32/Projet-Camping/interface.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
import os def compare_ids(id, menu, menu_title): menu_id = menu.get(menu_title).get("id") return id == str(menu_id) def show_basic_menu(title, options): os.system('clear') print("====================================", title, sep="\n") print("====================================", "", sep="\n") ...
35
70
0.404444
803df93859e11a836d636cb1fb9deff5cbd1c796
29
py
Python
python_lessons/freecodecamp_python/007_for_in_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/007_for_in_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/007_for_in_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
for n in "banana": print(n)
9.666667
18
0.62069
33c69ed859aa5ce2d5be3abe63a6b7ba2f5d5168
2,598
py
Python
STIX/parseCon.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
STIX/parseCon.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
STIX/parseCon.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
# Ein Parser der über die Liste an Elementen läuft und abprüft welche Verbindungen miteinander kommunizieren # Anordnung der Elemente der Liste: [time, proto, eth_dst, eth_src, ip_src, ip_dst, tcp_src_port, tcp_dst_port] from getCount import getCount list_Con_Arp = [] list_Con_Arp_src = [] list_Con_Arp_dst = [] list_...
34.64
143
0.493841
63743043789b8e15984ccbf6b4312ec712047b38
13,305
py
Python
udm-bildungslogin/usr/share/bildungslogin/handlers/license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/usr/share/bildungslogin/handlers/license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/usr/share/bildungslogin/handlers/license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # https://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation....
37.373596
114
0.648854
63ae01b4ff0cdde70005886ca5199a724e2f1c75
3,159
py
Python
test/test_npu/test_network_ops/test_log_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_log_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_log_sigmoid_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
32.90625
75
0.661918
9868ed1beed464a0d4e2d16f8145e57aca8e5c6f
510
py
Python
servers/docker-python/nohandler/app.py
veaba/ncov
6019f6b90761fd39363f8a7182ffcee22b9cb7ed
[ "MIT" ]
288
2020-01-21T06:12:03.000Z
2022-01-16T08:03:13.000Z
servers/docker-python/nohandler/app.py
kayan12/ncov
90f828208d1eea7cc20e933da41638f328e0411d
[ "MIT" ]
26
2020-01-20T05:07:31.000Z
2022-03-12T00:24:56.000Z
servers/docker-python/nohandler/app.py
kayan12/ncov
90f828208d1eea7cc20e933da41638f328e0411d
[ "MIT" ]
48
2020-01-22T09:05:59.000Z
2022-01-16T08:03:11.000Z
from nohandler.server_app import server_app from spider_app import spider_app from nohandler.socket_app import socket_app import threading def async_app(): server_app() threads = [ # threading.Thread(target=server_app), threading.Thread(target=spider_app), threading.Thread(target=socke...
23.181818
89
0.696078
987a6fd1d08dac38959bacbda6b37a9cae4376ad
725
py
Python
___Python/RomanS/untitled/p15_randomisieren/m01_random_dinner_party.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/RomanS/untitled/p15_randomisieren/m01_random_dinner_party.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/RomanS/untitled/p15_randomisieren/m01_random_dinner_party.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
# 1) PI annähern # 2) Check ob zwei polynomegleich sind # 3) Check ob Zahl eine Primzahl ist import random r = random.Random() def division(): return r.randint(1, a+1) # Zufallszahl zw 1 und Eingabe a = int(input()) print(a) ergebnisse=[] for i in range(int(a/10), int(a/2)): # Min...
17.261905
76
0.6
7f36dce9670c7cc7d2e59eabf1b34779a5b5d44c
4,577
py
Python
20-fs-ias-lec/groups/05-loraLink/src/old/V12/lib/lora_app_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/05-loraLink/src/old/V12/lib/lora_app_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/05-loraLink/src/old/V12/lib/lora_app_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import os import sys import crypto from feed import FEED import binascii import event import pcap import binascii from lora_network_layer import Gossip #from crypto import HMACMD5 # import lopy4_cbor # from lopy4_cbor import dumps # from lopy4_cbor import loads # import lopy4_hmac class Lora_App: ...
29.152866
100
0.526764
1264a413a9ef0ea9afb3d765eef172abf93ab31a
5,220
py
Python
indl/old_reference/test_kl_annealing.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/old_reference/test_kl_annealing.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/old_reference/test_kl_annealing.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf import tensorflow.keras.layers as tfkl from tensorflow.keras import backend as K import tensorflow_probability as tfp tfd = tfp.distributions tfpl = tfp.layers tfb = tfp.bijectors # Constants # ############# KL_MODE = 'loss_fun' # 'regu', 'lo...
35.27027
95
0.649808
c3f1f305f72c4681de6ae0880edf6310dcbea250
105
py
Python
Contests/CCC/CCC '07 J1 - Who is in the Middle.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '07 J1 - Who is in the Middle.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '07 J1 - Who is in the Middle.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
bowls = [0 for n in range(3)] for a in range(3): bowls[a] = int(input()) bowls.sort() print(bowls[1])
21
29
0.609524
619c5016710047cf3d15f3f6fb18a5006e15759b
3,777
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/edgeDataDiff.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/output/edgeDataDiff.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/output/edgeDataDiff.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-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 avail...
39.757895
120
0.584326
f6324ad9c5faff48fadaa15c194fc11ee0b72bc1
222
py
Python
___Python/Thomas/pycurs_180625/p03_lamda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p03_lamda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p03_lamda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
temp_celsius = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] #Durschnittstemperaturen Bielefeld # Alle Temperaturen >= 15 list_tc1 = [] list_tc1 = [temp1 for temp1 in temp_celsius] print(list_tc1)
37
116
0.662162
14380b73dc795a0d5d988f8523e74567e3c577bd
1,074
py
Python
crawlab/config/config.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
null
null
null
crawlab/config/config.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
null
null
null
crawlab/config/config.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # 爬虫源码路径 PROJECT_SOURCE_FILE_FOLDER = os.path.join(BASE_DIR, "spiders") # 爬虫部署路径 PROJECT_DEPLOY_FILE_FOLDER = '/var/crawlab' # 爬虫日志路径 PROJECT_LOGS_FOLDER = '/var/log/crawlab' # 打包临时文件夹 PROJECT_TMP_FOLDER = '/tmp' # M...
20.653846
101
0.744879
148d80396aa0ff2324651d59935865f66894c276
1,838
py
Python
app/xlib/responder.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
1
2020-12-07T13:30:59.000Z
2020-12-07T13:30:59.000Z
app/xlib/responder.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
app/xlib/responder.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
from flask import url_for from kik.messages import TextMessage, SuggestedResponseKeyboard, PictureMessage, CustomAttribution from app.main.wubble import WubbleMessage from setup import kik class Responder(object): @staticmethod def send_text_response(to, chat_id, body, keyboards=None, hidden=False): m...
30.131148
102
0.581066
dcfacb3f66869cca2a1814c6e9779d51e3c73ba0
644
py
Python
tarefas-poo/lista-03/tribo/view/paineis/painel_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/view/paineis/painel_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/view/paineis/painel_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício da Tribo # -------------------------- # Classe responsável por definir um painel abstrato # from abc import ABC, abstractmethod class PainelAbstrato(ABC): def __init__(self, titulo, iu): self._titulo = titulo self._iu = iu ...
23
53
0.557453
25fc2ce42dfa2e5623646fd0fc770734e45de178
4,831
py
Python
tests/views/test_admin_unit_member.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_admin_unit_member.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_admin_unit_member.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_update(client, app, utils, seeder): seeder.create_user() user_id = utils.login() admin_unit_id = seeder.create_admin_unit(user_id, "Meine Crew") member_id = seeder.create_admin_unit_member_event_verifier(admin_unit_id) url = "/manage/member/%d/update" % member_id response = client.get(...
31.782895
78
0.630511
6cb900abd68e5771f3cfad7a1b7b9970a9122fe9
761
py
Python
exercises/en/exc_04_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_04_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_04_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import json import spacy from spacy.matcher import Matcher from spacy.tokens import Span with open("exercises/en/iphone.json", encoding="utf8") as f: TEXTS = json.loads(f.read()) nlp = spacy.blank("en") matcher = Matcher(nlp.vocab) # Two tokens whose lowercase forms match "iphone" and "x" pattern1 = [{____: ____...
28.185185
87
0.703022
2ca5a9be6ffc9c2e8246a2b9be6bc95715802df3
1,675
py
Python
etc code/similarity.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/similarity.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/similarity.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
# -*- Encoding:UTF-8 -*- # import cPickle as pickle import numpy as np import sys import os from glob import glob import cv2 import math import matplotlib.pyplot as plt if len(sys.argv) < 3: print "ERROR: input path1, path2" exit() path1 = sys.argv[1] path2 = sys.argv[2] pkl_paths = sorted(glob('result/' + path1 +...
23.928571
89
0.597612
1ac4193207c46cc93f1d1051fe54cd907f18247a
262
py
Python
1441-build-an-array-with-stack-operations/1441-build-an-array-with-stack-operations.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1441-build-an-array-with-stack-operations/1441-build-an-array-with-stack-operations.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1441-build-an-array-with-stack-operations/1441-build-an-array-with-stack-operations.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def buildArray(self, target: List[int], n: int) -> List[str]: output=[] prev=0 for num in target: output+=["Push", "Pop"]*(num-prev-1) output+=["Push"] prev=num return output
29.111111
65
0.492366
46ba07ce98b2fe5e454b6e1474e8fa23618fb7a0
2,613
py
Python
Utils/py/GoPro/utils/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from . import Logger from .Blackboard import blackboard from .Network import Network from .GameController import GameController from .GameControlData import GameControlData from .GoPro import GoPro from .daemonize import Daemonize from .GameLoggerSql import GameLoggerSql from .GameLoggerLog import GameLogg...
39
97
0.549177
80e723a25ca5acd75667d3ba23f49bb1165b6a6c
334
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import math def convert_mb(kb, unit): UNITS = {"B": -2, "KB": -1, "MB": 0, "GB": 1, "TB": 2} assert unit in UNITS, ("%s not a valid unit, valid units are %s." % (unit, UNITS.keys())) return int(float(kb) / float(math.pow(1024, U...
27.833333
69
0.44012
20d01ae5df4b407e2055904510b974178f48b978
841
py
Python
2_Iterables/Strings/strings.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
2_Iterables/Strings/strings.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
2_Iterables/Strings/strings.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
my_name = "ddHansi Vordorf" print(my_name, type(my_name)) print("----------Groß/Klein/Split/Strip/ersetzen/etc.----------") # erste Buchstabe groß Rest klein print(my_name.capitalize()) # alles klein print(my_name.lower()) # alles groß print(my_name.upper()) # beim Leerzeichen splitten -> Liste word_list = my_name....
22.131579
65
0.702735
b31b506d669a55b2c8e39e443c7d463cca4f97b8
1,184
py
Python
UCEF-main/banner.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
6
2021-08-23T04:54:21.000Z
2021-12-06T09:45:20.000Z
UCEF-main/banner.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
UCEF-main/banner.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 colorama import random, os from colorama import init, Fore, Back, Style init(autoreset=True) # colors foreground text: fc = Fore.CYAN fg = Fore.GREEN fw = Fore.WHITE fr = Fore.RED fb = Fore.BLUE flb = Fore.LIGHTBLUE_EX fbl = Fore.BLACK fy = Fore.YELLOW fm = Fore.MAGENTA def banner(): os.system('clear') ...
27.534884
73
0.519426
b32e7e7168819550e3e985665f44a2be4cabf877
4,692
py
Python
tieba.py
holwell/TieBa
07459840f9f3906544821fdc93c05d077cf981df
[ "MIT" ]
null
null
null
tieba.py
holwell/TieBa
07459840f9f3906544821fdc93c05d077cf981df
[ "MIT" ]
null
null
null
tieba.py
holwell/TieBa
07459840f9f3906544821fdc93c05d077cf981df
[ "MIT" ]
null
null
null
import datetime import json import time import requests from lxml import etree delay = 2 # 翻页延迟,防止屏蔽相应 class Tieba(object): def __init__(self, name): self.url = 'https://tieba.baidu.com/f?kw={}&ie=utf-8&pn=0'.format(name) self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0;...
38.77686
143
0.502984
1b52001044efd9ec6251ad4ccff5e68df9f0733a
3,024
py
Python
packages/watchmen-meta/src/watchmen_meta/analysis/pipeline_index_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/analysis/pipeline_index_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/analysis/pipeline_index_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from watchmen_meta.common import ask_engine_index_enabled, StorageService from watchmen_model.admin import Pipeline from watchmen_model.analysis import PipelineIndex from watchmen_model.common import PipelineId from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpression, EntityDeleter, EntityRow, EntitySha...
36
115
0.790344
ca6bc38b66a7c65257f01770ee1651373fb81376
3,180
py
Python
src/server/handlers/datasources.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/handlers/datasources.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/handlers/datasources.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import logging from apscheduler.events import EVENT_JOB_EXECUTED from server.middleware.db import db from telemetry.events import track_event from server.models import DataSource, Metric, Monitor from .base import CrudResource, ListResource class DataSourceResource(CrudResource): @property def resource(self...
32.783505
112
0.635849
04ba9de1dbee5836b52a71588fe8682ac9e58bfa
1,372
py
Python
utils/codes.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/codes.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/codes.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
def properties(cls): return [i for i in cls.__dict__.keys() if i[:1] != '_'] class Models: AE= 'AE' VAE= 'VAE' BVAE = 'BVAE' AnnVAE = 'AnnVAE' AnnBVAE = 'AnnBVAE' AnnBayAE = 'AnnBayAE' AnnBayVAE = 'AnnBayVAE' AnnBayBVAE = 'AnnBayBVAE' DIPcovVAE = 'DIPcovVAE' DIP...
23.254237
60
0.534985
b6f214289e8b3511300bed0efe6be9b373413913
518
py
Python
tests/test_marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_marktgebietinfo.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from bo4e.com.marktgebietinfo import MarktgebietInfo, MarktgebietInfoSchema class TestMarktgebietinfo: def test_serialization(self): mgi = MarktgebietInfo(marktgebiet="Gaspool", marktgebietcode="37Z701133MH0000B") schema = MarktgebietInfoSchema() json_string = schema.dumps(mgi, ensure_as...
30.470588
88
0.743243
1eda11817b7f3ddb1dc51df22b2a0883fa1bd616
739
py
Python
xss-encoder.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
10
2018-03-13T13:34:36.000Z
2022-01-13T15:34:13.000Z
xss-encoder.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
2
2020-07-06T13:05:27.000Z
2020-08-13T17:48:30.000Z
xss-encoder.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
6
2019-04-10T13:35:32.000Z
2021-04-23T15:27:41.000Z
import cgi import sys import urllib2 ### The data going into the script should be surrounded by double-quotes ### this also means you will have to escape all double-quotes inside the ### data with a slash (eg. \") q = sys.argv[1] urlenc = urllib2.quote(q) tempHTMLENC = cgi.escape(q).encode('ascii', 'xmlcharrefreplace...
27.37037
72
0.47226
7822b99bb1c9dd3aa11923f99ad8417e856f7d88
392
py
Python
src/error.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
1
2020-09-24T05:57:25.000Z
2020-09-24T05:57:25.000Z
src/error.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
src/error.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
# PulseLang Error Handler import sys errors = 0 def error(linenum, error, filename=None): global errors if not filename: msg = "{}: {}".format(linenum, error) else: msg = "{}:{}: {}".format(filename, linenum, error) print(msg, file=sys.stderr) errors += 1 def errors_reported(): ...
17.043478
58
0.612245
78a8856b0531261b6da7852256342ec763c74ffa
1,358
py
Python
Adning-AdvertisingAFU-main/exploit.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Adning-AdvertisingAFU-main/exploit.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Adning-AdvertisingAFU-main/exploit.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 os.path from os import path import json import requests; import sys def print_banner(): print("Adning Advertising < 1.5.6 - Arbitrary File Upload") print("Author -> Lo Kontol") def print_usage(): print("Usage: python3 exploit.py [target url] [php file]") print("Ex: python3 exploit.py https://example.com ./...
20.575758
64
0.651694
15b0448ca86f159f09fcad28dd465d6b51940b69
44,931
py
Python
Crawler/crawl_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Crawler/crawl_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Crawler/crawl_survstat_agegroups.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import datetime import logging import math import pandas as pd import pandas.io.sql as sqlio from zeep import Client # code from https://github.com/rgieseke/opencoviddata/blob/main/scripts/fetch-county.py # and adapted by Maximilian Fischer and Wolfgang Jentner import psycopg2 as pg import psycopg2.extensions import ...
54.461818
178
0.539049
ece04ec0e1e321a8ebf187f5582b70cb2450cf30
2,187
py
Python
source/pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/math/z3/patches/patch-scripts_mk__genfile__common.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-scripts_mk__genfile__common.py,v 1.1 2020/05/31 20:49:34 joerg Exp $ --- scripts/mk_genfile_common.py.orig 2018-11-19 20:21:17.000000000 +0000 +++ scripts/mk_genfile_common.py @@ -622,7 +622,8 @@ def mk_gparams_register_modules_internal reg_mod_descr_pat = re.compile('[ \t]*REG_MODULE_DESCRIPTION\(...
48.6
98
0.584362
eceb88b27433745086e2700071b6c28d751055b6
167
py
Python
PYTHON/Regex_and_Parsing/group.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/group.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/group.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re if __name__ == '__main__': # \1 <- found 1st m = re.search(r'([^\W_])\1+', input()) print(m[1] if m else -1)
18.555556
42
0.556886
170e3914863d59b84b19a16f0a07fd7bdd2fa28f
257
py
Python
module/boundaries.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/boundaries.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/boundaries.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
import numpy as np def ub(var,i): ub = [(var[3]*2)+4+var[1]+200,((var[0]-390)/2)-10,(np.pi*390/48)-10,250,300,var[3]-140] return ub[i] def lb(var,i): lb = [(var[3]*2)+4+(var[1]*2)+40,30,10,120+13+20,50,15] return lb[i]
16.0625
98
0.505837
172d0aac3f2e8990fac8cc8fab6127c05d6e3087
1,503
py
Python
chillow/view/view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/view/view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/view/view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from abc import ABCMeta, abstractmethod from typing import List, Any from chillow.model.game import Game class View(metaclass=ABCMeta): """Provides an UI to show the game progress.""" def __init__(self, colors: List[Any]): """Creates a new view. Args: colors: A l...
29.470588
102
0.610113
da157f63ff8f94eed474c9c7edad03f11ace42bc
907
py
Python
python/deep_learning/exp/color.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/deep_learning/exp/color.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/deep_learning/exp/color.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' print bcolors.WARNING + "Warning: No active frommets remain. Continue?" + bcolors.ENDC print bcolors.OKBLUE + "Wa...
39.434783
93
0.708931
e528799e449ddb436282ba967f4a51ebc17c8954
84
py
Python
py/jpy/src/test/python/fixtures/raise_errors.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/src/test/python/fixtures/raise_errors.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/fixtures/raise_errors.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
def raise_if_zero(arg): if not arg: raise IndexError("arg wasn't there")
28
44
0.654762
e5ea9b25c8198cd8b5d45c1e53f4381fc49b12b6
288
py
Python
Tutorials/10 Days of Statistics/Day 0/weighted_mean.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Tutorials/10 Days of Statistics/Day 0/weighted_mean.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Tutorials/10 Days of Statistics/Day 0/weighted_mean.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys n = int(input().strip()) values = [int(arr_i) for arr_i in input().strip().split(' ')] weights = [int(arr_i) for arr_i in input().strip().split(' ')] weighted_mean = sum([values[i]*weights[i] for i in range(n)]) / sum(weights) print(round(weighted_mean, 1))
24
76
0.65625
e5fb02fadcaefa155a837abce29b5b83fe52c7ec
926
py
Python
kernel/product/migrations/0006_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/product/migrations/0006_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/product/migrations/0006_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 11:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0005_auto_20180605_1611'), ] operations = [ migrations.AlterField( model_name='product', name='sku', ...
31.931034
126
0.62203
00b17e296dee6682f116547d554b3e2e64e66d5e
1,508
py
Python
presentations/Programmieren-Tutorium/Tutorium-04/euler28.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
presentations/Programmieren-Tutorium/Tutorium-04/euler28.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
presentations/Programmieren-Tutorium/Tutorium-04/euler28.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- def print_arr(a): for line in a: print(line) def initialise(n): array = [[0 for j in xrange(0, n)] for i in xrange(0, n)] return array def spiral_fill(a): n = len(a) x = y = n/2 number = 1 # r u l o order ...
24.721311
68
0.5
9716d2a93c85a15fce7821f11b90c3660d7067fb
1,549
py
Python
src/onegov/stepsequence/extension.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/stepsequence/extension.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/stepsequence/extension.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.stepsequence import step_sequences class StepBaseExtension: def get_step_sequence(self, position=None): step = self.registered_steps().get( position=position or self.step_position ) return step and step_sequences.by_id(s...
29.788462
76
0.693351
6b835e7a1d6d85ffe26899b4511da524c01e2626
4,253
py
Python
scripts/flow_rank_explain.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
1
2021-01-20T00:37:31.000Z
2021-01-20T00:37:31.000Z
scripts/flow_rank_explain.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
17
2021-03-03T14:48:54.000Z
2021-09-08T15:52:50.000Z
scripts/flow_rank_explain.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
2
2021-03-05T12:23:20.000Z
2021-03-29T11:49:53.000Z
#%% [markdown] # # Flow ranking and hypothesis testing # TODO: explain the goal of finding a latent ordering, comparing between graphs #%% [markdown] # TODO: explain some of the math behind spring rank/signal flow #%% import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as ...
25.017647
88
0.681636
2e5a1fa135aeb0629dd94688c72eedd0392d84e1
2,842
py
Python
tools/legacy/darkstar-vol-extractor/volinfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/darkstar-vol-extractor/volinfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/darkstar-vol-extractor/volinfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sys import struct from collections import namedtuple importFilenames = sys.argv[1:] compressionTypes = { 0: "none", 1: "rle", 2: "lz", 3: "lzh" } FileInfo = namedtuple("FileInfo", "filename start_offset end_offset size compression_type") vol = b"VOL" pvol = b"PVOL" vols = b"vols" voli = b"vol...
29.298969
115
0.662913
2b348ab983970fc34e0c2f75a0f46d27cc263383
346
py
Python
SchoolSampleProject/SchoolApp/urls.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/urls.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/urls.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
from django.urls import path, re_path from SchoolApp import views urlpatterns = [ path('schools', views.schoolApi), re_path(r'^schools/([0-9]+)$', views.schoolApi), path('students', views.studentApi), re_path(r'^students/(\w{1,20})$', views.studentApi), re_path(r'^schools/([0-9]+)/students$', vi...
24.714286
69
0.66763
515f8990fa49de07fc1ec239b4ff11f7f5b055c6
853
py
Python
tikz/center-line/tikz.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
tikz/center-line/tikz.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
tikz/center-line/tikz.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
from random import uniform import random import math n = 5 xMin, yMin = 0, 0 xMax, yMax = 5, 5 xSum = 0 ySum = 0 coordinates = [] random.seed(42) for i in range(n): x = uniform(xMin, xMax) y = uniform(yMin, yMax) xSum += x ySum += y coordinates.append((x,y)) center = (float(xSum) / n, float(ySum) / n) cx, cy ...
20.804878
108
0.603751
5ae85b2515afa7a575e13dc8ff8a7ab2faf5f57d
697
py
Python
tests/data/tokenizer/python/input.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
5
2019-03-04T12:59:53.000Z
2022-03-25T03:07:00.000Z
tests/data/tokenizer/python/input.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
12
2018-06-05T16:35:31.000Z
2022-02-14T21:43:40.000Z
tests/data/tokenizer/python/input.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
2
2018-06-05T18:00:09.000Z
2019-03-04T12:59:57.000Z
import support as sp class Snake: def __init__(self, name): self.name ==== name def change_name(self, new_name): self.name = new_name def add(num1,num2): num3=num1+num2 return num3 def max(num1,num2,num3): if (num1 >= num2) and (num1 >...
20.5
86
0.526542
891753bb3df43ddefd796aad77556631e2484686
3,620
py
Python
src/ztc/mysql/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/mysql/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/mysql/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python # pylint: disable=F0401 """ MySQL module for ZTC Copyright (c) 2010-2011 Vladimir Rusinov <vladimir@greenmice.info> Copyright (c) 2011 Murano Software [http://muranosoft.com] Licensed under GNU GPL v.3 """ import time import MySQLdb #import ztc.commons from ztc.check import ZTCCheck, CheckFail...
31.754386
78
0.554144
64e7d75b0843cc8172f87d0580c2f2965c7eb189
5,727
py
Python
test/test_npu/test_sqrt.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_sqrt.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_sqrt.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies. # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BS...
37.677632
75
0.596997
8f7acf5cf35dfd3abd8f29bcbdfa870a1ca12fbe
967
py
Python
42/fcat_42.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
42/fcat_42.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
42/fcat_42.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List class Solution: def trap(self, height: List[int]) -> int: water = 0 highest = height[0] peak = [highest] for i in range(1, len(height)): while len(peak) > 1 and height[i] > peak[-1]: if highest == peak[-1]: br...
28.441176
57
0.445708
56d0f4898c73e9ccbed6967904a001d2bf420314
1,132
py
Python
script/crop/crop.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
script/crop/crop.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
script/crop/crop.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
import os import numpy as np from tqdm import tqdm from PIL import Image def get_random_crop(image, crop_height, crop_width): # function to randomly crop given image max_x = image.shape[1] - crop_width max_y = image.shape[0] - crop_height x = np.random.randint(0, max_x) y = np.random.randint(0, ma...
25.727273
71
0.630742
a43fe43599cb2b7c4dd31c0b34e16b2070c5a479
2,087
py
Python
src/data_science/data_science/simulation/parameter.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/simulation/parameter.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/simulation/parameter.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
"""Parameter to build devices.""" from collections import deque from data_science.tools.classes import InstanceTraceable from data_science.tools.time import get_timestamp_unix class Parameter(InstanceTraceable): """A parameter for building devices.""" def __init__(self, name, value=0, units=None, auto_log=T...
27.460526
65
0.59655
74b58408906b30026f95b489129360f3025541b2
22,667
py
Python
python-bildungslogin/tests/test_handlers.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/tests/test_handlers.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/tests/test_handlers.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import random import sys import uuid from hashlib import sha256 from typing import Dict, Tuple import pytest import univention.bildungslogin.handlers from univention.bildungslogin.exceptions import BiloAssignmentError, BiloLicenseNotFoundError from univention.bildungslogin.hand...
44.185185
105
0.717519
741ff6a50d9310e5456c3b811ee209440a59aa3c
2,863
py
Python
Packs/CommonScripts/Scripts/CheckContextValue/CheckContextValue_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/CheckContextValue/CheckContextValue_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/CheckContextValue/CheckContextValue_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CheckContextValue import poll_field context = { 'id': 1, 'name': 'This is incident1', 'type': 'Phishing', 'severity': 0, 'status': 1, 'created': '2019-01-02', 'closed': '0001-01-01T00:00:00Z', 'foo': 'bar', } missing_context = { 'id': 2, 'n...
26.266055
85
0.632903
24cfb47d09efb5eaee10b74eb2d0122d81a471fb
2,636
py
Python
chord_rec/harmalysis/parsers/chordlabel.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/parsers/chordlabel.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/parsers/chordlabel.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
42.516129
93
0.741654
7011049119df514df94f29f7f60fd0e69a032285
41,950
py
Python
Packs/Kafka/Integrations/KafkaV3/KafkaV3_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Kafka/Integrations/KafkaV3/KafkaV3_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Kafka/Integrations/KafkaV3/KafkaV3_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import DemistoException, demisto from KafkaV3 import KafkaCommunicator, command_test_module, KConsumer, KProducer, print_topics, fetch_partitions, \ consume_message, produce_message, fetch_incidents from confluent_kafka.admin import ClusterMetadata, TopicMetadata, PartitionMetadata from con...
49.12178
123
0.625745
5630e6024573777a0aaae53cc040632d8cbe3b95
3,326
py
Python
research/audio/fcn-4/modelarts/utils/convert2mindrecord.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/fcn-4/modelarts/utils/convert2mindrecord.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/fcn-4/modelarts/utils/convert2mindrecord.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# coding: utf-8 # 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 ...
35.763441
115
0.624474
569310e342fc6a68e140938acd03b700674b319f
2,514
py
Python
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler-pendel.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
4
2020-01-18T14:35:03.000Z
2021-11-30T00:19:53.000Z
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler-pendel.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
1
2020-03-19T12:09:05.000Z
2020-03-19T12:09:05.000Z
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler-pendel.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
3
2020-02-18T20:03:25.000Z
2021-11-30T00:20:26.000Z
#! /usr/bin/env python3 # # Integrates the equations of the mathematical pendulum # using two different Euler methods. # # usage: ./euler-pendel.py <h=0.05># # $ apt install python3-matplotlib python3-tk import math import matplotlib.pyplot as plt import sys q0 = 0.1 # Initial angle p0 = 0. # Initial momentum m...
23.277778
106
0.583532
3b608d1194c2c5d9656b690d3d66b54a1a2ef2a1
3,452
py
Python
Python/Sonstige_Uebungen/second_last_bit_of_prime.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/second_last_bit_of_prime.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/second_last_bit_of_prime.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # #### # File: second_last_bit_of_prime.py # Project: Python #----- # Created Date: Monday 11.01.2021, 20:46 # Author: Apop85 #----- # Last Modified: Monday 11.01.2021, 21:52 #----- # Copyright (c) 2021 Apop85 # This software is published under the MIT license. # Check ht...
30.821429
146
0.635284
eb6cdd334cb47124679365d6177eb98158c49220
2,482
py
Python
translate_sample_check.py
yangtiancheng/odoo_skills
57d404ede5618183f10a15c24c8d1baa24439670
[ "Apache-2.0" ]
null
null
null
translate_sample_check.py
yangtiancheng/odoo_skills
57d404ede5618183f10a15c24c8d1baa24439670
[ "Apache-2.0" ]
null
null
null
translate_sample_check.py
yangtiancheng/odoo_skills
57d404ede5618183f10a15c24c8d1baa24439670
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-06-24 13:29:37 # @Author : TC # @Site : # @File : translate_sample_check.py # @Software: PyCharm transfer_file_route = input('输入完整文件路径:') file_object = open(transfer_file_route) print('>>>>>>>开始检测:\n') # 错误信息 error_message = '' try: # 读翻译文件 ...
29.903614
126
0.468574
6937b4f15b0aabad94c29335a6fab777c3449dd0
860
py
Python
year_3/databases_sem1/lab3/api/migrations/0002_payroll.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab3/api/migrations/0002_payroll.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab3/api/migrations/0002_payroll.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-26 17:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='Payroll', field...
34.4
114
0.612791
0305e70e9c055badcc043ea8f5bf4c80e38b3884
398
py
Python
1309-decrypt-string-from-alphabet-to-integer-mapping/1309-decrypt-string-from-alphabet-to-integer-mapping.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1309-decrypt-string-from-alphabet-to-integer-mapping/1309-decrypt-string-from-alphabet-to-integer-mapping.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1309-decrypt-string-from-alphabet-to-integer-mapping/1309-decrypt-string-from-alphabet-to-integer-mapping.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
import string class Solution: def freqAlphabets(self, s: str) -> str: di = dict(zip(range(1, 27), string.ascii_lowercase)) output="" slist = s.split("#") for numstr in slist[:-1]: output+="".join([di[int(n)] for n in numstr[:-2]]) output+=di[int(numstr[-2:])] ...
36.181818
62
0.530151
000712e29ba39c4953b2de6d9d963a7463f8ff35
175
py
Python
webapp/flask_deploy_model/req.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/flask_deploy_model/req.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/flask_deploy_model/req.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import requests data = {'area': 3300} response = requests.post('{}/'.format('http://127.0.0.1:5000'), json=data) print('Print of the house should be ' + str(response.json()))
35
74
0.668571
cc696858f30dae88058f4d482ac97d70ff0d3d82
658
py
Python
PINp/2014/Generalov_K_A/task_5_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Generalov_K_A/task_5_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Generalov_K_A/task_5_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 5. Вариант 48 #Напишите программу, которая бы при запуске случайным образом отображала #название одного из восьми категорий, на которые разделяются дорожные знаки в #соответствии с Венской конвенцией о дорожных знаках и сигналах. #Generalov K. A. import random a = random.choice(['Предупреждающие знаки.','Знак...
54.833333
337
0.797872
aef5d75176437e62e42b946d03c63599f7f7917a
776
py
Python
module/encodings/huffman/leaf_node.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
module/encodings/huffman/leaf_node.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
module/encodings/huffman/leaf_node.py
abraxas767/ezencode
14d870a708c4da1389858f5265c36b930a0e5176
[ "MIT" ]
null
null
null
class LeafNode: parent: object = None child0: object = None child1: object = None code: int = None content: any = None prob: int = None is_numeric: bool = False def __str__ (self): return "[content: {}, prob: {}, numeric: {}, code: {}]".format(self.content, self.prob, self.is_n...
27.714286
123
0.606959
4e2a5175d12bb0adbedeed5c429dc3f835637ded
502
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/2d_histogram.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/2d_histogram.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/2d_histogram.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 4 11:10:35 2019 @author: jone """ import cv2 from matplotlib import pyplot as plt img = cv2.imread('img/2d_histogram.jpg') img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) hsv = cv2.cvtColor(img, cv2.COLOR_RGB2HSV) hist = cv2.calcHist([hsv], [0, 1], None, [180, 256], [0,180...
25.1
78
0.685259
4e2bea7406c8869771102329efc76578263e6ca5
5,036
py
Python
Codeforces/646-2/E.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/646-2/E.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/646-2/E.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
""" Python 3 compatibility tools. """ from __future__ import division, print_function import itertools import sys, threading import os from io import BytesIO, IOBase from types import GeneratorType def is_it_local(): script_dir = str(os.getcwd()).split('/') username = "dipta007" return username in script_dir d...
22.58296
86
0.577442
d1ea1611c1fe62617e360ba8c78d272544ddb879
1,833
py
Python
research/cv/HourNAS/src/architectures.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/HourNAS/src/architectures.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/HourNAS/src/architectures.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...
32.732143
78
0.505728
11fc8e8a7b20c1985d219c0cebd30c16c6630da4
4,837
py
Python
Calliope-Rennspiel/Python/iq-test-calliope/iq-test-erstellen.py
rao003/ki-in-schulen
ec7e69da6d728ce6480711b45cea0aef7796b14b
[ "MIT" ]
10
2021-05-27T15:08:45.000Z
2022-03-01T17:21:24.000Z
Calliope-Rennspiel/Python/iq-test-calliope/iq-test-erstellen.py
telekom/ki-in-schulen
ec7e69da6d728ce6480711b45cea0aef7796b14b
[ "MIT" ]
null
null
null
Calliope-Rennspiel/Python/iq-test-calliope/iq-test-erstellen.py
telekom/ki-in-schulen
ec7e69da6d728ce6480711b45cea0aef7796b14b
[ "MIT" ]
3
2021-04-08T12:44:30.000Z
2021-06-21T08:20:59.000Z
# # iq-test-erstellen.py$ # # (C) 2021, Ferenc Hechler, Christian A. Schiller, Deutsche Telekom AG # # Deutsche Telekom AG and all other contributors / # copyright owners license this file to you under the # MIT License (the "License"); you may not use this # file except in compliance with the License. # You m...
39.325203
141
0.627248
eeb24383929a46dd96f3294920de70f6bf22bbc3
449
py
Python
Online-Judges/DimikOJ/Python/22-prime-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/22-prime-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/22-prime-number.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def is_prime(n): if n < 2: return False if n == 2: return True if n % 2 == 0: return False reng = int((n ** 0.5)+ 1) for i in range(3, reng, 2): if n % i == 0: return False return True t = int(input()) for i in range(t): a, b = input().split() ...
19.521739
31
0.447661
012da4926a127f57b4b550ec4c720c8f894e7252
680
py
Python
chillow/view/headless_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/view/headless_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/view/headless_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from chillow.model.game import Game from chillow.view.view import View class HeadlessView(View): """This view may be used when there is no need for any feedback on how the game is progressing. There is no UI and no human player can interact with the game using this view. """ def __init__(self): ...
25.185185
99
0.601471
6dea978879cc5df3ba7a0f4882adf5ab072e9f67
6,108
py
Python
src/kandidaturen/migrations/0002_auto_20210509_0000.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
1
2021-12-20T20:15:26.000Z
2021-12-20T20:15:26.000Z
src/kandidaturen/migrations/0002_auto_20210509_0000.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
src/kandidaturen/migrations/0002_auto_20210509_0000.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-05-08 22:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
52.655172
190
0.592174
fefb2677f466d3e3e55ded8155c4976d526076d3
5,615
py
Python
bases/losses.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
bases/losses.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
bases/losses.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
import tensorflow as tf import utils.codes as codes from utils.configuration import default_config as config ## ------------------- LOSS: EXPECTED LOWER BOUND ---------------------- # tsne_cost loss def get_reconst_loss(x, x_recons, loss_func, epsilon=config.epsilon): """ Returns the reconstuction loss...
39.265734
125
0.601603
3a45c34892640e7951f72dbe1fd63d6d55aec9d3
50
py
Python
src/backend/utils/__init__.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
2
2021-04-07T03:12:33.000Z
2021-05-25T10:01:40.000Z
src/backend/utils/__init__.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/utils/__init__.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
3
2021-04-07T03:12:44.000Z
2021-04-13T11:21:03.000Z
from .time_utils import * from .printing import *
16.666667
25
0.76
28e012cc264d295886f4e072b6e9d64e43c2a7fb
7,936
py
Python
weibo/login/weiboMain.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/login/weiboMain.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/login/weiboMain.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
# coding:utf8 ''' Created on 2016年4月11日 @author: wb-zhaohaibo ''' from weibo.login.weiboLogin import WeiboLogin from weibo.spider import url_manager from weibo.spider import html_downloader from weibo.spider import html_parser from weibo.spider import html_outputer import spynner import time from _pyio im...
36.571429
135
0.530746
3abc742d9706741030b29c6d35b74c0d79ef3a6a
2,969
py
Python
algorithmU.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
1
2019-11-14T09:50:58.000Z
2019-11-14T09:50:58.000Z
algorithmU.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
null
null
null
algorithmU.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
null
null
null
#https://codereview.stackexchange.com/questions/1526/finding-all-k-subset-partitions def algorithm_u(ns, m): def visit(n, a): ps = [[] for i in range(m)] for j in range(n): ps[a[j + 1]].append(ns[j]) return ps def f(mu, nu, sigma, n, a): if mu == 2: yiel...
29.989899
95
0.352644
a368ec914f296ec538380260bd3de3956f30dc6d
2,277
py
Python
ppyt/rules/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/rules/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/rules/__init__.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging import abc from ppyt import const from ppyt.mixins import FinderMixin, ArgumentValidationMixin logger = logging.getLogger(__name__) class RuleBase(FinderMixin, ArgumentValidationMixin, metaclass=abc.ABCMeta): """ルール系(conditions, entry_rules, exit_rules)の基底クラスです。""" def __init_...
20.7
76
0.565217
6ea962270ccb0b386d19e78bdf244c12870fa50e
803
py
Python
hihope_neptune-oh_hid/00_src/v0.1/device/winnermicro/neptune/w800_adapter/copy_library.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/device/winnermicro/neptune/w800_adapter/copy_library.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/device/winnermicro/neptune/w800_adapter/copy_library.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#! usr/bin/env python import sys import shutil import os import argparse def main(): parser = argparse.ArgumentParser(description='Copy prebuilt library to out dir.') parser.add_argument('--source', help='Source file') parser.add_argument('--target', help='Target file') args = parser.parse_args() ...
25.09375
85
0.62142
953a541225adb5749a8addf3167dff68a3082135
11,577
py
Python
official/cv/brdnet/modelarts/start_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/brdnet/modelarts/start_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/brdnet/modelarts/start_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
45.758893
120
0.668653
6c222db6837ac55927b4960f198f34cf5ec6cb5a
983
py
Python
whereis-master/whereis-backend/main.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
whereis-master/whereis-backend/main.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
3
2021-03-10T13:18:31.000Z
2021-05-11T09:20:11.000Z
whereis-master/whereis-backend/main.py
jaakaappi/archived-projects
be1f754eca7c1434f3a363b0ea8ebcd190a42436
[ "MIT" ]
null
null
null
from database import database from flask import Flask, render_template, jsonify, request, abort from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route('/locations', methods=['GET']) def locations(): return jsonify(database.get_locations()) @app.route('/items/<int:count>') def items(count): ...
22.860465
65
0.663276
6c7cbcf5c03c1167ba9104088957c4dbdd606b72
428
pyde
Python
sketches/rotatetranslate2/rotatetranslate2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/rotatetranslate2/rotatetranslate2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/rotatetranslate2/rotatetranslate2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
t = 0 def setup(): size(600, 600) this.surface.setTitle("Rotate und Translate") rectMode(CENTER) def draw(): global t background(0, 0, 255) translate(width/2, height/2) rotate(radians(t)) fill(255, 255, 0) for i in range(12): with pushMatrix(): translate(200, 0)...
20.380952
49
0.542056
dd4128273feab902a888700674007ff9e7f99356
2,845
py
Python
research/recommend/Fat-DeepFFM/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/recommend/Fat-DeepFFM/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/recommend/Fat-DeepFFM/eval.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...
46.639344
116
0.703691
06ef385141773fa232055a7a6e3a1db202d3d165
21,079
py
Python
ProyectoTEO V3/parsetab.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/parsetab.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/parsetab.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
# parsetab.py # This file is automatically generated. Do not edit. # pylint: disable=W,C,R _tabversion = '3.10' _lr_method = 'LALR' _lr_signature = 'ARITMETIC_OP_ADD ARITMETIC_OP_PROD ASSIGN BIT_OP BLOCK_END BLOCK_START CHAR CHARACTER COMA COMILLA_DOBLE DEFINE DO ELSE ESCRITURA FLOAT FOR HASH ID IF INCLUDE I...
197
7,102
0.651691
662fee9db5bb72a8641319da7dee47492183637f
12,476
py
Python
Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Arcanna/Integrations/ArcannaAI/ArcannaAI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 from CommonServerUserPython import * # noqa: F401 import json import urllib3 import traceback import requests from typing import Any, Dict # Disable insecure warnings urllib3.disable_warnings() ''' CLIENT CLASS ''' class Cli...
35.143662
116
0.656621
a5627bd5519b65f6ecfc75d213c808f64e24549e
1,997
py
Python
src/onegov/org/views/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/external_link.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org import _ from onegov.core.security import Private from onegov.org import OrgApp from onegov.org.forms.external_link import ExternalLinkForm from onegov.org.layout import ExternalLinkLayout, DefaultLayout from onegov.org.models.external_link import ( ExternalLinkCollection, ExternalLink ) from morepa...
32.737705
77
0.711567
3c0abbf386f42513a30ca653531e53b1416b0c8b
759
py
Python
python/plrf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/plrf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/plrf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
def csc(rawstr): #check sum control checksum = ord(rawstr[0]) for char in rawstr[1:-2]: checksum += ord(char) return hex(checksum & 0xFF)[2:] == rawstr[-2:].lower() def r2v(rawstr): stchr = rawstr[0] value = rawstr[1:-2] if stchr in ['d', 'a', 'e']: value = int(value) * 0.1 ...
28.111111
132
0.565217
5994d1965869f96befd30b8411b3d835dd58cc44
276
py
Python
Python/Random/File-Handling/02-read-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/02-read-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/02-read-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
with open("text.txt", 'r') as file: # print(file.read()) # print(file.read(100)) # print(file.read(100)) size_to_read = 10 content = file.read(size_to_read) while content != "": print(content, end="*") content = file.read(size_to_read)
27.6
41
0.586957
ab7b33e91e563e796528b55fafb5747ca89a2276
811
py
Python
2_postitionierung/5_vierQuadrate.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
2_postitionierung/5_vierQuadrate.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
2_postitionierung/5_vierQuadrate.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" Vier Quadrate in RGB Die Funktion translate() verschiebt den Nullpunkt des Koordinatensystems. """ newPage(300, 300) x = 0 y = 0 dia = width() / 2 fill(1, 0, 0) stroke(0) rect(x, y, dia, dia) # 1. Translate translate(30, 30) fill(0, 1, 0) rect(x, y, dia, dia) # 2. Translate translate(30, 30) fill(0, 0, 1) r...
17.255319
89
0.647349
abcd8f4c6af99aeafb3ec7000de71612d7ef6667
259
py
Python
2_postitionierung/1_nullpunkt.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
2_postitionierung/1_nullpunkt.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
2_postitionierung/1_nullpunkt.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Den Nullpunkt versetzen - warum ist der Kreis trotzdem nicht eingemittet? - Wie könnte er eingemittet werden? """ newPage("A0") translate(width()/2, height()/2) diameter = 800 posX = 0 posY = 0 oval(0-(diameter/2), 0-(diameter/2), diameter, diameter)
16.1875
56
0.698842
abdbec37c70e4c990c5cab48fae09be473d66724
883
py
Python
imwievaluation/lecturer.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/lecturer.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/lecturer.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
import sqlalchemy as db from sqlalchemy.dialects import mysql from sqlalchemy.orm import relationship from base import Base class Lecturer(Base): __tablename__ = 'lecturer' id = db.Column(db.Integer, primary_key=True) first_name = db.Column(db.String(30), nullable=False) last_name = db.Column(db.Stri...
31.535714
68
0.711212
053985bb0871358dcdb0bf52141f0bf019a8aca0
1,402
py
Python
stphohapp/migrations/0001_initial.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
stphohapp/migrations/0001_initial.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
stphohapp/migrations/0001_initial.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-13 16:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Patient_info', fields=[ ...
37.891892
126
0.57632
55a2b9ba8245cdcbd667b1fe0deef38a022f36eb
935
py
Python
app/problem/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/problem/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/problem/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from app import db from datetime import datetime from utils import ModelParent class Problem(db.Model, ModelParent): __tablename__ = 'problems' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(32)) content = db.Column(db.Text) content_html = db.Column(db.T...
28.333333
78
0.649198
75bafc76f68842a237d2b6ad0c05d026c21c8c3f
1,650
py
Python
leetcode/flatten-nested-list-iterator/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
leetcode/flatten-nested-list-iterator/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
leetcode/flatten-nested-list-iterator/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class NestedIterator(object): def __init__(self, nestedList): """ Initialize your data structure here. :type nestedList: List[NestedInteger] """ self.stack = [nestedList] def next(self): """ :rtype: int """ x = self.stack[-1][0].getIntege...
28.947368
95
0.545455
f997eb697707620ae3ad3689ea92a524c551bb86
1,267
py
Python
micropython/sd/Test.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/Test.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/Test.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
""" THe purpose of this code is to call the test functions of the high level modules for a quick check that all is working correctly Author: Howard Webb Data: 11/13/2020 """" def test(): # High level test import LogSensors LogSensors.test() # parameter files do not have their own test def conf_test(): ...
20.111111
128
0.603788
349643fbc796d73aa8fe4a2205f6cf4387a659d2
725
py
Python
listings/chapter05/search_in_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/search_in_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/search_in_graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from graph import Graph from node_search import get_path, dfs, bfs graph = Graph() graph = Graph() graph.add_vertex('A') graph.add_vertex('B') graph.add_vertex('C') graph.add_vertex('D') graph.add_vertex('E') graph.add_edge('A', 'B') graph.add_edge('A', 'D') graph.add_edge('B', 'C') graph.add_edge('B', 'D') graph.add_...
21.969697
42
0.668966
9b30555a511bac2ba0d7cd364ae9a79cbe5a6fd9
3,690
py
Python
python/test/test_isbn_methods.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/test/test_isbn_methods.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/test/test_isbn_methods.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
# -*- coding: UTF-8 -*- import os from sys import path from urllib.request import urlretrieve import pytest path.append(os.path.join(path[0], "python")) import openapc_toolkit as oat CORRECT_ISBN_SPLITS = { "9782753518278": "978-2-7535-1827-8", "9780815726890": "978-0-8157-2689-0", "9788496820524": "978...
32.368421
103
0.667209
9b6db4edaa3a5bd6d3763bcb26c97d29a85099bd
27,808
py
Python
etl/io_config/epic_api.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/io_config/epic_api.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/io_config/epic_api.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
from etl.mappings.api_servers import servers from etl.mappings.flowsheet_ids import flowsheet_ids from etl.mappings.component_ids import component_ids from etl.mappings.lab_procedures import lab_procedure_ids from etl.transforms.pipelines import epic2op_transform as jhapi_transform_lists from etl.core.environment impor...
43.113178
171
0.627517
32e10a80013d8401ea866f92224d5a5872a1a74c
316
py
Python
genutil/__main__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
genutil/__main__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
genutil/__main__.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
""" __main__.py """ def main(): """Zeigt den Link zum Repository in der Konsole an.""" print("Dieses Tool stellt übergreifende, grundlegende Funktionalitäten zur Verfügung.\n" "Für weitergehende Informationen: https://github.com/MZH-bust/general_helpers") if __name__ == "__main__": main()
26.333333
92
0.689873