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
ae744919208cbac833176832bcd43ca3a850fe13
1,339
py
Python
Spam_bomb.py
abirbhattacharya82/Spam-Bots
95b0b9664c98c6af784d694c44a6a4017c874a9e
[ "MIT" ]
3
2020-11-29T06:13:16.000Z
2022-02-27T06:21:39.000Z
Spam_bomb.py
abirbhattacharya82/Spam-Bots
95b0b9664c98c6af784d694c44a6a4017c874a9e
[ "MIT" ]
1
2021-04-07T13:21:58.000Z
2021-04-07T13:21:58.000Z
Spam_bomb.py
abirbhattacharya82/Spam-Bots
95b0b9664c98c6af784d694c44a6a4017c874a9e
[ "MIT" ]
null
null
null
#GUI Spam Bot from tkinter import * from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By def spammer(): target1=e1....
29.755556
112
0.710978
ee1780c30699de27e8a94c6560bf6cdf29190506
2,334
py
Python
Tests/test_models/test_matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/test_models/test_matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
Tests/test_models/test_matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
import pickle import numpy.random from Tests import DATA_WIDTH, OUT_WIDTH, DATA_SIZE, TEST_DATA, TEST_XOR, LEARNING_RATE, PRECISION from savageml.models import MatrixNetModel from savageml.simulations import BinaryXorSimulation import numpy as np DIMENSIONS = [DATA_WIDTH, 10, OUT_WIDTH] SIMULATION = BinaryXorSimulat...
33.826087
97
0.697515
4e655bca0e00c3c43a575711cd2bf55cfa90d9fc
6,868
py
Python
src/onegov/org/views/payment_provider.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/payment_provider.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/payment_provider.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from onegov.core.security import Public, Private, Secret from onegov.form import Form from onegov.org import _ from onegov.org.app import OrgApp from onegov.org.layout import PaymentProviderLayout from onegov.core.elements import Link, Confirm, Intercooler from onegov.pay import PaymentCollection from ...
30.660714
78
0.6341
11a67069b9f7cd3dcbe5b526d93038125cb57e32
232
py
Python
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/questions/1.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/questions/1.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/questions/1.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# One Away # There are three types of edits that can be performed on strings: insert a character, remove a character, or replace a character. Given two strings, write a function to check if they are one edit or zero edits away.
46.4
218
0.762931
11f97299c93769f17d9b167d578d54fe3e28a177
6,341
py
Python
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
from tkinter import ttk from tkinter import * import requests import json import os # variables page = 0 vplan = None tableContent = [] navigationLabel = None leftArrow = None rightArrow = None tableHeaders = ["Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] #tableHeaders = ["ID", "Datum", "Kurs", "Stunde...
23.928302
121
0.657783
3ac713014fdd9c7c7696cd56e843e6818038f9ea
233
py
Python
etl/mappings/icd9_codes.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/mappings/icd9_codes.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/mappings/icd9_codes.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
""" This diagnosis ICD9 code mapping is created from feature_mapping.csv in hcgh_1608 datalink """ DX_ICD9_MAPPING = [ ('fid', 'regex'), ] HX_ICD9_MAPPING = [ ('fid', 'regex'), ] PL_ICD9_MAPPING = [ ('fid', 'regex'), ]
15.533333
90
0.630901
3ad55c515c6ab79f7a823b3f5cdafed081c32eb6
494
py
Python
Versuch2/zzzpixel.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/zzzpixel.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/zzzpixel.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import random as rand import numpy as np import cv2 # ------------------------------ Random ------------------------------ # randompixel = cv2.imread('data/zzzrandom.png') for y in range(0, 1440): for z in range(0, 2560): r = rand.randint(150, 255) g = rand.randint(150, 255) b = rand.r...
20.583333
72
0.564777
42c53dd059751715e5f94d4331654a96a6f98fff
1,601
py
Python
codeit/oop/dependency_inversion_principle/gamecharacter_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/dependency_inversion_principle/gamecharacter_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/dependency_inversion_principle/gamecharacter_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Sword: """검 클래스""" def __init__(self, damage): self.damage = damage def slash(self, other_character): """검 사용 메소드""" other_character.get_damage(self.damage) class GameCharacter: """게임 캐릭터 클래스""" def __init__(self, name, hp, sword: Sword): self.name = name ...
26.683333
65
0.605871
289bb1225a277c8205d76345771b29c36d29cc14
6,167
py
Python
telebotapi/telebotapi.py
sah-py/SolveMyProblem
e569027b6aae65a1b7a4d480633adbb32becb329
[ "MIT" ]
null
null
null
telebotapi/telebotapi.py
sah-py/SolveMyProblem
e569027b6aae65a1b7a4d480633adbb32becb329
[ "MIT" ]
null
null
null
telebotapi/telebotapi.py
sah-py/SolveMyProblem
e569027b6aae65a1b7a4d480633adbb32becb329
[ "MIT" ]
1
2020-03-07T22:03:13.000Z
2020-03-07T22:03:13.000Z
import requests import asyncio import sys import importlib import inspect from threading import Thread class Message: def __init__(self, **update): self.text = None self.chat = None for key, value in update.items(): if isinstance(value, dict): se...
30.230392
102
0.550186
c2d0aa8c7f1141aa7ccbd03cf3ed68315f979484
368
py
Python
system calls/github_commit_with_message.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
system calls/github_commit_with_message.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
system calls/github_commit_with_message.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
import os import sys def get_commit_message(): commit_message = "" for i in range(1,len(sys.argv)): commit_message += sys.argv[i] commit_message += " " return commit_message if __name__ == "__main__": query = 'git add . && git commit -m "' + get_commit_message() + '" && git push' p...
24.533333
83
0.608696
66c2d04eac234395d44a63f9d722bb78da632378
3,858
py
Python
src/onegov/election_day/pdf.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/pdf.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/pdf.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from babel.dates import format_date from babel.dates import format_time from copy import deepcopy from onegov.election_day import _ from onegov.pdf import Pdf as PdfBase class Pdf(PdfBase): """ Our custom PDF class. This adds some custom styles, two tables (factoids, tables) and the ability to translate ...
32.420168
79
0.545101
66e316a28e8407f13e585294261d36d2a96aff90
1,854
py
Python
INBa/2015/SHEMYAKIN_A_V/task_8_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_8_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_8_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 8. Вариант 31. # 1-50. Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавши...
51.5
362
0.713592
dd22cba417eb4287b7e5cecdda75ce1fb21e43a6
601
py
Python
Tools/ImageProcessing/ImageChannelMerge.py
xiaoxianrouzhiyou/BBearEditor
0f1b779d87c297661f9a1e66d0613df43f5fe46b
[ "MIT" ]
26
2021-06-30T02:19:30.000Z
2021-07-23T08:38:46.000Z
Tools/ImageProcessing/ImageChannelMerge.py
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
null
null
null
Tools/ImageProcessing/ImageChannelMerge.py
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
3
2021-09-01T08:19:30.000Z
2021-12-28T19:06:40.000Z
import cv2 # Three RGB images take one channel respectively to synthesize one RGB image def Merge0(): b = cv2.imread("D:/workspace/BBearEditor/Tools/ImageProcessing/1.png") g = cv2.imread("D:/workspace/BBearEditor/Tools/ImageProcessing/2.png") r = cv2.imread("D:/workspace/BBearEditor/Tools/ImageProcessing/...
35.352941
84
0.717138
b0b192a1b60f199fadc37ca640770b7953c37051
2,947
py
Python
Classes/Screen_codes/Register_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Screen_codes/Register_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Screen_codes/Register_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
from Classes.Screen_codes.Activation_screen import Activation from PyQt5.QtWidgets import QDialog from PyQt5.QtCore import pyqtSlot from PyQt5 import uic import http.client import json import requests import time import sys from PyQt5 import QtCore qtCreatorFile = "Classes/GUI/register.ui" Ui_Dialog, QtBaseClass = ui...
35.506024
96
0.57584
9fd6c88e1546dee229b86ce8cbbaa49edc193df2
284
py
Python
hmc.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
2
2016-03-17T09:39:34.000Z
2016-03-17T11:26:19.000Z
hmc.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
hmc.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
import sys import codecs sys.stdout = codecs.getwriter('utf8')(sys.stdout) sys.stderr = codecs.getwriter('utf8')(sys.stderr) from i2clibraries import i2c_hmc5883l hmc5883l = i2c_hmc5883l.i2c_hmc5883l(1) hmc5883l.setContinuousMode() hmc5883l.setDeclination(9,54) print(hmc5883l)
17.75
49
0.792254
bbfe00d6f0cd4d277293066f0c94948bd99ee5d6
62
py
Python
routes/__init__.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
routes/__init__.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
routes/__init__.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
import routes.account import routes.konvoi import routes.misc
15.5
21
0.854839
a5a2d0bf08619529d18a5c09606522b97938b9b8
6,869
py
Python
src/onegov/swissvotes/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from datetime import date from onegov.core.elements import Link from onegov.swissvotes import _ from onegov.swissvotes.layouts.default import DefaultLayout class VoteLayout(DefaultLayout): @cached_property def title(self): return self.model.short_title ...
29.480687
74
0.551463
a5abcbe19d01b81d0376c22b8d4b25b7e83df2dc
2,879
py
Python
backend/apps/mapview/views.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/mapview/views.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/mapview/views.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
from functools import lru_cache import time from django.conf import settings from django.http import HttpResponse, JsonResponse from django.template import loader from django.views.decorators.gzip import gzip_page from apps.iamstudent.models import Student from apps.ineedstudent.models import Hospital from apps.mapvi...
30.305263
99
0.650573
3cbe22b31ecd77c07d01ab680c52f49744817fb3
4,214
py
Python
src/onegov/gazette/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.converters import extended_date_converter from onegov.core.converters import uuid_converter from onegov.file.integration import get_file from onegov.gazette import GazetteApp from onegov.gazette.collections import CategoryCollection from onegov.gazette.collections import GazetteNoticeCollection from on...
29.062069
78
0.741338
5549f6e47f09ce964da022147f2158e8a86ec723
1,395
py
Python
tests/api/test_fields.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_fields.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_fields.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest def test_numeric_str_serialize(client, seeder, utils): from project.api.location.schemas import LocationSchema from project.models import Location location = Location() location.street = "Markt 7" location.postalCode = "38640" location.city = "Goslar" location.latitude = 51....
25.363636
70
0.624373
55867a8af24460c040176be613764a76cc64aa2a
2,021
py
Python
official/recommend/wide_and_deep/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/wide_and_deep/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/wide_and_deep/export.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...
38.865385
100
0.732311
75a52807e5ff3f6dbf2194786f876c827b705658
1,982
py
Python
EC4/k-means.py
CSUpengyuyan/ECExperiment
4ea41837de421f18884be31248d57e88ea32b84b
[ "MIT" ]
null
null
null
EC4/k-means.py
CSUpengyuyan/ECExperiment
4ea41837de421f18884be31248d57e88ea32b84b
[ "MIT" ]
null
null
null
EC4/k-means.py
CSUpengyuyan/ECExperiment
4ea41837de421f18884be31248d57e88ea32b84b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt '''标志位统计递归运行次数''' flag = 0 '''欧式距离''' def ecludDist(x, y): return np.sqrt(sum(np.square(np.array(x) - np.array(y)))) '''计算簇的均值点''' def clusterMean(dataset): return sum(np.array(dataset)) / len(dataset) '''生成随机均值点''' def randCenter(dataset, k): temp = []...
27.150685
95
0.554995
f972c8b4f3ba872306351a29c0ef3c3af4ab07fa
65
py
Python
tos/test.py
Bodia2cat/ToS
1b8c19fd4ab5f8458f5dc1832b764430ac6e02d9
[ "Unlicense" ]
null
null
null
tos/test.py
Bodia2cat/ToS
1b8c19fd4ab5f8458f5dc1832b764430ac6e02d9
[ "Unlicense" ]
null
null
null
tos/test.py
Bodia2cat/ToS
1b8c19fd4ab5f8458f5dc1832b764430ac6e02d9
[ "Unlicense" ]
null
null
null
import subprocess import os subprocess.call("sublime-text.subl")
16.25
36
0.815385
fb1fe2251940fc8837834b58dd688dc5ab1a4122
526
py
Python
generate_boilerplate.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
11
2016-08-19T18:11:19.000Z
2020-07-27T07:04:52.000Z
generate_boilerplate.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
8
2016-09-17T16:46:01.000Z
2021-04-29T19:59:57.000Z
generate_boilerplate.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
4
2016-09-21T18:45:09.000Z
2020-07-27T07:08:17.000Z
import argparse from blockschaltbilder import convert_to_tikz if __name__ == '__main__': parser = argparse.ArgumentParser( description="Convert *.bsb file(s) into boilerplate TikZ file(s).", ) parser.add_argument( "paths", metavar="p", type=str, nargs='*', default=".", help="""s...
35.066667
75
0.663498
fb3429799dc72b48e01ee359c9ffb6491429b972
644
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch08_binary_trees/ex04_lca_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch08_binary_trees/ex04_lca_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch08_binary_trees/ex04_lca_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch08_binary_trees.solutions.ex04_lca import create_lca_example_tree, find_lca @pytest.mark.parametrize("value1, value2, expected", [(1, 3, 2), (1, 5, 4), (2, 5, 4), ...
23.851852
82
0.645963
9b56ce6b6fe6858cbc7cddb403e96bd340355c69
2,112
py
Python
base64-main/base.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
base64-main/base.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
base64-main/base.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# coding:utf8 import os import sys import zlib import base64 import marshal import binascii import time import py_compile from time import sleep as waktu from random import randint p = '\x1b[0m' m = '\x1b[31m' i = '\x1b[32m' b = '\x1b[34m' k = '\x1b[33;1m' cg = '\x1b[36m' ba = '\x1b[96;1m' pu = '\x1...
29.746479
111
0.493371
9b96bce2e4c085bb64d7d4fddeaea3dd8f8e9b33
1,840
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex08_power_of.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex08_power_of.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex08_power_of.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def is_power_of_2(n): # rekursiver Abbruch if n < 2: return n == 1 if n % 2 != 0: return False # rekursiver Abstieg return is_power_of_2(n // 2) def is_power_of_2_short(n): return n == 1 ...
20.444444
73
0.627717
32fab688fecb2157a5959325f2f33bb8d434dadc
1,406
py
Python
python_playground/data/test_mkl.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/test_mkl.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/test_mkl.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from ctypes import * # Load the share library mkl = cdll.LoadLibrary("libmkl_rt.so") # For Intel MKL prior to version 10.3 us the created .so as below # mkl = dll.LoadLibrary("./libmkl4py.so") cblas_dgemm = mkl.cblas_dgemm def print_mat(mat, m, n): for i in range(0, m): print(" ", end=' ') for j ...
24.666667
88
0.624467
b5ff8551e7f289d4616196952365e3db620c3f42
1,581
py
Python
Raspberry Pi Pico/Pi_Pico_OLED_Temp.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
Raspberry Pi Pico/Pi_Pico_OLED_Temp.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
Raspberry Pi Pico/Pi_Pico_OLED_Temp.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
# Pi_Pico_OLED_Temp.py 3 # Compare internal temperature w/ temperature measured by BME280 # and display results on OLED and Console # # 2021-02-08 Claus Kühnel info@ckuehnel.ch # from machine import I2C, Pin from bme280_float_mod import * from utime import sleep, sleep_ms import ssd1306 led = Pin(25, Pin.OUT) # ext...
24.323077
79
0.662872
9b2694717bcd17ef43ac7a9e4bf028a0a9fe494c
938
py
Python
brick/server.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/server.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/server.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-21 @author: Xsank ''' class ServerAdapter(object): quiet = False def __init__(self, host='127.0.0.1', port=8000, **kargs): self.options = kargs self.host = host self.port = int(port) def run(self, handler): pass def __repr__(self): ...
28.424242
80
0.599147
7b137746ca7236805dea4e14bd06bfe2bae63532
568,681
py
Python
LiteFB.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
LiteFB.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
LiteFB.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# YAHAHA MAU DI RECODE YAAA # UTAMAKAN BELAJAR BAHASA PEMOGRAMAN # JEECK X NANO IN HERE # # ## # # # # # # # # # # # # # # ## # # # # # # # # # # # # # # # ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ## # # # # # ## # ## ...
3,976.79021
208,714
0.522335
9e543f9a9ed2dfb40ef7cac9ee54c70b9444dcbc
2,395
py
Python
test/test_npu/test_network_ops/test_normal.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_normal.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_normal.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
36.287879
74
0.650104
9e9eebf69bd79cefa416355e8aac743f685ca619
12,196
py
Python
python_experiments/data_analysis/vldbj_data_parsing/indexing_time_space_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/vldbj_data_parsing/indexing_time_space_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/vldbj_data_parsing/indexing_time_space_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import decimal import json import os data_set_lst = [ 'ca-GrQc', 'ca-HepTh', 'p2p-Gnutella06', 'wiki-Vote', 'email-Enron', 'email-EuAll', 'web-NotreDame', 'web-Stanford', 'web-BerkStan', 'web-Google', 'cit-Patents', 'soc-LiveJournal1', 'wiki-Link'] # for tsf indexing space computation v_num_d...
42.494774
120
0.60815
c8e49606c95267ed7a8d17fe16dda7003a6ba321
189
py
Python
aoc2020/day_07/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from .part_1 import Solution as Part1 class Solution(Part1): expected = 32 def solve(self) -> any: graph = self.build_graph() return graph.value_of('shiny gold')
18.9
43
0.645503
8d10474cabfe8122e79f78af5a3ddca49197403d
78,105
py
Python
pypi_installer/sbtab/sbtab2sbml.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
pypi_installer/sbtab/sbtab2sbml.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/web_version/modules/sbtab2sbml.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
""" SBtab2SBML Converter ==================== A converter for SBtab Documents to SBML. See specification for further details. """ #!/usr/bin/env python import re import libsbml import string import sys # all allowed secondary SBtab table types sbtab_types = ['Event', 'Rule'] urns = ['obo.chebi', 'kegg.compound', 'ke...
54.201943
295
0.513117
8d8a644c46e3552919597721fae401bd6ff554be
3,441
py
Python
src/onegov/wtfs/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.crypto import random_password from onegov.core.orm.func import unaccent from onegov.form import Form from onegov.form.fields import ChosenSelectField from onegov.form.validators import InputRequiredIf from onegov.form.validators import UniqueColumnValue from onegov.user import User from onegov.wtfs imp...
28.915966
68
0.607382
93856005eef3d7f04a1d4d53c2c7c3e102f9e007
236
py
Python
tests/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
5
2019-03-19T22:21:28.000Z
2020-09-16T03:08:56.000Z
tests/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.filterwarnings('ignore', 'Your application has authenticated using end user credentials from Google Cloud SDK') warnings.filterwarnings('ignore', 'The `channel` argument is deprecated; use `transport` instead')
59
120
0.809322
93bedd36f2aa6d06eb96752ca0fee807b47ed78a
1,264
py
Python
solutions/MFA/webserver/src/face_embedding/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/MFA/webserver/src/face_embedding/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/MFA/webserver/src/face_embedding/encode.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import argparse import cv2 import sys import os import numpy as np sys.path.append(os.path.join(os.path.dirname(__file__))) import face_model parser = argparse.ArgumentParser(description='face model test') # general model_dir = os.path.join(os.path.dirname(__file__), 'models/model-r100-ii/model') parser.add_argument...
32.410256
119
0.681171
9e0238148a1390c261d7c7aae27ec7cb573dba1d
2,346
py
Python
python/course/leetcode/1~27/14. Longest Common Prefix.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/14. Longest Common Prefix.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/14. Longest Common Prefix.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/20 12:04 # @Author:TimVan # @File:14. Longest Common Prefix.py # @Software:PyCharm # Write a function to find the longest common prefix string amongst an array of strings. # If there is no common prefix, return an empty string "". # # Example 1: # Input: ["flower","flow","flight"]...
27.27907
88
0.488491
5fdad2f418211f211ce5a43b147ec7eee150aeed
43
py
Python
audio/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
audio/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
audio/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
from ._audio_callback import AudioCallback
21.5
42
0.883721
279bdcc16c8ffe9efde8c6be6f03e09c13229c71
5,949
py
Python
bots/basebot.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
1
2021-01-20T18:33:01.000Z
2021-01-20T18:33:01.000Z
bots/basebot.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
null
null
null
bots/basebot.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
2
2019-09-04T08:27:14.000Z
2019-09-06T20:32:30.000Z
from abc import ABC, abstractmethod from enum import Enum from .botutilities import Grid """ This is the base class for all Bots Participating in the Fight of the CENTURY Each function explains what it does more or less in detail. If you haven't done so already here is a quick summary on how you create your own Bot....
43.423358
116
0.67524
27ac640e5b4c3b070997badd1eff10c7947c63eb
1,072
py
Python
lib/twitmord.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
16
2015-09-30T13:45:07.000Z
2022-01-31T16:45:50.000Z
lib/twitmord.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
5
2015-09-16T13:44:08.000Z
2018-02-06T11:24:59.000Z
lib/twitmord.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
4
2015-05-28T17:39:55.000Z
2022-01-29T01:27:42.000Z
# -*- coding: utf-8 -*- import twython def twit(msg): try: # get tokens from https://dev.twitter.com/ client = twython.Twython(app_key='TODO:insert app key', app_secret='TODO: insert app secret', oauth_token='TODO:insert oauth token', oauth_token_secret='TODO:insert oauth secret') client.update_status(sta...
41.230769
185
0.708955
e3144836a8f916313333765edad07a7b25e5668a
62
py
Python
python/python_backup/PRAC_PYTHON/ab3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for i in range(1,100): if(i %2 !=0): print"odd:",i
12.4
23
0.467742
e31ae05d739f1e70efc48af6ac9e3f1a0fc91f3f
1,498
py
Python
src/onegov/town6/views/resource_recipient.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/resource_recipient.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/resource_recipient.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.org.views.resource_recipient import view_resource_recipients, \ handle_new_resource_recipient, handle_edit_resource_recipient from onegov.town6 import TownApp from onegov.org.forms import ResourceRecipientForm from onegov.org.models import ResourceRecipient, Reso...
31.87234
76
0.77036
474353ccf7314d64ec44f3eec896612779502448
428
py
Python
books/PythonCleanCode/ch8_unittest/test_ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch8_unittest/test_ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch8_unittest/test_ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from unittest import TestCase, main from unittest.mock import Mock from ut_design_2 import WrappedClient class TestWrappedClient(TestCase): def test_send_converts_type(self): wrapped_client = WrappedClient() wrapped_client.client = Mock() wrapped_client.send("value", 1) ...
23.777778
68
0.689252
08713931330693a24da63d5b1471e3667456fce6
2,432
py
Python
Python/Courses/PythonPractice/LearnPythonHardWay/practice.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/PythonPractice/LearnPythonHardWay/practice.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/PythonPractice/LearnPythonHardWay/practice.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
print "Exercise 2\nclear" print "Hello World!" print "Hello Again" print "I like typing this." print "This is fun." print 'Yay! Printing.' print "I'd much rather you 'not'" print 'I "said" do not touch this.' print "\n Exercise 3\n" print "I will now count my chickens:" print "Hens", 25 + 30 / 6 print "Roosters", 100...
21.90991
86
0.655428
3e9db6e11465c6f59db714567301ba6310768ef2
7,151
py
Python
src/ingestion/sources/snowflake.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/sources/snowflake.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/sources/snowflake.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import json from typing import Any from urllib.parse import quote from ingestion.task import TaskUnit from .base import ( SourceConfiguration, SQLAlchemySourceDialect, SQLAlchemySource, SQLAlchemyExtractor ) class SnowflakeSourceConfiguration(SourceConfiguration): @classmethod def validate(cl...
36.116162
195
0.539785
eb3988c41e20c36b77925a87df22eb86a4b1466c
1,542
py
Python
WebdavAutoExploit-master/Webdav.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
WebdavAutoExploit-master/Webdav.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
WebdavAutoExploit-master/Webdav.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 import sys print(""" __ __ ___. ________ _________ ____ / \ / \ ____\_ |__ \______ \ / _ \ \ / / \ \/\/ // __ \| __ \ | | \ / /_\ \ Y / \ /\ ___/| \_\ \| ` \/ | \ / \__/\ / \___ >___ /_______ /\____|__ /\___/ ...
35.045455
136
0.534371
a0f77ffdc4e40d4368bad94096f9bf9a1bae7ef6
208
py
Python
guidelight/app/config.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
guidelight/app/config.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
guidelight/app/config.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): # TODO: MongoDB needs different/secure init!? get info on how to!? MONGO_URI = "mongodb://localhost:27017/ptf"
20.8
70
0.711538
c2329ec56bf63f8cc6a4a646137edb0d13cec416
135
py
Python
django_project/test_mode/test_model/apps.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
django_project/test_mode/test_model/apps.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
django_project/test_mode/test_model/apps.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class TestModelConfig(AppConfig): name = 'test_model'
16.875
39
0.8
a03a97064416be0d40ce75bfa89e673fd2321e81
1,802
py
Python
ebenezer/atencion/migrations/0018_auto_20181012_0448.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/migrations/0018_auto_20181012_0448.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/migrations/0018_auto_20181012_0448.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-12 04:48 from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('atencion', '0017_auto_20181012_0441'), ] operations = [ migrations.AddField( ...
32.178571
161
0.59101
a03f05a54254b8c12716b4bd6d680f6164d718de
279
py
Python
1646-get-maximum-in-generated-array/1646-get-maximum-in-generated-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1646-get-maximum-in-generated-array/1646-get-maximum-in-generated-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1646-get-maximum-in-generated-array/1646-get-maximum-in-generated-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def getMaximumGenerated(self, n: int) -> int: dp=[0,1] for i in range(2, n+1): if i%2==0: dp.append(dp[int(i/2)]) else: dp.append(dp[int(i/2)]+dp[int(i/2)+1]) return max(dp[:n+1])
31
54
0.444444
2646bfbf16e30485440806dc7b5c67908df9a809
134
py
Python
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/deftxt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/deftxt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/deftxt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * root = Tk() v = StringVar(root, value='default text') e = Entry(root, textvariable=v) e.pack() root.mainloop()
16.75
41
0.69403
f8b09e19448cc5f3ce45990fbf9f45395dbdcd4c
1,254
py
Python
ex1/main.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
ex1/main.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
ex1/main.py
renzon/oo-inpe
1b33939974f998badbeebd7bfe182070e77ef98f
[ "MIT" ]
null
null
null
import os import sys project_dir = os.path.dirname(__file__) project_dir = os.path.join('..', project_dir) project_dir = os.path.abspath(project_dir) sys.path.append(project_dir) from ex1.dispatcher import Despachador from ex1.gerador import GeradorDecorator, Tempo5Segundos, TempoAleatorio, TransformadorNulo, Trans...
29.162791
117
0.759968
e4200b540fec957b2eda2e15253a9d572904692d
4,898
py
Python
src/gvz/import_helpers.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/import_helpers.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/import_helpers.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
""" Import helper functions for CSV files and statistikportal.de crawler """ from io import StringIO import csv import requests from lxml import etree from .models import AdministrativeDivision, ZipCode def generate_ags_id(row): """ Concatenate id columns to the AGS ID. """ if row[0] == "50": ...
34.985714
105
0.583912
39cec843a897407fbee380fbc74f495cbd1c7dc6
411
py
Python
IVTa/2014/BRONNIKOV_I_S/task_1_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/BRONNIKOV_I_S/task_1_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/BRONNIKOV_I_S/task_1_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 50 # Напишите программу, которая будет сообщать род деятельности и псевдоним # под которым скрывается Садриддин Герхард Герхардс. # После вывода информации программа # должна дожидаться пока пользователь нажмет Enter для выхода. # Bronnikov I.S. # 24.05.2016 print("Герхард Герхардс, более...
31.615385
82
0.76399
39cfc55126fbc6fe1fe27613c4e83ec13df48a29
162
py
Python
src/python/template.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/template.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/template.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
import sys import functools def Main(): while True: n = int(input()) if (n == 0): break if __name__ == '__main__': Main()
11.571429
26
0.493827
f22c1ca1c9a134aebb76b6ab5caf5d7211c62cb2
1,237
py
Python
beispielanwendungen/pythonqml3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/pythonqml3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/pythonqml3/main.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
#!/usr/bin/env python import sys, random import StringIO import contextlib from PyQt4 import QtCore, QtGui, QtDeclarative @contextlib.contextmanager def stdoutIO(stdout=None): old = sys.stdout if stdout is None: stdout = StringIO.StringIO() sys.stdout = stdout yield stdout sy...
25.770833
58
0.627324
4bbc978da03a14083603591a6583bcc27b9ae515
4,213
py
Python
Subrake-master/subrake/round.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Subrake-master/subrake/round.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Subrake-master/subrake/round.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 random import string import socket import threading import dns.resolver as resolver class ROUNDER: PTHREADS = 0 PORTS = """21-23,25-26,53,81,110-111,113,135,139,143,179,199,445,465,514-515,548,554,587,646,993,995,1025-1027, 1433,1720,1723,2000-2001,3306,3389,5060,5666,5900,6001,8000,8008,8080,8443,8888,10...
29.256944
141
0.596724
d99ba936849c023807e7abe9d35beab5e834de45
428
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/Find_the_Duplicate_Number.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
4
2021-08-31T00:56:40.000Z
2021-11-29T03:08:55.000Z
7-assets/past-student-repos/data_struct_and_algo-master/Find_the_Duplicate_Number.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
3
2022-02-14T18:48:11.000Z
2022-03-30T05:26:26.000Z
7-assets/past-student-repos/data_struct_and_algo-master/Find_the_Duplicate_Number.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-08-31T00:54:51.000Z
2021-08-31T00:54:51.000Z
# Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. # There is only one repeated number in nums, return this repeated number. # Example 1: # Input: nums = [1,3,4,2,2] # Output: 2 def findDuplicate(arr): for i in range(len(arr)): if arr[i]==ar...
21.4
112
0.621495
8a8ae7329985345e16ee363d3ac9937f181aadb3
305
py
Python
Licence 1/I11/TP2/tp2_8_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP2/tp2_8_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP2/tp2_8_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
value = int(input("Entrer un entier: ")) tmp = value while tmp >= 10: sum = 0 for i in range(0, len(str(tmp))): sum += int(str(tmp)[i]) tmp = sum if tmp == 0 or tmp == 3 or tmp == 6 or tmp == 9: print(value, "est divisible par 3") else: print(value, "n'est pas divisible par 3")
23.461538
48
0.567213
8ac58d9f09d643cbbeeba6b41b28be934eff4c63
12,029
py
Python
python/oneflow/test/models/alexnet_with_unpack.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/models/alexnet_with_unpack.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/models/alexnet_with_unpack.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...
34.467049
86
0.660321
8ad615dd0ba392b90d2eb946c744887df102a0d1
444
py
Python
haas_lib_bundles/python/docs/examples/human_existence_detector/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_existence_detector/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_existence_detector/haas506/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
from driver import GPIO import utime as time import audio import radar #创建并打开一个GPIO实例 gpiorDev=GPIO() gpiorDev.open('radar') #创建一个radar实例 radarDev=radar.RADAR(gpiorDev) #创建并打开一个Audio实例 aud=audio.Audio() #开启音频播放使能 aud.set_pa() #设置音量 aud.setVolume(5) #循环检测是否有人经过 while True: if radarDev.detect()==1: print("d...
15.857143
47
0.686937
0a4cec7db40acc3d8e08a2b35ce84fa1b42f35a8
363
py
Python
book/translation/ara/book/website/scripts/clean.py
AndreaSanchezTapia/the-turing-way
fe3e1a8ad36f9086edb4f36ec8e398f253fd8e0f
[ "CC-BY-4.0" ]
1
2021-11-09T20:43:06.000Z
2021-11-09T20:43:06.000Z
book/translation/ara/book/website/scripts/clean.py
AndreaSanchezTapia/the-turing-way
fe3e1a8ad36f9086edb4f36ec8e398f253fd8e0f
[ "CC-BY-4.0" ]
null
null
null
book/translation/ara/book/website/scripts/clean.py
AndreaSanchezTapia/the-turing-way
fe3e1a8ad36f9086edb4f36ec8e398f253fd8e0f
[ "CC-BY-4.0" ]
2
2021-12-21T17:35:45.000Z
2021-12-21T20:43:01.000Z
"""برنامج نصي مساعد "تنظيف" كل ما تم إنشاؤه من ملفات الدرجات السفلى و HTML.""" استيراد إيقاف تشغيل كمادة قاسية من مسار استيراد pathlib path_root = Path(__file__).parent.الأصل المسارات = [path_root.joinpath('_site')، path_root.joinpath('_build')] للمسار في المسارات: print(f'إزالة {path}...') sh.rmtree...
25.928571
78
0.705234
6a969a85ff208031eddf5b6d314a551eda5567d2
724
py
Python
aoc2020/day_07/rule_parser.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/rule_parser.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_07/rule_parser.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
import re from typing import Tuple, List re_rule = re.compile(r"^(\w*\ \w*)\ bags?\ contain\ (.*)\.$") re_content = re.compile(r"^(\d*)\ (\w*\ \w*)\ bags?") def parse_rule(rule: str) -> Tuple[str, List[Tuple[str, int]]]: rule_match = re_rule.fullmatch(rule) if not rule_match: raise ValueError("Rule d...
34.47619
64
0.64779
7c1dc0c2885c7b791bc5729d4e6b5db8cbe83338
189
py
Python
src/rasters/raster.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/rasters/raster.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/rasters/raster.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# raster # holoviews import numpy as np import holoviews as hv hv.extension('bokeh') xvals = np.linspace(0,4,202) ys,xs = np.meshgrid(xvals, -xvals[::-1]) hv.Raster(np.sin(((ys)**3)*xs))
17.181818
40
0.677249
8619e690f66a5f5e7cb0dbf1d260fef3c70cd720
2,691
py
Python
kickstarter_project/app.py
Ike888/KickstarterProject
035cd062f1f636f7a34ee16052fb731de882d80c
[ "MIT" ]
null
null
null
kickstarter_project/app.py
Ike888/KickstarterProject
035cd062f1f636f7a34ee16052fb731de882d80c
[ "MIT" ]
null
null
null
kickstarter_project/app.py
Ike888/KickstarterProject
035cd062f1f636f7a34ee16052fb731de882d80c
[ "MIT" ]
2
2021-11-18T17:42:48.000Z
2021-11-19T16:51:34.000Z
from flask import Flask, render_template, request # from flask_sqlalchemy import SQLAlchemy import numpy as np #from decouple import config import pickle import sklearn import pandas as pd # DB = SQLAlchemy() def create_app(): APP = Flask(__name__) # APP.config["SQLALCHEMY_DATABASE_URI"] = config('DATABASE_...
34.063291
96
0.502787
86de45f6478935f5cb053a0559732e8c8a8d55bd
2,056
py
Python
src/data/data_generation2.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/sep/code/data_generation.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/sep/code/data_generation.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import cv2 import numpy as np from numpy.random import uniform from sys import exit from os import listdir, mkdir from os.path import join, exists, dirname, abspath target = input('Select target ("r" for rotating, "t" for translating): ').lower() if target != "r" and target != "t": exit("Bad input") interval = inp...
27.413333
94
0.652237
d4ba167c2657e860124f60def9f58fcdbba7c0df
7,427
py
Python
tests/models/test_request.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/models/test_request.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/models/test_request.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from http import HTTPStatus from json import loads from typing import TypedDict, cast from spangle.api import Api from spangle.handler_protocols import RequestHandlerProtocol, use_params from ward import each, fixture, test, using @fixture def api(): return Api() queries = { "simple": {"query": "something"...
27.105839
99
0.629325
076cb9fdc9033cb9f35851e5fac3cf206884ebbd
935
py
Python
apps/utils/tools.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/utils/tools.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/utils/tools.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
import urllib import urllib.request import json from datetime import datetime, timedelta def date_range(start: datetime, stop: datetime, step: timedelta): """ 迭代时间 :param start: datetime类型 :param stop: datetime类型 :param step: timedelta类型 :return: """ while start < stop: yield s...
27.5
99
0.629947
076fef31d9990bf37f2b0d3588c4b4831430da47
1,578
py
Python
imwievaluation/tests/test_resultscsv.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_resultscsv.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_resultscsv.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
from imwievaluation.resultscsv import ResultsCSV csv_file = 'imwievaluation/tests/testfiles/survey_results.csv' csv = ResultsCSV(csv_file) def test_get_counted_values_by_column_matrix(): col = 'Bitte wähle Zutreffendes aus. [Ich habe in dieser Veranstaltung viel gelernt.]' series = csv.get_counted_values_by_...
39.45
90
0.627376
07db267e3602268e591ae93e612369962dc981fb
2,854
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/specification.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/specification.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/behavioral/specification.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" @author: Gordeev Andrey <gordeev.and.and@gmail.com> *TL;DR Provides recombination business logic by chaining together using boolean logic. """ from abc import abstractmethod class Specification: def and_specification(self, candidate): raise NotImplementedError() def or_specification(self, candi...
24.186441
92
0.686055
07f1227d8892185c561466e98a697fd2c4d098a1
1,418
py
Python
users/migrations/0002_userphoto.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/migrations/0002_userphoto.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/migrations/0002_userphoto.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-17 03:16 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import sorl.thumbnail.fields import users.models class Migration(migrations.Migration): dependencies = [("users", "0001_initial")] operations = [ mi...
29.541667
88
0.437236
132822ba50cc0da7751b6fc3a97274c4e2cce73f
406
py
Python
larq_compute_engine/tflite/python/bsign_test.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
larq_compute_engine/tflite/python/bsign_test.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
larq_compute_engine/tflite/python/bsign_test.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import larq_compute_engine as lqce from inference_test_base import InferenceTest class BsignTest(InferenceTest): def test_bsign(self): img_input = tf.keras.layers.Input(shape=(28, 28, 3)) out = lqce.bsign(img_input) model = tf.keras.Model(inputs=img_input, outputs=o...
25.375
61
0.706897
13dd37da35e095c266051941bc13579b3d5678b9
663
py
Python
python/data_sci/path.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sci/path.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sci/path.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
i = 0 def find_path(x0,y0,x1,y1): #TODO if x0 == x1 and y0 == y1: print("Found path ... ") if x0 < x1 and y0 < y1 and array[x0][y0] == 1: find_path(x0,y0+1,x1,y1) find_path(x0,y0-1,x1,y1) find_path(x0-1,y0,x1,y1) find_path(x0+1,y0,x1,y1) find_path(x0+1,y0+1,x...
20.71875
50
0.466063
13de7fe4dd7333af3a93d7773f72f4db70918386
3,709
py
Python
Utils/py/lineDetection/ransac.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/ransac.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/ransac.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import numpy as np from numpy import linalg as LA import math import random class Result: def __init__(self): self.sampleA = None self.sampleB = None self.inlier = [] self.outlier = [] self.x_range = None self.y_range = None self.error = 0 # create line...
27.887218
115
0.498517
6a0d070395123bc0eb0f7c653cc986f5e291bb45
13,554
py
Python
Liquid-job-NeuMF/official/utils/testing/reference_data.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-job-NeuMF/official/utils/testing/reference_data.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-job-NeuMF/official/utils/testing/reference_data.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow 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...
40.219585
110
0.681201
6a30c1194d1c8b59e482817da46e7b203d6590d2
109
py
Python
src/tango_sdp_subarray/SDPSubarray/__main__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/tango_sdp_subarray/SDPSubarray/__main__.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/tango_sdp_subarray/SDPSubarray/__main__.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
# coding: utf-8 """SDP Subarray main.""" from SDPSubarray import main if __name__ == '__main__': main()
15.571429
28
0.66055
16172e4db43a4c49b443bb2686f3d1044da201e2
3,399
py
Python
wavonomics/local_settings.py
nt-1/wavonomics
4f41fa1fd89b5579856dfc18cc05cc006d5b1915
[ "MIT" ]
null
null
null
wavonomics/local_settings.py
nt-1/wavonomics
4f41fa1fd89b5579856dfc18cc05cc006d5b1915
[ "MIT" ]
10
2020-03-24T15:37:23.000Z
2022-03-11T23:17:32.000Z
wavonomics/local_settings.py
nt-1/wavonomics
4f41fa1fd89b5579856dfc18cc05cc006d5b1915
[ "MIT" ]
null
null
null
import os # This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. DEBUG = False # Make these unique, and don't share it with anybody. SECRET_KEY = "z19egbpfu0n=8n#8agv@x)6nfatgh)t4m6wb(!22n4bn34j%6x" NEVERCACHE_KEY = "3kvz#f*b%mtk&_=k^ot2&3dt^-reb)$jm7q@2ze4i2i53...
33.99
76
0.614593
162ed734f6c21f12f7caac8d44552400c82f03fa
2,253
py
Python
src/test/tests/rendering/text3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/text3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/rendering/text3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: text3d.py # # Tests: mesh - 2D curvilinear, single domain # plots - Pseudocolor # annotations - Text2D # # Defect ID: None # # Programmer: Kathleen Biagas ...
21.873786
78
0.6498
163ef2dfbd242774374a51d8e4c1351826891133
367
py
Python
bds_setup/migrations/0002_auto_20180714_2248.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/migrations/0002_auto_20180714_2248.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/migrations/0002_auto_20180714_2248.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-07-14 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bds_setup', '0001_initial'), ] operations = [ migrations.AlterField( model_name='station', name='floor', ...
19.315789
47
0.580381
bc5de4f88d5507f7a8aefad4e62c6524a8830ff1
541
py
Python
presentations/software-engineering-basics/src/sieve-v2.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
presentations/software-engineering-basics/src/sieve-v2.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
presentations/software-engineering-basics/src/sieve-v2.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
from math import ceil def round_up(n, prime): return int(ceil(float(n) / prime)) def get_primes_below_n(n=1000000): is_prime_table = [True] * n is_prime_table[0] = False is_prime_table[1] = False prime_list = [] for current_number in range(2, n): if not is_prime_table[current_number...
25.761905
66
0.667283
4c26a39f2fe509ce4d1340f83985efe664c3b0bd
1,482
py
Python
restraunt/django_project/libs/decorators.py
rakesh-gopal/restraunt_dashboard
8eba72dabd9de27500b184b18e02b43dfdc7da89
[ "MIT" ]
null
null
null
restraunt/django_project/libs/decorators.py
rakesh-gopal/restraunt_dashboard
8eba72dabd9de27500b184b18e02b43dfdc7da89
[ "MIT" ]
null
null
null
restraunt/django_project/libs/decorators.py
rakesh-gopal/restraunt_dashboard
8eba72dabd9de27500b184b18e02b43dfdc7da89
[ "MIT" ]
null
null
null
from django.http import HttpResponse import json from django.core.mail import mail_admins from django.utils.translation import ugettext as _ import sys def json_view(func): def wrap(request, *a, **kw): response = None try: response = func(request, *a, **kw) assert isinstanc...
32.933333
70
0.537787
4c4054832bd11badcd47779870e2f254f3b3af2f
4,983
py
Python
scripts/minimax_against_human.py
lschmidt2507/Facharbeit2022
a40cb76302d2e569f7714e3bf9472206a3eaa253
[ "CC0-1.0" ]
null
null
null
scripts/minimax_against_human.py
lschmidt2507/Facharbeit2022
a40cb76302d2e569f7714e3bf9472206a3eaa253
[ "CC0-1.0" ]
null
null
null
scripts/minimax_against_human.py
lschmidt2507/Facharbeit2022
a40cb76302d2e569f7714e3bf9472206a3eaa253
[ "CC0-1.0" ]
null
null
null
import threading from game_handler import printGame,generateTilesInfo,countPoints,readBoard,makeMove,undoMove,possibleMoves startdepth=1 bedenkzeit=10 assist=False global delayRunning # funtion for stopping computation after a certain delay(is called using threading.timer) def stopComputation(): globa...
34.130137
121
0.592214
fc820379abc4dd3aaa39cb8126cfe8f07c560732
503
py
Python
src/shl-deep-learning-prototyping-architectures/conv_lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
1
2021-04-13T20:16:36.000Z
2021-04-13T20:16:36.000Z
src/shl-deep-learning-prototyping-architectures/conv_lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
src/shl-deep-learning-prototyping-architectures/conv_lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
from tensorflow import keras from tensorflow.keras import layers def make_conv_lstm(input_shape, output_classes): """ Convolutional LSTM Model. """ model = keras.Sequential() # Convolutional encoder (non-shallow features) model.add(layers.Conv1D(64, kernel_size=3, activation='relu', input_shap...
29.588235
91
0.719682
5388f58b293956a08c887d003849f3cdd9b889ac
28,611
py
Python
python/oneflow/nn/modules/conv.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/conv.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/conv.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" 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...
41.585756
124
0.556709
53cb4297d204cc3b6bc7e248d196916bf4aef241
2,843
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/route/vehicle2flow.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/vehicle2flow.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/vehicle2flow.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2013-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
38.418919
101
0.612733
4adf0b1a2d096c8f248d4c5757c5a8a5ead59be0
785
py
Python
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-03-None_value.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-03-None_value.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-03-None_value.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# Ch03-Functions-03-None_value.py # # https://automatetheboringstuff.com/chapter3/ # Functions: Lesson 9 - def Statements, arguments, and the None value # # Summary # None represents the absence of a value like nullor undefined in other # programming languages. It must start with a capital N like the Boolean ...
34.130435
80
0.724841
ab053cebe15a26dbbae5f7665059abd16376b70e
1,768
py
Python
scratch/parser_Grammar_as_ebnf.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
scratch/parser_Grammar_as_ebnf.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
scratch/parser_Grammar_as_ebnf.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
def as_ebnf(self) -> str: """ EXPERIMENTAL. Does not yet support serialization of DHParser- directives. Serializes the Grammar object as a grammar-description in the Extended Backus-Naur-Form. """ ebnf = [] # gather error, skip, resume and drop information resume_rules = self.resume_ru...
37.617021
85
0.608597
ab56ae969df41d6171f3f3dbf4d11fdfc182700b
15,022
py
Python
hisim/components/simple_bucket_boiler.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/simple_bucket_boiler.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/simple_bucket_boiler.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
# Generic/Built-in import numpy as np import copy import matplotlib import seaborn from math import pi # Owned import hisim.component as cp from hisim import loadtypes as lt from hisim.simulationparameters import SimulationParameters from hisim.components.occupancy import Occupancy seaborn.set(style='ticks') font = {...
42.92
153
0.563107
dbc418a0ac18e2b9536e18351b711943d6419063
3,722
py
Python
pbd2lodas_stb.py
MaliziaGrimm/pbd2lodas_stb
55d53de401e7d1c91c05803470256f0c112d6993
[ "MIT" ]
null
null
null
pbd2lodas_stb.py
MaliziaGrimm/pbd2lodas_stb
55d53de401e7d1c91c05803470256f0c112d6993
[ "MIT" ]
null
null
null
pbd2lodas_stb.py
MaliziaGrimm/pbd2lodas_stb
55d53de401e7d1c91c05803470256f0c112d6993
[ "MIT" ]
null
null
null
from flask import Flask from flask import request import os, webbrowser from flask import render_template from shutil import copyfile from fpdf import FPDF app = Flask(__name__) #@app.route('/') #def homepage(): # return render_template('index.html') # Block ok ! @app.route('/') @app.route('/inde...
48.337662
121
0.556153
91ed1da527be3474dc06d7bfa73d99710261acc3
3,889
py
Python
test262/utils.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
null
null
null
test262/utils.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
null
null
null
test262/utils.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
2
2021-09-13T11:32:30.000Z
2021-09-13T12:12:06.000Z
# coding: utf-8 #!/usr/bin/python3 """ Copyright (c) 2021 Huawei Device 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 ...
24.613924
79
0.623811
531205ce03da99b385e134b707df52cc168d2623
7,411
py
Python
src/server/db/UserMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/UserMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/UserMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
from server.bo.User import User from server.db.Mapper import Mapper class UserMapper(Mapper): def __init__(self): super().__init__() """Mapper class, that maps the user objects on relational Database. To do this, a number of methods are available, which help to search, create, mod...
30.372951
150
0.580758
72a2d3b5d150f8cb90ca1d0a470f3f480c50b6b3
749
py
Python
Fastir_Collector/filecatcher/windows8Files.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/filecatcher/windows8Files.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/filecatcher/windows8Files.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from filecatcher.fileCatcher import _FileCatcher from utils.vss import _VSS class Windows8Files(_FileCatcher): def __init__(self, params): super(Windows8Files, self).__init__(params) drive, p = os.path.splitdrive(self.syste...
29.96
69
0.70761
be761559978054567774502b176b4e3ed4571995
590
py
Python
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/238-Product-of-Array-Except-Self/ProdArrExcSelf_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' Based on sol in http://www.cnblogs.com/grandyang/p/4650187.html It's pretty awsesome in details so I have to comment them ''' class Solution: # @param {integer[]} nums # @return {integer[]} def productExceptSelf(self, nums): res = [1] * len(nums) # The key point is that res[0] should be 1...
28.095238
73
0.540678
fe56623d996aae03fb5ec4b3ec008c8276ad6679
779
py
Python
2-resources/__DATA-Structures/Code-Challenges/cc75findRotationPoint/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc75findRotationPoint/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc75findRotationPoint/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# https://repl.it/student/assignments/515914/model_solution?fromSubmissionId=1903866 # https://piazza.com/class/j63w1pdyopf7kj?cid=89 # https://youtu.be/HCa69879ZGo def find_rotation_point(words): first_word = words[0] floor_index = 0 ceiling_index = len(words) - 1 while floor_index < ceiling_index: # gue...
33.869565
84
0.713736
fe66a5e3ef95dbeb6f7693636670326f56464354
507
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/update_incharge_name_to_sales_person_in_maintenance_schedule.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/v4_0/update_incharge_name_to_sales_person_in_maintenance_schedule.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/update_incharge_name_to_sales_person_in_maintenance_schedule.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 unicode_literals import frappe def execute(): frappe.reload_doc("support", "doctype", "schedules") frappe.reload_doc("support", "doctype", "maintenance_schedule_item"...
42.25
92
0.77712
22e75926ae2d9afda3de86cbd8e8ad651f9082fd
1,942
py
Python
Packs/CommonScripts/Scripts/GetFieldsByIncidentType/GetFieldsByIncidentType.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/GetFieldsByIncidentType/GetFieldsByIncidentType.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/GetFieldsByIncidentType/GetFieldsByIncidentType.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from pprint import pformat def main(): # get incident fields res = demisto.executeCommand('demisto-api-get', {'uri': '/incidentfields'}) if is_error(res): return_error(res[0]['Contents']) fields = res[0]['Contents']['response'] ...
33.482759
102
0.679197
a3dbf2dae4ca5b948669868ebb2980c23276d1b2
420
py
Python
exercises/en/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.de assert isinstance( nlp, spacy.lang.de.German ), "The nlp object should be an instance of the German class." assert isinstance( doc, spacy.tokens.Doc ), "Did you process the text with the nlp object to create a doc?" assert...
30
75
0.654762
4352f10ce69a9ea00f3386c4026d9ff912ed4353
27,198
py
Python
pymantic/primitives.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
null
null
null
pymantic/primitives.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
null
null
null
pymantic/primitives.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
1
2021-12-27T07:42:32.000Z
2021-12-27T07:42:32.000Z
__all__ = ['Triple', 'Quad', 'q_as_t', 't_as_q', 'Literal', 'NamedNode', 'Prefix', 'BlankNode', 'Graph', 'Dataset', 'PrefixMap', 'TermMap', 'parse_curie', 'is_language', 'lang_match', 'to_curie'] import collections import datetime from operator import itemgetter import urllib import urllib.parse...
33.087591
80
0.613832