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
411b979b773b2c1ca489c6724a32d9c196d5baf2
2,410
py
Python
doc/source/conf.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
4
2019-04-02T03:49:13.000Z
2022-01-22T14:57:33.000Z
doc/source/conf.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
451
2019-03-25T07:27:52.000Z
2021-07-26T01:26:43.000Z
doc/source/conf.py
bzhaoopenstack/labkeeper
fecda8a306fd3f1dea3f66606ac8bd962981d2b0
[ "Apache-2.0" ]
14
2018-09-28T18:45:12.000Z
2022-01-22T14:57:22.000Z
# -*- coding: utf-8 -*- # 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, software...
32.567568
79
0.697925
53ddd4aa686d8ca1d970c22c2e93a153eeabefc5
50,943
py
Python
tests/unit/states/test_mount.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
tests/unit/states/test_mount.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
tests/unit/states/test_mount.py
ifraixedes/saltstack-salt
b54becb8b43cc9b7c00b2c0bc637ac534dc62896
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import os import salt.states.mount as mount from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase class MountTestCase(TestCase, LoaderModuleMockMixin): """ ...
39.036782
113
0.455804
36ebacede0e300cbef2b0e5ecbb0b1ec826f81dd
616
py
Python
osu/local/hitobject/taiko/taiko_spinner_hitobject.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
23
2019-02-27T06:20:15.000Z
2022-03-31T22:54:11.000Z
osu/local/hitobject/taiko/taiko_spinner_hitobject.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
38
2019-03-03T17:35:39.000Z
2021-08-23T20:43:34.000Z
osu/local/hitobject/taiko/taiko_spinner_hitobject.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
4
2020-03-30T20:43:14.000Z
2022-03-06T19:40:15.000Z
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from osu.local.hitobject.hitobject import Hitobject from osu.local.hitobject.taiko.taiko import Taiko from misc.frozen_cls import FrozenCls @FrozenCls class TaikoSpinnerHitobject(QGraphicsItem, Hitobject): def __init__(self, dat...
21.241379
54
0.704545
1f181b65028d4e2169aeae14fd2810393d6e1ae1
1,758
py
Python
AWS/stylometry_tokenPL/tokens.py
wcex1994/EssAI
968f07d06f4d49a1538fb56fe505f13ff5f6fa8e
[ "MIT" ]
null
null
null
AWS/stylometry_tokenPL/tokens.py
wcex1994/EssAI
968f07d06f4d49a1538fb56fe505f13ff5f6fa8e
[ "MIT" ]
null
null
null
AWS/stylometry_tokenPL/tokens.py
wcex1994/EssAI
968f07d06f4d49a1538fb56fe505f13ff5f6fa8e
[ "MIT" ]
1
2021-05-06T21:55:33.000Z
2021-05-06T21:55:33.000Z
#================================================================= # Libraries #================================================================= from utils import * # from scipy import stats as s import pandas as pd import numpy as np from math import log, e # This language model will be used for tokenizing and...
27.904762
69
0.489761
689d38ffea1f22e6dbfd84ad003cc47c08c6b7f5
747
py
Python
examples/synthesis/monolithic/synthetize.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
examples/synthesis/monolithic/synthetize.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
examples/synthesis/monolithic/synthetize.py
pierg/crome-synthesis
c4392e69176e67e99c4bbacf8affbd949acebd2a
[ "MIT" ]
null
null
null
import os from pathlib import Path from crome_synthesis.controller import Controller from crome_synthesis.tools.persistence import dump_mono_controller controller_name = "arbiter" spec_path = Path(os.path.abspath(os.path.dirname(__file__))).parent / f"controller_specs/{controller_name}" controller_spec = spec_path / ...
35.571429
107
0.827309
f5e9c9dedc2bb1ad3af5842408f1d6888f6da623
2,069
py
Python
cache/.mako.tmp/annotation_helper.tmpl.py
necromuralist/Bake-A-Pig-Like-A-Goat
22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9
[ "MIT" ]
null
null
null
cache/.mako.tmp/annotation_helper.tmpl.py
necromuralist/Bake-A-Pig-Like-A-Goat
22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9
[ "MIT" ]
null
null
null
cache/.mako.tmp/annotation_helper.tmpl.py
necromuralist/Bake-A-Pig-Like-A-Goat
22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1591844202.4011192 _enable_loop = True _template_filename = '/home/athena/.virtualenvs/WiCCA/lib/p...
39.037736
400
0.666989
a8b61215bc3df78d2c2e83cc69f18db21b189c92
1,048
py
Python
foliage/base_tab.py
caltechlibrary/foliage
6fa7c6e5177cb3b8814cdbbdbb9b6d0e4b5718da
[ "BSD-3-Clause" ]
8
2022-01-11T22:30:50.000Z
2022-01-28T02:06:03.000Z
foliage/base_tab.py
caltechlibrary/foliage
6fa7c6e5177cb3b8814cdbbdbb9b6d0e4b5718da
[ "BSD-3-Clause" ]
null
null
null
foliage/base_tab.py
caltechlibrary/foliage
6fa7c6e5177cb3b8814cdbbdbb9b6d0e4b5718da
[ "BSD-3-Clause" ]
null
null
null
''' base_tab.py: base class for tabs The tabs in Foliage are conceptually pretty simple: there's a function to create the tab contents, and another function to set up optional watchers for detecting and acting on designated PyWebIO "pin" objects. The class FoliageTab is a base class used by all the Foliage tab classe...
37.428571
79
0.73187
958738e72de62e8ba76dfeb9ad0ef72679654002
5,600
py
Python
eggs/transaction-1.4.3-py2.7.egg/transaction/_manager.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/transaction-1.4.3-py2.7.egg/transaction/_manager.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
eggs/transaction-1.4.3-py2.7.egg/transaction/_manager.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
############################################################################ # # Copyright (c) 2004 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTW...
31.284916
78
0.641071
5b60c52155e7d21318d7baca04b5bda5c8483fe3
869
py
Python
botx/clients/methods/v3/chats/add_user.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/v3/chats/add_user.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/v3/chats/add_user.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Method for adding new users into chat.""" from http import HTTPStatus from typing import List from uuid import UUID from botx.clients.methods.base import AuthorizedBotXMethod from botx.clients.methods.errors import ( bot_is_not_admin, chat_is_not_modifiable, chat_not_found, ) class AddUser(AuthorizedB...
26.333333
61
0.699655
31b787e868fb672523cd1b38444f2f25d7d60b7d
13,060
py
Python
improver_tests/generate_ancillaries/test_GenerateTimezoneMask.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
null
null
null
improver_tests/generate_ancillaries/test_GenerateTimezoneMask.py
nivnac/improver
c16c794f62598017cebc6ae4f99af8f317219a77
[ "BSD-3-Clause" ]
3
2020-04-25T12:55:42.000Z
2020-07-23T11:50:46.000Z
improver_tests/generate_ancillaries/test_GenerateTimezoneMask.py
Kat-90/improver
a5c31be3430df429ae38e7c16e267fcbc2af1858
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2020 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
36.788732
88
0.659724
b0eb29dae81edfb66ebc6d105ddf4faad7c5025f
5,239
py
Python
docs/conf.py
zoldaten/wizcoin
80a8dc5f550d5ce6016c5baa8b17dbc68f07d2f2
[ "MIT" ]
null
null
null
docs/conf.py
zoldaten/wizcoin
80a8dc5f550d5ce6016c5baa8b17dbc68f07d2f2
[ "MIT" ]
null
null
null
docs/conf.py
zoldaten/wizcoin
80a8dc5f550d5ce6016c5baa8b17dbc68f07d2f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.268156
79
0.643634
73e43ad8c14379a243f30234f0a8ce236b048c1c
327
py
Python
amaze/player/player.py
StingrayMarineSolutions/amazeing-race
0cb1653a3f3aeb22a81febfd4b32a2f50e5ae9ea
[ "MIT" ]
null
null
null
amaze/player/player.py
StingrayMarineSolutions/amazeing-race
0cb1653a3f3aeb22a81febfd4b32a2f50e5ae9ea
[ "MIT" ]
null
null
null
amaze/player/player.py
StingrayMarineSolutions/amazeing-race
0cb1653a3f3aeb22a81febfd4b32a2f50e5ae9ea
[ "MIT" ]
null
null
null
''' Here you can implement your Amaze-ing Player. You don't have to add all your implementation to this file, you can add additional files to this subpackage ''' class Player(object): def __init__(self): pass def forward(self, img, pos): raise NotImplementedError("You're supposed to implement...
27.25
107
0.70948
9c374a650c28add1cf3582c6ffa93a964371daa5
657
py
Python
scripts/docker/fill.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
scripts/docker/fill.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
scripts/docker/fill.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
import sys import re varRe = re.compile(r"«([^»]*)»") def varRepl(match): k = match.group(1) if k in keyValues: value = keyValues[k] else: value = "" print(f"Undefined parameter: {k}") return value inFile = sys.argv[1] outFile = sys.argv[2] data = sys.argv[3] keyValues = {}...
17.289474
46
0.561644
d0a902212b0b25af61981e56f166915ba7e0119a
286
py
Python
jd/api/rest/KplOpenBatchConvertCpslinkRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
5
2019-10-30T01:16:30.000Z
2020-06-14T03:32:19.000Z
jd/api/rest/KplOpenBatchConvertCpslinkRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
2
2020-10-12T07:12:48.000Z
2021-06-02T03:15:47.000Z
jd/api/rest/KplOpenBatchConvertCpslinkRequest.py
fengjinqi/linjuanbang
8cdc4e81df73ccd737ac547da7f2c7dca545862a
[ "MIT" ]
3
2019-12-06T17:33:49.000Z
2021-03-01T13:24:22.000Z
from jd.api.base import RestApi class KplOpenBatchConvertCpslinkRequest(RestApi): def __init__(self,domain='gw.api.360buy.com',port=80): RestApi.__init__(self,domain, port) self.KeplerUrlparam = None def getapiname(self): return 'jd.kpl.open.batch.convert.cpslink'
17.875
56
0.748252
1533ce0303f28488f58b46b6b1e5a765d0bda8d2
5,993
py
Python
oscar/lib/python2.7/site-packages/pygments/formatters/svg.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pygments/formatters/svg.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pygments/formatters/svg.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.formatters.svg ~~~~~~~~~~~~~~~~~~~~~~~ Formatter for SVG output. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.formatter import Formatter from pygments.util import get_b...
38.915584
82
0.548807
b131329cae62795a0b29c60602537e86483ebc9a
3,762
py
Python
huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_by_tags_response.py
NQLoong/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_by_tags_response.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_by_tags_response.py
mawenbo-huawei/huaweicloud-sdk-python-v3
677944a0b722147c6e105c53df9110724d64152a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListInstancesByTagsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_ma...
27.26087
80
0.577884
b6dcb873845d57a591322c08521d5e499b020d45
3,413
py
Python
tests/alltests.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
tests/alltests.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
tests/alltests.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
import os from Domain.restaurantvalidator import restaurantvalidator from Domain.reviewvalidator import reviewvalidator from Repository.json_repository import JsonRepository from Service.restaurantservice import restaurantservice from Service.reviewservice import reviewservice def alltests(): testcerinta1() ...
37.922222
64
0.654556
790cade744279e033d1a42616d9659dc6e2a347f
421
py
Python
project/partners/migrations/0009_partner_is_published.py
TEDxNTUA/tedxntua2019
6bce7c9dd8c4ee2c1a94b4ff6facb39052d41cff
[ "MIT" ]
7
2018-10-09T19:14:37.000Z
2019-11-25T13:43:38.000Z
project/partners/migrations/0009_partner_is_published.py
TEDxNTUA/tedxntua2019
6bce7c9dd8c4ee2c1a94b4ff6facb39052d41cff
[ "MIT" ]
16
2018-11-01T21:42:17.000Z
2019-03-10T16:59:25.000Z
project/partners/migrations/0009_partner_is_published.py
TEDxNTUA/tedxntua2019
6bce7c9dd8c4ee2c1a94b4ff6facb39052d41cff
[ "MIT" ]
5
2018-10-28T17:33:06.000Z
2018-11-22T00:12:55.000Z
# Generated by Django 2.1.2 on 2019-03-19 22:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('partners', '0008_merge_20190307_1527'), ] operations = [ migrations.AddField( model_name='partner', name='is_publish...
22.157895
78
0.619952
5795b59b9591a38bf0910f2d077e237a8a35c9d1
789
py
Python
jp.atcoder/abc075/abc075_b/11985583.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc075/abc075_b/11985583.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc075/abc075_b/11985583.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import numpy as np h, w = map(int, sys.stdin.readline().split()) grid = np.array( [list(sys.stdin.readline().rstrip()) for _ in range(h)], dtype="U1" ) grid = np.pad(grid, 1, "constant") def main(): d = [(-1, 0), (0, -1), (1, 0), (0, 1)] cnt = np.zeros_like(grid, dtype=np.int8) ...
24.65625
72
0.443599
a491943c4fd19e80526aff5f142a7c3426e8eb11
23,691
py
Python
tests/generic_inline_admin/tests.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
2
2019-08-25T07:54:26.000Z
2020-08-27T09:29:05.000Z
tests/generic_inline_admin/tests.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/generic_inline_admin/tests.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-06-19T06:09:41.000Z
2020-06-19T06:09:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.contrib import admin from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from django.contrib.contenttypes.admin import GenericTabularInline from django.contrib.contenttypes.forms import...
42.381038
110
0.649572
6ffe607845beac873afed7e8fbba7e4dfa82a889
153
py
Python
profiles/apps.py
biligunb/portal-web-app
cd10cda3d8bfc8f055a268e14f9665f142051c90
[ "MIT" ]
null
null
null
profiles/apps.py
biligunb/portal-web-app
cd10cda3d8bfc8f055a268e14f9665f142051c90
[ "MIT" ]
null
null
null
profiles/apps.py
biligunb/portal-web-app
cd10cda3d8bfc8f055a268e14f9665f142051c90
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ProfilesConfig(AppConfig): name = "profiles" def ready(self): import profiles.signals # noqa
17
39
0.69281
f3d7f4c563a98794cb71cc3ab175a63605e61ee0
2,024
py
Python
examples/image.py
ahnlak/st7789-python
66af35f4fb31a31ce33793d0e7906e7bea7b2fb3
[ "MIT" ]
15
2021-04-21T05:23:54.000Z
2022-01-04T06:14:36.000Z
examples/image.py
KeyChainGame/st7789-python
f9e3e4a32179ba05e1d89b06ecbbc7ce84e93df3
[ "MIT" ]
null
null
null
examples/image.py
KeyChainGame/st7789-python
f9e3e4a32179ba05e1d89b06ecbbc7ce84e93df3
[ "MIT" ]
2
2021-04-20T23:54:07.000Z
2021-12-31T02:36:20.000Z
# Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
31.138462
79
0.737154
e3f805f605262e439a3b473f1ca579ab21840662
913
py
Python
docs_src/request_files/tutorial003.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
1
2022-01-08T16:39:28.000Z
2022-01-08T16:39:28.000Z
docs_src/request_files/tutorial003.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
1
2022-01-07T21:04:04.000Z
2022-01-07T21:04:04.000Z
docs_src/request_files/tutorial003.py
mbhavya/fastapi
1876ebc77949a9a254909ec61ea0c09365169ec2
[ "MIT" ]
null
null
null
from typing import List from fastapi import FastAPI, File, UploadFile from fastapi.responses import HTMLResponse app = FastAPI() @app.post("/files/") async def create_files( files: List[bytes] = File(description="Multiple files as bytes"), ): return {"file_sizes": [len(file) for file in files]} @app.post(...
24.026316
79
0.696605
871c316839bf845f14ac8b3d61bd58306748d68b
4,124
py
Python
build.vs/build_tests/build_tests.py
gajgeospatial/pthreads-3.0.0
2ad01868c959502c71f26ebcc75c7b9b234265fb
[ "Apache-2.0" ]
34
2015-10-01T14:28:25.000Z
2022-01-21T03:46:07.000Z
build.vs/build_tests/build_tests.py
gajgeospatial/pthreads-3.0.0
2ad01868c959502c71f26ebcc75c7b9b234265fb
[ "Apache-2.0" ]
1
2021-09-03T13:46:14.000Z
2021-09-04T07:37:29.000Z
build.vs/build_tests/build_tests.py
gajgeospatial/pthreads-3.0.0
2ad01868c959502c71f26ebcc75c7b9b234265fb
[ "Apache-2.0" ]
27
2016-05-10T09:37:28.000Z
2022-01-21T03:46:10.000Z
''' Set up Visual Sudio to build a specified MPIR configuration Copyright (C) 2011, 2012, 2013, 2014, 2015 Brian Gladman ''' from operator import itemgetter from os import listdir, walk, unlink, makedirs from os.path import split, splitext, isdir, relpath, join, exists from os.path import dirname, normpath from copy ...
27.311258
88
0.601843
bf922df5028088a9e68317e47bd568d5ca59cb18
8,032
py
Python
tensor2tensor/models/vanilla_gan.py
kpe/tensor2tensor
453c473030c354a3d9a4c27b12bcec8942334bf4
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
tensor2tensor/models/vanilla_gan.py
kpe/tensor2tensor
453c473030c354a3d9a4c27b12bcec8942334bf4
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
tensor2tensor/models/vanilla_gan.py
kpe/tensor2tensor
453c473030c354a3d9a4c27b12bcec8942334bf4
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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 applicable...
36.844037
79
0.656375
5ac0db356de3bd75a7b60e6aa9900dd2df7f1fa9
8,237
py
Python
gitea/mod/operator/ops/main.py
timClicks/gitea-charm
a2694c8e38d9ba55376e7d0781019f962555897b
[ "Apache-2.0" ]
null
null
null
gitea/mod/operator/ops/main.py
timClicks/gitea-charm
a2694c8e38d9ba55376e7d0781019f962555897b
[ "Apache-2.0" ]
null
null
null
gitea/mod/operator/ops/main.py
timClicks/gitea-charm
a2694c8e38d9ba55376e7d0781019f962555897b
[ "Apache-2.0" ]
1
2020-04-14T03:06:36.000Z
2020-04-14T03:06:36.000Z
#!/usr/bin/env python3 # Copyright 2019 Canonical 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 ...
37.958525
97
0.6886
12f1c0c412c03a26287959612c6c530e99d57251
1,697
py
Python
tests/unit/_helper_cheesecake.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
12
2015-01-15T01:13:42.000Z
2022-03-04T21:14:27.000Z
tests/unit/_helper_cheesecake.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
6
2015-01-19T19:46:51.000Z
2019-02-05T20:20:26.000Z
tests/unit/_helper_cheesecake.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
3
2015-10-24T20:08:09.000Z
2019-02-04T20:53:21.000Z
import os import shutil from mock import Mock if 'set' not in dir(__builtins__): from sets import Set as set DATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/')) SAMPLE_PACKAGE_PATH = os.path.join(DATA_PATH, "nose-0.8.3.tar.gz") SAMPLE_PACKAGE_URL = "http://www.agilistas.org/cheeseca...
27.819672
80
0.647024
88757dd1676d88f173bd36a8688ba2fd014e1315
8,103
py
Python
frappe/tests/test_permissions.py
ashokrajbathu/secondrep
6e6a469a0956db01b5640c8bb16c5752556a219e
[ "MIT" ]
null
null
null
frappe/tests/test_permissions.py
ashokrajbathu/secondrep
6e6a469a0956db01b5640c8bb16c5752556a219e
[ "MIT" ]
null
null
null
frappe/tests/test_permissions.py
ashokrajbathu/secondrep
6e6a469a0956db01b5640c8bb16c5752556a219e
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """Use blog post test to test user permissions logic""" import frappe import frappe.defaults import unittest import json import frappe.model.meta from frappe.core.page.user_permi...
35.230435
196
0.742935
80c44dd77afc333844e3e87dc2f6b42cb4a81e06
538
py
Python
Task2C.py
Tim-Bonner-1825/Flood-Warning-System
d6d2c232216de521a8ba196e175ee59e820dd1c2
[ "MIT" ]
null
null
null
Task2C.py
Tim-Bonner-1825/Flood-Warning-System
d6d2c232216de521a8ba196e175ee59e820dd1c2
[ "MIT" ]
null
null
null
Task2C.py
Tim-Bonner-1825/Flood-Warning-System
d6d2c232216de521a8ba196e175ee59e820dd1c2
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.flood import stations_highest_rel_level def run(): # Build list of stations stations = build_station_list() # Update latest level data for all stations update_water_levels(stations) highestLevels = stati...
26.9
75
0.736059
ded37daffe4fdf43031973fa70ebb77ea1ef7c8d
41,199
py
Python
tensorflow_data_validation/statistics/stats_impl.py
dhruvesh09/data-validation
c1d38bef69a0cabf1bab09357a9182bf5b446658
[ "Apache-2.0" ]
2
2019-10-02T18:04:01.000Z
2020-03-23T12:54:28.000Z
tensorflow_data_validation/statistics/stats_impl.py
dhruvesh09/data-validation
c1d38bef69a0cabf1bab09357a9182bf5b446658
[ "Apache-2.0" ]
null
null
null
tensorflow_data_validation/statistics/stats_impl.py
dhruvesh09/data-validation
c1d38bef69a0cabf1bab09357a9182bf5b446658
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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, ...
41.826396
110
0.738513
4bb3905cafc7d6da97b446e666c04ee2d4ba8cc2
5,527
py
Python
scripts/generate_client_publish_job.py
craigcomstock/mender-qa
56d7d528d6a831b0936fdd84624643bdeda8c653
[ "Apache-2.0" ]
7
2016-11-16T01:00:55.000Z
2018-07-05T13:06:45.000Z
scripts/generate_client_publish_job.py
craigcomstock/mender-qa
56d7d528d6a831b0936fdd84624643bdeda8c653
[ "Apache-2.0" ]
262
2016-10-05T11:53:53.000Z
2022-03-28T13:49:40.000Z
scripts/generate_client_publish_job.py
craigcomstock/mender-qa
56d7d528d6a831b0936fdd84624643bdeda8c653
[ "Apache-2.0" ]
23
2016-08-31T11:52:10.000Z
2022-02-09T19:04:45.000Z
#!/usr/bin/python3 # Copyright 2021 Northern.tech AS # # 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 a...
34.981013
96
0.590013
af49c4bc7d316d3bc651adc4ef18addecc347df6
11,042
py
Python
courses/machine_learning/deepdive/10_recommend/labs/endtoend/airflow/plugins/gae_admin_plugin.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
courses/machine_learning/deepdive/10_recommend/labs/endtoend/airflow/plugins/gae_admin_plugin.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
courses/machine_learning/deepdive/10_recommend/labs/endtoend/airflow/plugins/gae_admin_plugin.py
pranaynanda/training-data-analyst
f10ab778589129239fd5b277cfdefb41638eded5
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 ag...
36.442244
84
0.628872
742575a3b31fd2a768cec60be82e2ca8d6257ab6
5,607
py
Python
python/blockchain.py
selvendiranj/pyth-coin
84ec07cf99e0e3adcbc2550cd4e04f495aa88b9b
[ "MIT" ]
null
null
null
python/blockchain.py
selvendiranj/pyth-coin
84ec07cf99e0e3adcbc2550cd4e04f495aa88b9b
[ "MIT" ]
null
null
null
python/blockchain.py
selvendiranj/pyth-coin
84ec07cf99e0e3adcbc2550cd4e04f495aa88b9b
[ "MIT" ]
null
null
null
""" blockchain """ import hashlib import json from time import time from urllib.parse import urlparse import requests class Blockchain: """ blockchain core functions """ def __init__(self): self.current_transactions = [] self.chain = [] self.nodes = set() # Create t...
28.461929
93
0.576779
a01db959b13d1e9d9fd2b4d0f05e2e6db0337d21
672
py
Python
knx_stack/definition/knxnet_ip/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
2
2021-07-28T07:42:28.000Z
2022-01-25T18:56:05.000Z
knx_stack/definition/knxnet_ip/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
6
2021-07-25T21:36:01.000Z
2022-02-20T21:11:31.000Z
knx_stack/definition/knxnet_ip/__init__.py
majamassarini/knx-stack
11a9baac6b7600649b5fbca43c93b200b23676b4
[ "MIT" ]
null
null
null
from knx_stack.definition.knxnet_ip.definitions import ( Services, ConnectionTypes, ErrorCodes, ConnectResponseStatusCode, ConnectionstateResponseStatusCode, KNXNETIP_VERSION_10, HEADER_SIZE_10, IPV4_UDP, DISCOVERY_MULTICAST_ADDR, DISCOVERY_MULTICAST_PORT, CONNECT_REQUEST_TIM...
30.545455
56
0.8125
8bd8956648011d2b4603fc8ed217c58c918bd151
3,005
py
Python
airflow/providers/email/operators/email.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
airflow/providers/email/operators/email.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
37
2020-07-21T07:50:02.000Z
2022-03-29T22:31:28.000Z
airflow/providers/email/operators/email.py
mebelousov/airflow
d99833c9b5be9eafc0c7851343ee86b6c20aed40
[ "Apache-2.0" ]
4
2020-07-17T14:02:28.000Z
2022-02-23T04:29:58.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.037975
82
0.671547
3a7393201a08074aaae3247c3483abaea37d1f31
979
py
Python
argparse/setup.py
psclafer/micropython-lib-1
52950a56a5f8e2d674ee668fc1dc2a319088ec26
[ "PSF-2.0" ]
null
null
null
argparse/setup.py
psclafer/micropython-lib-1
52950a56a5f8e2d674ee668fc1dc2a319088ec26
[ "PSF-2.0" ]
null
null
null
argparse/setup.py
psclafer/micropython-lib-1
52950a56a5f8e2d674ee668fc1dc2a319088ec26
[ "PSF-2.0" ]
null
null
null
import sys # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup(name='micropython-argparse', version='0.4', description='argparse module for MicroPython', long...
46.619048
336
0.742594
560f56c8af89dfedcf33d3309438d485ddcd4f7f
81
py
Python
web/apps.py
oogou11/analysis
1dd9b3869f1f63d699a4fc68c8090ae09a1e3162
[ "MIT" ]
270
2019-09-05T05:51:19.000Z
2022-03-12T18:26:13.000Z
web/apps.py
oogou11/analysis
1dd9b3869f1f63d699a4fc68c8090ae09a1e3162
[ "MIT" ]
295
2019-08-19T12:40:29.000Z
2022-01-24T14:03:20.000Z
machines/web/apps.py
Guilehm/machines
859b909cebfd6b72e3f4e0bb6e1a6f4b7afcd255
[ "MIT" ]
70
2019-03-03T22:21:45.000Z
2022-02-25T12:55:23.000Z
from django.apps import AppConfig class WebConfig(AppConfig): name = 'web'
13.5
33
0.728395
7d64a076ba266fc5f00d1d18b7ca5a00638fc937
7,165
py
Python
alloy2vec/processing/raw-data-processing/fun_read_process_abstract.py
peizong/alloy2vec
df3515f50a112d3b950a7a31eaeea8f51bdcb978
[ "MIT" ]
null
null
null
alloy2vec/processing/raw-data-processing/fun_read_process_abstract.py
peizong/alloy2vec
df3515f50a112d3b950a7a31eaeea8f51bdcb978
[ "MIT" ]
null
null
null
alloy2vec/processing/raw-data-processing/fun_read_process_abstract.py
peizong/alloy2vec
df3515f50a112d3b950a7a31eaeea8f51bdcb978
[ "MIT" ]
null
null
null
import json from collections import OrderedDict from gensim.parsing.preprocessing import remove_stopwords,strip_punctuation import numpy as np def remove_stopword_punctuations(text): no_stopword = remove_stopwords(text) filtered_sentence=strip_punctuation(no_stopword) return filtered_sentence def write(abstract...
37.317708
90
0.651779
7a280e144ed597c9361248edc50a24c0f1b30d36
2,228
py
Python
relationshipTree/sqlite_Neo4j/importsqlite2neo4j.py
KellyShang/Python-Pilots
e6539bdc1419bcd8f76e8765b841d7bc633aec79
[ "MIT" ]
null
null
null
relationshipTree/sqlite_Neo4j/importsqlite2neo4j.py
KellyShang/Python-Pilots
e6539bdc1419bcd8f76e8765b841d7bc633aec79
[ "MIT" ]
null
null
null
relationshipTree/sqlite_Neo4j/importsqlite2neo4j.py
KellyShang/Python-Pilots
e6539bdc1419bcd8f76e8765b841d7bc633aec79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Create By: Kelly Shang # Create Date: Apr. 2017 # Purpose: import data from sqlite to Neo4j database import operator import os import sys import sqlite3 from py2neo import Graph class ImportSQLite2Neo4j(object): dbaddr = os.path.dirname(os.path.dirname(__file__)) + '\csv_sqlite' ...
30.520548
116
0.598743
6a3d3c853c1ff3cff4db57b0a57726426fc11128
4,343
py
Python
ibm_whcs_sdk/annotator_for_clinical_data/tests/common/test_attribute_values.py
Bhaskers-Blu-Org1/whcs-python-sdk
df71cf68471061a0975dda5121a2ea933c80fdfa
[ "Apache-2.0" ]
null
null
null
ibm_whcs_sdk/annotator_for_clinical_data/tests/common/test_attribute_values.py
Bhaskers-Blu-Org1/whcs-python-sdk
df71cf68471061a0975dda5121a2ea933c80fdfa
[ "Apache-2.0" ]
null
null
null
ibm_whcs_sdk/annotator_for_clinical_data/tests/common/test_attribute_values.py
Bhaskers-Blu-Org1/whcs-python-sdk
df71cf68471061a0975dda5121a2ea933c80fdfa
[ "Apache-2.0" ]
1
2020-07-30T10:28:30.000Z
2020-07-30T10:28:30.000Z
# coding: utf-8 # Copyright 2018 IBM 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 applicabl...
51.702381
98
0.616164
b51a02ba7bf96a5361aef5a08fcb2be98d4026e0
260
py
Python
tests/artificial/transf_None/trend_PolyTrend/cycle_0/ar_/test_artificial_1024_None_PolyTrend_0__20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_None/trend_PolyTrend/cycle_0/ar_/test_artificial_1024_None_PolyTrend_0__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_None/trend_PolyTrend/cycle_0/ar_/test_artificial_1024_None_PolyTrend_0__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0);
37.142857
160
0.726923
ebd2700c9cd697ba4cb796ca3b2a3e41115d078b
24,100
py
Python
frappe/commands/site.py
gwhitney/frappe
d0fbc17261be24d8347a49bcbbf9d13119e310f1
[ "MIT" ]
null
null
null
frappe/commands/site.py
gwhitney/frappe
d0fbc17261be24d8347a49bcbbf9d13119e310f1
[ "MIT" ]
null
null
null
frappe/commands/site.py
gwhitney/frappe
d0fbc17261be24d8347a49bcbbf9d13119e310f1
[ "MIT" ]
null
null
null
# imports - standard imports import os import sys import shutil # imports - third party imports import click # imports - module imports import frappe from frappe.commands import get_site, pass_context from frappe.exceptions import SiteNotSpecifiedError @click.command('new-site') @click.argument('site') @click.optio...
32.219251
220
0.748423
363c79a6c1025a673237492e8cb6a3b410a1ac2f
2,388
py
Python
tests/e2e/process_mira/tests.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
null
null
null
tests/e2e/process_mira/tests.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
5
2020-08-27T12:34:08.000Z
2021-09-28T14:49:20.000Z
tests/e2e/process_mira/tests.py
actris-cloudnet/data-processing
8ab6fccd5cf48e10e985addcf339b9698a9b09cd
[ "MIT" ]
null
null
null
import netCDF4 from os import path from data_processing import utils import pytest from test_utils.utils import count_strings, read_log_file SCRIPT_PATH = path.dirname(path.realpath(__file__)) class TestMIRAProcessing: product = 'radar' instrument = 'mira' n_img = 4 @pytest.fixture(autouse=True) ...
32.712329
134
0.629397
a87eb9fb536c63190d4a7bb78ed5f178d154ae34
568
py
Python
packit/constants.py
jscotka/packit
3e86d3047b36e196374ad95796e7417f4a9a788d
[ "MIT" ]
null
null
null
packit/constants.py
jscotka/packit
3e86d3047b36e196374ad95796e7417f4a9a788d
[ "MIT" ]
null
null
null
packit/constants.py
jscotka/packit
3e86d3047b36e196374ad95796e7417f4a9a788d
[ "MIT" ]
null
null
null
DG_PR_COMMENT_KEY_SG_PR = "Source-git pull request ID" DG_PR_COMMENT_KEY_SG_COMMIT = "Source-git commit" CONFIG_FILE_NAMES = [ ".packit.yaml", ".packit.yml", ".packit.json", "packit.yaml", "packit.yml", "packit.json", ] # fedmsg topics URM_NEW_RELEASE_TOPIC = "org.release-monitoring.prod.anitya...
29.894737
92
0.746479
8bb5d673d39e74c66d736fd20e2b047d60e3d765
827
py
Python
tests/test_spyd/test_authentication/test_services/test_vanilla/test_punitive_model_adapter.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
4
2015-05-05T16:44:42.000Z
2020-10-27T09:45:23.000Z
tests/test_spyd/test_authentication/test_services/test_vanilla/test_punitive_model_adapter.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
null
null
null
tests/test_spyd/test_authentication/test_services/test_vanilla/test_punitive_model_adapter.py
DanSeraf/spyd
af893b7f9c67785613b25754eb2cf150523a9fe4
[ "Zlib" ]
2
2016-12-13T22:21:08.000Z
2020-03-14T16:44:20.000Z
import unittest from mock import Mock from spyd.authentication.services.vanilla import punitive_model_adapter from spyd.authentication.services.vanilla.punitive_model_adapter import PunitiveModelAdapter class TestPunitiveModelAdapter(unittest.TestCase): def setUp(self): self.effect_info = Mock() ...
35.956522
100
0.755744
c78a923d6f9ae611e27edd3f0d5446c5333aa5a4
862
py
Python
setup.py
Rishav1/Bootstrapped-DQN
fa354d2966d4908eac2d22041178eec351f33710
[ "MIT" ]
66
2017-09-27T21:40:56.000Z
2022-02-22T13:58:41.000Z
setup.py
Rishav1/Bootstrapped-DQN
fa354d2966d4908eac2d22041178eec351f33710
[ "MIT" ]
4
2017-09-27T19:29:26.000Z
2021-02-22T10:01:33.000Z
setup.py
Rishav1/Bootstrapped-DQN
fa354d2966d4908eac2d22041178eec351f33710
[ "MIT" ]
14
2017-09-27T22:13:16.000Z
2021-07-12T10:01:58.000Z
from setuptools import setup, find_packages import sys if sys.version_info.major != 3: print("This Python is only compatible with Python 3, but you are running " "Python {}. The installation will likely fail.".format(sys.version_info.major)) setup(name='baselines', packages=[package for package in...
31.925926
104
0.597448
48e5fe76f77a2fb9ff4f720bb5459b2dfc0c9314
1,823
py
Python
bitex/api/REST/cryptopia.py
ligggooo/quant2018
adbf68da414f422157dff8b744df214fc6631342
[ "MIT" ]
312
2018-01-06T13:51:48.000Z
2022-03-01T21:14:21.000Z
bitex/api/REST/cryptopia.py
ligggooo/quant2018
adbf68da414f422157dff8b744df214fc6631342
[ "MIT" ]
111
2016-06-14T18:44:12.000Z
2018-01-06T00:58:31.000Z
bitex/api/REST/cryptopia.py
ligggooo/quant2018
adbf68da414f422157dff8b744df214fc6631342
[ "MIT" ]
98
2018-01-06T15:24:36.000Z
2022-01-13T03:00:05.000Z
""" Contains all API Client sub-classes, which store exchange specific details and feature the respective exchanges authentication method (sign()). """ # Import Built-ins import logging import json import hashlib import hmac import base64 import urllib import urllib.parse # Import Homebrew from bitex.api.REST.api impo...
33.145455
86
0.595173
fa33fe9bb2ddbf5c7ccb7b8a48f35767dfd07c54
16,427
py
Python
test/test_tag_matcher.py
DisruptiveLabs/behave
04ef02550bdf90fad4e073fe39d1730ee2152d31
[ "BSD-2-Clause" ]
null
null
null
test/test_tag_matcher.py
DisruptiveLabs/behave
04ef02550bdf90fad4e073fe39d1730ee2152d31
[ "BSD-2-Clause" ]
null
null
null
test/test_tag_matcher.py
DisruptiveLabs/behave
04ef02550bdf90fad4e073fe39d1730ee2152d31
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from behave.tag_matcher import * from mock import Mock from unittest import TestCase class TestOnlyWithCategoryTagMatcher(TestCase): TagMatcher = OnlyWithCategoryTagMatcher def setUp(self): category = "xxx" self.tag_matcher = OnlyWithCategoryTagMatcher(category, "alic...
49.182635
101
0.638644
3277076cb56c2421806f01507eb9e278de8d29d5
722
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/polygon_offset_clamp.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/polygon_offset_clamp.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES2/EXT/polygon_offset_clamp.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES2 import _types as _cs # End users want this... from OpenGL.raw.GLES2._types import * from OpenGL.raw.GLES2 import _errors from OpenGL.constant import Constant as _C ...
40.111111
128
0.797784
c1e6761d0d9f5cd5f528aab0415b2c3d1afe9475
1,760
py
Python
onnxmltools/convert/coreml/shape_calculators/OneHotEncoder.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
3
2019-02-27T21:03:43.000Z
2020-04-07T22:16:50.000Z
onnxmltools/convert/coreml/shape_calculators/OneHotEncoder.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
null
null
null
onnxmltools/convert/coreml/shape_calculators/OneHotEncoder.py
szha/onnxmltools
b04d05bda625cbc006955ce0a220277739a95825
[ "MIT" ]
2
2020-10-01T09:24:55.000Z
2021-04-17T13:57:31.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from ...c...
44
98
0.642614
69808839a7924ef85d67067045c935be9d37ae4d
1,048
py
Python
src/util/session.py
mbecker8600/FinancialTools
e91acda460e2839e265d0f566a4fe6458b391713
[ "MIT" ]
null
null
null
src/util/session.py
mbecker8600/FinancialTools
e91acda460e2839e265d0f566a4fe6458b391713
[ "MIT" ]
3
2021-03-31T19:16:19.000Z
2021-12-13T20:00:56.000Z
src/util/session.py
mbecker8600/FinancialTools
e91acda460e2839e265d0f566a4fe6458b391713
[ "MIT" ]
null
null
null
import pickle from definitions import ROOT_DATA import os class Session: def __init__(self): self.portfolio = None self.name = None class SessionManager: def __init__(self): pass def load(self, name): file = os.path.join(ROOT_DATA, "{}.txt".format(name)) fileha...
22.782609
69
0.628817
fcbe184c459fe31e4c7e385805bb926b6f1c0468
764
py
Python
test/plot.py
lgrignon/flame-detection-system
fff0a1fc1f9eaab66af6ef0ae3a0f506d8ebcdd8
[ "MIT" ]
49
2015-01-12T11:59:16.000Z
2021-12-24T06:59:28.000Z
test/plot.py
lgrignon/flame-detection-system
fff0a1fc1f9eaab66af6ef0ae3a0f506d8ebcdd8
[ "MIT" ]
4
2016-10-31T08:21:02.000Z
2017-09-22T12:27:30.000Z
test/plot.py
lgrignon/flame-detection-system
fff0a1fc1f9eaab66af6ef0ae3a0f506d8ebcdd8
[ "MIT" ]
33
2015-04-06T10:50:11.000Z
2021-09-28T11:58:38.000Z
#!/usr/bin/env python # coding: utf-8 import numpy as np import matplotlib.pyplot as plt def plot(vals): l = len(vals) x = np.arange(0, l) y = vals z = map(abs, np.fft.fft(vals)) f, (ax1, ax2) = plt.subplots(2, 1) # original ax1.plot(x, y, 'o-') ax1.grid() ax1.set_xlabel("n") a...
23.151515
54
0.575916
17c6bd751fe2f5d04fe0cbd171aa5345f3a6a924
27,849
py
Python
python/ccxt/kuna.py
ttodua/ccxt
571bce1e66fb0d7a03879f7b45954043c261da3d
[ "MIT" ]
null
null
null
python/ccxt/kuna.py
ttodua/ccxt
571bce1e66fb0d7a03879f7b45954043c261da3d
[ "MIT" ]
1
2022-01-27T19:54:13.000Z
2022-01-27T19:54:13.000Z
python/ccxt/kuna.py
ttodua/ccxt
571bce1e66fb0d7a03879f7b45954043c261da3d
[ "MIT" ]
1
2022-03-15T22:51:08.000Z
2022-03-15T22:51:08.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.base.exchange import Exchange from ccxt.base.errors import ArgumentsRequired from ccxt.base.errors import InsufficientFunds from ...
42.259484
212
0.443391
5a917d413979b02d7a3a2ca6af2fc56164e625f1
12,541
py
Python
yellowbrick/cluster/silhouette.py
mmorrison1670/yellowbrick
c2028de2b7703e563503f7e85fdd65ad08de1ef6
[ "Apache-2.0" ]
2
2019-04-17T18:19:08.000Z
2019-12-09T03:53:59.000Z
yellowbrick/cluster/silhouette.py
mmorrison1670/yellowbrick
c2028de2b7703e563503f7e85fdd65ad08de1ef6
[ "Apache-2.0" ]
1
2021-01-20T11:17:04.000Z
2021-01-20T11:17:04.000Z
yellowbrick/cluster/silhouette.py
mmorrison1670/yellowbrick
c2028de2b7703e563503f7e85fdd65ad08de1ef6
[ "Apache-2.0" ]
2
2019-05-17T06:35:37.000Z
2019-06-30T16:17:22.000Z
# yellowbrick.cluster.silhouette # Implements visualizers using the silhouette metric for cluster evaluation. # # Author: Benjamin Bengfort # Author: Rebecca Bilbro # Created: Mon Mar 27 10:09:24 2017 -0400 # # Copyright (C) 2017 The scikit-yb developers # For license information, see LICENSE.txt # # ID: silhouett...
37.435821
85
0.638386
fb71150e6ba6b709ef8c48b997400387f344a14c
3,781
py
Python
formative/registry.py
jaap3/django-formative
0f6bd2dc8a78e59a842513b49efc7768d1ffc3a3
[ "MIT" ]
null
null
null
formative/registry.py
jaap3/django-formative
0f6bd2dc8a78e59a842513b49efc7768d1ffc3a3
[ "MIT" ]
null
null
null
formative/registry.py
jaap3/django-formative
0f6bd2dc8a78e59a842513b49efc7768d1ffc3a3
[ "MIT" ]
null
null
null
from collections import Container, Iterable, Sized from django.forms.models import modelform_factory from django.utils.encoding import python_2_unicode_compatible from django.utils import six from django.utils.functional import cached_property from django.utils.text import camel_case_to_spaces from formative.exceptions...
32.316239
77
0.656969
c8a3f4d9f019d5939b824f712b97c3101e1f4fe3
1,718
py
Python
src/line_detection.py
jdg1837/Spotlight
91bb0d4b07f782e90fe4b374d951ce1965422c27
[ "MIT" ]
null
null
null
src/line_detection.py
jdg1837/Spotlight
91bb0d4b07f782e90fe4b374d951ce1965422c27
[ "MIT" ]
null
null
null
src/line_detection.py
jdg1837/Spotlight
91bb0d4b07f782e90fe4b374d951ce1965422c27
[ "MIT" ]
null
null
null
'''Testing openCV line detection''' # Found on https://stackoverflow.com/questions/45322630/how-to-detect-lines-in-opencv import cv2 import numpy as np def detect_lines(filename): # Get gray image imgInput = filename imgOutput = '../images/' + filename.replace('.png', '') + '_lines.png' img = cv2.im...
35.061224
85
0.679278
62b1b04b19f61940ed46a0258fffc6244c00c659
3,708
py
Python
contrib/macdeploy/custom_dsstore.py
slicecoincore/slice
51e1cdf1bc109a40488e7aaf612e6554659b0167
[ "MIT" ]
3
2019-03-13T08:02:36.000Z
2020-05-06T12:05:08.000Z
contrib/macdeploy/custom_dsstore.py
slicecoincore/slice
51e1cdf1bc109a40488e7aaf612e6554659b0167
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
slicecoincore/slice
51e1cdf1bc109a40488e7aaf612e6554659b0167
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
61.8
1,817
0.72411
041369213e6820fd7201752bef6db803d57db630
1,313
py
Python
Binary Tree/kSmallestElementInBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
8
2019-01-17T23:45:41.000Z
2021-07-08T02:06:16.000Z
Binary Tree/kSmallestElementInBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
null
null
null
Binary Tree/kSmallestElementInBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
9
2018-04-27T04:50:06.000Z
2022-03-03T14:17:13.000Z
""" Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements. Follow up: What if the BST is modified (insert/delete operations) often and you need to find the kth smallest frequently? How would you optimize th...
24.314815
158
0.562072
4b86d01dfa0fc3d8d0f3465c65cea7eae8522818
4,256
py
Python
app/core/__init__.py
codestrange/cerebro
7d0ea0d9d41349a3324a9bf80b9a36f22be08b3c
[ "MIT" ]
7
2019-04-10T20:40:48.000Z
2020-12-07T14:46:20.000Z
app/core/__init__.py
cbermudez97/cerebro
f343c50146200d84631fa3f782a44bb45d257021
[ "MIT" ]
null
null
null
app/core/__init__.py
cbermudez97/cerebro
f343c50146200d84631fa3f782a44bb45d257021
[ "MIT" ]
1
2018-09-10T22:45:24.000Z
2018-09-10T22:45:24.000Z
from json import dumps from queue import Queue, Empty, Full from time import sleep from logging import debug, error from requests.api import post from requests.exceptions import ConnectionError from .config import get_config from ..models import Message config = get_config() queue = Queue() # El módulo dummy_threadin...
34.322581
95
0.664474
ced2aa6972f4b58876e43affaf8b4558cf7d1dfb
352
py
Python
tap_ringcentral/streams/meetings.py
volodymyr-mykhailyk/tap-ringcentral
54c0038ede52e270a09c70e3d100d0a0ee1b11e3
[ "Apache-2.0" ]
5
2019-05-02T04:49:05.000Z
2020-04-15T15:00:14.000Z
tap_ringcentral/streams/meetings.py
volodymyr-mykhailyk/tap-ringcentral
54c0038ede52e270a09c70e3d100d0a0ee1b11e3
[ "Apache-2.0" ]
4
2019-12-31T13:16:19.000Z
2020-06-09T13:18:07.000Z
tap_ringcentral/streams/meetings.py
volodymyr-mykhailyk/tap-ringcentral
54c0038ede52e270a09c70e3d100d0a0ee1b11e3
[ "Apache-2.0" ]
3
2019-06-11T13:26:17.000Z
2020-01-20T13:47:24.000Z
from tap_ringcentral.streams.base import ContactBaseStream import singer import json LOGGER = singer.get_logger() # noqa class MeetingStream(ContactBaseStream): KEY_PROPERTIES = ['id'] API_METHOD = 'GET' TABLE = 'meetings' @property def api_path(self): return '/restapi/v1.0/account/~/e...
20.705882
72
0.713068
d927a5fb7c6f1fe4e6a01bf9a29fb333a6aa9a22
1,813
py
Python
psydac/polar/c1_spaces.py
GabrielJie/psydac
51814f04501fa14bc100f0ab224f50a2bbe86612
[ "MIT" ]
1
2022-01-19T02:26:49.000Z
2022-01-19T02:26:49.000Z
psydac/polar/c1_spaces.py
GabrielJie/psydac
51814f04501fa14bc100f0ab224f50a2bbe86612
[ "MIT" ]
null
null
null
psydac/polar/c1_spaces.py
GabrielJie/psydac
51814f04501fa14bc100f0ab224f50a2bbe86612
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Yaman Güçlü from psydac.linalg.stencil import StencilVectorSpace from psydac.linalg.block import ProductSpace from psydac.polar .dense import DenseVectorSpace from psydac.polar .c1_cart import C1_Cart __all__ = ['new_c1_vector_space'] #==========================================...
31.807018
90
0.63872
854222700f569e9dce1037acf725ade98c98c66b
4,926
py
Python
common/global_variables.py
bluebibi/trade
32145c2a139f4172159ace8dfad11591ad8839ea
[ "MIT" ]
2
2021-02-03T19:03:13.000Z
2021-03-06T15:58:08.000Z
common/global_variables.py
bluebibi/trade
32145c2a139f4172159ace8dfad11591ad8839ea
[ "MIT" ]
10
2020-01-28T23:09:34.000Z
2022-02-10T00:23:12.000Z
common/global_variables.py
bluebibi/trade
32145c2a139f4172159ace8dfad11591ad8839ea
[ "MIT" ]
1
2019-11-03T11:37:37.000Z
2019-11-03T11:37:37.000Z
from enum import Enum import configparser import ast import torch import sys, os from common.slack import PushSlack idx = os.getcwd().index("trade") PROJECT_HOME = os.getcwd()[:idx] + "trade" sys.path.append(PROJECT_HOME) class CoinStatus(Enum): bought = 0 trailed = 1 success_sold = 2 gain_sold = 3...
34.447552
182
0.760455
1966911a3e9b1d962875a466c17e1aaf3dddf6dd
9,700
py
Python
urba.py
VoytRuslan/The-Best-Program-Of-Afisha
97ab867620719ce26e32b014347c63a0f0b58f40
[ "Apache-2.0" ]
null
null
null
urba.py
VoytRuslan/The-Best-Program-Of-Afisha
97ab867620719ce26e32b014347c63a0f0b58f40
[ "Apache-2.0" ]
null
null
null
urba.py
VoytRuslan/The-Best-Program-Of-Afisha
97ab867620719ce26e32b014347c63a0f0b58f40
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #from parserFirst import parser1 from functools import partial from PIL import ImageTk, Image # $ pip install pillow import webbrowser #from parserSecond import parser2 from urllib.request import urlopen import requests, html2text, bs4 try: # Tkinter for Pytho...
32.881356
209
0.501443
449ad4eb8e518d71a9f4da4e00897af24457ab5a
821
py
Python
configs/sefa_mstar.py
McHz1s/genforce
c808edc5fe897c27076c4588de3466669399e5e6
[ "MIT" ]
null
null
null
configs/sefa_mstar.py
McHz1s/genforce
c808edc5fe897c27076c4588de3466669399e5e6
[ "MIT" ]
null
null
null
configs/sefa_mstar.py
McHz1s/genforce
c808edc5fe897c27076c4588de3466669399e5e6
[ "MIT" ]
null
null
null
# python3.7 """Configuration for training StyleGAN on FF-HQ (256) dataset. All settings are particularly used for one replica (GPU), such as `batch_size` and `num_workers`. """ viz_size = 128 gpus = '2' work_dir = '/data3/lyz/cache/sefa' checkpoint_path = '/data3/lyz/cache/genforce/stylegan_mstar_24z_degree1-2/2021-...
32.84
119
0.714982
52481849a6d206347c8fcf75b4635bc6edcd6d37
3,015
py
Python
benchmark/startCirq2553.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2553.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2553.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=35 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
36.325301
77
0.684577
3f35ffe0f09ab1087dd1f014e2da04dc6e8a765c
15,140
py
Python
examples/lightning_base.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
12
2021-09-13T18:31:09.000Z
2022-03-31T12:10:28.000Z
examples/lightning_base.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
5
2021-12-01T04:34:07.000Z
2022-01-28T08:28:18.000Z
examples/lightning_base.py
gp201/transformers
89f2781e87e92b04303f7f128107718e44e755ed
[ "Apache-2.0" ]
3
2022-01-18T10:56:05.000Z
2022-01-28T01:46:43.000Z
import argparse import logging import os from pathlib import Path from typing import Any, Dict import pytorch_lightning as pl from pytorch_lightning.utilities import rank_zero_info import pkg_resources from transformers import ( AdamW, AutoConfig, AutoModel, AutoModelForPreTraining, AutoModelForQu...
38.040201
189
0.648547
1e4951e85c3c45fe7ac687f04406ed42b48603bf
2,703
py
Python
examples/round_lcd_gc9a01.py
charkster/u2if
ceab7e038435fc212641ecc35683fd05523dd5cd
[ "BSD-3-Clause" ]
79
2021-04-18T14:03:24.000Z
2022-03-27T06:03:44.000Z
examples/round_lcd_gc9a01.py
charkster/u2if
ceab7e038435fc212641ecc35683fd05523dd5cd
[ "BSD-3-Clause" ]
10
2021-04-21T20:28:42.000Z
2022-03-19T21:47:15.000Z
examples/round_lcd_gc9a01.py
charkster/u2if
ceab7e038435fc212641ecc35683fd05523dd5cd
[ "BSD-3-Clause" ]
13
2021-04-18T14:32:25.000Z
2022-03-26T01:22:48.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- # Round lcd GC9A01 (240x240) example, from Waveshare team. Modified to work on micropython #import chardet import os import sys import time import logging from external.gc9a01 import Lcd from PIL import Image, ImageDraw,ImageFont from machine import SPI, Pin, u2if try: #...
31.430233
102
0.630041
7cb7921508ec3cc126cd9fd0b6d91bade887ecf5
1,985
py
Python
tools/src/main/python/dlpx/virtualization/_internal/commands/upload.py
ankursarin/virtualization-sdk
28d600ab9abcaa77161f4d303ae169f907bcc096
[ "Apache-2.0" ]
null
null
null
tools/src/main/python/dlpx/virtualization/_internal/commands/upload.py
ankursarin/virtualization-sdk
28d600ab9abcaa77161f4d303ae169f907bcc096
[ "Apache-2.0" ]
null
null
null
tools/src/main/python/dlpx/virtualization/_internal/commands/upload.py
ankursarin/virtualization-sdk
28d600ab9abcaa77161f4d303ae169f907bcc096
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019 by Delphix. All rights reserved. # import errno import json import logging import os from dlpx.virtualization._internal import delphix_client, exceptions logger = logging.getLogger(__name__) UNKNOWN_ERR = 'UNKNOWN_ERR' def upload(engine, user, upload_artifact, password): """ Takes in...
34.224138
79
0.641814
b18bc3ffcd9ffe2b338595a73ef1ddf1ce69f634
14,156
py
Python
fact/storage/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
17
2021-11-24T14:20:02.000Z
2022-03-22T11:45:44.000Z
fact/storage/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
null
null
null
fact/storage/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
2
2022-01-26T02:14:18.000Z
2022-01-31T20:06:39.000Z
from .types import ArtifactType from fact.exceptions import ( TaskExistsError, TaskNotFoundError, TaskInvalidUUID, ArtifactExistsError, ArtifactNotFoundError, ArtifactInvalidName, ArtifactInvalidType, ) from pathlib import Path from uuid import UUID from typing import BinaryIO, List, Union ...
33.465721
91
0.602501
59f3acfcaaa367c86f272516284c4b16a5edfa1d
1,599
py
Python
flask_with_spark/user/form.py
todhm/have_you_read_this_book
905cb1934bafc987b76b6e57dbc63285f491ac88
[ "MIT" ]
2
2019-01-17T08:05:49.000Z
2019-01-17T08:06:00.000Z
flask_with_spark/user/form.py
todhm/have_you_read_this_book
905cb1934bafc987b76b6e57dbc63285f491ac88
[ "MIT" ]
8
2020-03-24T15:53:34.000Z
2021-04-30T20:40:38.000Z
flask_with_spark/user/form.py
todhm/have_you_read_this_book
905cb1934bafc987b76b6e57dbc63285f491ac88
[ "MIT" ]
null
null
null
import bcrypt from flask_wtf import FlaskForm from wtforms import validators, StringField, PasswordField from wtforms.validators import ValidationError from wtforms.fields.html5 import EmailField from user.models import User duplicate_error = "Email is already in use" class SignUpForm(FlaskForm): email = EmailF...
32.632653
103
0.649781
7118ebf098b69be17cbac836b259787b94d247cd
23,765
py
Python
responsibleai/responsibleai/modelanalysis/model_analysis.py
hrisheekeshr/responsible-ai-widgets
eac619cdf9a77409210402e2da961254b1783939
[ "MIT" ]
null
null
null
responsibleai/responsibleai/modelanalysis/model_analysis.py
hrisheekeshr/responsible-ai-widgets
eac619cdf9a77409210402e2da961254b1783939
[ "MIT" ]
null
null
null
responsibleai/responsibleai/modelanalysis/model_analysis.py
hrisheekeshr/responsible-ai-widgets
eac619cdf9a77409210402e2da961254b1783939
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # Licensed under the MIT License. """Defines the ModelAnalysis class.""" import json import pandas as pd import numpy as np import pickle from pathlib import Path from responsibleai._internal.constants import\ ManagerNames, Metadata, SKLearn from responsibleai._managers.caus...
41.619965
79
0.606648
27a431bf2a9e5c5b54b972af83ad74e0da481078
7,725
py
Python
byceps/blueprints/admin/shop/storefront/views.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
byceps/blueprints/admin/shop/storefront/views.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
byceps/blueprints/admin/shop/storefront/views.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
""" byceps.blueprints.admin.shop.storefront.views ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from flask import abort, request from flask_babel import gettext from .....permissions.shop import ShopPermission from ...
29.94186
85
0.723236
ce56027bba1dafd0566245479a05ec73c1dc496b
2,603
py
Python
ValAgents.py
Mister-SOSA/ValAgents
06fcc47c24dc1ded6b8d79710f485c24d726ca76
[ "MIT" ]
null
null
null
ValAgents.py
Mister-SOSA/ValAgents
06fcc47c24dc1ded6b8d79710f485c24d726ca76
[ "MIT" ]
null
null
null
ValAgents.py
Mister-SOSA/ValAgents
06fcc47c24dc1ded6b8d79710f485c24d726ca76
[ "MIT" ]
null
null
null
""" Dictionaries of all VALORANT agents with their respective UUIDs, categorized by role. """ list_all_agents = { "Jett" : "add6443a-41bd-e414-f6ad-e58d267f4e95", "Reyna" : "a3bfb853-43b2-7238-a4f1-ad90e9e46bcc", "Raze" : "f94c3b30-42be-e959-889c-5aa313dba261", "Yoru" : "7f94d92c-4234-0a36-9646-3a87eb8...
34.706667
93
0.683058
bb05eaaa2175c553512274020610bb321a67949d
1,651
py
Python
examples/8-add-an-attribute-to-the-list.py
fossabot/lucid-dynamodb
497726ff5c3929efa95512d41b86d0c9035dc463
[ "MIT" ]
null
null
null
examples/8-add-an-attribute-to-the-list.py
fossabot/lucid-dynamodb
497726ff5c3929efa95512d41b86d0c9035dc463
[ "MIT" ]
null
null
null
examples/8-add-an-attribute-to-the-list.py
fossabot/lucid-dynamodb
497726ff5c3929efa95512d41b86d0c9035dc463
[ "MIT" ]
null
null
null
from LucidDynamodb import DynamoDb import logging logging.basicConfig(level=logging.INFO) if __name__ == "__main__": db = DynamoDb() item_update_status = db.update_item( table_name="dev_jobs", key={ "company_name": "Google", "role_id": "111" }, attr...
26.629032
76
0.58086
c7e548d994915f4ddba31bf9d9338d4d8a9988a6
5,107
py
Python
tb_rest_client/models/models_ce/asset_search_query.py
maksonlee/python_tb_rest_client
a6cd17ef4de31f68c3226b7a9835292fbac4b1fa
[ "Apache-2.0" ]
1
2021-07-19T10:09:04.000Z
2021-07-19T10:09:04.000Z
tb_rest_client/models/models_ce/asset_search_query.py
moravcik94/python_tb_rest_client
985361890cdf4ccce93d2b24905ad9003c8dfcaa
[ "Apache-2.0" ]
null
null
null
tb_rest_client/models/models_ce/asset_search_query.py
moravcik94/python_tb_rest_client
985361890cdf4ccce93d2b24905ad9003c8dfcaa
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2020. ThingsBoard # # # 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 # # # Unl...
30.218935
92
0.599178
85da958075f2eca75cc4731f708a8eb5eb3d400b
97
py
Python
MolsonFlooringSite/localdesign/apps.py
imxiaow/MolsonFlooringWeb2021
f7bdf5d6f0acb1c3b7337e7de01625acbe8c8243
[ "MIT" ]
1
2021-01-09T00:17:49.000Z
2021-01-09T00:17:49.000Z
MolsonFlooringSite/localdesign/apps.py
imxiaow/MolsonFlooringWeb2021
f7bdf5d6f0acb1c3b7337e7de01625acbe8c8243
[ "MIT" ]
null
null
null
MolsonFlooringSite/localdesign/apps.py
imxiaow/MolsonFlooringWeb2021
f7bdf5d6f0acb1c3b7337e7de01625acbe8c8243
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LocaldesignConfig(AppConfig): name = 'localdesign'
16.166667
35
0.773196
5a0010674760846e2a33d686bb0bbeedd59eeaae
1,893
py
Python
kubernetes/test/test_v1_replication_controller_condition.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_replication_controller_condition.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_replication_controller_condition.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
32.084746
127
0.66878
ce4aaa1d18ccbf7dc790a23b7573d6e0950910f6
3,980
py
Python
test/url2md.py
puppylpg/wechat_articles_spider
fecc263dd0cfc571882eb000f55d2716d56eb8e6
[ "Apache-2.0" ]
1,603
2018-03-05T03:01:28.000Z
2022-03-31T05:30:51.000Z
test/url2md.py
puppylpg/wechat_articles_spider
fecc263dd0cfc571882eb000f55d2716d56eb8e6
[ "Apache-2.0" ]
42
2018-03-09T03:06:57.000Z
2021-12-31T02:30:13.000Z
test/url2md.py
puppylpg/wechat_articles_spider
fecc263dd0cfc571882eb000f55d2716d56eb8e6
[ "Apache-2.0" ]
491
2018-03-05T03:22:31.000Z
2022-03-30T10:10:59.000Z
# coding: utf-8 import requests from bs4 import BeautifulSoup as bs from bs4.element import NavigableString import re # 该文件仅作测试用,可能失效 path = "F:\\wechat_articles_spider\\test\\imgs\\{}" parse_lst = ["article", "a"] str_lst = ["hr", "span", "ul"] def extract_text(p): pass def download_img(url, name): respon...
33.166667
78
0.507538
6b9099fd3a804bf68461c0a158bdb6c0611d04bc
4,112
py
Python
repo2docker/docker.py
data-workspaces/dws-repo2docker
4d8736d7e3d79b8cdfa1f644f590aa7fdede183b
[ "BSD-3-Clause" ]
1,047
2017-05-25T03:37:21.000Z
2020-08-09T19:36:56.000Z
repo2docker/docker.py
data-workspaces/dws-repo2docker
4d8736d7e3d79b8cdfa1f644f590aa7fdede183b
[ "BSD-3-Clause" ]
810
2017-05-24T20:50:49.000Z
2020-08-05T15:56:38.000Z
repo2docker/docker.py
data-workspaces/dws-repo2docker
4d8736d7e3d79b8cdfa1f644f590aa7fdede183b
[ "BSD-3-Clause" ]
253
2017-06-02T20:23:05.000Z
2020-08-04T17:23:22.000Z
""" Docker container engine for repo2docker """ import docker from traitlets import Dict from iso8601 import parse_date from .engine import Container, ContainerEngine, ContainerEngineException, Image class DockerContainer(Container): def __init__(self, container): self._c = container def reload(sel...
27.972789
123
0.594844
297fbc764a904d6315a8307b05fe64044995d930
35,765
py
Python
lib/axon/_loader.py
intellimath/pyaxon
fcadf741bedd71fdb21d6e8b865da2a22f2bd1fb
[ "MIT" ]
19
2015-03-02T19:38:51.000Z
2021-11-16T13:48:04.000Z
lib/axon/_loader.py
intellimath/pyaxon
fcadf741bedd71fdb21d6e8b865da2a22f2bd1fb
[ "MIT" ]
null
null
null
lib/axon/_loader.py
intellimath/pyaxon
fcadf741bedd71fdb21d6e8b865da2a22f2bd1fb
[ "MIT" ]
4
2015-02-07T13:29:43.000Z
2020-01-01T19:20:53.000Z
# coding: utf-8 #cython: boundscheck=False #cython: wraparound=False #cython: nonecheck=False #cython: language_level=3 #cython: embedsignature=True #cython: optimize.use_switch=False # The MIT License (MIT) # # Copyright (c) <2011-2016> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, f...
27.897816
110
0.441074
de05455c0d81744f461547510c4212e23335bba2
5,306
py
Python
neutron/plugins/mlnx/agent/utils.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/plugins/mlnx/agent/utils.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/plugins/mlnx/agent/utils.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 Mellanox Technologies, 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 # #...
38.729927
76
0.566905
faf64c539e7f79154907c2dcf2492ab40c2daf3a
382
py
Python
tests/test_ext_baidu.py
terorie/music-dl
0d7f1ff177501058d84cf270db869a5d0ea92216
[ "MIT" ]
18
2019-03-11T05:31:19.000Z
2021-03-17T03:14:24.000Z
tests/test_ext_baidu.py
BuildDreams/music-dl
87c9c00e7b8fe4fb9d1d2e8b74efd02a153fd2d3
[ "MIT" ]
null
null
null
tests/test_ext_baidu.py
BuildDreams/music-dl
87c9c00e7b8fe4fb9d1d2e8b74efd02a153fd2d3
[ "MIT" ]
10
2019-07-08T06:38:39.000Z
2021-02-20T02:39:07.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: HJK @file: test_ext_baidu @time: 2019-01-30 """ from music_dl.extractors import baidu def test_baidu(capsys): music_list = baidu.search("朴树") assert music_list is not None # if len(music_list) > 0: # music_list[0].download() # out,...
20.105263
40
0.623037
8f4878d908f4be5bd928001a32c63d4eaf543e4b
266
py
Python
test_abots.py
aewens/abots
c462ab1be33f2bf9fb9b9afd4c280423aa53952f
[ "BSD-3-Clause" ]
null
null
null
test_abots.py
aewens/abots
c462ab1be33f2bf9fb9b9afd4c280423aa53952f
[ "BSD-3-Clause" ]
null
null
null
test_abots.py
aewens/abots
c462ab1be33f2bf9fb9b9afd4c280423aa53952f
[ "BSD-3-Clause" ]
null
null
null
#!env/bin/python3 from abots.net import SocketServer, SocketClient host = "localhost" port = 10401 timeout = 3 server = SocketServer(host, port, timeout=timeout) client = SocketClient(host, port, timeout=timeout) server.start() server.ready.wait() client.start()
19
50
0.759398
951ca9f5d2751c0e951a9b3e7573d1319b9c75a5
8,293
py
Python
Python/ocr.py
AbdulConsole/Hacktoberfest2019-2
b9619361b6cecf9b3e734972af3b0a03dba98d2e
[ "MIT" ]
1
2019-10-28T20:12:23.000Z
2019-10-28T20:12:23.000Z
Python/ocr.py
AbdulConsole/Hacktoberfest2019-2
b9619361b6cecf9b3e734972af3b0a03dba98d2e
[ "MIT" ]
null
null
null
Python/ocr.py
AbdulConsole/Hacktoberfest2019-2
b9619361b6cecf9b3e734972af3b0a03dba98d2e
[ "MIT" ]
1
2019-10-20T13:07:33.000Z
2019-10-20T13:07:33.000Z
import cv2 import numpy as np import sys import os.path if len(sys.argv) != 3: print("%s input_file output_file" % (sys.argv[0])) sys.exit() else: input_file = sys.argv[1] output_file = sys.argv[2] if not os.path.isfile(input_file): print("No such file '%s'" % input_file) sys.exit() DEBUG = 0...
28.016892
119
0.581816
63fab8f6cf1759d13f46cd86c0e4f931ae8970e9
260
py
Python
random.py
eunjirina/Exercicios-de-Python
0cf42a2b54191e966b1d019483db1cd17094e866
[ "MIT" ]
null
null
null
random.py
eunjirina/Exercicios-de-Python
0cf42a2b54191e966b1d019483db1cd17094e866
[ "MIT" ]
null
null
null
random.py
eunjirina/Exercicios-de-Python
0cf42a2b54191e966b1d019483db1cd17094e866
[ "MIT" ]
null
null
null
import random from random import randint n = (random.randint(1, 10), random.randint(1, 10), random.randint(1, 10), random.randint(1, 10), random.randint(1, 10)) print(f'Foram sorteados os números {n}\nDesses valores o menor é o {min(n)} e maior é o {max(n)}')
65
119
0.707692
c3dd5bafaa7aa9ad3da19ee612f62c5caeedc0ec
65
py
Python
pubmed/__init__.py
oldteng/pubmed
7f1183ae1a3efa7536c6aa8d9398e6fff59bb3b6
[ "MIT" ]
null
null
null
pubmed/__init__.py
oldteng/pubmed
7f1183ae1a3efa7536c6aa8d9398e6fff59bb3b6
[ "MIT" ]
null
null
null
pubmed/__init__.py
oldteng/pubmed
7f1183ae1a3efa7536c6aa8d9398e6fff59bb3b6
[ "MIT" ]
null
null
null
from .literature import PubMed from .pubmedcsv import OpenCsv
10.833333
30
0.8
27ad5ae8a52d06688f074e9c6051cbf6bb03f4dd
5,084
py
Python
tests/func/test_import_url.py
arthurcgusmao/dvc
dff27bb163419bd2f93acaa0906dfdee7359d9d6
[ "Apache-2.0" ]
1
2020-08-01T08:31:18.000Z
2020-08-01T08:31:18.000Z
tests/func/test_import_url.py
arthurcgusmao/dvc
dff27bb163419bd2f93acaa0906dfdee7359d9d6
[ "Apache-2.0" ]
null
null
null
tests/func/test_import_url.py
arthurcgusmao/dvc
dff27bb163419bd2f93acaa0906dfdee7359d9d6
[ "Apache-2.0" ]
1
2020-11-28T11:47:48.000Z
2020-11-28T11:47:48.000Z
import os from uuid import uuid4 import pytest from dvc.dependency.base import DependencyDoesNotExistError from dvc.main import main from dvc.stage import Stage from dvc.utils.fs import makedirs from tests.basic_env import TestDvc class TestCmdImport(TestDvc): def test(self): ret = main(["import-url", s...
30.261905
79
0.617821
8b224e0e375b40d95efe42edbcc4f2278c7cd48f
6,199
py
Python
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_3_xsd/nistschema_sv_iv_list_any_uri_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_3_xsd/nistschema_sv_iv_list_any_uri_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_3_xsd/nistschema_sv_iv_list_any_uri_enumeration_3.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional __NAMESPACE__ = "NISTSchema-SV-IV-list-anyURI-enumeration-3-NS" class NistschemaSvIvListAnyUriEnumeration3Type(Enum): GOPHER_ANDDISCUSST_ENUNAMBIGU_USANDSUCH_G_OUPSOFS_TO_N_RL_GOV_GOPHER_TECHNICALPR_VIDEMAINTA_NS_EDU_NEWS_...
63.255102
388
0.743668
c52e45c4ed7ad4d18ed4cc979bee9fbdb2c9f3f5
2,859
py
Python
config.py
shackle-he/NessusToReport
74f9691bd1d6b5508f79f09eb14bef995a7bc46d
[ "Apache-2.0" ]
null
null
null
config.py
shackle-he/NessusToReport
74f9691bd1d6b5508f79f09eb14bef995a7bc46d
[ "Apache-2.0" ]
null
null
null
config.py
shackle-he/NessusToReport
74f9691bd1d6b5508f79f09eb14bef995a7bc46d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # ------------------------------------------------------------ # File: config.py # Created Date: 2020/6/24 # Created Time: 0:16 # Author: Hypdncy # Author Mail: hypdncy@outlook.com # Copyright (c) 2020 Hypdncy # ------------------------------------------------------------ #...
29.474227
75
0.403987
59e010c0e2a3ec226658631974b96423b7613efd
18,593
py
Python
lib/enthought/traits/trait_notifiers.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
1
2016-05-08T18:33:12.000Z
2016-05-08T18:33:12.000Z
lib/enthought/traits/trait_notifiers.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
lib/enthought/traits/trait_notifiers.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions describe...
39.225738
80
0.521971
fea26ae8833faf495baa3e4f4cd7694fd6a8a782
6,115
py
Python
trainingbar/bar.py
trisongz/trainingbar
e33923d7314a8bc893bfb141519ec980df8c6778
[ "MIT" ]
null
null
null
trainingbar/bar.py
trisongz/trainingbar
e33923d7314a8bc893bfb141519ec980df8c6778
[ "MIT" ]
null
null
null
trainingbar/bar.py
trisongz/trainingbar
e33923d7314a8bc893bfb141519ec980df8c6778
[ "MIT" ]
null
null
null
import os import sys import time from threading import Thread, Lock from trainingbar import env, auths from trainingbar.logger import get_logger from trainingbar.handlers.host import config_host, HostMonitor from trainingbar.config.styles import configure_trainingbars from trainingbar.utils import _timer_formats logge...
38.702532
182
0.589534
683f42651579fd37523de268f8831ec16749cd2a
3,362
py
Python
op/fused_act.py
morzh/stylegan2-pytorch
afb60a3c5c4ab902f38c510d24eb4f3d1b827454
[ "Apache-2.0", "MIT" ]
null
null
null
op/fused_act.py
morzh/stylegan2-pytorch
afb60a3c5c4ab902f38c510d24eb4f3d1b827454
[ "Apache-2.0", "MIT" ]
null
null
null
op/fused_act.py
morzh/stylegan2-pytorch
afb60a3c5c4ab902f38c510d24eb4f3d1b827454
[ "Apache-2.0", "MIT" ]
null
null
null
import os import torch from torch import nn from torch.nn import functional as F # from torch.autograd import Function # from torch.utils.cpp_extension import load ''' module_path = os.path.dirname(__file__) fused = load( "fused", sources=[ os.path.join(module_path, "fused_bias_act.cpp"), ...
29.234783
119
0.608269
ef700e08b8631cf4f5d03872e7a2e1c13a5f31f4
50,478
py
Python
shwirl/shaders/render_volume.py
macrocosme/shwirl
87147ba1e99463e96b7f4295fd24ab57440d9981
[ "BSD-3-Clause" ]
3
2018-05-09T17:55:53.000Z
2019-07-22T09:14:41.000Z
shwirl/shaders/render_volume.py
macrocosme/shwirl
87147ba1e99463e96b7f4295fd24ab57440d9981
[ "BSD-3-Clause" ]
9
2017-04-07T01:44:15.000Z
2018-12-16T20:47:08.000Z
shwirl/shaders/render_volume.py
macrocosme/shwirl
87147ba1e99463e96b7f4295fd24ab57440d9981
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division # This file implements a RenderVolumeVisual class. It is derived from the # VolumeVisual class in vispy.visuals.volume, which is released under a BSD # license included here: # # =========================================================================== # Vispy is licensed under the te...
33.252964
110
0.567297
7b27764a19c2b8ce27db21198338af1db77ae1c8
14,153
py
Python
tests/test_ec2/test_spot_fleet.py
stj/moto
502957f1f9560cb6dff75271e6812498f4ff7bba
[ "Apache-2.0" ]
1
2021-08-14T05:58:23.000Z
2021-08-14T05:58:23.000Z
tests/test_ec2/test_spot_fleet.py
stj/moto
502957f1f9560cb6dff75271e6812498f4ff7bba
[ "Apache-2.0" ]
null
null
null
tests/test_ec2/test_spot_fleet.py
stj/moto
502957f1f9560cb6dff75271e6812498f4ff7bba
[ "Apache-2.0" ]
1
2021-03-01T08:48:09.000Z
2021-03-01T08:48:09.000Z
from __future__ import unicode_literals import boto3 import sure # noqa from moto import mock_ec2 def get_subnet_id(conn): vpc = conn.create_vpc(CidrBlock="10.0.0.0/16")["Vpc"] subnet = conn.create_subnet( VpcId=vpc["VpcId"], CidrBlock="10.0.0.0/16", AvailabilityZone="us-east-1a" )["Subnet"] ...
37.741333
88
0.695895
570b79a958d99031d5708797b54646954bf80a6f
17,669
py
Python
tests/test_corosync_config.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
1
2021-02-08T16:51:57.000Z
2021-02-08T16:51:57.000Z
tests/test_corosync_config.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
null
null
null
tests/test_corosync_config.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
null
null
null
import sys import mock from iml_common.test.command_capture_testcase import ( CommandCaptureTestCase, CommandCaptureCommand, ) from iml_common.lib.firewall_control import FirewallControlEL7 from iml_common.lib.service_control import ServiceControlEL7 from iml_common.lib.agent_rpc import agent_result_ok class...
35.05754
119
0.583281
1001c3299b5237bd9b5cb95d03248b2d10c884a6
184
py
Python
app.py
PI2-Windris/processing_service
95e09ce4d39baf91e88be4394b22b4bb8cc107ea
[ "MIT" ]
null
null
null
app.py
PI2-Windris/processing_service
95e09ce4d39baf91e88be4394b22b4bb8cc107ea
[ "MIT" ]
null
null
null
app.py
PI2-Windris/processing_service
95e09ce4d39baf91e88be4394b22b4bb8cc107ea
[ "MIT" ]
null
null
null
from flask import Flask from apis import api app = Flask(__name__) api.init_app(app) if __name__ == '__main__': app.run(debug=True, host='0.0.0.0', port=os.getenv('PORT', 8004))
20.444444
69
0.695652
276de3711a37ef1de427b0ad14740bc4bde69fc4
4,934
py
Python
mayan/apps/storage/tests/test_utils.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
336
2019-05-09T07:05:19.000Z
2022-03-25T09:50:22.000Z
mayan/apps/storage/tests/test_utils.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
86
2021-09-01T23:53:02.000Z
2021-09-20T02:25:10.000Z
mayan/apps/storage/tests/test_utils.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from pathlib import Path import shutil from django.utils.encoding import force_text from mayan.apps.documents.storages import storage_document_files from mayan.apps.documents.tests.base import GenericDocumentTestCase from mayan.apps.mimetype.api import get_mimetype from mayan.apps.testing.tests.base import BaseTestCa...
32.460526
122
0.644102
a97d0d1b87293a9c688d18016403153f170f590f
4,076
py
Python
main/model.py
hashtagChameleon/3DMPPE_ROOTNET_RELEASE
58422f05030ad38501447b226a63c4151bd63b7d
[ "MIT" ]
380
2019-07-22T18:30:12.000Z
2022-03-31T08:45:36.000Z
main/model.py
juyongjiang/3DMPPE_ROOTNET_RELEASE
8bef0cd332c3423050a6f3b382d2a574623e1ffa
[ "MIT" ]
41
2019-08-06T03:12:02.000Z
2022-03-28T07:54:36.000Z
main/model.py
juyongjiang/3DMPPE_ROOTNET_RELEASE
8bef0cd332c3423050a6f3b382d2a574623e1ffa
[ "MIT" ]
58
2019-08-05T02:55:53.000Z
2022-03-31T08:45:18.000Z
import torch import torch.nn as nn from torch.nn import functional as F from nets.resnet import ResNetBackbone from config import cfg class RootNet(nn.Module): def __init__(self): self.inplanes = 2048 self.outplanes = 256 super(RootNet, self).__init__() self.deconv_layers = self._...
32.094488
112
0.562807
61698f5cf2929f25d734cc0d2b94828901c1caa7
7,849
py
Python
binder/iris.py
draves15/final
ae8e8e8d35b10bd63e1f0a6d034cf30a98b4ac76
[ "Apache-2.0" ]
null
null
null
binder/iris.py
draves15/final
ae8e8e8d35b10bd63e1f0a6d034cf30a98b4ac76
[ "Apache-2.0" ]
null
null
null
binder/iris.py
draves15/final
ae8e8e8d35b10bd63e1f0a6d034cf30a98b4ac76
[ "Apache-2.0" ]
null
null
null
# Dua, D. and Graff, C. (2019). UCI Machine Learning Repository [http://archive.ics.uci.edu/ml]. Irvine, CA: University of California, School of Information and Computer Science. # Here is a BiBTeX citation as well: # @misc{Dua:2019 , # author = "Dua, Dheeru and Graff, Casey", # year = "2017", # title = "{UCI} Machin...
32.704167
178
0.771181
d4ad137147a9932bfefca09ea2e75c42d32e0ef6
8,930
py
Python
common/Rtree.py
2019ly/CSD
c4ba1ea08b2893e1d61a4be41c1b257de8be5336
[ "MIT" ]
39
2020-06-21T05:14:03.000Z
2021-11-15T01:20:25.000Z
common/Rtree.py
2019ly/CSD
c4ba1ea08b2893e1d61a4be41c1b257de8be5336
[ "MIT" ]
null
null
null
common/Rtree.py
2019ly/CSD
c4ba1ea08b2893e1d61a4be41c1b257de8be5336
[ "MIT" ]
5
2020-06-26T10:33:27.000Z
2020-10-19T06:54:28.000Z
# -*- coding:utf-8 -*- import random from heapq import heappop, heappush from shapely.geometry import box, Point, Polygon from shapely.ops import unary_union from sklearn.cluster import KMeans import matplotlib.pyplot as plt import common def bounding_box(geoms): return unary_union(geoms).envelope class Rtre...
36.153846
121
0.569877