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
9f5ed449d7079bd4159cfae3c8c2addc6b53abaf
631
py
Python
cidr_spider.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
1
2021-05-24T06:16:49.000Z
2021-05-24T06:16:49.000Z
cidr_spider.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
cidr_spider.py
florenthemmi/ips-by-country
2f63ec2108ceaae97221de52654753c545733d84
[ "MIT" ]
null
null
null
import json import os import scrapy class CIDRSpider(scrapy.Spider): name = 'cidr' def start_requests(self): urls = ['http://www.subnet-calculator.com/cidr.php'] for url in urls: yield scrapy.Request(url=url, callback=self.parse) def parse(self, response): cidr_max_s...
25.24
69
0.624406
1a371007d34466e75431b9399af850acd057f015
2,479
py
Python
scripts/fabsp/python.py
swoiow/dsc
5860e6bfaa70b700e025533c406a6bc52d4ab74b
[ "MIT" ]
null
null
null
scripts/fabsp/python.py
swoiow/dsc
5860e6bfaa70b700e025533c406a6bc52d4ab74b
[ "MIT" ]
null
null
null
scripts/fabsp/python.py
swoiow/dsc
5860e6bfaa70b700e025533c406a6bc52d4ab74b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import environ from _internal_utils import exec_bash, pf, lines from fabric.api import cd, settings, sudo if not environ.get("PY2"): environ["PY2"] = "2.7.15" if not environ.get("PY3"): environ["PY3"] = "3.6.8" @exec_bash def depend_redhat(): """ ...
22.333333
130
0.614361
1a4a48fe5222188308d77815cac10833d463a615
1,003
py
Python
src/built_in_functions/help_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/help_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/help_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ --------------------------------------------------------------------------------------------- #查看函数或模块用途的详细说明 --------------------------------------------------------------------------------------------- #查看方法帮助 help('dir') help(dir) -----------------------------------...
24.463415
93
0.230309
64ca723c46927def3c32704e37b6bf6dba65b580
446
py
Python
elements/python/11/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/11/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/11/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import heapq def sort_almost_sorted(A, k): h = list(A[:k+1]) heapq.heapify(h) result = [] for a in A[k+1:]: x = heapq.heapreplace(h, a) result.append(x) while len(h) > 0: result.append(heapq.heappop(h)) return result def test(): A = [3, -1, 2, 6, 4, 5, 8] a...
14.387097
48
0.535874
03b9b210bb6206d17c518ef3ae1af393bf0f26ae
13,906
py
Python
lbry/lbry/wallet/server/db/reader.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
lbry/lbry/wallet/server/db/reader.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/lbry/wallet/server/db/reader.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
import sqlite3 import struct from typing import Tuple, List from binascii import unhexlify from decimal import Decimal from contextvars import ContextVar from torba.client.basedatabase import query from lbry.schema.url import URL, normalize_name from lbry.schema.tags import clean_tags from lbry.schema.result import O...
36.984043
105
0.612829
20b75e5b5a9e4cc3ce73027b0a6008180e0e8fc8
576
py
Python
python/reduce/implement.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/reduce/implement.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/reduce/implement.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# Rough implementation of reduce(), taken from Python official documentation: # https://docs.python.org/3/library/functools.html#functools.reduce def reduce(function, iterable, initializer=None): it = iter(iterable) if initializer is None: value = next(it) else: value = initialize...
26.181818
78
0.652778
5bea9a2296b291890931ad1cc9f50b0919d237d8
1,038
py
Python
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/core/database.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/core/database.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
{{ cookiecutter.project_slug }}/{{ cookiecutter.package_name }}/core/database.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
from typing import Any, AsyncGenerator, Dict from sqlalchemy import inspect from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.ext.declarative import as_declarative from sqlalchemy.orm import sessionmaker from {{ cookiecutter.package_name }}.core.config import settings engine = crea...
31.454545
87
0.702312
59fbd9413e9dc3b68ba4ef927dd8b6cee457fe12
3,212
py
Python
collaborative_filtering/Main.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2020-03-18T12:34:39.000Z
2020-03-18T12:34:39.000Z
collaborative_filtering/Main.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2021-06-02T01:30:56.000Z
2021-06-02T01:30:56.000Z
collaborative_filtering/Main.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
null
null
null
import heapq import pandas as pd import numpy as np from sklearn.cluster import KMeans def calculate_rating(a, b, c, b1, c1): rating = np.mean(a) user1 = calculate_consin(a, b) * (b1 - rating) user2 = calculate_consin(a, c) * (c1 - rating) rating = rating + ((user1 + user2) / (calculate_consin(a, b) ...
30.884615
116
0.609278
b6d5ffdec26487cfc35b07c41aa5379753178bdf
14,724
py
Python
Packs/CommonScripts/Scripts/PcapHTTPExtractor/PcapHTTPExtractor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/PcapHTTPExtractor/PcapHTTPExtractor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/PcapHTTPExtractor/PcapHTTPExtractor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CommonServerUserPython import * import zlib import pyshark from datetime import datetime import re import sys import traceback try: from StringIO import StringIO # for Python 2 except ImportError: from io import StringIO # for Python 3 serr = sys.stderr sys.stderr = Stri...
34.004619
119
0.640451
6d4e2b38f7e7ea5e1ef43f2dba480a089f7cb935
23,765
py
Python
Packs/CreateEDLInstance/Scripts/CreateEDLInstance/CreateEDLInstance.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CreateEDLInstance/Scripts/CreateEDLInstance/CreateEDLInstance.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/CreateEDLInstance/Scripts/CreateEDLInstance/CreateEDLInstance.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import random import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 edl_instance_name = demisto.args().get('InstanceName') edl_port_list_name = demisto.args().get('PortListName') edl_query = demisto.args().get('Query') port = demisto.args().get('Port', None) try: existing_por...
35.364583
124
0.408374
ede33c9a3f4453b6c353d959053b777e46862280
575,906
py
Python
spam-whatsappv2-main/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
spam-whatsappv2-main/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
spam-whatsappv2-main/wa.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Compile by Sanz # Youtube : FREE TUTORIAL # Github : https://github.com/Sxp-ID # Mau recode ya? Izin dulu Slur >_< sanz=((lambda _____, ______ : ______(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 34, 122, 108, 105, 98, 34, 41, 46, 100, 101, 99, 11...
95,984.333333
575,787
0.734691
b678283a71c85857640d22a3a5138a847698a06a
588
py
Python
binary-search/binary-search.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
binary-search/binary-search.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
binary-search/binary-search.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def search(self, nums: List[int], target: int) -> int: start=0 end = len(nums)-1 # always cursor is less than the end if nums[-1]==target: return end while(start!=end): cur=int((start+end)/2) if nums[cur]==...
25.565217
58
0.404762
1e37fa716d3e4d7c0162822084569a270f1514be
1,469
py
Python
nettests/server/utils.py
Laighno/evt
90b94e831aebb62c6ad19ce59c9089e9f51cfd77
[ "MIT" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
nettests/server/utils.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
nettests/server/utils.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
from twisted.internet import reactor from twisted.internet.defer import Deferred, succeed from twisted.internet.protocol import Protocol from twisted.web.client import Agent, readBody from twisted.web.iweb import IBodyProducer class StringProducer(object): def __init__(self, body): self.body = bytes(body,...
26.232143
63
0.668482
1e83fb35684b344b0168410c4a6b175ac8ba1ca2
1,561
py
Python
Python-Encrypter-main/encryptor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Python-Encrypter-main/encryptor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Python-Encrypter-main/encryptor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Note, this script is not fully coded by me # I just fixed it def Encryption(message): try: key = 25 encrypted_var="" if len(message) > 20: return "Message have to be smaller then 15 letters" else: for i in message: if(ord(i))>=65 ...
36.302326
83
0.455477
94abccbf0d98fcaa33a4161a04b73aa7f8e4cd23
40
py
Python
Contests/Quine.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/Quine.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/Quine.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
a = 'a = %r\nprint(a %% a)' print(a % a)
20
27
0.45
154fffbdc88a2624083055b65084e10e96da34d8
1,520
py
Python
src/game.py
king2b3/wordle-ai
9c880407621e14a08a263636525e8d593c0c6560
[ "MIT" ]
null
null
null
src/game.py
king2b3/wordle-ai
9c880407621e14a08a263636525e8d593c0c6560
[ "MIT" ]
null
null
null
src/game.py
king2b3/wordle-ai
9c880407621e14a08a263636525e8d593c0c6560
[ "MIT" ]
null
null
null
import random, pickle as pkl from collections import defaultdict wordList = pkl.load( open( "words.p", "rb" ) ) bcolors = { 'GREEN': '\033[92m', 'YELLOW': '\033[93m', 'ENDC': '\033[0m', } def def_value(): return 0 class Game(): def __init__(self): self.word = random.choice(wordList) self.le...
21.408451
68
0.603947
bf115cf3ff91ff5f1a9391ddd2c49aec0a7b717d
3,316
py
Python
tools/legacy/pac-man/gui/windows/mainWindow/logic.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/pac-man/gui/windows/mainWindow/logic.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/pac-man/gui/windows/mainWindow/logic.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sspm import sys import os import subprocess import tkinter as tk from functools import partial from threading import Thread def toggleControlsBasedOnState(model, controls, commands): currentState = model.currentState.get() if currentState == "installing": controls.chkShowMoreOptions.pack_forget...
37.681818
98
0.657117
17918ca54720b897935e68670ccf067857be7abb
21,553
py
Python
20-hs-redez-sem/groups/02-unionDir/filesystem-redez-client/browser/executions.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/executions.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/executions.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import shutil, os, datetime from browser import help_functions, create from utils import color import subprocess class Executions: def __init__(self, unionpath): self.unionpath = unionpath ''' Command reg ''' def register_to_server(self, IP, name): self.unionpath.connected = self....
43.453629
152
0.523779
bd9f24d64ebe0252f1f4206b828226e0fbe5b36f
2,118
py
Python
Enigmagroup/Reversing/Solucion Retos/solucion_app2.tincopasan.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
43
2018-01-19T03:20:49.000Z
2022-01-03T15:30:43.000Z
Enigmagroup/Reversing/Solucion Retos/solucion_app2.tincopasan.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
1
2018-05-28T13:34:49.000Z
2018-05-28T13:34:49.000Z
Enigmagroup/Reversing/Solucion Retos/solucion_app2.tincopasan.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
18
2018-05-04T23:03:27.000Z
2021-03-08T20:29:45.000Z
#-*- coding:utf -8 -*- import win32gui,win32con import time def click(identificador): #para simular el click del mouse win32gui.SendMessage(identificador, win32con.WM_LBUTTONDOWN, 0, 0) #señal de presionar el b...
75.642857
156
0.60576
da2b91d06512b07461ee756eddb29c02ec0d7f53
2,804
py
Python
plugins/tff_backend/migrations/_002_intercom_tags.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/migrations/_002_intercom_tags.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/migrations/_002_intercom_tags.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...
37.891892
113
0.75321
f9067e62325a06ce440c139328ae2eb9ed5062c5
1,359
py
Python
reverse_factorial/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
reverse_factorial/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
reverse_factorial/test.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
import os, sys, inspect from app import * from nose.tools import assert_equal from nose.tools import assert_not_equal class TestApp(object): @classmethod def setup_class(klass): """This method is run once for each class before any tests are run""" @classmethod def teardown_class(klass): ...
23.842105
78
0.642384
daeae9359429f0314ad72ad72bd3b98e29f695f1
11,675
py
Python
src/diagrams/icons/VRT_light_png.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/VRT_light_png.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/VRT_light_png.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _ICONS class _Vrt_Light_LightPng(_ICONS): _type = "VRT_Light_LightPng" _icon_dir = "../resources/icons/VRT_Icons/VRT_LightPng/VRT_light_LightPng" class DLaserScanner1LightPng(_Vrt_Light_LightPng): _icon = "2dlaserscanner1...
23.164683
78
0.800171
97510e0d3f8e244e04f8cb06871aad116b5b9545
4,460
py
Python
src/onegov/swissvotes/external_resources/posters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/external_resources/posters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/external_resources/posters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.swissvotes import log from onegov.swissvotes.models import SwissVote from requests import get from xml.etree import ElementTree class Posters(): def __init__(self): self.yea_attribute = None self.nay_attribute = None self.yea_img_attribute = None self.nay_img_attribute...
32.794118
76
0.5787
8afbaf3d350e2a977acbe2ab75e060c2282b0135
696
py
Python
python/en/_packages/scipy/scipy-scipy.signal.lfilter-my_preemphasis_filter.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/scipy/scipy-scipy.signal.lfilter-my_preemphasis_filter.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_packages/scipy/scipy-scipy.signal.lfilter-my_preemphasis_filter.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
""" scipy-scipy.signal.lfilter-my_preemphasis_filter.py This is an example code for scipy.signal.lfilter https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.lfilter.html This is an example to create a preemphasis filter y[n]=x[n]-0.97x[n-1] """ from scipy import signal import numpy as np import matplo...
18.810811
78
0.676724
e7d50ba47a5ac24a6d51e79a6e7bf7ba07cfff81
1,917
py
Python
Packs/ServiceNow/Integrations/ServiceNowv2/test_data/created_ticket_context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ServiceNow/Integrations/ServiceNowv2/test_data/created_ticket_context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ServiceNow/Integrations/ServiceNowv2/test_data/created_ticket_context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
CREATED_TICKET_CONTEXT_CREATE_CO_FROM_TEMPLATE_COMMAND = { 'ID': {'display_value': '11ab5ccfdb784d505da401a3ca96190a', 'value': '11ab5ccfdb784d505da401a3ca96190a'}, 'Summary': {'display_value': 'Add network switch to cabinet', 'value': 'Add network switch to cabinet'}, 'Number': {'display_value': 'CHG003188...
73.730769
127
0.661972
e7da43d3ce2818ec6e7c01959f4d30052b82d368
264
py
Python
172-factorial-trailing-zeroes/172-factorial-trailing-zeroes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
172-factorial-trailing-zeroes/172-factorial-trailing-zeroes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
172-factorial-trailing-zeroes/172-factorial-trailing-zeroes.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def trailingZeroes(self, n: int) -> int: dp = [0,0,0,0,0] for num in range(5, n+1): if num%5==0: dp.append(num//5 + dp[num//5]) else: dp.append(dp[-1]) return dp[n]
29.333333
46
0.42803
41c9e110ce6bf4c03e88c592eaef97d1b389ad90
4,568
py
Python
apps/register/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/register/views.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/register/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
""" License MIT License Copyright (c) 2017 OpenAdaptronik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
30.453333
81
0.711252
d41b4d70890cb657bc8eecf95b0c2ad85e7c4564
122
py
Python
examples/relationship/onetoonefield/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/onetoonefield/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/onetoonefield/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.multi_create, name='index_view'), ]
15.25
52
0.696721
d468f345bd7434de56df5956208c73bcbcac60fe
4,301
py
Python
build.py
Krzem5/C-Boot_Program
cbc457c34fdbb914b666f9d8019afa1f56a39cc6
[ "BSD-3-Clause" ]
null
null
null
build.py
Krzem5/C-Boot_Program
cbc457c34fdbb914b666f9d8019afa1f56a39cc6
[ "BSD-3-Clause" ]
null
null
null
build.py
Krzem5/C-Boot_Program
cbc457c34fdbb914b666f9d8019afa1f56a39cc6
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import os __file__=os.path.abspath(__file__).replace("\\","/") DEFINES={"__FILE_BASE_DIR__":"\""+__file__[:-len(__file__.split("/")[-1])-1].rstrip("/")+"\""} DEFAULT_ARGS=[] if (os.path.exists("build")): dl=[] for r,ndl,fl in os.walk("build"): r=r.replace("\\","/").strip("/")+"/" ...
59.736111
1,239
0.574983
2e3f47cc29d37e04c6277db3393c2244a33191c1
754
py
Python
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 #Logic: Calculate the reverse of the number #Then calculate the absolute difference between original number and its reverse #If the difference is divisible by 'k', increment the counter def reverse(x): n = 0 while(x!=0): n = x%10 + n*10 x = x//10 return n def beautifulDays...
26
79
0.529178
2e56e4dbfe55695adaa081b266b1c4d5d2cc3118
8,869
py
Python
python/tutlibs/registration.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tutlibs/registration.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tutlibs/registration.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import numpy as np from .transformation import TransformationMatrix as tm from .operator import square_distance from .nns import k_nearest_neighbors def brute_force_matching(coords1:np.ndarray, coords2:np.ndarray) -> np.ndarray: """Brute force matching Args: coords1: point cloud feature (N, C) ...
38.228448
126
0.625775
cf0f65f6cbd23fcd9221b5f94da143102f5f6bf4
892
py
Python
leetcode/234-Palindrome-Linked-List/PalLinkedList_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/234-Palindrome-Linked-List/PalLinkedList_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/234-Palindrome-Linked-List/PalLinkedList_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' based on solution 2 of the link: http://www.cnblogs.com/grandyang/p/4635425.html ''' # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode} head # @return {boolean} def isPalindrome(se...
23.473684
82
0.522422
cf26c6269e1680bd97134bd98d2b2ff7d98471c6
162
py
Python
bolt/data/__init__.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/data/__init__.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/data/__init__.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.data.config_defaults import config_defaults from bolt.data.config_schema import config_schema __all__ = [ "config_defaults", "config_schema" ]
20.25
53
0.783951
2b0826d21142856d9aa6ea53dc5e25df1f252557
349
py
Python
Online-Judges/DimikOJ/Python/29-symbol-identity.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/29-symbol-identity.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/29-symbol-identity.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
number = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] for _ in range(int(input())): ch = input() if ch >= "a" and ch <= "z": print("Lowercase Character") elif ch >= "A" and ch <= "Z": print("Uppercase Character") elif ch in number: print("Numerical Digit") else: ...
26.846154
59
0.487106
2b35f3375fd983a53d66236bdcb19a7b9b4c6fb8
446
py
Python
src/gvz/migrations/0005_alter_administrativedivision_division_category.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/migrations/0005_alter_administrativedivision_division_category.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/migrations/0005_alter_administrativedivision_division_category.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-24 20:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gvz', '0004_alter_administrativedivision_division_category'), ] operations = [ migrations.AlterField( model_name='administrativedi...
23.473684
71
0.647982
519e686cc8d9863ed63efcabb7b4dac22a606a80
14,845
py
Python
Models/trainingTemplateTF/train_model.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
null
null
null
Models/trainingTemplateTF/train_model.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
null
null
null
Models/trainingTemplateTF/train_model.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
1
2020-01-07T17:57:57.000Z
2020-01-07T17:57:57.000Z
# Copyright (c) 2019 Foundry. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
52.087719
148
0.637454
7a6d38d9fab22cd9207b5c9349f1c4c3a4ee1c84
1,280
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_gradients.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_gradients.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_gradients.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 1 13:30:15 2019 @author: jone """ import cv2 from matplotlib import pyplot as plt img_origin = cv2.imread('img/sudoku.png') img = cv2.cvtColor(img_origin, cv2.COLOR_RGB2BGR) canny = cv2.Canny(img, 30, 70) laplacian = cv2.Laplacian(img, cv2.CV_8U) sobelx = cv2.Sobel(im...
23.272727
71
0.655469
8f32795317113583e0fd76a3c6576ff3785a3017
2,113
py
Python
util/ap/py/HouseRobber1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
util/ap/py/HouseRobber1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
util/ap/py/HouseRobber1.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' You can run it directly to see results. ''' def rob(nums): # Output (res): # For i > 1, res[i] stors the maximal value # you can rob from the first (i - 1) houses. # For example, res[2] is the maximal value # you can get from the 1st house (the only # one) # # The f...
22.72043
87
0.47894
8f6b205f245e216ac01268979af94ffc1a762ca3
517
py
Python
___Python/Angela/PyKurs/p02_datenstrukturen/m04_worterbuch_invertieren.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p02_datenstrukturen/m04_worterbuch_invertieren.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p02_datenstrukturen/m04_worterbuch_invertieren.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
d = {"Tisch": "table", "Stuhl": "chair", "Schreibtisch": "desk"} # Ziel: Weiteres Woerterbuch aufbauen, das als Schluessel englische Begriffe enthaelt # print(d.items()) # 1. Ansatz l = [] for tupel in d.items(): l.append((tupel[1], tupel[0])) print(l) e = dict(l) print(e["chair"]) # 2...
19.148148
86
0.576402
56d1e663de8c917966b02d336cdeda0ef1293e42
291
py
Python
basics/numbers_datatypes.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/numbers_datatypes.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/numbers_datatypes.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
cucumbers = 2 price_per_cucumber = 3.25 total_cost = cucumbers * price_per_cucumber cucumbers = 100 num_people = 6 whole_cucumbers_per_person = cucumbers / num_people print whole_cucumbers_per_person float_cucumbers_per_person = cucumbers*1.0 / num_people print float_cucumbers_per_person
24.25
55
0.841924
8544b63ea410e40a077efd69c0b2a12d025e235d
21,751
py
Python
essensplan/routes.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
essensplan/routes.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
essensplan/routes.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
from flask import request, render_template, make_response, url_for, redirect, render_template_string, flash from flask import current_app as app from datetime import datetime as dt from .models import db, User, Dish, Ingredient, Tag, Days from flask_user import login_required, current_user @app.route("/users", methods...
40.05709
459
0.599007
742ee4f9f8526d0707131229c970729709a307de
50
py
Python
src/application/__init__.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/application/__init__.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/application/__init__.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
# Package containing all application specific code
50
50
0.86
745dbe48dd7e4dfbfb9642db54ae92325a75a570
2,369
py
Python
src/server/integrations/webhook.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/integrations/webhook.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/integrations/webhook.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import json import logging import requests import sys class WebhookIntegration: @classmethod def configuration_schema(cls): return { "type": "object", "properties": { "url": { "type": "string", "title": "Webhook URL", ...
26.322222
94
0.566484
779c5cfe513ec5861c8949505bbef7636ca956d5
4,024
py
Python
marsyas-vamp/marsyas/src/marsyas_python/phone.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/phone.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/phone.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Now, to step three of our tutorial! # By this point, you should have passed through helloworld.py and windowing.py. # This is a conclusion of the first part of the tutorial. After this, you should be able to # use MarSystems and interact with them as needed. from marsyas import * from marsyas_...
50.3
121
0.719682
bb0193e8dbc484f8e24037e0018e58637c767a61
260
py
Python
extension/visualizer/visualizer_config.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
extension/visualizer/visualizer_config.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
extension/visualizer/visualizer_config.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import os # list all include directories include_directories = [os.path.sep.join(x.split('/')) for x in ['extension/visualizer/include']] # source files source_files = [os.path.sep.join(x.split('/')) for x in ['extension/visualizer/visualizer-extension.cpp']]
43.333333
106
0.738462
704d0268164293c2efe1e139fffb7f834c044c0e
3,324
py
Python
spangle/models/websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
spangle/models/websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
spangle/models/websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
""" WebSocket connection. """ from typing import AnyStr, Optional, Union import addict from starlette.datastructures import URL, Headers, QueryParams from starlette.types import Receive, Scope, Send from starlette.websockets import WebSocket __all__ = ["Connection"] class Connection: """ WebSocket connecti...
27.245902
86
0.610409
3ba17fe60db5e94788a744fb2a4c0e8945fdc567
50
py
Python
app/schema/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from .file_schema import file_schema, files_schema
50
50
0.88
8e53ec98fd79fb35d61de0483fe5fcf16fe204ed
311
py
Python
dewar/exts/_login.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/exts/_login.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/exts/_login.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask.ext.login import LoginManager, current_user from dewar.account.models import Account login_manager = LoginManager() def setup_login(app): login_manager.init_app(app) @login_manager.user_loader def load_account(account_id): return Account.query.get(account_id)
17.277778
54
0.765273
6912224f8e0426f0f458b249b71ea382469fe46f
812
py
Python
service/tests/test_main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2021-07-20T06:56:38.000Z
2021-07-20T06:56:38.000Z
service/tests/test_main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2018-01-23T22:36:49.000Z
2018-01-24T18:52:27.000Z
service/tests/test_main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
2
2018-01-23T21:25:57.000Z
2018-01-24T21:46:41.000Z
import falcon from falcon import testing import pytest from api.main import app @pytest.fixture def client(): return testing.TestClient(app) def test_get_events_no_ical_url(client): """ No ical URL given bad request """ response = client.simulate_get('/events/') assert response.status == fal...
26.193548
82
0.679803
301c1450b0890b8efc0c91a2f9e180366b582c82
260
py
Python
WD/Cwiczenia/Pierwiastek_blad.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/Pierwiastek_blad.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/Pierwiastek_blad.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
import math #Cwiczenie 2 #Zad 14 print("Liczę pierwiastek \n") liczba=input("Podaj liczbę ") liczba=int(liczba) try: pierwiastek=math.sqrt(liczba) print(str(pierwiastek)) except Exception: print("Podano nie właściwą liczbę")
16.25
40
0.669231
06b0aebb5223ec54758e71e876c61aed33c35b3a
183
py
Python
DataStructures/Trees/preorder_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
DataStructures/Trees/preorder_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
DataStructures/Trees/preorder_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import sys def preOrder(root): if root is None: return sys.stdout.write(str(root.data) + ' ') preOrder(root.left) preOrder(root.right)
18.3
42
0.63388
2304bcdf6f32e73b8378b0f13b1bb31f730e3ee4
2,598
py
Python
src/video_transcoding/models.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
21
2020-02-07T17:40:16.000Z
2021-09-02T18:56:21.000Z
src/video_transcoding/models.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
184
2020-02-09T10:46:17.000Z
2022-03-28T00:53:04.000Z
src/video_transcoding/models.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
6
2020-02-07T13:58:33.000Z
2021-07-27T16:24:56.000Z
import os from typing import Any, cast from uuid import UUID from django.core.validators import URLValidator from django.db import models from django.utils.translation import gettext_lazy as _ from model_utils.models import TimeStampedModel from video_transcoding import defaults class Video(TimeStampedModel): "...
37.114286
78
0.612009
aeada61a962fade1486f3bbeff0bf252632d3f76
2,737
py
Python
helper/convert_Pos_Neg.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
helper/convert_Pos_Neg.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
helper/convert_Pos_Neg.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Pyhton script for loading and resizing positive and negative images for the haar cascade classification @author: wimmer, simon-justus | https://pythonprogramming.net/haar-cascade-object-detection-python-opencv-tutorial/ """ print "Veraltet... bitte anderes Skript nutzen" """ import urllib import cv2 import numpy a...
33.790123
119
0.588235
ae1013a140cfe17ed4661452c9de1bfa28018a25
1,112
py
Python
movies/project/project.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
movies/project/project.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
movies/project/project.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import logging import sys import PyQt5 import ORM import UI if __name__ == "__main__": logging.basicConfig(filename="movie_project.log", level=logging.DEBUG, format='%(asctime)s,%(levelname)s,%(message)s', datefmt='...
27.121951
91
0.635791
887021819460510c0cab241b1279b534d10323f4
3,433
py
Python
StockApp.py
ucsb-cs48-w19/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
3
2019-04-06T15:37:11.000Z
2021-12-27T08:58:31.000Z
StockApp.py
webclinic017/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
22
2019-01-16T02:54:16.000Z
2019-02-27T23:12:14.000Z
StockApp.py
webclinic017/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
7
2019-01-11T00:45:50.000Z
2021-11-20T20:26:07.000Z
#! /usr/bin/python3 import os from flask import Flask, render_template, request, url_for import stocks import graph import stocklist from glob import glob import json app = Flask(__name__) # routes to home page @app.route('/') def home(): for file in glob("./templates/*-graph.html"): os.remove(file) names = [] ...
30.927928
124
0.713662
c9e7100540f6a6ceb285418c27f9af081df7a880
1,938
py
Python
03_SDN/ext/mn2.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
03_SDN/ext/mn2.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
03_SDN/ext/mn2.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import sys from mininet.net import Mininet from mininet.node import Controller, RemoteController from mininet.cli import CLI from mininet.log import setLogLevel, info """ SDN Szenario 2 @author: Robert Bauer """ def int2dpid( dpid ): dpid = hex( dpid )[ 2: ] dpid = '0' * ( 16 - len(...
26.547945
97
0.600619
4e8e4af94b25788003c30552cb54d82c8dd8deaa
1,885
py
Python
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Filter_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Filter_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Filter_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
# 高阶函数: filter() : 过滤序列 # 一个list中, 删掉偶数, 只保留奇数 def is_odd(n): return n % 2 == 1 print(list(filter(is_odd, [1, 2, 3, 4, 5, 6, 7, 3, 4233]))) # 把一个序列中的空字符删掉 def not_empty(s): return s and s.strip() print(list(filter(not_empty, ['A', '', 'B', None, 'C', ' ']))) print(' s ' and 's'.strip()) print(' s ') # ...
16.681416
117
0.488064
016162aedcd0db5edc55c775252751e0e5075d2c
611
py
Python
exercises/python/functionals/filter-valid-email.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/functionals/filter-valid-email.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/functionals/filter-valid-email.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
# Sample Input: # 4 # lara@hackerrank.com # brian-23@hackerrank.com # britts_54@hackerrank.com # abc@abc # Sample output: # ['brian-23@hackerrank.com', 'britts_54@hackerrank.com', 'lara@hackerrank.com'] import re def fun(s): pattern = r"[A-Za-z0-9\-\_]{1,}[\@][A-Za-z0-9]*\.[A-Za-z0-9]{0,3}" return bool(re.f...
19.09375
80
0.654664
6ddf25984bdf9b2ee2f0b789df727d8cec359140
758
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex03_gcd_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex03_gcd_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex03_gcd_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch03_recursion.solutions.ex03_gcd import gcd, gcd_iterative, lcm @pytest.mark.parametrize("a, b, expected", [(42, 7, 7), (42, 28, 14), (42, 14, 14)]) def test_gcd(a, b, expected): a...
28.074074
69
0.563325
0992ed20433ada2d398d7b24a4aaeb23af99e447
5,444
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/miscutils.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/miscutils.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/miscutils.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-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.eclipse.org/legal/epl-2....
31.287356
91
0.596069
feceaee6429206cadd9ee0399f101880d325bfa5
2,006
py
Python
python/system/websocketrtc.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
1
2020-09-29T17:44:31.000Z
2020-09-29T17:44:31.000Z
python/system/websocketrtc.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
python/system/websocketrtc.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
import tornado.websocket import json import datetime from system.log import log from system.webserver import Webserver from game.player import Player class WebsocketRTC(tornado.websocket.WebSocketHandler): websocket_send_data = [] websocket_clients = [] def websocket_send(client,data,binary=False...
32.885246
79
0.60668
3a56f92888c3ae1183b36d64f28535ae389b4e8b
1,271
py
Python
tag.py
huum4n/tag
c0d9c06598a391a19b741519af31a7f6d2d5133f
[ "Apache-2.0" ]
1
2021-11-09T16:21:33.000Z
2021-11-09T16:21:33.000Z
tag.py
huum4n/tag
c0d9c06598a391a19b741519af31a7f6d2d5133f
[ "Apache-2.0" ]
null
null
null
tag.py
huum4n/tag
c0d9c06598a391a19b741519af31a7f6d2d5133f
[ "Apache-2.0" ]
null
null
null
import pandas as pd from itertools import product import os import argparse import sqlite3 parser = argparse.ArgumentParser() parser.add_argument('-f', '--file', action='store', default=None, dest='file') parser.add_argument('-t', action='store', default=None, dest='tag') args = parser.parse_args() def save_path(fil...
24.442308
80
0.65775
28f766b251364831e5e7160b8740e17e0cfc58fe
995
py
Python
robot/github.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/github.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/github.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import time from selenium import webdriver def github_register(users): browser = webdriver.PhantomJS(service_args=['--ssl-protocol=any']) browser.maximize_window() for user in users: print((user['username'])) url = 'https://github.com/join?so...
29.264706
75
0.615075
e912f9a951549a5d7244950b1323f2455cacf7f3
5,218
py
Python
apps/facepong2/pongRenderer.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/facepong2/pongRenderer.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/facepong2/pongRenderer.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import pygame import pygame.gfxdraw import numpy as np import os import cv2 from apps.facepong2.pongConfig import CONFIG from enum import Enum class TextAlign(Enum): LEFT = 0 RIGHT = 1 CENTER = 2 class BlitLater: def __init__(self, canvas: pygame.Surface, to_blit: pygame.Surface, pos): self....
34.556291
115
0.591989
6e6300657482f2bd28abfae24b7a1e5af77c0cc4
677
py
Python
src/onegov/swissvotes/forms/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/forms/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/forms/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import Form from onegov.swissvotes import _ from onegov.swissvotes.fields import SwissvoteDatasetField from onegov.swissvotes.fields import SwissvoteMetadataField from wtforms.validators import DataRequired class UpdateDatasetForm(Form): callout = _("Updating the dataset may take some time.") ...
22.566667
60
0.682422
42c5c89beef2ea1ee4b666ef333213493ab68c74
289
py
Python
backend/app/crud/crud_hint_image.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/crud/crud_hint_image.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/crud/crud_hint_image.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from app.crud.base import CRUDBase from app.models.hint_image import HintImage from app.schemas.hint_image import HintImageCreate, HintImageUpdate class CrudHintImage(CRUDBase[HintImage, HintImageCreate, HintImageUpdate]): pass crud_hint_image = CrudHintImage(HintImage)
26.272727
76
0.806228
dd659d7152349d07838e948c6a358e6515d8dd4f
1,235
py
Python
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/primitive_array_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/primitive_array_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/primitive_array_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
import jpy class ArrayTest: def __init__(self): self.jpy_boolean_array_type = type(jpy.array('boolean', [])) self.jpy_char_array_type = type(jpy.array('char', [])) self.jpy_byte_array_type = type(jpy.array('byte', [])) self.jpy_short_array_type = type(jpy.array('short', [])) self.jpy_int_array_t...
33.378378
64
0.723887
06d44cedec25c31081b0e22a9f2876a257931e57
26
py
Python
Uebung1/Uebung1_Aufgabe1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung1/Uebung1_Aufgabe1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung1/Uebung1_Aufgabe1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
print("Henry und Martin")
13
25
0.730769
7c05268f16e6e99ab7772a3bbbe22c9287366a8f
3,360
py
Python
saku/account/views.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/account/views.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/account/views.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
from django.shortcuts import render from .serializers import (RegisterSerializer, ChangePasswordSerializer, ForgotPasswordSerializer) from rest_framework import generics, status from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework....
39.529412
116
0.629464
05f2c9b471b0f8daddd3fbc592958f72ef48cf75
671
py
Python
src/labtest/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/labtest/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/labtest/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2022-02-15 03:10 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Location', fields=[ ('id', mode...
25.807692
96
0.5693
5945a59fb3d4a05bbb9d0f4925152fd92b86d124
3,330
py
Python
lale/lib/lale/tee.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/lale/tee.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/lale/tee.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2021 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.979592
134
0.585886
a7192e3540115e4baaf6f5e78d41c049715faded
4,345
py
Python
RaspberryPI/GPIOCounter/gpiocounter.py
bernardladenthin/BroomCabinet
2c5bf0072e68e20dd4c2b0c216730af8c4099774
[ "Apache-2.0" ]
null
null
null
RaspberryPI/GPIOCounter/gpiocounter.py
bernardladenthin/BroomCabinet
2c5bf0072e68e20dd4c2b0c216730af8c4099774
[ "Apache-2.0" ]
2
2020-11-30T04:23:00.000Z
2021-02-09T08:18:25.000Z
RaspberryPI/GPIOCounter/gpiocounter.py
bernardladenthin/BroomCabinet
2c5bf0072e68e20dd4c2b0c216730af8c4099774
[ "Apache-2.0" ]
null
null
null
''' Copyright 2016 Bernard Ladenthin bernard.ladenthin@gmail.com 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 applicabl...
33.682171
169
0.652704
a7282b80faef771156f48ce975a5dc29aa4ae9cc
643
py
Python
BSidesTLV/2021/web/Intellimage/tests/test_prod.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BSidesTLV/2021/web/Intellimage/tests/test_prod.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BSidesTLV/2021/web/Intellimage/tests/test_prod.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import unittest import requests class TestIntellimage(unittest.TestCase): def test_view(self): with open("VEVAK.png", "rb") as f: res = requests.post( url="http://localhost.realgame.co.il:5000/view", files={ "image[]": ( ...
29.227273
72
0.404355
596926849fc4980587ead15e2308a12e7db86a22
168
py
Python
Algorithms/Strings/pangrams.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Strings/pangrams.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Strings/pangrams.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
import string s = input().strip().lower() for a in string.ascii_lowercase: if(not(a in s)): print('not pangram') break else: print('pangram')
15.272727
32
0.595238
e65009b4b4866cf19ca8cc077abf8537d757b9e3
360
py
Python
respiratory/Processed Datasets/Processed Datasets/other.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
respiratory/Processed Datasets/Processed Datasets/other.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
respiratory/Processed Datasets/Processed Datasets/other.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
Test1 = [1,2,3,4,5,6,7,8] Test = [] for i in range(0,len(Test1)): Test.append([0,0,0,0,0,0,0,0]) for j in range(0,len(Test1)): Test[i][j] += j+16/9.0 # def scalar_multiply(scalar,A): # scalar_A = matrix(A.rows) # for i in range(1,A.row_dim+1): # for j in range(1,A.col_dim+1): # scalar_A.change_element(i,j,s...
27.692308
55
0.627778
f9565e5130f66326537b593eed41b05495d5016e
2,179
py
Python
test_protocol/lfw/face_cropper/crop_agedb_by_arcface.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
test_protocol/lfw/face_cropper/crop_agedb_by_arcface.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
test_protocol/lfw/face_cropper/crop_agedb_by_arcface.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Jun Wang @date: 20201012 @contact: jun21wangustc@gmail.com """ import os import math import multiprocessing import cv2 import sys sys.path.append('/export/home/wangjun492/wj_armory/faceX-Zoo/face_sdk') from core.image_cropper.arcface_face_recognition.FaceRecImageCropper import FaceRecImageCropper from ut...
40.351852
119
0.626893
f987ac059d60acd9ec59bdfed042af7076a2a182
908
py
Python
3rdParty/V8/v5.7.492.77/tools/gyp/gyp_main.py
sita1999/arangodb
6a4f462fa209010cd064f99e63d85ce1d432c500
[ "Apache-2.0" ]
1
2019-08-11T04:06:49.000Z
2019-08-11T04:06:49.000Z
3rdParty/V8/v5.7.492.77/tools/gyp/gyp_main.py
lipper/arangodb
66ea1fd4946668192e3f0d1060f0844f324ad7b8
[ "Apache-2.0" ]
null
null
null
3rdParty/V8/v5.7.492.77/tools/gyp/gyp_main.py
lipper/arangodb
66ea1fd4946668192e3f0d1060f0844f324ad7b8
[ "Apache-2.0" ]
1
2018-12-05T04:56:16.000Z
2018-12-05T04:56:16.000Z
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import os.path # TODO(mark): sys.path manipulation is some temporary testing stuff. try: print os.path.dirname(sys.argv[0]) ...
33.62963
82
0.709251
34ebcc23bd1c3868ed0be25faa6cd5f7de1faab5
709
py
Python
CodeSignal_problems/AdjacentElementsProduct/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeSignal_problems/AdjacentElementsProduct/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeSignal_problems/AdjacentElementsProduct/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# # working # this function takes list as input # we declare a variable (Amax) to store local max of adjacent number # we run the loop from 0 to length - 1 of the array # we check if previously know max was lesser or greater than recently calculated max (multiplying the adjacent numbers) # and upd...
29.541667
123
0.675599
1f685a325f5e2b59579130031af0dfbe1dee3134
1,404
py
Python
third_party/libzip/genziperrs.py
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
1,168
2015-01-27T10:19:25.000Z
2018-10-30T15:07:11.000Z
third_party/libzip/genziperrs.py
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
2,811
2015-01-29T16:19:04.000Z
2018-11-01T19:48:06.000Z
third_party/libzip/genziperrs.py
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
165
2015-01-27T19:06:27.000Z
2018-10-30T17:31:10.000Z
# Lint as: python3 """Generate zip_err_str source from zip.h""" import io import re TEMPLATE = r"""/* This file was generated automatically by genziperrs.py from zip.h; make changes there. */ #include "zipint.h" const char * const _zip_err_str[] = {{ {zip_err_str}}}; const int _zip_nerr_str = sizeof(_zip_err_s...
24.631579
71
0.631766
1f828202393b16b6416626b277c0e3bb71e695f8
413
py
Python
21-fs-ias-lec/FrontEnd/setup.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/FrontEnd/setup.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/FrontEnd/setup.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#INSTALL ALL DEPENDENCIES WITH python setup.py install from setuptools import setup import os thelibFolder = os.path.dirname(os.path.realpath(__file__)) requirementPath = thelibFolder + '/requirements.txt' install_requires = [] if os.path.isfile(requirementPath): with open(requirementPath) as f: install_re...
31.769231
60
0.779661
85e84bfeaea39a6e16adce2600454864ea26840e
413
py
Python
src/onegov/wtfs/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.wtfs.collections.municipalities import MunicipalityCollection from onegov.wtfs.collections.notifications import NotificationCollection from onegov.wtfs.collections.payment_types import PaymentTypeCollection from onegov.wtfs.collections.scan_jobs import ScanJobCollection __all__ = ( 'MunicipalityCollec...
31.769231
73
0.83293
c84a90ebe3a1e4622c9be14928dd7f20597d0d3f
1,898
py
Python
pyScript/custom_src/RenderView.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/RenderView.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/RenderView.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QGraphicsView, QGraphicsScene from PySide2.QtGui import QPainter, QPixmap, QImage, QColor from PySide2.QtCore import QPointF, Qt import math class RenderView: # THIS SECRETELY FAKES A QGRAPHICSVIEW - USING A QGRAPHICSVIEW CAUSES RANDOM CRASHES def __init__(self, main_window, n...
35.811321
108
0.69705
c087d798987b87077876148d5ab0e7ddf6e58e79
2,533
py
Python
ScanAssets.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
ScanAssets.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
ScanAssets.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from IProcess import IProcess, EDataType from OrigPic import OrigPic import os, os.path import glob class ScanAssets(IProcess): def __init__(self, assetPath, recursiveSearch = True, colorMode = "RGB"): IProcess.__init__(self) if recursiveSearch: permissions = [os.X_OK, os.R_OK] else: permissions = [os...
31.271605
95
0.720095
f1db689879a045bceae79c0e82130f6cb824770b
513
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.13-oparation-more.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.13-oparation-more.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.13-oparation-more.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
number1 = input("Plaese enter a number: ") number2 = input("Plaese enter another number: ") number1 = int(number1) number2 = int(number2) print(number1, "+", number2, "=", number1 + number2) print(number1, "-", number2, "=", number1 - number2) print(number1, "*", number2, "=", number1 * number2) print(number1, "/", num...
42.75
54
0.645224
9e6f4d43a1f01e3e8268618698ea6eecf6d4c5e2
1,582
py
Python
LifiEnigma/mainLifiEnigma.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
LifiEnigma/mainLifiEnigma.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
LifiEnigma/mainLifiEnigma.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
import time import paho.mqtt.client as mqtt import sys #If you must add proagrams in other repertories, add the path of the repertory which contains the programm with the command below #sys.path.append('path') #Import the functions of this program #from program import * #Flag that determine if you solve the enigma l...
22.6
129
0.693426
cdd384606d209d39215ee3f6bab445681dc61c80
1,000
py
Python
Algorithms/Sort_Algorithms/Quick_Sort/QuickSort.py
hussamEL-Hwary/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
18
2016-11-01T04:00:36.000Z
2021-09-13T14:26:35.000Z
Algorithms/Sort_Algorithms/Quick_Sort/QuickSort.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
60
2016-10-11T14:50:47.000Z
2016-10-31T11:05:01.000Z
Algorithms/Sort_Algorithms/Quick_Sort/QuickSort.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
87
2016-09-08T05:04:50.000Z
2016-10-30T19:19:53.000Z
def quicksort(myList, start, end): if start < end: # partition the list pivot = partition(myList, start, end) # sort both halves quicksort(myList, start, pivot-1) quicksort(myList, pivot+1, end) return myList def partition(myList, start, end): pivot = myList[start] ...
27.027027
54
0.567
cdf5646643d24f641dc8c773f3ddd0eccdcc1632
2,168
py
Python
tools/legacy/mw2-wtb-converter/convertFullMechWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/mw2-wtb-converter/convertFullMechWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/mw2-wtb-converter/convertFullMechWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sys import json import glob import readWtb with open("mw2-mechs.json") as f: mechs = json.load(f) importPath = "./WTB/" def readFile(part, parts): objectName = part["@mw2prj"].replace(".WTB", "") importFilename = importPath + part["@mw2prj"] print "reading " + importFilename try: ...
32.358209
91
0.470018
a931ec7ea860a8db090916e7987a4a2ba74a3753
484
py
Python
Chapter5_DNN/Chapter5_2_BostonRegression/bostonLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
11
2020-10-12T14:06:31.000Z
2022-02-22T09:16:32.000Z
Chapter5_DNN/Chapter5_2_BostonRegression/bostonLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_2_BostonRegression/bostonLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
8
2020-10-29T07:53:49.000Z
2022-03-17T11:01:20.000Z
from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from tensorflow.keras.datasets import boston_housing if __name__ == "__main__": (x_train, y_train), (x_test, y_test) = boston_housing.load_data() regr = LinearRegression() regr.fit(x_train, y_train) score...
28.470588
69
0.727273
93f2c0b897d3d6fe57859cc8b2d9e8451d09ee29
94
py
Python
presentations/django/code/quotemanager/quotes/admin.py
ErikMayrhofer/presentations
a2a8786061167778d8c46ddf06799877a2552e28
[ "MIT" ]
null
null
null
presentations/django/code/quotemanager/quotes/admin.py
ErikMayrhofer/presentations
a2a8786061167778d8c46ddf06799877a2552e28
[ "MIT" ]
null
null
null
presentations/django/code/quotemanager/quotes/admin.py
ErikMayrhofer/presentations
a2a8786061167778d8c46ddf06799877a2552e28
[ "MIT" ]
null
null
null
from django.contrib import admin from quotes.models import Quote admin.site.register(Quote)
15.666667
32
0.819149
f55cf43c69ba7cb56a0edbbf4b9f076d9c462983
2,419
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/default_value_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/default_value_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/topic_schema/default_value_factor.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Any, Dict, List, Optional from watchmen_data_kernel.common import ask_ignore_default_on_raw from watchmen_model.admin import Factor, Topic from watchmen_utilities import ArrayHelper, is_blank, is_not_blank from .utils import cast_value_for_factor """ design of de...
35.057971
83
0.741629
192e5bf3a74dee41318198c6c01005376fcc55ca
184
wsgi
Python
moerderspiel.wsgi
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
16
2015-09-30T13:45:07.000Z
2022-01-31T16:45:50.000Z
moerderspiel.wsgi
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
5
2015-09-16T13:44:08.000Z
2018-02-06T11:24:59.000Z
moerderspiel.wsgi
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
4
2015-05-28T17:39:55.000Z
2022-01-29T01:27:42.000Z
import logging, sys sys.path.insert(0, '/home/da/public_html/moerder-dev') sys.stdout = sys.stderr logging.basicConfig(stream=sys.stderr) from moerderspiel import app as application
23
54
0.793478
1972cc15b489458f18cd6cb11034f5e5e8f2001b
208
py
Python
2053-kth-distinct-string-in-an-array/2053-kth-distinct-string-in-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2053-kth-distinct-string-in-an-array/2053-kth-distinct-string-in-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2053-kth-distinct-string-in-an-array/2053-kth-distinct-string-in-an-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def kthDistinct(self, arr: List[str], k: int) -> str: output = [c for c in arr if arr.count(c)==1] try: return output[k-1] except: return ""
29.714286
57
0.504808
271095e0aa09edcc5dfcae8c6334a3d4eb58314f
589
py
Python
py-basics/src/lectures/lists/anagrams.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/lists/anagrams.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/lists/anagrams.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
# 5kyu | Where my anagrams at? # https://www.codewars.com/kata/523a86aa4230ebb5420001e1/python def anagrams(word, words): word = ''.join(sorted(word)) filtered_words = [] for w in words: if word == ''.join(sorted(w)): filtered_words.append(w) return filtered_words # Tests print(a...
32.722222
97
0.556876
fdac6caa6a5a4a0467a8f8d3a3ee9f2760d870c7
1,699
py
Python
3_DeepLearning-CNNs/04_CNN_Optimization/7-KerasTuner_Hyperparameteroptimierung/kerasTuner_mnist.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/04_CNN_Optimization/7-KerasTuner_Hyperparameteroptimierung/kerasTuner_mnist.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/04_CNN_Optimization/7-KerasTuner_Hyperparameteroptimierung/kerasTuner_mnist.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
# pip3 install keras-tuner # https://analyticsindiamag.com/how-to-use-keras-tuner-for-hyper-parameter-tuning-of-deep-learning-models/ import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import * from tensorflow.keras.optimizers import * from kerastuner.tuners import Ran...
54.806452
202
0.774573
fdce0deaa3b7fe34b9f28acdda9faa2275045594
1,408
py
Python
workSpace/test/mqtt.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:15.000Z
2021-02-07T13:59:42.000Z
workSpace/test/mqtt.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
null
null
null
workSpace/test/mqtt.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:03.000Z
2021-10-01T07:06:16.000Z
from lib.umqtt.robust import MQTTClient from time import sleep_ms from machine import unique_id from ubinascii import hexlify from gc import mem_free client_id = hexlify(unique_id()) mqtt_server = "enterYourMqttServerHere.de" client = MQTTClient(client_id, mqtt_server, 0) def connect(): client.connect() def d...
27.076923
84
0.651278
e36021def1465a0d1cb8cc0ca70788f7a9a92a91
230
py
Python
Gmail-Bruteforce/Core/iControl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Gmail-Bruteforce/Core/iControl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Gmail-Bruteforce/Core/iControl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
def CheckTheInternet(url='https://www.google.com/', timeout=3): import requests try: r = requests.head(url, timeout=timeout) return True except requests.ConnectionError as ex: return False
32.857143
64
0.643478
9a52bbe95a6148cb7d09a70e1f2cf89cb83959ba
1,174
py
Python
research/cv/tsn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/tsn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/tsn/src/config.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...
26.088889
78
0.626065
d021d9e1e0bf2df11e2f5fdf92a083b9adbc7331
3,626
py
Python
bolt/core/loader.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/core/loader.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/core/loader.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
""" Description: Singleton responsible for loading plugins into the botself. Plugins can currently be loaded from: - Single .py files - Folder / module - Zip files Contributors: - Patrick Hennessy """ from bolt.core.plugin import Plugin from bolt.cor...
34.865385
120
0.622725
4bdc577ae9a1080c796d96f8856760ac9bfa3217
1,572
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex06_math_operations_v1.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex06_math_operations_v1.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex06_math_operations_v1.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def all_combinations_with_value(base_values, desired_value): all_combinations = find_all_combinations(base_values) return find_by_value(all_combinations, desired_value) def find_by_value(all_combinations, desired_value):...
27.103448
72
0.645038
3242654c59bdc1f39792476bf396e87f8e45ee63
24
py
Python
examples/basic/example/__init__.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
examples/basic/example/__init__.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
examples/basic/example/__init__.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
from . import A, B, C, D
24
24
0.583333