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
165c6758a989f8deab83e310fddd1fe121ef4cc3
1,093
py
Python
Content Based Filtering/ContentRecs.py
uboni/Project-B-Movie-Recommender-System
77390637a71b112651fcf92b767e27ca0d3ee8c7
[ "MIT" ]
73
2019-05-08T05:59:53.000Z
2022-03-28T16:59:19.000Z
ContentBased/ContentRecs.py
mayank171986/Building-Recommender-Systems-with-Machine-Learning-and-AI
9e6dc58254ec1a2d2ca64c2f81a37f6390947701
[ "MIT" ]
1
2021-02-07T18:01:54.000Z
2021-02-23T12:26:16.000Z
ContentBased/ContentRecs.py
mayank171986/Building-Recommender-Systems-with-Machine-Learning-and-AI
9e6dc58254ec1a2d2ca64c2f81a37f6390947701
[ "MIT" ]
43
2019-07-18T03:26:22.000Z
2022-03-10T22:03:33.000Z
# -*- coding: utf-8 -*- """ Created on Fri May 4 16:25:39 2018 @author: Frank """ from MovieLens import MovieLens from ContentKNNAlgorithm import ContentKNNAlgorithm from Evaluator import Evaluator from surprise import NormalPredictor import random import numpy as np def LoadMovieLensData(): ...
23.76087
83
0.729186
16c3995ab0c7ca8ca792150087c946c8acc9f38d
10,458
py
Python
utils.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
1
2021-06-15T11:19:43.000Z
2021-06-15T11:19:43.000Z
utils.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
null
null
null
utils.py
yue1234567/QuantumCircuitZJY
097275a633bc0f0c92bb14ad63e94f460fa8567d
[ "Apache-2.0" ]
null
null
null
import numpy as np from tqdm import tqdm from ops import tensor_product, quantum_one, quantum_zero, quantum_eye, quantum_flip, MakeR, EPS, Fidelity, NormalizeAngle class EnumAllCNOT(object): def __init__(self, quantum_count, layer_count): self.quantum_count = quantum_count self.layer_count...
31.405405
152
0.566265
4c0c8145a3473773605b7beb636b70a124d80710
228
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/35for_else/35for_else.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/35for_else/35for_else.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/35for_else/35for_else.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" For / Else em python """ variavel = ['Luiz Otavio', 'Joãozinho', 'Maria'] for valor in variavel: print(valor) if valor.startswith('M'): print('Começa com J', valor) else: print('Não começa com J')
22.8
48
0.592105
d5dd2ca3988da35c7474b49e0ec3dbdf7606fe39
3,846
py
Python
graph-test.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
11
2018-09-06T10:36:02.000Z
2021-03-18T16:15:30.000Z
graph-test.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
null
null
null
graph-test.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
2
2019-12-09T07:21:04.000Z
2021-06-07T02:30:10.000Z
from neo4j.v1 import GraphDatabase from PyHugeGraph import PyHugeGraphClient if __name__ == '__main__': hg = PyHugeGraphClient.HugeGraphClient("http://loaclhost:8090", "hugegraph") print hg.graph print hg.get_all_graphs().response print hg.get_vertex_by_id("123").response print hg.get_all_vertelabe...
38.46
109
0.615705
e69559ebb952b172d5826c0b1ff0fedb231d8b03
408
py
Python
addition_module/face_mask_adding/FMA-3D/utils/cython/setup.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/face_mask_adding/FMA-3D/utils/cython/setup.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/face_mask_adding/FMA-3D/utils/cython/setup.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
''' @author: cbwces @date: 20210419 @contact: sknyqbcbw@gmail.com ''' from setuptools import setup, Extension from Cython.Build import cythonize import numpy ext_modules = [ Extension( "render", ["render.pyx"], extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'], ) ] ...
17.73913
40
0.659314
5d4962ebca12db7d9c5d60c7a06167558d7495d4
1,245
py
Python
chapter_seven/building_a_python_model/numpy_model.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_seven/building_a_python_model/numpy_model.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_seven/building_a_python_model/numpy_model.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
import numpy as np class MatrixModel: @property def weights_matrix(self) -> np.array: return np.array([ [3, 2], [1, 4] ]) def calculate_times(self, distance: int, traffic_grade: int) -> dict: inputs = np.array([ [distanc...
24.411765
66
0.513253
53cf91710589936dd8752f38b18fc803aedf413e
2,239
py
Python
pelicanconf.py
pythonquick/innernet-blog
d62ad9b64a93ea1539d15827a7940837f87f3175
[ "MIT" ]
null
null
null
pelicanconf.py
pythonquick/innernet-blog
d62ad9b64a93ea1539d15827a7940837f87f3175
[ "MIT" ]
null
null
null
pelicanconf.py
pythonquick/innernet-blog
d62ad9b64a93ea1539d15827a7940837f87f3175
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals import os AUTHOR = 'Guenther' SITENAME = 'innernet' SITEURL = 'http://localhost:8000' SITELOGO = 'https://s.gravatar.com/avatar/fcfe36f97f3eb56b69ecce65d0c895dc?s=80' ROBOTS = 'index, follow' SITEMAP = { 'format': 'xml', '...
26.975904
88
0.670835
54fef41e30838bf329ca8f50c5ce5e2a5fa44c17
268
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61b1/src/item.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# items implementation class Item: def __init__(self, item_name, item_description): self.item_name = item_name self.item_description = item_description def __str__(self): return '%s, %s' % (self.item_name, self.item_description)
24.363636
65
0.675373
ab4ebd6255f4b428c623c0dbbaaf9eb0ccdea384
429
py
Python
INBa/2015/ZORIN_D_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 7. # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Стендаль. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Krasnikov A. S. # 19.03.2016 print("Будем трудиться, потому что труд - это отец удовольствия...
53.625
201
0.689977
91e5a09ac4781c9aa53955f5af697cf6376d37fc
1,634
py
Python
db_init.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
db_init.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
db_init.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
from globals import connection_pool def init(): with connection_pool.connection() as con, con.cursor(dictionary=True) as cursor: cursor.execute("CREATE TABLE IF NOT EXISTS settings (" "id INT PRIMARY KEY NOT NULL AUTO_INCREMENT," "setting VARCHAR(100)," ...
43
84
0.433905
53693c2098532b89e5b246198bb277e313c22d49
3,612
py
Python
models/hr_employee.py
DevCriUd/hr_cgt
5db7c173b937fd156b365d17ddf9bd6d86638315
[ "Apache-2.0" ]
null
null
null
models/hr_employee.py
DevCriUd/hr_cgt
5db7c173b937fd156b365d17ddf9bd6d86638315
[ "Apache-2.0" ]
null
null
null
models/hr_employee.py
DevCriUd/hr_cgt
5db7c173b937fd156b365d17ddf9bd6d86638315
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models, fields, api, _ from odoo.exceptions import ValidationError class FullEmployee(models.Model): _inherit = 'hr.employee' # Compute @api.multi def _compute_documents_count(self): docs = self.env['hr.documents'] for employee in self: ...
29.129032
73
0.527685
72fcee1493f195ec3bae74593e478750b54bd8d2
23,803
py
Python
python/oneflow/compatible/single_client/nn/modules/pooling.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/compatible/single_client/nn/modules/pooling.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/modules/pooling.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
42.203901
164
0.60026
f40d32e548139f9fb4eba3fe304297507dda91c5
6,217
py
Python
python/en/archive/topics/temp/audio/voice_activity_detection/src/webrt_vad.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/audio/voice_activity_detection/src/webrt_vad.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/audio/voice_activity_detection/src/webrt_vad.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
''' webrt_vad.py Prerequisite: + Install webrtcvad $ pip install webrtcvad + Install other packages such as numpy, matplotlib, and scipy $ pip install package_name fs sampling rate py-webrtcvad, https://github.com/wiseman/py-webrtcvad/ Voice activity detection example, https://www.kaggle.com/holzner/voice-acti...
36.356725
103
0.593695
be2f8c45e2d5ae5d90af28ed25e26cb678b1ec6a
2,391
py
Python
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Interface/sensui/SensorManager.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Interface/sensui/SensorManager.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Interface/sensui/SensorManager.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
class SensorManager: class Sensor: def __init__(self, id, name, sType, unit): self.id = id self.name = name self.sType = sType self.unit = unit sensorTypes = { "T_celcius": Sensor("T_celcius", "Temperatur", "T", "°C"), "P_hPa": Sensor("...
31.051948
92
0.557926
be990e57313210c67d9f706a8582347597f1840b
2,078
py
Python
BigData_exp/exp3/exp3/my_pie.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
BigData_exp/exp3/exp3/my_pie.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
BigData_exp/exp3/exp3/my_pie.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
from matplotlib import pyplot as plt from matplotlib import cm import numpy as np import my_count plt.rcParams['font.sans-serif'] = ['SimHei'] # 解决中文乱码 def school_pie(): labels = [] sizes = [] othersize = 0 explode = (0.05, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
33.516129
84
0.567372
fe6233507e6954c640851a443fe9f83f5ba4fd02
462
py
Python
python/abc/abc_register.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/abc/abc_register.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/abc/abc_register.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import abc from abc_base import PluginBase class LocalBaseClass: pass @PluginBase.register class RegisterImplementation(LocalBaseClass): def load(self, input): return input.read() def save(self, output, data): return output.write(data) if __name__ == "__main__": ...
22
73
0.692641
43a274f75c99b891819d3091e48fdb226c5fd96a
2,660
py
Python
docs/labs/lab5/solutions/solution1.py
yankeesong/2021-CS109A
0fea6b4411092446719d09379c6a12815aa91ab2
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
docs/labs/lab5/solutions/solution1.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
docs/labs/lab5/solutions/solution1.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
def preprocess(df, standardize = False): """Splits the data into training and validation sets. arguments: df: the dataframe of training and test data you want to split. standardize: if True returns standardized data. """ #split the data train, test = train_test_split(df, train_size=0...
40.923077
117
0.658647
43c9b0c4273e8e5eb8ebb7d3ef50508cde1bec57
271
py
Python
session15/walk_dir.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session15/walk_dir.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session15/walk_dir.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
import os startpath = 'session15/Tageshoroskope 2020' os.chdir(startpath) doclist = [] for i in os.walk('.'): for d in i[2]: if d.endswith(".docx"): n = startpath + i[0].replace('.', '') + '/' + d doclist.append(n) print(doclist)
19.357143
60
0.546125
7163e59fdf69065377b620e38552d693b8a45bc5
2,306
py
Python
python/course/leetcode/1~27/21. Merge Two Sorted Lists.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/21. Merge Two Sorted Lists.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/21. Merge Two Sorted Lists.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/21 17:13 # @Author:TimVan # @File:21. Merge Two Sorted Lists.py # @Software:PyCharm # 21. Merge Two Sorted Lists # Merge two sorted linked lists and return it as a new sorted list. # The new list should be made by splicing together the nodes of the first two lists. # # Example 1: ...
24.020833
84
0.578491
e0f3fcc32858a00963d6223a9f9378f8c626cfd3
1,075
py
Python
py_projects/spell_checker/spell.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2020-10-04T12:36:45.000Z
2020-10-04T12:36:45.000Z
py_projects/spell_checker/spell.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2021-09-30T16:20:57.000Z
2021-09-30T16:20:57.000Z
py_projects/spell_checker/spell.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
3
2020-10-04T10:07:10.000Z
2020-10-25T15:21:15.000Z
# -*- coding: utf-8 -*- """ Created on Fri Aug 28 22:26:53 2020 @author: DELL """ from textblob import TextBlob import tkinter as tk from tkinter import END def correction() : input_word = entry1.get() blob_obj = TextBlob(input_word) corrected_word = str(blob_obj.correct()) entry...
26.219512
73
0.667907
1cd15586173a513c0492b613fb150ee7b36e7f70
9,939
py
Python
weidianying/app/home/views.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
1
2019-07-01T07:27:45.000Z
2019-07-01T07:27:45.000Z
weidianying/app/home/views.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
weidianying/app/home/views.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
from . import home from flask import render_template, redirect, url_for, flash, session, request from app.home.forms import RegisterForm, LoginForm, UserdetailForm, PwdForm, CommentForm from app.models import User, Userlog, Preview, Tag, Movie, Comment, Moviecol from werkzeug.security import generate_password_hash from...
29.146628
102
0.594426
1cffa8d5ab9c50dc112abe12d918224cb0a87fda
20
py
Python
RDS/circle3_central_services/token_storage/src/api/Token/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/token_storage/src/api/Token/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/token_storage/src/api/Token/__init__.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from .Token import *
20
20
0.75
e821422bf6c2ed995ada774f11b55a498b04f25b
547
py
Python
exercises/pt/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
TRAINING_DATA = [ ( "i went to amsterdem last year and the canals were beautiful", {"entities": [(10, 19, "TOURIST_DESTINATION")]}, ), ( "You should visit Paris once in your life, but the Eiffel Tower is kinda boring", {"entities": [(17, 22, "TOURIST_DESTINATION")]}, ), ...
34.1875
92
0.581353
404627ca2d0da8f17945d99611ee22b401f19e27
3,367
py
Python
src/onegov/user/auth/clients/ldap.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/ldap.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/ldap.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import socket from attr import attrs, attrib from cached_property import cached_property from contextlib import suppress from ldap3 import Connection, Server, NONE, RESTARTABLE from ldap3.core.exceptions import LDAPCommunicationError from time import sleep def auto_retry(fn, max_tries=5, pause=0.1): """ Retries ...
26.511811
77
0.616573
907800f3855a155bea90009e468895ee75749e7d
795
py
Python
Server/jsonDataReader.py
EiS94/Bewaesserungsanlage
8edc0c8b5113219724b13c56fb296a003e83aad0
[ "MIT" ]
null
null
null
Server/jsonDataReader.py
EiS94/Bewaesserungsanlage
8edc0c8b5113219724b13c56fb296a003e83aad0
[ "MIT" ]
null
null
null
Server/jsonDataReader.py
EiS94/Bewaesserungsanlage
8edc0c8b5113219724b13c56fb296a003e83aad0
[ "MIT" ]
null
null
null
import json class jsonDataReader: wetness = None rain = None temperatur = None plant1 = None plant2 = None plant3 = None plant4 = None plant5 = None timestamp = None valve = None def __init__(self): with open('data.json') as json_file: data = json.load(...
27.413793
49
0.491824
463b8a39a649f587aba557aa336c44e30374f76e
1,912
py
Python
official/cv/cnn_direction_model/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/cnn_direction_model/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/cnn_direction_model/postprocess.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.24
89
0.671025
469bb0a49c10f7da0f03f9c61fd0c17edd512333
711
py
Python
11_GUI/AdasGui6/scripts/heading_degree.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
11_GUI/AdasGui6/scripts/heading_degree.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
11_GUI/AdasGui6/scripts/heading_degree.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
5
2022-02-06T20:05:07.000Z
2022-03-10T12:48:58.000Z
import math import numpy as np import matplotlib.pyplot as plt def main() -> int: v_long = 3.0 v_lat = 1.0 print(f"v_long: {v_long}") print(f"v_lat: {v_lat}") # since left is negative and right is positive in out coordinate system a2 = np.arctan2(v_lat * -1.0, v_long) print(f"arctan2: {a...
20.911765
75
0.580872
d3bd61173aeb330bce7812e3546cea6a4eca711b
1,681
py
Python
post/count_items.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
post/count_items.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
post/count_items.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
import csv from collections import Counter from collections import defaultdict import os words_LHS=[] words_RHS=[] path=r"C:\Users\Paul\Documents\Studium_PP\Master\Masterarbeit\Gitlab\master-thesis-data-mining\student_work\Code\data\Apriori-Int_0.1" for file in os.listdir(path): if file.endswith("_rules...
31.12963
135
0.610351
315c732f5920febd131d8f75b500eb3bf422c4d9
3,006
py
Python
src/config_db/ska_sdp_config/entity/pb.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/config_db/ska_sdp_config/entity/pb.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/config_db/ska_sdp_config/entity/pb.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
"""Processing block configuration entities.""" import re import copy # Permit identifiers up to 64 bytes in length _PB_ID_RE = re.compile("^[A-Za-z0-9\\-]{1,64}$") class ProcessingBlock: """Processing block entity. Collects configuration information relating to a processing job for the SDP. This might ...
33.032967
79
0.617764
319b781e5814130abde4cc96fd6e91ef3e46db80
49
py
Python
src/compgen2/gov/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
1
2022-02-02T12:41:06.000Z
2022-02-02T12:41:06.000Z
src/compgen2/gov/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
src/compgen2/gov/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
from .gov import Gov from .matcher import Matcher
24.5
28
0.816327
31d7a720545cbc5d928db017ff7224d15997bc64
9,763
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/gsl_dist/gsl_Extension.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/pygsl/gsl_dist/gsl_Extension.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/pygsl/gsl_dist/gsl_Extension.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# # author: Achim Gaedke # created: May 2001 # file: pygsl/gsl_dist/gsl_extension.py # $Id: gsl_Extension.py,v 1.6 2015/09/27 06:34:23 schnizer Exp $ # # module for gsl extensions compilation from distutils.core import setup, Extension from distutils.errors import DistutilsModuleError, DistutilsExecError import os imp...
32.652174
103
0.605756
9ee7a59e1510591a47bb738aa3510120f6bdb00b
13,906
py
Python
cow3-main/app.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
cow3-main/app.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
cow3-main/app.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python3 #coding=utf-8 """ Copyright © 2021 - 2023 | Latip176 Semua codingan dibuat oleh Latip176. """ import json, os, re, time from concurrent.futures import ThreadPoolExecutor as Bool P = "\x1b[0;97m" M = "\x1b[0;91m" H = "\x1b[0;92m" K = "\x1b[0;93m" B = "\x1b[0;94m" BM = "\x1b[0;96m" try: impor...
38.627778
313
0.603049
730bc13380827ab827ef3c7eec43ef996143bdc2
371
py
Python
sys/1/process.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
sys/1/process.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
sys/1/process.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from glob import iglob from sys_1 import Parser from os.path import isfile o = open('ignore/output.txt', 'w', encoding='utf-8') i=0 for fname in iglob('ignore/**/*.html', recursive=True): i+=1 if isfile(fname): parse = Parser() for chunk in open(fname, encoding='utf-8'): parse.feed(...
24.733333
55
0.622642
b42dd13e7a7302850aac546c53cd16ef117e432d
12,973
py
Python
Packs/DeprecatedContent/Integrations/ExtraHop/ExtraHop.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DeprecatedContent/Integrations/ExtraHop/ExtraHop.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DeprecatedContent/Integrations/ExtraHop/ExtraHop.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import json import requests from distutils.util import strtobool # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBALS/PARAMS ''' APIKEY = demisto.params().get('apikey'...
33.608808
119
0.627303
c3102986968c8d96ec77eb7a8b056ee5824f8732
6,791
py
Python
research/cv/efficientnet-b0/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/efficientnet-b0/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/efficientnet-b0/train.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...
44.97351
120
0.674864
c332a73bfc6e3ef3ebb75d2e00f603936d77704f
3,440
py
Python
analysis/utils.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
794
2018-09-06T07:38:41.000Z
2022-03-16T06:30:37.000Z
analysis/utils.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
111
2018-12-04T11:18:27.000Z
2022-03-31T07:39:11.000Z
analysis/utils.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
221
2018-11-22T08:11:03.000Z
2022-03-16T07:11:43.000Z
import csv,pprint from .layers import Base def get_human_readable(num): units=['','K','M','G','T','P'] idx=0 while .001*num>1: num=.001*num idx+=1 if idx>=len(units): return '%.3e'%num return '%.3f'%num+units[idx] def save_csv(layers,csv_save_path='/tmp/analyse.csv', ...
30.442478
140
0.505233
c344cbe87e4f07a88247dbd5d8bd50cf1ca23052
3,231
py
Python
research/cv/DBPN/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DBPN/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DBPN/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...
43.662162
114
0.696069
c35ff05ae649adfc8d474a5f59af68f95b5a41df
5,385
py
Python
frds/measures/func_ses.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/measures/func_ses.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/measures/func_ses.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
import numpy as np def systemic_expected_shortfall( mes_training_sample: np.ndarray, lvg_training_sample: np.ndarray, ses_training_sample: np.ndarray, mes_firm: float, lvg_firm: float, ) -> float: r"""Systemic Expected Shortfall (SES) A measure of a financial institution's contribution to...
49.861111
162
0.689322
5b07aa8c7b630fc27e0d846cd78d21e4d0b33230
798
py
Python
BtmManager-Prototyp-py/Gui_ui/test.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
BtmManager-Prototyp-py/Gui_ui/test.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
BtmManager-Prototyp-py/Gui_ui/test.py
datend3nker/JuFo-BtM
a01e931ec4862c12e8a4861eed0661806ee2d19e
[ "BSD-Source-Code" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'test.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("F...
28.5
62
0.672932
82d3741631b32b5825f7e8be517a88780626b771
786
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_primeiro_e_ultimo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_primeiro_e_ultimo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_primeiro_e_ultimo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por encontrar o primeiro e o último número. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import primeiro_e_ultimo class PainelPrimeiroEUltimo(...
35.727273
111
0.632316
7d87dfad7a60725b9a20577262f40d0821fdc251
2,348
py
Python
src/onegov/wtfs/views/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.wtfs import _ from onegov.wtfs import WtfsApp from onegov.wtfs.forms import ReportSelectionForm from onegov.wtfs.layouts import ReportBoxesAndFormsByDeliveryLayout from onegov.wtfs.layouts import ReportBoxesAndFormsLayout from onegov.wtfs.layouts import ReportBoxesLayout from o...
28.634146
73
0.780664
6fab860de2198ce95ff7b6720e5453e4f81f5807
12,488
py
Python
research/nlp/atae_lstm/src/model_utils/rnns.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/atae_lstm/src/model_utils/rnns.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/atae_lstm/src/model_utils/rnns.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...
39.644444
120
0.556054
9673d6b6f3e228139e448279a49f0668cd2fba33
4,251
py
Python
Util/DataToolkit.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
Util/DataToolkit.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
Util/DataToolkit.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt # noinspection PyTypeChecker class DataToolkit: def __init__(self, data): self._data = np.asarray(data) self._sorted_data = np.sort(self._data) self._n = len(self._data) self._mean = self._var...
29.93662
106
0.531169
96b7cab8806014b3e3487abbbcbfc345d5493c03
1,147
py
Python
etc/db/producer.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
etc/db/producer.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
etc/db/producer.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
# tinydb.readthedocs.io/en/latest/getting-started.html ''' cat db.json | jq or cat db.json | python -m json.tool Pretty to compact convertion: cat db.json.pretty | jq -c ''' import os, time from tinydb import TinyDB, Query if os.path.exists('dbtest.json'): os.unlink('dbtest.json') db = TinyDB('dbtest.js...
18.206349
68
0.53531
73bea79b74ece13a4dbcd8f6b3f401bd79555577
2,681
py
Python
txt2xml.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
txt2xml.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
txt2xml.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
#!/usr/bin/python txt_dir = '/home/TestData/DPI_DATA/guangzhou_LTE/DPI_test_data/2' xml_dir = '/home/ligang/xml' xml_template = '/home/test_template.xml' exclude = ['pcapstc.txt', 'badfile.txt'] #------------------------------------------------------------------------------------------ import os #find all txt files...
38.3
134
0.616188
73efdfd63c8f43ce97aa52580cb741308de9a835
3,263
py
Python
logya/server.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
logya/server.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
logya/server.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- import http.server import socketserver from shutil import copyfile from urllib.parse import unquote, urlparse from logya.core import Logya from logya.content import read, write_collection, write_page from logya.template import env class HTTPRequestHandler(http.server.SimpleHTTPRequestHandler...
35.857143
107
0.676984
f7658db9067c802c7cce5e6ac067db9ebb8fdff3
1,460
py
Python
forge/lib/shapefile_utils.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
31
2015-07-13T15:36:50.000Z
2022-02-07T21:37:51.000Z
forge/lib/shapefile_utils.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
109
2015-04-24T10:03:24.000Z
2019-04-12T13:34:01.000Z
forge/lib/shapefile_utils.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
16
2015-10-03T06:03:22.000Z
2022-03-31T08:24:37.000Z
# -*- coding: utf-8 -*- import re from osgeo import ogr class ShpToGDALFeatures(object): def __init__(self, shpFilePath=None): if shpFilePath is None: raise Exception('No shapefile path provided') if re.search(r'(\.shp)$', shpFilePath) is None: raise TypeError( ...
31.73913
81
0.615068
e3c400832f0c5110a650b72648714c8b2456ef15
44,052
py
Python
Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
null
null
null
Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2021-12-26T07:34:37.000Z
2021-12-26T07:49:34.000Z
Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
null
null
null
from requests import Response import demistomock as demisto from typing import Callable, Tuple from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa # Disable insecure warnings DEFAULT_POLL_INTERVAL = 5 requests.packages.urllib3.disable_warnings...
43.061584
127
0.56145
547b2d6bb2495dadccd53e178ab80cb656a66496
552
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/reader/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/reader/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/reader/__init__.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
""" read map for model """ from reader.reader_utils import regist_reader, get_reader import reader.tsminf_reader as tsminf_reader import reader.audio_reader as audio_reader import reader.bmninf_reader as bmninf_reader import reader.feature_reader as feature_reader # regist reader, sort by alphabet regist_reader("TSM",...
34.5
57
0.84058
5480abd39228b998376048cbfebd7715298f8684
184
py
Python
checker/responsivesecurity/reference.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/reference.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/reference.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
import requests def store(endpoint, userid, path, data): url = endpoint + "/storage/" + userid + path requests.put(url, data, verify=False).raise_for_status() return url
23
60
0.684783
49c487ef587c7b158983999f158978fddaa2b66d
3,758
py
Python
ryu/app/App/simple_switch_lacp_13.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/App/simple_switch_lacp_13.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/App/simple_switch_lacp_13.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.134615
78
0.645822
3f96144e12d1622322c83cb3d83ef7986e075957
1,601
py
Python
app/submission/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/submission/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/submission/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from app import app from app.common.models import RoleName from app.submission.models import Submission, JudgementStatus from app.auth.main import auth from flask import abort, g from sqlalchemy import desc from utils import sort_and_distinct, success @app.route('/submissions/<id>', methods=['GET']) ...
30.207547
100
0.736415
b7d808980868588ae5518edfdca06b98d080d318
208
py
Python
python/image_processing/alpha_add.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/alpha_add.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/alpha_add.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img1 = cv2.imread('pittsburgh.jpg') img2 = cv2.imread('preston.jpg') dst = cv2.addWeighted(img1,0.7,img2,0.3,0) cv2.imshow('dst',dst) cv2.waitKey(0) cv2.destroyAllWindows()
14.857143
42
0.716346
4d47c6666ea6a4f78a03c672c40a675cf7f35ebc
9,033
py
Python
week4/mnist_bp.py
anjiang2016/CVFundamentals
783c2efcaa2336d674661ae18cdec744b91223c3
[ "MIT" ]
12
2020-05-25T08:21:25.000Z
2022-02-22T09:02:00.000Z
week4/mnist_bp.py
anjiang2016/CVFundamentals
783c2efcaa2336d674661ae18cdec744b91223c3
[ "MIT" ]
null
null
null
week4/mnist_bp.py
anjiang2016/CVFundamentals
783c2efcaa2336d674661ae18cdec744b91223c3
[ "MIT" ]
6
2020-06-02T11:54:03.000Z
2022-02-22T09:03:05.000Z
#coding:utf-8 # code for week2,recognize_computer_vision.py # houchangligong,zhaomingming,20200602, import torch from itertools import product import pdb import sys from mnist import MNIST import cv2 import numpy as np #mndata = MNIST('python-mnist/data/') #images, labels = mndata.load_training() def generate_data(): ...
31.806338
127
0.551201
4d7e6cc69f6fe6e7f2327b4c086190c9a1eea61e
7,567
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_vlan.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_vlan.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cnos/test_cnos_vlan.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2018 Red Hat Inc. # # This file is part of Ansible # # Ansible 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 the License, or # (at your option) any later version. # # Ansible is dis...
36.555556
131
0.504427
4274487d0116c231118e01a5ed198982161606d4
695
py
Python
pacman-termux/test/pacman/tests/remove012.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove012.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove012.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Remove a package with a modified file marked for backup and has existing pacsaves" self.filesystem = ["etc/dummy.conf.pacsave", "etc/dummy.conf.pacsave.1", "etc/dummy.conf.pacsave.2"] p1 = pmpkg("dummy") p1.files = ["etc/dummy.conf*"] p1.backup = ["etc/dummy.c...
33.095238
102
0.697842
67af2fbcfa84ac1c79402effba64313a1a2a2022
577
py
Python
vorl5-ueb4-gui.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb4-gui.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb4-gui.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 5. Vorlesung 17.10.2020, Skript Python 4 (07_Python_04.pdf) # Übung 4: GUI from tkinter import * def text_out(event): label.configure(text=entry.get()) main = Tk() main.title("MeineApp") label = Label(main, text="Howdy TKinter!", fg="red") entry = Entry(main) entry.bind("<Return>",text_out) button = Button(ma...
20.607143
68
0.701906
db25f58714cfb3e2ef1586b19ae57b4aaf852700
2,706
py
Python
gateway/desktop/python/server.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
null
null
null
gateway/desktop/python/server.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
2
2021-05-10T14:10:34.000Z
2021-09-01T22:32:45.000Z
gateway/desktop/python/server.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
null
null
null
from flask import Flask, request, jsonify from light import Light from device import NetworkDevice app = Flask(__name__) @app.route("/devices", methods=["GET"]) def get_devices(): """ Gib alle IP Adressen der Netwerkgeräte """ return jsonify([d.ip_address for d in NetworkDevice.all()]) @app.route("...
21.822581
66
0.584996
2202ca6baaf6fdfc63469eab53474fbef3d4be35
342
py
Python
crypto/Mxor/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/Mxor/release/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/Mxor/release/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
import base64, string def xors(msg, key): res = '' for i in range(len(msg)): res += chr(ord(msg[i]) ^ ord(key[i % len(key)])) return res flag = open('flag').read() key = open('key').read() assert len(key) == 5 and all(x in string.lowercase for x in key) m = str(int(flag.encode('hex'), 16)) c = xors(m, key) prin...
21.375
64
0.625731
2276649e30a49ae00ef1fdcdaee6ba13cd32a03a
4,209
py
Python
run.py
friskit-china/IoH
2728e9cfcc5316948b5dacbceb132c1dfcf285b6
[ "MIT" ]
null
null
null
run.py
friskit-china/IoH
2728e9cfcc5316948b5dacbceb132c1dfcf285b6
[ "MIT" ]
null
null
null
run.py
friskit-china/IoH
2728e9cfcc5316948b5dacbceb132c1dfcf285b6
[ "MIT" ]
null
null
null
from easydict import EasyDict as edict import argparse from modules import BME280, SSD1306, Metering import threading import signal import board import busio import logging import time import os def metering_publish_worker(_g): loop_sleep_time = _g.opt.iot_metering_publish_interval_sec m...
34.785124
138
0.690425
361ae394d7e1bfe400d29c39550fec271b2ff0b0
7,811
py
Python
scripts/train_word2vec.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
8
2018-03-09T16:44:38.000Z
2021-04-07T11:33:30.000Z
scripts/train_word2vec.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
4
2020-03-24T15:34:54.000Z
2021-06-01T21:54:33.000Z
scripts/train_word2vec.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
1
2020-05-13T14:30:55.000Z
2020-05-13T14:30:55.000Z
""" Simple script to train word2vec model. It gets in input a list of POIs categories chains (e.g. Shops & Services:Gas Stations). It preprocess the text and train the word2vec model with the words at the requested level (e.g. level=2 Gas Stations). """ # Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> # ...
34.409692
144
0.495839
7fe186869b6e2c2057a444929ef8ce5e1713aef7
589
py
Python
asteroid/masknn/_dccrn_architectures.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2020-12-18T02:42:23.000Z
2020-12-18T02:42:23.000Z
asteroid/masknn/_dccrn_architectures.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
asteroid/masknn/_dccrn_architectures.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
from ._dcunet_architectures import make_unet_encoder_decoder_args # fmt: off DCCRN_ARCHITECTURES = { "DCCRN-CL": make_unet_encoder_decoder_args( # Encoders: # (in_chan, out_chan, kernel_size, stride, padding) [ ( 1, 32, (5, 2), (2, 1), (2, 0)), ( 32, 64, (5, 2), (...
29.45
65
0.427844
e9ef11a39c98c5d3cf19544fc6454e555cfa3890
1,090
py
Python
py/Regression.py
fatho/rot-2015
7729d1ef76460a45a7a76003bdf3c80312f74a19
[ "MIT" ]
null
null
null
py/Regression.py
fatho/rot-2015
7729d1ef76460a45a7a76003bdf3c80312f74a19
[ "MIT" ]
null
null
null
py/Regression.py
fatho/rot-2015
7729d1ef76460a45a7a76003bdf3c80312f74a19
[ "MIT" ]
null
null
null
import numpy as np import numpy.random as rand import scipy as sp import matplotlib.pyplot as plt def gen_training(func, x, var=1): y = func(x) y += rand.normal(0, var, y.shape) return y def const(x): return lambda y: x def lms(funcs, x, y, alpha): (m,) = x.shape (n,) = funcs.shape w ...
20.185185
60
0.516514
62ea174757e4ab24dcf18dfa87893e80754eb324
25,749
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/zabbix_mediatype.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/zabbix_mediatype.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/zabbix_mediatype.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
36.471671
142
0.553148
c5787987f7722da3d142634c98afc7e5af4beb9c
416
py
Python
2021-05-09/城市地图带后端/城市地图后端/user/serializers.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/城市地图带后端/城市地图后端/user/serializers.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/城市地图带后端/城市地图后端/user/serializers.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from .models import User from coffee.models import Spot from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): # spot = serializers.PrimaryKeyRelatedField(many=True, queryset=Spot.objects.all()) class Meta: model = User fields = ('id', 'username', 'email', 'nickname', ...
29.714286
85
0.725962
9ab91a0b1ab584a15907d88c384698640f1b442c
1,091
py
Python
Packs/Confluera/Scripts/ConflueraDetectionsSummaryWarroom/ConflueraDetectionsSummaryWarroom.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Confluera/Scripts/ConflueraDetectionsSummaryWarroom/ConflueraDetectionsSummaryWarroom.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Confluera/Scripts/ConflueraDetectionsSummaryWarroom/ConflueraDetectionsSummaryWarroom.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 * from itertools import cycle # Executes confluera-fetch-detections command/script detections_data = demisto.executeCommand('confluera-fetch-detections', {'hours': '72'}) if detections_data[1] and detections_data[1]['Contents']: detections = det...
21.82
87
0.586618
4955359c3848735b8bed30a788d7aa281954b644
1,312
py
Python
Inverted-Index-Construction/01-generate-inverted-table-v2.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
Inverted-Index-Construction/01-generate-inverted-table-v2.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
Inverted-Index-Construction/01-generate-inverted-table-v2.py
liao2000/Information-Retrieval-NCHU
a800aefec442fd83514c2091d0da0a2e1a9815b7
[ "MIT" ]
null
null
null
# 建立反向索引表 # v2: 盡可能避免奇怪的標點符號阻礙判斷 from ckiptagger import WS import json import sqlite3 from tqdm import tqdm import re # Reference: https://github.com/ckiplab/ckiptagger/wiki/Chinese-README # Download models for ckiptagger # from ckiptagger import data_utils # data_utils.download_data_gdown("./") ws = WS("./data") ...
26.24
92
0.589177
65a0bea5651546842d1e6d77c5339b3d7bb51952
1,616
py
Python
DataGenerator/libs/WordDict.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
DataGenerator/libs/WordDict.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
DataGenerator/libs/WordDict.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
import random as rand class WordDict: """ Allows creating a random sentence. """ def __init__(self, word_dict: list): """ Creates an WordDict object from a list of words. which will be used as random word source :param word_dict: A list of words """ self...
32.32
79
0.58354
65c82d8c5206cc1c5dbd02a624082dfce464b9e5
1,972
py
Python
main.py
vainotuisk/Pikell
6b7b6e77ac69b5cbfea2c355900e68f4e1bb2825
[ "MIT" ]
null
null
null
main.py
vainotuisk/Pikell
6b7b6e77ac69b5cbfea2c355900e68f4e1bb2825
[ "MIT" ]
null
null
null
main.py
vainotuisk/Pikell
6b7b6e77ac69b5cbfea2c355900e68f4e1bb2825
[ "MIT" ]
null
null
null
# pendulum datetime plugin ?? # ajastamine APScheduler import sys import os import json import time from graphqlclient import GraphQLClient from apscheduler.schedulers.background import BackgroundScheduler from datetime import datetime from pygame import mixer client = GraphQLClient('https://api.graph.cool/simple/v1/c...
28.57971
116
0.66785
b86e4e2bd618a3ee7bd66ddf4f430e4103f4ba09
510
py
Python
kollektiv5gui/util/paths.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/util/paths.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/util/paths.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import os # store the path to the module's root directory # this assumes that this file resides exactly # one folder above the module's root __ROOT_DIR = os.path.dirname(os.path.abspath(os.path.join(__file__, '..'))) __RESOURCE_DIR = os.path.join(__ROOT_DIR, 'resources') def getModuleRoot(): """ Returns the ...
23.181818
75
0.705882
b8b418e1b412569c9b5bf891f39e8243e7c86b15
271
py
Python
django101/django101/tasks/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
django101/django101/tasks/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
django101/django101/tasks/views.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. # from django101.tasks.models import Task def home(request): context = { 'title': 'Tasks manager', # 'tasks': Task.objects.all(), } return render(request, 'home.html', context)
19.357143
48
0.645756
a772ae90c5d1a2528065a160ef235937b0ce5cf1
307
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_customer_pos_id.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/v8_0/update_customer_pos_id.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_customer_pos_id.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Web Notes 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_doctype("Customer") frappe.db.sql(""" update `tabCustomer` set customer_pos_id = name """)
34.111111
71
0.76873
ac6433a8285dcd750789d59601cce3a0a7dda695
805
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_remove_ocorrencias.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_remove_ocorrencias.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_remove_ocorrencias.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por remover as ocorrências de um número. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import remove_ocorrencias class PainelRemoveOcorrencias(...
36.590909
92
0.628571
3bc07407b3824c8226f94b050e3dae0f5cb4261f
549
py
Python
Nucleo/smain_Quimica.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Nucleo/smain_Quimica.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Nucleo/smain_Quimica.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
qui_version = 'MODULO QUIMICA v0.0.1' import sys sys.path.append('Nucleo/') sys.path.append('Modulos/Quimica/') from Nucleo.smain_Handler import * def soda_QUIMICA(): sMain_Saidas().Welcome("QUIMICA") while True: q = sMain_Saidas().Prompt("QUIMICA") handler = sMain_Handlers().quiHandler(q) ...
22.875
57
0.570128
5a09e05193b9a9c7c815e96f476bbc547e1cbaea
2,815
py
Python
.circleci/checklhe/color.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/color.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/color.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
import usefulstuff class Color(object): def __init__(self, id): self.id = id self.particles = usefulstuff.printableset() self.antiparticles = usefulstuff.printableset() def addparticle(self, p): if p.color() == self.id: self.particles.add(p) if p.anticolor()...
30.934066
158
0.602487
0cb255c3c3215188d9d76662a4e264c2918557a2
7,937
py
Python
MAIN/STM32F405_C/NORMAL/history/V24/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V24/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V24/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
from pyb import UART import utime import register class LCDCommand: class Page: Buffer = str() Backup = str() Repeat = False Headline = "P." Entry = "1" #Page 0_1 Main = "2" #Page_1 Bye = "3" #Page_Bye Alarm = "4" #Page_Alarm ...
33.209205
118
0.598715
e7e588d823e5ed86184e33ea8b50774027c4ec69
21,596
py
Python
Rapid-Payload-main/RapidPayload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Rapid-Payload-main/RapidPayload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Rapid-Payload-main/RapidPayload.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 #-*- coding: utf-8 -*- #https://github.com/Maruf321/Rapid-Payload import os import platform,subprocess,re from time import sleep cyan= '\033[36m' bold= '\033[1m' end= '\033[0m' def banner(): print(''' {1}{0}{1} ____ _ ______ __ __ / __ \___...
44.804979
810
0.533941
f0801b7de6532b77a49b919db668beaa5aa03cd5
2,853
py
Python
research/nlp/dam/src/ubuntu_evaluation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dam/src/ubuntu_evaluation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dam/src/ubuntu_evaluation.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...
29.112245
102
0.609534
0411d539c0ed6a946aa0e8a373b3d59fb4edc3cf
990
py
Python
DataStructure/U2/Lecture/Number_extended.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U2/Lecture/Number_extended.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U2/Lecture/Number_extended.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
from functools import total_ordering import numbers @total_ordering class Number_extended: def __init__(self,value,side=None): self.v=value self.side=side def __eq__(self,other): if isinstance(other,numbers.Number): return self.v==other and self.side==None elif isins...
29.117647
73
0.579798
f0e76a10944b6a5331226c127a51572d884114b4
3,165
py
Python
src/server/db/RoleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/RoleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/RoleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
import mysql.connector from server.Role import Role from server.db.Mapper import Mapper class RoleMapper (Mapper): """This is a mapper-class, which represents role objects into a relational database. For this reason you can find some methods, which help to find, insert, modify, and delete objects. The map...
29.036697
82
0.580095
9bf912a03a898b6c2d47184fcf45a74ca52c39d4
303
py
Python
Prediction/main.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
2
2018-04-12T14:24:33.000Z
2020-09-16T07:03:28.000Z
Prediction/main.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
Prediction/main.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
from collision import find_collision from predict import predict from read import read_data from interpolate import interpolate from show import show from parser import parse import time DANGER_PATH = ".danger/" while True: parse("Seretra/Prediction/main.srt") print("done") time.sleep(1)
20.2
40
0.775578
acc11e32a302cb938903ff9dcab5418db04048e1
638
py
Python
Packs/GoogleChronicleBackstory/Scripts/ListDeviceEventsScript/ListDeviceEventsScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleChronicleBackstory/Scripts/ListDeviceEventsScript/ListDeviceEventsScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleChronicleBackstory/Scripts/ListDeviceEventsScript/ListDeviceEventsScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * asset_identifier = demisto.args().get('asset_identifier') asset_identifier_type = 'Host Name' if is_mac_address(asset_identifier): asset_identifier_type = 'MAC Address' if is_ip_valid(asset_identifier, accept_v6_ips=True): asset_identifier_type = 'IP Address' result = demisto...
35.444444
82
0.589342
acc7c909cc3147f22fe103a85af5063c26ab266a
3,259
py
Python
examples/expenses-py/app.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-07-08T17:36:08.000Z
2021-07-08T17:36:08.000Z
examples/expenses-py/app.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
2
2021-03-24T19:24:40.000Z
2021-03-24T19:54:46.000Z
examples/expenses-py/app.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-03-24T19:51:45.000Z
2021-03-24T19:51:45.000Z
""" Example application integrated with oso. The application does not currently do much except define application data structures that might already exist in, for example, a database. """ # External imports from oso import Oso, polar_class # Stdlib imports import os from pathlib import Path import sys # Local impor...
22.02027
87
0.606321
a8470cc0bcf8909810b2d2fb66353d7f6a89e60a
318
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/74. map two lists into a dictionary.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/74. map two lists into a dictionary.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_4_Dictionary/74. map two lists into a dictionary.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python function to map two lists into a dictionary. list1 contains the keys, list2 contains the values. Input lists: list1 = [1,2,3,4,5] list2 = [6,7,8,9,10] Expected output: {1: 6, 2: 7, 3: 8, 4: 9, 5: 10} """ #Solution is: def map_lists(list1,list2): return (dict(zip(list1,list2)))
16.736842
60
0.632075
a8c4c7e70a2ae7c2df8023aed85c416da9216dd1
251
py
Python
exercises/pt/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importe a classe do idioma alemão (German) from spacy.lang.____ import ____ # Crie um objeto nlp nlp = ____ # Processe o texto (equivalente ao português: "Atenciosamente") doc = nlp("Liebe Grüße!") # Imprima o texto do documento print(____.text)
20.916667
63
0.741036
76878e49793555b3817e63c2273a4d0a827f9b30
630
py
Python
WebHostLib/api/__init__.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
null
null
null
WebHostLib/api/__init__.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
5
2020-01-18T21:10:46.000Z
2020-01-25T20:58:19.000Z
WebHostLib/api/__init__.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
2
2020-01-18T17:36:50.000Z
2020-01-22T16:52:08.000Z
"""API endpoints package.""" from uuid import UUID from flask import Blueprint, abort from ..models import Room api_endpoints = Blueprint('api', __name__, url_prefix="/api") from . import generate, user # trigger registration # unsorted/misc endpoints @api_endpoints.route('/room_status/<suuid:room>') def room_i...
25.2
61
0.663492
8caeaa7740c0ef79bffd514cba373283cc8521fc
27,141
py
Python
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from datetime import datetime, timedelta from typing import Union import traceback # Disable insecure warnings requests.packages.urllib3.disable_warnings() FILTER_DICT = {'Contains': '1', 'Excludes': '2...
40.448584
121
0.591909
5092695b7d9a370914bff98c552a538045f77a9b
544
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v9_0/set_shipping_type_for_existing_shipping_rules.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/v9_0/set_shipping_type_for_existing_shipping_rules.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_0/set_shipping_type_for_existing_shipping_rules.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doctype("Shipping Rule") # default "calculate_based_on" frappe.db.sql('''update `tabShipping Rule` set calculate_based_on = "...
28.631579
57
0.735294
50c9c6bdbfe7ced608c21a9e7ea3c4650da31a60
1,643
py
Python
contracts/tests/test_LibSignatures.py
PerunEthereum/Perun
0704f481e8747f6f4405e67abe1cafd5d96d2ab8
[ "MIT" ]
64
2018-04-10T19:28:59.000Z
2020-11-10T02:56:57.000Z
contracts/tests/test_LibSignatures.py
PerunEthereum/Perun
0704f481e8747f6f4405e67abe1cafd5d96d2ab8
[ "MIT" ]
2
2018-05-18T15:39:10.000Z
2018-12-17T19:00:50.000Z
contracts/tests/test_LibSignatures.py
PerunEthereum/Perun
0704f481e8747f6f4405e67abe1cafd5d96d2ab8
[ "MIT" ]
9
2018-04-10T21:17:41.000Z
2019-12-10T11:42:34.000Z
import pytest accounts = ['0xd0edc0d7073c2931edbadbdcab6b67ea4929a110', '0xa7183ed8bd8961a004f2213daa307386a49745d7', '0xa5b40bbbe0cc5f7f9ce2fae5aa0e3572a55bd02c'] messages = ['0123456789', '', 'test' * 100] signatures = ['0xa03cdc8c0af5867cb0d97d0fd23ff54fc792c9537adcbd71148172b77b079336697d0a12245d8797e5266d2e81aa69...
54.766667
149
0.805843
50df50eda3b643ac8bcf0c9cda477fd2025fa56c
576
py
Python
Vorlesungsinhalte/2020-10-30_Rekursion.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-30_Rekursion.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-30_Rekursion.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
# Element der Fibonacci-Folge berechnen: def fib(n): if n == 0: # f(0) = 0 return 0 elif n == 1: # f(1) = 1 return 1 else: # f(n) = f(n-1) + f(n-2) return fib (n-1) + fib (n-2) # Ackermann-Funktion berechnen: def ack(m,n): if m == 0: # A(0,n) = n+1 return n+1 elif n == 0: # A(...
21.333333
42
0.489583
50eea60012772a0765204d19167397bd12493503
2,710
py
Python
processing/process_raw_json.py
MeteorologieHautnah/MeteorologieHautnah
1607c25b85753f31faccfd279abd503b83c1f4ea
[ "MIT" ]
1
2022-02-17T08:24:13.000Z
2022-02-17T08:24:13.000Z
processing/process_raw_json.py
MeteorologieHautnah/MeteorologieHautnah
1607c25b85753f31faccfd279abd503b83c1f4ea
[ "MIT" ]
null
null
null
processing/process_raw_json.py
MeteorologieHautnah/MeteorologieHautnah
1607c25b85753f31faccfd279abd503b83c1f4ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Process the raw json data Creates an easy-to-read in csv file from the raw json file by cutting off the curl header. Writes a log file. usage: python process_raw_json.py [date=yyyymmdd] *author*: Johannes Röttenbacher """ import sys sys.path.append(".") from meteohautnah.helpers import read_c...
35.194805
116
0.708118
e8698df111a68f01d5c37731ccf036b2bec97361
1,883
py
Python
marathon/marathon-lb/haproxy_wrapper.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
marathon/marathon-lb/haproxy_wrapper.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
103
2017-10-28T02:25:41.000Z
2019-02-26T05:09:58.000Z
marathon/marathon-lb/haproxy_wrapper.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
#!/usr/bin/env python3 import os import sys import time import errno import logging logger = logging.getLogger('haproxy_wrapper') logger.setLevel(getattr(logging, 'DEBUG')) formatter = logging.Formatter("%(asctime)-15s %(name)s: %(message)s") consoleHandler = logging.StreamHandler() consoleHandler.setFormatter(formatt...
26.521127
69
0.671269
fa1a394f877b55fa9c7bcce4dc1d11c44c129af4
794
py
Python
hm/device.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hm/device.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hm/device.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
class Device: def __init__(self, name, ise_id, address, device_type): self.name = name self.ise_id = ise_id self.address = address self.device_type = device_type def get_name(self): return self.name def get_ise_id(self): return self.ise_id def get_addre...
25.612903
150
0.61335
0f190d6ef7fbc7028e6bb74b7c3cbf074ee64e4b
2,269
py
Python
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/0 Arbeitsversion/tic_tac_toe_modell.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
from enum import Enum class Pos(Enum): OBEN_LINKS = "oben links" OBEN_MITTE = "oben mitte" OBEN_RECHTS = "oben rechts" MITTE_LINKS = "mitte links" MITTE_MITTE = "mitte mitte" MITTE_RECHTS = "mitte rechts" UNTEN_LINKS = "unten links" UNTEN_MITTE = "unten mitte" UNTEN_RECHTS = "unten ...
29.467532
75
0.622301
cbb9526226b658bbb982a45df025171999de12ba
550
py
Python
wagtail_localize/management/commands/sync_locale_trees.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
123
2019-11-21T12:55:04.000Z
2022-03-23T08:08:47.000Z
wagtail_localize/management/commands/sync_locale_trees.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
334
2019-11-20T10:40:08.000Z
2022-03-27T17:33:01.000Z
wagtail_localize/management/commands/sync_locale_trees.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
41
2020-01-16T17:24:52.000Z
2022-03-28T13:09:59.000Z
from django.core.management.base import BaseCommand from wagtail_localize.models import LocaleSynchronization from wagtail_localize.synctree import PageIndex class Command(BaseCommand): help = "Synchronises the structure of all locale page trees so they contain the same pages. Creates alias pages where necessary...
39.285714
133
0.78
38611f4a20238a311fb1421d35eaf1c368e17738
14,242
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/route/implausibleRoutes.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/route/implausibleRoutes.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/route/implausibleRoutes.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) 2014-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...
47.315615
120
0.605393
935986544d7fa5f97e0ea0b354b40da1e0387ffb
548
py
Python
books/PythonCleanCode/ch7_generator/generators_iteration_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch7_generator/generators_iteration_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch7_generator/generators_iteration_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 7: Using Generators > The Interface for Iteration * Distinguish between iterable objects and iterators * Create iterators """ class SequenceIterator: """ >>> si = SequenceIterator(1, 2) >>> next(si) 1 >>> next(si) 3 >>> next(si) ...
19.571429
57
0.54927
87c953e4e28b7d3e284b81ba7e6e229224ba765d
406
py
Python
exercises/de/exc_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.de import German from spacy.tokens import Token nlp = German() # Registriere die Token-Erweiterung "is_country" mit default-Wert False ____.____(____, ____=____) # Verarbeite den Text und setze is_country auf True für den Token "Spanien" doc = nlp("Ich wohne in Spanien.") ____ = True # Drucke den Te...
27.066667
75
0.758621
3559aa09fb0b15bbb230391339a5ffef5d5e6c3a
95
py
Python
baccoapp/mysandwich/apps.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/apps.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/apps.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MysandwichConfig(AppConfig): name = 'mysandwich'
15.833333
34
0.768421
356f93fee911c3897f7b17f23cd8b3dce5180c74
2,280
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/speedvid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/speedvid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/speedvid.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" OVERALL CREDIT TO: t0mm0, Eldorado, VOINAGE, BSTRDMKR, tknorris, smokdpi, TheHighway urlresolver XBMC Addon Copyright (C) 2011 t0mm0 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 So...
38.644068
134
0.679825