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
b388a9f2c466a0d7c378414e1c7046221340a4b6
5,159
py
Python
huTools/NetStringIO.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/NetStringIO.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/NetStringIO.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python """Module for Communication via NetStrings. This module holds a single class named NetStringIO which wraps about a file handle and uses NetStrings vor all Communication via this filehandle. For more information in netstrings see http://cr.yp.to/proto/netstrings.txt Authors: This Software was wri...
30.347059
77
0.637139
b39ab3bc82cdd0d767839f2ada7d68b81b9a1d12
1,299
py
Python
src/lcdoc/mkdocs/lp/plugs/markmap/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/lp/plugs/markmap/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/lp/plugs/markmap/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
# page_assets = { # 'header': { # 'script': [ # 'https://unpkg.com/d3@6.7.0/dist/d3.min.js', # 'https://unpkg.com/markmap-lib@0.11.5/dist/browser/index.min.js', # 'https://unpkg.com/markmap-view@0.2.6/dist/index.min.js', # ] # } # } page_assets = { 'mode'...
23.618182
79
0.529638
373842602a771d8b82962561058088818d38691c
33,400
py
Python
Packs/PolySwarm/Integrations/PolySwarmV2/PolySwarmV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PolySwarm/Integrations/PolySwarmV2/PolySwarmV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PolySwarm/Integrations/PolySwarmV2/PolySwarmV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from PolySwarmV2 import PolyswarmConnector TEST_SCAN_UUID = '95039375646493045' TEST_SCAN_DOMAIN = ['domain-test.com'] TEST_SCAN_IP = ['0.0.0.0'] TEST_SCAN_URL = ['https://url-test.com'] TEST_HASH_FILE = '939adb211c3bcf76b84b2417e1d39248994e21d48a3d7eddca87bb76d6c31cc3' TEST_ENTRY_ID = ...
32.553606
162
0.483593
808c6bef1e525fbcbf3e62b962f063b24ad815a9
651
py
Python
scripts/closest_obstacle.py
pftros/rps_tf2_tutorial
c884365448dde60e7a205d645656f7fc201eb8f7
[ "Apache-2.0" ]
null
null
null
scripts/closest_obstacle.py
pftros/rps_tf2_tutorial
c884365448dde60e7a205d645656f7fc201eb8f7
[ "Apache-2.0" ]
1
2020-12-14T00:24:34.000Z
2020-12-14T00:24:34.000Z
scripts/closest_obstacle.py
pftros/rps_tf2_tutorial
c884365448dde60e7a205d645656f7fc201eb8f7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy from sensor_msgs.msg import LaserScan class ObstacleBroadcaster: """ Detects closest obstacle in Laser Scan and broadcasts it to TF """ def __init__(self): self.sub = rospy.Subscriber('scan', LaserScan, self.scan_callback) def sca...
24.111111
74
0.639017
20a9f25f5f8ebadf7b83cdd6aa91df8a6cc2e891
9,682
py
Python
tests/onegov/directory/test_migration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/directory/test_migration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/directory/test_migration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import textwrap from tempfile import NamedTemporaryFile import pytest from onegov.core.utils import Bunch from onegov.directory import DirectoryCollection, DirectoryConfiguration from onegov.directory.migration import StructuralChanges from onegov.form.errors import DuplicateLabelError from tests.shared.utils import ...
25.279373
79
0.571679
45b3b62c0baaab9b5ae0421c75ebe16a3646a0b1
9,037
py
Python
src/onegov/agency/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/cli.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import click import transaction from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.data_import import import_bs_data, import_membership_titles from onegov.agency.excel_export import export_person_xlsx from onegov.agency.models import ExtendedAgencyMembership, ExtendedPerson from onegov.c...
35.861111
79
0.614695
ff5a8d6992f782755b6da200618044f7b7988248
1,864
py
Python
src/graph4.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph4.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/graph4.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
import numpy as np import math num_samples = 10000 #10,000 x = np.random.uniform(0, 1, num_samples) y = np.empty_like(x) def Init(): p, q = 1, 2 for i in range(num_samples): y[i] = p * x[i] * x[i] + q * x[i] class Tensor: def __init__(self, val): self.val = val def forward(self): ...
23.897436
51
0.548283
ffa6ca88a6ad05da46f56230c5675ffcd2535174
6,298
py
Python
tensorflow/basic-rl/tutorial14/code/train_ddpg.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial14/code/train_ddpg.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial14/code/train_ddpg.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
from baselines.common.misc_util import ( set_global_seeds, boolean_flag, ) import baselines.ddpg.training as training from baselines.ddpg.models import Actor, Critic from baselines.ddpg.memory import Memory from baselines.ddpg.noise import * from baselines import logger, bench import gym import tensorflow as tf...
42.554054
134
0.697047
448970f459035716fb1bf583aa784fc4aa3c791e
3,302
py
Python
passwordguesser.py
Coding-Scripts-and-Stuff/PassowrdChecker
3742370e60a1ed47f6236f325e66ea6723a73ad2
[ "Apache-2.0" ]
null
null
null
passwordguesser.py
Coding-Scripts-and-Stuff/PassowrdChecker
3742370e60a1ed47f6236f325e66ea6723a73ad2
[ "Apache-2.0" ]
null
null
null
passwordguesser.py
Coding-Scripts-and-Stuff/PassowrdChecker
3742370e60a1ed47f6236f325e66ea6723a73ad2
[ "Apache-2.0" ]
null
null
null
#is your password secure?? #from nordpass 200 most popular passwords #imports import time #waring print("WARNING, just because your password may not in this list does not mean it is secure/good") #wait 2 secs time.sleep(2) #gets password password = input('enter passsword: ') #password list passowords = ['1...
165.1
2,754
0.649606
472a47650d9da1ac4674f0324000b18652bf2388
111
py
Python
python/coursera_python/WESLEYAN/week4/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem4_3(product, cost): print("{0:<25}${1:>6.2f}".format(product,cost)) #problem4_3("toothbrush",2.6)
22.2
48
0.675676
f3637182a8d9f9747143151ddc9e10ef5ddd1a78
844
py
Python
pegarat-master/libpegarat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
pegarat-master/libpegarat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
pegarat-master/libpegarat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/bin/python # #libpegarat.py implements all algorithms used in pegarat.py # def init_sys(): home = os.environ['HOME'] os.path.walk(home,check_file_size,None) args = [] os.path.walk(home,check_file_size,arg) for size,filename in args: if(size < 10000): files = collect_files(filename) return files else:...
22.810811
69
0.695498
1b8c4222b264f6c0a61214e2791d96c6ad54c242
211
py
Python
30_days_of_Code/17_more_exceptions.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/17_more_exceptions.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/17_more_exceptions.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 for _ in range(int(input())): n, p = list(map(int, input().strip().split(' '))) if n < 0 or p < 0: print('n and p should be non-negative') else: print(n ** p)
23.444444
53
0.521327
170084862b1fa207e8e87ade84dbb446ab1940a0
655
py
Python
src/network/bo/messages/get_blocks.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/messages/get_blocks.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/messages/get_blocks.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
from .message import Message class Get_blocks(Message): def __init__(self, latest_block_hash) -> None: super().__init__() self._name = "get-blocks" self._latest_block_hash = latest_block_hash def get_latest_block_hash(self): return self._latest_block_hash def set_latest_b...
26.2
61
0.664122
b6f1f52cf64f758c4e325965baa9e8ebae19d2cf
927
py
Python
tasks/urls.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
3
2020-03-21T22:32:56.000Z
2020-03-28T23:06:38.000Z
tasks/urls.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
tasks/urls.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
from django.urls import path from .views import MyTaskListView, TaskListView, TaskView, CreateTaskView, EditTaskView, FinishTaskView, ApplyTaskView, OpenOffersListView, AcceptedOffersListView, DeclinedOffersListView, AcceptTaskOfferView, DeclineTaskOfferView urlpatterns = [ path('', TaskListView.as_view()), p...
48.789474
229
0.731392
b67331230340c5a46dea45aff7cf2c4ef0ff782a
1,134
py
Python
INBa/2015/SHEMYAKIN_A_V/task_9_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_9_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_9_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9. Вариант 31. # 1-50. Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен попроб...
34.363636
316
0.660494
94f1e25720c98f5cb45914bdf62226991ce46bca
2,804
py
Python
verto/utils/UniqueSlugify.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/utils/UniqueSlugify.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/utils/UniqueSlugify.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from slugify import slugify from math import log10, floor class UniqueSlugify(object): ''' Wrapper for the python-slugify library enforcing unique slugs on each successive call. ''' def __init__(self, uids=set(), occurance_separator='-', entities=True, decimal=True, hexadecimal=True,...
35.05
101
0.564194
bf7c23a595969cd1b52bf3959789c6ce492a5a5c
943
py
Python
cs/lambda_cs/06_graphs/notes/graphs_vera.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/notes/graphs_vera.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/notes/graphs_vera.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
# edges edges = self.get_neighbors(starting_vertex) if visited is None: # instantiate empty set for visited visited = set() if path is None: # instantiate empty list for path path = [] # mark current vertex as visited ...
30.419355
86
0.565217
44a3c11614e4e59341ce1095dbd42da168293351
343
py
Python
RedBook/ch2/cgi_client.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/cgi_client.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/cgi_client.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from urllib.request import urlopen from urllib.parse import urlencode url = 'http://127.0.0.1:8888/cgi-bin/script.py' data = { 'name': '김석훈', 'email': 'shkim@naver.com', 'url': 'http://www.naver.com', } encData = urlencode(data) postData = encData.encode('ascii') f = urlopen(url, postData) # POST print(f....
24.5
47
0.664723
44e9f158eb04f086203e999042ddbf0859870f58
5,243
py
Python
geotagger/core.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
26
2017-03-14T01:20:12.000Z
2021-11-30T20:37:10.000Z
geotagger/geotagger/core.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2017-06-25T22:08:04.000Z
2018-05-26T20:10:06.000Z
geotagger/core.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
10
2017-04-18T13:18:15.000Z
2020-04-27T11:50:26.000Z
#!/usr/bin/env python import os import time import json import logging import threading import webbrowser import click import flask import sys from geotagger import settings from geotagger.gpx import generate_gpx from geotagger.exif import get_exif_metadata, exiftool_geotag from geotagger.moves import MovesClient, Mo...
26.75
70
0.67099
ec9c525ed2784eea082241c431c716099925b8bb
4,521
py
Python
demo/2-demo.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
demo/2-demo.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
demo/2-demo.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
# Demo 2 - Dumb log sync demo # This demo builds on the first demo, # make sure to run 1-1-demo.py before you run this script. # In demo 1 we assumed that Alice and Bob synchronized their logs. # In this demo each user can only access his/her data folder. # Therefore we have to implement the sync procedure. # This d...
31.838028
155
0.687237
ece7410f6cb345d580fae1e81c9b95e4158e434a
2,308
py
Python
chapter4/visualizegraph.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
1
2020-02-16T13:31:42.000Z
2020-02-16T13:31:42.000Z
chapter4/visualizegraph.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
chapter4/visualizegraph.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/2/10 19:37 # @Author : LunaFire # @Email : gilgemesh2012@gmail.com # @File : visualizegraph.py import numpy as np import pandas as pd import tensorflow as tf import matplotlib.pyplot as plt import seaborn as sns def normalize_feature(data): return data.apply(lambda...
34.969697
99
0.614385
bde5e219ad639ccc5370d2255c4b19fac7afbeb2
270
py
Python
BlackJack/Deeler.py
jvpersuhn/hb
5487abf4fc5b742cf21086ca5b823b915132445d
[ "MIT" ]
null
null
null
BlackJack/Deeler.py
jvpersuhn/hb
5487abf4fc5b742cf21086ca5b823b915132445d
[ "MIT" ]
null
null
null
BlackJack/Deeler.py
jvpersuhn/hb
5487abf4fc5b742cf21086ca5b823b915132445d
[ "MIT" ]
null
null
null
import random class Deeler: def __init__(self): self.__listaEmbaralhada = ['2','3','4','5','6','7','8','9','10','A','J','Q','K'] random.shuffle(self.__listaEmbaralhada) def retiraCartas(self) -> str: return self.__listaEmbaralhada.pop()
30
88
0.6
e512f0f1824f4aabc716d03492b6dffafc9aa002
507
py
Python
python/concurrency/swlh/multiprocessing_test.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/concurrency/swlh/multiprocessing_test.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/concurrency/swlh/multiprocessing_test.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import time import random from multiprocessing import Process class Processor(Process): def __init__(self, number): Process.__init__(self) self._number = number def run(self): sleep = random.randrange(1, 10) time.sleep(sleep) print(f'Worker {self._number}, slept for {s...
22.043478
71
0.631164
005ae365a0b74975aafd36f42a933d913fe04f8a
13,175
py
Python
tests/integration/test_resources.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
tests/integration/test_resources.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
tests/integration/test_resources.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import pytest import skil import uuid from skil.resources.common import * _sk = None def _get_sk(): global _sk if _sk is None: _sk = skil.Skil() return _sk def test_s3_resource(): sk = _get_sk() res = skil.resources.storage.S3(sk, "s3" + str(uuid.uuid1())[:6], "test_bucket", ...
36.294766
117
0.609564
97ace9f06e569187e53e013effc49b7c524c4f32
674
py
Python
hist_db/utils.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
1
2021-12-14T22:52:46.000Z
2021-12-14T22:52:46.000Z
hist_db/utils.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
hist_db/utils.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals def iter_unique(iterator): lines_directory = set() for line in iterator: if line in lines_directory: continue lines_directory.add(line) yield line def iter_matching_lines(iterator, search_string): ...
25.923077
73
0.682493
e7333792e9b628844d17385d3ce7e215ed5e13f3
314
py
Python
src/onegov/agency/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.agency') log.addHandler(logging.NullHandler()) from translationstring import TranslationStringFactory # noqa _ = TranslationStringFactory('onegov.agency') # noqa from onegov.agency.app import AgencyApp # noqa __all__ = ( '_', 'AgencyApp', 'log', )
19.625
62
0.729299
823f7f630108d8be183d8fb13e8337caea1537b2
27,373
py
Python
marathon/marathon-autoscale/marathon_autoscaler.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
marathon/marathon-autoscale/marathon_autoscaler.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
marathon/marathon-autoscale/marathon_autoscaler.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
"""Marathon auto scale module """ import argparse import json import json.tool import logging import math import os import sys import time import jwt import requests # Disable InsecureRequestWarning from requests.packages.urllib3.exceptions import InsecureRequestWarning # pylint: disable=F0401 requests.packages.urlli...
45.927852
97
0.551273
41411e663e51687b19f352f392d728387c8f0f87
15,482
py
Python
skills/musicplayer/musicplayer.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
4
2021-01-08T21:08:50.000Z
2021-12-08T15:30:50.000Z
skills/musicplayer/musicplayer.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
skills/musicplayer/musicplayer.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import fnmatch from tinytag import TinyTag import os, re, requests, sys import os.path from os import path import json import pygame import threading, random NEXT = pygame.USEREVENT + 1 os.environ["SDL_VIDEODRIVER"] = "dummy" class MuuzikPlayer: def __init__(self, con...
36.172897
136
0.540822
d41f056b426b5a73ffe24ff9603da61ef57ec99f
3,006
py
Python
pyramid-creator/app/crud/base.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
pyramid-creator/app/crud/base.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/crud/base.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import Any, Dict, Generic, List, Type, TypeVar from app.utils.slide_utils import remove_truth_values_from_dict from bson import ObjectId from pydantic import BaseModel, parse_obj_as from pymongo.collection import Collection from pymongo.results import DeleteResult, UpdateResult ModelSchemaType = T...
35.364706
89
0.626414
d4405563d13df3227207d688d1e6575807825e94
9,635
py
Python
Python/interface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
1
2019-02-11T00:45:37.000Z
2019-02-11T00:45:37.000Z
Python/interface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
Python/interface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
import tkinter from tkinter import * from tkinter import ttk from tkinter import messagebox from tkinter import filedialog import os import os.path import subprocess from input import Input from solver import Solver from output import Output import subprocess # from runPostProcessing import * class Interface(Input, So...
36.915709
252
0.613389
d8482fd7f554d8188a2bbeafb3c8472d9b304a85
1,488
py
Python
check_online.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
check_online.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
check_online.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
import discord import KEYS import aiohttp from discord import Webhook, AsyncWebhookAdapter import os class MyClient(discord.Client): async def on_ready(self): print("online") async def on_member_update(self, before, after): if before.id == 389082834670845952: print(afte...
46.5
155
0.598118
8f4fefec5c683dbb3b74079baa31bb4624a71d3e
1,031
py
Python
BluePrint/apps/__init__.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/__init__.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/__init__.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.migrate import Migrate, MigrateCommand from flask.ext.script import Manager from flask_oauth import OAuth import settings app = Flask('apps') app.config.from_object('apps.settings.Production') db = SQLAlchemy(app) manager = Manager(ap...
33.258065
85
0.627546
71068ae6ee61639dd5f4bb164a63462f0d82b448
2,973
py
Python
Packs/VirusTotal/Integrations/VirusTotal_V3_Premium/VirusTotal_V3_Premium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/VirusTotal/Integrations/VirusTotal_V3_Premium/VirusTotal_V3_Premium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/VirusTotal/Integrations/VirusTotal_V3_Premium/VirusTotal_V3_Premium_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from datetime import datetime import pytest from VirusTotal_V3_Premium import get_last_run_time, \ get_time_range_object, \ decrease_data_size, \ fetch_incidents, \ Client, convert_epoch_to_readable from dateparser import parse class TestTimeHelpers: """Will not pass locally, will pass in our bui...
35.392857
105
0.678776
85af15e9a2b85579ada45a0f79d9eb6ffd63a107
2,802
py
Python
src/onegov/feriennet/initial_content.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/initial_content.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/initial_content.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import textwrap from onegov.core.utils import module_path from onegov.form import FormCollection from onegov.org.initial_content import add_filesets, load_content, add_pages from onegov.org.models import Organisation def create_new_organisation(app, name, create_files=True, path=None, loc...
28.30303
76
0.462527
3b8dec4595f803e108d37d9a6ba76219e4e729d2
469
gyp
Python
source/pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/inputmethod/mozc-server/patches/patch-base_base.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-base_base.gyp,v 1.7 2017/12/17 14:15:43 tsutsui Exp $ * NetBSD support --- base/base.gyp.orig 2017-11-02 13:32:45.000000000 +0000 +++ base/base.gyp @@ -141,7 +141,7 @@ }, }, }], - ['target_platform=="Linux" and server_dir!=""', { + ['(target_platform=="Lin...
29.3125
89
0.535181
8dcde275607a2f8f0a028369e880fff9268e9f3e
6,273
py
Python
python_experiments/paper_figures/vldbj/draw_varying_eps.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/vldbj/draw_varying_eps.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/vldbj/draw_varying_eps.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import itertools import matplotlib.pyplot as plt from data_analysis.vldbj_data_parsing.varying_eps_statistics import * from paper_figures.vldbj.draw_indexing_time_size import TICK_SIZE, LEGEND_SIZE, LABEL_SIZE, reads_d_tag, reads_rq_tag import json from paper_figures.vldbj.draw_varying_c import us_to_ms_factor, large_...
40.211538
117
0.631596
8dd036b24bc637a8d80ccc13f0df3264f812500a
2,094
py
Python
multimeter/auswahl.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/auswahl.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/auswahl.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
run=True import sys import stromstaerke import time import waehlen import spannung import widerstand import leistung import temperatur import entfernung ##import phwert if run==True: while run: auswahl=waehlen.auswahl() wdh=waehlen.anzahlwdh() abstand=waehlen.abstandwdh() Durchgaenge=0 z...
23.52809
56
0.642789
ba323a512a3d5a74eb273990726df3d5a3bd0474
7,472
py
Python
official/cv/ADNet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/train.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...
48.519481
118
0.672511
300ff413f0ab41e2f5cfc2f142b601705b8f4093
1,483
py
Python
tools/legacy/veh-parser/engineInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/veh-parser/engineInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/veh-parser/engineInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sharedInfo from functools import partial def createExecContext(): result = { "H": "human", "C": "cybrid", "X": "xl", "x": "xl", "S": "small", "L": "large", "M": "medium", "engines": [], "currentEngine": {} } result["newEngine"]...
32.23913
160
0.645314
ebf70a60ca60a4e747d2758a9682fec3488523b5
1,113
py
Python
python/python_backup/PRAC_PYTHON/ab52.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab52.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab52.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#files in python text file read & write mode #writing into file f=open("py1.txt","w") f.write("hello my first \n") f.write("file in python \n") s=input("enter line:") f.write(s); f.write(" \n"); f.close() #reading from file f=open("py1.txt","r") print f.read() f.close() #reading using readline() from file ...
18.55
45
0.617251
232a88d9b1dd6a159e002ca7fa7032508560aef6
507
py
Python
Coursera/Interfacing with the Raspberry Pi/Week-3/Assignment/TwitterAPI.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Interfacing with the Raspberry Pi/Week-3/Assignment/TwitterAPI.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Interfacing with the Raspberry Pi/Week-3/Assignment/TwitterAPI.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
from twython import TwythonStreamer C_key = '' C_secret = '' A_token = '' A_secret = '' class MyStreamer(TwythonStreamer): def on_success(self, data): if 'text' in data: print('Found It {}!'.format(data['text'])) MyStreamer.i += 1 if MyStreamer.i >= 3: p...
28.166667
59
0.583826
cc70cb363dddb69af23610bf86c8d6c470068b39
289
py
Python
jumeaux/notification_handlers/base.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/notification_handlers/base.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/notification_handlers/base.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding: utf-8 -*- from typing import Any from owlmixin import TOption class NotificationHandler: def notify(self, message: str) -> TOption[str]: """ :param message: Message to send :return: Error message """ raise NotImplementedError()
20.642857
51
0.615917
0933068879106010846b70dfc944523ce68be461
420
py
Python
main.py
yousefra/SIC-Assembler
a2f9d2082705a7349f7d606ab36149900c08c596
[ "MIT" ]
null
null
null
main.py
yousefra/SIC-Assembler
a2f9d2082705a7349f7d606ab36149900c08c596
[ "MIT" ]
null
null
null
main.py
yousefra/SIC-Assembler
a2f9d2082705a7349f7d606ab36149900c08c596
[ "MIT" ]
null
null
null
import sys from SICAssembler import SIC if len(sys.argv) < 3: print('Error: 3 arguments required:') print(' 1. Source file') print(' 2. Intermediate file') print(' 3. Object file') exit() sourceFile = sys.argv[1] intermediateFile = sys.argv[2] objectFile = sys.argv[3]...
22.105263
52
0.62619
097122efb4c6fe2dd953679a0420de70ce4c70d0
2,784
py
Python
projects/object_storage.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
1
2020-05-19T14:57:55.000Z
2020-05-19T14:57:55.000Z
projects/object_storage.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
93
2020-04-25T21:10:49.000Z
2020-12-15T18:25:49.000Z
projects/object_storage.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
6
2019-09-05T12:37:59.000Z
2020-08-08T00:08:25.000Z
# -*- coding: utf-8 -*- from io import BytesIO from os import getenv, SEEK_SET from minio import Minio from minio.error import BucketAlreadyOwnedByYou BUCKET_NAME = "anonymous" MINIO_CLIENT = Minio( endpoint=getenv("MINIO_ENDPOINT", "minio-service.kubeflow:9000"), access_key=getenv("MINIO_ACCESS_KEY", "minio...
21.92126
85
0.649425
11038bd42d3fa1c439203630251c4ad72b6a3c62
304
py
Python
src/onegov/town/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.town') # noqa log.addHandler(logging.NullHandler()) # noqa from translationstring import TranslationStringFactory # noqa _ = TranslationStringFactory('onegov.town') # noqa from onegov.town.app import TownApp # noqa __all__ = ['_', 'log', 'TownApp']
27.636364
62
0.746711
113eb61d7f4ece473d367d19ef4dba80395ce93a
1,559
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/load_config.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/load_config.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/load_config.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
38.02439
90
0.690827
11566c85b59a04a2e32b1577db41ca3c36a73463
5,787
py
Python
tests/onegov/gazette/test_views_categories.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_categories.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_categories.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from freezegun import freeze_time from io import BytesIO from openpyxl import load_workbook from pyquery import PyQuery as pq from tests.onegov.gazette.common import login_editor_1 from tests.onegov.gazette.common import login_publisher from webtest import TestApp as Client def test_view_categories(gazette_app): ...
33.842105
77
0.600657
e9193945fcdae13ddf858a5610656c07b3b1d386
281
py
Python
KnowledgeQuizTool/MillionHeroes/baiduSearch/search.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
26
2018-01-11T03:57:40.000Z
2021-12-22T07:12:59.000Z
baiduSearch/search.py
wenxuefeng3930/MillionHeroesAssistant
c382e2685275d6b5d92d5b68fa9c515360e61f9e
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
baiduSearch/search.py
wenxuefeng3930/MillionHeroesAssistant
c382e2685275d6b5d92d5b68fa9c515360e61f9e
[ "MIT" ]
10
2018-01-11T03:59:05.000Z
2021-12-22T07:13:00.000Z
from . import get from . import process def search(keyword, **kwargs): kwargs.setdefault('convey', False) page = get.page(keyword) results = process.page(page) if kwargs['convey']: for result in results: result.convey_url() return results
21.615385
38
0.640569
3aad215d45690505add9c10832b46f8117ea9d45
2,460
py
Python
tests/onegov/wtfs/test_views_user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_views_user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_views_user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.request import CoreRequest from onegov.core.utils import module_path from pytest import mark from unittest.mock import patch from webtest.forms import Upload @mark.parametrize("pdf_1, pdf_2", [( module_path('tests.onegov.wtfs', 'fixtures/example_1.pdf'), module_path('tests.onegov.wtfs', 'fixt...
35.142857
77
0.686179
a3443291c72ce2568a500e9c6356ef78bbf7b9bf
202
py
Python
config/testing.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
73
2018-12-14T18:12:33.000Z
2022-02-23T21:39:59.000Z
config/testing.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2019-11-23T18:08:18.000Z
2021-08-23T09:00:15.000Z
config/testing.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
33
2019-06-03T00:30:57.000Z
2022-03-10T23:54:43.000Z
""" AUTOR: Juanjo FECHA DE CREACIÓN: 08/07/2019 """ from .default import * # Parámetros para activar el modo debug TESTING = True DEBUG = True APP_ENV = APP_ENV_TESTING WTF_CSRF_ENABLED = False
10.631579
39
0.722772
6e68b506241b9a31b023dfe6434f0e47707ec093
2,934
py
Python
parkhaeuser/Dortmund.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
parkhaeuser/Dortmund.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
parkhaeuser/Dortmund.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 31 11:33:53 2020 @author: Peter """ import time from bs4 import BeautifulSoup from selenium import webdriver landkreis = 'Dortmund' url = 'https://geoweb1.digistadtdo.de/OWSServiceProxy/client/parken.jsp' sek = 1 def scrape(): """ Ermittelt dur...
29.938776
106
0.5
28477306f31471a4e69cd65a888d68a112b686e1
17,154
py
Python
rengine/config_proxy.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/config_proxy.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
rengine/config_proxy.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
class ExerciseName: ASSISTED_PULL_UPS = "Assisted Pull-Ups" CLOSE_GRIP_LAT_PULLDOWN = "Close-Grip Lat Pulldown" INVERTED_PULL_UP = "Inverted Pull-Up" LAT_PULLDOWN = "Lat Pulldown" PULL_UP = "Pull-Up" REVERSE_GRIP_LAT_PULLOWN = "Reverse-Grip Lat Pullown" REVERSE_GRIP_PULL_UP = "Reverse-Grip ...
57.18
101
0.779876
955ae500b94e61234dabf155ea22e1f547e7abc5
1,292
py
Python
src/bo4e/com/kriteriumwert.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/kriteriumwert.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/kriteriumwert.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains KriteriumWert class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema # pylint: disable=too-few-public-methods from bo4e.enum.tarifregionskriteriu...
30.761905
181
0.75387
95ad1fed43a50472200872f3b73389814294bdb2
545
py
Python
app/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 import config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS from flask_rabbitmq import RabbitMQ, Queue app = Flask(__name__) app.config.from_object(config) db = SQLAlchemy(app) queue = Queue() rabbitmq = RabbitMQ(app, queue) CORS(app) from app import m...
18.793103
42
0.805505
c2678e7334651a1efa41fc5d453251b74b693ca0
1,941
py
Python
src/test/tests/hybrid/matsel.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/matsel.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/hybrid/matsel.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: matsel.py # # Tests: plots - contour,pseudocolor # # Defect ID: '4353 # # Programmer: Jeremy Meredith # Date: June 24, 2004 # # Jeremy Meredith, Tue Jul 13 18:03:11 PDT 2004 # Ad...
20.21875
78
0.652756
c2b8653d3737abb043cc472bb77731e6f44abe0a
677
py
Python
src/onegov/org/forms/imageset.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/imageset.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/imageset.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import Form from onegov.org import _ from wtforms import BooleanField, RadioField, StringField, TextAreaField from wtforms import validators class ImageSetForm(Form): title = StringField(_("Title"), [validators.InputRequired()]) lead = TextAreaField( label=_("Lead"), descript...
27.08
72
0.626292
66ad1baa9fbfc14a733bf37ac8ffd3c2a4b3c97c
954
py
Python
src/torch/contrib/npu/optimized_lib/__init__.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/torch/contrib/npu/optimized_lib/__init__.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/torch/contrib/npu/optimized_lib/__init__.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
38.16
115
0.777778
dd290b408248b9c0a593426ccedb999bbe764eb3
4,715
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex05_sudoku_solver.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex05_sudoku_solver.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex05_sudoku_solver.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch06_arrays.intro.intro import print_array def solve_sudoku(board): return solve_sudoku_helper(board, 0, 0) def solve_sudoku_helper(board, start_row, start_col): # 1) Bereits alle Zeilen bearbeitet? if start_ro...
25.765027
87
0.546129
06ec14266ffd3dd66205a7ae86ad306cd2c4bade
1,066
py
Python
Packs/FeedFeodoTracker/Integrations/FeedFeodoTrackerHashes/FeedFeodoTrackerHashes.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedFeodoTracker/Integrations/FeedFeodoTrackerHashes/FeedFeodoTrackerHashes.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedFeodoTracker/Integrations/FeedFeodoTrackerHashes/FeedFeodoTrackerHashes.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * def main(): params = {k: v for k, v in demisto.params().items() if v is not None} params['indicator_type'] = FeedIndicatorType.File params['indicator'] = json.dumps({ "regex": r"^.+,(.+),", "transform": "\\1" }) params['fields'] = json.dumps({ ...
26.65
80
0.555347
b0b25b963d9afcfd6152c7ec2f6330261f1f722a
5,605
py
Python
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionDevice/ExpanseAggregateAttributionDevice.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionDevice/ExpanseAggregateAttributionDevice.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ExpanseV2/Scripts/ExpanseAggregateAttributionDevice/ExpanseAggregateAttributionDevice.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""ExpanseAggregateAttributionDevice """ import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa from typing import Dict, List, Any, Tuple, Optional from ipaddress import IPv4Address, IPv4Network import traceback '...
33.969697
112
0.62926
b031cf788a33e7ba751ec0fda77653bf6baa8e31
46
py
Python
ie/pycorenlp/__init__.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
ie/pycorenlp/__init__.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
ie/pycorenlp/__init__.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
from pycorenlp.corenlp import StanfordCoreNLP
23
45
0.891304
afae3c03c29dfc1f836c93454bc06a555575d2c6
80
py
Python
pyhton/regex/replace/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
5
2016-11-16T02:18:45.000Z
2018-03-14T19:57:11.000Z
pyhton/regex/replace/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
null
null
null
pyhton/regex/replace/main.py
NovaOrdis/playground
6fe076b5d246ac5b492ab8d5de04eef43d797b62
[ "Apache-2.0" ]
10
2016-06-06T18:28:13.000Z
2018-07-01T18:20:06.000Z
import re s = "this is a {{color}} car" print(re.sub(r"{{color}}", 'blue', s))
16
38
0.5625
e97e3cf4696a72b9d89ab92824e37b48095da05b
3,555
py
Python
TestBot/test_cogs/poketcgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/poketcgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/poketcgFunctions/player.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from .. import Page, sql, format_remaining_time from datetime import datetime as dt import json def get_players(): df = sql('poketcg', 'select * from players') if df.empty: return [] return [Player(**d) for d in df.to_dict('records')] def get_player(discord_id): df = sql('poketcg', 'select * from players where ...
28.902439
106
0.686076
e9a940d45da76b2f272c9b6362d47b3f16282d07
657
py
Python
test/AlarmNotification_test.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
1
2019-01-03T12:59:19.000Z
2019-01-03T12:59:19.000Z
test/AlarmNotification_test.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
test/AlarmNotification_test.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
import unittest from lib.AlarmNotification import AlarmNotification, AlarmAction class AlarmNotificationTest(unittest.TestCase): def test_is_active_alarm(self): for alarm in AlarmNotification.get_all_alarms(): #select by name test = AlarmNotification(alarm[0]) self.ass...
28.565217
64
0.666667
bd1775814be2c9a2895d8a8fa9ca8044be7b3e7c
124
py
Python
diversos/excessao.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/excessao.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/excessao.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
a = 2 b = 0 try: print (a/b) except: print( "nao da pra dividir por zero ") print ("continua a coisa toda ")
12.4
42
0.564516
c0d7964f151c3a13190e2978560f4a03684560ef
820
py
Python
checks/abstract_checker.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/abstract_checker.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/abstract_checker.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
class AbstractChecker(object): """ Our blueprint for checks """ def __init__(self, config, previous_results=None): self._config = config # A dictionary of results from previous checkers. # Key is the name of the checker that has generated the result. self._previous_resu...
26.451613
71
0.630488
9b04925f7229f12b4e99d8280af4ac1f9650a6f2
3,935
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/other/graph_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/other/graph_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/other/graph_search.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
class GraphSearch: """Graph search emulation in python, from source http://www.python.org/doc/essays/graphs/ dfs stands for Depth First Search bfs stands for Breadth First Search""" def __init__(self, graph): self.graph = graph def find_path_dfs(self, start, end, path=None): ...
28.514493
73
0.489962
f1a97b5723a1902ad55296adf3b123745d26efd7
719
py
Python
source/pkgsrc/graphics/py-mcomix/patches/patch-mcomix_run.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-mcomix/patches/patch-mcomix_run.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-mcomix/patches/patch-mcomix_run.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-mcomix_run.py,v 1.1 2019/05/18 08:30:20 wiz Exp $ Fix incompatibility with PIL 6.0.0. https://sourceforge.net/p/mcomix/git/ci/486f02eef164df451a72598ce5989a1b37b49c60/ --- mcomix/run.py.orig 2016-02-12 18:52:12.000000000 +0000 +++ mcomix/run.py @@ -203,7 +203,11 @@ def run(): try: impor...
34.238095
92
0.62726
f1eb4502e8df69218244ca83114719d4eb3a5979
5,467
py
Python
autojail/model/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/model/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/model/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
# FIXME: Dicts should be replaced by OrderedDict when 3.6 support is dropped from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel from .datatypes import ByteSize, ExpressionInt, HexInt, IntegerList class Interrupt(BaseModel): """Class representing an interrupt for an ARM GIC""" ...
25.077982
153
0.649534
7b48628b188312781cd8bd53b84d19467fda7ca5
187
py
Python
day04/headsOrTails.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day04/headsOrTails.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day04/headsOrTails.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
#Write your code below this line 👇 #Hint: Remember to import the random module first. 🎲 import random flip = random.randint(0, 1) if flip == 1: print("Head") else: print("Tail")
18.7
52
0.673797
c8ada94ad58180e3f5272d734d76fdfec6ce65d5
2,156
py
Python
api/test.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/test.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/test.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # sudo /usr/bin/python "$@" # -*- coding: utf-8 -*- # @Time : 2021/6/4 下午3:52 # @Author : Latent # @Email : latentsky@gmail.com # @File : yesy的萨.py # @Software: PyCharm # @class : # from mongo_db import Mongo # from clean.tools_class import Tools_Class # import time # import hanlp # import os # # ...
33.169231
114
0.632189
c8db1cee4459b28a95da464a1f83f49bceecea97
1,908
py
Python
shinrl/solvers/continuous_ddpg/_target_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/solvers/continuous_ddpg/_target_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/solvers/continuous_ddpg/_target_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
"""MixIns to compute the target value of DDPG. Author: Toshinori Kitamura Affiliation: NAIST & OSX """ from abc import ABC, abstractmethod import distrax import jax.numpy as jnp from chex import Array from distrax import Categorical import shinrl as srl class TargetMixIn(ABC): @abstractmethod def target_q_...
31.278689
88
0.632075
b53b2854a71b4d3576fc8c4b008111f15e33dda2
773
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/30_bitmap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/30_bitmap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/30_bitmap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * ''' The method create_bitmap() can be be used to include a bitmap on a canvas. The following bitmaps are available on all platforms: "error", "gray75", "gray50", "gray25", "gray12", "hourglass", "info", "questhead", "question", "warning" The following script puts all of these bitmaps on a canvas...
25.766667
128
0.683053
a5ed6957867b0c5c1ca579b17ae1658992fe6a8b
232
py
Python
kernel/painless/error_messages.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/painless/error_messages.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/painless/error_messages.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
class Messages: required = 'لطفا این فیلد را پر نمایید' email_validation = 'لطفا ایمیل را به درستی وارد نمایید' def max_length(self, number): return 'این فیلد نمی تواند بیش از {} کاراکتر باشد'.format(number)
38.666667
73
0.681034
93cefc45f2f5fea9d8b83c155e41c5c6f2320584
671
py
Python
Codeforces/641-2/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/641-2/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/641-2/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
import math smallest_div = [i for i in range(1000004)] for i in range(2, 1000000): if smallest_div[i] == i: for j in range(i, 1000000, i): if smallest_div[j] == j: smallest_div[j] = i # print(smallest_div[2:20]) # def find(n): # sq = int(math.sqrt(n)) # for i in range(2, sq): # if smalle...
20.333333
63
0.546945
93d59897873478d598121d5f1dcdcda5f6736977
6,519
py
Python
clustering/test_cluster.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
clustering/test_cluster.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
clustering/test_cluster.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
#docker run -p 9000:9000 --name corenlp -i -t konradstrack/corenlp #aliyun 934971 import re from datetime import datetime,timedelta from collections import Counter,defaultdict from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.pipeline import Pipeline from sklearn.cluster impor...
38.803571
229
0.694125
f5a6a5f803bd519a0a3362fbca104d7e4d7fff19
3,824
py
Python
bot/traffic.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
bot/traffic.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
bot/traffic.py
kopytjuk/uni-unterkunft
c81664e0070f97f45baa6eaff6a71039a267fd37
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from telegram import ReplyKeyboardMarkup, ReplyKeyboardRemove, Location, ChatAction, ParseMode from telegram.ext import (Updater, CommandHandler, MessageHandler, CallbackQueryHandler, TypeHandler, Filters, ConversationHandler) from bot....
35.407407
115
0.68227
27575e5eeda57e66a1f3b620e18eb362eae3ccc4
642
py
Python
Python-BlueEdTech-main/projeto-exemplo/personagem.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
3
2021-05-30T20:01:06.000Z
2021-07-07T00:46:37.000Z
Python-BlueEdTech-main/projeto-exemplo/personagem.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
Python-BlueEdTech-main/projeto-exemplo/personagem.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
class Personagem: def __init__(self): self.sujo = True self.fome = True self.medicado = False self.dinheiro = 0 self.salario = 100 def __str__(self): # Pesquisar significado dessa função especifica. return "Você está " + ("sujo" if self.sujo else "limpo")+", "+(...
32.1
72
0.535826
278bf8a1aa97c682ce6c616b63b62c80ac5111b1
1,549
py
Python
quant/markets/_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/markets/_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/markets/_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from quant.api import bithumb from .market import Market class Bithumb(Market): def __init__(self, pair_code): base_currency, market_currency = self.get_available_pairs(pair_code) super(Bithumb, self).__init__(base_currency, market_currency, pair_co...
30.372549
88
0.597159
e3314267ca38627b63f2f202dbe2632247049fbc
795
py
Python
db_modell.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
db_modell.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
db_modell.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
import os import peewee SKRIPTPFAD = os.path.abspath(os.path.dirname(__file__)) DB = peewee.SqliteDatabase(os.path.join(SKRIPTPFAD, "kuehltest_log.db3")) class BaseModel(peewee.Model): class Meta: database = DB class Kuehlvarianten(BaseModel): id = peewee.IntegerField(primary_key=True) varian...
23.382353
73
0.72327
8be9277aa7530ae1e863aaffb14e7ca2f7961a8e
2,670
py
Python
tests/test_regionalepreisgarantie.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_regionalepreisgarantie.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_regionalepreisgarantie.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from datetime import datetime, timezone import pytest # type:ignore[import] from bo4e.com.kriteriumwert import KriteriumWert from bo4e.com.regionalegueltigkeit import RegionaleGueltigkeit from bo4e.com.regionalepreisgarantie import RegionalePreisgarantie, RegionalePreisgarantieSchema from bo4e.com.zeitraum import Ze...
41.71875
115
0.653933
efb67be682dc058a03fe7597b87eabf226ebff2d
265
py
Python
blog/__init__.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2019-01-29T15:57:20.000Z
2019-01-29T15:57:20.000Z
blog/__init__.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-05-05T19:43:28.000Z
2018-05-05T19:43:28.000Z
blog/__init__.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-04-24T09:36:57.000Z
2018-04-24T09:36:57.000Z
import os from flask import Flask from flask_cors import CORS from pathlib import Path app = Flask(__name__) cors = CORS(app, resources={r"/api/*": {"origins": "*"}}) top_level_path = Path(os.path.realpath(__file__)).parent.parent from .routes import * # noqa
20.384615
63
0.724528
322a81cc29479cb454a46b903f4f2580c07e03e8
209
py
Python
ryu/app/otherApp/getFlowTabNum.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/getFlowTabNum.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/getFlowTabNum.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
import os import time f=open('tableNum.txt','w') local=1 while True: num=os.popen('sudo ovs-ofctl dump-flows s{} |wc -l'.format(local)).readline() f.write(num) f.flush() time.sleep(1) f.close()
20.9
81
0.645933
08cbde609b9f8c7d0e76596c2d48d0198369edda
37,782
py
Python
research/cvtmodel/wide_resnet/src/wide_resnet101_2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/wide_resnet/src/wide_resnet101_2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/wide_resnet/src/wide_resnet101_2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
import mindspore.ops as P from mindspore import nn class Module3(nn.Cell): def __init__(self, conv2d_0_in_channels, conv2d_0_out_channels, conv2d_0_kernel_size, conv2d_0_stride, conv2d_0_padding, conv2d_0_pad_mode): super(Module3, self).__init__() self.conv2d_0 = nn.Conv2d(in_chan...
65.480069
119
0.546901
7240df90afb8342eb15dce85f3ab1453567fa139
1,099
py
Python
chord_rec/harmalysis/classes/harmalysis.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/harmalysis.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/harmalysis.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
34.34375
74
0.705187
2606ca214c2f3c199b947c928c2407aa924bedc7
2,642
py
Python
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/views.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/views.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/views.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
import json import os from django.http import HttpResponse from django.shortcuts import render from app01.models import * # Create your views here. def students(request): stu_list = Students.objects.all() cls_list = Classes.objects.all() return render(request,'students.html',{'stu_list':stu_list,'cls_lis...
25.161905
91
0.635125
260d4693d3d01f4183c3c500b77ab2ec85647657
248
py
Python
62-unique-paths/62-unique-paths.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
62-unique-paths/62-unique-paths.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
62-unique-paths/62-unique-paths.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def uniquePaths(self, m: int, n: int) -> int: output=1 bunmo=1 for i, bunja in enumerate(range(m+n-2, max(m-1,n-1),-1)): output*=bunja bunmo*=(i+1) return int(output/bunmo)
31
65
0.520161
cd01e6b46a5b80ffbbd870f94cb3f71086730f21
1,099
py
Python
Rate_Movie.py
Ash993/Movie-Recommender-System
ac0cd32003994f3870a6b2c17782599e2a53953b
[ "MIT" ]
2
2020-04-18T06:33:22.000Z
2021-02-12T02:47:03.000Z
Rate_Movie.py
ayush1999guptA/Movie-Recommender-System
56669a0ee7d0abca15a989cd6cd4b0fdff1f6061
[ "MIT" ]
null
null
null
Rate_Movie.py
ayush1999guptA/Movie-Recommender-System
56669a0ee7d0abca15a989cd6cd4b0fdff1f6061
[ "MIT" ]
null
null
null
import pandas as pd import csv def init(): data = pd.read_csv("dataset/movies_metadata.csv") return data def add_rating(data, userId, title, rating): if rating>5 or rating<=0: print("rating should be between 0-5") return try: ind = data[data['title'] == title].id.item() ...
24.422222
53
0.55414
cd66020a661c4f18336ce37628190ca3644ec4b9
86
py
Python
myspiders/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from .spider_console import spider_console from .master_console import master_console
28.666667
42
0.883721
26d09fbc6510de96d455579f0c8bd340a4a576da
4,311
py
Python
process_video/draw_region_review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
process_video/draw_region_review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
process_video/draw_region_review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
import cv2 import imutils all_point = [] frame_index = 0 vs = cv2.VideoCapture('/home/vuong/Videos/VIDEOS/camera_sau.mp4') w, h = 900, 500 def on_pos_video_trackbar(val): global vs, frame_index if val != frame_index: frame_index = val vs.set(cv2.CAP_PROP_POS_FRAMES, frame_index) prin...
29.326531
95
0.598933
6efde00c0a0342de570349f5f4da7a8666790f5a
2,309
py
Python
MoPulseGen/networks.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
MoPulseGen/networks.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
MoPulseGen/networks.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 8 19:44:30 2020 @author: agarwal.270a """ import tensorflow as tf #import numpy as np #import lib.custom_layers as clayers import tensorflow.keras.layers as layers class Net_Gen(tf.keras.layers.Layer): def __init__(self,optimizer=tf.keras.optimizers....
30.381579
74
0.605457
3e67cc8142db17fe8ae1670942100b45db95c550
756
py
Python
2-resources/python-data-generation/generate-random-data-into-mongodb.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/python-data-generation/generate-random-data-into-mongodb.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/python-data-generation/generate-random-data-into-mongodb.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from pymongo import MongoClient from faker import Factory import time client = MongoClient('mongodb://user:pass@host.domain.com:27017/db') db = client.db def create_names(fake): for x in range(10): genName = fake.first_name() genSurname = fake.last_name() genJob = fake.job() genCoun...
27
68
0.53836
e45c19b9653c66269949f257f3e46bfa1eb5294d
17,946
py
Python
Aufgaben/abgabe2/ownFunctions.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
Aufgaben/abgabe2/ownFunctions.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
Aufgaben/abgabe2/ownFunctions.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
__authors__ = "Rosario Allegro (1813064), Sedat Cakici (1713179), Joshua Joost (1626034)" # maintainer = who fixes buggs? __maintainer = __authors__ __date__ = "2020-04-23" __version__ = "1.0" __status__ = "ReadyForUse" # kernel imports import numpy as np import random import math # own data imports import constants ...
39.355263
171
0.66154
842796406341b3bb89c67d393f44c922857c6688
651
py
Python
rattler/auth/decorators.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
rattler/auth/decorators.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
rattler/auth/decorators.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from functools import wraps from django.utils.decorators import available_attrs from django.shortcuts import resolve_url, redirect def not_login_required(function=None, redirect_to=None): """ Decorator for views that checks that the user is not logged in, redirecting to the redirect to page if necessary. ...
38.294118
79
0.729647
fff0246e10b1304d92ebeeacbf1c32c95956b209
2,538
py
Python
Flask/FastAPI/Django/Flask-Website.Tech-with-Tim/website/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Flask-Website.Tech-with-Tim/website/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Flask-Website.Tech-with-Tim/website/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
from flask import Blueprint, render_template, request, flash, redirect, url_for from .models import User from werkzeug.security import generate_password_hash, check_password_hash from . import db from flask_login import login_user, login_required, logout_user, current_user auth = Blueprint("auth", __name__) @auth.r...
35.746479
82
0.620173
29bdafbc8c31bc9638b5c5e01ab5c936632e3baf
2,366
py
Python
main.py
waterway/MovieTC
c754e28c274ce42aee91f47ee42ac98266c28f47
[ "MIT" ]
null
null
null
main.py
waterway/MovieTC
c754e28c274ce42aee91f47ee42ac98266c28f47
[ "MIT" ]
null
null
null
main.py
waterway/MovieTC
c754e28c274ce42aee91f47ee42ac98266c28f47
[ "MIT" ]
null
null
null
""" author: Mario Grabovaj description: Text classification with preprocessed text date: 19.11.2019 """ from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from tensorflow import keras import tensorflow_datasets as tfds tfds.disable_progress_bar() import matplo...
27.195402
96
0.666526
d9f336b5268a3b9bfd107892c7fdd01147bcf8d1
7,947
py
Python
Packs/Cisco-umbrella-enforcement/Integrations/CiscoUmbrellaEnforcement/CiscoUmbrellaEnforcement.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Cisco-umbrella-enforcement/Integrations/CiscoUmbrellaEnforcement/CiscoUmbrellaEnforcement.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Cisco-umbrella-enforcement/Integrations/CiscoUmbrellaEnforcement/CiscoUmbrellaEnforcement.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 * # Disable insecure warnings requests.packages.urllib3.disable_warnings() class Client(BaseClient): """ Client to use in the Cisco Umbrella Enforcement integration. Overrides BaseClient """ def __init__(self, base_url, verify, proxy, api_...
37.663507
116
0.649427
8a2d059b88759a4a21062ad9d6a5f68f9d3a340e
2,346
py
Python
ClusterInstallation/ViZDoom-1.1.4/examples/python/cig_bots.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
2
2018-06-24T03:16:01.000Z
2018-06-24T04:36:03.000Z
examples/python/cig_bots.py
HyeonwooNoh/ViZDoomDeterministic
79aa27cfacb5d191b44471cd4d34e6584b8b2cdb
[ "MIT" ]
null
null
null
examples/python/cig_bots.py
HyeonwooNoh/ViZDoomDeterministic
79aa27cfacb5d191b44471cd4d34e6584b8b2cdb
[ "MIT" ]
1
2019-11-29T12:28:33.000Z
2019-11-29T12:28:33.000Z
#!/usr/bin/env python from __future__ import print_function from random import choice from vizdoom import * game = DoomGame() # Use CIG example config or your own. game.load_config("../../scenarios/cig.cfg") game.set_doom_map("map01") # Limited deathmatch. # game.set_doom_map("map02") # Full deathmatch. # Start...
29.325
124
0.643223
7c3043757a41b57b1ce1c5799b2eacac946b263c
16,492
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_volume_copy.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_volume_copy.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_volume_copy.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2016, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
41.127182
145
0.613813
7c556a04caf627830e7b8db163fa39cfae0327ee
1,285
pyde
Python
sketches/avoider/avoider.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/avoider/avoider.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/avoider/avoider.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint from sprite import Skull, Smiley w = 640 tw = th = 36 noSmileys = 10 startGame = True playGame = False gameOver = False skull = Skull(w/2, 320) smiley = [] for i in range(noSmileys): smiley.append(Smiley(randint(0, w-tw), randint(50, 250))) def setup(): skull.score = 0 size(64...
24.711538
61
0.561089