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
a4419c50143411206fe624d174d9ceac696b2611
438
py
Python
BIZa/2014/DubsAlexandra/task_5_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_5_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_5_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 47 # Напишите программу, которая бы при запуске случайным образом отображала название одного из четырех океанов Земли. # Dubs A. E. # 14.04.2016 import random print ("Программа случайным образом отображала название одного из четырех океанов Земли") oceans = ('Тихий океан','Северный Ледовитый ок...
27.375
115
0.76484
7479d17f9222c8233c265bd6db11c37c55edeea9
1,191
py
Python
scripts/signal_marker_processing/generate_option_diagram.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/signal_marker_processing/generate_option_diagram.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/signal_marker_processing/generate_option_diagram.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Daniele Borio # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD # Created on Wed Oct 13 13:42:42 2021 import json import os import ma...
27.068182
79
0.674223
776f476158e598a23af0ebaaedd1340b1f48aefa
2,325
py
Python
Properties/API/classlevel.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/API/classlevel.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/API/classlevel.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
import understand import sys class_list=[] final_list=[] lis=[] def cls_printCallPairs(ent): lineString = '' defineAref = ent.ref("definein") if defineAref is not None: lineString = ent.longname() + "," lineString += defineAref.file().longname() return lineString def metric...
23.484848
76
0.572473
7789d57f5b48cfc950f87d6382248e3de77dd1d0
3,013
py
Python
loesungsvorschlaege/vektoren_matrizen/praxis/aufgabe_13.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/vektoren_matrizen/praxis/aufgabe_13.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/vektoren_matrizen/praxis/aufgabe_13.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
# Abschnitt 3 Aufgaben # Aufgabe 13 import numpy as np # Vektor erstellen print("Vektor erstellen") vektor_a = np.array([5, 0, -1, 2]) print("Vektor:") print(vektor_a) print("Dimension (shape):", vektor_a.shape) print() # Spaltenvektor erstellen print("Spaltenvektor erstellen (explizit)") # 4 Zeilen und eine Spalte e...
27.390909
120
0.741122
3b835320629951ea1373247b708e700872a62caa
382
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/88-89-90_desafio_valide_um_cnpj/88_validando_cnpj.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/88-89-90_desafio_valide_um_cnpj/88_validando_cnpj.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/88-89-90_desafio_valide_um_cnpj/88_validando_cnpj.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from validando_cnpj import remover_caracteres, formula, validando, total, gera cnpj = '04.252.011/0001-10' numero_liso = remover_caracteres(cnpj) lista_nova = numero_liso[0:12] numeros_novos = (total(numero_liso)) lista_nova += numeros_novos resultado_final = validando(numero_liso, lista_nova) print(resultado_fina...
20.105263
78
0.764398
30ba3d5f37c9f0d48608badc23a6077d5d263b3f
1,149
py
Python
sparsify/sample.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-08-31T07:16:40.000Z
2018-08-31T07:16:40.000Z
sparsify/sample.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
null
null
null
sparsify/sample.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-07-01T18:03:01.000Z
2018-07-01T18:03:01.000Z
""" __author__ = Yash Patel __name__ = sample.py __description__ = Sample-based sparsifier for graphs """ import numpy as np import networkx as nx import random class SampleSparsifier: """Sample-based sparsifer class (https://arxiv.org/pdf/1711.01262.pdf)""" def __init__(self, lambda_k1, C=1.25,...
31.054054
83
0.56658
30da673510cf6f5f62535f619bae269d75f0910f
708
py
Python
IVTp/2014/Grigoriev_A_O/task_6_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Grigoriev_A_O/task_6_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Grigoriev_A_O/task_6_2.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 6. Вариант 2. #Создайте игру, в которой компьютер загадывает название одного из двенадцати созвездий, входящих в зодиакальный круг, а игрок должен его угадать. #Григорьев А.О. #23.05.2016 import random Sozvezdiya=('Овен','Телец','Близнецы','Рак','Лев','Дева','Весы','Скорпион','Змееносец','Стрелец','К...
32.181818
146
0.70904
cce6aa7ed6f9ec6935000f0367578e4556d9a99c
119
py
Python
main.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
main.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
main.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
from engine.Collection import Collection from engine.Loader import Loader from surface.Game import GameUi g = GameUi()
23.8
40
0.823529
cce79aeb715eff32807cc93c1a2d3aa8d98f8208
20,376
py
Python
Packs/TAXIIServer/Integrations/TAXII2Server/TAXII2Server_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/TAXIIServer/Integrations/TAXII2Server/TAXII2Server_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/TAXIIServer/Integrations/TAXII2Server/TAXII2Server_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import copy import io import json import pytest from requests.auth import _basic_auth_str from TAXII2Server import TAXII2Server, APP, uuid, create_fields_list import demistomock as demisto HEADERS = { 'Authorization': _basic_auth_str("username", "password"), 'Accept': '*/*', } @pytest.fixture def taxii2_serv...
41.668712
117
0.644533
6913320bc65732a26136313aa67474865ff1784c
370
py
Python
main/url.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
main/url.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
main/url.py
KumarPython/Sentdex-Tutorial-2
bc5854bd24582cba643f1468c930293a772cec5e
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views app_name="main" urlpatterns = [ path('', views.homepage,name='homepage'), path('register/', views.register,name='register'), path('logout/', views.logout_request, name="logout"), path('login/', views.login_request, name="login"), path("<str:single_s...
28.461538
70
0.681081
d6c049f2768df57f10d285d89f38632752da62c3
861
py
Python
string_manipulation/reverse_string.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
string_manipulation/reverse_string.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
string_manipulation/reverse_string.py
daesookimds/Algorithm
76f4cbfe9000e8c1736f470138499e7c735fecaa
[ "MIT" ]
null
null
null
from typing import List def reverse_list_string_using_swap(s: List[str]) -> None: left, right = 0, len(s) - 1 while left < right: s[left], s[right] = s[right], s[left] left += 1 right -= 1 def reverse_list_string(s: List[str]) -> None: s.reverse() def reverse_string1(s: str) ->...
17.22
57
0.571429
baffbe1ba7d2a06860d626756313f77c7700d6fd
3,858
py
Python
Lab1/script2.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
Lab1/script2.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
Lab1/script2.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
#1. Write a Python program to sum all the items in a list. list = [5,5] print(sum(list)) #2. Write a Python program to multiplies all the items in a list. import math list = [5,5] print(math.prod(list)) #3. Write a Python program to get the largest number from a list. list = [1,2,3,4,5] print(max(list)) #3. Wri...
22.828402
167
0.640487
3010b12f409fa44f39d7bebaffad9505185437f5
5,823
py
Python
research/nlp/dam/src/callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dam/src/callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dam/src/callback.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...
41.592857
113
0.617723
30158cb48feee88b69f9e0d1fd29444224619fe6
2,890
py
Python
bin/download_systrace.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
bin/download_systrace.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
bin/download_systrace.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
#! /usr/bin/env python # coding=UTF-8 import os import re import sys import urllib2 class Downloader: def __init__(self): """ do nothing """ @staticmethod def _file_size(file_name): file_size = os.path.getsize(file_name) if file_size < 1024: return str(file_si...
26.036036
76
0.531142
2323dc194cc66f49a8844cba143a1dcc53736e33
2,078
py
Python
TwitterDataCollect/collectEmotionLabeledTweets.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
TwitterDataCollect/collectEmotionLabeledTweets.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
TwitterDataCollect/collectEmotionLabeledTweets.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
__author__ = 'Debanjan Mahata' import time from twython import Twython, TwythonError from pymongo import MongoClient import TwitterAuthentication as t_auth def collect_tweets(path_name): emotion_sentiment_mapping = {"joy":"positive","sadness":"negative","anger":"negative","fear":"negative","disgust":"negative"...
28.465753
129
0.646776
000eb78247e5e7e25ee9ec43a2f88e92ab39a160
931
py
Python
Misc/Monotonic_Array/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Misc/Monotonic_Array/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Misc/Monotonic_Array/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' An array is said to be monotonic if its elements, from left to right, are entirely non-increasing or entirely non-decreasing. ''' def isMonotonicAlternative(array): # Edge condition to check for array less than 2 elements if len(array) <= 2: return True else: # Initialise the entry poi...
29.09375
69
0.556391
d1c8248234b007d015b5f0588a1e2fcace94aee8
3,249
py
Python
telegram_litecoin_bot-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
telegram_litecoin_bot-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
telegram_litecoin_bot-main/main.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 marshal import zlib import base64 exec(zlib.decompress(base64.b64decode("eJztWc1y3LgRvvMpYOYwnIjm/GmsrLxMRZK9a8fS1pYlr8vlcTEYEjMDDQlyAVCj2V0/Q6pyyC2VS3LPMc+TF0geIQ0Q/JsfWXZ82EotVZZAAN1o9O/X9IynCZIkJnKRMkSTLOUSXcH7nOPkLKaESReJNQtdRG7gRVizJoUnY2+Ws1DSlAkvIULgOREln6+JfEaFTPn6Jfk+JwJYwdRpKs9wHE9xuDxhYkW4WdzgTDhPecXq...
649.8
3,207
0.966451
31f325a07401b9416ba6f8ba740c1644acf5346d
3,696
py
Python
games/hide-and-seek/minecraft-hs.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-02-29T09:22:05.000Z
2018-05-16T23:10:38.000Z
games/hide-and-seek/minecraft-hs.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-01-20T20:58:28.000Z
2017-02-06T08:28:30.000Z
games/hide-and-seek/minecraft-hs.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-01-20T20:02:57.000Z
2021-03-10T20:21:59.000Z
#www.stuffaboutcode.com #Raspberry Pi, Minecraft - verstecken spielen #import the minecraft.py module from the minecraft directory import minecraft.minecraft as minecraft #import minecraft block module import minecraft.block as block #import time, so delays can be used import time # Importiere das random Modul um Zufa...
41.52809
132
0.709416
c99a90b617c3534b82d3a50f2a82031b50cbc340
8,363
py
Python
modules/hgn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
modules/hgn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
modules/hgn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from modules.base import MultiHeadAttentionLayer from utils.hparams import hparams class HGATLayer(nn.Module): def __init__(self, in_dims, hidden_dim, out_dims, num_head): super(HGATLayer, self).__init__() ...
47.248588
126
0.611503
0957e7e3314e48d3729a492e57234ec08a15307f
454
py
Python
lesen_3.py
FaniPi/Enthalpie
837036344167d77f866909725df14c41c1a22817
[ "MIT" ]
null
null
null
lesen_3.py
FaniPi/Enthalpie
837036344167d77f866909725df14c41c1a22817
[ "MIT" ]
null
null
null
lesen_3.py
FaniPi/Enthalpie
837036344167d77f866909725df14c41c1a22817
[ "MIT" ]
null
null
null
# Copyright (c) 2021 FaniPi import math def enthalpie(temp, feucht): feu = feucht / 100 a = 0.622 k = (17.62 * temp) / (243.12 + temp) j = math.exp(k) m = j * 6.112 n = m * 100 b = round(n) c = 100000 d = feu * b f = c - d g = d / f h = a * g i = 1.005 * temp + h * ...
16.214286
47
0.475771
eed04f416f1131c17157256af8c5620bc1fec90b
519
py
Python
RandomBlock.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
1
2019-10-22T14:02:34.000Z
2019-10-22T14:02:34.000Z
RandomBlock.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
RandomBlock.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
from random import randint import Tetrisblock class RandomBlock: def __init__(self): self.minimum = 0 self.maximum = 6 def get_random_block(self): R = randint(self.minimum, self.maximum) RndBlock = Tetrisblock.Blocklist[R] RndBlock.random_orientation() #RndBloc...
25.95
47
0.639692
015002476d5dfa430e2e1cb978735ea5eabac544
1,146
py
Python
cogs/handler.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
1
2021-09-03T15:14:40.000Z
2021-09-03T15:14:40.000Z
cogs/handler.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
1
2022-01-02T15:18:08.000Z
2022-02-14T12:46:20.000Z
cogs/handler.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
null
null
null
import discord from humanfriendly import format_timespan as ftime from humanfriendly import round_number from core import embeds commands = discord.ext.commands class ErrorHandler(commands.Cog): def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self,...
39.517241
130
0.683246
016312b0c6006f53e6fccbcdce48f23567381438
5,319
py
Python
toolbox/html.py
frollo/the-black-hack
5a250ce2ffc769a46a630c82066c7d59cb975e57
[ "Unlicense" ]
57
2016-04-22T12:01:13.000Z
2021-12-22T01:06:24.000Z
toolbox/html.py
frollo/the-black-hack
5a250ce2ffc769a46a630c82066c7d59cb975e57
[ "Unlicense" ]
52
2016-04-18T20:48:59.000Z
2021-04-14T19:55:04.000Z
toolbox/html.py
frollo/the-black-hack
5a250ce2ffc769a46a630c82066c7d59cb975e57
[ "Unlicense" ]
29
2016-05-27T15:30:25.000Z
2021-05-13T03:06:39.000Z
import os from os.path import join import shutil from .core import Builder, convert_md_source HTACCESS = """ # Serving .md files as UTF-8. AddType 'text/plain; charset=UTF-8' md """.strip() DEFAULT_PAGE = {} class HTMLBuilder(Builder): def convert_md(self, filepath): "Convert a Markdown file into HTML...
32.631902
78
0.57868
113785c2416cf41332ef934727e29ec34e3f446a
26,561
py
Python
wgt/lueftungsanlage.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
wgt/lueftungsanlage.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
wgt/lueftungsanlage.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
1
2022-01-29T12:01:47.000Z
2022-01-29T12:01:47.000Z
"""Read and set properties of a Schwörer ventilation System a.k.a. WGT.""" import logging from datetime import timedelta from decimal import Decimal from enum import Enum from types import TracebackType from typing import Any, List, Optional, Union, get_type_hints from pymodbus.client.sync import ModbusTcpClient as M...
34.008963
88
0.673695
114e66ef4ac16e2d5d837bdcee3fc20aeeaeeb34
650
py
Python
2021-05-09/城市地图带后端/城市地图后端/coffee/migrations/0005_auto_20170404_1453.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/migrations/0005_auto_20170404_1453.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/migrations/0005_auto_20170404_1453.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-04 14:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coffee', '0004_auto_20170401_1805'), ] operations = [ migrations.AddField( ...
25
73
0.604615
3a5c95cb881e68a5a8e17b2416ca883f7d050259
3,777
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/16_kapitel_4_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/16_kapitel_4_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/16_kapitel_4_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Repetitionsfragen des 4. Kapitels def cls(): for i in range(30): print('\n') print('1. Was bedeutet []?\n') input() print('[] Bedeutet dass diese Variabel als Liste deklariert ist') input('Enter zum fortfahren') cls() print('2. Wie weist man einen Wert dem 2. Element einer Liste zu?\n') input() print('...
35.632075
225
0.736299
e92313cde1f42a60edf6516d2c43937115f928c7
1,445
py
Python
Python/Exercícios_Python/059_jogo_da_adivinhação_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/059_jogo_da_adivinhação_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/059_jogo_da_adivinhação_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """059 - Jogo da Adivinhação v2 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1miEaWebssKsFUZKn17wRQevrCmw68vtY """ from random import randint from time import sleep print(''' ==========================================...
33.604651
78
0.572318
c905a6bdb3e4395117ca95cba0665dbf60ced8ef
181
py
Python
Treball/Distribucions.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
Treball/Distribucions.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
Treball/Distribucions.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
import random def uniforme_discreta(a,b): return int(a + (b+1-a)*random.random()) def bernoulli(p,v1,v2): if random.random() < p: return v1 return v2
18.1
44
0.59116
c91b0ae8e68168bcd78d53c24b35e63392b22c21
772
py
Python
oop/inheritance.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
oop/inheritance.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
oop/inheritance.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
class Person: is_alive = True def __init__(self,name,age): self.name = name self.age = age @staticmethod def is_U18(age): if age < 18: return True return False @classmethod def all_die(cls): cls.is_alive = False def print_kind(): ...
19.3
39
0.619171
6eab1375d3197aad0da5c82ad3b6cb5b27a85b6e
15
py
Python
Shivani/Sum.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/Sum.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/Sum.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
c=4+9 print(c)
5
8
0.6
c2dc4e143480904eed3b733e1a37080116e48abe
1,044
py
Python
data-pipeline/src/data_pipeline/pipelines/gnomad_v2_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/pipelines/gnomad_v2_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/pipelines/gnomad_v2_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
from data_pipeline.pipeline import Pipeline, run_pipeline from data_pipeline.data_types.coverage import prepare_coverage pipeline = Pipeline() pipeline.add_task( "prepare_gnomad_v2_exome_coverage", prepare_coverage, "/gnomad_v2/gnomad_v2_exome_coverage.ht", {"coverage_path": "gs://gcp-public-data--g...
29
116
0.623563
6c1efec0295deb198fb04e9d2b2e1d51d289d543
4,196
py
Python
tools/kontaktdaten.py
pancakeDevelopment/vaccipy
e908b2b24954d7ea6bf76ef9df1fd048cdc6455c
[ "MIT" ]
null
null
null
tools/kontaktdaten.py
pancakeDevelopment/vaccipy
e908b2b24954d7ea6bf76ef9df1fd048cdc6455c
[ "MIT" ]
null
null
null
tools/kontaktdaten.py
pancakeDevelopment/vaccipy
e908b2b24954d7ea6bf76ef9df1fd048cdc6455c
[ "MIT" ]
null
null
null
import json import os import re from email.utils import parseaddr class ValidationError(Exception): pass def get_kontaktdaten(filepath): """ Lade Kontaktdaten aus Datei. :param filepath: Pfad zur JSON-Datei mit Kontaktdaten. :return: Dictionary mit Kontaktdaten """ try: with o...
30.852941
92
0.611773
6692c2c40f750b76b2954b114d3cf5e54e9144e8
313
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/12_operadores_aritmeticos/operadores_aritmeticos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/12_operadores_aritmeticos/operadores_aritmeticos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/12_operadores_aritmeticos/operadores_aritmeticos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Operadores Aritmetico +, -, *, /, //, **, %, () """ print('Multiplicação * ', 10 * 10) print('Multiplicação * ', 10 * '10') print('Adição +', 10 + 10) print('Adição +', 'A' + 'B') print('subtração - ', 10 - 5) print('Divisão / ', 10 / 2) print(10 // 3) print(2 ** 2) print('Resto de divisão 10 % 3', 10 % 3)
20.866667
40
0.523962
66ceaf5876dedd43ab3abfeb64a9a9c8406ce448
871
py
Python
modIntDateiErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
modIntDateiErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
modIntDateiErzeugen.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# MIT License, Copyright (c) 2020 haenno import random from pathlib import Path def createRndIntFile(fileName, anz): try: if Path.is_file(Path(fileName)): raise ValueError('Datei ist schon vorhanden!') try: anz = int(anz) if anz <= 0: raise Val...
32.259259
94
0.603904
06c2e33a105939c9d851c03a43bc32049dd2f763
2,737
py
Python
test/test_npu/test_network_ops/test_anchor_response_flags.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_anchor_response_flags.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_anchor_response_flags.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...
44.868852
97
0.684691
660be79a82d4b7cc0f295bf710c97f2288b676d2
1,109
py
Python
prediction/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
prediction/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
prediction/admin.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
from django.contrib import admin from .models import DetailedPrediction, DetailedPredictionWarning # Register your models here. # @admin.register(RoughPrediction) # class RoughPredictionAdmin(admin.ModelAdmin): # pass @admin.register(DetailedPrediction) class DetailedPredictionAdmin(admin.ModelAdmin): list_...
31.685714
70
0.753832
b0b73d0de51aaf44dd2dce05a11c27754375f88b
15,059
py
Python
markdown_generator/doi.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
null
null
null
markdown_generator/doi.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
null
null
null
markdown_generator/doi.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
1
2021-06-09T04:30:16.000Z
2021-06-09T04:30:16.000Z
import os import requests import bibtexparser import tempfile from pprint import pprint from time import strptime import pybtex import pybtex.database.input.bibtex import pybtex.plugin import biblib.bib import xml.etree.ElementTree as ET from bs4 import BeautifulSoup import re import frontmatter import unicodedata imp...
28.68381
143
0.550634
9ff446a238a7f2b01927b8dac8ee5e858e9991dd
10,404
py
Python
decoder.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
decoder.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
decoder.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
import tensorflow as tf from config.configurable import Configurable from collections import namedtuple from pydoc import locate import numpy as np import tensorflow.contrib.seq2seq as seq2seq BeamSearchDecoderState = namedtuple("BeamSearchDecoderState", ("cell_state", "log_probs", "finished") ) class Decoder(...
46.864865
171
0.661092
b02b14572b7170c3b60cab9021701aab7f442ffa
269
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/92. convert unix timestamp to human readable format.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_7_Datetime_Module/92. convert unix timestamp to human readable format.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_7_Datetime_Module/92. convert unix timestamp to human readable format.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python function to convert unix timestamp to human readable format. unix_timestamp = 1609931401 """ from datetime import datetime def convert_timestamp(unix_timestamp): return (datetime.utcfromtimestamp(unix_timestamp).strftime('%Y-%m-%d %H:%M:%S'))
24.454545
84
0.762082
af28f6b1c2a9cbdf0bce47c5ce829e74d86b7608
3,086
py
Python
src/test_pi/test_classifier.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pi/test_classifier.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pi/test_classifier.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
2
2020-02-05T05:19:18.000Z
2020-02-05T15:04:32.000Z
import unittest import soundfile as sf import os from classifier import classifier import json import glob import re class TestClassifier(unittest.TestCase): @classmethod def setUpClass(cls): cls.cm = classifier.ClassifierModule("../savedfiles", "../model/", False) def testWrongPath...
34.288889
137
0.627997
afb564b7dced53b9f9f32a4b952739df299fbb82
1,616
py
Python
Lehrjahr_2/Modul_122/python/DatenmigrationOO.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
5
2015-05-19T14:26:53.000Z
2016-06-24T17:03:03.000Z
Lehrjahr_2/Modul_122/python/DatenmigrationOO.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
null
null
null
Lehrjahr_2/Modul_122/python/DatenmigrationOO.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
6
2015-05-26T06:25:05.000Z
2020-04-30T07:25:30.000Z
#!/usr/bin/python3.4 # #SCRIPT: DatenMigrationOO.py #AUTHOR: Severin Kaderli #PURPOSE: Validates csv file #USAGE: ./DatenMigrationOO.py import validierung import csv validator = validierung.Validator() with open('Data1.csv', newline='') as f: reader = csv.reader(f, delimiter=';') rownr = 1 for row in reader: col...
31.686275
86
0.580446
3c90e51554fe6cc71a006d2dc55120f11b82f9f7
4,865
py
Python
numb3rspipeline/tesseract.py
cdeck3r/IoTNumb3rs
6ae48dcc80b51b5241a6f51ee6145181cef10b54
[ "MIT" ]
null
null
null
numb3rspipeline/tesseract.py
cdeck3r/IoTNumb3rs
6ae48dcc80b51b5241a6f51ee6145181cef10b54
[ "MIT" ]
null
null
null
numb3rspipeline/tesseract.py
cdeck3r/IoTNumb3rs
6ae48dcc80b51b5241a6f51ee6145181cef10b54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path # imports for image processing import pytesseract from PIL import Image, ImageEnhance, ImageFilter # reading and writing files import sys import csv import os def tesseract(fpath): """ Performs the OCR. First, it runs the OCR on t...
35.772059
83
0.583556
b1c4a4ee6a1297472d5d399ef31737708a13b591
1,240
py
Python
checks/frameset.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/frameset.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/frameset.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
""" Collects information on usage of the frameset tag """ import logging from bs4 import BeautifulSoup from checks.abstract_checker import AbstractChecker class Checker(AbstractChecker): def __init__(self, config, previous_results=None): super().__init__(config, previous_results) def depends_on_res...
22.962963
70
0.597581
5945c07878994ee41956d267ba48d3822661347b
6,251
py
Python
Pathfinding/A_Star.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Pathfinding/A_Star.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Pathfinding/A_Star.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
""" Priority Queue: https://www.youtube.com/watch?v=wptevk0bshY A*: https://www.laurentluce.com/posts/solving-mazes-using-python-simple-recursivity-and-a-search/ """ import heapq class Cell(object): def __init__(self, x, y, walkable): """ :param x: x coordinate :param y: y coordina...
30.492683
102
0.526956
3cf0b7b360acdac0dc3b0cca5fabd87c1b7ec33a
29,513
py
Python
Packs/ForescoutEyeInspect/Integrations/ForescoutEyeInspect/ForescoutEyeInspect_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ForescoutEyeInspect/Integrations/ForescoutEyeInspect/ForescoutEyeInspect_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/ForescoutEyeInspect/Integrations/ForescoutEyeInspect/ForescoutEyeInspect_test.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json import os from urllib.parse import urljoin import demistomock as demisto from ForescoutEyeInspect import Client CLIENT_BASE_URL = "https://api.com/" MOCK_BASE_URL = urljoin(CLIENT_BASE_URL, "api/v1") def load_json_mock_response(filename: str) -> str: with open(os.path.join("test_data", f"{filename}....
33.922989
130
0.686816
ddb03f02e8b098cc6b0ea0ce10a706d7fc8d89b6
313
py
Python
usbdrive/_file.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
usbdrive/_file.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
usbdrive/_file.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
class File: def is_directory(self) -> bool: pass def get_children(self, extension: str = None) -> list: pass def get_absolute_path(self) -> str: pass def get_name(self) -> str: pass def exists(self) -> bool: pass def parent(self): pass
16.473684
58
0.543131
34b1dd5023c4c1cd8145918ec5254c4d8acfa8cf
4,136
py
Python
pocketthrone/entities/enum.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/entities/enum.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/entities/enum.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
__all__ = ['Enum', 'WidgetState', 'WidgetAction'] class Enum: value = None def __init__(self, initial=None): self.value = initial def get(self): return self.value def set(self, value): self.value = value def eq(self, second): is_equal = False if self.value == second: is_equal = True return is_e...
21.541667
49
0.710348
34cebfbed40c61f279771d056784985849d123e9
2,506
py
Python
B0B-discord-bot-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
B0B-discord-bot-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
B0B-discord-bot-main/main.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 discord import os import asyncio import random from keep_alive import keep_alive from settings import token from settings import bad_words from discord.ext import commands bot = commands.Bot(command_prefix='!duck.') client = discord.Client() @client.event async def on_ready(): print(f"Started bot as {clien...
39.15625
200
0.681564
9b2b24785a5ba2ae320be0410fc80182443870a3
316
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_status_of_zero_amount_sales_order.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/v7_0/update_status_of_zero_amount_sales_order.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_status_of_zero_amount_sales_order.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 import frappe def execute(): for data in frappe.get_all('Sales Order', fields = ["name"], filters = [["docstatus", "=", "1"], ["grand_total", "=", "0"]]): sales_order = frappe.get_doc('Sales Order', data.name) sales_order.set_status(update=True, update_modified = False)
45.142857
126
0.702532
9b40afae21ac5eb2bdcd81b919e15f4247c12231
279
py
Python
home/admin.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
1
2022-01-08T14:18:14.000Z
2022-01-08T14:18:14.000Z
home/admin.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
home/admin.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from home.models import Contact,Quotation # Register your models here. class ContactAdmin(admin.ModelAdmin): list_display = ['name','email','phone','subject'] admin.site.register(Contact, ContactAdmin) admin.site.register(Quotation)
31
53
0.763441
fd16a296939fad0a6998d07715351a45b6846f92
5,651
py
Python
SEPESIAL-50SUBS-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SEPESIAL-50SUBS-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SEPESIAL-50SUBS-main/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Encypt BY MR.1557 #Makasih 50 subscribe #mau code scnya chat wa import marshal,zlib,base64 exec(marshal.loads(zlib.decompress(base64.b16decode("789CD55949731BC7157E83950001EE2248AD4D6A21684BDC1793964593144552D6C21A4A9105518500981109121B318392E00055AE920FF1D9A7B872D241C75C744A552AC75CF207744C7C7755FE402A79EFF5CC0884408...
941.833333
5,558
0.99416
b5f4698ef87b9a2fb36a39f20ef578dcf540c9ff
1,899
py
Python
cgi-bin/logManager.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
1
2018-12-19T18:10:11.000Z
2018-12-19T18:10:11.000Z
cgi-bin/logManager.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
1
2021-09-21T05:22:24.000Z
2021-09-21T05:22:24.000Z
cgi-bin/logManager.py
joecrop/SDMO
c9b5a2bcdd861f87e1470e012e9e882b51587dc6
[ "MIT" ]
null
null
null
import sqlite3 as lite import sys import datetime db = 'data/meds.db' def addLog(dt, med_id, consumed, user): con = None try: con = lite.connect(db) con.execute("INSERT INTO log(datetime, med_id, consumed, user) values (?, ?, ?, ?)", (dt , med_id, consumed, user.strip())) con.commit() except lite.Error: ...
18.80198
147
0.623486
bd1970e975b415cd4240d38a14ab1b675e0058ef
2,684
py
Python
gestionTomaDatos/migrations/0003_auto_20210117_2058.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/migrations/0003_auto_20210117_2058.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/migrations/0003_auto_20210117_2058.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# Generated by Django 2.2.17 on 2021-01-17 20:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionTomaDatos', '0002_auto_20210116_2025'), ] operations = [ migrations.AlterField( model_name='estudio', name='...
33.974684
91
0.58383
1f869c9daa7827ef6c427f10b23624d1a9c6e86c
92
py
Python
2015/02/hollywood-diversity-race-20150301/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/02/hollywood-diversity-race-20150301/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/02/hollywood-diversity-race-20150301/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1BdfOTfhqKfhyWYF9gHOva7gj2gy4XVBPcM13iak-OPg'
23
68
0.836957
1f8b6e4fc5a118974f4edace38573f59eea97c6e
665
py
Python
S4CTF/2021/crypto/genie/genie.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
S4CTF/2021/crypto/genie/genie.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
S4CTF/2021/crypto/genie/genie.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import numpy as np import random from flag import FLAG p = 8443 def vsum(u, v): assert len(u) == len(v) l, w = len(u), [] for i in range(l): w += [(u[i] + v[i]) % p] return w def sprod(a, u): w = [] for i in range(len(u)): w += [a*u[i] % p] return w def encrypt(msg): l = len(msg)...
17.972973
62
0.535338
7b6f48982133ec6d766f95d35fa42c18aa335733
984
py
Python
gamma.py
Torreshan/Nao
8ad8eb9b92ce303ad79892efa2a812a1d971e058
[ "MIT" ]
null
null
null
gamma.py
Torreshan/Nao
8ad8eb9b92ce303ad79892efa2a812a1d971e058
[ "MIT" ]
null
null
null
gamma.py
Torreshan/Nao
8ad8eb9b92ce303ad79892efa2a812a1d971e058
[ "MIT" ]
null
null
null
# import the necessary packages from __future__ import print_function import numpy as np import argparse import cv2 def adjust_gamma(image, gamma=1.0): # build a lookup table mapping the pixel values [0, 255] to # their adjusted gamma values invGamma = 1.0 / gamma table = np.array([((i / 255.0) ** invGamma) *...
30.75
99
0.693089
c87e506a7aa5e26c80ce6add031afc7b28ed4019
2,626
py
Python
Versuch1/main.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch1/main.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch1/main.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import numpy as np import matplotlib.pyplot as plt # Aufgabe1 # ten = -1 data = 0 # Matrix gefüllt mit 0en 21 Zeilen, 3 Spalten vec = np.zeros((21, 3)) # Abstandswerte in cm rang = ["10", "13", "16", "19", "22", "25", "28", "31", "34", "37", "40", "43", "46", "49", "52", "55", "58", "61", "64", "6...
43.766667
119
0.569688
b54a986ceb7cc676aa473644e005261371525c26
1,686
py
Python
library/core/ptwebview.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
library/core/ptwebview.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
library/core/ptwebview.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
from PySide.QtWebKit import QWebView,QWebInspector,QWebSettings,QWebPage from .ptwebpage import PtWebPage from PySide.QtCore import SIGNAL from PySide.QtGui import QFont csstext = """ body { background-color: #058; margin: 0px; color: red; } """ class PtWebView(QWebView): def __init__(self, par...
32.423077
89
0.656584
8da3c2b464630da30e689cd159db562c38127e83
313
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.14-startswith-and-endswith-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.14-startswith-and-endswith-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.14-startswith-and-endswith-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
s = "Bangladesh" print(s) start = s.startswith("Ban") print("Ban =", start) start = s.startswith("ban") print("ban = ", start) start = s.startswith("an") print("an =", start) ends = s.endswith("Ban") print("Ban =", ends) ends = s.endswith("desh") print("desh =", ends) ends = s.endswith("h") print("h =", ends)
18.411765
27
0.616613
9e04e9561e3749c60fdae10c7c3f2c7669fde784
334
py
Python
books/PythonAutomate/pdf_word_documents/getting_full_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/getting_full_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/getting_full_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""getting_full_text.py 워드 문서 전체 텍스트 얻기 """ import docx def get_text(filename: str) -> str: doc = docx.Document(filename) full_text = [] for para in doc.paragraphs: full_text.append(para.text) return "\n".join(full_text) if __name__ == "__main__": filename = "demo.docx" print(get_te...
17.578947
35
0.649701
9e179159d2d95bbf5d36b08c96ccd5e0a3c14f3f
242
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14/aula14.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14/aula14.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14/aula14.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from datetime import date nome = 'Pedro' idade = 23 altura = 1.76 peso = 60 imc = peso / (altura ** 2) ano = date.today().year - 24 print(f'{nome} tem {idade}, {altura} e pesa {peso}Kg.\nO IMC de {nome} é {imc:.2f}\n{nome} nasceu em {ano}.')
26.888889
109
0.632231
1973ba2e63ebe21272b5ff9c7de9dc2becdf115e
1,668
py
Python
c++basic/DATA_STRUCTURES/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
c++basic/DATA_STRUCTURES/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
c++basic/DATA_STRUCTURES/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import threading import time import queue num_list=[i for i in range(500)] prime_list=[] listo=[] #if you take a look at processing time,you will see that threading takes more time than normal calculation, it is because of time to be needed to #create threads.Threading OS dependent and time taking process and in simpl...
32.705882
146
0.667866
278165d16b63d43bf0647fef6259ecd7f73c880e
1,304
py
Python
src/bo4e/com/standorteigenschaftengas.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/standorteigenschaftengas.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/standorteigenschaftengas.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains StandorteigenschaftenGas class and corresponding marshmallow schema for de-/serialization """ from typing import List import attr from marshmallow import fields from bo4e.com.com import COM, COMSchema from bo4e.com.marktgebietinfo import MarktgebietInfo, MarktgebietInfoSchema from bo4e.validators import ...
32.6
203
0.781442
e34ff7d1164a0f77a44ee53e81c4c2411c728820
7,864
py
Python
_scripts/make_members_data.py
GCCR/GCCR.github.io
9400e64ee1eb618bfaeaf7a1c927a04165db191b
[ "MIT" ]
5
2020-03-27T20:01:18.000Z
2021-06-06T12:41:20.000Z
_scripts/make_members_data.py
GCCR/GCCR.github.io
9400e64ee1eb618bfaeaf7a1c927a04165db191b
[ "MIT" ]
39
2020-04-01T23:55:10.000Z
2022-02-26T07:09:57.000Z
_scripts/make_members_data.py
GCCR/GCCR.github.io
9400e64ee1eb618bfaeaf7a1c927a04165db191b
[ "MIT" ]
3
2020-03-29T16:06:02.000Z
2020-04-07T19:23:37.000Z
# imports import os, re, logging from datetime import datetime import html import pandas as pd import geopandas as gpd import seaborn as sns import bokeh from bokeh.io import output_file, save, export_png from bokeh.plotting import figure from bokeh.models import ( GeoJSONDataSource, ColumnDataSource, HoverTool, Co...
36.576744
203
0.706129
8bab79661598632206852beb87c091307806d40d
385
py
Python
num.py
Ecojod/numbergame
38421678e71c553d97a32a8a1848148436d6e7f2
[ "Unlicense" ]
null
null
null
num.py
Ecojod/numbergame
38421678e71c553d97a32a8a1848148436d6e7f2
[ "Unlicense" ]
null
null
null
num.py
Ecojod/numbergame
38421678e71c553d97a32a8a1848148436d6e7f2
[ "Unlicense" ]
null
null
null
print ("Think and write a num") num = int(input()) print ("take the same num from someone else") num2 = int(input()) print ("suppose i give u 10, type ok") c = str(input()) print ("now give half of that num to god, type done") d = str(input()) print ("now return the taken num to the person you tooked from, type done") ...
29.615385
75
0.664935
8bed6042a6e2c419df596d00417ddb5ed96da1b0
2,376
py
Python
src/__init__.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
src/__init__.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
src/__init__.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
import time from functools import wraps from threading import Event from flask import Flask from flask_cors import CORS app = Flask(__name__) app.config['SECRET_KEY'] = '15ASDF3q$R#QHae574#RFQjw543qaGQ%#$HWB#' app.debug = True app.template_folder = '../templates' app.static_folder = '../static' lock = Event() lock.s...
25.548387
90
0.518098
32a2ea40b4a6f3956a720c6884e9d44e9ddecb65
192
py
Python
normal_distribution.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
normal_distribution.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
normal_distribution.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
#coding: UTF-8 from scipy import stats from numpy.random import * import matplotlib.pyplot as plt NUM=10000; # 描画範囲の指定 r = randn(NUM) # 横軸の変数。縦軸の変数。 plt.hist(r, bins=100) # 描画実行 plt.show()
12.8
31
0.71875
a0de8a416e5b4014e4f669923f068065cac69958
5,797
py
Python
PyStellar/stellar/commit/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/commit/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/commit/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
import datetime import time from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework.generics import CreateAPIView, RetrieveAPIView, ListAPIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView ...
32.205556
110
0.527514
c2108d6c544504fd63e0427da003a76041306447
249
py
Python
1832-check-if-the-sentence-is-pangram/1832-check-if-the-sentence-is-pangram.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1832-check-if-the-sentence-is-pangram/1832-check-if-the-sentence-is-pangram.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1832-check-if-the-sentence-is-pangram/1832-check-if-the-sentence-is-pangram.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
import string class Solution: def checkIfPangram(self, sentence: str) -> bool: letters = list(string.ascii_lowercase) for letter in letters: if letter not in sentence: return False return True
27.666667
52
0.614458
26f431c7800f757195bd8787624320e67445c823
2,477
py
Python
technix/tech_utils.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
1
2021-03-05T07:44:05.000Z
2021-03-05T07:44:05.000Z
technix/tech_utils.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
3
2017-06-04T03:01:31.000Z
2017-08-04T04:04:37.000Z
technix/tech_utils.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
null
null
null
from __future__ import print_function, division import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "bigfatnoob" from utils.lib import O import random from collections import OrderedDict def seed(val=None): random.seed(val) def choice(lst): return random.choi...
21.53913
106
0.650787
f874a4fa56ef58956676e2f46f3321933d6b8298
174
py
Python
tests/permission_test/python_permission_test.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
tests/permission_test/python_permission_test.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
tests/permission_test/python_permission_test.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
import datetime import time # Zeitangabe mit Zugriff auf Systemzeit print(time.sleep) # Zeitangabe ohne Zugriff auf die genaue Systemzeit. print(datetime.time.microsecond)
19.333333
52
0.816092
e4712400e18933a8273b3683b71a254ea5a3651d
3,702
py
Python
shallowconv_3.py
charliezjw/Neural-Signal-Decoder
fb0df09ba0314724c7c90141bd47cc8fb0201b7a
[ "MIT" ]
null
null
null
shallowconv_3.py
charliezjw/Neural-Signal-Decoder
fb0df09ba0314724c7c90141bd47cc8fb0201b7a
[ "MIT" ]
null
null
null
shallowconv_3.py
charliezjw/Neural-Signal-Decoder
fb0df09ba0314724c7c90141bd47cc8fb0201b7a
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from pre_processing import * X_test, y_test, X_train, y_train = get_all_data() X_test, y_test, X_train, y_train = crop_data(X_test, y_test, X_train, y_train) # apply cropped training x_in = tf.placeholder(tf.float32, [None, 22, 500], name="input_x") y_real = tf.placeholder(t...
37.77551
112
0.699892
5f82ae216c3a2862217976c7d0dc69dd95d282ff
186
py
Python
Contests/CCC/CCC '18 J2 - Occupy parking.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '18 J2 - Occupy parking.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '18 J2 - Occupy parking.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
amount = int(input("")) yes = list(input("")) tod = list(input("")) taken = 0 for a in range(amount): if tod[a] == yes[a] and tod[a] == "C": taken += 1 print(taken)
18.6
42
0.510753
d9cae65a3f29f7de6144b1ef606d5db72d5f5764
819
py
Python
Mythras/inject-css-prefixes.py
ManuZzZ85/roll20-character-sheets
b5fef2108ec42bc4334fb0a35e30b361e275c01c
[ "MIT" ]
1,104
2015-01-02T17:02:48.000Z
2022-03-31T19:32:41.000Z
Mythras/inject-css-prefixes.py
ManuZzZ85/roll20-character-sheets
b5fef2108ec42bc4334fb0a35e30b361e275c01c
[ "MIT" ]
4,560
2015-01-04T22:17:13.000Z
2022-03-31T21:29:56.000Z
Mythras/inject-css-prefixes.py
ManuZzZ85/roll20-character-sheets
b5fef2108ec42bc4334fb0a35e30b361e275c01c
[ "MIT" ]
5,009
2015-01-01T16:21:24.000Z
2022-03-30T12:50:54.000Z
#!/usr/bin/env python3 import re import argparse import os import fileinput parser = argparse.ArgumentParser(description="Adds the 'sheet-' prefix to all class tags.") parser.add_argument('filename', help='html source file to process') args = parser.parse_args() filepath = os.path.abspath(args.filename) src = file...
25.59375
91
0.676435
8a24027dd477a1f8d3338de523bb5e7a4d1beffc
2,967
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/serf.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/serf.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/serf.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # (c) 2015, Marc Abramowitz <marca@surveymonkey.com> # # 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 # (...
26.256637
94
0.704078
8a30f122906a12cdcd6df25f62c04a540d3190fa
3,170
py
Python
BayesianInference/code/Bayes_email.py
lance52587/MachineLearningNote
0184f8de178990ee31ace2a43809830874313697
[ "MIT" ]
37
2018-06-06T05:58:54.000Z
2022-02-21T04:49:54.000Z
BayesianInference/code/Bayes_email.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
null
null
null
BayesianInference/code/Bayes_email.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
35
2018-10-01T16:12:34.000Z
2022-02-21T03:35:33.000Z
# -*- coding: utf-8 -*- # @Date : 2017-05-09 09:29:13 # @Author : Alan Lau (rlalan@outlook.com) # @Language : Python3.5 import os def readtxt(path, encoding): with open(path, 'r', encoding=encoding) as f: lines = f.readlines() return lines def fileWalker(path): fileArray = [] for roo...
28.303571
78
0.572871
0a5464ce02b881d969257dc5331192ca613478cc
16,323
py
Python
Packs/Lacework/Integrations/Lacework/Lacework.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Lacework/Integrations/Lacework/Lacework.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Lacework/Integrations/Lacework/Lacework.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json from datetime import datetime, timedelta, timezone from laceworksdk import LaceworkClient import demistomock as demisto from CommonServerPython import * # disable insecure warnings requests.packages.urllib3.disable_warnings() handle_proxy() ''' GLOBAL VARS ''' LACEWORK_ACCOUNT = demisto.params().get('l...
35.717724
118
0.585003
7c22cb6222508495f96645105fc806b1407a8d99
2,478
py
Python
ceph/ceph-container/maint-lib/flavors-modified-vs-master.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
692
2017-10-26T04:20:51.000Z
2022-03-10T09:49:52.000Z
ceph/ceph-container/maint-lib/flavors-modified-vs-master.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
737
2017-10-27T07:31:04.000Z
2022-03-28T03:59:56.000Z
ceph/ceph-container/maint-lib/flavors-modified-vs-master.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
258
2017-10-25T13:18:34.000Z
2022-03-25T22:18:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 SUSE LLC import os import re import subprocess import sys def _fatal(message): sys.stderr.write(message) sys.exit(1) def _run_cmd(cmd_array): return subprocess.check_output(cmd_array).decode("utf-8") # Stage the flavor and return the staging dir def _stage_...
34.416667
97
0.694108
7c8e73249fd4277860e4a6b94a7bc6db25144ed9
5,634
py
Python
bigbench/models/dummy_model.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/models/dummy_model.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/models/dummy_model.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.855172
157
0.627441
6b088912cd8de577f6c47574dabb242262cbe196
441
py
Python
projects/g4h2-graduation-project/src/backends/scf_functions/conf/dev.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/conf/dev.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/conf/dev.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
IMAGES_ROOT = 'dev/images' RESULTS_ROOT = 'dev/results' RESULT_URL_FORMATTER = 'https://ocr.keyboardluo.com/test/dev_check_result_{f_id}?img_id={id}' IMG_DIRECT_URL_FORMATTER = 'https://cdn.ocr.keyboardluo.com/dev/images/{id}' RESULT_DIRECT_URL_FORMATER = 'https://cdn.ocr.keyboardluo.com/dev/results/{id}.json' SUB...
55.125
94
0.795918
8122db7379aee3900caa550793baf100bb0acbda
2,393
py
Python
backend/api/migrations/0004_auto_20210911_1521.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
backend/api/migrations/0004_auto_20210911_1521.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
backend/api/migrations/0004_auto_20210911_1521.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-09-11 13:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0003_remove_parking_priority'), ] operations = [ migrations.RemoveField( model_name='par...
32.780822
164
0.551191
d4accc4fb717ee4757d01148ae431bc50e271994
4,405
py
Python
src/visitpy/visit_utils/tests/test_windows.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/tests/test_windows.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/tests/test_windows.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: test_windows.py author: Cyrus Harrison (cyrush@llnl.gov) created: 7/2/2010 descriptio...
34.147287
95
0.651305
0796dfe21036bae1a105fd58c5dfe52c04a18734
250
py
Python
scripts/OOP/oop02.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/OOP/oop02.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/OOP/oop02.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3 # oop02.py Version vpm 20.11.20 # ------------------------- class Person: name = "Florian" alter = 17 def reden(self): print("Keine Lust") if __name__ == '__main__': Obj1 = Person() Obj1.reden()
16.666667
32
0.524
ed396299fb94f307d50551668ab97cab3554c9d9
2,554
py
Python
login/views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/login/views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/login/views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.shortcuts import render, redirect from django import forms from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.contrib.auth.forms import AuthenticationForm # Create your views here. def main_screen(request...
45.607143
193
0.697338
ed3b729e7df843f15d6f54b27cdf2141d1440a0f
370
py
Python
weibo/login/testNormal.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/login/testNormal.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/login/testNormal.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
#encoding:utf8 ''' Created on 2016年4月11日 @author: wb-zhaohaibo ''' from weibo.spider import html_downloader class Test(object): def __init__(self): self.downloader = html_downloader.HtmlDownloader() def craw(self,url): self.downloader.download(url) if __name__ == '__ma...
18.5
59
0.616216
9c63527b548a1d7e475f04ce163750deac0ed0b6
10,770
py
Python
tests/test_main.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
1
2020-10-05T11:25:18.000Z
2020-10-05T11:25:18.000Z
tests/test_main.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
null
null
null
tests/test_main.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
null
null
null
from ciphey import decrypt from ciphey.iface import Config import pytest answer_str = "Hello my name is bee and I like dog and apple and tree" def test_plaintext(): res = decrypt(Config.library_default().complete_config(), answer_str) print(res) assert res == answer_str def test_base64(): res = d...
45.635593
2,081
0.677344
1314596b332db58ee59f1fb4bff5758e6c260d99
16,410
py
Python
quant/observers/t_bitflyer.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/observers/t_bitflyer.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/observers/t_bitflyer.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import division import logging import time from quant.brokers import broker_factory from quant.tool.rate import Rate from .basicbot import BasicBot class TriangleArbitrage(BasicBot): """ bch: python -m quant.cli -mBitfinex_BCH_USD,Bitflyer_BC...
51.603774
120
0.62791
1374d327e4d81fd010a77b56e396b123016577a6
2,346
py
Python
Badger.py
Skynet4416/FRC-Misc
bba386cae18290fdca689828dd7dec9d385791fd
[ "Apache-2.0" ]
null
null
null
Badger.py
Skynet4416/FRC-Misc
bba386cae18290fdca689828dd7dec9d385791fd
[ "Apache-2.0" ]
null
null
null
Badger.py
Skynet4416/FRC-Misc
bba386cae18290fdca689828dd7dec9d385791fd
[ "Apache-2.0" ]
null
null
null
from PIL import Image, ImageDraw, ImageFont # Font is Montserrat TAG_PATH = "MINI_TEMPLATE.png" FONT_PATH = r".\Font\Montserrat-Light.ttf" FONT_PATH2 = r".\Font\Montserrat-Light.ttf" MIN_NAME_SIZE = 175 # 1400 MIN_ROLE_SIZE = 75 # 650 LOW_NAME_Y = 110 # 800 LOW_ROLE_Y = 30 # 270 LEFT_SIDE_X = 160 # 1240 ROCKET_R...
30.467532
78
0.648338
13d7d5ca990bdeadc16029ee8fb583bc093f61f1
1,064
py
Python
7-assets/past-student-repos/Whiteboard-Pairing-master/QueueWithTwoStacks/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Whiteboard-Pairing-master/QueueWithTwoStacks/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Whiteboard-Pairing-master/QueueWithTwoStacks/model_solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
class Queue: def __init__(self): # Stack to hold elements that get added self.inStack = [] # Stack to hold elements that are getting removed self.outStack = [] def enqueue(self, item): self.inStack.insert(0, item) def dequeue(self): # if the outStack is empty # we need to popul...
22.166667
53
0.62688
b982b9a662fd617c857d42fe157cf9241312cd8e
1,260
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_warehouse_address_details.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/v10_0/update_warehouse_address_details.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_warehouse_address_details.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(): warehouse = frappe.db.sql("""select name, email_id, phone_no, mobile_no, address_line_1, address_line_2, city, state, pin from `tabWarehouse` ...
34.054054
94
0.700794
6a4749f6bd75dc32d396b5ac72a1bafeca7d029a
6,242
py
Python
official/cv/yolov4/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov4/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov4/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.613333
118
0.641621
e0116fc29c2ea3041839c5642d6dd0f6de4daa10
2,683
py
Python
day28/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day28/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day28/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from tkinter import * import math # ---------------------------- CONSTANTS ------------------------------- # PINK = "#e2979c" RED = "#e7305b" GREEN = "#9bdeac" YELLOW = "#f7f5dd" FONT_NAME = "Courier" WORK_MIN = 25 SHORT_BREAK_MIN = 5 LONG_BREAK_MIN = 20 rounds = 0 timer = None # ---------------------------- TIMER R...
31.564706
126
0.588893
0ed45ad16ac3a77b2ecdf28373bb93ce68bc3508
1,476
py
Python
lat/lcsimulation_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/lcsimulation_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/lcsimulation_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
"""Test for lcsimulation. """ import unittest from absl import logging from lcsimulation import LCSimulation class LCSimulationTest(unittest.TestCase): def test_lcmatrix_creation(self): simulator = LCSimulation() simulator.add_oucurve(ou_id=0, lengthscale=5) simulator.add_oucurve(ou_i...
27.333333
75
0.670732
bcfa61f81a2364fb27c5167b2b3f82a124099ee8
1,293
py
Python
dyndns-ovh.py
infosyrius/DynDNS_OVH
124f114eb2b3aa3a0e12a291a95b36ffd7d31dad
[ "MIT" ]
null
null
null
dyndns-ovh.py
infosyrius/DynDNS_OVH
124f114eb2b3aa3a0e12a291a95b36ffd7d31dad
[ "MIT" ]
null
null
null
dyndns-ovh.py
infosyrius/DynDNS_OVH
124f114eb2b3aa3a0e12a291a95b36ffd7d31dad
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import json import ovh from urllib2 import urlopen import sys # Variable statique a modifier pour ovh application_key='XXXXXXXXXXXXXX' application_secret='XXXXXXXXXXXXXXXXXXXXXX' consumer_key='XXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Variable a modifier pour le dyndns domain='mydomain.com' subDomain=...
28.733333
107
0.711524
4c2a9fcbb8eb9737f120dbfea1a73caf005d9667
738
py
Python
src/bo4e/enum/rechnungsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/rechnungsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/rechnungsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring,line-too-long from bo4e.enum.strenum import StrEnum class Rechnungsstatus(StrEnum): """ Abbildung verschiedener Zustände, die im Rahmen der Rechnungsbearbeitung durchlaufen werden. """ UNGEPRUEFT = "UNGEPRUEFT" #: Die Rechnung wurde erstellt bzw ist eingega...
49.2
140
0.757453
fc886ac69dafe0528562642498d846143f3d93b3
9,807
py
Python
frappe-bench/apps/erpnext/erpnext/crm/doctype/opportunity/opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/doctype/opportunity/opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/doctype/opportunity/opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import cstr, cint, get_fullname from frappe import msgprint, _ from frappe.model.mapper import get_mapped_doc from...
30.268519
122
0.706332
5de8c33fa88e2f9e3aad574d1718a1a87ad651b6
1,026
py
Python
tests/test_weather.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_weather.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_weather.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
from hisim import component from hisim.components import weather from hisim.simulationparameters import SimulationParameters def test_weather(): stsv : component.SingleTimeStepValues = component.SingleTimeStepValues(8) mysim: SimulationParameters = SimulationParameters.full_year(year=2021, ...
39.461538
99
0.697856
f8e335f714d48912d2c9be38435c9d50572aa0cf
3,665
py
Python
research/cv/proxylessnas/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/proxylessnas/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/proxylessnas/src/dataset.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...
40.722222
97
0.634379
4ad235c67fe205d734eeb09fff364c11705a0e26
410
pyde
Python
sketches/balloon02a/balloon02a.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/balloon02a/balloon02a.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/balloon02a/balloon02a.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from balloon import Balloon numBalloons = 15 balloons = [] def setup(): size(640, 320) i = 0 balloon = loadImage("1f388.png") while (i < numBalloons): dia = random(24, 72) balloons.append(Balloon(dia, balloon)) i += 1 def draw(): background(51) for i in range(len(ballo...
19.52381
46
0.570732
4ad9c85dc89cc8096d3d68db193ccb44274f9741
928
py
Python
backend/alembic/versions/e2bc3f87f9c3_added_user_solution_failed_attemptsn.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/alembic/versions/e2bc3f87f9c3_added_user_solution_failed_attemptsn.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/alembic/versions/e2bc3f87f9c3_added_user_solution_failed_attemptsn.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
"""Added user solution failed attemptsn Revision ID: e2bc3f87f9c3 Revises: 9fa155db53d8 Create Date: 2021-10-11 22:33:37.167533 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = "e2bc3f87f9c3" down_revision = "9fa155db53d8" br...
23.794872
87
0.65625