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
3f9e1ff8b51eb31e9214d4550cf774fa70cc84af
7,636
py
Python
test/test_nmfe.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
5
2015-07-16T20:44:58.000Z
2016-04-19T03:47:46.000Z
test/test_nmfe.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
6
2015-12-23T07:05:06.000Z
2016-07-03T22:29:03.000Z
test/test_nmfe.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
null
null
null
import panzee.nmfe class MockView(object): def __init__(self): self.dialogue = "" self.speaker = None self.background_path = None self.displaying_background = False self.background_transition = None self.audio_path = None self.playing_audio = False ...
31.553719
104
0.689759
4d7901f88ddb2cea4984c9bd9a8e85ed1ce26acf
3,624
py
Python
Crawler/crawler_rki_dashboard.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Crawler/crawler_rki_dashboard.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Crawler/crawler_rki_dashboard.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
""" Bundesländer https://experience.arcgis.com/experience/478220a4c454480e823b17327b2bf1d4/page/page_0/ Landkreise https://experience.arcgis.com/experience/478220a4c454480e823b17327b2bf1d4/page/page_1/ """ import logging import pandas import requests import db logger = logging.getLogger(__name__) def remove_spaces...
30.2
323
0.598786
12936dcf00a619d34786608c91758b3433aa1437
17,035
py
Python
models/hr_holidays.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_holidays.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_holidays.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
46.165312
173
0.531611
12b6a497dbc2f45457b4c12b7c6b910da9d2f95a
334
py
Python
e_library/progbar.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
e_library/progbar.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
e_library/progbar.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
class ProgBar(): def __init__(self, step=100): self.step = int(step/20) self.count = 1 self.progress = 0 def update(self): if self.count % self.step == 0: self.progress += 1 print('\r[%s%s]' %('#'*self.progress, ' '*(20-self.progress)), end='') se...
27.833333
82
0.5
42a1fc261b1f66563bb4eb8147cd9769e4b60f25
2,405
py
Python
devscripts/collect_symbols.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
devscripts/collect_symbols.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
devscripts/collect_symbols.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """collect_symbols.py - Lists all exported symbols from DHParser modules Copyright 2016 by Eckhart Arnold (arnold@badw.de) Bavarian Academy of Sciences an Humanities (badw.de) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in co...
32.945205
104
0.694387
c43d89d413837f7a50f74ceb9d5309daff549a14
1,078
py
Python
examples/keras-mnist-mlp/train_minimal.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
notebooks/keras-mnist/train_minimal.py
pcrete/skil-demo
c0524806f92cecd47bf8c0405ffaf68d4918c52e
[ "MIT" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
notebooks/keras-mnist/train_minimal.py
pcrete/skil-demo
c0524806f92cecd47bf8c0405ffaf68d4918c52e
[ "MIT" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import keras from keras.datasets import mnist from keras.models import Model from keras.layers import Dense, Dropout, Input batch_size = 128 num_classes = 10 epochs = 10 (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = x_train.reshape(60000, 784) x_test = x_test.reshape(10000, 784) x_train = x_trai...
23.955556
58
0.674397
673b93374bbdc2ff9296a068162ba129af9fd547
1,111
py
Python
app/judgement/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/judgement/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/judgement/models.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from utils import JsonSerializableMixin class JudgementTask(JsonSerializableMixin): def __init__(self, task_id=None, problem_id=None, user_id=None, language=None, time_limit=None, memory_limit=None): self.id = task_id self.problem_id = problem_id self.user_id = user_id ...
37.033333
120
0.70117
67d2672a45cda98ac23326ceafb4bef3c8a6cf24
1,136
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_qtd_no_intervalo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_qtd_no_intervalo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_qtd_no_intervalo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por contar quantos números estão em um intervalo. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import qtd_no_intervalo class PainelQtdNoInterv...
42.074074
126
0.62588
67ec14bb4dae3725e49fc80e7c8bd5f6c703caf9
1,744
py
Python
gemtown/copyrights/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/copyrights/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/copyrights/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models @admin.register(models.MusicCopyright) class MusicCopyrightAdmin(admin.ModelAdmin): fields = [ 'song', 'block_chain_id', 'block_chain_txid', 'confirm_status', 'creator', ] list_display = [ ...
19.818182
49
0.508028
3f0a00fa0a9bddfca45f0537c7d829be6c9662a2
4,290
py
Python
src/server/app/repository/LocationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/repository/LocationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/repository/LocationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
from ..models.Canvas import Canvas from ..db.settings import mongoclient import json import time from bson import json_util class LocationRepository(): def __init__(self, testing): self.testing = testing def createLocationEntry(self, user_id, location_data): mongoclient.db["location"].insert...
45.638298
112
0.562238
e15cbbf661e17d23d54fbd558e6c62b84d0652f9
894
py
Python
Abiturklassen/Python/stack.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Abiturklassen/Python/stack.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Abiturklassen/Python/stack.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
# -*- coding: utf-8 -*- class Stack(object): class StackNode(object): def __init__(self, pContent): self._content = pContent self._nextNode = None def setNext(self, pNext): self._nextNode = pNext def getNext(self): return self._nextNode ...
22.35
45
0.543624
18332e77bc012814e82c5eaa0309e95e89d36b7f
1,953
py
Python
Milestone1/Milestone1.py
SherlockHowl/KLA
8f3278ee7aab11facc70c69c748935313c31e1ab
[ "MIT" ]
null
null
null
Milestone1/Milestone1.py
SherlockHowl/KLA
8f3278ee7aab11facc70c69c748935313c31e1ab
[ "MIT" ]
null
null
null
Milestone1/Milestone1.py
SherlockHowl/KLA
8f3278ee7aab11facc70c69c748935313c31e1ab
[ "MIT" ]
null
null
null
from concurrent.futures import thread import threading import datetime import time from nbformat import write import yaml with open('Milestone1B.yaml', 'r') as file: data = yaml.safe_load(file) output = open("Milestone1B.txt", "w") def TimeFunction(ExecutionTime): time.sleep(ExecutionTime) def execWorkFlow(t...
32.016393
95
0.55914
c55df8a161fa99e256278b0404bf46921b3eec26
317
py
Python
guitest.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
guitest.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
guitest.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# Von Wikipedia Artikel import tkinter tk=tkinter.Tk() frame = tkinter.Frame(tk, relief="ridge", borderwidth=2) frame.pack(fill="both",expand=1) label = tkinter.Label(frame, text="Hallo Welt!") label.pack(expand=1) button = tkinter.Button(frame,text="OK",command=tk.destroy) button.pack(side="bottom") tk.mainloop()
26.416667
59
0.744479
9a906ac444c0ebb1eb1846c12991cfd68578f9da
227
py
Python
Curso-Em-Video-Python/2Exercicios/020_Sorteando_uma_ordem_na_lista.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/020_Sorteando_uma_ordem_na_lista.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/020_Sorteando_uma_ordem_na_lista.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import random n1 = str(input('Aluno: ')) n2 = str(input('Aluno: ')) n3 = str(input('Aluno: ')) n4 = str(input('Aluno: ')) lista = [n1, n2, n3, n4] sorteio = random.shuffle(lista) print('A ordem de apresentação é ') print(lista)
25.222222
35
0.643172
9aa4474b997533396d0918232b1e46cf51ac2a99
477
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/21. fibonacci series.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 _1_Basic_Coding_Exercises/21. fibonacci series.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 _1_Basic_Coding_Exercises/21. fibonacci series.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that randomly chooses any number 'n' from 5 to 10 (inclusive) and then generates a Fibonacci sequence until 'n'. The sequence should be returned in the form of a list. Example: for n = 5, output_sequence = [0,1,1,2,3] """ import random def Fibonacci(): n = random.randint(5, 10) fibona...
25.105263
130
0.70021
b12ed85b4363eaceab1ee49ee1214b05365a4cc1
1,895
py
Python
rbac/providers/azure/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/providers/azure/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/providers/azure/main.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
40.319149
99
0.732454
b1a183e66636662a7118de9ddd88620067b81a93
61
py
Python
Tests/__init__.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/__init__.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/__init__.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
from .testing_constants import * from .testing_data import *
20.333333
32
0.803279
496a8d6c32a362a8175308bee09a7569a3bf38ec
396
py
Python
Licence 1/I11/TP3/tp3_4_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP3/tp3_4_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP3/tp3_4_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
text = input("entez une chaine de caracteres: ") n_numbers = 0 n_words = 0 j = 0 state = 0 while j < len(text): if state == 0 and text[j] != " ": state = 1 if 92 <= ord(text[j]) <= 122: n_words += 1 else: n_numbers += 1 elif state == 1 and text[j] == " ": state = 0 j += ...
22
50
0.535354
b24fe37a285368806564f1b8de9411cd7b0aaad2
316
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_7/set_offline_in_pos_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_7/set_offline_in_pos_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_7/set_offline_in_pos_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# 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_doc('accounts', 'doctype', 'pos_settings') doc = frappe.get_doc('POS Settings') doc.use_pos_in_offline_mode = 1 doc.save()
26.333333
57
0.765823
a24561fc603e74b944a45861b65cdf4f33cca4f3
2,848
py
Python
emsite/emapp/migrations/0001_initial.py
thejeshpr/ExpenseManager
a3c452a87c9287a814247434ebb4039e164d7936
[ "MIT" ]
null
null
null
emsite/emapp/migrations/0001_initial.py
thejeshpr/ExpenseManager
a3c452a87c9287a814247434ebb4039e164d7936
[ "MIT" ]
null
null
null
emsite/emapp/migrations/0001_initial.py
thejeshpr/ExpenseManager
a3c452a87c9287a814247434ebb4039e164d7936
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-12 17:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ...
47.466667
155
0.585674
3bb9efeb907c6389a028847c7b272c941ff78267
1,541
py
Python
LibMS/libapp/migrations/0004_auto_20210512_1017.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
LibMS/libapp/migrations/0004_auto_20210512_1017.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
LibMS/libapp/migrations/0004_auto_20210512_1017.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-12 10:17 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('libapp', '0003_auto_20210511_2353'), ] operations = [ migrations.AlterField( ...
38.525
147
0.55743
ce039c1d3c95bf2ed6d79d54c793857a96dc2f8e
24,516
py
Python
ImageCaption/nic_cnn_lstm_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
2
2021-08-25T01:13:29.000Z
2021-10-10T14:49:59.000Z
ImageCaption/nic_cnn_lstm_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
null
null
null
ImageCaption/nic_cnn_lstm_xrh.py
Xinrihui/DeepLearningApp
8d86b88251ee8d37358c642b1ec4a341767bfd17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # 适用于 tensorflow >= 2.0, keras 被直接集成到 tensorflow 的内部 # ref: https://keras.io/about/ from tensorflow.keras.layers import Input, LSTM, TimeDistributed, Bidirectional,Dense, Lambda, Embedding, Dropout, Concatenate, RepeatVector from tensorflow.keras.optimizers import Adam fro...
35.224138
205
0.618249
023afd4923742d0af9590feb1180629008ad8d04
356
py
Python
libs/textblob/TextBlobDemo.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/textblob/TextBlobDemo.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/textblob/TextBlobDemo.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
from textblob import TextBlob print("------------------------------------------------------------------------") print("Start TextBlobDemo") print("------------------------------------------------------------------------") text = "War doesn't show who's right, just who's left." blob = TextBlob(text) pred = blob.detect...
29.666667
81
0.41573
5a446005766070005a6bfe9ebe78fd26a85d5aa6
474
py
Python
20190123_tk_test_01.py
RoyWang2018/LDMS
33342e33b6aabd3b81292f47081baba315b5be86
[ "MIT" ]
null
null
null
20190123_tk_test_01.py
RoyWang2018/LDMS
33342e33b6aabd3b81292f47081baba315b5be86
[ "MIT" ]
null
null
null
20190123_tk_test_01.py
RoyWang2018/LDMS
33342e33b6aabd3b81292f47081baba315b5be86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 23 17:04:28 2019 2nd test @author: rabbitmaize """ from tkinter import * def onclick(): pass root = Tk() text = Text(root) text.insert(INSERT, "Hello.....") text.insert(END, "Bye Bye.....") text.pack() text.tag_add("here", "1.0", "1.4") text.tag_add("start", "1.8"...
18.96
64
0.647679
ce72ccb38b2333f5501d65681e7cacdc5897bce5
3,071
py
Python
test/test_npu/test_network_ops/test_one_hot.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_one_hot.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_one_hot.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # 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/lice...
32.670213
76
0.701075
0ba96571eb837dc268870af98fba397c43193c07
5,480
py
Python
cfdTests.py
millsmgb/cfdBacktester
1958c401f189b90f3d106cb63c872b1aac925569
[ "MIT" ]
null
null
null
cfdTests.py
millsmgb/cfdBacktester
1958c401f189b90f3d106cb63c872b1aac925569
[ "MIT" ]
null
null
null
cfdTests.py
millsmgb/cfdBacktester
1958c401f189b90f3d106cb63c872b1aac925569
[ "MIT" ]
null
null
null
# Author: Matthew Mills # Copyright 2016 # This is the CFD specific test class, where all tests are conducted on the CFD object # Separated out from the main method for clarity and ability to call multiple types of tests # also separate as may want to run different tests for different financial products down the line ...
27.263682
99
0.691788
6504046ddb6282da8049c0ff2b7274cc9e06c236
1,737
py
Python
Packs/CommonScripts/Scripts/CalculateEntropy/CalculateEntropy.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/CalculateEntropy/CalculateEntropy.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/CalculateEntropy/CalculateEntropy.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 * # noqa: E402 lgtm [py/polluting-import] from CommonServerUserPython import * # noqa: E402 lgtm [py/polluting-import] import math import string def calculate_shannon_entropy(data, minimum_entropy): """Algorithm to determine the randomness of a given ...
38.6
104
0.658607
cc26c14433c3d588f3ff392ed46361af9f21df79
296
py
Python
frappe-bench/apps/erpnext/erpnext/support/__init__.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/support/__init__.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/support/__init__.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals install_docs = [ {'doctype':'Role', 'role_name':'Support Team', 'name':'Support Team'}, {'doctype':'Role', 'role_name':'Maintenance User', 'name':'Maintenance User'}, {'doctype':'Role', 'role_name':'Maintenance Manager', 'name':'Maintenance Manager'} ]
42.285714
84
0.702703
04062e6e024c59d6b49eb60482aaf316b60cc0be
3,723
py
Python
research/cv/mobilenetV3_small_x1_0/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/mobilenetV3_small_x1_0/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/mobilenetV3_small_x1_0/eval.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...
39.606383
105
0.700779
ac9c39c27ae4761a8d6a6468f64cb6635a433bf8
1,693
py
Python
src/sft/qsft/server.py
huykingsofm/FileTransmitter
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
1
2020-08-28T19:06:13.000Z
2020-08-28T19:06:13.000Z
src/sft/qsft/server.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
src/sft/qsft/server.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
import os from hks_pylib.logger import Display from hks_pylib.logger.standard import StdUsers from hks_pylib.cryptography.ciphers.hkscipher import HKSCipher from hks_pylib.cryptography.ciphers.symmetrics import NoCipher from hks_pylib.logger.logger_generator import InvisibleLoggerGenerator, LoggerGenerator from sft.l...
30.232143
87
0.65505
c58124b0ad9c684b5d5f3ad913e066d0fa0b4fe9
1,407
py
Python
WikiAnalyser/Tests/TestFootballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
WikiAnalyser/Tests/TestFootballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
WikiAnalyser/Tests/TestFootballMatch.py
Simocracy/PwrBot
feac80393072f3c79e1978466c54c84a4e74ff85
[ "MIT" ]
null
null
null
import unittest from datetime import datetime from footballMatchAnalyzer.footballMatch import FootballMatch class Test_FootballMatch(unittest.TestCase): def test_SetDateNumbers1(self): datestr = "04.04.44" defStr = "" match = FootballMatch(defStr, datestr, defStr, defStr, defStr, defStr, defStr, defStr, defSt...
39.083333
112
0.653163
a89fa72ce235efef9df498f15f190cb925f00977
897
py
Python
DriverBehaviorAnalyser/Model.py
kharezga/DBA
cc3ab4c4080b0083ab7022c1412e5667aaa59f5d
[ "MIT" ]
null
null
null
DriverBehaviorAnalyser/Model.py
kharezga/DBA
cc3ab4c4080b0083ab7022c1412e5667aaa59f5d
[ "MIT" ]
null
null
null
DriverBehaviorAnalyser/Model.py
kharezga/DBA
cc3ab4c4080b0083ab7022c1412e5667aaa59f5d
[ "MIT" ]
null
null
null
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense def createModel(optimizer, actions): """Creates LSTM model Parameters: optimizer: model optimizer actions: np array with defined labels Returns: model: LSTM model """ if optimizer is N...
29.9
105
0.704571
4f362b2e8295a0437c6d61d0d48e83c6fedba9a8
1,384
py
Python
1_DeepLearning-Basics/04_Math_behind_Networks/4-Aktivierungsfunktionen.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
1_DeepLearning-Basics/04_Math_behind_Networks/4-Aktivierungsfunktionen.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
1_DeepLearning-Basics/04_Math_behind_Networks/4-Aktivierungsfunktionen.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import seaborn as sns from tensorflow.keras.models import * from tensorflow.keras.layers import * from tensorflow.keras.optimizers import * def f(x): return x**2 + x + 10 x = np.linspace(start=-10.0, stop=10.0, num=1000).reshape(-1, 1) y = f(x) def relu(x): ...
26.615385
69
0.643064
4f858f9fc6087622626851b615c3e82ddd00515b
153
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.10-specific-values-on-specific-parameters.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.10-specific-values-on-specific-parameters.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.10-specific-values-on-specific-parameters.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def myfnc(x, z, y=10): print("x =", x, "y =", y, "z =", z) myfnc(x=1, y=2, z=5) a = 5 b = 6 myfnc(x=a, z=b) a = 1 b = 2 c = 3 myfnc(y=a, z=b, x=c)
11.769231
39
0.424837
4fb0a38e104d28d2288e12e0106482e3b95ecd49
5,683
py
Python
Backend/views/dashboards.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/views/dashboards.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/views/dashboards.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import hashlib import json from datetime import datetime from flask import Blueprint, request, jsonify from sqlalchemy import text from tzlocal import get_localzone from db import db from models.dashboard import Dashboard routes = Blueprint('dashboards', __name__, url_prefix='/dashboards') @routes.route('/', metho...
28.847716
94
0.619215
8b189a1bf175b93aeaa03f35b3783ea2411fcd03
2,933
py
Python
yolov5-coreml-tflite-converter/utils/coordinates.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/utils/coordinates.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/utils/coordinates.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import tensorflow as tf import torch def tf_xywh2yxyx_yolo(xywh): # Convert nx4 boxes from [x, y, w, h] (x,y center) to [x1, y1, x2, y2] (xy1=top-left, xy2=bottom-right) x, y, w, h = tf.split(xywh, num_or_size_splits=4, axis=-1) return tf.concat([y - h / 2, x - w / 2, y + h / 2, x + w / 2], axis=-1) def...
37.126582
107
0.555404
8b49b3ee3f86e80f38d0125bef3e529fd3d386af
45,762
py
Python
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/api.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/api.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/toastergui/api.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # BitBake Toaster Implementation # # Copyright (C) 2016 Intel Corporation # # SPDX-License-Identifier: GPL-2.0-only # # Please run flake8 on this file before sending patches import os import re import logging import json import subprocess from collections import Counter from shutil import copyfile from orm.m...
37.633224
123
0.547572
50be2f08d6e7644a50cffa4e2faef77a5307de1e
8,943
py
Python
Packs/HealthCheck/Scripts/HealthCheckGetLargestInputsAndOutputsInIncidents/HealthCheckGetLargestInputsAndOutputsInIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckGetLargestInputsAndOutputsInIncidents/HealthCheckGetLargestInputsAndOutputsInIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckGetLargestInputsAndOutputsInIncidents/HealthCheckGetLargestInputsAndOutputsInIncidents.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 THRESHOLDS = { 'numberofincidentsIObiggerthan10mb': 1, 'numberofincidentsIObiggerthan1mb': 10, } def find_largest_input_or_output(all_args_list, is_table_result) -> dict: if is_table_result is True: max_arg...
44.939698
123
0.519401
50f7729e72b3f72f9a29fb6b6f00cba1deb7cd85
1,749
py
Python
rbac/providers/common/common.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
2
2019-02-14T19:57:33.000Z
2019-05-15T16:15:28.000Z
rbac/providers/common/common.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
rbac/providers/common/common.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 re...
36.4375
89
0.672384
e85c6c12e1c3bc3bb89708d29bd84b80407d7e24
1,192
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__platform.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__platform.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__platform.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_test__platform.py,v 1.1 2021/06/23 18:30:24 schmonz Exp $ darwin20 support, via MacPorts. --- Lib/test/test_platform.py.orig 2021-06-22 19:20:28.000000000 +0000 +++ Lib/test/test_platform.py @@ -207,6 +207,11 @@ class PlatformTest(unittest.TestCase): fd.close() self.a...
42.571429
81
0.556208
ad579b61ff97e88308f3b3a19aea87baff8467ba
134
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_pos_setting.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_pos_setting.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_pos_setting.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.table_exists("POS Setting"): frappe.rename_doc("DocType", "POS Setting", "POS Profile")
22.333333
60
0.723881
d113967cc1a8db8409ad7a64ae38d420667de675
8,775
py
Python
tuta/utils.py
PseudoLabs-Demo/TUTA_table_understanding
d0f3fe2f15c56a5ea9f593b210296f170fc74558
[ "MIT" ]
36
2021-06-15T01:04:27.000Z
2022-03-19T16:36:54.000Z
tuta/utils.py
PseudoLabs-Demo/TUTA_table_understanding
d0f3fe2f15c56a5ea9f593b210296f170fc74558
[ "MIT" ]
6
2021-09-03T11:29:36.000Z
2021-12-15T11:33:57.000Z
tuta/utils.py
PseudoLabs-Demo/TUTA_table_understanding
d0f3fe2f15c56a5ea9f593b210296f170fc74558
[ "MIT" ]
8
2021-11-03T04:32:36.000Z
2022-02-02T13:43:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ utility functions """ import torch # %% Index Converters (layout, sequential) def layout2seq(row_id, col_id, column_number): return row_id * column_number + col_id def seq2layout(cell_id, column_number): row_id = cell_id // column_number ...
43.656716
121
0.629288
d150c4c955b8d3670c033e7056f6d71810d6baef
9,308
py
Python
test/test_npu/test_reflection_pad2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_reflection_pad2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_reflection_pad2d.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...
38.945607
79
0.587774
0f6f2cefc9be49a30d6bc5d0be5fe376bdfc36e9
1,278
py
Python
site_generation/cloudprovider_google.py
globalwatchpost/CloudRegionsList
f428b39fc797403cf6ed5d38196a5df29f59d8af
[ "MIT" ]
null
null
null
site_generation/cloudprovider_google.py
globalwatchpost/CloudRegionsList
f428b39fc797403cf6ed5d38196a5df29f59d8af
[ "MIT" ]
null
null
null
site_generation/cloudprovider_google.py
globalwatchpost/CloudRegionsList
f428b39fc797403cf6ed5d38196a5df29f59d8af
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import logging import json import pprint import sys import cloudprovider import subprocess class CloudProviderGoogle(cloudprovider.CloudProvider): def __init__(self, regionGeoInfo, dateFormatFunction): super().__init__( regionGeoInfo, dateFormatFunction ) def getDataSources(self...
27.782609
114
0.640063
70f78d332efca55406408f865c5d7bf69f78e161
495
py
Python
Theories/DataStructures/QueueAndStack/Stack/DecodeString/decode_string.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/DataStructures/QueueAndStack/Stack/DecodeString/decode_string.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/DataStructures/QueueAndStack/Stack/DecodeString/decode_string.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def decodeString(s: str) -> str: stack, k = [["", 1]], 0 for char in s: if char.isdigit(): k = k * 10 + ord(char) - ord("0") # get current k # ord(char) - ord("0") equal to int(char) but faster elif char == "[": stack.append(["", k]) k = 0 ...
29.117647
64
0.424242
cbc2a77fdf4ef54d6ab533f26ca2dfc30e6e2d17
1,588
py
Python
test/test_tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase try: from pyventskalender import tag08_loesung as heute except ImportError: from pyventskalender import tag08 as heute class Tag08Tests(TestCase): NICHTSAEUGER = ["Eidechse", "Frosch", "Ente", "Vogel"] def _teste_tierset(self, tier_tags): """ Ein Tiertag...
34.521739
106
0.598866
1dbc9915a918a890c02b2844e0aad8a9924bd868
482
py
Python
skripte/python/patuse/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/patuse/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/patuse/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :Id: $Id: $ # # Anwendungen der mit `patgen` generierten Pattern. # # hyphenation.py # Hyphenation using a pure Python implementation of Frank Liang's algorithm. # # Command-line usage: ``./hyphenation.py [options] [words to be hyph...
28.352941
79
0.599585
0e0621825ada9377294c31a494203e8a37068bd8
6,515
py
Python
rfvision/models/detectors3d/category_ppf/eval.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/models/detectors3d/category_ppf/eval.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/models/detectors3d/category_ppf/eval.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
from rfvision.models.detectors3d.category_ppf.utils.eval_utils import compute_degree_cm_mAP from rfvision.models.detectors3d.category_ppf.category_ppf import CategoryPPF from rflib.runner import load_checkpoint import os import glob from tqdm import tqdm import pickle import numpy as np import torch import cv2 def get...
42.305195
132
0.556562
38918b505e53e053ab1c86c0daa6c15b5e242b48
10,255
py
Python
phypidaq/Display.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
7
2018-11-30T13:38:27.000Z
2021-03-10T15:37:56.000Z
phypidaq/Display.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
5
2020-11-11T09:19:00.000Z
2022-02-06T09:04:55.000Z
phypidaq/Display.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
16
2019-04-16T10:15:45.000Z
2021-12-15T14:59:31.000Z
# -*- coding: utf-8 -*- '''Class providing graphical display and, optionally, a control interface ''' from __future__ import print_function, division, unicode_literals from __future__ import absolute_import import numpy as np, time, sys import multiprocessing as mp import matplotlib matplotlib.use('TkAgg') from ma...
31.360856
88
0.61999
aa880ed1d0c6e35ac3a00ac35fcbc34f5ad255d4
1,570
py
Python
host/site_scons/packaging.py
hephaisto/serial-can-dump
a3aa3e6e166327ad86b491ca8d89fbcc1090f597
[ "MIT" ]
1
2016-09-20T20:20:00.000Z
2016-09-20T20:20:00.000Z
host/site_scons/packaging.py
hephaisto/serial-can-dump
a3aa3e6e166327ad86b491ca8d89fbcc1090f597
[ "MIT" ]
null
null
null
host/site_scons/packaging.py
hephaisto/serial-can-dump
a3aa3e6e166327ad86b491ca8d89fbcc1090f597
[ "MIT" ]
null
null
null
import SCons.Script as scons from SCons.Node.Python import Value import os from get_library_dependencies import build_library_dependencies PACKAGE_TMP_DIR="packages" def make_debian(packagename, files, env, additional_dependencies=""): package_file="{}/{}-{}-{}.deb".format(PACKAGE_TMP_DIR,packagename, env["VERSION_S...
41.315789
147
0.764968
aa912c86bb3329319ac0f7acb613a6ab382a9d60
3,553
py
Python
test/test_npu/test_network_ops/test_cudnn_convolution_transpose_backward_bias.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_cudnn_convolution_transpose_backward_bias.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_cudnn_convolution_transpose_backward_bias.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # 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/lice...
37.4
101
0.644807
aad731d145f30c23048fa9b65d192acb036f02e6
157
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.1-list-append-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.1-list-append-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.1-list-append-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
saarc = ["Bangladesh", "India", "Sri Lanka", "Pakistan", "Nepal", "Bhutan"] print(saarc) saarc.append("Afganistan") print(saarc) saarc_s = "".join(saarc)
17.444444
75
0.66242
fabb14ffbdeca95c76c09ae2a0cf33aaae8b69c0
3,553
py
Python
phypidaq/ADS1115Config.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
7
2018-11-30T13:38:27.000Z
2021-03-10T15:37:56.000Z
phypidaq/ADS1115Config.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
5
2020-11-11T09:19:00.000Z
2022-02-06T09:04:55.000Z
phypidaq/ADS1115Config.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
16
2019-04-16T10:15:45.000Z
2021-12-15T14:59:31.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals from __future__ import absolute_import import numpy as np, time, sys ADS_I2CADDR = 0x48 # import relevant pieces from adafruit import Adafruit_ADS1x15 class ADS1115Config(object): '''ADC ADS1115Config configuration and inter...
32.59633
87
0.626513
faddb23882ea36ede7ee3840fb46152999c8af17
360
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_cloudscale/filter_plugins/group_name.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_cloudscale/filter_plugins/group_name.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/integration/targets/inventory_cloudscale/filter_plugins/group_name.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.inventory.group import to_safe_group_name def safe_group_name(name): return to_safe_group_name(name) class FilterModule(object): filter_map = { 'safe_group_name': safe_group_name } def filter...
20
64
0.75
35ce4a2176ec3def525a73fc99614746fd378498
411
py
Python
wk-sentiment/app/run_app.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
4
2020-10-08T15:05:02.000Z
2021-08-03T01:00:08.000Z
wk-sentiment/app/run_app.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
null
null
null
wk-sentiment/app/run_app.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
1
2020-10-08T15:05:04.000Z
2020-10-08T15:05:04.000Z
import os from application import create_app from config import config_by_name def main(): """Runs the application.""" # get the configuration env = os.getenv('APP_ENV') or 'dev' config = config_by_name[env] # create the app app = create_app(config) # run the app app.run(host=config...
18.681818
73
0.683698
ea688b3709e21f5eb37c1fa33e9354f164a3a8b4
1,077
py
Python
tests/core/test_structures.py
YourThomasLee/rasa
501b1b312c158e19e54c67cbca8ed3728ea60ca3
[ "Apache-2.0" ]
5
2020-08-28T06:44:31.000Z
2021-03-14T18:46:01.000Z
tests/core/test_structures.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
75
2020-08-06T08:55:42.000Z
2022-03-01T13:22:11.000Z
tests/core/test_structures.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
from rasa.core.actions.action import ACTION_SESSION_START_NAME from rasa.core.domain import Domain from rasa.core.events import SessionStarted, SlotSet, UserUttered, ActionExecuted from rasa.core.trackers import DialogueStateTracker from rasa.core.training.structures import Story domain = Domain.load("examples/moodbot...
33.65625
81
0.758589
a4fd2b3d25a3e9448e2f3706783c841910a97ae9
1,199
py
Python
circle_list/circle_list.py
kantel/py5
1bed40dbf732fce28412a206e7c043bd9a01a521
[ "MIT" ]
null
null
null
circle_list/circle_list.py
kantel/py5
1bed40dbf732fce28412a206e7c043bd9a01a521
[ "MIT" ]
null
null
null
circle_list/circle_list.py
kantel/py5
1bed40dbf732fce28412a206e7c043bd9a01a521
[ "MIT" ]
null
null
null
# Circle Sine Wave # nach Peter Farrell: »Math Adventures with Python« p110ff. R1 = 100 # Radius großer Kreis R2 = 5 # Radius kleine Kreise t = 0 # Zeit-Variable circle_list = [] def setup(): size(600, 600) def draw(): global t, circle_list background(132, 144, 163) translate(width/4, hei...
29.975
69
0.567973
107a3144ccf0f00d634d40f2a70676aae24221b8
694
py
Python
django_project/apps/qfauth/decorators.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/qfauth/decorators.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/qfauth/decorators.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from utils import restful_res from django.shortcuts import redirect,reverse from django.http import Http404 def qf_login_required(func): def wrapper(request,*args,**kwargs): if request.user.is_authenticated: return func(request,*args,**kwargs) else: if request.is_ajax(): ...
28.916667
57
0.635447
10918962fe631420a1a005adabe92673490c5f3b
690
py
Python
Tests/test_fixstern.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Tests/test_fixstern.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
Tests/test_fixstern.py
fdienesch/Solar-System
617096bcb525a19ee94ff86948b53bd8a65e4386
[ "MIT" ]
null
null
null
from unittest import TestCase from Objekte.fixstern import Fixstern from Model.solarSysModel import SolarSunModel from OpenGL.GLUT import * __author__ = 'floriandienesch' class TestFixstern(TestCase): def setUp(self): glutInit(sys.argv) glutCreateWindow("test") self.fixstern = Fixstern(...
26.538462
101
0.684058
dc358f300caa6338479e9c5b2b583b309f71422c
392
py
Python
ANN/e12/e12.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
ANN/e12/e12.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
ANN/e12/e12.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
N = [ [1.536719390948438], [1.570254485250484], [1.560258218586837], [1.556135060859314], [1.555005035001635], [1.554716411629528], ] grau = 6 b = 2 for i in range(grau - 1): for j in range(grau - i - 1): N[j].append( ((2 ** (i * b + b) * N[j + 1][i]) - N[j][i]) / (2 **...
20.631579
81
0.459184
dc3c07a4d59daad3552a4b755a3edd1b201b57dc
660
py
Python
source/pkgsrc/lang/nodejs/patches/patch-tools_install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/nodejs/patches/patch-tools_install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/nodejs/patches/patch-tools_install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-tools_install.py,v 1.6 2019/12/09 20:03:51 adam Exp $ Install man pages under the right directory. --- tools/install.py.orig 2019-11-19 08:29:09.000000000 +0000 +++ tools/install.py @@ -151,10 +151,7 @@ def files(action): action(['deps/v8/tools/gdbinit'], 'share/doc/node/') action(['deps/v8/tools...
34.736842
68
0.654545
dc4bdf69d74933c19d8d922dbf422241479a7384
1,227
py
Python
src/exceptions_.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/exceptions_.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/exceptions_.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""exceptions_.py - benzlim exceptions""" class BenzlimException(Exception): def __init__(self, message, *args): super(BenzlimException, self).__init__(self, message, *args) #pyhon 3 hook if hasattr(self, "message"): self.message = self.message or "%s" % args # str(self.args[2]) ...
40.9
80
0.711491
528cf1740e89bbebb847ad48903c3f29205818ee
2,087
py
Python
hrsdb/__main__.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/__main__.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
hrsdb/__main__.py
sirboldilox/hrsdb
1f8373081e4cceb77892581fb5a3fe1f53bf984d
[ "MIT" ]
null
null
null
""" hrsdb entry point for console script Options: -H/--host Address to bind the server to (127.0.0.1) -p/--port The port to list on. -d/--debug If set the server will be ran in debug mode with full logging """ import argparse import logging from configparser import Error as ConfigError from hrsdb.app...
26.417722
105
0.667465
870c0c7558830f685b6f820b0605913e3a9db722
3,892
py
Python
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/dates.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Fun(c) with dates""" # %% Imports from datetime import datetime, timedelta from typing import List # %% Mondays def mondays_between_two_dates(start: datetime, end: datetime) -> List[str]: """Returns the dates of each Monday between two dates, inclusive. :param start (str) : ISO-formatted start date. :...
35.706422
86
0.643114
5e4c36d97c03daf33d2f2644df01a70235487f60
2,463
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/be/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/be/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/be/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# vat.py - functions for handling Belgian VAT numbers # # Copyright (C) 2012-2016 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or ...
31.177215
73
0.698335
0dba6f998d33ad6f508ab2b99c097ded428d7262
1,183
py
Python
angstrom/2020/crypto/Dream_Stream/chall.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2020/crypto/Dream_Stream/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2020/crypto/Dream_Stream/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from __future__ import print_function import random,os,sys,binascii from Crypto.Util.number import isPrime from decimal import * try: input = raw_input except: pass getcontext().prec = 3000 def keystream(key): random.seed(int(os.environ["seed"])) p = random.randint(3,30) while not isPrime(p): p = ra...
28.166667
142
0.622992
21c49b981407696881bb5ceb795e2fb6d7cf9c44
942
py
Python
Skripte/Python/plot_mems_weird_behaviour.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot_mems_weird_behaviour.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot_mems_weird_behaviour.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
from vars import * print(" -> Please change input files manually if needed!") csv_CH1 = CSV_FOLDER + "weird_mems_CH1.csv" csv_CH2 = CSV_FOLDER + "weird_mems_CH2.csv" fig, (ax1, ax2) = plt.subplots(2) ax1.set_xlabel("Zeit [s]") ax1.set_ylabel("Spannung [mV]") ax2.set_xlabel("Zeit [s]") ax2.set_ylabel("Spannung [mV]...
24.789474
81
0.719745
df758d26fcbce3b0c948a501e3093f837d998f7d
71
py
Python
packages/watchmen-model/src/watchmen_model/gui/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/gui/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/gui/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .favorite import Favorite from .last_snapshot import LastSnapshot
23.666667
39
0.859155
df893729f6e9fb96a5031596acb0a5b9b2d7ec97
515
py
Python
verto/errors/HtmlParseError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/errors/HtmlParseError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/errors/HtmlParseError.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.errors.Error import Error class HtmlParseError(Error): '''Exception raised when parsing HTML text and an error is found. Attributes: line_num: The line number the error occurred on offset: The position in the line the error occurred message: explanation of why error was...
27.105263
59
0.667961
3398653391749959e3f4148ff3961680fb7d19fc
993
py
Python
2-resources/__DATA-Structures/Data-Structures-Algos-Codebase-master/ALGO/__PYTHON/TripletSearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Data-Structures-Algos-Codebase-master/ALGO/__PYTHON/TripletSearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Data-Structures-Algos-Codebase-master/ALGO/__PYTHON/TripletSearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# https://www.geeksforgeeks.org/find-triplets-array-whose-sum-equal-zero/ #o(n^3) # def Triplet(arr): # n = len(arr) # found = False # for i in range(0, n - 2): # for j in range(i + 1, n - 1): # for k in range(j + 1, n): # if arr[i] + arr[j] + arr[k] == 0: # ...
19.470588
73
0.41289
1d19a47e64c7425c669e39506bdd42be77fb1c9e
237
py
Python
src/scatter/scatterplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/scatter/scatterplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/scatter/scatterplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# scatter # plotly import plotly.express as px df = px.data.iris() fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", size='petal_length', hover_data=['petal_width'], template="gridon") fig.show()
26.333333
84
0.662447
1d313434a54bcff8f517432a2ca68ced64db7e00
8,291
py
Python
src/onegov/org/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime from onegov.core.orm.mixins import content_property, meta_property from onegov.form import Form from onegov.org import _ from onegov.org.forms import LinkForm, PageForm from onegov.org.models.atoz import AtoZ from onegov.org.models.extensions import ( ContactExtension, NewsletterExtens...
30.707407
79
0.621879
1d6fac46f1e68a9a5fb4fb021c775528e4a3ca42
593
py
Python
BigData_exp/exp1/0102.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
BigData_exp/exp1/0102.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
BigData_exp/exp1/0102.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
# coding:utf-8 # 作业: 0102 # 作者: 王子翔 # 日期: 2019.03.30 # 计算输出100~200之间的全部素数 import math def main(): print("0102. 计算输出100~200之间的全部素数") low = (int)(input("请输入下限:")) high = (int)(input("请输入上限:")) if low >= high: print("范围错误!") return -1 for i in range(low, high+1): p...
19.129032
47
0.473862
d57ad170c3f135a27421bebade582d3d3501c46d
1,104
py
Python
src/bo4e/com/hardware.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/hardware.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/hardware.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Hardware class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.enum.geraetetyp import Geraetetyp # pylint: disable=too-few-public-met...
26.926829
171
0.736413
63420c24a919af565b0550b7f13e058730ac377b
507
py
Python
exercises/fr/solution_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Définis le composant personnalisé def length_component(doc): # Obtiens la longueur du doc doc_length = len(doc) print(f"Ce document comporte {doc_length} tokens.") # Retourne le doc return doc # Charge le petit modèle français nlp = spacy.load("fr_core_news_sm") # Ajoute le compos...
23.045455
55
0.739645
981f593eb4dd03952520e29035130d1d3a51a47a
5,143
py
Python
SHAREid-master/shareid.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SHAREid-master/shareid.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SHAREid-master/shareid.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 requests, os, json from time import sleep as slp bl = '\033[30m' lb = '\033[94m' lc = '\033[96m' lr = '\033[91m' lg = '\033[92m' a = '\033[93m' b = '\033[90m' x = '\033[0m' """ GW LDR 4 TAHUN, DAN BELOM PERNAH KETEMU. YANG MAKEK TOOL INI, DOAIN GW YA ? MOGA CEPET KETEMU :* """ try: import requ...
31.746914
106
0.458876
7f3f383cfaf185289b83ef6b67d61e8af462c41c
164
py
Python
exercises/ja/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.ja import Japanese nlp = Japanese() people = ["デヴィッド・ボウイ", "アンゲラ・メルケル", "レディー・ガガ"] # PhraseMatcherのパターンのリストを作成 patterns = list(nlp.pipe(people))
18.222222
46
0.719512
89ffe31b23cd01337eacf30590edc0af90e66e04
3,041
py
Python
plugins/tff_backend/models/statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/models/statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/models/statistics.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # 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...
31.350515
109
0.706675
4ef92dddbd9ddf5ab516c523851bb99f481be745
4,188
py
Python
solutions/ctirg/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/ctirg/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/ctirg/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import logging as log from common.config import MILVUS_TABLE, OUT_PATH from indexer.index import milvus_client, search_vectors, get_vector_by_ids from indexer.tools import connect_mysql, search_by_milvus_id import numpy as np import torch import pickle import dgl import json import random import argparse import torch i...
35.491525
102
0.657116
f6333ffa804ca8d4e6abfd4e9c37f59243a771f3
4,378
py
Python
haas_lib_bundles/python/docs/examples/solar_street_lamp/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/solar_street_lamp/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/solar_street_lamp/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import utime import ujson from aliyunIoT import Device import modbus as mb import yuanda_htb485 import network from driver import GPIO from driver import ADC # 4G.Cat1连网代码 g_connect_status = False def on_4g_cb(args): print("4g callback.") global g_connect_status...
27.534591
94
0.5836
14831f4e7c4e2671fd91d05616cdfcab34ac4c78
1,149
py
Python
microkg/parser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
microkg/parser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
1
2021-06-02T00:43:28.000Z
2021-06-02T00:43:28.000Z
microkg/parser.py
goude/microkg
2d4007bc2dcd6e240b6ba84991189ff66ff80969
[ "MIT" ]
null
null
null
import re from pathlib import Path from pprint import pprint from . import meta def parse(file: Path) -> dict: with open(file) as fh: lines = fh.readlines() metadata = {} data = [] for line in lines: in_header = re.search(r"^# (\w+): (.+)$", line) if in_header: k...
23.9375
65
0.525674
1ae3c7d7473108e6cf329b71da9d4783a9770397
4,616
py
Python
ucct/app.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/app.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/app.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 retnikt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
32.971429
122
0.584489
dcd32faa02138b5e58bdc50cf21b84ac83b37ea2
721
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/functions_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/functions_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/functions_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Example file for working with functions # # define a basic function def func1(): print ("I am a function") # function that takes arguments def func2(arg1, arg2): print (arg1, " ", arg2) # function that returns a value def cube(x): return x*x*x # function with default value for an argument def power(num, x...
17.585366
45
0.669903
0d2f6bbb11930f95e073ea08cbfd4132ea5f3fb7
1,662
py
Python
aiotftp/netascii.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
aiotftp/netascii.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
aiotftp/netascii.py
JulianOrteil/aiotftp
67026f2c43429ee2649d769188fb8121ded6be80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """NETASCII transfer encoding helpers.""" import os import re from io import TextIOWrapper from typing import Callable, Dict CR = b'\x0d' LF = b'\x0a' CRLF = CR + LF NUL = b'\x00' CRNUL = CR + NUL NL = os.linesep if isinstance(os.linesep, bytes) else os.linesep.encode('ascii') def _replac...
24.441176
90
0.616727
25b3da738b153617f37e7bbbe72cb6bab8bbdead
3,755
py
Python
src/Sephrasto/TextTagCompleter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/TextTagCompleter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/TextTagCompleter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
# Based on https://nachtimwald.com/2009/07/04/qcompleter-and-comma-separated-tags/ ''' Copyright (c) 2009 John Schember Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
39.114583
94
0.675366
4ca98a9b0fdf71eb446692fee2ed7e74059e5c8d
1,139
py
Python
asteroid/filterbanks/free_fb.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2020-12-18T02:42:23.000Z
2020-12-18T02:42:23.000Z
asteroid/filterbanks/free_fb.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
asteroid/filterbanks/free_fb.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from .enc_dec import Filterbank class FreeFB(Filterbank): """Free filterbank without any constraints. Equivalent to :class:`nn.Conv1d`. Args: n_filters (int): Number of filters. kernel_size (int): Length of the filters. stride (int, optional): St...
33.5
90
0.661984
e21b1c96f4452ff68128ba3b83266e1b6869c736
5,547
py
Python
app.py
didithilmy/indekos-user-service
8bf222e180ed10e3c1e5ca7f063611be47aa9735
[ "MIT" ]
null
null
null
app.py
didithilmy/indekos-user-service
8bf222e180ed10e3c1e5ca7f063611be47aa9735
[ "MIT" ]
null
null
null
app.py
didithilmy/indekos-user-service
8bf222e180ed10e3c1e5ca7f063611be47aa9735
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask import request, redirect from Crypto.PublicKey import RSA import base64 from uuid import uuid4 import jwt from datetime import timezone, datetime import requests import urllib.parse as u...
33.415663
118
0.680187
2c7538306f9e7ff697c60fd847fcea29141fede2
533
py
Python
08.Graph/TSP.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
08.Graph/TSP.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
08.Graph/TSP.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
#input # 4 9 # 0 1 2 # 1 0 1 # 0 2 9 # 1 2 6 # 2 1 7 # 1 3 4 # 3 1 3 # 3 0 6 # 2 3 8 def pprint(arr): for line in arr: print(line) N, M = map(int, input().split(" ")) W = [[0] * N for _ in range(N)] D = [] for _ in range(M): v1, v2, cost = map(int, input().split(" ")) W[v1][v2] = cost for i in ra...
14.026316
47
0.429644
8079795b0bffc30a7f898dca03ab29285a8c5e04
2,615
py
Python
order/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/models.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.db.models import F from utils import constants class Order(models.Model): # 从sqlserver中抓取的信息 所有订单列表 order_id = models.IntegerField('订单编号', unique=True, primary_key=True) customer = models.CharField('客户名称', max_length=64) ...
37.357143
108
0.660038
20e8e6b7cb195c8ae93c12366ba9b417c497f192
49,796
py
Python
Packs/Rundeck/Integrations/Rundeck/Rundeck.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Rundeck/Integrations/Rundeck/Rundeck.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Rundeck/Integrations/Rundeck/Rundeck.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 * import urllib3 import traceback from typing import Any, Dict, Optional, Union import ntpath from dateparser import parse # Disable insecure warnings urllib3.disable_warnings() """ CONSTANTS """ VERSION = 24 MAX_RESULTS = 100 """ CLIENT CLASS """ clas...
37.161194
121
0.635433
b31e2508b4af7de93897720eeb772f77b9c3dde2
9,279
py
Python
Fortgeschrittenenpraktikum/Protokolle/V01_kosmische_Myonen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V01_kosmische_Myonen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V01_kosmische_Myonen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import numpy as np from scipy.stats import sem from uncertainties import ufloat import uncertainties.unumpy as unp import matplotlib.pyplot as plt import scipy.constants as sc from scipy.optimize import curve_fit #from pint import UnitRegistry import operator #u = UnitRegistry() #Q_ = u.Quantity Time_ges = 81591 #Bs...
33.864964
161
0.665805
b32f9b50202a2dfe612a8ab072d16921d843406e
894
py
Python
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_category/test_asset_category.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_category/test_asset_category.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_category/test_asset_category.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestAssetCategory(unittest.TestCase): def test_mandatory_fields(self): asset_category = frappe.new_doc("Asset Category") asset...
30.827586
79
0.767338
b360d7ec4286cd14900e807b85739ac2ff6f72c8
5,010
py
Python
webinterface/tests/unit_tests/test_model_Cleaner.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/tests/unit_tests/test_model_Cleaner.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/tests/unit_tests/test_model_Cleaner.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.test import TestCase from webinterface.models import * from unittest.mock import * from webinterface.tests.unit_tests.fixtures import BaseFixtureWithDutySwitch class CleanerTest(BaseFixtureWithDutySwitch, TestCase): def test__str(self): cleaner = Cleaner(name="bob") self.assertEqual(cl...
50.1
119
0.695609
4410f4c1a90b4c5a328647423bd7e9d0cf715eae
1,060
py
Python
example/live/server.py
gzlock/no_name_player
8db9c3022b74fade0b6aa20bcf5dd1b0e0c1f6ec
[ "MIT" ]
53
2019-09-14T11:27:44.000Z
2022-03-22T04:46:36.000Z
example/live/server.py
gzlock/no_name_player
8db9c3022b74fade0b6aa20bcf5dd1b0e0c1f6ec
[ "MIT" ]
11
2019-12-02T13:37:19.000Z
2022-02-26T17:10:06.000Z
example/live/server.py
gzlock/no_name_player
8db9c3022b74fade0b6aa20bcf5dd1b0e0c1f6ec
[ "MIT" ]
4
2019-09-12T01:02:48.000Z
2020-02-26T10:55:57.000Z
from sanic import Sanic, response import socketio namespace = '/danmaku' online = 0 def main(): app = Sanic() sio = socketio.AsyncServer(async_mode='sanic') sio.attach(app) @app.get('/') async def index(req): return await response.file('./index.html') @sio.on('connect', namespace=n...
23.043478
81
0.621698
441e5d5e936d987db1ed02a18230ad5416901f47
560
py
Python
pacman-arch/test/pacman/tests/sync012.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/sync012.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/sync012.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install packages from a sync db with circular dependencies" sp1 = pmpkg("pkg1") sp1.depends = ["pkg2"] sp2 = pmpkg("pkg2") sp2.depends = ["pkg3"] sp3 = pmpkg("pkg3") sp3.depends = ["pkg1"] for p in sp1, sp2, sp3: self.addpkg2db("sync", p); self.args = "-S %s" % sp1.name self.addrule("PACMAN_R...
24.347826
79
0.721429
4434cd50624cbbb4d16e8de2740aee621f1605eb
18
py
Python
python_code.py
Anna-V25/BBSCC-Web
c3ccbb8cc913c5effe5618bc7761c40fefddc2df
[ "Apache-2.0" ]
null
null
null
python_code.py
Anna-V25/BBSCC-Web
c3ccbb8cc913c5effe5618bc7761c40fefddc2df
[ "Apache-2.0" ]
null
null
null
python_code.py
Anna-V25/BBSCC-Web
c3ccbb8cc913c5effe5618bc7761c40fefddc2df
[ "Apache-2.0" ]
null
null
null
print ("Testing")
9
17
0.666667
2bc5428a38d274fe5ed812400e6404451f3c9187
1,864
py
Python
anagram_detector/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
anagram_detector/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
anagram_detector/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
import os, sys, inspect from app import * from nose.tools import assert_equal from nose.tools import assert_not_equal class TestApp(object): @classmethod def setup_class(klass): """This method is run once for each class before any tests are run""" @classmethod def teardown_class(klass): ...
27.411765
78
0.64485
921830c73b958c32b198c747220117d8d5cecfd0
36,840
py
Python
tests/onegov/gazette/test_views_notices.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_notices.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_notices.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction from freezegun import freeze_time from io import BytesIO from onegov.gazette.models import GazetteNotice from onegov.pdf.utils import extract_pdf_info from openpyxl import load_workbook from tests.onegov.gazette.common import login_admin from tests.onegov.gazette.common import login_editor_1 from te...
38.778947
79
0.589007
ecfec6267e3dcaa45d632b36b924e780b615535b
1,054
py
Python
names/chinese/remove_special_characters.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-08T17:34:24.000Z
2021-06-08T17:34:24.000Z
names/chinese/remove_special_characters.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
2
2021-06-23T07:58:38.000Z
2021-06-28T18:00:18.000Z
names/chinese/remove_special_characters.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-19T10:03:06.000Z
2021-06-19T10:03:06.000Z
import re if __name__ == '__main__': output = set() unique_with = set() with open('sources/wikidata-given-names.csv', 'r') as fp: for line in fp.readlines(): line = line.strip() unique_with.add(line) line = re.sub('[éèěē]', 'e', line) line = re.sub('[...
37.642857
112
0.539848
a6ca99b4bd718146e3dd17f451110934db61fa7c
80
py
Python
Online-Judges/CodingBat/Python/String-01/06-first_two.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/String-01/06-first_two.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/String-01/06-first_two.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def first_two(str): if len(str) <= 2: return str return str[:2]
16
21
0.5375