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
59199fd5c7bd0ee285b4d929307bd829186a5fe3
382
py
Python
python/encoding/ascii_characters.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/ascii_characters.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/ascii_characters.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
whitespace = " \t\n\r\v\f" ascii_lowercase = "abcdefghijklmnopqrstuvwxyz" ascii_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ascii_letters = ascii_lowercase + ascii_uppercase digits = "0123456789" hexdigitx = digits + "abcdef" + "ABCDEF" octdigits = "01234567" punctuation = r"""!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" p...
38.2
62
0.685864
596b3ddf0ad9b02c9bc31444d039b941f788aea2
1,280
py
Python
rbac/server/blockchain_transactions/user_transaction.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/server/blockchain_transactions/user_transaction.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/server/blockchain_transactions/user_transaction.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 ...
41.290323
83
0.719531
abef6972d5c452e516a9a095b4daeee9157c3607
946
py
Python
config.py
WhereGroup/mara-ptm-importer
bca8f134be066c0966b360f8bc15bc3139261ac5
[ "MIT" ]
null
null
null
config.py
WhereGroup/mara-ptm-importer
bca8f134be066c0966b360f8bc15bc3139261ac5
[ "MIT" ]
null
null
null
config.py
WhereGroup/mara-ptm-importer
bca8f134be066c0966b360f8bc15bc3139261ac5
[ "MIT" ]
null
null
null
# general configuration LOCAL_OTP_PORT = 8088 # port for OTP to use, HTTPS will be served on +1 TEMP_DIRECTORY = "mara-ptm-temp" PROGRESS_WATCHER_INTERVAL = 5 * 60 * 1000 # milliseconds JVM_PARAMETERS = "-Xmx8G" # 6-8GB of RAM is good for bigger graphs # itinerary filter parameters CAR_KMH = 50 CAR_TRAVEL_FACTOR = ...
33.785714
84
0.711416
e9b4fb030c17c63682095e9e29f2141ad4cde05a
98
py
Python
apps/community/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/community/apps.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/community/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CommunityConfig(AppConfig): name = 'apps.community'
16.333333
33
0.765306
75903d457a23aa0d54cdcae8e7599516cb0be5f6
4,643
py
Python
logya/core.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
logya/core.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
logya/core.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- import yaml from collections import ChainMap from os import walk from pathlib import Path from sys import exit from typing import Dict from logya.content import read, process_extensions from logya.template import init_env from logya.util import load_yaml, paths, slugify class Logya: """O...
38.371901
120
0.571829
dddc77243e4db6b1f05a3608f0547ebc85e1cf72
3,564
py
Python
research/cv/swin_transformer/src/tools/schedulers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/swin_transformer/src/tools/schedulers.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/swin_transformer/src/tools/schedulers.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...
31.539823
84
0.648148
9bacf94d0fd94e790c4eff51f93ad7140981f0c1
592
py
Python
Licence 1/I11/TP2/tp2_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP2/tp2_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP2/tp2_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
a = int(input("a= ")) b = int(input("b= ")) c = int(input("c= ")) if a == 0: if b != 0: print("La solution est", -c / b) else: if c == 0: print("INF") else: print("Aucune solution") else: delta = (b ** 2) - 4 * a * c if delta > 0: print( ...
21.925926
46
0.383446
1fc3f3ff08eb8b1848a1ba0565e1a68e75fc61f0
1,243
py
Python
Curso-Em-Video-Python/1Materias/014_Estrutura_de_repeticao_while/#014 - Estrutura de repetição while.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/014_Estrutura_de_repeticao_while/#014 - Estrutura de repetição while.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/014_Estrutura_de_repeticao_while/#014 - Estrutura de repetição while.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
''' Exemplo 1 c = 1 while c < 11: print(c) c += 1 print('Fim') ''' '''eXEMPLO 2 n = 1 while n!= 0: n = int(input('Digite um valor: ')) print('Fim') ''' ''' Exemplo 3 r = 'S' while r == 'S': n = int(input('Digite um valor: ')) r = str(input('Quer continuar? [S/N] ')).upper() print('Fim')''' ''' Exem...
23.903846
82
0.557522
1ff8bce17816354b2f006da170007b45f81f9a27
3,272
py
Python
custom_components/stadtreinigung_hamburg/config_flow.py
topic2k/sensor.stadtreinigung_hamburg
32420374c5c3d46224d80abfa19c75e89835e9a3
[ "MIT" ]
17
2019-08-02T20:29:39.000Z
2021-12-31T18:48:23.000Z
custom_components/stadtreinigung_hamburg/config_flow.py
topic2k/sensor.stadtreinigung_hamburg
32420374c5c3d46224d80abfa19c75e89835e9a3
[ "MIT" ]
10
2019-08-20T18:27:10.000Z
2022-01-10T09:04:51.000Z
custom_components/stadtreinigung_hamburg/config_flow.py
topic2k/sensor.stadtreinigung_hamburg
32420374c5c3d46224d80abfa19c75e89835e9a3
[ "MIT" ]
7
2019-09-04T12:39:41.000Z
2022-01-09T18:47:59.000Z
from homeassistant import config_entries import voluptuous as vol from homeassistant.util import slugify from homeassistant.const import CONF_NAME from homeassistant.core import HomeAssistant, callback from stadtreinigung_hamburg.StadtreinigungHamburg import * DOMAIN = "stadtreinigung_hamburg" @callback def stadtre...
35.565217
88
0.56143
9517e736c54a7ccebdb322410c0f126dfe187fa1
2,011
py
Python
src/ztc/system/ntp_time.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/system/ntp_time.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/system/ntp_time.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python ''' Time monitoring class for ZTC Copyright (c) 2010-2012 Vladimir Rusinov <vladimir@greenmice.info> Copyright (c) 2010 Murano Software [http://muranosoft.com] Copyright (c) 2010 Docufide, Inc. [http://docufide.com] Copyright (c) 2011 Wrike, Inc. [http://www.wrike.com] License: GNU GPL v3 Requir...
26.460526
78
0.636002
c806b13c3ee93413f5b64ec4d90776b263957255
796
py
Python
api/urls.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
1
2021-02-05T15:58:02.000Z
2021-02-05T15:58:02.000Z
api/urls.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
null
null
null
api/urls.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
2
2021-02-05T20:27:48.000Z
2021-03-31T19:58:07.000Z
from django.conf import settings from django.contrib import admin from django.urls import include, path from . import views from . import jwt_views admin.autodiscover() urlpatterns = [ path("me/", views.Profile.as_view(), name="me"), path("token/", jwt_views.Login.as_view(), name="token"), path( ...
24.875
69
0.66206
a952b97929b169f4063d6f78dbba77560267a97f
5,963
py
Python
tests/onegov/agency/test_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/test_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/test_layouts.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.collections import ExtendedPersonCollection from onegov.agency.layout import AgencyCollectionLayout from onegov.agency.layout import AgencyLayout from onegov.agency.layout import ExtendedPersonCollectionLayout from onegov.agency.layout im...
31.057292
75
0.679356
8d213bf4bc6c4a3a27b6ce0e83b0b299ed0382ae
321
py
Python
PYTHON/Numpy/dot_and_cross.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/dot_and_cross.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/dot_and_cross.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import numpy N = int(input()) arr = [] for _ in range(0, N): temp = list(map(int, input().split())) arr.append(temp) n = numpy.array(arr) arr = [] for _ in range(0, N): temp = list(map(int, input().split())) arr.append(temp) m = numpy.array(arr) print(numpy.dot(n, m))...
17.833333
42
0.604361
a5c3b7572364919c21d1b516377070ce152c5dd3
1,266
py
Python
src/server/bo/Student.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/bo/Student.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/bo/Student.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
from server.bo.User import User class Student(User): """The implementation of a exemplary student class. """ def __init__(self): super().__init__() self._matrikel_nr = "" self._study = "" def set_matrikel_nr(self, matrikel_nr): """Set the matrikel number of a Stu...
24.823529
59
0.610585
193938576e0ac0d34ffac2faa2f1081e9ff7eac7
283
py
Python
dailyprogrammer/315e/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
dailyprogrammer/315e/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
dailyprogrammer/315e/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import sys def xormult(x, y): z = 0 while y: if y&1: z ^= x x <<= 1 y >>= 1 return z def main(): x, y = map(int, sys.argv[1:]) print '{x}@{y} = {z}'.format(x=x, y=y, z=xormult(x, y)) if __name__ == '__main__': main()
13.47619
59
0.420495
7e0a4948565c8c5253a8a84d4cb13a90340de0c5
849
py
Python
UIUCTF/2021/crypto/dhke_adventure/dhke_adventure.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
UIUCTF/2021/crypto/dhke_adventure/dhke_adventure.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
UIUCTF/2021/crypto/dhke_adventure/dhke_adventure.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from random import randint from Crypto.Util.number import isPrime from Crypto.Cipher import AES from hashlib import sha256 print("I'm too lazy to find parameters for my DHKE, choose for me.") print("Enter prime at least 1024 at most 2048 bits: ") # get user's choice of p p = input() p = int(p) # check prime valid if p...
24.970588
68
0.687868
fde1a6c8bfc9c24d8e794d9f67ffd4e62778127f
3,737
py
Python
loesungen/chapter05/houses.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter05/houses.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter05/houses.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from csp import CSP AGE = 0 HOUSE_COLOR = 1 HOUSE_NUMBER = 2 ages = [36, 37, 39, 42] house_colors = ["rot", "grün", "blau", "gelb"] house_numbers = [2, 4, 6, 8] domain_template = [] for age in ages: for house_color in house_colors: for house_number in house_numbers: domain_template.append([age...
37
92
0.642494
e3256b18ec8695709bab6ec5d06af6549ccf99b4
459
py
Python
listings/chapter10/rent-scatter-4.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter10/rent-scatter-4.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter10/rent-scatter-4.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
import matplotlib.pyplot as plt import csv # Daten importieren rent_data = [] rent_file = open('size-rent-4.csv', 'r') reader = csv.reader(rent_file) for line in reader: rent_data.append([float(line[0]), float(line[1])]) rent_file.close() # Die Grafik erstellen plt.title("Size to rent ratio") plt.xlabel("Size in ...
21.857143
54
0.701525
8be9b25fe8fb4d95a58fe66fdd2fc05d4f545be6
336
py
Python
showcase6/com/aaron/helloworld.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase6/com/aaron/helloworld.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase6/com/aaron/helloworld.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """枚举""" __author__="Aaron.qiu" import wx if __name__=="__main__": app = wx.App() window = wx.Frame(None, title="wxPython - www.yiibai.com", size=(400, 300)) panel = wx.Panel(window) label = wx.StaticText(panel, label="Hello World", pos=(100, 100)) window.Show(True) app...
18.666667
79
0.610119
9a55a7fdede2ec154d5a719d7b1588591e7da3d3
9,901
py
Python
external/argh/dispatching.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
1
2017-11-04T15:08:42.000Z
2017-11-04T15:08:42.000Z
pythonlib/argh/dispatching.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2018-11-05T17:28:58.000Z
2018-11-05T18:20:00.000Z
external/argh/dispatching.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright © 2010—2014 Andrey Mikhaylenko and contributors # # This file is part of Argh. # # Argh is free software under terms of the GNU Lesser # General Public License version 3 (LGPLv3) as published by the Free # Software Foundation. See the file README.rst for copying conditions. # """ Disp...
32.146104
82
0.631956
323083981977cde0f72b191cb381747fc2bcf0cd
246
py
Python
python/python_backup/PRAC_PYTHON/23_palindrome.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/23_palindrome.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/23_palindrome.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def palindrome(n): a0=n s=0 while a0>0: d=a0%10 s=s*10+d a0=a0//10 if s==n: return 1 else: return 0 n=int(input("Enter a number ")) if palindrome(n)==1: print("palindrome ...") else: print("Not palindrome..")
12.947368
32
0.556911
3291fd0093f8da89c4856d4dffdb758ef05f886d
4,666
py
Python
test.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
test.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
test.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
import csv from pathlib import Path DEBUG_INFO = False # Additional debug infos during run time (switch) header_a = [] # Array of header values alldata = [] # Matrix (array of arrays) of csv data entries header_index = {} # Header Index Dictionary header_dict = {} # Header Dictionary # [P] CSV Datei l...
34.562963
118
0.624089
721804561ae49c44380dc571cf4f74b85503c27f
243
py
Python
Curso-Em-Video-Python/2Exercicios/038_Comparando_numeros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/038_Comparando_numeros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/038_Comparando_numeros.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
n1 = int(input('Digite um numero: ')) n2 = int(input('Digite um numero: ')) if n1 > n2: print('{} é maior que o {}.'.format(n1, n2)) elif n1 < n2: print('{} é maior que o {}.'.format(n2, n1)) else: print('Os numeros são iguais!!')
27
48
0.572016
9d326d6794c1d25827954b931d76eb439c0f8060
885
py
Python
euler-52.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-52.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-52.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
def euler(): d = True x = 1 while d == True: x += 1 x_1 = str(x) x_2 = f"{2 * x}" x_3 = f"{3 * x}" x_4 = f"{4 * x}" x_5 = f"{5 * x}" x_6 = f"{6 * x}" if len(x_1) != len(x_6): continue sez1 = [] sez2 =...
22.692308
57
0.348023
c2206ee1a878e27a9db7c49f40f8ab68df880580
97
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.15-exer.3-namta.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.15-exer.3-namta.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.15-exer.3-namta.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def namta(p=1): for i in range(1, 11): print(p, "x", i, "=", p*i) namta(5) namta()
12.125
34
0.463918
26941fac8e87b447a58ba0bddcfeb2f007ac10c9
869
py
Python
marsyas-vamp/marsyas/misc/check-trusted.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/misc/check-trusted.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/misc/check-trusted.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os # yes, it's another Not Invented Here solution for Marsyas! # I'm in the mood to actually look at code, not play with build # systems, so I'm setting up this framework here. # these are in the src/marsyas/ dir # the overall idea is to SLOWLY increase the number of "trusted # files", ...
26.333333
69
0.700806
cd81054e8a85316f594093cf961038e0f6e2f9db
1,211
py
Python
Hackerrank_problems/Sales by Match/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Sales by Match/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Sales by Match/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the sockMerchant function below. def sockMerchant(n, ar): ar2 = [] ar1 =sorted(ar) pair = 0 numb = 0 # The while loop is used so that the index in ar1[numb] does not go out of index limit. # First I ...
23.288462
88
0.522709
3e3a77e91b532a60c1f3b1a30eed1ff0c6de69d7
1,081
py
Python
src/training/pytorch/symbol_detector_dataset.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
src/training/pytorch/symbol_detector_dataset.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
src/training/pytorch/symbol_detector_dataset.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import os import pandas as pd from torch.utils.data import Dataset from torchvision.io import read_image from torchvision.io.image import ImageReadMode labels = [None, "r", "t"] class SymbolDataSet(Dataset): def __init__( self, annotations_file, img_dir, transform=None, target_transform=None ): ...
30.885714
79
0.677151
5f55e277acb4236e86c288860dd4538c55ae3e0c
604
py
Python
leetcode/179-Largest-Number/LargestNumber_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/179-Largest-Number/LargestNumber_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/179-Largest-Number/LargestNumber_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {integer[]} nums # @return {string} def largestNumber(self, nums): nums = sorted(nums, cmp=self.compare) res, j = '', 0 for i in range(len(nums) - 1): if nums[i] != 0: break else: j += 1 for k in...
24.16
53
0.427152
4b3c493313f5dd62a9bd6cbd5d38872c45383fc7
1,350
py
Python
plugins/tff_backend/to/global_stats.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/to/global_stats.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/to/global_stats.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 2017 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...
36.486486
99
0.745185
8acd7b7987d471b5a06b0b85cf4d87efbe582fc7
267
py
Python
2124-check-if-all-as-appears-before-all-bs/2124-check-if-all-as-appears-before-all-bs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2124-check-if-all-as-appears-before-all-bs/2124-check-if-all-as-appears-before-all-bs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2124-check-if-all-as-appears-before-all-bs/2124-check-if-all-as-appears-before-all-bs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def checkString(self, s: str) -> bool: a_indices = [i for i, x in enumerate(s) if x=='a'] try: if a_indices[-1] > s.index('b'): return False except: pass return True
24.272727
58
0.460674
867d520d4826eb65d1b663a7548bf124b82ade2b
5,026
py
Python
Bwinf-Aufgabe2-Wildschweine/boarflow.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
Bwinf-Aufgabe2-Wildschweine/boarflow.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
Bwinf-Aufgabe2-Wildschweine/boarflow.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
import networkx as nx # Breitensuche def breadth_first_search(adj, firstlevel): seen = {} # Dictionary mit Entfernung vom Start level = 0 # aktuelle Ebene nextlevel = firstlevel # Knoten auf der nächsten Ebene while nextlevel: thislevel = nextlevel # neue...
31.810127
81
0.509152
86aac998523d08ca882c093f6d0737cb28ffbca4
433
py
Python
INBa/2015/ORSHONOVA_E_G/task_5_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ORSHONOVA_E_G/task_5_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ORSHONOVA_E_G/task_5_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 5 Вариант 17. #Напишите программу, которая бы при запуске случайным образом отображала название одной из трех стран, входящих в военно-политический блок "Тройственный союз". #Orshonova. E. G. #23.05.2016 print("Программа выводит на экран одну из трех стран, входящих в военно-политический блок 'Тройственный сою...
43.3
159
0.771363
8143316f54ae66eb5e431715bb009a4f140321f2
1,090
py
Python
python/oneflow/support/async_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
oneflow/python/lib/core/async_util.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
oneflow/python/lib/core/async_util.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
27.948718
72
0.705505
d49d76f4645e4a9bf3da638359d3af74e6c199bc
6,359
py
Python
pretrain_and_retrain.py
freakanth/tensorflow-tips
67e5f86024166c77a50572b7dd425645690183c3
[ "Unlicense" ]
null
null
null
pretrain_and_retrain.py
freakanth/tensorflow-tips
67e5f86024166c77a50572b7dd425645690183c3
[ "Unlicense" ]
null
null
null
pretrain_and_retrain.py
freakanth/tensorflow-tips
67e5f86024166c77a50572b7dd425645690183c3
[ "Unlicense" ]
null
null
null
import os import tensorflow as tf import numpy as np from random import seed, shuffle # MLP hyperparameters N_HIDS = [50, 30, 10] ACTS = [tf.nn.relu, tf.nn.leaky_relu, tf.nn.relu] # Dataset hyperparameters N_ITEMS = 1024 N_DIMS = 30 BATCH_SIZE = 32 N_OUT = 1 # Training hyperparameters LEARNING_RATE = 1e-3 N_ITERS =...
37.85119
100
0.638622
0792833fe1b0fa11f8c6604cebca9da891714184
13,723
py
Python
casts/tests/test_cast.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/tests/test_cast.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/tests/test_cast.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# stdlib from datetime import datetime from shutil import rmtree # django from django.conf import settings from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse # library from rest_framework import status from rest_framework.test import APIClient # app from user...
40.964179
86
0.659914
07a35227eb5d2c6e83d0d8d308629313c4b6bd5b
13,542
py
Python
rfvision/datasets/arti_utils.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/datasets/arti_utils.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/datasets/arti_utils.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
''' ARTI is a dataset created by Liu Liu (@liuliu66) ''' import numpy as np from math import pi ,sin, cos import itertools from matplotlib import pyplot as plt def get_3d_bbox(scale, shift = 0): """ Input: scale: [3] or scalar shift: [3] or scalar Return bbox_3d: [3, N] """ ...
37.932773
141
0.578792
07e031318c79a7b25249268ebfc543fd24677322
434
py
Python
Simplification/Image_Greyscaling.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Simplification/Image_Greyscaling.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Simplification/Image_Greyscaling.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image, ImageEnhance def prepare_image(path, width, brightness): img = Image.open(path).convert('L') enhancer = ImageEnhance.Brightness(img) img_out = enhancer.enhance(brightness) w, h = img_out.size height = int(h * (width / w)) new_img = img_out.resize((...
18.869565
45
0.663594
135a792149335c36b8d42bfe907d419427ac71ba
1,300
py
Python
RunFaster/parllelism/worker_ex.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/parllelism/worker_ex.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/parllelism/worker_ex.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
from multiprocessing import Queue, Process, current_process import queue, time ''' Parllalism done by running the same method on different cores at same time for achieving the various results. where we are adding tasks to the queue, then creating processes and starting them, then using join() to complete the ...
28.888889
185
0.66
dbffd025a8c86b3e2b89ae663e2aac84dc57a5b7
286
py
Python
listings/chapter02/vectors.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter02/vectors.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter02/vectors.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
import matplotlib.pyplot as plt plt.xlabel('x') plt.ylabel('y') plt.arrow(0, 0, 4, 3, head_width=0.1) plt.arrow(0, 0, 3, 4, head_width=0.1) plt.text(4.1, 3.1, 'a') plt.text(3.1, 4.1, 'b') plt.grid() plt.axis([-1, 6, -1, 6]) plt.axhline(linewidth=2) plt.axvline(linewidth=2) plt.show()
20.428571
37
0.643357
16ce8312bb8fe9c9bc4bdbb458b86e2b724a45af
162
py
Python
abfahrt/testutils/test_generator/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/testutils/test_generator/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/testutils/test_generator/__init__.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
""" This is the module test_generator for automatic testing/validating random generated input """ from abfahrt.testutils.test_generator import test_generator
32.4
93
0.814815
bcaac9e704dea75ae3c1aa93d1920e38194051c4
3,414
py
Python
unpack.py
CodersArmyTeam/unpacker
f5798d576b7a3a0045614fa17bddce7d41d25f60
[ "MIT" ]
1
2021-01-24T10:14:46.000Z
2021-01-24T10:14:46.000Z
unpack.py
CodersArmyTeam/unpacker
f5798d576b7a3a0045614fa17bddce7d41d25f60
[ "MIT" ]
null
null
null
unpack.py
CodersArmyTeam/unpacker
f5798d576b7a3a0045614fa17bddce7d41d25f60
[ "MIT" ]
null
null
null
import re import mmap import os png_names = [] ogg_names = [] level_names = [] def save_to_file(filename, content): os.makedirs(os.path.dirname(filename), exist_ok=True) with open(filename, 'wb') as file: file.write(content) def log(string): print("[UNPACKER] " + string) def pn...
28.932203
75
0.580551
d5d18c7d3c68c6ebb0fbdd6c19b128337687ee69
409
py
Python
tests/service/test_json_data_writer.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
tests/service/test_json_data_writer.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
tests/service/test_json_data_writer.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import unittest from chillow.service.data_writer import JSONDataWriter from chillow.model.action import Action class JSONDataWriterTest(unittest.TestCase): def setUp(self): self.sut = JSONDataWriter() def test_action_should_be_represented_in_json(self): action = Action.speed_up res...
22.722222
58
0.723716
fc31910284b865007ca4fde4cdac3fe2e4bb4a7d
2,026
py
Python
research/audio/tacotron2/src/hparams.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/tacotron2/src/hparams.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/tacotron2/src/hparams.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...
25.64557
78
0.67078
fc5dabb6446b286c0aeee07d24bf9adc9de197e0
9,804
py
Python
python/pyqt/fbs/src/main/python/main.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/fbs/src/main/python/main.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/fbs/src/main/python/main.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from fbs_runtime.application_context.PyQt5 import ( ApplicationContext, cached_property, ) from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * import sys import time import random class AppContext(ApplicationContext): # 1. Subclass Application def run(self): ...
29.353293
89
0.568033
fc8a9de701da6632622980797425d9b37ae38773
655
py
Python
torch/utils/data/datapipes/map/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/utils/data/datapipes/map/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/utils/data/datapipes/map/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Functional DataPipe from torch.utils.data.datapipes.map.callable import MapperMapDataPipe as Mapper from torch.utils.data.datapipes.map.combinatorics import ShufflerMapDataPipe as Shuffler from torch.utils.data.datapipes.map.combining import ( ConcaterMapDataPipe as Concater, ZipperMapDataPipe as Zipper ) fro...
36.388889
94
0.803053
5dc4ce14f6dbab34d64c999fd01ff84a1c3918f3
948
py
Python
NeuralNet/Alex/models/model_00.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Alex/models/model_00.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Alex/models/model_00.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
# the model gets created # in this file specific layers can be defined and changed # the default data contains 40 x 1200 x 3 data as defined by the input dataformat # if the data for test and validation is change the first layer format can change # model contains a sequential keras model that can be applied with differ...
37.92
94
0.738397
54cd5b96a87f4054d299df1dec523e0ce1b2ca77
5,162
py
Python
qmk_firmware/lib/python/qmk/cli/generate/config_h.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/cli/generate/config_h.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/generate/config_h.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Used by the make system to generate info_config.h from info.json. """ from pathlib import Path from dotty_dict import dotty from milc import cli from qmk.decorators import automagic_keyboard, automagic_keymap from qmk.info import info_json from qmk.json_schema import json_load from qmk.keyboard import keyboard_com...
33.303226
129
0.646455
074678f08d529720da416976cfa34e7055fb8167
8,667
py
Python
classification/rest.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification/rest.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification/rest.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import atexit import json import os import cf_deployment_tracker import metrics_tracker_client # use natural language toolkit import nltk from classifier.classifier import Classifier from classifier.startup import populate_intents, populate_entities_for_meal, populate_entities_for_timetables, p...
29.580205
143
0.645091
074fe69b8f4756bf997c2064d57c94008be5c239
1,529
py
Python
numbersforwatch.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
numbersforwatch.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
numbersforwatch.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
from block import Block from rainbow import rainbowcolors class Number: number_pixels = [ [[1, 1, 1, 1], [1, 0, 0, 1], [1, 0, 0, 1], [1, 0, 0, 1], [1, 1, 1, 1]], [[0, 0, 0, 2], [0, 0, 0, 2], [0, 0, 0, 2], [0, 0, 0, 2], [0, 0...
20.662162
53
0.29758
075d460ecdf77c8545715bdddc238a6e442bd909
818
py
Python
app/auth/forms.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
null
null
null
app/auth/forms.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
null
null
null
app/auth/forms.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
null
null
null
""" AUTOR: Juanjo FECHA DE CREACIÓN: 24/01/2019 """ from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, PasswordField, BooleanField from wtforms.validators import DataRequired, Email, Length class SignupForm(FlaskForm): name = StringField('Nombre', validators=[DataRequired(), Length(...
30.296296
77
0.733496
db7f0ca08be3b006105debdc40e8b9818c6e457d
2,471
py
Python
Contrib-Inspur/openbmc/poky/bitbake/lib/bb/ui/uihelper.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/bb/ui/uihelper.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/bb/ui/uihelper.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer # Copyright (C) 2006 - 2007 Richard Purdie # # SPDX-License-Identifier: GPL-2.0-only # import bb.build import time class BBUIHelper: def __init__(self): self.needUpdate = False self.running_tasks = {} # Running PIDs preserves the order...
41.881356
145
0.61554
53438df96cd3cbe75e92a4d763b256cba0a0c0bd
2,925
py
Python
python/en/archive/practice_python/practice_python-exercise01-Character Input.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise01-Character Input.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise01-Character Input.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ PRACTICE PYTHON, https://www.practicepython.org/ Exercise 1. Character Input https://www.practicepython.org/exercise/2014/01/29/01-character-input.html Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the ...
36.5625
95
0.686496
536665abd87787f43a38df8ff673aef32fc2fc25
1,390
py
Python
main.py
Evil0ctal/Mail_sender
bf0c2f196f2a80a24431df533c7713776d642688
[ "MIT" ]
null
null
null
main.py
Evil0ctal/Mail_sender
bf0c2f196f2a80a24431df533c7713776d642688
[ "MIT" ]
null
null
null
main.py
Evil0ctal/Mail_sender
bf0c2f196f2a80a24431df533c7713776d642688
[ "MIT" ]
null
null
null
from smtplib import SMTP_SSL from email.mime.text import MIMEText from retrying import retry @retry(stop_max_attempt_number=15) def sendmail(message, recipient_show, to_addrs): # 填写真实的发邮件服务器用户名、密码 user = 'example@example.com' password = 'WeakPassw0rd' # 邮件内容 msg = MIMEText(message, 'plain', _chars...
29.574468
88
0.590647
72b5e6fe640440dc7030c25a790f360eebc45501
1,811
py
Python
tests/integration/test_get_by_id.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
tests/integration/test_get_by_id.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
tests/integration/test_get_by_id.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import pytest import skil import uuid import os work_space = None # because number of workspaces is limited _sk = None def _get_sk(): global _sk if _sk is None: _sk = skil.Skil() return _sk def _get_ws(): global work_space if work_space is not None: return work_space sk = _...
23.828947
70
0.668691
f46105a07177fd860ffb677c5ff344539337466a
1,239
py
Python
spamsmss.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
spamsmss.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
spamsmss.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,sys,time from time import sleep b="\033[94m" c="\033[96m" g="\033[92m" r="\033[91m" p="\033[1;97m" d="\033[00m" ab="\033[90m" dn=f"{d}[{g}√{d}]{p}" er=f"{d}[{r}!{d}]{p}" pr=f"{d}[{c}?{d}]{p}" def clear(): os.system("cls" if os.name == "nt" else "clear") def baner(): clear() print(f""" {...
27.533333
105
0.505246
f48fd79fdb10e24f80dac61e97fe641bcdfca8f1
734
py
Python
src/onegov/user/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from furl import furl def password_reset_url(user, request, url): """ Appends the token needed by PasswordResetForm for a password reset. :user: The user (model). :request: The request. :url: The URL which points to the password reset view (which is using the Passwor...
23.677419
78
0.647139
22b66023d1953fb6468fc7cd56ceccbeff3eb1de
2,584
py
Python
extrahiereMerkmale.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
extrahiereMerkmale.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
extrahiereMerkmale.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
import cv2 import glob import csv import os def getCoord(blb): """ Funktion zur Berechnung der Koordinaten eines BLOBs als Liste mit [xmin, ymin, xmax, ymax] :param blb: BLOB :return: [xmin, ymin, xmax, ymax] """ x_min, y_min, w, h = cv2.boundingRect(blb) return [x_min, y_min,...
36.394366
113
0.561533
22efa3095dccad014d5a0a9a8e851728cb81f6c6
2,388
py
Python
rawio/grouping/markov.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/grouping/markov.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/grouping/markov.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from cv2 import findTransformECC, MOTION_TRANSLATION, TERM_CRITERIA_COUNT, TERM_CRITERIA_EPS from numpy import asarray, eye, float32 from PIL import Image from sklearn.feature_extraction.image import extract_patches_2d from typing import Callable def markov_similar...
41.894737
121
0.664992
a3b8800c8469609e7884a8f8087b6a7b36f0dead
239
py
Python
assets/2019-09-06-reflected-text-analysis/test_install.py
nilsreiter/nilsreiter.de
821fd9f4c649bc86049f5e27419e83be288c1129
[ "MIT" ]
null
null
null
assets/2019-09-06-reflected-text-analysis/test_install.py
nilsreiter/nilsreiter.de
821fd9f4c649bc86049f5e27419e83be288c1129
[ "MIT" ]
null
null
null
assets/2019-09-06-reflected-text-analysis/test_install.py
nilsreiter/nilsreiter.de
821fd9f4c649bc86049f5e27419e83be288c1129
[ "MIT" ]
null
null
null
try: import requests import nltk print("Installation successful!") except: print("There was a problem with the installation of your python libraries. Please contact \ hackatorial@ims.uni-stuttgart.de")
21.727273
96
0.677824
4a6c4e0a6993f600ca47cf0869cdf1dfcf6eb283
1,340
py
Python
service/api/feeds.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2021-07-20T06:56:38.000Z
2021-07-20T06:56:38.000Z
service/api/feeds.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2018-01-23T22:36:49.000Z
2018-01-24T18:52:27.000Z
service/api/feeds.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
2
2018-01-23T21:25:57.000Z
2018-01-24T21:46:41.000Z
import feedparser from datetime import datetime class Client(object): def __init__(self, url): self.url = url self.__load() def __load(self): self.feed = feedparser.parse(self.url) def metadata(self): """ Returns meta information from the feed """ ...
29.130435
105
0.532836
4aa21ac2ab0a3d29a05cf3f6f04413a9e2960c12
845
py
Python
ASIS/2020/Finals/babyauth/bin/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
ASIS/2020/Finals/babyauth/bin/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
ASIS/2020/Finals/babyauth/bin/server.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 os import random import shutil import string ctable = string.ascii_letters + string.digits rndstr = lambda n: ''.join([random.choice(ctable) for i in range(n)]) PATH = '/tmp/babyauth_' + rndstr(16) USERNAME = 'admin' PASSWORD = rndstr(16) if __name__ == '__main__': # Setup os.ma...
23.472222
69
0.598817
604cdc9b42836c1628f2ef2c19eedf4cbe7e38c0
12,228
py
Python
components/py_engine/framework/ap3216c.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/py_engine/framework/ap3216c.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/py_engine/framework/ap3216c.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
""" Copyright (C) 2015-2020 Alibaba Group Holding Limited The driver for AP3216C chip, The AP3216C is an integrated ALS & PS module that includes a digital ambient light sensor [ALS], a proximity sensor [PS], and an IR LED in a single package. """ from micropython import const from driver import I2C from utime import ...
39.067093
120
0.673945
60a0d3209632595f9201efa502347783b8b4f229
1,695
py
Python
Work/Trivia - Module 5/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
79
2015-01-31T17:08:36.000Z
2021-11-16T16:33:51.000Z
Work/Trivia - Module 5/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
3
2015-05-31T16:34:20.000Z
2016-10-17T05:32:36.000Z
Work/Trivia - Module 5/routes.py
dineshkumar2509/Flask
bcacb81d9411f53a88a80c2e4ce31e8141775cbe
[ "Apache-2.0" ]
100
2015-02-01T12:28:58.000Z
2020-11-15T11:43:34.000Z
from flask import Flask, url_for, request, render_template from app import app import redis r=redis.StrictRedis('localhost',6379,0, decode_responses=True,charset='utf-8'); @app.route('/') def hello(): url = url_for('about'); link = '<a href="' + url + '">About us!</a>'; return link; @app.route('/about') ...
32.596154
79
0.581711
60ef0f0d35ea4a7e7e26dbed43d9a92fb1a69d04
469
py
Python
Mass-Delete-Http-main/delh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Mass-Delete-Http-main/delh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Mass-Delete-Http-main/delh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#JametKNTLS - h0d3_g4n - Moslem - Kiddenta - Naskleng45 #Created By : Jenderal92@Shin403 banner = """ Mass Delete HTTP | Jamet Crew """ print banner def http(url): try: htt = (url) x = htt.replace('http://', '').replace('https://', '') open('delhttp.txt','a').write(x+'\n'); print('Deleted http' + ' '+url) exc...
21.318182
72
0.620469
e8213ab7dcb4bf3c584e4890ef6627bd294be6a4
2,276
py
Python
src/onegov/election_day/screen_widgets/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/screen_widgets/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/screen_widgets/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day.screen_widgets.election import ( ElectionCandidatesByEntityTableWidget, ElectionCandidatesChartWidget, ElectionCandidatesTableWidget, ElectionCompoundCandidatesTableWidget, ElectionCompoundDistrictsTableWidget, ElectionCompoundListsChartWidget, ElectionCompoundListsT...
28.810127
57
0.774165
c727aed3597bde1325e1ff047e4667dfd3acfed8
3,244
py
Python
src/server.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/server.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/server.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Server for the Raspi Webapp Examples: - get json with curl -> curl -X POST http://0.0.0.0:2828/api/v1/getCrashInfo -d data/1.json - get image with curl -> curl -X POST http://0.0.0.0:2828/api/v1/getCrashImage -o received_img.png """ import sys sys.path.append('..') import os import signal imp...
35.26087
157
0.705919
c7323a134a1167a656505108c241a73e79055d04
225
py
Python
20-fs-ias-lec/groups/09-loraSense/LoRaSense/boot.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/09-loraSense/LoRaSense/boot.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/09-loraSense/LoRaSense/boot.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
##import lib.lorasense as lorasense ##lorasense = lorasense.LoraSense(mode=1, debug=1) ##lorasense.setupWLAN("CasaSalsi","S@lsi1968") ##lorasense.setupLoRa(start=True) ##lorasense.setupUDP("192.168.1.123",54528, start=True)
32.142857
55
0.755556
c7b0cf1a0772c67c3dcf4ebb16a8758ba432ef0c
911
py
Python
scriptsForPreprocessing/separate_img_with_mask_and_without.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
scriptsForPreprocessing/separate_img_with_mask_and_without.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
scriptsForPreprocessing/separate_img_with_mask_and_without.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import numpy as np import pandas as pd import os, json import xlrd import os.path as path import re from shutil import copyfile mask_dataset = r'resources/fishial-new/train' img_dir = r'resources/train-fish-img' img_dir_test = r'resources/test-fish-img' new_part = r'resources/new_part' val = r'resources/val-fish-img' ...
39.608696
224
0.745335
90837de99b6b6982a183dc9710ad84fdd489a295
6,304
py
Python
Src/Scripts/mateParsing.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
2
2017-09-28T13:54:57.000Z
2018-06-28T05:03:06.000Z
Src/Scripts/mateParsing.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
Src/Scripts/mateParsing.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
import os import marmot def ConlluToConll2009(conllu2016Path): with open(conllu2016Path) as corpusFile: lines = corpusFile.readlines() Conll2009Text = '' for line in lines: if len(line) > 0 and line.endswith('\n'): line = line[:-1] if line.startswi...
41.473684
174
0.567735
464079e55c5fbd7510efa3e6119c59a67ca40c1c
955
py
Python
AP_SS16/US1/python_custom_scripts/error_formula.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
FP_2017/18/python_custom_scripts/error_formula.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
latex-template/python_custom_scripts/error_formula.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import sympy from table import ( make_SI, write, ) def error(f, err_vars=None): # mit z.B. err_vars=(E,q) lassen sich die fehlerbehafteten Größen übermitteln. from sympy import Symbol, latex s = 0 latex_names = dict() if err_vars == None: err_vars = f.free_symbols f...
28.088235
122
0.598953
d3dc5c78123c2f25529a4c75abbd5f96f5859304
23,338
py
Python
betaTest.py
ameliecordier/IIK
57b40d6b851a1c2369604049d1820e5b572c6227
[ "MIT" ]
null
null
null
betaTest.py
ameliecordier/IIK
57b40d6b851a1c2369604049d1820e5b572c6227
[ "MIT" ]
null
null
null
betaTest.py
ameliecordier/IIK
57b40d6b851a1c2369604049d1820e5b572c6227
[ "MIT" ]
null
null
null
from datahandler import expertPatterns from datahandler import miningPatterns from datahandler import analyser as analyser from matplotlib import pyplot as plt from matplotlib.backends.backend_pdf import PdfPages def tryExpertPatterns(filename): """ Expérimentations avec la classe expertPatterns """ ...
31.36828
88
0.654726
731aaa728a42deca6ff2a33458565b8c47fd81a1
680
py
Python
src/aplusb.py
ianxin/algorithm
22214b6c81bee926f5a1c74c9417b2e7edd3ceed
[ "MIT" ]
2
2018-03-13T08:59:14.000Z
2018-03-13T08:59:25.000Z
src/aplusb.py
ianxin/Algorithm
22214b6c81bee926f5a1c74c9417b2e7edd3ceed
[ "MIT" ]
null
null
null
src/aplusb.py
ianxin/Algorithm
22214b6c81bee926f5a1c74c9417b2e7edd3ceed
[ "MIT" ]
null
null
null
class Solution: """ @param a: The first integer @param b: The second integer @return: The sum of a and b 异或=不考虑进位的加法 与=只考虑进位 """ def aplusb(self, a, b): # write your code here, try to do it without arithmetic operators. if b == 0: return a if a == 0: ...
26.153846
74
0.492647
734577f5486144b835c04b90a22b098fb0f0aaa0
4,074
py
Python
test/test_npu/test_network_ops/test_miopen_batch_norm.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_miopen_batch_norm.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_miopen_batch_norm.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...
39.173077
86
0.567256
81fdddb56fcd0f33e2dae625cd0539d4e0135f34
2,992
py
Python
nets/ious.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
nets/ious.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
nets/ious.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
import math import tensorflow as tf from keras import backend as K def box_ciou(b1, b2): """ 输入为: ---------- b1: tensor, shape=(batch, feat_w, feat_h, anchor_num, 4), xywh b2: tensor, shape=(batch, feat_w, feat_h, anchor_num, 4), xywh 返回为: ------- ciou: tensor, shape=(batch, feat_w, ...
40.432432
180
0.476604
c31f4583cc34ede994f2f4341defabb4a0146a81
1,634
py
Python
research/audio/fcn-4/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/fcn-4/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/fcn-4/preprocess.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...
34.041667
110
0.657283
c32e87b18e002e86ddc11328546622ce2dd8b27f
9,356
py
Python
Packs/HealthCheck/Scripts/HealthCheckServerLog/HealthCheckServerLog.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckServerLog/HealthCheckServerLog.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckServerLog/HealthCheckServerLog.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 # noqa: F401 # noqa: F401 import re def findOldestDate(incidentDate, newDate): incidentDate = datetime.strptime(incidentDate, "%Y-%m-%d %H:%M:%S") newDate = datetime.strptime(newDate, "%Y-%m-%d %H:%M:%S") return min...
43.924883
129
0.583048
82d00165d25409b457fbce26aedc9099e84a9d45
4,901
py
Python
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/browser/create.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/browser/create.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/browser/create.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
''' Project Imports ''' from utils import color from pathlib import Path import random ''' System Imports ''' import os import json ''' Description: Creates a welcoming message for the user upon starting up the program. ''' def logo(): line = " `:///// ://///: ...
41.184874
103
0.457866
81c499c451786e2f2cdea24b4caec99990c9f12b
7,144
py
Python
examples/simultaneous_translation/stacl/reader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/reader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/reader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.015544
79
0.577548
6fb6a51e63681e0aa9afefd9a9456710227cf8d1
2,911
py
Python
project/api/event_list/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/event_list/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/event_list/schemas.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from marshmallow import fields, pre_dump, validate from project.api import marshmallow from project.api.event.schemas import EventWriteIdSchema from project.api.organization.schemas import OrganizationRefSchema from project.api.schemas import ( IdSchemaMixin, PaginationRequestSchema, PaginationResponseSche...
25.761062
82
0.732051
82f6751e314f2754a1a262f0744dbdda133f43c8
24
py
Python
addition_module/DMUE/preprocess/mtcnn/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/preprocess/mtcnn/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/preprocess/mtcnn/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
from .mtcnn import MTCNN
24
24
0.833333
737da20d9a6420090511fbbd8929883888e8480a
1,734
py
Python
tests/test_geraeteeigenschaften.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_geraeteeigenschaften.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_geraeteeigenschaften.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.com.geraeteeigenschaften import Geraeteeigenschaften, GeraeteeigenschaftenSchema from bo4e.enum.geraetemerkmal import Geraetemerkmal from bo4e.enum.geraetetyp import Geraetetyp from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] e...
36.893617
113
0.709343
737ede7364f745e346abeac81cd8f69fa78c402c
3,705
py
Python
Embedded/RaspberryPi/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
1
2019-02-28T08:39:55.000Z
2019-02-28T08:39:55.000Z
Embedded/RaspberryPi/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
5
2018-07-17T13:09:34.000Z
2018-09-11T13:55:33.000Z
Embedded/RaspberryPi/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
2
2019-05-17T03:07:08.000Z
2022-01-01T07:04:31.000Z
#!/usr/bin/python3 import Detector as det, Connector import sys import re import os from xml.etree.ElementTree import Element, SubElement, dump, ElementTree, parse def DataProcessing(con, sleep, account): if account is None or con is None or sleep is None: return -1 try: con.pushToSerial(sleep)...
28.5
95
0.556005
fb5eab4e0575f5a805252e1bab21b12f747913e4
5,621
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_12/repost_entries_with_target_warehouse.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/v6_12/repost_entries_with_target_warehouse.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_12/repost_entries_with_target_warehouse.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals import frappe """ This patch is written to fix Stock Ledger Entries and GL Entries against Delivery Notes and Sales Invoice where Targ...
32.12
111
0.737947
f7fa5ebc1de24bb058fb900810372a06231c2c5a
1,279
py
Python
___Python/Jonas/Python/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import random r= random.Random() def wuerfeln(): return r.randint(1, 6) # Augenzahl zwischen 1 und 6 def muenzwurf(): return r.randint(0,1) # 0 = Kopf, 1 = Zahl print(wuerfeln()) d = {} for i in range(10000): augenzahl = wuerfeln() if augenzahl in d: d[augenzahl] += 1 e...
24.596154
93
0.629398
540a70d9c480c933ffa337956d0c19aa553c3ecc
1,873
py
Python
REWORK/src/py/manager.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/manager.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/manager.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
# ┌─────────────────────────────────────────────────────────────────────────┐ # │ Instagram Automated Commenting 2.0 │ # ├─────────────────────────────────────────────────────────────────────────┤ # │ DO NOT indicate used program sections as your own. │ # │ DO N...
38.22449
77
0.501869
543c8635bdb708d598047f030659530fe27a5b41
1,040
py
Python
tests/onegov/town6/test_views_images.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_images.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_images.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from webtest import Upload from tests.shared.utils import create_image, get_meta def test_view_images(client): assert client.get('/images', expect_errors=True).status_code == 403 client.login_admin() images_page = client.get('/images') assert "Noch keine Bilder hochgeladen" in images_page ima...
29.714286
73
0.704808
5462e0f12ef819c90c1969b718787c250d278a05
2,194
py
Python
src/apriori_interest.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
src/apriori_interest.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
src/apriori_interest.py
PAULUAPAUL/MasterThesis_AssociationRulesBiodiversity
0855abc5ec4835a28be4aa305e5e45e73297b389
[ "MIT" ]
null
null
null
from csv import reader from collections import defaultdict, Counter from itertools import chain, combinations from optparse import OptionParser from utils_interest import * import numpy as np from csv_writer import * def apriori_interest(itemSetList, minSup, minConf, minInt): C1ItemSet = getItemSetFromLis...
39.890909
174
0.634913
3f88452f3dfad63601498d762a112e2ff7f26943
2,589
py
Python
Packs/HealthCheck/Scripts/HealthCheckDiskUsageLine/HealthCheckDiskUsageLine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckDiskUsageLine/HealthCheckDiskUsageLine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckDiskUsageLine/HealthCheckDiskUsageLine.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * # noqa: F401 def main(): res = execute_command("demisto-api-get", {"uri": "/system/config"}) config_json = res['response'] partition = config_json.get('sysConf', {}).get('disk.partitions.to.monitor') or '/' res = execute_command( "demisto-api-post", ...
30.104651
102
0.447277
3fa58d4e2b228407e60b249183cda9e498594f9d
434
py
Python
Algorithms/DynamicProgramming/Min Cost Path/min_cost_path.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Algorithms/DynamicProgramming/Min Cost Path/min_cost_path.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Algorithms/DynamicProgramming/Min Cost Path/min_cost_path.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
import sys def min_cost_path(arr, x, y): if x<0 or y<0: return sys.maxsize elif x==0 and y==0: return arr[x][y] else: return arr[x][y] + min(min_cost_path(arr, x-1, y-1), min_cost_path(arr, x-1, y), min_cost_path(arr, x, y-1)) input_matrix = [[1, 2, 3], [4, 8, 2], [1, 5, 3]] imp...
18.083333
116
0.585253
3f26d896f5643fbcfa45eed6097af22b70ada489
1,181
py
Python
2020-09-03-1234-gma_Klassen_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1234-gma_Klassen_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1234-gma_Klassen_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 3 12:07:10 2020 @author: Georg Maubach Programmieren Sie eine Klasse Becher, die Volumen und Fullmenge des Bechers in Milliliter als Fliesskommazahl speichert. Schreiben Sie einen Konstruktor für Volumen und Fullmenge, setzen Sie fur leere Becher ein Standarda...
24.102041
74
0.606266
18e07e149c1a80f4481540c64312e41965cb7326
7,427
py
Python
python/oneflow/compatible/single_client/test/ops/test_broadcast_to_compatible_with.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_broadcast_to_compatible_with.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_broadcast_to_compatible_with.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
39.089474
84
0.674566
7a036e77645f1333cb2160d1d7290b9ecc25c444
548
py
Python
src/bo4e/enum/zeiteinheit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/zeiteinheit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/zeiteinheit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Zeiteinheit(StrEnum): """ Auflistung möglicher Einheiten zur Verwendung in zeitbezogenen Angaben. """ SEKUNDE = "SEKUNDE" #: Sekunde MINUTE = "MINUTE" #: Minute STUNDE = "STUNDE" #: Stunde VIERTEL_ST...
26.095238
75
0.633212
e1ace5d51becd2b9d111989b35465d9e256fdbfe
9,142
py
Python
lib/python/qmk/info.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/info.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/info.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Functions that help us generate and use info.json files. """ import json from glob import glob from pathlib import Path from milc import cli from qmk.constants import ARM_PROCESSORS, AVR_PROCESSORS, VUSB_PROCESSORS from qmk.c_parse import find_layouts from qmk.keyboard import config_h, rules_mk from qmk.math impor...
36.568
252
0.636294
e1c668ebcaab662be4a8e25dce4debac1d6b4b89
591
py
Python
app/templatetags/meta.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
app/templatetags/meta.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
app/templatetags/meta.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
from django import template from django.conf import settings from django.templatetags.static import static register = template.Library() @register.inclusion_tag('layout/_meta.html') def meta_tags(title=None, description=None, image=None, page_type='website'): if not image: image = static('img/social-sha...
25.695652
77
0.671743
3d448a6ffe013e01860496c7447b9b84a5ef5061
573
py
Python
backend/utils/handle_get_queries.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
10
2020-03-20T19:14:43.000Z
2020-10-29T21:31:40.000Z
backend/utils/handle_get_queries.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
41
2020-03-20T20:27:55.000Z
2020-03-24T21:49:37.000Z
backend/utils/handle_get_queries.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
1
2020-03-21T09:31:51.000Z
2020-03-21T09:31:51.000Z
from flask import abort def get_entry_detail_level(request): """ Returns whether the detail level of an entry should be short or full. """ entry_level_detail = request.args.get('personDetails', None) if entry_level_detail not in ['short', 'full']: abort(400) return entry_level_detail ...
28.65
73
0.691099
18707eb8a4666cf621ae3f8d98473cc3d8937e12
436
py
Python
Problems/Stack/Easy/CrawlerLogFolder/test_crawler_log_folder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Stack/Easy/CrawlerLogFolder/test_crawler_log_folder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Stack/Easy/CrawlerLogFolder/test_crawler_log_folder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from crawler_log_folder import minOperations class Test(TestCase): def test_min_operations(self): self.assertEqual(minOperations(["d1/", "d2/", "../", "d21/", "./"]), 2) self.assertEqual(minOperations(["d1/", "d2/", "./", "d3/", "../", "d31/"]), 3) self.assertE...
48.444444
86
0.559633
62a0513fdd53558d63be074d6ea6d04483889757
553
pyde
Python
sketches/rainbowgrid2/rainbowgrid2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/rainbowgrid2/rainbowgrid2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/rainbowgrid2/rainbowgrid2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Rainbow Grid handgezeichnet add_library('handy') def setup(): global h h = HandyRenderer(this) size(600, 600) this.surface.setTitle("Rainbow Grid Handy") rectMode(CENTER) h.setRoughness(1) h.setFillWeight(0.9) h.setFillGap(0.9) def draw(): colorMode(RGB) background(235, 215, ...
22.12
48
0.575045
62006a9006134559cbde2e01ab25eabe2b71c9e7
634
py
Python
exercises/zh/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Span.has_extension( "wikipedia_url" ), "你有在span上注册这个扩展吗?" ext = Span.get_extension("wikipedia_url") assert ext[2] is not None, "你有正确设置getter吗?" assert ( "getter=get_wikipedia_url" in __solution__ ), "你有设置getter为get_wikipedia_url了吗?" assert ( "(ent.t...
27.565217
60
0.649842
028e38a4206292f2a8fafdefe0402d56090ceb87
986
py
Python
Scheduling/Python Implementation/sjf.py
G-M-C/S5-SSLAB
d56a968ffdf56c845cde7aa0cf047c88870ed011
[ "MIT" ]
null
null
null
Scheduling/Python Implementation/sjf.py
G-M-C/S5-SSLAB
d56a968ffdf56c845cde7aa0cf047c88870ed011
[ "MIT" ]
null
null
null
Scheduling/Python Implementation/sjf.py
G-M-C/S5-SSLAB
d56a968ffdf56c845cde7aa0cf047c88870ed011
[ "MIT" ]
null
null
null
import pandas as pd import operator class Process: def __init__(self): self.pid=input("Enter Process ID : ") self.bt=int(input("Enter Burst time : ")) def get_wt(self,x): self.wt=x def get_tat(self,x): self.tat=x PID=[] BT=[] WT=[] TAT=[] n = int(input("No:of processes ? ")...
22.409091
76
0.590264