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
913870a7828972e2819ef7ee43385cb3d83b7ca6
1,257
py
Python
dceu2019/src/dceu2019/urls.py
akki/2019.djangocon.eu
249b71ae2aff98bcca8df9ef202415efe0405fea
[ "MIT" ]
1
2019-10-12T13:28:20.000Z
2019-10-12T13:28:20.000Z
dceu2019/src/dceu2019/urls.py
akki/2019.djangocon.eu
249b71ae2aff98bcca8df9ef202415efe0405fea
[ "MIT" ]
null
null
null
dceu2019/src/dceu2019/urls.py
akki/2019.djangocon.eu
249b71ae2aff98bcca8df9ef202415efe0405fea
[ "MIT" ]
1
2019-10-12T13:28:23.000Z
2019-10-12T13:28:23.000Z
""" dceu2019 URL Configuration. The ``urlpatterns`` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from dceu2019.apps.my_app import views 2. Add a URL to urlpatterns: path("", views....
34.916667
86
0.683373
6ad9167e4f372d6960d2225ddcfcfe7290237654
1,301
py
Python
tensorforce/core/preprocessing/grayscale.py
ekerazha/tensorforce
4cfea271190244b5e1efbd92afb880128c53f90c
[ "Apache-2.0" ]
1
2019-12-21T03:31:33.000Z
2019-12-21T03:31:33.000Z
tensorforce/core/preprocessing/grayscale.py
ekerazha/tensorforce
4cfea271190244b5e1efbd92afb880128c53f90c
[ "Apache-2.0" ]
null
null
null
tensorforce/core/preprocessing/grayscale.py
ekerazha/tensorforce
4cfea271190244b5e1efbd92afb880128c53f90c
[ "Apache-2.0" ]
1
2019-12-21T03:31:39.000Z
2019-12-21T03:31:39.000Z
# Copyright 2017 reinforce.io. 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...
32.525
80
0.674097
17602fe541b23ac0c592b9a6a31536b676002ca7
160
py
Python
main/routes/menber.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
1
2021-11-28T05:46:45.000Z
2021-11-28T05:46:45.000Z
main/routes/menber.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
main/routes/menber.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 from main.helpers import url def reg_url(bp): url(bp,'/', 'home') #register url(bp,'/add_users/','add_users',methods=['GET', 'POST'])
22.857143
61
0.625
1777b253fff3364f00f2b9231aa987387e604593
3,044
py
Python
saved_models/C1s/autoinit.py
cassberk/xps_peakfit
bbdd62dbfc4d64ec2af0c509361de81b0762bd41
[ "MIT" ]
1
2021-07-21T13:13:25.000Z
2021-07-21T13:13:25.000Z
saved_models/C1s/autoinit.py
cassberk/xps_peakfit
bbdd62dbfc4d64ec2af0c509361de81b0762bd41
[ "MIT" ]
null
null
null
saved_models/C1s/autoinit.py
cassberk/xps_peakfit
bbdd62dbfc4d64ec2af0c509361de81b0762bd41
[ "MIT" ]
null
null
null
import XPyS import XPyS.config from XPyS.helper_functions import guess_from_data, index_of import os import XPyS.config import numpy as np class AutoInit: def __init__(self,spectra_object): self.spectra_object = spectra_object self.E = self.spectra_object.E self.I = self.spectra_object...
40.052632
128
0.568331
dff5625a020669ae2813127ef28185c84c5ccc38
347
py
Python
exercicios-praticos/exercicio007.py
thamirisvscosta/projetos-python
64aea30fc09a54bdc446152ccb8cd0de022c5912
[ "MIT" ]
null
null
null
exercicios-praticos/exercicio007.py
thamirisvscosta/projetos-python
64aea30fc09a54bdc446152ccb8cd0de022c5912
[ "MIT" ]
null
null
null
exercicios-praticos/exercicio007.py
thamirisvscosta/projetos-python
64aea30fc09a54bdc446152ccb8cd0de022c5912
[ "MIT" ]
null
null
null
n1 = float(input('\033[31m Digite a primeira nota: ')) n2 = float(input('\033[35m Digite a segunda nota: ')) n = (n1 + n2)/2 print(f'\033[32m Somando sua primeira nota {n1} e sua segunda nota {n2}, sua média na disciplina é {n}') print('\033[34m Somando sua primeira nota {} e sua segunda nota {}, sua média na disciplin...
57.833333
116
0.674352
f784ba7a6805edcede4afc054356f4c4fe03cd41
5,600
py
Python
main.py
sqiprasanna/Facial_expression_synthesis_modified
e97d14a77c1315d3041eed9ca4981db565c7abfa
[ "MIT" ]
1
2019-09-22T16:44:46.000Z
2019-09-22T16:44:46.000Z
main.py
sqiprasanna/Facial_expression_synthesis_modified
e97d14a77c1315d3041eed9ca4981db565c7abfa
[ "MIT" ]
null
null
null
main.py
sqiprasanna/Facial_expression_synthesis_modified
e97d14a77c1315d3041eed9ca4981db565c7abfa
[ "MIT" ]
null
null
null
import os import argparse from solver import Solver from data_loader import get_loader from torch.backends import cudnn def str2bool(v): return v.lower() in ('true') def main(config): cudnn.benchmark = True if not os.path.exists(config.log_dir): os.makedirs(config.log_dir) if not os.path.exis...
60.869565
135
0.69625
e41f855825ce037d7bd1f15a374d937b002fed73
283
py
Python
Mundo01/Python/aula10b.py
molonti/CursoemVideo---Python
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
[ "MIT" ]
null
null
null
Mundo01/Python/aula10b.py
molonti/CursoemVideo---Python
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
[ "MIT" ]
null
null
null
Mundo01/Python/aula10b.py
molonti/CursoemVideo---Python
4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11
[ "MIT" ]
null
null
null
n1 = float(input('Digite a primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) m = (n1 + n2)/2 print(f'Sua média foi {m:.1f}') #if m >= 6.0: # print('Média Boa! PARABÉNS!') #else: # print(' Média Ruim! VAI ESTUDAR! ') print('PARABÉNS' if m >=6 else 'ESTUDE MAIS')
25.727273
45
0.607774
e5ebe2e71b3a17bfcd2a9370cffabe49bcfb9527
393
py
Python
data_v3/abstract.py
TwinIsland/CTD
88118f2f2a9436ae1f893a94d79d9307dcc993da
[ "Apache-2.0" ]
null
null
null
data_v3/abstract.py
TwinIsland/CTD
88118f2f2a9436ae1f893a94d79d9307dcc993da
[ "Apache-2.0" ]
null
null
null
data_v3/abstract.py
TwinIsland/CTD
88118f2f2a9436ae1f893a94d79d9307dcc993da
[ "Apache-2.0" ]
null
null
null
#encoding:utf-8 import json with open('sj.json','r', encoding='utf-8',errors='ignore') as f: data = f.read() datas = json.loads(data) #{'title': '关雎', 'chapter': '国风', 'section': '周南', 'content': ['关关雎鸠,在河之洲']} for data in datas: with open('data/' + data['title']+'.txt','w', encoding='gbk',errors='ignor...
21.833333
87
0.562341
fb2a7f8dcba803a8c758602570b8d1f580c0e3b6
1,231
py
Python
bugtests/test313c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test313c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test313c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
import sys, StringIO from xml.sax import saxutils from xml.sax import make_parser from xml.sax.handler import feature_namespaces def dummy_jythonc(): import xml.sax.drivers2.drv_xmlproc import encodings.utf_16_be import dumbdbm file = StringIO.StringIO("""<collection> <comic title="Sandman" number='62...
26.191489
71
0.691308
ad2106eced673755e52d763189a2640f697bfbf0
8,948
py
Python
tests/apis/test_api_requests.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
null
null
null
tests/apis/test_api_requests.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
null
null
null
tests/apis/test_api_requests.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
null
null
null
import asyncio import textwrap import aiohttp.web import pytest from kopf._cogs.clients.api import delete, get, patch, post, request, stream from kopf._cogs.clients.errors import APIError @pytest.mark.parametrize('method', ['get', 'post', 'patch', 'delete']) async def test_raw_requests_work( resp_mocker, ar...
36.226721
94
0.666518
821da03c4ef5cffcd4983bb9411625e5a7807a9d
336
py
Python
meiduo_mall/utils/models.py
Gesiz/Initial_Project
23191a47deab3509a347a755dbb5e06dcdd52efa
[ "MIT" ]
null
null
null
meiduo_mall/utils/models.py
Gesiz/Initial_Project
23191a47deab3509a347a755dbb5e06dcdd52efa
[ "MIT" ]
null
null
null
meiduo_mall/utils/models.py
Gesiz/Initial_Project
23191a47deab3509a347a755dbb5e06dcdd52efa
[ "MIT" ]
null
null
null
from django.db import models class BaseModel(models.Model): """为模型类补充字段""" create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间") update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间") class Meta: abstract = True # 说明是抽象模型类, 用于继承使用,数据库迁移时不会创建Bas...
22.4
79
0.693452
6288ff045067c9cec042f707e35e54e304588702
13,637
py
Python
code/libregamewiki_synchronization.py
Bollos00/opensourcegames
b94aeac3cd96bd3caed121fa1880e21eaca571b3
[ "CC0-1.0" ]
null
null
null
code/libregamewiki_synchronization.py
Bollos00/opensourcegames
b94aeac3cd96bd3caed121fa1880e21eaca571b3
[ "CC0-1.0" ]
null
null
null
code/libregamewiki_synchronization.py
Bollos00/opensourcegames
b94aeac3cd96bd3caed121fa1880e21eaca571b3
[ "CC0-1.0" ]
null
null
null
""" Once data from libregamewiki is imported, synchronize with our database, i.e. identify the entries both have in common, estimate the differences in the entries both have in common, suggest to add the entries they have not in common to each other. unique imported fields: 'assets license', 'categories', 'code langu...
44.711475
215
0.569407
c50376609302bfa7df25d15ea422d898b4a48505
4,152
py
Python
qiskit/algorithms/linear_solvers/numpy_linear_solver.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/algorithms/linear_solvers/numpy_linear_solver.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/algorithms/linear_solvers/numpy_linear_solver.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
44.170213
95
0.662331
6e6a8eccfcc4da2354542fea3c56df9ae01bfaf9
6,006
py
Python
tests/components/insteon/mock_devices.py
svrooij/home-assistant-core
76d105d0ba2f6235acc9bebd21cc3cdf57073316
[ "Apache-2.0" ]
1
2022-03-28T10:34:11.000Z
2022-03-28T10:34:11.000Z
tests/components/insteon/mock_devices.py
thierry-rhone/core
aafe6ff0e295e870a4a0b344a6880c97109d31b3
[ "Apache-2.0" ]
null
null
null
tests/components/insteon/mock_devices.py
thierry-rhone/core
aafe6ff0e295e870a4a0b344a6880c97109d31b3
[ "Apache-2.0" ]
null
null
null
"""Mock devices object to test Insteon.""" import asyncio from unittest.mock import AsyncMock, MagicMock from pyinsteon.address import Address from pyinsteon.constants import ALDBStatus, ResponseStatus from pyinsteon.device_types import ( DimmableLightingControl_KeypadLinc_8, GeneralController_RemoteLinc, ...
37.773585
86
0.614386
d1adfc3b53855ec5f6995520d3348a2d08bb7f3d
1,188
py
Python
ER/FileSign/test_ethereum.py
yenkuanlee/IPDC
1a4c4c963ebda1d8563bcb73fef32aae8563b0b8
[ "MIT" ]
47
2017-07-10T07:27:25.000Z
2021-01-23T09:31:31.000Z
ER/FileSign/test_ethereum.py
jahau/IPDC
1a4c4c963ebda1d8563bcb73fef32aae8563b0b8
[ "MIT" ]
6
2017-06-21T05:49:11.000Z
2019-08-15T20:44:43.000Z
ER/FileSign/test_ethereum.py
jahau/IPDC
1a4c4c963ebda1d8563bcb73fef32aae8563b0b8
[ "MIT" ]
9
2018-04-10T01:05:01.000Z
2020-11-20T13:35:27.000Z
from web3 import Web3, HTTPProvider web3 = Web3(HTTPProvider('http://localhost:8545')) # 0xee5ed742a852cac6045a4f29382279867d3aac95 admin # 0x58f5fe961d419e4cffd40410aa1c4f0250bcc89f kevin99 # 0x865707e28f646756874ff59f0b1b64b7b490f2c4 kevin98 # admin give money #web3.personal.unlockAccount("0xee5ed742a852c...
49.5
168
0.819865
9505782e4683578dae156d6009a4775eef5fbd29
12,342
py
Python
models/conv4d.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
null
null
null
models/conv4d.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
null
null
null
models/conv4d.py
m0r13/VCN
770298416d93c9edc498d43cc9eccae6911e0c06
[ "MIT" ]
null
null
null
import pdb import torch.nn as nn import math import torch from torch.nn.parameter import Parameter import torch.nn.functional as F from torch.nn import Module from torch.nn.modules.conv import _ConvNd from torch.nn.modules.utils import _quadruple from torch.autograd import Variable from torch.nn import Conv2d def conv...
41.555556
191
0.608572
9448f62f3a1587f59d55550ef03df8a228a9ddb5
85
py
Python
3_flask_2/practice/wakii/readJson.py
geronimo03/WebStudio2019
c7a9b59098c2ce97bddfd7727963c3b0f48bdbba
[ "MIT" ]
14
2019-03-06T10:32:40.000Z
2021-11-18T01:44:28.000Z
3_flask_2/practice/wakii/readJson.py
geronimo03/WebStudio2019
c7a9b59098c2ce97bddfd7727963c3b0f48bdbba
[ "MIT" ]
35
2019-03-13T07:04:02.000Z
2019-10-08T06:26:45.000Z
3_flask_2/practice/wakii/readJson.py
geronimo03/WebStudio2019
c7a9b59098c2ce97bddfd7727963c3b0f48bdbba
[ "MIT" ]
22
2019-03-11T11:00:24.000Z
2019-09-14T06:53:30.000Z
import json with open('auth.json','r') as fp : r = json.loads(fp.read()) print(r)
12.142857
34
0.623529
0335ec5ee5cb3d233c44b0cb5805f8e6af74762b
1,973
py
Python
test/functional/interface_rpc.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
test/functional/interface_rpc.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
test/functional/interface_rpc.py
cho2559/readercoin
aad2d84976b4fc5c8577f5460a303ec7492a3f25
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Readercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests some generic aspects of the RPC interface.""" from test_framework.test_framework import Readercoin...
34.017241
75
0.647238
97fb98c00177f75f142efacbd5bdce04e735b786
60
py
Python
manifests/unix.py
mflaxman/specter-diy
3f0c21c0ec534f8178c572baebbb901f9be1652b
[ "MIT" ]
279
2019-08-31T02:26:24.000Z
2022-03-30T06:34:33.000Z
manifests/unix.py
moneymanolis/specter-diy
324f3ed7f27ea1d3385077039861cdeaf21c427a
[ "MIT" ]
125
2019-09-17T10:48:57.000Z
2022-03-11T11:06:51.000Z
manifests/unix.py
moneymanolis/specter-diy
324f3ed7f27ea1d3385077039861cdeaf21c427a
[ "MIT" ]
58
2019-09-03T17:11:13.000Z
2022-03-31T03:17:40.000Z
include('../f469-disco/manifests/unix.py') freeze('../src')
20
42
0.666667
595708220db73e30ae7f942616a4690f4ebbcfbe
13,838
py
Python
ros_bt_py/test/unittest/test_remote_tree_slot.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
4
2022-03-11T14:30:43.000Z
2022-03-31T07:21:35.000Z
ros_bt_py/test/unittest/test_remote_tree_slot.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ros_bt_py/test/unittest/test_remote_tree_slot.py
fzi-forschungszentrum-informatik/ros_bt_py
ed65e2b2f0a03411101f455c0ab38401ba50bada
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -------- BEGIN LICENSE BLOCK -------- # Copyright 2022 FZI Forschungszentrum Informatik # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # n...
40.110145
97
0.697789
0e7d474eb4cd0f6acd7f40aea5e52edbd4ce455c
3,435
py
Python
00_STARTUP/07_LOGIN_LOGOUT_AUTH/orm_databases/orm_databases/settings.py
CrispenGari/python-and-django
f3135a96b40fe7bd403a4946fb90aae3c8577344
[ "MIT" ]
null
null
null
00_STARTUP/07_LOGIN_LOGOUT_AUTH/orm_databases/orm_databases/settings.py
CrispenGari/python-and-django
f3135a96b40fe7bd403a4946fb90aae3c8577344
[ "MIT" ]
null
null
null
00_STARTUP/07_LOGIN_LOGOUT_AUTH/orm_databases/orm_databases/settings.py
CrispenGari/python-and-django
f3135a96b40fe7bd403a4946fb90aae3c8577344
[ "MIT" ]
null
null
null
""" Django settings for orm_databases project. Generated by 'django-admin startproject' using Django 4.0.2. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ from p...
25.827068
91
0.701019
77dfe73bb968c4f475bd0b12be030b7380916f07
4,870
py
Python
generated-libraries/python/netapp/vserver_peer/vserver_peer_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/vserver_peer/vserver_peer_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/vserver_peer/vserver_peer_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class VserverPeerInfo(NetAppObject): """ Contains information about the Vserver peer relationship(s). When returned as part of the output, all elements of this typedef are reported, unless limited by a set of desired attributes specified by the caller. ...
34.295775
94
0.608624
9e4bae10366d5aa04b234ce6f21659155ebc20a9
3,202
py
Python
envs/hns/wrappers/prep_phase.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
9
2021-11-06T15:07:42.000Z
2022-03-18T07:16:22.000Z
envs/hns/wrappers/prep_phase.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
null
null
null
envs/hns/wrappers/prep_phase.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
2
2021-11-10T11:35:36.000Z
2021-12-26T15:18:46.000Z
import gym import numpy as np from copy import deepcopy from envs.hns.wrappers.util import update_obs_space class PreparationPhase(gym.Wrapper): ''' Rewards are switched off during preparation. Args: prep_fraction (float): Fraction of total time that is preparation time ''' def __init__(s...
31.392157
99
0.610556
b84ecf9db6a075370d5458ebef77375ee143ba46
1,150
py
Python
xrayreader/metadatareader/xray_image_metadata.py
paolaperre/Sphinx-documentation-dorothy-data-reader
e2e923d199adf37c4c600e9605a77aaf7d9f4d27
[ "MIT" ]
null
null
null
xrayreader/metadatareader/xray_image_metadata.py
paolaperre/Sphinx-documentation-dorothy-data-reader
e2e923d199adf37c4c600e9605a77aaf7d9f4d27
[ "MIT" ]
null
null
null
xrayreader/metadatareader/xray_image_metadata.py
paolaperre/Sphinx-documentation-dorothy-data-reader
e2e923d199adf37c4c600e9605a77aaf7d9f4d27
[ "MIT" ]
null
null
null
""" Structure for store metadata about a image """ class XRayImageMetadata: #pylint: disable=too-few-public-methods """ This class returns the name of the file containing the x-ray image, the gender, the age and then the report of the patient """ def __init__(self, **kwargs): """ Co...
34.848485
107
0.588696
2a170c7403a2f76a7d6b184cbadc70057f7e3860
2,068
py
Python
ale/equilibrium_condition.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
null
null
null
ale/equilibrium_condition.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
100
2021-10-12T14:08:31.000Z
2021-12-19T16:38:37.000Z
ale/equilibrium_condition.py
martinclason/Molecular-Dynamics-Project
9fddfc5840980e987d72014b1e1f4ed0a031c9fe
[ "MIT" ]
2
2021-10-12T14:00:11.000Z
2021-11-03T09:20:42.000Z
# Needs the Trajectory from ase.io in order to run get_temperature() on # the partial traj-file. from ase.io import Trajectory import numpy as np from ase import atoms, units import sys def equilibrium_check(atomsTraj, numberOfAtoms, ensamble,checkInterval): """This function determines if the system has reached an...
33.354839
89
0.658607
d9adcedebedc56f97e0e2f0844f15c485b333c92
5,846
py
Python
tensorflow/python/data/experimental/benchmarks/snapshot_dataset_benchmark.py
dmpiergiacomo/tensorflow
0ecdc6dc2dbc2381c9317f274bd39281294dfc97
[ "Apache-2.0" ]
9
2019-06-05T06:48:07.000Z
2020-09-29T07:08:02.000Z
tensorflow/python/data/experimental/benchmarks/snapshot_dataset_benchmark.py
dmpiergiacomo/tensorflow
0ecdc6dc2dbc2381c9317f274bd39281294dfc97
[ "Apache-2.0" ]
7
2021-02-21T21:05:59.000Z
2022-02-10T01:39:06.000Z
tensorflow/python/data/experimental/benchmarks/snapshot_dataset_benchmark.py
dmpiergiacomo/tensorflow
0ecdc6dc2dbc2381c9317f274bd39281294dfc97
[ "Apache-2.0" ]
5
2016-11-07T21:17:45.000Z
2020-05-31T00:16:59.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.388235
80
0.709374
a9fa71b2a706975903c801792807621aaf091104
1,380
py
Python
app/core/tests/test_admin.py
kpgpivotal/recipe-app-api
0be1aa3f757bfb8af43418ce15b505e360e645f8
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
kpgpivotal/recipe-app-api
0be1aa3f757bfb8af43418ce15b505e360e645f8
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
kpgpivotal/recipe-app-api
0be1aa3f757bfb8af43418ce15b505e360e645f8
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse from django.test import Client class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( ...
30
68
0.634058
78928a611c1597efce37a86b25ddccdf4c62ec01
32,260
py
Python
opencanary/modules/des.py
wiregrasscoder/opencanary
dd049eebd28220247a0bd8d1083de8bd4308cf62
[ "BSD-3-Clause" ]
31
2018-09-07T01:41:33.000Z
2021-03-01T07:29:44.000Z
opencanary/modules/des.py
wiregrasscoder/opencanary
dd049eebd28220247a0bd8d1083de8bd4308cf62
[ "BSD-3-Clause" ]
12
2018-08-31T06:54:13.000Z
2019-01-15T22:18:31.000Z
opencanary/modules/des.py
wiregrasscoder/opencanary
dd049eebd28220247a0bd8d1083de8bd4308cf62
[ "BSD-3-Clause" ]
21
2018-09-07T08:52:05.000Z
2021-06-30T06:28:03.000Z
############################################################################# # Documentation # ############################################################################# # Author: Todd Whiteman # Date: 16th March, 2009 # Verion: 2.0.0 # License: Public Domain - free to do a...
37.819461
164
0.538066
8df7bf91096ebb0b8ba1fab05b531d2d052b118c
1,454
py
Python
images/api.py
timothyjlaurent/shipyard
400b6455fc249ad096bc849f2f27385cfe2daa6d
[ "Apache-2.0" ]
1
2016-03-24T22:33:09.000Z
2016-03-24T22:33:09.000Z
images/api.py
dragon9783/shipyard
a7cfb15efed01823077825e0b3c3dd6268017177
[ "Apache-2.0" ]
1
2021-06-10T23:32:33.000Z
2021-06-10T23:32:33.000Z
images/api.py
timothyjlaurent/shipyard
400b6455fc249ad096bc849f2f27385cfe2daa6d
[ "Apache-2.0" ]
null
null
null
# Copyright Evan Hazlett and contributors. # # 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 ...
39.297297
74
0.762724
ccca87dd559b8339dbfe59678e68a44358e630e4
476
py
Python
tests/_utils/test_checks.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
1
2021-08-16T02:38:40.000Z
2021-08-16T02:38:40.000Z
tests/_utils/test_checks.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
tests/_utils/test_checks.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
""" Test Checks """ from typing import Any, Collection import pytest from alsek._utils.checks import has_duplicates @pytest.mark.parametrize( "itera,expected", [ ([1, 2, 3], False), ({1, 2, 3}, False), ([1, 2, 3, 3], True), (["a", "b", "c"], False), (["a", "b", ...
17
46
0.539916
968d972b6c2df460a4954218700ceb206b07a537
5,144
py
Python
figures/Fig11.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
figures/Fig11.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
figures/Fig11.py
gstonge/influential-groups
d828adeada32ad354f1af864407c66066db20144
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D from matplotlib.colors import LinearSegmentedColormap from scipy.optimize import brentq from scipy.special import lambertw from matplotlib.transforms import Bbox from mpl_toolkits.axes_grid...
34.993197
82
0.623834
98e0cd8d3452c7b1d4e7eb85095a19626dbfb68b
9,079
py
Python
test-framework/test-suites/integration/tests/load/test_load.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/load/test_load.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/load/test_load.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import json from pathlib import Path from textwrap import dedent import pytest SCOPES = ("global", "host", "environment", "os", "appliance") # Need this because load can touch filesystem files. @pytest.mark.usefixtures("revert_etc") class TestLoad: """A test case to hold all the tests for `stack load`""" @pytest.m...
51.005618
135
0.746888
0795ca7eec774220dfc1fe1c88d09ed18c20feaf
14,197
py
Python
src/sage/interfaces/sage0.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/sage0.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/interfaces/sage0.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
r""" Interface to Sage This is an expect interface to *another* copy of the Sage interpreter. """ #***************************************************************************** # Copyright (C) 2005 William Stein <wstein@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # # The...
26.339518
102
0.492076
ea01bb848309c9a86e67ade2279138d464189daf
5,627
py
Python
modeling/src/test.py
jjkindergarten/VGG-Speaker-Recognition
07b8dfc9157cdefb521ff00ac6f9929a57fc2527
[ "CC-BY-4.0", "Unlicense" ]
null
null
null
modeling/src/test.py
jjkindergarten/VGG-Speaker-Recognition
07b8dfc9157cdefb521ff00ac6f9929a57fc2527
[ "CC-BY-4.0", "Unlicense" ]
null
null
null
modeling/src/test.py
jjkindergarten/VGG-Speaker-Recognition
07b8dfc9157cdefb521ff00ac6f9929a57fc2527
[ "CC-BY-4.0", "Unlicense" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import os import sys import json import numpy as np import pandas as pd import datetime from sklearn.metrics import confusion_matrix sys.path.append('../tool') import toolkits import utils as ut import pdb # =================================...
41.992537
143
0.615248
b0db4efa11dbaf303e51ee29dea32b44075655a2
5,391
py
Python
dev_scripts/old/linter/process_jupytext.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
dev_scripts/old/linter/process_jupytext.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
dev_scripts/old/linter/process_jupytext.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
#!/usr/bin/env python """ Import as: import dev_scripts.old.linter.process_jupytext as dsolprju """ # pylint: disable=line-too-long r""" Automate some common workflows with jupytext. > find . -name "*.ipynb" | grep -v ipynb_checkpoints | head -3 | xargs -t -L 1 process_jupytext.py --action sync --file # Pair > proc...
29.620879
119
0.610833
24bec79507f0d528e31081636ebe30cec55a4c97
42,584
py
Python
sunpy/coordinates/tests/test_transformations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
1
2020-11-14T19:12:01.000Z
2020-11-14T19:12:01.000Z
sunpy/coordinates/tests/test_transformations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
1
2019-08-13T15:29:13.000Z
2019-08-13T15:29:13.000Z
sunpy/coordinates/tests/test_transformations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
6
2017-03-15T07:17:05.000Z
2020-09-30T18:36:49.000Z
import numpy as np import pytest import astropy.units as u from astropy.constants import c as speed_of_light from astropy.coordinates import ( ICRS, Angle, CartesianDifferential, CartesianRepresentation, ConvertError, HeliocentricMeanEcliptic, Longitude, SkyCoord, SphericalDifferent...
45.158006
100
0.719355
3a701c625a9763fffdc6f3220424e1a8b22ad4b5
756
py
Python
uoftscrapers/scrapers/athletics/athletics_helpers.py
kshvmdn/uoft-scrapers
6a8f00d9a581464c3303fe478d59a86b051e671e
[ "MIT" ]
49
2015-11-29T07:46:06.000Z
2021-05-12T14:10:45.000Z
uoftscrapers/scrapers/athletics/athletics_helpers.py
kshvmdn/uoft-scrapers
6a8f00d9a581464c3303fe478d59a86b051e671e
[ "MIT" ]
49
2015-11-21T23:38:31.000Z
2020-05-16T19:13:02.000Z
uoftscrapers/scrapers/athletics/athletics_helpers.py
kshvmdn/uoft-scrapers
6a8f00d9a581464c3303fe478d59a86b051e671e
[ "MIT" ]
28
2016-03-28T21:25:32.000Z
2022-01-04T04:24:07.000Z
from datetime import datetime def get_current_month(): """Return current month.""" now = datetime.now() return '%s-%s' % (now.year, now.month) def get_campus_id(d, campus): """Return campus id, made up of date and specifier (one of SG, M, SC).""" d = datetime.strptime(d, '%Y-%m-%d') return '...
29.076923
77
0.616402
3f6b98ec67eaa523b8683b53ff98e62b23988858
5,096
py
Python
tests/unit/states/test_hg.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
1
2022-02-09T06:40:14.000Z
2022-02-09T06:40:14.000Z
tests/unit/states/test_hg.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
null
null
null
tests/unit/states/test_hg.py
xiaowei582648206/saltx
1d17b030b973ce5422e0fbe7e17c98c7ca91c49b
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Rahul Handay <rahulha@saltstack.com> ''' # Import Python libs from __future__ import absolute_import import os # Import Salt Libs import salt.states.hg as hg # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import sk...
42.115702
119
0.557104
4a5ab15fa460b6b1b0c859ba85dd84a02e820359
3,204
py
Python
pypureclient/flasharray/FA_2_2/models/software_installations_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_2/models/software_installations_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_2/models/software_installations_response.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
28.607143
105
0.555243
59fa8c415fe3cdd6b31ad797f3ef19043754a773
6,047
py
Python
docs/source/conf.py
luigifcruz/cusignal
2bf865cf8187e765cf66ea9039ed99196d06c62f
[ "Apache-2.0" ]
1
2022-03-16T21:20:17.000Z
2022-03-16T21:20:17.000Z
docs/source/conf.py
luigifcruz/cusignal
2bf865cf8187e765cf66ea9039ed99196d06c62f
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
luigifcruz/cusignal
2bf865cf8187e765cf66ea9039ed99196d06c62f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2018, NVIDIA CORPORATION. # # pygdf documentation build configuration file, created by # sphinx-quickstart on Wed May 3 10:59:22 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible con...
29.935644
79
0.692575
e9da6edaf60835bcaf58af1c4e720648b66c7f49
101,884
py
Python
test/functional/feature_taproot.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
65,371
2015-01-01T06:52:02.000Z
2022-03-31T23:29:23.000Z
test/functional/feature_taproot.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
18,259
2015-01-01T03:22:57.000Z
2022-03-31T23:18:25.000Z
test/functional/feature_taproot.py
dathx/bitcoin
57982f419e36d0023c83af2dd0d683ca3160dc2a
[ "MIT" ]
28,827
2015-01-01T00:25:45.000Z
2022-03-31T23:48:15.000Z
#!/usr/bin/env python3 # Copyright (c) 2019-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test Taproot softfork (BIPs 340-342) from test_framework.blocktools import ( COINBASE_MATURITY, ...
57.141896
363
0.658572
62065690d7fd94af9224efc85c71107bc8a4e8fe
1,771
py
Python
pytests/bucket_collections/app/constants/collection_spec.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
pytests/bucket_collections/app/constants/collection_spec.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
pytests/bucket_collections/app/constants/collection_spec.py
cgghali/TAF
1de8dec77ad781c373e18d9c285befd534ac203a
[ "Apache-2.0" ]
null
null
null
collection_spec = dict() default_scope = dict() user_scope = dict() flight_scope = dict() hotel_scope = dict() airline_scope = dict() # Required scopes default_scope["name"] = "_default" user_scope["name"] = "users" flight_scope["name"] = "flights" hotel_scope["name"] = "hotels" airline_scope["name"] = "airlines" de...
38.5
69
0.686618
06d26dfdfc85e3bed9dcbd6dd8893c417568f0f7
2,731
py
Python
tests/test_add_extreme_points_channel.py
tatuanb/monai_V1
41e492b61c78bb3c303f38b03fe9fdc74a3c2e96
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
tests/test_add_extreme_points_channel.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
tests/test_add_extreme_points_channel.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
34.56962
89
0.487367
21f5fbb53f57e971ab87cdbab9b8a988484c1c5b
71
py
Python
Josh/Processing/Processed Data/DictLoader.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
Josh/Processing/Processed Data/DictLoader.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
Josh/Processing/Processed Data/DictLoader.py
aco8ogren/Tentin-Quarantino
08b494f5deb2c33e3bb5981135c780b0a34d5557
[ "MIT" ]
null
null
null
import pickle File=open('GeoDict.pkl','rb') GeoDict=pickle.load(File)
14.2
29
0.746479
f622213998069ddc06236d9268abe874f1cf8dc4
2,300
py
Python
pytext/data/roberta_tensorizer.py
HarounH/pytext
6dd8fccac0b366782b5319af6236d2d337a25b42
[ "BSD-3-Clause" ]
null
null
null
pytext/data/roberta_tensorizer.py
HarounH/pytext
6dd8fccac0b366782b5319af6236d2d337a25b42
[ "BSD-3-Clause" ]
null
null
null
pytext/data/roberta_tensorizer.py
HarounH/pytext
6dd8fccac0b366782b5319af6236d2d337a25b42
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import List from pytext.config.component import ComponentType, create_component from pytext.data.bert_tensorizer import BERTTensorizerBase, build_fairseq_vocab from pytext.data.tokenizers import GPT2BPETokenizer,...
34.848485
86
0.617826
9315f2aed655d96da7bb2a141b4197228033e210
1,257
py
Python
src/lambda_codebase/initial_commit/handler.py
StewartW/aws-deployment-framework
7511241664c946ce3b045db211a4931b1dbaac6d
[ "Apache-2.0" ]
490
2019-03-03T15:24:11.000Z
2022-03-30T10:22:21.000Z
src/lambda_codebase/initial_commit/handler.py
StewartW/aws-deployment-framework
7511241664c946ce3b045db211a4931b1dbaac6d
[ "Apache-2.0" ]
301
2019-03-06T12:13:10.000Z
2022-03-18T16:12:09.000Z
src/lambda_codebase/initial_commit/handler.py
StewartW/aws-deployment-framework
7511241664c946ce3b045db211a4931b1dbaac6d
[ "Apache-2.0" ]
211
2019-03-04T13:56:46.000Z
2022-03-24T10:35:55.000Z
""" The Initial Commit Handler that is called when ADF is installed to commit the initial bootstrap repository content """ try: from initial_commit import lambda_handler # pylint: disable=unused-import except Exception as err: # pylint: disable=broad-except import os import logging from urllib.request ...
33.078947
114
0.594272
f69751662192f3a3caaa304a1fc077881a256ed4
2,431
py
Python
keras/layers/pooling/__init__.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
1
2020-02-02T04:43:33.000Z
2020-02-02T04:43:33.000Z
keras/layers/pooling/__init__.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
1
2022-02-03T12:41:50.000Z
2022-02-03T12:47:45.000Z
keras/layers/pooling/__init__.py
tsheaff/keras
ee227dda766d769b7499a5549e8ed77b5e88105b
[ "Apache-2.0" ]
1
2020-12-13T22:14:48.000Z
2020-12-13T22:14:48.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
54.022222
80
0.825998
f259b2a0223f49c94f429280b122b1ab1f6f0d4c
3,341
py
Python
hydrodata-py/hydro_chmi_cz.py
jirikadlec2/hydrodata
5439741e21827c296b0b6d5b2aee0b453ddeda40
[ "BSD-3-Clause" ]
null
null
null
hydrodata-py/hydro_chmi_cz.py
jirikadlec2/hydrodata
5439741e21827c296b0b6d5b2aee0b453ddeda40
[ "BSD-3-Clause" ]
null
null
null
hydrodata-py/hydro_chmi_cz.py
jirikadlec2/hydrodata
5439741e21827c296b0b6d5b2aee0b453ddeda40
[ "BSD-3-Clause" ]
null
null
null
# downloads ALL GRAPHS from PVL into the specific directory import os from datetime import datetime from pathlib import Path from requests import get from requests_html import HTMLSession from urllib.parse import urljoin def fetch_hpps_streamflow(dst_dir, url=None): """ Fetch streamflow data from chmi fetc...
34.091837
157
0.55672
7eb75665da60f51357ae3638dbc4a7b82b7a1025
385
py
Python
Yoyo/wsgi.py
somnathsarkar/Yoyo
1ac50999aff6b9f8100a4e154a92beb792e917b0
[ "MIT" ]
null
null
null
Yoyo/wsgi.py
somnathsarkar/Yoyo
1ac50999aff6b9f8100a4e154a92beb792e917b0
[ "MIT" ]
null
null
null
Yoyo/wsgi.py
somnathsarkar/Yoyo
1ac50999aff6b9f8100a4e154a92beb792e917b0
[ "MIT" ]
null
null
null
""" WSGI config for Yoyo 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 os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS...
22.647059
78
0.781818
ac7582e166ad1e2b873628680acaf0eb65761839
1,049
py
Python
apps/greencheck/management/commands/insert_procedures.py
eharris128/admin-portal
cb9e2ec1c8c47092a2297ca58bef41e37e2b7f51
[ "Apache-2.0" ]
null
null
null
apps/greencheck/management/commands/insert_procedures.py
eharris128/admin-portal
cb9e2ec1c8c47092a2297ca58bef41e37e2b7f51
[ "Apache-2.0" ]
null
null
null
apps/greencheck/management/commands/insert_procedures.py
eharris128/admin-portal
cb9e2ec1c8c47092a2297ca58bef41e37e2b7f51
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import connection from django.template.loader import render_to_string class Command(BaseCommand): help = "Insert procedures." def handle(self, *args, **options): with connection.cursor() as cursor: insert_urls = render_to_...
34.966667
97
0.702574
ca96362afa3abdcb4f6865f9fa9e582dadedbe2e
110
py
Python
moderate/16.7-number-max/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
moderate/16.7-number-max/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
moderate/16.7-number-max/main.py
digoreis/code-interview
e2250c39b0fc9b6a8f0bc151b4f796d17cdce3e3
[ "MIT" ]
null
null
null
# Write a method that finds the maximum of two numbers. You should not use if-else or any comparison operator.
110
110
0.790909
69d081f6c05cf2babd6439fafbe7f9e646e00f25
787
py
Python
durex/main.py
davidmoremad/durex
ecd74a9ff2385e613b16c84cd600d9ecec8a12ae
[ "Apache-2.0" ]
null
null
null
durex/main.py
davidmoremad/durex
ecd74a9ff2385e613b16c84cd600d9ecec8a12ae
[ "Apache-2.0" ]
null
null
null
durex/main.py
davidmoremad/durex
ecd74a9ff2385e613b16c84cd600d9ecec8a12ae
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import awspice from helpers import ThreadPool from .services import * class Durex(object): def __init__(self, account='default'): self.client = awspice.connect(profile=account) self._ec2 = EC2(self.client) self._s3 = S3(self.client) self._iam = IAM(self.clie...
28.107143
83
0.693774
0e0d327ed965fb7be71917643b4b56b5587042b2
699
py
Python
project/teams/models.py
NoobLucifer/NSP
f411570924905f1bf3c39fa36b5949e5b9e37c0a
[ "MIT" ]
20
2018-08-02T15:10:30.000Z
2019-05-15T14:38:06.000Z
project/teams/models.py
nk521/NSP
ecffc873fbfe3471ed320f0698adca4e8c573ab5
[ "MIT" ]
55
2018-06-19T04:31:56.000Z
2018-07-19T17:42:00.000Z
project/teams/models.py
nk521/NSP
ecffc873fbfe3471ed320f0698adca4e8c573ab5
[ "MIT" ]
10
2018-08-03T10:42:16.000Z
2019-01-31T10:07:57.000Z
from django.db import models from project.models import ProjectDetail from accounts.models import UserProfile # Create your models here. class Team(models.Model): project = models.ForeignKey(ProjectDetail,on_delete=models.CASCADE) name = models.CharField(max_length=500) description = models.TextField() created = m...
36.789474
68
0.76824
d759061fd358c0475668c79040fb59e966d1de55
281
py
Python
test/test_parser_structure.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
1,424
2015-01-04T13:10:22.000Z
2022-03-29T15:12:38.000Z
test/test_parser_structure.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
1,148
2015-01-01T18:26:18.000Z
2022-03-31T21:51:53.000Z
test/test_parser_structure.py
gromgull/rdflib
7c90f646e3734ee6d3081b5d3f699f0f501f6a39
[ "BSD-3-Clause" ]
459
2015-01-03T14:41:34.000Z
2022-03-14T22:06:47.000Z
import rdflib.plugins.sparql.parser import pprint def t(q): print(q) pprint.pprint(rdflib.plugins.sparql.parser.parseQuery(q)) t("SELECT * WHERE { ?s ?p ?o, ?o2 ; ?p2 ?o3 . ?s2 ?p ?o .} ") t("SELECT * WHERE { ?s ?p ?o, ?o2 ; ?p2 ?o3 ; ?p3 [ ?p ?o ] . ?s2 ?p ?o .} ")
20.071429
77
0.55516
e7e0bfc4cb33e7c8213940b46995d03c56727ba8
2,486
py
Python
shards/mishards/exception_handlers.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
1
2021-10-01T18:16:34.000Z
2021-10-01T18:16:34.000Z
shards/mishards/exception_handlers.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
null
null
null
shards/mishards/exception_handlers.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
2
2020-03-02T05:16:57.000Z
2020-03-04T06:05:55.000Z
import logging from milvus.grpc_gen import milvus_pb2, milvus_pb2_grpc, status_pb2 from mishards import grpc_server as server, exceptions logger = logging.getLogger(__name__) def resp_handler(err, error_code): if not isinstance(err, exceptions.BaseException): return status_pb2.Status(error_code=error_cod...
28.906977
73
0.71078
2339aa51cd61c701b4b2700ac9831ef63cbbff3f
426
py
Python
poken.py
exegol/raspi_sense
8a5ce90c049db6d2ebfd6ae32a08c36d1621d98f
[ "MIT" ]
null
null
null
poken.py
exegol/raspi_sense
8a5ce90c049db6d2ebfd6ae32a08c36d1621d98f
[ "MIT" ]
null
null
null
poken.py
exegol/raspi_sense
8a5ce90c049db6d2ebfd6ae32a08c36d1621d98f
[ "MIT" ]
null
null
null
from sense_hat import SenseHat sense = SenseHat() sense.set_rotation(180) poken = "DAS MACHINEN IST NODT FOR GEFINGERPOKEN UND MITTENGRABBEN IST EZY FOR BREKKEN DAS SPRINGWERKS, BLOWENFUSEN MIT LOUDISH POPEN UND SPITZENSPARKEN IST NIX GEWERKEN BY DUMKOPFS! DAS RUBBERNEKKEN SITESEEREN UND STUPIDISCH VOLK BAST RELAXEN....
47.333333
297
0.814554
cf7554de86e5d6a8c350aad4e7db50fe80f8bde1
10,142
py
Python
lib/meshrenderer/box3d_renderer.py
AlbertoRemus/GDR_Net
114cff27c6fc6048724a6f2bdce2306ab51d798e
[ "Apache-2.0" ]
132
2021-02-25T10:45:29.000Z
2022-03-30T06:54:26.000Z
lib/meshrenderer/box3d_renderer.py
AlbertoRemus/GDR_Net
114cff27c6fc6048724a6f2bdce2306ab51d798e
[ "Apache-2.0" ]
69
2021-03-23T12:26:17.000Z
2022-03-29T09:08:11.000Z
lib/meshrenderer/box3d_renderer.py
AlbertoRemus/GDR_Net
114cff27c6fc6048724a6f2bdce2306ab51d798e
[ "Apache-2.0" ]
23
2021-03-26T06:21:32.000Z
2022-03-23T23:53:51.000Z
# -*- coding: utf-8 -*- import os import numpy as np from OpenGL.GL import * from . import gl_utils as gu class Renderer(object): MAX_FBO_WIDTH = 2000 MAX_FBO_HEIGHT = 2000 def __init__(self, models_cad_files, samples, W, H, vertex_tmp_store_folder=".", debug_mode=False): self.W, self.H = W, H...
38.12782
120
0.604319
368fe8e1cff2f4281683c92837f476f616f94c03
1,364
py
Python
preacher/plugin/loader.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
3
2019-08-01T03:14:49.000Z
2020-01-31T08:55:22.000Z
preacher/plugin/loader.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
353
2019-04-14T14:53:28.000Z
2022-03-11T03:26:08.000Z
preacher/plugin/loader.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
1
2020-08-01T06:23:08.000Z
2020-08-01T06:23:08.000Z
import sys import types import uuid from importlib.util import spec_from_file_location, module_from_spec from logging import Logger from typing import Iterable from pluggy import PluginManager from preacher.core.logger import default_logger __all__ = ["load_plugins"] def load_plugins( manager: PluginManager, ...
26.230769
74
0.691349
6c4a1e3eb9df587c68d0a8dc16bb59b4f12ed1b7
1,947
py
Python
docs/source/_python/autosum.py
robert-haas/gravis
3e63b606141bf78617b1247048a9e3ccca6d5824
[ "Apache-2.0" ]
3
2022-01-19T15:57:29.000Z
2022-03-06T02:36:44.000Z
docs/source/_python/autosum.py
robert-haas/mevis
1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327
[ "Apache-2.0" ]
2
2022-03-01T19:29:49.000Z
2022-03-01T19:31:08.000Z
docs/source/_python/autosum.py
robert-haas/mevis
1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327
[ "Apache-2.0" ]
null
null
null
"""Automatic index generation with a class that extends autosummary. References ---------- - https://stackoverflow.com/questions/48074094/use-sphinx-autosummary-recursively-to-generate-api-documentation - https://stackoverflow.com/questions/20569011/python-sphinx-autosummary-automated-listing-of-member-functions """ ...
36.735849
111
0.625064
72a52511da692fcc381781183662c6fac1320270
456
py
Python
aqui_carattino/base/templatetags/menu_tags.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
null
null
null
aqui_carattino/base/templatetags/menu_tags.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
2
2020-05-08T04:30:26.000Z
2021-06-17T20:19:02.000Z
aqui_carattino/base/templatetags/menu_tags.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
null
null
null
from django import template from aqui_carattino.base.models import Menu from aqui_carattino.blog.models import ArticlePage register = template.Library() @register.simple_tag() def get_menu(slug): try: return Menu.objects.get(slug=slug) except Menu.DoesNotExist: return None @register.simple...
20.727273
50
0.719298
6d817850888ee2575f06ebc1a4a2e4267db5474b
8,380
py
Python
test/functional/feature_proxy.py
asuka431/fujicoin-0.20.0
82b1f5dc5480f6585a90ef9cc47fd9cd6c55def2
[ "MIT" ]
1
2022-03-16T02:39:39.000Z
2022-03-16T02:39:39.000Z
test/functional/feature_proxy.py
asuka431/fujicoin-0.20.0
82b1f5dc5480f6585a90ef9cc47fd9cd6c55def2
[ "MIT" ]
null
null
null
test/functional/feature_proxy.py
asuka431/fujicoin-0.20.0
82b1f5dc5480f6585a90ef9cc47fd9cd6c55def2
[ "MIT" ]
1
2022-03-26T10:30:47.000Z
2022-03-26T10:30:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Baricoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test baricoind with different proxy configuration. Test plan: - Start baricoind's with different prox...
41.485149
122
0.62673
f6119436536002bd370d84a4018e87907f509a64
6,847
py
Python
ncskos/nc_concept_hierarchy.py
GeoscienceAustralia/ncskos
d94dc66188ee120c01f6ccdfb85276da313b3d02
[ "CC-BY-4.0" ]
1
2019-05-31T19:13:53.000Z
2019-05-31T19:13:53.000Z
ncskos/nc_concept_hierarchy.py
GeoscienceAustralia/ncskos
d94dc66188ee120c01f6ccdfb85276da313b3d02
[ "CC-BY-4.0" ]
null
null
null
ncskos/nc_concept_hierarchy.py
GeoscienceAustralia/ncskos
d94dc66188ee120c01f6ccdfb85276da313b3d02
[ "CC-BY-4.0" ]
null
null
null
''' Created on 20Dec.,2016 @author: Alex Ip ''' import os import netCDF4 import yaml from ncskos.concept_hierarchy import ConceptHierarchy class NCConceptHierarchy(ConceptHierarchy): ''' NCConceptHierarchy - Class to extend ConceptHierarchy to work with multiple netCDF files ''' def __...
47.22069
128
0.627136
5d59aafd0a703b9683355106896e1e1b761f9288
834
py
Python
wikimon_bot/utils/session.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
7
2016-05-06T12:52:20.000Z
2018-02-13T15:48:15.000Z
wikimon_bot/utils/session.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
null
null
null
wikimon_bot/utils/session.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
3
2017-01-14T14:25:01.000Z
2021-03-11T21:01:36.000Z
import shelve class SessionDB: """ In real world applications, choosing a very efficient way to store sessions on databases is essential. Here it's ok. Shelve is pure simple python to create a disk persistent map. https://docs.python.org/2/library/shelve.html#example """ d...
27.8
74
0.591127
1ba359e6c810a4203a5eb8ab22cc550cee3c7cd8
1,597
py
Python
Python3/470.implement-rand-10-using-rand-7.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/470.implement-rand-10-using-rand-7.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/470.implement-rand-10-using-rand-7.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=470 lang=python3 # # [470] Implement Rand10() Using Rand7() # # https://leetcode.com/problems/implement-rand10-using-rand7/description/ # # algorithms # Medium (46.10%) # Likes: 431 # Dislikes: 135 # Total Accepted: 23.3K # Total Submissions: 50.3K # Testcase Example: '1' # # Given a func...
15.656863
78
0.562304
56ebc89a60bd5567f9c6b95200ec43b4ddc1b7d9
6,446
py
Python
lightbulb/core/utils/webserveriframehandler.py
mehrdad-shokri/lightbulb-framework
f103a1740548209dbc238d05a91c62bdd514bea7
[ "MIT" ]
497
2016-11-13T20:05:31.000Z
2022-03-08T06:20:15.000Z
lightbulb/core/utils/webserveriframehandler.py
Kin9A/lightbulb-framework
9e8d6f37f28c784963dba3d726a0c8022a605baf
[ "MIT" ]
10
2016-11-10T10:44:47.000Z
2021-08-30T07:24:15.000Z
lightbulb/core/utils/webserveriframehandler.py
Kin9A/lightbulb-framework
9e8d6f37f28c784963dba3d726a0c8022a605baf
[ "MIT" ]
79
2016-11-06T14:14:27.000Z
2022-03-23T14:04:58.000Z
"""This module handles browser content""" import SimpleHTTPServer from urlparse import urlparse, parse_qs from urllib import unquote class WebServerIframeHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): """This class handles browser content""" def log_message(self, format, *args): # sys.stderr.wri...
41.057325
160
0.359448
a416fcbf6bf4b82812f62cad17d937f9c01f951c
1,630
py
Python
discordbot.py
8ka1alu/text-to-voice
89cd3d9f50712540589066809bd23f5afd31b405
[ "MIT" ]
null
null
null
discordbot.py
8ka1alu/text-to-voice
89cd3d9f50712540589066809bd23f5afd31b405
[ "MIT" ]
null
null
null
discordbot.py
8ka1alu/text-to-voice
89cd3d9f50712540589066809bd23f5afd31b405
[ "MIT" ]
null
null
null
from discord.ext import commands, tasks import traceback import os import discord TOKEN = os.environ['DISCORD_BOT_TOKEN'] prefix = os.environ['DISCORD_BOT_PREFIX'] # 読み込むコグの名前を格納しておく。 INITIAL_EXTENSIONS = [ 'cogs.eval', 'cogs.test', 'cogs.vc' ] # クラスの定義。ClientのサブクラスであるBotクラスを継承。 class MyBot(commands.Bot)...
29.636364
143
0.660736
1d1d4017393d866fe921927b3e047ccbd05f9165
1,444
py
Python
posts/forms.py
orlyohreally/orlyohreallysdjangoblog
e2b0ef09e6f7d34c1702a4c190a8f8f8b561347a
[ "MIT" ]
null
null
null
posts/forms.py
orlyohreally/orlyohreallysdjangoblog
e2b0ef09e6f7d34c1702a4c190a8f8f8b561347a
[ "MIT" ]
null
null
null
posts/forms.py
orlyohreally/orlyohreallysdjangoblog
e2b0ef09e6f7d34c1702a4c190a8f8f8b561347a
[ "MIT" ]
1
2019-05-22T04:07:27.000Z
2019-05-22T04:07:27.000Z
from django import forms from .models import Post, Comment from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth import (authenticate, get_user_model, login, logout) from django.contrib.auth.models import User class PostForm(forms.ModelForm): class Meta: model = Post fiel...
42.470588
77
0.671053
2ca2022cdf2751c05427164f67f324260adeb5ce
1,504
py
Python
userbot/plugins/mailx3.py
x3raqee/x3raqe
d062ace8d69895a8ab80a003fc76da63e2b63a1d
[ "Apache-2.0" ]
null
null
null
userbot/plugins/mailx3.py
x3raqee/x3raqe
d062ace8d69895a8ab80a003fc76da63e2b63a1d
[ "Apache-2.0" ]
null
null
null
userbot/plugins/mailx3.py
x3raqee/x3raqe
d062ace8d69895a8ab80a003fc76da63e2b63a1d
[ "Apache-2.0" ]
1
2021-04-27T23:28:43.000Z
2021-04-27T23:28:43.000Z
# @x3raqe """mail: First Send Your Country name then reply .mail """ import datetime from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.account import UpdateNotifySettingsRequest from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="mail ?(.*)"...
36.682927
101
0.647606
ae327e4354494532b5fc6f14e3de8e02b07e9f38
834
py
Python
lab_06_linear_regression/lab-06_linear_regression_plot.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
1
2021-03-23T16:18:00.000Z
2021-03-23T16:18:00.000Z
lab_06_linear_regression/lab-06_linear_regression_plot.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
lab_06_linear_regression/lab-06_linear_regression_plot.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt data = np.array([[100, 20], [150, 24], [300, 36], [400, 47], [130, 22], [240, 32], [350, 47], [200, 42], [100, 21], [11...
20.341463
39
0.435252
66dc0557a7020e62d0463f925e3257cfa10354df
4,307
py
Python
buildchain/buildchain/constants.py
SaintLoong/metalk8s
06fa3a731f35ab0f9ad8d3443fd8f8c4e7037432
[ "Apache-2.0" ]
null
null
null
buildchain/buildchain/constants.py
SaintLoong/metalk8s
06fa3a731f35ab0f9ad8d3443fd8f8c4e7037432
[ "Apache-2.0" ]
null
null
null
buildchain/buildchain/constants.py
SaintLoong/metalk8s
06fa3a731f35ab0f9ad8d3443fd8f8c4e7037432
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """Useful global constants, used hither and yon.""" from pathlib import Path import subprocess from typing import List, Optional, FrozenSet from buildchain import ROOT # Re-export ROOT through this module. from buildchain import config # Max length of a "command". # (used in task display, for a ...
30.330986
86
0.702809
e6650977975babd3ea109018789b72f66f6d34ee
468
py
Python
backmarker/models/race.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/models/race.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/models/race.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
from django.db import models from backmarker.models.circuit import Circuit class Race(models.Model): year = models.IntegerField() round = models.IntegerField() circuit = models.ForeignKey(Circuit, models.PROTECT) name = models.CharField(max_length=255) date = models.DateField() time = models....
27.529412
60
0.707265
670f78f9f02f42dc995f7501f7fb6d3a80669a07
1,807
py
Python
culture.py
Khan/culture-cron
d6560a14f7f9d47dd23e6ecd9f19bbab2c552a71
[ "MIT" ]
null
null
null
culture.py
Khan/culture-cron
d6560a14f7f9d47dd23e6ecd9f19bbab2c552a71
[ "MIT" ]
null
null
null
culture.py
Khan/culture-cron
d6560a14f7f9d47dd23e6ecd9f19bbab2c552a71
[ "MIT" ]
2
2016-02-23T19:45:06.000Z
2020-02-15T01:35:56.000Z
# -*- coding: utf-8 -*- import csv import json import logging import random import re import urllib2 from google.appengine.api import memcache import webapp2 import alertlib _DEFAULT_CHANNEL = "#1s-and-0s" _CULTURE_MESSAGES_CSV_URL = "https://docs.google.com/spreadsheets/d/1EtgPvCh0a0AFDOW2vu_ugWQTZVQbsPXKEebbOoqof9...
30.116667
146
0.681793
d8217d3da2c436eef845d56e3f6ef207e5be4a79
3,344
py
Python
aalh_iit_transportation_001/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_transportation_001/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_transportation_001/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook import re filename = 'aalh_iit_transportation_001_uploaded.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 524 iterationrow = 7 covcol = 10 rawcovcol = 49 for row in ws.iter_rows(min_row=mini...
42.871795
105
0.58433
c29bf5b728d304729f25c92b927b698fcbaa2cf7
937
py
Python
clustering/scripts/correctCorrCalcData.py
ramansbach/cluster_analysis
6fe0be86cebf34558b501d86905a77c6e0164b5a
[ "MIT" ]
null
null
null
clustering/scripts/correctCorrCalcData.py
ramansbach/cluster_analysis
6fe0be86cebf34558b501d86905a77c6e0164b5a
[ "MIT" ]
null
null
null
clustering/scripts/correctCorrCalcData.py
ramansbach/cluster_analysis
6fe0be86cebf34558b501d86905a77c6e0164b5a
[ "MIT" ]
null
null
null
#open a 5-column (from 5 runs) and 1 column set of corrcalc data #output 5-column with the first (data) column replaced with the 1 column import argparse,pdb parser = argparse.ArgumentParser() parser.add_argument('f5name',metavar='input5',type=str,help='5 column data file') parser.add_argument('f1name',metavar='input1'...
33.464286
117
0.712914
49a2a19259594cb4141787595e8e935edcc59605
12,564
py
Python
chessbot/ChessBot.py
xybotsu/pybot
3d533fb2d0bb42b4b41923de822c907a526a1810
[ "MIT" ]
2
2018-07-19T15:34:58.000Z
2018-07-19T15:45:05.000Z
chessbot/ChessBot.py
xybotsu/pybot
3d533fb2d0bb42b4b41923de822c907a526a1810
[ "MIT" ]
4
2018-12-29T02:38:15.000Z
2019-12-24T06:09:18.000Z
chessbot/ChessBot.py
xybotsu/pybot
3d533fb2d0bb42b4b41923de822c907a526a1810
[ "MIT" ]
null
null
null
from bot.Bot import SlackBot, Command from .ai import getMove from .analysis import upload_analysis from .board import TarraschBoard, TarraschNoBoardException from chess import SQUARE_NAMES from prettytable import PrettyTable import json import time COOLDOWN_SECONDS = 0 MP = "chess" class ChessBot(SlackBot): de...
37.616766
88
0.542264
a20ee1cf2f0e03c46d76e63ca428d0dece16c8d6
7,336
py
Python
tests/extension/thread_/stream_linebuffer2d_2/thread_stream_linebuffer2d_2.py
Pyverilog/veriloggen
381ac8920088d986925cf87cb838366eb48a4889
[ "Apache-2.0" ]
232
2015-09-01T16:07:48.000Z
2022-03-28T14:53:28.000Z
tests/extension/thread_/stream_linebuffer2d_2/thread_stream_linebuffer2d_2.py
Pyverilog/veriloggen
381ac8920088d986925cf87cb838366eb48a4889
[ "Apache-2.0" ]
34
2015-08-21T09:13:03.000Z
2022-03-21T23:52:44.000Z
tests/extension/thread_/stream_linebuffer2d_2/thread_stream_linebuffer2d_2.py
shtaxxx/veriloggen
381ac8920088d986925cf87cb838366eb48a4889
[ "Apache-2.0" ]
46
2015-09-24T14:39:57.000Z
2022-02-23T21:59:56.000Z
from __future__ import absolute_import from __future__ import print_function import sys import os import functools # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))) from veriloggen i...
31.217021
97
0.562296
e311342ad795ad58365a2db688e1b1c4bcac90a4
20,220
py
Python
one_fm/hooks.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
null
null
null
one_fm/hooks.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
null
null
null
one_fm/hooks.py
askmetoo/One-FM
c93ed63695a3e62ee8129bd9adf563116b749030
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version import frappe as _frappe from frappe import _ from erpnext.hr.doctype.shift_type.shift_type import ShiftType from one_fm.api.doc_methods.shift_type import process_auto_attendance app_name = "one_fm" app_title = "O...
35.978648
199
0.742532
73f8deaf233cc98a006b5c9e2403a4fa9c7fb9a0
26,205
py
Python
vrep/b0RemoteApi.py
toulouse-robot-race/turbot-simu
f4393b1b8f210265c613b6bdc47aa95016c8b76b
[ "Apache-2.0" ]
5
2019-04-11T20:52:02.000Z
2019-10-08T02:14:40.000Z
vrep/b0RemoteApi.py
toulouse-robot-race/turbot-simu
f4393b1b8f210265c613b6bdc47aa95016c8b76b
[ "Apache-2.0" ]
null
null
null
vrep/b0RemoteApi.py
toulouse-robot-race/turbot-simu
f4393b1b8f210265c613b6bdc47aa95016c8b76b
[ "Apache-2.0" ]
1
2019-04-11T20:52:04.000Z
2019-04-11T20:52:04.000Z
# ------------------------------------------------------- # Add your custom functions at the bottom of the file # and the server counterpart to lua/b0RemoteApiServer.lua # ------------------------------------------------------- import msgpack import random import string from robot import Time from vrep import b0 cla...
51.382353
150
0.70685
d43d4a4c3a37eccc474806e7ef55368e6c5593c7
953
py
Python
SERVER/SERVER/urls.py
punk95/Django_Server_Sleep_Apnea
b3e8e556036e6199e37cf14be69c046d91a7e821
[ "MIT" ]
null
null
null
SERVER/SERVER/urls.py
punk95/Django_Server_Sleep_Apnea
b3e8e556036e6199e37cf14be69c046d91a7e821
[ "MIT" ]
null
null
null
SERVER/SERVER/urls.py
punk95/Django_Server_Sleep_Apnea
b3e8e556036e6199e37cf14be69c046d91a7e821
[ "MIT" ]
null
null
null
"""SERVER URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
32.862069
77
0.689402
f98b7a2199aa815bd6e2bb771038e05c7fbf1eed
733
py
Python
Src/StdLib/Lib/distutils/tests/test_bdist_msi.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
Src/StdLib/Lib/distutils/tests/test_bdist_msi.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
Src/StdLib/Lib/distutils/tests/test_bdist_msi.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
"""Tests for distutils.command.bdist_msi.""" import sys import unittest from test.test_support import run_unittest from distutils.tests import support @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows') class BDistMSITestCase(support.TempdirManager, support.LoggingSilen...
28.192308
76
0.695771
e565cbc798adac0e0dded63b3ad97faea289e5fe
5,760
py
Python
contrib/seeds/makeseeds.py
Kozisto/myn
104b6cbaef67425c9644a9d31a38cad17f655ba4
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
Kozisto/myn
104b6cbaef67425c9644a9d31a38cad17f655ba4
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
Kozisto/myn
104b6cbaef67425c9644a9d31a38cad17f655ba4
[ "MIT" ]
1
2018-07-11T18:54:00.000Z
2018-07-11T18:54:00.000Z
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 2088754 ...
33.294798
186
0.570313
7e41cc61eeb10123a25b41d00638d37232f8e61d
11,283
py
Python
tests/st/networks/models/bert/bert_precision/test_bert_tdt_lossscale.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/networks/models/bert/bert_precision/test_bert_tdt_lossscale.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/networks/models/bert/bert_precision/test_bert_tdt_lossscale.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.064885
116
0.668262
bf8c0fdeb732a9c527dc68f89d15d43d2fccff91
1,010
py
Python
config_pedrolucas.py
silvablack/instabot
61f3d20ffa36155e052fe36cd234175e1affde28
[ "MIT" ]
null
null
null
config_pedrolucas.py
silvablack/instabot
61f3d20ffa36155e052fe36cd234175e1affde28
[ "MIT" ]
null
null
null
config_pedrolucas.py
silvablack/instabot
61f3d20ffa36155e052fe36cd234175e1affde28
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from instabot_py import InstaBot bot = InstaBot( login="raposo_sounet", password="n3g4tlv4", like_per_day=1000, comments_per_day=60, tag_list=["l:213665700", "propaganda", "publicidade", "l:213665700", "marketing","bar", "l:213665700", "restaurante", ...
33.666667
202
0.647525
3effcb2b4900d6766d2f68504477cec1d7ac32ef
1,801
py
Python
UnityEngine/ParticleSystem/ColorBySpeedModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystem/ColorBySpeedModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystem/ColorBySpeedModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class ColorBySpeedModule: def __new__(cls, arg1=None): ''' :returns: ColorBySpeedModule :rtype: UnityEngine.ParticleSystem.ColorBySpeedModule ''' pass @staticmethod def set_e...
18.957895
61
0.518601
888ba60a0570fadcbd71f3f36feb18789ab5c754
4,008
py
Python
keras/utils/np_utils.py
OneRaynyDay/keras-apache-mxnet
332c62f7b521b109431c0ef91317b2ce00e4cfb7
[ "MIT" ]
2
2021-06-24T13:37:42.000Z
2021-06-24T13:46:40.000Z
keras/utils/np_utils.py
OneRaynyDay/keras-apache-mxnet
332c62f7b521b109431c0ef91317b2ce00e4cfb7
[ "MIT" ]
null
null
null
keras/utils/np_utils.py
OneRaynyDay/keras-apache-mxnet
332c62f7b521b109431c0ef91317b2ce00e4cfb7
[ "MIT" ]
null
null
null
"""Numpy-related utilities.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from keras import backend as K import warnings def to_categorical(y, num_classes=None): """Converts a class vector (integers) to binary class matrix. ...
33.680672
80
0.606038
df8fb222a0bae762bfdc56c0df5cfdaef9d1c20e
3,317
py
Python
core/utils/logger.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/utils/logger.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/utils/logger.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import functools import logging import os import sys from termcolor import colored class _ColorfulFormatter(logging.Formatter): def __init__(self, *args, **kwargs): self._root_name = kwargs.pop("root_name") + "." self._abbrev_...
34.552083
94
0.630992
29ec620639b2d32447df993267778e76ca6f3ed1
311
py
Python
Mundo2 - desafios-CEV/desafio-064.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
1
2021-01-07T12:43:48.000Z
2021-01-07T12:43:48.000Z
Mundo2 - desafios-CEV/desafio-064.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
null
null
null
Mundo2 - desafios-CEV/desafio-064.py
JeffeSilva/EP-python
a4d8ccb727ab9e10785b2dfd219cff72e0d808f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python sair = 0 somar = 0 c = 1 while sair != 999: num = int(input('Digite números para somar, ou [999] para sair: ')) if num == 999: sair = 999 if num != 999: somar += num c += 1 print('Foram digitados {} números e a soma é: {}.'.format(c - 1, somar))
23.923077
72
0.530547
49eb994aed898886d94bcd2b453286749a291201
5,865
py
Python
data/camvid.py
danslavov/ENet-PyTorch-davidtvs
a340f093fb86a41d0aa8e1b49f6891b32d809efa
[ "MIT" ]
null
null
null
data/camvid.py
danslavov/ENet-PyTorch-davidtvs
a340f093fb86a41d0aa8e1b49f6891b32d809efa
[ "MIT" ]
null
null
null
data/camvid.py
danslavov/ENet-PyTorch-davidtvs
a340f093fb86a41d0aa8e1b49f6891b32d809efa
[ "MIT" ]
null
null
null
import os from collections import OrderedDict import torch.utils.data as data from . import utils from args import get_arguments # Get the arguments args = get_arguments() def get_color_encoding(): return CamVid.color_encoding class CamVid(data.Dataset): """CamVid dataset loader where the da...
37.83871
88
0.566581
bb648f653c40b088c6681af5c0612a73160665a7
13,808
py
Python
sdk/python/pulumi_aws/apigatewayv2/deployment.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/apigatewayv2/deployment.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/apigatewayv2/deployment.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# 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...
43.015576
428
0.651796
0421ebf9429e712a98ee4d249f421ea20ad54af2
13,668
py
Python
train.py
xiexiangxiang/ViT-pytorch
2ab653d6562f9437404882cca48bc2e4400b926c
[ "MIT" ]
null
null
null
train.py
xiexiangxiang/ViT-pytorch
2ab653d6562f9437404882cca48bc2e4400b926c
[ "MIT" ]
null
null
null
train.py
xiexiangxiang/ViT-pytorch
2ab653d6562f9437404882cca48bc2e4400b926c
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function import logging import argparse import os import random import numpy as np from datetime import timedelta import torch import torch.distributed as dist from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from apex imp...
41.293051
113
0.601478
ca1db4b918e006365da87f4bd8a7b0145301177b
1,066
py
Python
pypal/body/static/orientated_terrain.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
pypal/body/static/orientated_terrain.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
pypal/body/static/orientated_terrain.py
code-forger/PyPal
f880f2bc9a4aa01e1c9aa2cfc956202e91ab1a69
[ "BSD-2-Clause" ]
null
null
null
from pypal import private_globals as _pal import ctypes as c import weakref from ..bodybase import BodyBase class OrientatedTerrainPlane(BodyBase): """ A Static Terrain Plane perpendicular to the given vector. """ def __init__(self, pos, rot, min_size): """ Parameters: pos: ``float[3]`...
44.416667
200
0.64728
a8ff01f8f29f9411da3aacefc3c1e01812a4650e
37,088
py
Python
bipartitepandas/bipartitelongbase.py
adamoppenheimer/bipartitepandas
529f139602d2eda75034824098c8a59300e13472
[ "MIT" ]
null
null
null
bipartitepandas/bipartitelongbase.py
adamoppenheimer/bipartitepandas
529f139602d2eda75034824098c8a59300e13472
[ "MIT" ]
null
null
null
bipartitepandas/bipartitelongbase.py
adamoppenheimer/bipartitepandas
529f139602d2eda75034824098c8a59300e13472
[ "MIT" ]
null
null
null
''' Base class for bipartite networks in long or collapsed long form ''' import numpy as np import pandas as pd import bipartitepandas as bpd class BipartiteLongBase(bpd.BipartiteBase): ''' Base class for BipartiteLong and BipartiteLongCollapsed, where BipartiteLong and BipartiteLongCollapsed give a bipartite ...
45.562654
315
0.617828
6fa44b301c342d934723f1c10fd23883c96b6d2d
3,775
py
Python
dh/base/models.py
boxed/dubbningshemsidan
ff68286dcf297a2789f80f57bb1c9c06d9bf1524
[ "BSD-3-Clause" ]
null
null
null
dh/base/models.py
boxed/dubbningshemsidan
ff68286dcf297a2789f80f57bb1c9c06d9bf1524
[ "BSD-3-Clause" ]
null
null
null
dh/base/models.py
boxed/dubbningshemsidan
ff68286dcf297a2789f80f57bb1c9c06d9bf1524
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.template import ( Template, Context, ) class Actor(models.Model): name = models.CharField(max_length=255, unique=True, db_index=True, db_collation='NOCASE') class Meta: ordering = ('name',) def __str__(self): return self.name def __re...
28.383459
153
0.651656
0ba0bada438463e7990cf13aee05804c9f1d200b
12,377
py
Python
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2021-09-07T18:35:49.000Z
2021-09-07T18:35:49.000Z
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/containerregistry/azure-containerregistry/tests/test_container_repository_client_async.py
GoWang/azure-sdk-for-python
f241e3734a50953c2a37c10d2d84eb4c013b3ba0
[ "MIT" ]
1
2019-04-05T18:17:43.000Z
2019-04-05T18:17:43.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from datetime import datetime import pytest from devtools_testutils import AzureTestCase from azure.containerregistry import ( DeletedRepositoryResu...
38.557632
112
0.685788
0ab13139d108e4017be7bd55fee0aa75e8166724
1,550
py
Python
terrascript/datadog/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
4
2022-02-07T21:08:14.000Z
2022-03-03T04:41:28.000Z
terrascript/datadog/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
null
null
null
terrascript/datadog/r.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
2
2022-02-06T01:49:42.000Z
2022-02-08T14:15:00.000Z
# terrascript/datadog/r.py import terrascript class datadog_dashboard(terrascript.Resource): pass class datadog_dashboard_list(terrascript.Resource): pass class datadog_downtime(terrascript.Resource): pass class datadog_integration_aws(terrascript.Resource): pass class datadog_integration_aws_...
16.315789
73
0.801935
04b53c9531448b4072052d49094bd472c60c49b6
908
py
Python
test/test_video_file.py
Cloudmersive/Cloudmersive.APIClient.Python.Video
d84faa11dcfd86124dfb22dad5bcebb1665154a7
[ "Apache-2.0" ]
1
2020-07-19T18:02:43.000Z
2020-07-19T18:02:43.000Z
test/test_video_file.py
Cloudmersive/Cloudmersive.APIClient.Python.Video
d84faa11dcfd86124dfb22dad5bcebb1665154a7
[ "Apache-2.0" ]
null
null
null
test/test_video_file.py
Cloudmersive/Cloudmersive.APIClient.Python.Video
d84faa11dcfd86124dfb22dad5bcebb1665154a7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ videoapi The video APIs help you convert, encode, and transcode videos. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_video_api_client ...
22.146341
91
0.709251
5f0fd6720f43dc6f8d3e793bbe5a7e094b6ab6b7
701
py
Python
python/contextlib/contextlib_closing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_closing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_closing.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import contextlib class Door: def __init__(self): print(' __init__()') self.status = 'open' def close(self): print(' close()') self.status = 'closed' print('Normal Example:') with contextlib.closing(Door()) as door: print(' insidte with statement: {}'.format(door.sta...
25.035714
73
0.649073
f4519450a6bc1f6c152dcdaf2b1ba7ee779d102d
17,112
py
Python
autogluon/scheduler/hyperband_promotion.py
jhutchings1/autogluon
9a0eb8a8f7c88cd09b081adf5d4c6c281d113d75
[ "Apache-2.0" ]
null
null
null
autogluon/scheduler/hyperband_promotion.py
jhutchings1/autogluon
9a0eb8a8f7c88cd09b081adf5d4c6c281d113d75
[ "Apache-2.0" ]
null
null
null
autogluon/scheduler/hyperband_promotion.py
jhutchings1/autogluon
9a0eb8a8f7c88cd09b081adf5d4c6c281d113d75
[ "Apache-2.0" ]
2
2020-12-13T16:40:04.000Z
2021-03-08T09:14:16.000Z
import logging import numpy as np import heapq import copy from .hyperband_stopping import map_resource_to_index, _sample_bracket logger = logging.getLogger(__name__) class HyperbandPromotion_Manager(object): """Hyperband Manager Implements both the promotion and stopping logic for an asynchronous ...
41.838631
117
0.615065
9acf3c23cb503848ad8728db96aed88805c3b7fa
6,112
py
Python
models/DispNetCorr1D-K/demo.py
whuwuteng/dispflownet-release
e1667bf5d15283907aa0b8164c9e5e446cf15c30
[ "BSD-2-Clause" ]
null
null
null
models/DispNetCorr1D-K/demo.py
whuwuteng/dispflownet-release
e1667bf5d15283907aa0b8164c9e5e446cf15c30
[ "BSD-2-Clause" ]
null
null
null
models/DispNetCorr1D-K/demo.py
whuwuteng/dispflownet-release
e1667bf5d15283907aa0b8164c9e5e446cf15c30
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os, sys import subprocess from math import ceil my_dir = os.path.dirname(os.path.realpath(__file__)) os.chdir(my_dir) caffe_bin = 'bin/caffe.bin' img_size_bin = 'bin/get_image_size' template = 'model/deploy.tpl.prototxt' # ========================================================= def d...
31.505155
147
0.625327
4b57c85b91fb3cabb6b868488449efd1fd82f270
996
py
Python
setup.py
convergence-lab/novograd
9d35e8ba9cabb3e054a871536b303e5bd70016f5
[ "Apache-2.0" ]
9
2019-08-21T14:09:45.000Z
2020-08-21T04:27:42.000Z
setup.py
convergence-lab/novograd
9d35e8ba9cabb3e054a871536b303e5bd70016f5
[ "Apache-2.0" ]
1
2019-12-14T15:18:56.000Z
2019-12-14T15:18:56.000Z
setup.py
convergence-lab/novograd
9d35e8ba9cabb3e054a871536b303e5bd70016f5
[ "Apache-2.0" ]
1
2020-03-25T03:57:20.000Z
2020-03-25T03:57:20.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import os from setuptools import setup, find_packages try: with open('README.rst') as f: readme = f.read() except IOError: readme = '' def _requires_from_file(filename): re...
23.162791
61
0.681727