hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
575ac01315005f3a8f5361df51402685f4d9c2d0
7,608
py
Python
scanpipe/pipes/__init__.py
sa-y-an/scancode.io
0dfb930fd977f0ac65a6b3947044c77c01cbc936
[ "Apache-2.0" ]
55
2020-09-11T11:18:18.000Z
2022-03-26T20:47:59.000Z
scanpipe/pipes/__init__.py
sa-y-an/scancode.io
0dfb930fd977f0ac65a6b3947044c77c01cbc936
[ "Apache-2.0" ]
327
2020-09-11T12:50:48.000Z
2022-03-30T18:28:40.000Z
scanpipe/pipes/__init__.py
sa-y-an/scancode.io
0dfb930fd977f0ac65a6b3947044c77c01cbc936
[ "Apache-2.0" ]
50
2020-09-15T20:34:58.000Z
2022-03-20T07:21:57.000Z
# SPDX-License-Identifier: Apache-2.0 # # http://nexb.com and https://github.com/nexB/scancode.io # The ScanCode.io software is licensed under the Apache License version 2.0. # Data generated with ScanCode.io is provided as-is without warranties. # ScanCode is a trademark of nexB Inc. # # You may not use this software ...
31.7
88
0.685463
a68d1c3376d777fe1b9c8024cf70e6e3da140716
75
py
Python
Untitled Folder/Lincoln.py
UncleLincoln/trainee
eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8
[ "MIT" ]
36
2018-11-03T01:37:30.000Z
2019-04-07T19:52:34.000Z
Untitled Folder/Lincoln.py
UncleLincoln/trainee
eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8
[ "MIT" ]
8
2020-11-13T19:06:32.000Z
2022-01-13T03:24:20.000Z
Untitled Folder/Lincoln.py
BuErTech/trainee
eb9f4be00e80fddd0ab3d3e6ea9a20c55f5bcab8
[ "MIT" ]
86
2018-11-03T01:38:25.000Z
2019-04-07T05:55:02.000Z
def deductFunction(a,b): return a-b def sigma(a,b,c,d): return a+b+c+d
10.714286
24
0.653333
2b454e631dfec98dbd62fd96fbf1e86d7296fac1
729
py
Python
src/account/api/serializers.py
arturchesnokov/currency_exchange
62fc52b755174ea888aca94f421b57ab085b57c9
[ "MIT" ]
null
null
null
src/account/api/serializers.py
arturchesnokov/currency_exchange
62fc52b755174ea888aca94f421b57ab085b57c9
[ "MIT" ]
6
2021-03-19T08:38:28.000Z
2022-03-12T00:19:16.000Z
src/account/api/serializers.py
arturchesnokov/currency_exchange
62fc52b755174ea888aca94f421b57ab085b57c9
[ "MIT" ]
null
null
null
from rest_framework import serializers from account.tasks import send_email_async from currency_exchange import settings from account.models import Contact class ContactSerializer(serializers.ModelSerializer): class Meta: model = Contact fields = ( 'id', 'created', ...
28.038462
76
0.644719
b5db8ba59b91e8349884b213a7a3df2095240c10
30,474
py
Python
mmdet/models/dense_heads/fcos_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
27
2021-09-16T11:24:43.000Z
2022-03-29T06:52:20.000Z
mmdet/models/dense_heads/fcos_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
9
2021-09-16T08:51:01.000Z
2022-01-05T10:37:47.000Z
mmdet/models/dense_heads/fcos_head.py
zimoqingfeng/UMOP
16af670ee10b95015296d4a8da56a10fb7b89f72
[ "Apache-2.0" ]
4
2021-09-16T11:24:58.000Z
2021-12-18T01:13:30.000Z
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import Scale from mmcv.runner import force_fp32 from mmdet.core import distance2bbox, multi_apply, multiclass_nms, reduce_mean from ..builder import HEADS, build_loss from .anchor_free_head import AnchorFreeHead INF = 1e8 @HEADS.regist...
45.415797
113
0.561101
6738da8ec9d83dea1b5e836a32b63f6e3aaf1159
726
py
Python
transcribe.py
rampa3/WS-voice-translator
523b3c3d26b73b9fb0554a28b4ede0848577a282
[ "MIT" ]
1
2021-03-05T21:37:26.000Z
2021-03-05T21:37:26.000Z
transcribe.py
rampa3/WS-voice-translator
523b3c3d26b73b9fb0554a28b4ede0848577a282
[ "MIT" ]
3
2021-06-26T19:10:50.000Z
2021-06-26T19:15:29.000Z
transcribe.py
rampa3/WS-voice-translator
523b3c3d26b73b9fb0554a28b4ede0848577a282
[ "MIT" ]
null
null
null
import soundfile as sf import torch from transformers import Wav2Vec2ForCTC, Wav2Vec2Tokenizer # load pretrained model print("Loading STT model...") tokenizer = Wav2Vec2Tokenizer.from_pretrained("facebook/wav2vec2-large-960h-lv60-self") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-large-960h-lv60-s...
31.565217
88
0.746556
f55a2d613d0561efb4a2fad6d3fe45c811bab911
8,654
py
Python
nnvm/tvm/python/tvm/target.py
CynthiaProtector/helo
ad9e22363a92389b3fa519ecae9061c6ead28b05
[ "Apache-2.0" ]
9
2019-04-19T04:45:18.000Z
2021-01-07T06:31:15.000Z
nnvm/tvm/python/tvm/target.py
CynthiaProtector/helo
ad9e22363a92389b3fa519ecae9061c6ead28b05
[ "Apache-2.0" ]
null
null
null
nnvm/tvm/python/tvm/target.py
CynthiaProtector/helo
ad9e22363a92389b3fa519ecae9061c6ead28b05
[ "Apache-2.0" ]
5
2019-09-18T20:21:23.000Z
2020-11-22T11:18:15.000Z
"""Target management API of TVM. TVM's target string is in fomat ``<target_name> [-option=value]...``. Note ---- The list of options include: - **-device=<device name>** The device name. - **-mtriple=<target triple>** or **-target** Specify the target triple, which is useful for cross compilation. - **-...
27.737179
89
0.602958
093c7253c450d7b73552f914a009d99bfd101656
20,939
py
Python
mods/Verification.py
drosoCode/NotSoBot
3c4b809fce75151cae0059ba8cfca68996147155
[ "MIT" ]
null
null
null
mods/Verification.py
drosoCode/NotSoBot
3c4b809fce75151cae0059ba8cfca68996147155
[ "MIT" ]
null
null
null
mods/Verification.py
drosoCode/NotSoBot
3c4b809fce75151cae0059ba8cfca68996147155
[ "MIT" ]
1
2020-11-05T07:34:16.000Z
2020-11-05T07:34:16.000Z
import discord import asyncio import random import steam from steam.steamid import SteamId from steam.steamprofile import SteamProfile from steam.steamaccountuniverse import SteamAccountUniverse from steam.steamaccounttype import SteamAccountType from discord.ext import commands from utils import checks from ...
46.121145
381
0.68542
d99957d23d47de266bc21f668e48f0721e7b040d
607
py
Python
rssant/wsgi.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
2
2021-02-06T15:07:48.000Z
2021-05-18T01:30:08.000Z
rssant/wsgi.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
5
2021-03-19T11:23:24.000Z
2022-02-10T11:36:33.000Z
rssant/wsgi.py
zuzhi/rssant
06d985845f6af3be7097e6d718afba7eeb195ec8
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for rssant project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import backdoor from django.core.wsgi import get_wsgi_application import rssant_common.django_setup...
28.904762
78
0.805601
1b186381f52e27aaa3adae826a96c42621a9fd15
1,000
py
Python
pyrlang/dist_proto/__init__.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
312
2018-09-25T08:14:04.000Z
2022-03-30T09:01:52.000Z
pyrlang/dist_proto/__init__.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
36
2018-09-24T11:04:33.000Z
2021-09-20T14:37:12.000Z
pyrlang/dist_proto/__init__.py
wayfair-contribs/Pyrlang
7599a9906840d6e8442b3382f7d3cdcb2208cd12
[ "Apache-2.0" ]
41
2018-11-06T20:29:32.000Z
2021-11-29T15:09:53.000Z
# Copyright 2018, Erlang Solutions Ltd, and S2HC Sweden AB # # 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...
43.478261
74
0.796
310d5833cbc15f04ed5a82d1e5c7d38a027d3900
321
py
Python
setup.py
akloster/table-cleaner
1d84e9828b24b9af165b6a597fd5cdf8a9da1a3c
[ "BSD-2-Clause" ]
null
null
null
setup.py
akloster/table-cleaner
1d84e9828b24b9af165b6a597fd5cdf8a9da1a3c
[ "BSD-2-Clause" ]
null
null
null
setup.py
akloster/table-cleaner
1d84e9828b24b9af165b6a597fd5cdf8a9da1a3c
[ "BSD-2-Clause" ]
1
2022-01-28T19:35:01.000Z
2022-01-28T19:35:01.000Z
#!/usr/bin/env python from distutils.core import setup setup(name='table-cleaner', version='0.1', description='Validation framework for tabular data using Pandas Dataframes.', author='Andreas Klostermann', author_email='andreas.klostermann@gmail.com', packages=['table_cleaner'], ) ...
22.928571
83
0.688474
402e1f8b1530fcfff9cb9a82199cb93ad4150dd1
105
py
Python
snake/utils.py
coopersamuel/snake
4df316e3cf66b1536e44a4a2ab7ed87ae294011e
[ "MIT" ]
null
null
null
snake/utils.py
coopersamuel/snake
4df316e3cf66b1536e44a4a2ab7ed87ae294011e
[ "MIT" ]
1
2018-07-25T18:48:24.000Z
2018-07-25T18:48:24.000Z
snake/utils.py
coopersamuel/snake
4df316e3cf66b1536e44a4a2ab7ed87ae294011e
[ "MIT" ]
null
null
null
import curses def draw_tile(screen, x, y, tile='', color=None): screen.addstr(y, x, tile, color)
26.25
49
0.647619
f6bc42bc7292d467124febc483211466cf5fa560
41,422
py
Python
bigtable/tests/unit/test_instance.py
udengcnf/gcloud
dd1714bd754e18739339e611c42a391ced27c614
[ "Apache-2.0" ]
1
2021-06-30T11:43:47.000Z
2021-06-30T11:43:47.000Z
bigtable/tests/unit/test_instance.py
udengcnf/gcloud
dd1714bd754e18739339e611c42a391ced27c614
[ "Apache-2.0" ]
null
null
null
bigtable/tests/unit/test_instance.py
udengcnf/gcloud
dd1714bd754e18739339e611c42a391ced27c614
[ "Apache-2.0" ]
1
2021-06-30T11:44:03.000Z
2021-06-30T11:44:03.000Z
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.137597
79
0.651924
ad33b279e489c57b6ce76b129f57dfe5853a07a6
2,015
py
Python
tests/algo/test_base.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
1
2019-09-06T06:59:28.000Z
2019-09-06T06:59:28.000Z
tests/algo/test_base.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
null
null
null
tests/algo/test_base.py
awesome-archive/buffalo
1bcb76b61161e74324ca71ed05ce0576598798b5
[ "Apache-2.0" ]
1
2022-02-26T12:57:54.000Z
2022-02-26T12:57:54.000Z
# -*- coding: utf-8 -*- import unittest from buffalo.misc import aux from buffalo.algo.als import ALS from buffalo.algo.options import ALSOption from buffalo.misc.log import set_log_level from buffalo.data.mm import MatrixMarketOptions from .base import TestBase, MockAlgo class TestAlgoBase(TestBase): def test0...
33.032787
114
0.627295
8a63014ecae7bd1b7ae550b0e1c74e216c30002f
629
py
Python
erpnext_chinese/monkey_patches/company.py
eanfs/erpnext_chinese
68c22267b37553092955f2c3c14d35cfdbb79873
[ "MIT" ]
null
null
null
erpnext_chinese/monkey_patches/company.py
eanfs/erpnext_chinese
68c22267b37553092955f2c3c14d35cfdbb79873
[ "MIT" ]
null
null
null
erpnext_chinese/monkey_patches/company.py
eanfs/erpnext_chinese
68c22267b37553092955f2c3c14d35cfdbb79873
[ "MIT" ]
1
2022-01-27T01:20:08.000Z
2022-01-27T01:20:08.000Z
import frappe from erpnext.setup.doctype.company.company import Company from erpnext_chinese.localize.localize import import_coa old_create_default_accounts = Company.create_default_accounts def create_default_accounts(self): if self.chart_of_accounts == '中国会计科目表': self.create_default_warehouses() ...
39.3125
102
0.780604
0afec9bf2640143c87c5ce99c62b75c76c85a336
17,814
py
Python
nagios/datadog_checks/nagios/nagios.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
1
2021-03-24T13:00:14.000Z
2021-03-24T13:00:14.000Z
nagios/datadog_checks/nagios/nagios.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
nagios/datadog_checks/nagios/nagios.py
remicalixte/integrations-core
b115e18c52820fe1a92495f538fdc14ddf83cfe1
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import re from collections import namedtuple from datadog_checks.base import AgentCheck from datadog_checks.base.utils.tailfile import TailFile # fields order for each event type, as named tu...
41.71897
119
0.593185
6dcda9d4f5a7a6f98c7822367a35f08fdf1e602c
393
py
Python
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
CursoemVideo/challenge002.py
ElptsJunior/Python
7347b38947b439afa392764aafe0a55f808530dd
[ "MIT" ]
null
null
null
print('\033[32m = \033[m'*27) print(" BUILD AN PYTHON SCRIPT THAT READ'S DAY,MONTH AND YEAR AND RETURN THE VALUES ".title()) print('\033[32m = \033[m'*27) year = int(input('Please insert the year - yyyy :')) month = int(input('Now insert the month - mm :')) day = int(input('insert your day - dd : ')) print(' the dat...
39.3
95
0.633588
2cd3d2adc4fc679c5aa595752acbc48ae0baa862
5,895
py
Python
tests/test_swf.py
dennisvang/imageio
54e957a8d4c5faa90c6dd16ae3f64346a5ceafa4
[ "BSD-2-Clause" ]
null
null
null
tests/test_swf.py
dennisvang/imageio
54e957a8d4c5faa90c6dd16ae3f64346a5ceafa4
[ "BSD-2-Clause" ]
null
null
null
tests/test_swf.py
dennisvang/imageio
54e957a8d4c5faa90c6dd16ae3f64346a5ceafa4
[ "BSD-2-Clause" ]
null
null
null
""" Tests for the shockwave flash plugin """ import numpy as np import pytest import imageio.v2 as iio import imageio.plugins from imageio import core from imageio.core import IS_PYPY from conftest import deprecated_test def mean(x): return x.sum() / x.size # pypy-compat mean @deprecated_test def test_forma...
27.418605
79
0.596098
aef217318b493538513ff68ae863ff37d7ad050a
3,080
py
Python
app/app/settings.py
majalinet/recipe-app-api
f0c109a4617c515eb0511ab7235d50beb4a88994
[ "MIT" ]
null
null
null
app/app/settings.py
majalinet/recipe-app-api
f0c109a4617c515eb0511ab7235d50beb4a88994
[ "MIT" ]
null
null
null
app/app/settings.py
majalinet/recipe-app-api
f0c109a4617c515eb0511ab7235d50beb4a88994
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.454545
91
0.696429
833c3d3cf7e89b02986b58ab756f86437425479a
19,922
py
Python
kivy/core/image/img_gif.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2021-05-16T09:46:14.000Z
2021-11-17T11:23:15.000Z
kivy/core/image/img_gif.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
kivy/core/image/img_gif.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2020-03-28T10:18:00.000Z
2021-02-13T06:34:14.000Z
#-*- coding: utf-8 -*- # # 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. # # this program is distributed ...
34.113014
80
0.542867
77af215611c36464b68c0f19a5ecae975003bbe3
39,269
py
Python
pypy/interpreter/pyframe.py
alexmechanic/pypy
6b1511399cb6f174e408ca74e8046c49e98fcc8c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/interpreter/pyframe.py
alexmechanic/pypy
6b1511399cb6f174e408ca74e8046c49e98fcc8c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/interpreter/pyframe.py
alexmechanic/pypy
6b1511399cb6f174e408ca74e8046c49e98fcc8c
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
""" PyFrame class implementation with the interpreter main loop. """ import sys from rpython.rlib import jit, rweakref from rpython.rlib.debug import make_sure_not_resized, check_nonneg from rpython.rlib.debug import ll_assert_not_none from rpython.rlib.jit import hint from rpython.rlib.objectmodel import instantiate,...
37.722382
132
0.607146
d9602008e99223a57dc875cc5a9c165e2deec6df
2,291
py
Python
code/data_analysis.py
pillowsofwind/bucket_tree_blockchain
d1472558e09cc8728c3f47a05e44b241b3361ce3
[ "MIT" ]
null
null
null
code/data_analysis.py
pillowsofwind/bucket_tree_blockchain
d1472558e09cc8728c3f47a05e44b241b3361ce3
[ "MIT" ]
null
null
null
code/data_analysis.py
pillowsofwind/bucket_tree_blockchain
d1472558e09cc8728c3f47a05e44b241b3361ce3
[ "MIT" ]
null
null
null
import csv # we investigate 20 continous blocks from ETH BLOCK_NUM = 20 def read_file(filenames): dict = {} tx_num = 0 for filename in filenames: with open(filename, 'r') as file: reader = csv.reader(file) for line in reader: if line == []: ...
32.267606
75
0.532519
3c13bf7ee2f149fd8de535f767a0a492d3f2fdb8
885
py
Python
setup.py
LucaButera/pytorch-grad-cam
582913a34264a45b581d23d13d0b42351ffef3a4
[ "MIT" ]
1
2021-04-16T03:05:24.000Z
2021-04-16T03:05:24.000Z
setup.py
Spicybird/pytorch-grad-cam
977556ee2ceda7487b3fe8c27e62ec26040b960b
[ "MIT" ]
null
null
null
setup.py
Spicybird/pytorch-grad-cam
977556ee2ceda7487b3fe8c27e62ec26040b960b
[ "MIT" ]
null
null
null
import setuptools with open('README.md', mode='r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='grad-cam', version='1.1.0', author='Jacob Gildenblat', author_email='jacob.gildenblat@gmail.com', description='Many Class Activation Map methods implemented in Pytor...
35.4
146
0.674576
2a1fa6a4b1b630d13b7df45a006b56e6dacca449
15,768
py
Python
kedro/framework/cli/starters.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
kedro/framework/cli/starters.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
kedro/framework/cli/starters.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
"""kedro is a CLI for managing Kedro projects. This module implements commands available from the kedro CLI for creating projects. """ import os import re import shutil import stat import tempfile from collections import OrderedDict from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Tuple...
36.331797
98
0.680873
5c6a3e4f0cb119ba897ddce1873ffcdf6aec4a5d
4,815
py
Python
src/utils.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
null
null
null
src/utils.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
3
2021-11-12T17:13:45.000Z
2021-11-23T14:07:50.000Z
src/utils.py
advancedbioimagingcenter/opticalaberrations
80e642925bdc907d135717499e15d3217b5c6a0a
[ "BSD-2-Clause" ]
null
null
null
import logging import multiprocessing as mp import sys from typing import Any, List import io import numpy as np import pandas as pd from tqdm import tqdm import matplotlib.pyplot as plt import vis from preprocessing import center_crop from synthetic import SyntheticPSF from wavefront import Wavefront logging.basic...
27.672414
97
0.638214
2b76589933cc1fee3f5146344b6c13dec23d4680
5,506
py
Python
uiflow/components/input.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
13
2021-09-27T14:53:15.000Z
2022-02-15T05:48:01.000Z
uiflow/components/input.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
45
2021-10-13T08:47:28.000Z
2022-02-15T09:16:51.000Z
uiflow/components/input.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
null
null
null
from typing import Any, Callable, List, Dict from idom import html, component # from data.common import Select class_str = """text-primary-500 bg-transparent placeholder-secondary-400 w-full px-4 py-2.5 mt-2 text-base transition duration-500 ease-in-out transform border-trans...
30.087432
276
0.556484
9ff34955465a22d249ec05606dc95ed22e5d5610
270
py
Python
dist/snippets/woosmap_http_zones/woosmap_http_zones.py
woosmap/openapi-specification
7f934628a75695884db2fa29dd1d04efd1fb20de
[ "MIT" ]
null
null
null
dist/snippets/woosmap_http_zones/woosmap_http_zones.py
woosmap/openapi-specification
7f934628a75695884db2fa29dd1d04efd1fb20de
[ "MIT" ]
3
2021-12-20T16:15:13.000Z
2022-02-15T00:44:19.000Z
dist/snippets/woosmap_http_zones/woosmap_http_zones.py
woosmap/openapi-specification
7f934628a75695884db2fa29dd1d04efd1fb20de
[ "MIT" ]
null
null
null
# [START woosmap_http_zones] import requests url = "https://api.woosmap.com/zones/ZoneA/?private_key=YOUR_PRIVATE_API_KEY" payload={} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text) # [END woosmap_http_zones]
20.769231
77
0.759259
8ede460bd8fcc02049fe028261dea40e63202e0a
1,411
py
Python
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
4
2020-03-31T01:18:43.000Z
2020-11-21T16:53:02.000Z
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
null
null
null
contents/2020_ITinerary/assets/session_1/car.py
EunSeong-Park/ITinerary
7e33613e3382f3e4b4404ad6795bc28823c7641d
[ "MIT" ]
null
null
null
# skeleton class Car: def __init__(self, name, mileage, max_fuel): self.name = name self.mileage = mileage self.max_fuel = max_fuel self.fuel = self.max_fuel self.dist = 0 def status(self): ''' Show the current status of the car it should be called after brrr() and gas_statation() ...
26.12963
81
0.582566
f1c91d772c4cfd53993b6e840638374b17338016
298
py
Python
nlpaug/util/visual/wave.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
1
2019-11-11T06:47:43.000Z
2019-11-11T06:47:43.000Z
nlpaug/util/visual/wave.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
null
null
null
nlpaug/util/visual/wave.py
avostryakov/nlpaug
f75770c230fe586cf21d11ad3342c2f160560d6a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import librosa.display class VisualWave: @staticmethod def visual(title, audio, sample_rate): plt.figure(figsize=(8, 4)) librosa.display.waveplot(audio, sr=sample_rate) plt.title(title) plt.tight_layout() plt.show()
22.923077
55
0.661074
933f5985b53195c174ae29fcbec7fa876ce84210
7,480
py
Python
app/tests/refs/amr_dict.py
superphy/spfy
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
2
2019-05-22T14:29:37.000Z
2020-02-13T11:30:46.000Z
app/tests/refs/amr_dict.py
superphy/backend
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
88
2017-04-07T21:52:10.000Z
2018-03-10T23:12:47.000Z
app/tests/refs/amr_dict.py
superphy/backend
867e61b32ab00ec536378f96a63f0fb379f47c58
[ "Apache-2.0" ]
2
2017-02-10T21:30:13.000Z
2017-06-05T22:30:17.000Z
# output from amr_to_dict.py, to be sent to beautify.py # example is from ECI-2866_lcl.fasta_rgi.tsv_rgi.p amr_dict = {'Antimicrobial Resistance': {'lcl|ECI-2866|NODE_37_length_34194_cov_30.2716_ID_73': [{'START': 13647, 'STOP': 14867, 'ORIENTATION': '-', 'GENE_NAME': 'rosA', 'CUT_OFF': 'Strict'}, {'START': 11733, 'STO...
2,493.333333
7,373
0.648262
b5f46fbca1153eaf8a270e74c33cf7199b38ad76
13,232
py
Python
agents/dqn.py
JarvisEQ/Team7
88056bec8748d68fd46f03ca3a164dbce301ad8e
[ "MIT" ]
null
null
null
agents/dqn.py
JarvisEQ/Team7
88056bec8748d68fd46f03ca3a164dbce301ad8e
[ "MIT" ]
null
null
null
agents/dqn.py
JarvisEQ/Team7
88056bec8748d68fd46f03ca3a164dbce301ad8e
[ "MIT" ]
null
null
null
import os import time import random from collections import namedtuple, deque import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim BUFFER_SIZE = int(1e6) # replay buffer size BATCH_SIZE = 64 # minibatch size GAMMA = 0.99 # discount facto...
35.762162
127
0.599305
a145d7b252375919a282b9e138e9a18322d8a414
665
py
Python
cs433/assignments/lec4/4-7.py
sankalpgambhir/fall2020
79a055493d62c229c2a4ece4a60c7b92c6e5b3c9
[ "WTFPL" ]
null
null
null
cs433/assignments/lec4/4-7.py
sankalpgambhir/fall2020
79a055493d62c229c2a4ece4a60c7b92c6e5b3c9
[ "WTFPL" ]
2
2020-08-27T06:47:50.000Z
2020-08-27T07:08:22.000Z
cs433/assignments/lec4/4-7.py
sankalpgambhir/fall2020
79a055493d62c229c2a4ece4a60c7b92c6e5b3c9
[ "WTFPL" ]
2
2020-08-28T06:07:20.000Z
2020-08-28T06:10:18.000Z
#Exercise4.5 from z3 import * u = DeclareSort('U') # declaring new sort c = Const('c', u ) # declaring a constant of the sort f = Function('f', u , u ) # declaring a function of the sort # declaring a predicate of the sort P = Function('P', u , BoolSort()) phi = And(f(c) == c, P(f(c))) solve(phi) pri...
35
139
0.658647
151e6a1809cc50e20d3ff13495193f6bfd02ee8d
5,635
py
Python
tensorflow_datasets/image/dsprites.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/dsprites.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/dsprites.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # 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 appl...
35
84
0.673647
5121a4a993b5af23df9de7bf717e6bcbed9a5898
6,892
py
Python
numba/tracing.py
tolysz/numba
d7953a18dbf5ea231dc16e967ce8e9b754578ea6
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
numba/tracing.py
tolysz/numba
d7953a18dbf5ea231dc16e967ce8e9b754578ea6
[ "Apache-2.0", "BSD-2-Clause" ]
1
2019-02-11T13:46:30.000Z
2019-02-11T13:46:30.000Z
numba/tracing.py
asodeur/numba
d7953a18dbf5ea231dc16e967ce8e9b754578ea6
[ "Apache-2.0", "BSD-2-Clause" ]
null
null
null
import logging import sys import types import threading import inspect from functools import wraps from itertools import chain from . import config class TLS(threading.local): """Use a subclass to properly initialize the TLS variables in all threads.""" def __init__(self): self.tracing = False ...
31.760369
84
0.528294
7b623eb2fa14e2829f5f55a697d890ed81a99b42
2,160
py
Python
code/tests/test_BGI_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
code/tests/test_BGI_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
code/tests/test_BGI_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Flux Calculation class tests. This script tests the operation of the Background Image Class. Created on Thu Apr 22 13:44:35 2021 @author: denis """ from BGI import Background_Image from CHC import Concrete_Channel_1 import pytest import numpy as np dic = {'em_mode': 0, 'em_gain': 1, 'bi...
19.285714
78
0.553704
5746ac81e44d496c72c48f3add10b887fab290b7
23
py
Python
examples/track/controllers/fake_cam.py
aquilesC/experimentor
1a70760912ef40f0e2aaee44ed1a1e5594fd5b45
[ "MIT" ]
4
2020-05-15T04:07:25.000Z
2020-09-30T22:20:46.000Z
examples/track/controllers/fake_cam.py
aquilesC/experimentor
1a70760912ef40f0e2aaee44ed1a1e5594fd5b45
[ "MIT" ]
null
null
null
examples/track/controllers/fake_cam.py
aquilesC/experimentor
1a70760912ef40f0e2aaee44ed1a1e5594fd5b45
[ "MIT" ]
null
null
null
class FakeCam: pass
11.5
14
0.695652
ebab431ad7189e5370c483c27ea3fe28bae956c8
441
py
Python
client/Networking/payload_configuration.py
punfil/Proj_PR
832383a4042bf234a59ef8f108e85cdd92167635
[ "MIT" ]
null
null
null
client/Networking/payload_configuration.py
punfil/Proj_PR
832383a4042bf234a59ef8f108e85cdd92167635
[ "MIT" ]
null
null
null
client/Networking/payload_configuration.py
punfil/Proj_PR
832383a4042bf234a59ef8f108e85cdd92167635
[ "MIT" ]
null
null
null
from ctypes import * class PayloadConfiguration(Structure): """ Represents the configuration that is received from the server """ _fields_ = [ ("width", c_uint32), ("height", c_uint32), ("background_scale", c_uint32), ("player_count", c_uint32), ("player_id", c_...
24.5
65
0.582766
6554f402d9f496f4aaef2ff6549dee513051644f
5,791
py
Python
lib/jrdb_devkit/detection_eval/convert_labels_to_KITTI.py
VisualComputingInstitute/Person_MinkUNet
fa39764245a022740c0a3d8c85026532fff93e74
[ "MIT" ]
4
2021-10-15T13:40:48.000Z
2022-03-07T06:24:07.000Z
lib/jrdb_devkit/detection_eval/convert_labels_to_KITTI.py
VisualComputingInstitute/Person_MinkUNet
fa39764245a022740c0a3d8c85026532fff93e74
[ "MIT" ]
2
2022-01-29T23:54:01.000Z
2022-02-14T21:00:57.000Z
lib/jrdb_devkit/detection_eval/convert_labels_to_KITTI.py
VisualComputingInstitute/Person_MinkUNet
fa39764245a022740c0a3d8c85026532fff93e74
[ "MIT" ]
2
2021-10-20T13:44:24.000Z
2022-01-30T00:13:58.000Z
import argparse import collections import glob import json import os import numpy as np INPUT_3D_LABELS_PATH = 'labels_3d/*.json' INPUT_2D_LABELS_PATH = 'labels_2d_stitched/*.json' LABEL_ROOT_KEY = 'labels' ENUM_OCCLUSION = ('Fully_visible', 'Mostly_visible', 'Severely_occluded', 'Fully_occluded') ...
38.350993
173
0.573303
2801d271f6e950429c0cba3dd24afd991cedc6d8
1,484
py
Python
studies/migrations/0045_add_compensation_description.py
rhodricusack/lookit-api
6591bda6d5e408223a0428fa7da6fd86d4c01386
[ "MIT" ]
9
2018-06-26T17:15:27.000Z
2021-11-21T17:19:01.000Z
studies/migrations/0045_add_compensation_description.py
rhodricusack/lookit-api
6591bda6d5e408223a0428fa7da6fd86d4c01386
[ "MIT" ]
496
2018-02-19T19:18:24.000Z
2022-03-31T17:01:16.000Z
studies/migrations/0045_add_compensation_description.py
rhodricusack/lookit-api
6591bda6d5e408223a0428fa7da6fd86d4c01386
[ "MIT" ]
16
2018-07-06T23:35:39.000Z
2021-11-21T17:52:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-04 19:45 from __future__ import unicode_literals from django.db import migrations, models import project.fields.datetime_aware_jsonfield class Migration(migrations.Migration): dependencies = [("studies", "0044_unified_ember_app")] operations...
30.285714
100
0.491914
77e4261e95eebf25ab76f176e034b31c9ffe5a71
32,490
py
Python
src/prefect/engine/task_runner.py
dshahid380/prefect
045e8a019610411941b4f9c514dbf1a124756577
[ "Apache-2.0" ]
null
null
null
src/prefect/engine/task_runner.py
dshahid380/prefect
045e8a019610411941b4f9c514dbf1a124756577
[ "Apache-2.0" ]
null
null
null
src/prefect/engine/task_runner.py
dshahid380/prefect
045e8a019610411941b4f9c514dbf1a124756577
[ "Apache-2.0" ]
null
null
null
import collections import copy import itertools import threading from functools import partial, wraps from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Set, Sized, Tuple, Union, ) import pendulum import prefect from prefect i...
37.259174
128
0.568359
2a95db77f618cc6806336c6c4dfc1792b9707c33
1,141
py
Python
virtualscreening/vina/python/analysis/call_analysis.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
3
2015-01-19T20:12:59.000Z
2019-02-21T18:43:04.000Z
virtualscreening/vina/python/analysis/call_analysis.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
22
2015-01-05T16:48:54.000Z
2017-01-21T16:36:10.000Z
virtualscreening/vina/python/analysis/call_analysis.py
rodrigofaccioli/drugdesign
de15880af361a010729b1f4fbc8a75a2b36688a6
[ "Apache-2.0" ]
11
2015-03-03T13:32:24.000Z
2020-04-03T11:22:24.000Z
#! /usr/bin/env python """ Routines to performe the analysis of virtual screening These routines were developed by: Rodrigo Antonio Faccioli - rodrigo.faccioli@usp.br / rodrigo.faccioli@gmail.com Leandro Oliveira Bortot - leandro.bortot@usp.br / leandro.obt@gmail.com """ import analysis import an...
36.806452
85
0.751972
9ae3916199883ba8fbd9f2533445add8f14f5a84
5,017
py
Python
outputbot.py
ChoudhuryVishal/LOCO-TRIVIA-MINDS
6147125ac22712da30fea375adf43aaf8539acfc
[ "Apache-2.0" ]
null
null
null
outputbot.py
ChoudhuryVishal/LOCO-TRIVIA-MINDS
6147125ac22712da30fea375adf43aaf8539acfc
[ "Apache-2.0" ]
2
2021-03-31T19:07:35.000Z
2021-12-13T20:04:29.000Z
outputbot.py
ChoudhuryVishal/LOCO-TRIVIA-MINDS
6147125ac22712da30fea375adf43aaf8539acfc
[ "Apache-2.0" ]
1
2019-11-25T15:58:24.000Z
2019-11-25T15:58:24.000Z
import asyncio import discord import data token = data.bot_token client = discord.Client() number1 = 0 number2 = 0 number3 = 0 game_running = False local_game_running = False def update_embed(): global number1 global number2 global number3 highlighter1 = highlighter2 = highlighter3...
38.592308
165
0.653578
9c76e19286ac9a2617dff55dd89ef56040a49bb8
4,144
py
Python
movr/movr.py
KenMwaura1/movr-app-1
0946fe28375a91c76ba1a3d1a2d4a96b598f2824
[ "Apache-2.0" ]
null
null
null
movr/movr.py
KenMwaura1/movr-app-1
0946fe28375a91c76ba1a3d1a2d4a96b598f2824
[ "Apache-2.0" ]
null
null
null
movr/movr.py
KenMwaura1/movr-app-1
0946fe28375a91c76ba1a3d1a2d4a96b598f2824
[ "Apache-2.0" ]
null
null
null
""" Defines the connection to the database for the MovR app. """ from cockroachdb.sqlalchemy import run_transaction from sqlalchemy import create_engine from sqlalchemy.dialects import registry from sqlalchemy.orm import sessionmaker from .transactions import (add_vehicle_txn, end_ride_txn, get_vehicle_txn, ...
35.418803
81
0.573118
41dd6882fa9a583fe570a9949b16d9ddce95a726
393
py
Python
qcloudsdkcdn/RefreshCdnUrlRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcdn/RefreshCdnUrlRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcdn/RefreshCdnUrlRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class RefreshCdnUrlRequest(Request): def __init__(self): super(RefreshCdnUrlRequest, self).__init__( 'cdn', 'qcloudcliV1', 'RefreshCdnUrl', 'cdn.api.qcloud.com') def get_urls(self): return self.get_params().get('ur...
24.5625
72
0.648855
f8324896046d8b47814ebc02e95f5bd01f8df6da
8,045
py
Python
inference.py
ishine/tacotron2-1
ec155d485a62b954b91642aff10e7bcbd2025d74
[ "BSD-3-Clause" ]
null
null
null
inference.py
ishine/tacotron2-1
ec155d485a62b954b91642aff10e7bcbd2025d74
[ "BSD-3-Clause" ]
null
null
null
inference.py
ishine/tacotron2-1
ec155d485a62b954b91642aff10e7bcbd2025d74
[ "BSD-3-Clause" ]
null
null
null
# ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions...
41.25641
144
0.704413
796a0b8231a1ba5e94e84bb083a60a754bda986f
177
py
Python
pyxrd/__version.py
Haiqian-MA/PyXRD
27966da2270310ced9cce8c25c5b7c9d8de301dc
[ "BSD-2-Clause" ]
null
null
null
pyxrd/__version.py
Haiqian-MA/PyXRD
27966da2270310ced9cce8c25c5b7c9d8de301dc
[ "BSD-2-Clause" ]
null
null
null
pyxrd/__version.py
Haiqian-MA/PyXRD
27966da2270310ced9cce8c25c5b7c9d8de301dc
[ "BSD-2-Clause" ]
null
null
null
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. __version__ = "0.8.2"
12.642857
52
0.677966
e8028334a272e47b501676afa2b552a725c2560e
16,096
py
Python
source/synthDrivers/oneCore.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/synthDrivers/oneCore.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
source/synthDrivers/oneCore.py
SWEN-712/screen-reader-brandonp728
e30c25ad2d10ce632fac0548696a61a872328f59
[ "bzip2-1.0.6" ]
null
null
null
#synthDrivers/oneCore.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2016-2019 Tyler Spivey, NV Access Limited, James Teh, Leonard de Ruijter #This file is covered by the GNU General Public License. #See the file COPYING for more details. """Synth driver for Windows OneCore voices. """ import os import ...
34.764579
124
0.750435
fe1ad6251b01f58dca330a07d911002c27a6196b
16,952
py
Python
sympy/discrete/tests/test_convolutions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
2
2019-12-16T16:02:58.000Z
2020-01-20T04:07:18.000Z
sympy/discrete/tests/test_convolutions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
null
null
null
sympy/discrete/tests/test_convolutions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
null
null
null
from sympy import sqrt, pi, E, exp, Rational from sympy.core import S, symbols, I from sympy.discrete.convolutions import ( convolution, convolution_fft, convolution_ntt, convolution_fwht, convolution_subset, covering_product, intersecting_product) from sympy.utilities.pytest import raises from sympy.abc import...
46.443836
134
0.512683
bb201f4ab12a75dc3488a50f8605fdc80337dcf1
330
py
Python
main.py
omniaura/omnisynth-dev
ce9e3cfe1302ff53c8adac4723a4d7df15350caa
[ "Apache-2.0" ]
1
2022-01-02T03:16:08.000Z
2022-01-02T03:16:08.000Z
main.py
omniaura/omnisynth-dev
ce9e3cfe1302ff53c8adac4723a4d7df15350caa
[ "Apache-2.0" ]
null
null
null
main.py
omniaura/omnisynth-dev
ce9e3cfe1302ff53c8adac4723a4d7df15350caa
[ "Apache-2.0" ]
null
null
null
''' Boots the OmniSynth Server for API calls and starts an instance of SuperCollider (OmniSynth DSP) ''' import gevent.subprocess as subprocess # starts the server as a subprocess def start_server(): subprocess.call(['python', 'modules/start_server.py']) if __name__ == "__main__": start_...
23.571429
97
0.690909
9d7ca135fe3ecd99f18dc7ec5b4dbbba46a9813a
1,560
py
Python
adafruit_display_notification/apple.py
tannewt/Adafruit_CircuitPython_Display_Notification
c881874fc891a3a119f073f6665ba71593041a5a
[ "MIT" ]
null
null
null
adafruit_display_notification/apple.py
tannewt/Adafruit_CircuitPython_Display_Notification
c881874fc891a3a119f073f6665ba71593041a5a
[ "MIT" ]
null
null
null
adafruit_display_notification/apple.py
tannewt/Adafruit_CircuitPython_Display_Notification
c881874fc891a3a119f073f6665ba71593041a5a
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Scott Shawcroft for Adafruit Industries LLC # # 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 ...
50.322581
93
0.783333
dd688bedfe601d33525df6b0bd2993076a875c6d
32,184
py
Python
selfdrive/controls/controlsd.py
baldwalker/openpilot-1
c85e482613ce7fc4ea9523c3d0cd8e01679ab5ca
[ "MIT" ]
1
2021-07-28T01:46:34.000Z
2021-07-28T01:46:34.000Z
selfdrive/controls/controlsd.py
baldwalker/openpilot-1
c85e482613ce7fc4ea9523c3d0cd8e01679ab5ca
[ "MIT" ]
null
null
null
selfdrive/controls/controlsd.py
baldwalker/openpilot-1
c85e482613ce7fc4ea9523c3d0cd8e01679ab5ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import math from cereal import car, log from common.numpy_fast import clip, interp from common.realtime import sec_since_boot, config_realtime_process, Priority, Ratekeeper, DT_CTRL from common.profiler import Profiler from common.params import Params, put_nonblocking import cereal.mess...
42.459103
138
0.703859
59bdf952ecf56f6b5e2c5e89f6068302650eb90b
1,388
py
Python
poom/records.py
xDiaym/poom
8f0e59bc0acc39b77fe761f9c1e2386e37bc6d78
[ "MIT" ]
3
2022-01-01T10:28:17.000Z
2022-02-06T19:06:24.000Z
poom/records.py
xDiaym/poom
8f0e59bc0acc39b77fe761f9c1e2386e37bc6d78
[ "MIT" ]
4
2022-01-09T13:01:20.000Z
2022-02-11T14:55:01.000Z
poom/records.py
xDiaym/poom
8f0e59bc0acc39b77fe761f9c1e2386e37bc6d78
[ "MIT" ]
null
null
null
import json from dataclasses import dataclass from pathlib import Path from typing import Any, Optional @dataclass class Record: game_time: float # UNIX delta time health: float def merge_best(self, other: "Record") -> None: self.game_time = min(self.game_time, other.game_time) self.heal...
26.188679
61
0.636888
05e6c5fb6a589448ec23fa6709b7514a3013b16f
1,266
py
Python
recipe_scrapers/cookstr.py
IsaiahData/recipe-scrapers
d9ffc2e066af1d82f244806cff6f7bdd1a5a38d0
[ "MIT" ]
1
2021-01-18T01:43:36.000Z
2021-01-18T01:43:36.000Z
recipe_scrapers/cookstr.py
IsaiahData/recipe-scrapers
d9ffc2e066af1d82f244806cff6f7bdd1a5a38d0
[ "MIT" ]
null
null
null
recipe_scrapers/cookstr.py
IsaiahData/recipe-scrapers
d9ffc2e066af1d82f244806cff6f7bdd1a5a38d0
[ "MIT" ]
null
null
null
from ._abstract import AbstractScraper from ._utils import get_minutes, normalize_string class Cookstr(AbstractScraper): @classmethod def host(self): return 'cookstr.com' def title(self): return normalize_string(self.soup.find( 'h1', {'class': 'articleHeadline'} ...
25.32
61
0.553712
b81f9fa904a1956fb6e1a16659a824608ab7f516
1,182
py
Python
RecoTracker/IterativeTracking/python/iterativeTkUtils.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
1
2020-08-12T08:37:04.000Z
2020-08-12T08:37:04.000Z
RecoTracker/IterativeTracking/python/iterativeTkUtils.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
RecoTracker/IterativeTracking/python/iterativeTkUtils.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
# This file provides additional helpers for getting information of # iterations in automated way. import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg import RecoTracker.IterativeTracking.iterativeTk_cff as _iterativeTk_cff def getMVASelectors(postfix): # assume naming convention that the iteration name ...
38.129032
84
0.668359
8191e25c052b557395199f8f501788a34c2bdbc5
3,204
py
Python
phoneme_encoder.py
ushikado/yuyuyui-speech-synthesis-sever
91f7177be6f933d7152db28f75c3101c090a1a5e
[ "MIT" ]
1
2022-01-30T19:39:14.000Z
2022-01-30T19:39:14.000Z
phoneme_encoder.py
ushikado/yuyuyui-speech-synthesis-sever
91f7177be6f933d7152db28f75c3101c090a1a5e
[ "MIT" ]
null
null
null
phoneme_encoder.py
ushikado/yuyuyui-speech-synthesis-sever
91f7177be6f933d7152db28f75c3101c090a1a5e
[ "MIT" ]
null
null
null
import pyopenjtalk import regex from urllib.request import urlretrieve import os import tarfile user_dict = [ ("友奈", "ゆうな"), ("犬吠埼風", "いぬぼうざきふう"), ("風先輩", "ふうせんぱい"), ("風殿", "ふうどの"), ("風様", "ふうさま"), ("風達", "ふうたち"), ("風以外", "ふう以外"), ("風さん", "ふうさん"), ("つむじ風", "つむじかぜ"), ("よい風", "よいか...
25.632
110
0.488452
ec1371755aedec2515668ba2cb8817ff9e981391
10,635
py
Python
aiida/orm/implementation/querybuilder.py
borellim/aiida_core
eebef392c81e8b130834a92e1d7abf5e2e30b3ce
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/implementation/querybuilder.py
borellim/aiida_core
eebef392c81e8b130834a92e1d7abf5e2e30b3ce
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/implementation/querybuilder.py
borellim/aiida_core
eebef392c81e8b130834a92e1d7abf5e2e30b3ce
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
36.672414
153
0.601787
09154bf7b5d1616cf9d1c7006c88f910ae3c964f
82
py
Python
enthought/chaco/barplot.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/chaco/barplot.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/chaco/barplot.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from chaco.barplot import *
20.5
38
0.829268
daafeeedcb3ade81ae30e3bc875e78ccb0507a8c
11,639
py
Python
sdk/python/pulumi_rabbitmq/shovel.py
pulumi/pulumi-rabbitmq
f380f679fa512a40106ac1ae0d8bbf1766ff4ecf
[ "ECL-2.0", "Apache-2.0" ]
3
2020-04-14T15:37:05.000Z
2021-12-01T20:57:40.000Z
sdk/python/pulumi_rabbitmq/shovel.py
pulumi/pulumi-rabbitmq
f380f679fa512a40106ac1ae0d8bbf1766ff4ecf
[ "ECL-2.0", "Apache-2.0" ]
25
2019-12-06T13:36:32.000Z
2022-03-31T15:41:19.000Z
sdk/python/pulumi_rabbitmq/shovel.py
pulumi/pulumi-rabbitmq
f380f679fa512a40106ac1ae0d8bbf1766ff4ecf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
35.163142
134
0.592147
848b7325a684e0dbbbfad1d6a027a87463ca5738
2,444
py
Python
tests/conftest.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
tests/conftest.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
tests/conftest.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import warnings import pyro def pytest_configure(config): config.addinivalue_line("markers", "init(rng_seed): initialize the RNG using the seed provided.") config.addinivalue_line("markers", ...
33.479452
119
0.66162
0f963dd4e42a6a35bbacb43cad11e34231393fc3
6,796
py
Python
src/datadog_api_client/v1/model/ip_prefixes_process.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/ip_prefixes_process.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/ip_prefixes_process.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 from datadog_api_client.v1.model_uti...
40.694611
108
0.583873
4930cac47ddd0de2de4e536448e3330e81fc0850
25
py
Python
pytest_order/__init__.py
Joacchim/pytest-order
1e873d5c2b67211ed3bc578ee72bb3d986906532
[ "MIT" ]
41
2021-03-16T07:57:00.000Z
2022-03-01T10:02:10.000Z
pytest_order/__init__.py
Joacchim/pytest-order
1e873d5c2b67211ed3bc578ee72bb3d986906532
[ "MIT" ]
39
2021-03-04T16:50:04.000Z
2022-02-18T18:51:14.000Z
pytest_order/__init__.py
Joacchim/pytest-order
1e873d5c2b67211ed3bc578ee72bb3d986906532
[ "MIT" ]
9
2021-03-04T18:27:12.000Z
2021-12-16T06:46:13.000Z
__version__ = "1.1.dev0"
12.5
24
0.68
2bd062c855d2fdace5e28fb1ff7354eb6abff089
2,459
py
Python
src/tidygraphtool/pipes.py
jstonge/tidygraphtool
6bf0a0e11d667e7cd1cb8f0ff1f61cb930536ce1
[ "MIT" ]
null
null
null
src/tidygraphtool/pipes.py
jstonge/tidygraphtool
6bf0a0e11d667e7cd1cb8f0ff1f61cb930536ce1
[ "MIT" ]
null
null
null
src/tidygraphtool/pipes.py
jstonge/tidygraphtool
6bf0a0e11d667e7cd1cb8f0ff1f61cb930536ce1
[ "MIT" ]
null
null
null
class Pipe(): """Making functions pipeable""" def __init__(self, base_object=None, *args, unpack_input=False, use_first_arg_only=False, try_normal_first=False, **kwargs): self.__doc__ = base_object.__doc__ self.base_object = base_object self.args = args self.kwargs = kwargs ...
39.66129
132
0.612444
890c6920873f19004956ce6768824dc034fc5d51
1,341
py
Python
pinax/projects/intranet_project/urls.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
1
2015-11-08T11:32:53.000Z
2015-11-08T11:32:53.000Z
pinax/projects/intranet_project/urls.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
null
null
null
pinax/projects/intranet_project/urls.py
ericholscher/pinax
6ba4585671c6a3d9ac154441296f8a403453469f
[ "MIT" ]
null
null
null
from django.conf.urls.defaults import * from django.conf import settings from django.views.generic.simple import direct_to_template from wiki import models as wiki_models from django.contrib import admin admin.autodiscover() from account.openid_consumer import PinaxConsumer urlpatterns = patterns('', url(r'^$...
31.928571
99
0.655481
1a2331fb7164b3ef8af1f152019e2164e17eb1dd
2,563
py
Python
sdk/python/pulumi_azure_nextgen/resources/v20160201/get_deployment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20160201/get_deployment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20160201/get_deployment.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
32.443038
138
0.673039
b01a3efca2c990007f51965f1908009ba89e5dc1
403
py
Python
1-asyncio/10.4.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
9
2021-02-04T07:00:59.000Z
2022-03-21T06:28:27.000Z
1-asyncio/10.4.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
null
null
null
1-asyncio/10.4.py
rcmgn/kts-school-backend
8a895043b7f0156ec49554504198b631df41d2cd
[ "MIT" ]
4
2021-10-20T18:44:22.000Z
2022-02-16T19:11:49.000Z
import asyncio class AsyncManager: def __init__(self): pass async def __aenter__(self): await asyncio.sleep(1) print('finished __aenter__') return self async def __aexit__(self, *args): await asyncio.sleep(1) print('finished __aexit__') async def main(): ...
19.190476
37
0.62531
4dcf80828bcea6580984e90bb248acf0fd7154c8
151
py
Python
niio/__init__.py
kristianeschenburg/io
f5bd75e0ee082162bed3476b78cccb02af429ca6
[ "BSD-3-Clause" ]
2
2019-04-05T15:51:16.000Z
2019-04-08T05:14:49.000Z
niio/__init__.py
kristianeschenburg/io
f5bd75e0ee082162bed3476b78cccb02af429ca6
[ "BSD-3-Clause" ]
null
null
null
niio/__init__.py
kristianeschenburg/io
f5bd75e0ee082162bed3476b78cccb02af429ca6
[ "BSD-3-Clause" ]
null
null
null
from ._version import get_versions __version__ = get_versions()['version'] del get_versions from . import (convert, loaded, structures, tables, write)
30.2
58
0.788079
0cfa6097555ee79860b333e30442933bab30c4e6
14,769
py
Python
fastreid/utils/checkpoint.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
1
2021-03-28T15:03:58.000Z
2021-03-28T15:03:58.000Z
fastreid/utils/checkpoint.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
fastreid/utils/checkpoint.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import collections import copy import logging import os from collections import defaultdict from typing import Any import numpy as np import torch import torch.nn as nn from torch.utils.data import Dataset from termcolor im...
35.24821
81
0.588869
70cf01e2cd377b85f10250f5688ec65b6699580c
8,883
py
Python
tests/h2o/test_h2o_model_export.py
freefrag/mlflow
b8e74cfc591397290e1c1ba2600be7daa64b4c05
[ "Apache-2.0" ]
1,825
2018-06-05T17:30:39.000Z
2022-03-24T13:39:46.000Z
tests/h2o/test_h2o_model_export.py
freefrag/mlflow
b8e74cfc591397290e1c1ba2600be7daa64b4c05
[ "Apache-2.0" ]
200
2018-06-06T02:30:57.000Z
2018-07-30T17:06:34.000Z
tests/h2o/test_h2o_model_export.py
freefrag/mlflow
b8e74cfc591397290e1c1ba2600be7daa64b4c05
[ "Apache-2.0" ]
301
2018-06-05T17:47:48.000Z
2022-03-17T12:09:17.000Z
# pep8: disable=E501 from __future__ import print_function import os import pytest import yaml import json import pandas as pd import pandas.testing from collections import namedtuple import sklearn.datasets as datasets import h2o from h2o.estimators.gbm import H2OGradientBoostingEstimator import mlflow.h2o import ...
39.30531
100
0.738827
a2462ba6133a02b0f21a5007596618c5eb968b1a
438
py
Python
seg/src/code/predict.py
Nick17t/UD-Net
fd162f1e495bee3edc43f34b3d892ac007d9f819
[ "MIT" ]
2
2022-01-17T08:59:08.000Z
2022-02-22T03:37:23.000Z
seg/src/code/predict.py
Nick17t/UD-Net
fd162f1e495bee3edc43f34b3d892ac007d9f819
[ "MIT" ]
null
null
null
seg/src/code/predict.py
Nick17t/UD-Net
fd162f1e495bee3edc43f34b3d892ac007d9f819
[ "MIT" ]
1
2022-02-22T03:32:51.000Z
2022-02-22T03:32:51.000Z
''' Created on 2019年4月3日 @author: vcc ''' import models from reader import Reader from process import Process if __name__ == '__main__': reader = Reader() reader.scan_pic('../data/source/test') # 这里的predictmask为空列表,用于存放模型输出结果 imglist , predictmask = reader.read_boost() unet = models.unet(pretrain...
24.333333
98
0.723744
04fafcf9719039b9d742beeccb09ed87d40127d0
2,273
py
Python
src/labster/conftest.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
2
2019-11-11T22:09:58.000Z
2020-01-20T19:44:30.000Z
src/labster/conftest.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
15
2020-03-31T10:58:37.000Z
2022-01-22T09:14:49.000Z
src/labster/conftest.py
jean3108/labandco
4317e7d3875f10d76076ad5fc68c1ba3c12badba
[ "Apache-2.0" ]
2
2021-05-28T12:20:24.000Z
2021-09-08T11:27:57.000Z
"""Configuration and injectable fixtures for Pytest.""" from __future__ import annotations import logging import os from flask import Flask from flask_sqlalchemy import SQLAlchemy from pytest import fixture from sqlalchemy.exc import SQLAlchemyError from typeguard import TypeChecker from labster.app import create_ap...
20.294643
76
0.688957
1478334485f12138fc2a2b07a640621cb36a1445
464
py
Python
src/utility_lib/number_utilities/calculations.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
src/utility_lib/number_utilities/calculations.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
src/utility_lib/number_utilities/calculations.py
DonalChilde/utility_lib
9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545
[ "MIT" ]
null
null
null
from typing import Union def percent_difference(foo: Union[int, float], bar: Union[int, float]) -> float: if bar == 0: return 0 diff = foo - bar return diff / bar def safe_div(num: Union[int, float], denom: Union[int, float]) -> float: # https://stackoverflow.com/a/27317595/105844 num = ...
23.2
80
0.612069
b7e63c3fa457625ba5b4b4fad0e5bc615734d0c2
129
py
Python
python-sdk/nuscenes/eval/panoptic/panoptic_seg_evaluator.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
python-sdk/nuscenes/eval/panoptic/panoptic_seg_evaluator.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
python-sdk/nuscenes/eval/panoptic/panoptic_seg_evaluator.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:dc0a79583dcec8c7dc03e423c5ab679dad899154d99153ca17dcf8c6c0dbf83e size 7372
32.25
75
0.883721
5df244d995b88a581706a6753b29b07a9d0eb3e5
815
py
Python
test/test_environments.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
null
null
null
test/test_environments.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
null
null
null
test/test_environments.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
1
2020-02-18T20:56:57.000Z
2020-02-18T20:56:57.000Z
import unittest import os class TestEnvironment(unittest.TestCase): def setUp(self) -> None: if os.environ.get("user_name1"): del os.environ['user_name1'] if os.environ.get("password1"): del os.environ['password1'] def test_environments_absent(self): with self...
28.103448
73
0.646626
af43ac8e5a3d55137d11d8405a00e5fa7dad92c1
3,579
py
Python
sel_links.py
xCodeR01/selenium_testing
9ec56db55714cc8392e43cfbbfaceee8b257ca8d
[ "MIT" ]
null
null
null
sel_links.py
xCodeR01/selenium_testing
9ec56db55714cc8392e43cfbbfaceee8b257ca8d
[ "MIT" ]
null
null
null
sel_links.py
xCodeR01/selenium_testing
9ec56db55714cc8392e43cfbbfaceee8b257ca8d
[ "MIT" ]
null
null
null
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By # creating chromium driver with custom options op = webdriver.ChromeOptions() op.binary_location = "chrome-win\\chrome.exe" # op.add_argument("--headless") driver = webdriver.Chrome( ...
42.105882
139
0.736239
fddff55e1672d1184fe35ae3c71ba1ce853d2d5b
347
py
Python
Algorithms/grading_students.py
Sudhir-Pawar/Hackerrank-Codes
6996a71a5dbd33e8d347d381f9c0c458717abc96
[ "MIT" ]
70
2020-10-04T09:23:15.000Z
2022-02-01T09:44:39.000Z
Algorithms/grading_students.py
Sudhir-Pawar/Hackerrank-Codes
6996a71a5dbd33e8d347d381f9c0c458717abc96
[ "MIT" ]
148
2020-06-05T15:32:12.000Z
2020-11-01T08:29:01.000Z
Algorithms/grading_students.py
Sudhir-Pawar/Hackerrank-Codes
6996a71a5dbd33e8d347d381f9c0c458717abc96
[ "MIT" ]
298
2020-10-04T04:27:01.000Z
2022-03-07T04:02:59.000Z
""" Name : Grading Students Category : Implementation Difficulty : Easy Language : Python3 Question Link : https://www.hackerrank.com/challenges/grading/problem """ n = int(input().strip()) for _ in range(n): x = int(input().strip()) if x >= 38 and x % 5 > 2: while x % ...
20.411765
69
0.559078
7ba57923aa84795cb0a0d9bc17e0c955f8722364
343
py
Python
sdk/python/pulumi_gcp/folder/__init__.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/folder/__init__.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/folder/__init__.py
vrutkovs/pulumi-gcp
ced632feea265d95a38c7ae02826deaae77fb358
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .iam_binding import * from .iam_member import * from .iam_policy import * from .organi...
34.3
87
0.731778
7392b6d5a18afb229a000af4e2eb8f767ab9afcd
2,691
py
Python
pybot/whatsapp/feature/BaseFeature.py
iren86/whatsapp-pybot
28f0d855f53090cb9a0c88bdbca29f6f93efc95e
[ "MIT" ]
4
2017-08-15T10:04:11.000Z
2019-09-01T08:28:42.000Z
pybot/whatsapp/feature/BaseFeature.py
iren86/whatsapp-pybot
28f0d855f53090cb9a0c88bdbca29f6f93efc95e
[ "MIT" ]
null
null
null
pybot/whatsapp/feature/BaseFeature.py
iren86/whatsapp-pybot
28f0d855f53090cb9a0c88bdbca29f6f93efc95e
[ "MIT" ]
2
2019-08-27T19:14:03.000Z
2019-10-12T21:50:03.000Z
# -*- coding: utf-8 -*- from random import uniform from time import sleep from selenium.common.exceptions import NoSuchElementException from pybot.whatsapp.driver import ChromeFactory from pybot.whatsapp.util.AppUtil import new_pagesource_path from pybot.whatsapp.util.AppUtil import new_screenshot_path RANDOM_SLEEP...
32.421687
104
0.680045
64ab14d58f430b2f32607171289e7ad1bbaf7b81
576
py
Python
slack.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
1
2018-09-22T22:34:35.000Z
2018-09-22T22:34:35.000Z
slack.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
slack.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
# from https://github.com/JonathanNickerson/talon_voice_user_scripts # jsc added smileys from talon.voice import Context, Key ctx = Context('slack', bundle='com.tinyspeck.slackmacgap') keymap = { #'channel': Key('cmd-k'), 'channel up': Key('alt-up'), 'channel down': Key('alt-down'), '(highlight command ...
26.181818
72
0.626736
1e8766665c804f994c02066e8487c88aaf7f3ab8
56
py
Python
server.py
jvdgoltz/mini-bot
ca51f37bfd8d53eaedac4df4ebba6be6ed0eeacf
[ "MIT" ]
null
null
null
server.py
jvdgoltz/mini-bot
ca51f37bfd8d53eaedac4df4ebba6be6ed0eeacf
[ "MIT" ]
null
null
null
server.py
jvdgoltz/mini-bot
ca51f37bfd8d53eaedac4df4ebba6be6ed0eeacf
[ "MIT" ]
null
null
null
# Here we make the server for a remote controlled robot
28
55
0.785714
e00794b5dc2a2d1580aae20ee39377a162eafa4c
4,270
py
Python
tools/mqtt_bruteforce.py
galletitaoreo/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
5
2019-08-07T08:59:53.000Z
2021-05-14T19:35:57.000Z
tools/mqtt_bruteforce.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
null
null
null
tools/mqtt_bruteforce.py
Harusenpai/PythonPentest
abd46cc251abfc3fba02d7f03ddd049803dc6047
[ "MIT" ]
2
2021-03-31T21:20:19.000Z
2021-08-28T04:21:12.000Z
#!/usr/bin/env python2 # Stupid MQTT Brute Forcer # Coded by Alex. Twitter: @_tmp0 # https://github.com/zombiesam/joffrey/blob/master/joffrey-BH-2017.py # Shoutout to ch3rn0byl, arch4y, evlb, acidgen and h4v0k # Todo: try on broker with tls. make stuff pretty? try: import paho.mqtt.client as mqtt except: print...
30.283688
123
0.60726
1c4e01f194711f376c920698342f053e2c7946fb
5,066
py
Python
butterfly/measurement.py
bwprice/butterfly-wings
18b138e7a907e372029b9c8e927bd06882bac964
[ "BSD-3-Clause" ]
1
2020-05-30T23:30:08.000Z
2020-05-30T23:30:08.000Z
butterfly/measurement.py
bwprice/butterfly-wings
18b138e7a907e372029b9c8e927bd06882bac964
[ "BSD-3-Clause" ]
null
null
null
butterfly/measurement.py
bwprice/butterfly-wings
18b138e7a907e372029b9c8e927bd06882bac964
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from joblib import Memory location = './cachedir' memory = Memory(location, verbose=0) @memory.cache() def main(points_interest, T_space, axes=None): ''' Calculates the length and draws the lines for length of the butterfly wings. Parameters ---------- ax: array the ar...
39.271318
109
0.580932
d63d7b88c7b4bc182b2a7534431d84d42e38cdba
1,974
py
Python
player.py
king2b3/ow_team_picker
1d1bdc638df7870d92eaaab7225f36bdaf1f06e8
[ "MIT" ]
null
null
null
player.py
king2b3/ow_team_picker
1d1bdc638df7870d92eaaab7225f36bdaf1f06e8
[ "MIT" ]
null
null
null
player.py
king2b3/ow_team_picker
1d1bdc638df7870d92eaaab7225f36bdaf1f06e8
[ "MIT" ]
null
null
null
from main import roles import random class Player(): def __init__(self, name:str, roles:dict, heroes:dict): """ Parameters: name: str name of the player, which will be printed out roles: dict holds the role preferences for the hero heroes: di...
24.37037
67
0.537487
534892435f2ee30a8f2d556124954249bbde3a42
6,529
py
Python
vnet_manager/environment/lxc.py
ppartarr/vnet-manager
e7e8dfc9014c98f34bce639f48e0baa603d83b67
[ "MIT" ]
null
null
null
vnet_manager/environment/lxc.py
ppartarr/vnet-manager
e7e8dfc9014c98f34bce639f48e0baa603d83b67
[ "MIT" ]
null
null
null
vnet_manager/environment/lxc.py
ppartarr/vnet-manager
e7e8dfc9014c98f34bce639f48e0baa603d83b67
[ "MIT" ]
null
null
null
import shlex from logging import getLogger from time import sleep from vnet_manager.operations.image import check_if_lxc_image_exists, create_lxc_image_from_container from vnet_manager.operations.profile import check_if_lxc_profile_exists, create_vnet_lxc_profile, delete_vnet_lxc_profile from vnet_manager.operations.s...
46.971223
133
0.730433
3458440e7755a643a13050e863d2f373f9ac62d3
1,116
py
Python
bff.py
jsabak/advanved_python_for_testers
fc55ca4d5d5ad7beebee489193e251a16c3e956b
[ "MIT" ]
1
2020-04-21T20:47:07.000Z
2020-04-21T20:47:07.000Z
bff.py
mkusz/advanced_python_for_testers
fc55ca4d5d5ad7beebee489193e251a16c3e956b
[ "MIT" ]
null
null
null
bff.py
mkusz/advanced_python_for_testers
fc55ca4d5d5ad7beebee489193e251a16c3e956b
[ "MIT" ]
1
2019-11-27T21:32:51.000Z
2019-11-27T21:32:51.000Z
(lambda _:[{1:lambda:[0for _['l']in[[i for(i,x)in enumerate(_['P'])if x=='[']]]and[0for _['i']in[_['i']+1]],2:lambda:[0for _['r']in[[i for(i,x)in enumerate(_['P']) if x==']'][::-1]]]and[0for _['i']in[_['i']+1]],3:lambda:_['c'].close(),'>':lambda:[0for _['p']in[_['p']+1]]and[0for _['i']in[_['i']+1]],'<':lambda:[0for _['...
1,116
1,116
0.401434
852c7fa73251d81111ad4f68bd8ab53c34c7d3ac
2,738
py
Python
api/tests/test_auth.py
I-am-vishalmaurya/django_movie_recommender
7c4bbdc7cc8ee2b279c3fb1b3213c92f9d030bd7
[ "Apache-2.0" ]
null
null
null
api/tests/test_auth.py
I-am-vishalmaurya/django_movie_recommender
7c4bbdc7cc8ee2b279c3fb1b3213c92f9d030bd7
[ "Apache-2.0" ]
null
null
null
api/tests/test_auth.py
I-am-vishalmaurya/django_movie_recommender
7c4bbdc7cc8ee2b279c3fb1b3213c92f9d030bd7
[ "Apache-2.0" ]
null
null
null
from .tests_setup import TestSetup from ..models import CustomUser class TestAuth(TestSetup): def test_user_cannot_register_with_no_data(self): response = self.client.post(self.register_url) self.assertEqual(response.status_code, 400) def test_user_can_register_successfully(self): res...
49.781818
103
0.728269
236e168eaf442d1432e3a0fcc9d16cc12205d251
380
py
Python
composition/__init__.py
wilsonify/music21-tools
78cf5404c1bf5e4ab8b4d5b7b6c76e253d48c8ee
[ "BSD-3-Clause" ]
29
2018-02-07T09:08:22.000Z
2021-06-14T07:38:25.000Z
composition/__init__.py
wilsonify/music21-tools
78cf5404c1bf5e4ab8b4d5b7b6c76e253d48c8ee
[ "BSD-3-Clause" ]
2
2018-05-09T16:45:11.000Z
2019-08-07T20:23:03.000Z
composition/__init__.py
wilsonify/music21-tools
78cf5404c1bf5e4ab8b4d5b7b6c76e253d48c8ee
[ "BSD-3-Clause" ]
12
2018-06-07T14:36:46.000Z
2021-09-01T11:17:06.000Z
# -*- coding: utf-8 -*- """ Files in this package relate to aiding in composition """ __all__ = ['arvo', 'phasing', 'seeger'] # leave off aug30 for now from music21.demos.composition import arvo from music21.demos.composition import phasing from music21.demos.composition import seeger #----------------------------...
21.111111
79
0.571053
fff65161dee82c74f9f91cf30b8ee934853da4fc
1,539
py
Python
fluentcms_emailtemplates/tests/test_replace_fields.py
django-fluent/fluentcms-emailtemplates
29f032dab9f60d05db852d2a1adcbd16e18017d1
[ "Apache-2.0" ]
4
2018-01-08T11:00:32.000Z
2020-05-13T15:21:03.000Z
fluentcms_emailtemplates/tests/test_replace_fields.py
django-fluent/fluentcms-emailtemplates
29f032dab9f60d05db852d2a1adcbd16e18017d1
[ "Apache-2.0" ]
2
2018-01-11T04:20:50.000Z
2018-01-22T21:42:22.000Z
fluentcms_emailtemplates/tests/test_replace_fields.py
django-fluent/fluentcms-emailtemplates
29f032dab9f60d05db852d2a1adcbd16e18017d1
[ "Apache-2.0" ]
2
2018-01-08T08:18:54.000Z
2018-01-19T14:02:15.000Z
from unittest import TestCase from fluentcms_emailtemplates.rendering import replace_fields class ReplaceFieldsTests(TestCase): """ Test how replace fields syntax works. It emulates a subset of str.format() and supports missing fields """ def test_replace_scalar(self): result = replac...
37.536585
102
0.630929
ff0dfb2c88db47e9a0a7eb8e88409370f4c412a3
33,133
py
Python
python/ccxt/async/bitfinex.py
bilibilihuangyifan/ccxt
e3e058067808014c7110813d626d8a076ce96edb
[ "MIT" ]
73
2018-05-15T00:53:50.000Z
2022-03-07T14:45:11.000Z
python/ccxt/async/bitfinex.py
bilibilihuangyifan/ccxt
e3e058067808014c7110813d626d8a076ce96edb
[ "MIT" ]
20
2018-05-15T08:46:45.000Z
2018-06-19T08:49:27.000Z
python/ccxt/async/bitfinex.py
bilibilihuangyifan/ccxt
e3e058067808014c7110813d626d8a076ce96edb
[ "MIT" ]
11
2018-05-15T00:09:30.000Z
2022-03-07T14:45:27.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange import base64 import hashlib import math import json from ccxt.base.errors import ExchangeErr...
38.61655
426
0.458425
37202290daab94626433aabecd3843d51fd57e23
7,231
py
Python
python/ray/tune/examples/experiments/cifar10/pbt_tune_cifar10_with_keras.py
verystrongjoe/ray
9f598230ebd9b84af8dce6a1b144d60f384e9266
[ "Apache-2.0" ]
null
null
null
python/ray/tune/examples/experiments/cifar10/pbt_tune_cifar10_with_keras.py
verystrongjoe/ray
9f598230ebd9b84af8dce6a1b144d60f384e9266
[ "Apache-2.0" ]
null
null
null
python/ray/tune/examples/experiments/cifar10/pbt_tune_cifar10_with_keras.py
verystrongjoe/ray
9f598230ebd9b84af8dce6a1b144d60f384e9266
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Train keras CNN on the CIFAR10 small images dataset. The model comes from: https://zhuanlan.zhihu.com/p/29214791, and it gets to about 87% validation accuracy in 100 epochs. Note that the script requires a machine with 4 GPUs. You can set {"gpu": 0} to use CPUs for tra...
32.137778
79
0.592034
bfb2f5ae67d19fc1b659b7167825ee5111952b89
28,355
py
Python
scaper_concept/venv/lib/python3.9/site-packages/click/termui.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
1,394
2015-01-01T17:38:10.000Z
2016-03-30T00:04:54.000Z
scaper_concept/venv/lib/python3.9/site-packages/click/termui.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
293
2015-01-02T08:19:41.000Z
2016-03-24T00:01:14.000Z
scaper_concept/venv/lib/python3.9/site-packages/click/termui.py
edudbot/web-scraper
12c07f805427699b2c3a35ed7c0d7efbc3673a7f
[ "MIT" ]
188
2015-01-01T03:41:28.000Z
2016-03-30T15:39:33.000Z
import inspect import io import itertools import os import sys import typing as t from gettext import gettext as _ from ._compat import isatty from ._compat import strip_ansi from ._compat import WIN from .exceptions import Abort from .exceptions import UsageError from .globals import resolve_color_default from .types...
35.983503
87
0.63502
b2f5da5ad6530be6b3e368b41a31324a162c09ef
4,982
py
Python
lib/laser_helper.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
6
2021-11-11T02:32:55.000Z
2022-02-28T12:38:54.000Z
lib/laser_helper.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
null
null
null
lib/laser_helper.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
null
null
null
# Steger algorithm for edge/line extraction # Author : Munch Quentin, 2020 # General and computer vision lib import numpy as np import cv2 from matplotlib import pyplot as plt from matplotlib import pyplot def computeDerivative(img, sigmaX, sigmaY): # blurr the image img = cv2.GaussianBlur(img, ksize=(0,0), s...
36.364964
116
0.520072
4f5672351c7d2b20c4c09d185b944b77870ff4f8
11,938
py
Python
circus/config.py
asteven/circus
278ff49c1f941177465056350512282b233e8ccf
[ "Apache-2.0" ]
null
null
null
circus/config.py
asteven/circus
278ff49c1f941177465056350512282b233e8ccf
[ "Apache-2.0" ]
null
null
null
circus/config.py
asteven/circus
278ff49c1f941177465056350512282b233e8ccf
[ "Apache-2.0" ]
null
null
null
import glob import os import signal import warnings from fnmatch import fnmatch try: import resource except ImportError: resource = None # NOQA from circus import logger from circus.py3compat import sort_by_field from circus.util import (DEFAULT_ENDPOINT_DEALER, DEFAULT_ENDPOINT_SUB, ...
36.396341
79
0.544647
f0f06b6343742be6962e754ffc4ba99b89ad3d11
416
py
Python
twodimexamples/test.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
twodimexamples/test.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
twodimexamples/test.py
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
import pygame from pygame.locals import (QUIT, KEYDOWN, K_ESCAPE) import Box2D from Box2D.b2 import (world, polygonShape, staticBody, dynamicBody) pygame.display.set_mode((1280, 960), 0, 32) playing = True while playing: for event in pygame.event.get(): if event.type == QUIT or (event.type == KEYDOWN and...
21.894737
83
0.692308
3f0f38b1ee8a1bf01c6fc45dc4b52e26c5e4aa10
797
py
Python
appengine/logging/writing_logs/main_test.py
117null/python-docs-samples
c77d0cf5ac860d37e6c7ffb38a089f54f6ec3aaa
[ "Apache-2.0" ]
1
2018-09-24T04:54:26.000Z
2018-09-24T04:54:26.000Z
appengine/standard/logging/writing_logs/main_test.py
DalavanCloud/python-docs-samples
439ca4c552940284743f5f22a590cc4b6dae1bef
[ "Apache-2.0" ]
2
2021-06-10T23:54:32.000Z
2021-06-10T23:54:33.000Z
appengine/standard/logging/writing_logs/main_test.py
DalavanCloud/python-docs-samples
439ca4c552940284743f5f22a590cc4b6dae1bef
[ "Apache-2.0" ]
1
2018-09-24T04:53:12.000Z
2018-09-24T04:53:12.000Z
# Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.208333
74
0.74655
89589df89b855bab6906a1cb39bf3b2e83fe0161
728
py
Python
test/test_trait_api.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
test/test_trait_api.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
test/test_trait_api.py
max-bytes/omnikeeper-client-python
0e74e7f86636e908ac0161d907892480a2998eda
[ "Apache-2.0" ]
null
null
null
""" Landscape omnikeeper REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import unittest import okclient from okclient.api.trait...
20.8
124
0.688187
fc8611483ec04bc5fc0f2a5c0cb93845e58ea78a
2,626
py
Python
bitbots_behavior/bitbots_blackboard/src/bitbots_blackboard/capsules/game_status_capsule.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
bitbots_behavior/bitbots_blackboard/src/bitbots_blackboard/capsules/game_status_capsule.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
bitbots_behavior/bitbots_blackboard/src/bitbots_blackboard/capsules/game_status_capsule.py
MosHumanoid/bitbots_thmos_meta
f45ccc362dc689b69027be5b0d000d2a08580de4
[ "MIT" ]
null
null
null
""" GameStatusCapsule ^^^^^^^^^^^^^^^^^ Provides information about the current game state. """ import rosparam import rospy from humanoid_league_msgs.msg import GameState class GameStatusCapsule: def __init__(self): self.team_id = rospy.get_param("team_id", 8) self.gamestate = GameState() ...
33.666667
111
0.687357
f425a914430f8cb30cf5ba2e0c373c6c457699ec
437
py
Python
ws.py
FapTek/faopy-server
b112e465b6ebc8583884dabb185fefff6d9d47eb
[ "MIT" ]
1
2017-11-13T05:35:18.000Z
2017-11-13T05:35:18.000Z
ws.py
FapTek/faopy-server
b112e465b6ebc8583884dabb185fefff6d9d47eb
[ "MIT" ]
null
null
null
ws.py
FapTek/faopy-server
b112e465b6ebc8583884dabb185fefff6d9d47eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import asyncio import time import websockets async def hello(websocket, path): name = await websocket.recv() print("< {}".format(name)) greeting = "Hello {}!".format(name) await websocket.send(greeting) print("> {}".format(greeting)) start_server = websockets.serve(hello, ...
23
57
0.718535
aec57b6da7d4f2b5517eb77ef8637bb73fee5746
2,479
py
Python
plugins/net/DNS_Latency.py
BH1SCW/lmp
2c054b22868af07a11439b785dfeb04e01d31c02
[ "Apache-2.0" ]
159
2020-04-15T16:41:06.000Z
2022-03-30T08:12:00.000Z
plugins/net/DNS_Latency.py
BH1SCW/lmp
2c054b22868af07a11439b785dfeb04e01d31c02
[ "Apache-2.0" ]
82
2020-04-16T10:42:42.000Z
2022-02-18T13:08:39.000Z
plugins/net/DNS_Latency.py
Teanix/lmp
94b4be742674f831df22120afe458c98c8349f35
[ "Apache-2.0" ]
76
2020-04-14T07:39:52.000Z
2022-02-21T05:43:37.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from __future__ import print_function from bcc import BPF from time import strftime bpf_text = """ #include <uapi/linux/ptrace.h> #include <linux/sched.h> struct val_t { u32 pid; char comm[TASK_COMM_LEN]; char host[80]; u64 ts; }; struct data_t { u32...
26.37234
78
0.631706
146fe4ecbfcde9cd0896d45a14edece5f6e92fc0
517
py
Python
votesystem/users/admin.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
votesystem/users/admin.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
votesystem/users/admin.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from votesystem.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm ...
28.722222
83
0.748549
994c95cc9bcef98f253065f4cc045712da9c5f72
5,273
py
Python
pw_package/py/pw_package/packages/arduino_core.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_package/py/pw_package/packages/arduino_core.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_package/py/pw_package/packages/arduino_core.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Pigweed Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.397163
80
0.605158
92fffccbb6976be1d36b3af88ba231d08d4b7c0a
2,005
py
Python
convert-images-to-mnist-format.py
Kraton99/JPG-PNG-to-MNIST-NN-Format
26521143fa002ee5b14f38e4f11a083aaf050aa0
[ "Apache-2.0" ]
null
null
null
convert-images-to-mnist-format.py
Kraton99/JPG-PNG-to-MNIST-NN-Format
26521143fa002ee5b14f38e4f11a083aaf050aa0
[ "Apache-2.0" ]
null
null
null
convert-images-to-mnist-format.py
Kraton99/JPG-PNG-to-MNIST-NN-Format
26521143fa002ee5b14f38e4f11a083aaf050aa0
[ "Apache-2.0" ]
null
null
null
import os from PIL import Image from array import * from random import shuffle # Load from and save to Names = [['./training-images','train'], ['./test-images','test']] for name in Names: data_image = array('B') data_label = array('B') FileList = [] for dirname in os.listdir(name[0])[1:]: # [1:] Exc...
27.847222
81
0.61995