hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
8db29e40510fc64c7655a39c604ac0d49c03c44b
795
py
Python
setup.py
Flowerowl/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
204
2015-01-03T14:29:43.000Z
2021-12-15T16:21:28.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
5
2015-05-14T10:34:24.000Z
2017-10-09T15:53:47.000Z
setup.py
QQ83076130/ici
7c3209ee0ddfae27bda76f586ac02545364a0c73
[ "MIT" ]
77
2015-01-13T01:44:16.000Z
2021-12-15T16:21:39.000Z
#encoding:utf-8 from setuptools import setup, find_packages import sys, os version = '0.4.3' setup(name='ici', version=version, description="terminal", long_description="""terminal""", classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='pyt...
27.413793
95
0.632704
8db3a905d27b52ca5f7ab31fe8496b3bc345779b
24,074
py
Python
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
4
2017-02-08T22:50:28.000Z
2018-05-29T07:29:47.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
81
2016-07-19T13:55:12.000Z
2021-05-07T15:03:05.000Z
src/son/monitor/son_sp.py
dang03/son-cli
3e29322d4556f3e02f7b15c43c5e66a1e7e07bd3
[ "Apache-2.0" ]
13
2016-07-19T13:33:19.000Z
2019-04-25T08:04:15.000Z
""" Copyright (c) 2015 SONATA-NFV 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 agreed to in...
43.533454
143
0.620005
8db3db553de8307aa88c5fde47c1bd6250050be2
2,246
py
Python
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
2
2021-09-05T16:42:13.000Z
2021-09-09T18:41:14.000Z
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
cogs/miscellaneous/avatar.py
AkshuAgarwal/Aperture-1.7
c55ffa68d3a4de0daaaad2c918173e5ebca9f006
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Union from discord import Member, User, Embed from discord.ext import commands from bot.main import NewCommand
45.836735
269
0.638023
8db5993b3ba09fcfb72c92ea6f0805e8ba07d24f
810
py
Python
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
Basics II/Lists2.py
marinaoliveira96/python-exercises
13fc0ec30dec9bb6531cdeb41c80726971975835
[ "MIT" ]
null
null
null
print(isinstance(3, int)) lista = ['marina', 2, 'jujuba'] lista2 = [] for i in lista: if isinstance(i, str): lista2.append(i) print(lista2) myList = ['marina', 123, 9.5] print(isinstance(9.5, int)) #strings items = ['marina', 123, 9.5] print(isinstance(9.5, float)) str_items = ['abc', 'Abc','def', 'BBBB','...
18.837209
54
0.691358
8db72819dbae785cf03bf81e31c9e2232cea71f2
1,283
py
Python
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
3
2021-03-13T14:07:25.000Z
2022-03-12T01:51:49.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
1
2021-09-12T15:03:12.000Z
2021-09-12T15:03:12.000Z
webapp/config.py
rustprooflabs/psycopg3-connpool
5576fd89ed986afb24fa2f229d52925e7a6d845c
[ "MIT" ]
null
null
null
import os import logging APP_NAME = 'psycopg3-connpool' # Set to False to force reporting queries to share pool with non-reporting queries REPORTING_POOL = True POOL_MIN_SIZE = 1 POOL_MAX_SIZE = 10 POOL_MAX_IDLE = 60 POOL_STAT_SLEEP = 300 if not REPORTING_POOL: pool_max_size += 5 CURR_PATH = os.path.abspath(...
23.759259
84
0.731878
8db775d1dd9bd4e0cb2fd047201ecfb22122ee56
247
py
Python
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
toughradius/common/__init__.py
capitek-wangsj/toughradius
ee0e6c20d32262ff7a6ace653af5a78340db62a2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8
24.7
39
0.587045
8db868f6631d93b30648549794d251ef271627af
3,695
py
Python
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
mnist.py
xiaoxinyi/tfrecord
6f39e3dbd5b1ffb3df8636b3163dbe2161469075
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import mnist TRAIN_FILE = 'train.tfrecords' VALIDATION_FILE = 'train.tfrecords' def inputs(train_dir, train, batch_size, num_epochs, one_hot_labels=False): """Reads input data num_epochs times. ...
39.731183
91
0.673884
8db9b3ff0897bce11d0fb7fc945e79ab18d1a305
2,635
py
Python
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
2
2017-12-27T17:38:18.000Z
2017-12-27T17:42:10.000Z
setup.py
BenFrankel/hgf
78ec6a1e4eaa62005cc3914e8a554d2f1401ac37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # # Copyright 2017 - Ben Frankel # # ...
43.196721
83
0.447059
8db9c18f5e2082b747c4a03ec17f797125c796c9
605
py
Python
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
1
2015-05-04T09:28:14.000Z
2015-05-04T09:28:14.000Z
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
tools/ml/get_email.py
Xowap/Maiznet
bd564d4c93eb28dc87135e9d31dad9a921ea8cf6
[ "WTFPL" ]
null
null
null
#!/usr/bin/python from django.core.management import setup_environ import sys sys.path.append('/var/wsgi/maiznet') sys.path.append('/var/wsgi') from maiznet import settings setup_environ(settings) from maiznet.register.models import Presence wfile_announces = open("/var/wsgi/maiznet/tools/ml/emails_announces","w"...
23.269231
73
0.760331
8dbb58ecd3a0dc98c548334dbc3b8ca871d442dd
1,368
py
Python
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_actions.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
42.75
107
0.765351
8dbbf348283d5d908174cdee1b01595e478b5b7d
11,798
py
Python
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
5
2019-08-17T07:53:02.000Z
2022-02-26T07:17:37.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
9
2019-06-28T07:36:10.000Z
2022-03-11T23:48:39.000Z
src/network/graph_module.py
andrewliao11/env-aware-program-gen
bc50b788c35e8e8545b8af9127c279a7387146d6
[ "MIT" ]
1
2020-04-14T12:48:40.000Z
2020-04-14T12:48:40.000Z
import torch import torch.nn as nn from program.graph_utils import * from helper import fc_block, LayerNormGRUCell # helper class for GraphEncoder
32.323288
112
0.577386
8dbd46f30d6dfa6a1507fd5a331fbdfbe41f94f6
744
py
Python
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
adam_io/utils.py
barcesat/adam_io
c9b36a696dca2338de02925cc9af78bc59b55fce
[ "MIT" ]
null
null
null
# check with status codes # exceptions # check 'error' and 'status' from socket import inet_pton, inet_aton, AF_INET, error def valid_ipv4(address: str): """ :param address: ip address string :return: if the address is a valid dotted ipv4 address """ try: inet_pton(AF_INET, address) e...
21.257143
58
0.61828
8dbf72711729ecd397489eebb67c03ca4962e12f
182
py
Python
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
25
2019-11-13T03:35:34.000Z
2022-03-26T04:13:50.000Z
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
3
2019-11-04T06:23:35.000Z
2021-02-08T07:21:04.000Z
core/__init__.py
xmings/IdeaNote
a538d4bf012255a19583f9acc57576c44105283e
[ "Apache-2.0" ]
null
null
null
#!/bin/python # -*- coding: utf-8 -*- # @File : __init__.py # @Author: wangms # @Date : 2018/8/7 from flask import Blueprint core = Blueprint('core', __name__) from . import view
18.2
34
0.648352
8dc0d85e7869f55ab1de18e5ff3544c306008e2b
3,241
py
Python
doc/examples/doc_code/raysgd_torch_signatures.py
thedrow/ray
584645cc7da2bfd7d341d52b59c9c8561dbd119b
[ "Apache-2.0" ]
1
2020-02-25T08:43:46.000Z
2020-02-25T08:43:46.000Z
doc/examples/doc_code/raysgd_torch_signatures.py
mwbrulhardt/ray
b97b8c2be1c7d01e2c93ca97a0b87120bfa2bd1a
[ "Apache-2.0" ]
1
2019-03-16T07:08:57.000Z
2019-03-16T07:08:57.000Z
doc/examples/doc_code/raysgd_torch_signatures.py
gehring/ray
d8eeb9641314740572e81f9836cbce3e5b8f2b73
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ This file holds code for the Pytorch Trainer creator signatures. It ignores yapf because yapf doesn't allow comments right after code blocks, but we put comments right after code blocks to prevent large white spaces in the documentation. """ # yapf: disable # __torch_model_start__ import torch.nn a...
26.565574
85
0.719222
8dc3361defa92720863211b21b935ff651f2bf8d
2,185
py
Python
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
20
2021-04-13T06:23:33.000Z
2021-12-12T13:52:50.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
4
2021-04-17T23:17:36.000Z
2021-05-23T14:20:08.000Z
tests/test_view.py
takos22/baguette
36c6cafa793ff4be057ca2f8a5c7129baf8a5ab8
[ "MIT" ]
3
2021-04-23T00:01:45.000Z
2021-04-29T22:48:33.000Z
import pytest from baguette.app import Baguette from baguette.httpexceptions import MethodNotAllowed from baguette.responses import make_response from baguette.view import View
25.406977
73
0.626545
8dc386d6b5d927e8b934f386d034dfa885867aad
5,167
py
Python
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
2
2021-07-20T13:08:44.000Z
2021-07-23T13:08:05.000Z
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
3
2021-10-04T11:48:34.000Z
2022-03-18T15:48:00.000Z
tests/conftest.py
adrien-berchet/luigi-tools
5de731714db38656db06e39acdb0b9e53ed612bf
[ "Apache-2.0" ]
1
2022-03-21T15:15:23.000Z
2022-03-21T15:15:23.000Z
# Copyright 2021 Blue Brain Project / EPFL # # 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...
31.315152
98
0.522547
8dc3acc4aaba2f96a5e6b63f6e6498fe13dc2b2d
2,633
py
Python
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
HubMovrmentChallenge.py
lhsalud/hub-movement
351fb430bb5e8540d4215415154c1d9f8d0730fe
[ "Apache-2.0" ]
null
null
null
# # Author: L. Salud, April 26.2018 # import pandas as pd import os import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler os.getcwd() # Get and place .py in same directory as .xls initially os.chdir('./') # Path to .xls file from pandas import read_ex...
31.722892
204
0.725788
8dc61223149b3158489a5e9ccf76ac85256384c3
1,278
py
Python
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
utils/filter_empty_lines.py
LeCongThuong/deep-text-recognition-benchmark
b9f4e5dab9a991435d9ba9e71a89dd6fce20f468
[ "Apache-2.0" ]
null
null
null
import re main()
29.72093
219
0.692488
8dc6bc8eb5fc6294a76cfdda9f4e036dfe3da0de
3,680
py
Python
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
1
2020-08-02T19:35:06.000Z
2020-08-02T19:35:06.000Z
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
cltk/data.py
fractaledmind/cltk
78c7259c1845a4ae8bbd33935ffbae34da23234b
[ "MIT" ]
null
null
null
"""Classes to access the `cltk_data/` directory tree""" __author__ = 'Stephen Margheim <stephen.margheim@gmail.com>' __license__ = 'MIT License. See LICENSE.' import os import site from cltk.cltk import CLTK_DATA_DIR from cltk.cltk.corpus.wrappers.logger import logger # Alias cltk_data = CLTKData()
30.92437
79
0.521467
8dc7d59fdd262802a1ded4d3d7416e6bb94d267d
118
py
Python
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
1
2020-04-16T17:07:46.000Z
2020-04-16T17:07:46.000Z
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
3
2020-03-06T11:22:09.000Z
2020-03-06T11:22:10.000Z
Executor/Tasks/PostRun/__init__.py
EVOLVED-5G/ELCM
07d07a114b667e8c6915ee3ef125dd4864dd2247
[ "Apache-2.0" ]
1
2022-02-01T07:56:44.000Z
2022-02-01T07:56:44.000Z
from .decommission import Decommission from .release_resources import ReleaseResources from .farewell import Farewell
29.5
47
0.872881
8dc7dd2aecae51adb10cd582c54a3498d17a6890
3,482
py
Python
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
2,159
2020-08-26T06:21:38.000Z
2022-03-31T16:13:46.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
1,482
2020-08-26T08:26:36.000Z
2022-03-31T23:11:19.000Z
qa/L0_backend_python/model_control/model_control_test.py
galv/server
071eb2c6c9a8f1bba380c0e69592f50a857c5c42
[ "BSD-3-Clause" ]
592
2020-08-26T06:09:25.000Z
2022-03-31T00:37:41.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
46.426667
85
0.716255
8dc7f5a5c998df601fc1435d5e14c66275786aee
19,093
py
Python
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
learnable_primitives/primitives.py
ianhuang0630/CSQ
5f1fe99a8d9da73692643b3911d675dce269a03d
[ "MIT" ]
null
null
null
import numpy as np import torch def cuboid_inside_outside_function(X, shape_params, epsilon=0.25): """ Arguments: ---------- X: Tensor with size BxNxMx3, containing the 3D points, where B is the batch size and N is the number of points shape_params: Tensor with size BxMx3, con...
35.423006
79
0.59514
8dc85eed480d432c4899171384c4da5e6df7a236
6,206
py
Python
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/study-progs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
4
2020-01-02T08:38:55.000Z
2020-11-12T19:46:22.000Z
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
spring semester 2 course/computer_graphics_labs/3D OpenGL/lab.py
andrwnv/StudyProgs
902c4ede0b273d91fd87c93e861b40439847c1a9
[ "MIT" ]
null
null
null
from PyQt5.QtOpenGL import * from OpenGL.GL import * from PyQt5 import QtWidgets, QtCore if __name__ == '__main__': app = QtWidgets.QApplication(['3D OpenGL']) window = App() window.show() app.exec_()
24.626984
58
0.508701
8dc89f352fa436e39e052c93cd7afb303171ceba
2,485
py
Python
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
1
2020-06-17T11:05:00.000Z
2020-06-17T11:05:00.000Z
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
2
2021-03-31T19:50:58.000Z
2021-05-17T20:52:03.000Z
src/passari/scripts/submit_sip.py
finnish-heritage-agency/passari
17af68b07435a40eaabaacf8c34e54517edc9153
[ "MIT" ]
null
null
null
""" Submit a SIP archive to the digital preservation service """ from pathlib import Path import click from passari.config import CONFIG from passari.dpres.package import MuseumObjectPackage from passari.dpres.ssh import connect_dpres_sftp from passari.utils import debugger_enabled def submit_sip(package_dir, objec...
29.583333
77
0.677666
8dc9eea63f0db427ca8d82b08f280d3e1c15f968
2,931
py
Python
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IndirectIsvTerminalInfo import IndirectIsvTerminalInfo
35.313253
104
0.639713
8dca2da6c8645bf9fdd19dabbdf05a6549cdbc55
4,220
py
Python
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
mate/environments/environment.py
thomyphan/emergent-cooperation
2406b8679ddbebba745f1026ca3689f1ba181e28
[ "MIT" ]
null
null
null
import numpy
38.363636
116
0.638389
8dca97c9199a78c34139496f0e9ce4927d4d5e8f
1,651
py
Python
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3/model/attribute.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
import ast from typing import Optional, Tuple, Union from boa3.model.expression import IExpression from boa3.model.imports.package import Package from boa3.model.symbol import ISymbol from boa3.model.type.classes.classtype import ClassType from boa3.model.type.itype import IType
35.891304
100
0.706239
8dcb21a58f1185a80b68bc21fae747a3384bef5d
2,409
py
Python
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
craynn/viz/imgs.py
maxim-borisyak/craynn
fceabd33f5969033fb3605f894778c42c42f3e08
[ "MIT" ]
null
null
null
import os import os.path as osp __all__ = [ 'pack_images', 'plot_and_pack', 'save_images' ]
26.184783
86
0.62308
8dcbe319893f08c9fec316e62b3f5815719b8547
34,085
py
Python
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
10
2019-10-22T16:58:43.000Z
2021-12-05T06:12:53.000Z
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
1
2019-02-23T05:44:06.000Z
2019-02-23T05:44:06.000Z
shield.py
sidsen/VRL_CodeReview
6ee6114215ee49570c47ae41789f5d9bd11ce820
[ "MIT" ]
5
2019-02-23T04:10:06.000Z
2020-09-06T22:59:26.000Z
import metrics from metrics import timeit from main import * import os def detactor(self, x, u, mode="single", loss_compensation=0.0, increase_step=-1): """detact if there are dangerous state in furture Args: x: current state u: current action mode (str, optional): single(faste...
44.323797
205
0.599267
8dd01c14c4996542c62dcb370ac32dc38f1f238a
3,922
py
Python
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
35
2019-05-03T00:30:31.000Z
2022-01-20T06:57:25.000Z
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
null
null
null
Chapter 09/exercise9_10/exercise9_10.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
22
2020-05-13T21:20:02.000Z
2021-12-21T08:35:59.000Z
##Write a program that reads the contents of a text file. The program should create a diction- ##ary in which the key-value pairs are described as follows: ## Key. The keys are the individual words found in the file. ## Values. Each value is a list that contains the line numbers in the file where the word ##(the key) i...
56.028571
120
0.685365
8dd2ec97b90cb2d15b0a054348250dd7d5121065
982
py
Python
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
1
2021-11-11T12:08:14.000Z
2021-11-11T12:08:14.000Z
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
problems4/4A.py
Lopa10ko/ITMO-algo-2021-2022
fa1ae8571e9cccd54faf1680fad21ffc6dbcef49
[ "MIT" ]
null
null
null
file_input = open('stack.in', 'r') file_output = open('stack.out', 'w') return True if (top_index == -1) else False self.stack = [] self.top = -1 self.top += 1 self.stack += [''] self.stack[self.top] = value try: if validate_stack(self.top): return else: self.top -= 1 return self.stack[self.top + 1] except IndexError:...
25.842105
60
0.521385
8dd45ea0a29eda5d4c2a5b4693e02c4c67831b90
4,151
py
Python
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
pynextion/hardware.py
cowo78/pynextion
40215761bc8abbd7cc53fefa68e8b78a67b73aed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import queue import threading import typing from .constants import S_END_OF_CMD import serial # TODO: rotten """ # PyBoard 1.1 # https://docs.micropython.org/en/latest/pyboard/pyboard/quickref.html # RED: VIN # BLACK: GND # YELLOW: X9 (Board TX) ...
30.07971
119
0.63286
8dd4c7ac514b07c8936d2d8818ce12d988742cca
1,762
py
Python
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
scripts/compute_stats.py
mikeshuser/TopicWordMap
7ed9df73d1b7dd8ded03361a662444c31fad70bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Compute essential stats(freq/tf-idf) on a corpus Dependencies: pandas == 0.23 gensim == 3.8 """ __author__ = "Mike Shuser" import pickle import numpy as np import pandas as pd from gensim.models import TfidfModel from gensim.corpora import Dictionary DATA_SRC = "../processed_corp...
28.419355
76
0.586833
8dd5699562650669f491fdd18d9c1edc25f11acb
2,937
py
Python
app/utils/images/linalg/utils.py
vinaykakkad/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:08:24.000Z
2021-11-13T11:08:24.000Z
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
null
null
null
app/utils/images/linalg/utils.py
neelpopat242/audio_and_image_compression
b5f7c767429f36805262ae87e8239434569fc372
[ "MIT" ]
1
2021-11-13T11:07:54.000Z
2021-11-13T11:07:54.000Z
import math def print_matrix(matrix): """ Function to print a matrix """ for row in matrix: for col in row: print("%.3f" % col, end=" ") print() def rows(matrix): """ Returns the no. of rows of a matrix """ if type(matrix) != list: return 1 r...
17.908537
69
0.520259
8dd581b173988521e90d63f2bb0417df587f5647
1,102
py
Python
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
null
null
null
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
null
null
null
testproject/manage.py
innovationinit/django-kazoo-locks
91ceb37ab92dad97659f24a9a7ace3bb9ae3ba10
[ "BSD-2-Clause" ]
1
2022-03-15T07:30:07.000Z
2022-03-15T07:30:07.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other ...
34.4375
110
0.650635
8dd7751b946690a5f79059a3575a07f2c9cb06b8
1,443
py
Python
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
mos_ru_service/file_crypt.py
onlycska/depersonalization-of-data
d11497d0f0708496975d682ae447e97bfd9177d9
[ "MIT" ]
null
null
null
import hashlib from datetime import datetime print()
26.722222
65
0.579349
8dd86a18a4119d3adc2f367d73fae1d910601d27
3,747
py
Python
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
6
2019-07-22T01:56:10.000Z
2021-12-10T05:29:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
677
2019-04-29T10:23:49.000Z
2022-03-22T12:01:30.000Z
fitbenchmarking/utils/tests/test_create_dirs.py
fitbenchmarking/fitbenchmarking
ea398efa61f071dc64fe7c3b484d5bb4e1897856
[ "BSD-3-Clause" ]
8
2019-06-13T10:32:17.000Z
2020-12-09T15:08:40.000Z
""" This file contains tests on the creation of directories """ from __future__ import absolute_import, division, print_function import time import os import shutil import unittest from fitbenchmarking.utils.create_dirs import (figures, group_results, results, support_pa...
32.868421
79
0.662397
8dd963b267b7e2d742f71f63075d5795850791fb
1,173
py
Python
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
router.py
laddge/cardAPI
770c5f8936f7b699ccaf386c82f7172e84292ecc
[ "MIT" ]
null
null
null
import os from urllib.parse import urlparse from fastapi import FastAPI, Request from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse, Response from fastapi.staticfiles import StaticFiles from typing import Optional import api app = FastAPI() app.mount("/files", StaticFi...
24.957447
77
0.672634
8ddada2583d4d1572a9c3857e2ac95af6c1ca1dd
1,976
py
Python
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
examples/list_alert_notifications.py
kenlavoie/python-sdc-client
cafb8f2279956c572bd2c01c8645895d0895716f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Get alert notifications from Sysdig Cloud # import os import sys import time sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), '..')) from sdcclient import SdcClient # # Parse arguments # if len(sys.argv) != 2: print 'usage: %s <sysdig-token>' % sys.argv[0] ...
27.444444
176
0.688765
8ddb9586e5b11a1deeec483163fc0ec9a71544d9
791
py
Python
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
Table/groupingDeviceMappingTable.py
tuanldchainos/HcPullData
65f89cfdcae135781aad4b3edf210c0ecd2d6a1c
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy import DateTime from sqlalchemy import Table, Column, Integer, String, MetaData, ForeignKey
56.5
111
0.548673
8ddb98d57d427980a09a0ebd40ba75c59e9df8f6
802
py
Python
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
25
2015-04-29T13:10:22.000Z
2019-03-18T09:45:29.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
330
2015-03-04T09:06:38.000Z
2019-06-11T10:31:54.000Z
nutils/__init__.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
16
2015-03-23T08:00:46.000Z
2019-02-21T11:14:47.000Z
import sys import numpy from distutils.version import LooseVersion assert sys.version_info >= (3, 5) assert LooseVersion(numpy.version.version) >= LooseVersion('1.16'), 'nutils requires numpy 1.16 or higher, got {}'.format(numpy.version.version) version = '8.0a0' version_name = None long_version = ('{} "{}"' if versi...
19.095238
144
0.599751
8ddbd28f219a98dd5d2cc0254cc240672cc2d246
4,871
py
Python
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
addutils/toc.py
addfor/AddUtils
2e2eb7ecd0718c7ec88a72b59313ab9084c0eaac
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2015 addfor s.r.l. # # 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...
35.043165
83
0.559228
8ddbf31bfb108f86a7acf1ea3203d6b23129570c
720
py
Python
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
1
2017-03-02T22:38:26.000Z
2017-03-02T22:38:26.000Z
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
null
null
null
portfolio/blog/models.py
SkullTech/portfolio-devclub
a3db4ab72464c82e9da6ee89ad51cecc082d9ff5
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone
26.666667
85
0.698611
8ddd126c99d8feae03f19cc66e85504d9442c512
1,710
py
Python
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
ReadCifar.py
timestocome/ReadCifar10
ea6e70a982bdc923386327db648e038a63b1d55d
[ "MIT" ]
null
null
null
# http://github.com/timestocome # data # https://www.cs.toronto.edu/~kriz/cifar.html import numpy as np import pickle import matplotlib.pyplot as plt ################################################################################### # read in data ###############################################################...
21.375
85
0.489474
8ddd3e9119c32c0e18dc330a4330c6e053f331a5
427
py
Python
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
null
null
null
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
1
2021-06-02T01:53:47.000Z
2021-06-02T01:53:47.000Z
app/blueprints/seo_arizona/errors.py
Anioko/TestApp
95fa8d27ca8e7a074e62f92609427a378844e621
[ "MIT" ]
null
null
null
from flask import render_template from app.blueprints.seo_arizona.views import seo_arizona
22.473684
56
0.789227
8dde19fedd80853c00291936adb295b97fcd76bc
1,315
py
Python
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
tests.py
rudradatta/Flames
3692564ef1c3493eb2e1586be47ca997ede97cb4
[ "BSD-3-Clause" ]
null
null
null
import flames import unittest if __name__ == '__main__': unittest.main()
35.540541
68
0.657034
8ddf6ed4392a1c97342e5972d833a191e47b53d0
826
py
Python
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
app/api/errors/server.py
maxzhenzhera/my_vocab_backend
2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1
[ "MIT" ]
null
null
null
import traceback from fastapi import Request from fastapi.responses import PlainTextResponse from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR def internal_server_exception_handler( _: Request, exception: Exception ) -> PlainTextResponse: """ Return the traceback of the internal server ...
27.533333
62
0.6477
8de0588b8d216183bd189807faae11d1037b92e8
11,025
py
Python
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
177
2020-04-14T01:16:26.000Z
2022-03-28T03:29:28.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
10
2020-05-06T13:42:47.000Z
2021-02-06T13:35:27.000Z
dynamic_rcnn/utils/misc.py
yyzq1/bigwork
c2247abd2355b0f64ddfcc6e489e77b1eec55147
[ "MIT" ]
23
2020-04-14T05:41:25.000Z
2021-12-21T02:43:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ helper class that supports empty tensors on some nn functions. Ideally, add support directly in PyTorch to empty tensors in those functions. This can be removed once https://github.com/pytorch/pytorch/issues/12013 is implemented """ import m...
31.590258
88
0.581043
8de07753d8112e17484865d9eb71f8e6d5d640f0
3,133
py
Python
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
pyontutils/googapis.py
dbrnz/pyontutils
439e7b572a0a8cbe6817b9a294745db8688da666
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ api access for google sheets (and friends) Usage: googapis auth (sheets|docs|drive)... [options] [--drive-scope=<SCOPE>...] Examples: googapis auth sheets Options: --store-file=<PATH>... write to a specific store file -n --readonly set the readonly scope -...
27.973214
88
0.551867
8de1d142174d05fb9706941c985835cf92bd890c
242
py
Python
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
1
2015-11-05T15:17:10.000Z
2015-11-05T15:17:10.000Z
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
allauth/account/admin.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
from django.contrib import admin # from models import PasswordReset # # class PasswordResetAdmin(admin.ModelAdmin): # list_display = ["user", "temp_key", "timestamp", "reset"] # # admin.site.register(PasswordReset, PasswordResetAdmin)
26.888889
63
0.747934
8de28136620ecc67d3f38af5cae41d8092c4a0be
165
py
Python
src/wayscript/errors.py
wayscript/wayscript-python
55abcf4f22869fccf6dbc7853444b70339683f2a
[ "MIT" ]
17
2019-04-17T18:48:51.000Z
2022-01-28T08:47:07.000Z
src/wayscript/errors.py
Plataformaalgoritmica/wayscript-python
a0ddaf849b879631c2bab3ab1ea0878e3df10812
[ "MIT" ]
1
2019-11-13T18:11:00.000Z
2019-11-13T18:13:13.000Z
src/wayscript/errors.py
Plataformaalgoritmica/wayscript-python
a0ddaf849b879631c2bab3ab1ea0878e3df10812
[ "MIT" ]
9
2020-01-09T23:06:39.000Z
2022-01-01T12:02:51.000Z
""" WayScript Errors """
20.625
87
0.745455
8de62c242c479afad43ca797ee2384f022ddfbb5
10,112
py
Python
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
Gridex.py
sabbatinif/GridEx
8f1ff5c29081e0556d16f49e56bd5390be87d7b2
[ "Apache-2.0" ]
null
null
null
import numpy as np from itertools import product from tensorflow.keras.models import load_model from sklearn.feature_selection import SelectKBest, f_regression from joblib import load import random as rnd
36.114286
153
0.426721
8de91facddbd7d35bd7ba7937ee91b396276006a
630
py
Python
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
6
2020-04-07T21:29:42.000Z
2021-06-08T00:23:53.000Z
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
sitemap.py
brenopoggiali/Google-internship-alert
eefaa5291f3790379974505d71a3d2c4acfd22f6
[ "MIT" ]
null
null
null
import xmltodict from browsers import load_firefox GOOGLE_SITEMAP_URL = "https://careers.google.com/jobs/sitemap"
21
62
0.646032
8deb27f0761e2aaaa60c41fe1b1bca80aaa1cfe7
9,162
py
Python
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
app/recipe/tests/test_recipe_api.py
pouryazk/recipe-app-api
8845cb2c9a1ddd52f0f2fbf6aeb1f6d998b878ea
[ "MIT" ]
null
null
null
# Testing Upload image feature import tempfile import os from PIL import Image # ---------------- from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework import test from rest_framework.test import APIClient ...
35.238462
79
0.649967
8dee03510c0ac2b9c5008f158836e0b55eedc40e
1,666
py
Python
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
src/infoScraper.py
Strassboom/BOMGenerator
1531d825aa4133c1e58eccfd3c36f76fa596536c
[ "MIT" ]
null
null
null
import requests from lxml import html import os import sys sys.path.append("..") header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"}
37.863636
141
0.647659
8def1994e3ba6e7b2d4593ea911ee13f3f4389a8
5,288
py
Python
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
1
2021-12-04T18:09:44.000Z
2021-12-04T18:09:44.000Z
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
2020/python/day-06.py
tadhg-ohiggins/advent-of-code
d0f113955940e69cbe0953607f62862f8a8bb830
[ "CC0-1.0" ]
null
null
null
import pdb import subprocess from functools import partial, wraps from math import prod from pathlib import Path from pprint import pprint from string import ( ascii_lowercase, digits as ascii_digits, ) from typing import Any, Callable, List, Iterable, Optional, Union from toolz import ( # type: ignore com...
27.398964
79
0.644667
8def1e2453ca4173ec7af3b63bf0b6b393ac0493
349
py
Python
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
polymorhism/pol_testing/abc_class.py
borko81/SU_OOP_2021
8c38682bd4a2b032ca09f85b0a579be152223a59
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod
19.388889
35
0.644699
8def2c408250901fc2c3f380e46aa6707b949f5d
2,463
py
Python
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
git_commit/pyscreen-test.py
Asura-one/tools
669b59eb429f0503618f14618a73c0721d2bd8cc
[ "MIT" ]
null
null
null
import npyscreen import os import getpass import subprocess #Application starts here if __name__ == "__main__": app = App().run()
36.220588
75
0.494925
8defd7400006559bffbbff0680b35455d86ade71
2,665
py
Python
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
76
2015-08-31T18:34:14.000Z
2021-10-16T13:33:52.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
41
2015-09-02T01:52:55.000Z
2022-02-28T21:50:31.000Z
Xcode/XcodeVersionEmitter.py
davidschoefberger/Recipes-for-AutoPkg
f68d9a5da4b1778886ec67ed76a591ada00fbfd1
[ "Apache-2.0" ]
43
2015-09-02T14:41:37.000Z
2021-12-01T16:52:08.000Z
#!/usr/bin/python # # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
32.5
132
0.641651
8defe0931ec33c13ad662fc15043aa6c6f5e4581
3,209
py
Python
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
programa educativo de matematica.py
lucaslk122/Programa-de-matematica-basica-para-criancas
bd62ea8c1dd339290483b45b1a6f4a31a5c7e366
[ "MIT" ]
null
null
null
3# -*- coding: utf-8 -*- """ Created on Thu May 28 14:31:02 2020 @author: Lucas """ import random acertos = 0 erros = 0 perguntas = 0 print("Programa educativo matematico") print("""Digite a opo desejada [1] para Soma [2] para subtrao [3] para diviso [4] para multiplicao""") opo = int(input("D...
35.263736
83
0.591773
8df00c7b6abbb17febb26deca50443ccd300a865
4,763
py
Python
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
note_recognition.py
jemsbhai/battlenotes
71e2c44aec71505bce204757a10f9ddfb5e5e02e
[ "MIT" ]
null
null
null
# taken largely from https://github.com/ianvonseggern1/note-prediction from pydub import AudioSegment import pydub.scipy_effects import numpy as np import scipy import matplotlib.pyplot as plt from solo_generation_esac import * from utils import frequency_spectrum, \ calculate_distance, \ classify_note_attemp...
35.81203
89
0.664707
8df01847a7b4b8bed8f795d24425994dc853d3c0
2,720
py
Python
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
119
2020-10-06T16:27:05.000Z
2022-03-28T00:27:18.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
275
2020-10-07T22:32:53.000Z
2022-03-31T15:57:44.000Z
tests/unit/models/gpflux/test_config.py
satrialoka/trieste
b58eb924a49ad86e27fa2e082defe2d37afcc14a
[ "Apache-2.0" ]
30
2020-10-08T23:00:01.000Z
2022-02-25T17:04:22.000Z
# Copyright 2021 The Trieste 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...
34
99
0.758088
8df019add07d6cb9f3b378f45e28d9ed55ca4842
1,558
py
Python
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
null
null
null
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
2
2020-02-11T23:35:33.000Z
2020-06-05T19:36:53.000Z
BigChat/Contact/migrations/0001_initial.py
diannakan1998/BigChat
a87b2682c137c7de40288d68612c2ee15d47bcee
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-23 23:42 import django.contrib.postgres.fields from django.db import migrations, models
36.232558
143
0.564185
8df1c6f7606169d28d7470f55794f4e8e7d28814
493
py
Python
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
4
2020-06-19T20:51:36.000Z
2020-07-05T17:12:56.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
10
2020-04-24T09:05:52.000Z
2020-12-17T14:00:04.000Z
examples/server_control.py
tkmmark/compas_cloud
e05fe12923868ba37de215a5a4cc3f8638213ae7
[ "MIT" ]
2
2020-10-22T18:12:52.000Z
2020-10-28T16:25:07.000Z
from compas_cloud import Proxy import time print("\n starting a new Proxy and by default starts a server in background") proxy = Proxy(background=True) time.sleep(3) print("\n restarting the background server and open a new one in a prompt console") proxy.background = False proxy.restart() time.sleep(3) print("\n ch...
24.65
83
0.760649
8df1ebaaebb6455a233f57c92e803cc41ed159be
3,871
py
Python
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
supermarket management.py
shreytec11/Simple_Supermarket_Maanagement
1579adf7c35e43cd5b539edddf6044c1a7e6602a
[ "MIT" ]
null
null
null
#-----------------SUPERMARKET MANAGEMENT SYSTEM-------------------- items = [] while True: print('------------------Welcome to the supermarket------------------') print('1. View items\n2. Add items for sale\n3. Purchase items\n4. Search items \n5. Edit items\n6. Exit') choice = int(input('Enter the number o...
40.322917
110
0.453888
8df2385af3f40cba7575f1c6c89a8a66c7739db0
23,993
py
Python
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
1
2020-06-18T21:11:57.000Z
2020-06-18T21:11:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
87
2019-09-30T08:28:00.000Z
2020-12-03T08:39:57.000Z
vcm/downloader/link.py
sralloza/vcm
9906bc5ad286754a1e71f69f0f7ca43ad1152a6f
[ "MIT" ]
null
null
null
"""Contains the links that can be downloaded.""" from hashlib import sha1 import logging import os from pathlib import Path import re import warnings from bs4 import BeautifulSoup from requests import Response import unidecode from vcm.core.exceptions import AlgorithmFailureError, MoodleError, ResponseError from vcm....
30.681586
98
0.578919
8df2655a19e924bcd99a2911fc97761b628649f1
7,472
py
Python
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
5
2021-04-29T21:07:18.000Z
2021-09-29T08:46:08.000Z
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
null
null
null
define_simple_tracker.py
Erotemic/misc
6f8460a690d05e7e0117becc6cae9902cbe2cedd
[ "Apache-2.0" ]
1
2018-04-07T12:26:21.000Z
2018-04-07T12:26:21.000Z
if __name__ == '__main__': r""" CommandLine: source ~/code/VIAME/build/install/setup_viame.sh cd /home/joncrall/code/VIAME/examples/tracking_pipelines ~/code/VIAME/build/install/bin/pipe_to_dot -p simple_tracker.pipe -o g.dot dot -Tpng g.dot > g.png python ~/code/VIAM...
43.44186
111
0.636777
8df37da869fe9f71df32fa2732b4a908910d89ba
1,918
py
Python
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
Model/app.py
The-SocialLion/Lower-Back-Pain-Analysis-using-Machine-learning
87b8dd0fb7d58cafe96f9bdef09961750384b098
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template import pandas as pd import joblib # Declare a Flask app app = Flask(__name__) # Running the app if __name__ == '__main__': app.run(debug = True)
38.36
316
0.67049
8df3d54be1b731de24ed84c4c006bd0811e68e83
864
py
Python
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
usersystem/urls.py
Kanciarzek/NkrsiSystem
ee3d19b1419ee64ccef05051a3892663e7d71625
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views urlpatterns = [ path('', views.index, name='index'), path('faq', views.faq, name='faq'), path('account/me/password/', views.change_password, name='user-password'), path('account/me/', views.view_user, name='user'), path('account/<int:user_id...
45.473684
120
0.681713
8df499879e2e02643bddc0414a78f011539ed93e
424
py
Python
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
1
2020-06-26T13:28:43.000Z
2020-06-26T13:28:43.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
7
2021-11-18T19:46:08.000Z
2022-03-12T01:03:01.000Z
py/tests/leetcode/str/find_and_replace_test.py
bmoretz/Daily-Coding-Problem
f79e062e9f6e7b18b7e95c071fbe71ad104affcb
[ "MIT" ]
null
null
null
import unittest from dcp.leetcode.str.find_and_replace import findReplaceString
24.941176
82
0.639151
8df4c2e64e992b855a9e6d5e81533c702e3e464a
5,606
py
Python
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
tests/test_sagemaker/cloudformation_test_configs.py
zachurchill-root/moto
f6dda54a6c744938a1863720c71acc192ac73cf9
[ "Apache-2.0" ]
null
null
null
import json from abc import ABCMeta, abstractmethod import six from moto.sts.models import ACCOUNT_ID class NotebookInstanceLifecycleConfigTestConfig(TestConfig): """Test configuration for SageMaker Notebook Instance Lifecycle Configs.""" def get_cloudformation_template(self, include_outputs=True, **kwar...
29.197917
87
0.567428
8df58a8ce58f2b9cb11cc66432ebc0ca83f1b1b9
22,904
py
Python
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
null
null
null
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
1
2022-01-06T00:23:55.000Z
2022-01-06T00:23:55.000Z
materials/_build/jupyter_execute/materials/lectures/04-virtual-environments.py
UBC-DSCI/reproducible-and-trustworthy-workflows-for-data-science
6676e628ec858acdfae43fbf5b27891849952e83
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Virtual environments # #### Attribution # # The conda virtual environment section of this guide # was originally published at http://geohackweek.github.io/ under a CC-BY license # and has been updated to reflect recent changes in conda, # as well as modified slightly to fit ...
43.215094
294
0.694464
8df6d2cc3ef1b38f8dcb2b9e634dc513aa241c09
5,748
py
Python
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/dso/plot.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
import base64 import datetime, pytz from re import X import io from matplotlib import pyplot as plt from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from scipy import spatial from skyfield.api import load, Star from skyfield.projections import build_stereographic_projection from ..astro.angdi...
33.034483
108
0.59499
8df72be42a3ea83a7f917562f0ba78dd4aaeb72c
884
py
Python
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
2
2021-01-11T16:13:40.000Z
2022-03-02T02:03:46.000Z
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
2021/CourseraPython/course1-basics/loops/numcheck.py
Muramatsu2602/python-study
c81eb5d2c343817bc29b2763dcdcabed0f6a42c6
[ "MIT" ]
null
null
null
# 5.2 Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print out the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Ent...
32.740741
371
0.618778
8df73822b76b3e31a9ba5cf5bb546df14eb33a80
38
py
Python
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
pipeline/__init__.py
tom-010/python-pipeline
6be08206b96d56b0c206f12384548e52f5075be6
[ "Apache-2.0" ]
null
null
null
from pipeline.pipeline import pipeline
38
38
0.894737
8df8715160af657554f13c94d21120b38964b96a
244
py
Python
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
tgbot/routers/user/__init__.py
djimboy/tgbot_template_djimbo
71ef5e1a600d4ca952d84efde238359c7af82dcd
[ "MIT" ]
null
null
null
# - *- coding: utf- 8 - *- from aiogram import Router from tgbot.routers.user.user_menu import router_user_menu #
24.4
57
0.786885
8df91c6b34032c0d6f4c0950b4b4025e8db29746
10,161
py
Python
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
orator/schema/grammars/sqlite_grammar.py
HeathLee/sorator
271668865bf0d039908643e3df9b98c966b9d956
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .grammar import SchemaGrammar
28.382682
78
0.591674
8df9bcab6716a085d2b3d332fff681644b39144b
21,050
py
Python
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ASCEND-MIBVDSL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ASCEND-MIBVDSL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBVDSL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:28:53 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
186.283186
2,409
0.782043
8dfa54ed9ca447d258b8fa54b0c7ae8f6bd61598
262
py
Python
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
5
2020-05-18T06:54:52.000Z
2021-05-29T23:17:41.000Z
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
null
null
null
Vamei/std02/time1.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
1
2020-05-17T22:47:49.000Z
2020-05-17T22:47:49.000Z
import time print(time.time()) # DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead # print(time.clock()) print(time.process_time()) print(time.perf_counter())
37.428571
154
0.782443
8dfb3c18acf930a5459dc67b4aafbbfd377ea76f
857
py
Python
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/clouddomain/test/testinterdomainevent.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
import unittest import strongr.clouddomain.model.gateways import strongr.core import strongr.core.domain.clouddomain
42.85
138
0.782964
8dfbeae2983efd238f2b37ec8cf3300580b20ae7
967
py
Python
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
1
2016-01-01T17:50:10.000Z
2016-01-01T17:50:10.000Z
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
null
null
null
abandoned/gitNoteSync.py
fretboardfreak/code
0e9bc521e30684247d5d19717a5a938d31151fe3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Sync markdown notes with an external folder like dropbox. Notes will be named *.txt in the external folder and *.md in git. The script will use proper git commands to do things such as, delete or add new files to git and reflect any git-side changes in the external folder. This script is int...
25.447368
149
0.633919
8dfbec677b19e5f32fef5dafd97ffba05416b93b
3,706
py
Python
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
1
2020-09-04T22:50:21.000Z
2020-09-04T22:50:21.000Z
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
2
2020-09-08T20:50:39.000Z
2020-09-14T17:52:27.000Z
catkit/emulators/ZwoCamera.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
null
null
null
import abc import logging import zwoasi from catkit.config import CONFIG_INI import catkit.hardware.zwo.ZwoCamera # Convert zwoasi module to a class such that it can be inherited. ZwoASI = type("ZwoASI", (), zwoasi.__dict__)
32.79646
103
0.669185
8dfe8011c2244a0ed87994c9abfc3f5206f12836
2,371
py
Python
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
fastestimator/op/tensorop/loss/mixup_loss.py
AriChow/fastestimator
d381d9acc1d42c6cf88a4424e083375cf98140bf
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The FastEstimator 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 appl...
47.42
118
0.657107
8dfedc56bd84754c0c189b0fb33868614416a159
276
py
Python
test/test_parse.py
rec/ascript
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
1
2021-08-04T18:06:37.000Z
2021-08-04T18:06:37.000Z
test/test_parse.py
rec/scripta
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
6
2020-06-25T16:16:36.000Z
2020-06-25T23:54:57.000Z
test/test_parse.py
rec/ascript
99975ca4e94c5791ee09864ce7cb23e2d43f7cd6
[ "MIT" ]
null
null
null
from .test_config import EMPTY from scripta import parse from unittest import TestCase
25.090909
55
0.673913
5c0031226e3df4483ca669793e8975e7761b6bcd
1,502
py
Python
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
Bithumb.py
luigitabarca/appp
a3c8417cf7deb7f5c413ee879e6192007741a570
[ "MIT" ]
null
null
null
from pybithumb.core import * from pandas import DataFrame import pandas as pd import datetime import math
26.350877
117
0.515313
5c035191fd827575cca31684fe0d530f80a03da4
2,959
py
Python
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
wrpg/piaf/unpack.py
WalrusRPG/PIAF
d8c2d8f37a1c54c31e8aa0d0bf10af61a83403b7
[ "MIT" ]
null
null
null
import struct import zlib from wrpg.piaf.common import ( header_structure, file_entry_structure, file_entry_size, get_data_offset, header_size, header_check_size, header_data_size) def load_data(buffer, archive, file_sizes): data_offset = 0 for f, file_size in zip(archive["file_ent...
31.478723
80
0.644812
5c03ceb6ad67f78d52eb230df9a5bbd57c51a7c0
384
py
Python
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/migrations/0009_auto_20200506_2221.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-06 22:21 from django.db import migrations, models
20.210526
47
0.598958
5c05545589141fb82f106641f89a15eb131c03e9
301
py
Python
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/rotation_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img = cv2.imread('city2.jpg',0) rows,cols = img.shape M = cv2.getRotationMatrix2D((cols/2,rows/2),90,1) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow('image cv2',dst) cv2.waitKey(0) # to save the image # cv2.imwrite('image1.png',img) cv2.destroyAllWindows()
15.05
49
0.704319
5c077ecb8a5382d71c5438b3e59abd26f0bd8969
1,160
py
Python
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
6
2021-06-28T05:52:15.000Z
2022-03-27T20:45:28.000Z
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
hardware/testbenches/common/drivers/axi4stream/io.py
Intuity/nexus
0d1414fa2ea518dae9f031930c40692ebac5d154
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk # # 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 l...
34.117647
74
0.649138
5c098a986f914f97ea7ebda89caf2268a601529a
239
py
Python
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
9
2019-04-13T01:07:20.000Z
2022-02-12T13:56:50.000Z
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
null
null
null
stock-index/main.py
tracholar/economics-data
bdb85d6baa663f7df0cf1193177f02a80aec407f
[ "MIT" ]
5
2019-04-13T01:07:21.000Z
2021-12-30T08:43:24.000Z
#coding:utf-8 import pandas as pd import matplotlib.pyplot as plt import pyecharts.options as opts from pyecharts.charts import Line df = pd.read_csv(u'500.txt', sep='\t') y = df[' (PE Ratio)'] plt.plot(y.values) plt.show()
19.916667
47
0.736402
5c09acfc9fe04971c67a0bdfd0d292a35bdac0c5
3,510
py
Python
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
models/dw_shared.py
idrpambudi/SRN-Deblur
0384189ef105fc2e4c871c0d6adcb7f6ed53b7f9
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.slim as slim from util.util import *
54.84375
121
0.552991
5c0a8ac8b62d83e8d8a3f27e5f22d32e0e0ea228
298
py
Python
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
1
2022-02-04T06:44:21.000Z
2022-02-04T06:44:21.000Z
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
null
null
null
.drafts/models.py
deknowny/polinfapi
93430d514e4be2881622aba10e515b0bf5c6dd0a
[ "MIT" ]
null
null
null
import dataclasses
15.684211
36
0.64094
5c0b1af22a5316e17602db8cfb4f8b44f7bf9111
781
py
Python
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
10
2015-04-09T02:18:48.000Z
2021-02-22T09:27:08.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
2
2017-04-16T14:07:59.000Z
2020-01-31T02:25:53.000Z
fit/messages/workout.py
rembish/f
7c5913b80cb7cc6ef102ceb168ec8c281233fb65
[ "BSD-3-Clause" ]
5
2015-04-09T02:20:45.000Z
2022-01-17T10:38:10.000Z
from fit.messages import Message from fit.types.extended import Sport, WorkoutCapabilities, MessageIndex, \ Intensity, WktStepTarget, WktStepDuration from fit.types.general import UInt16, String, UInt32
27.892857
74
0.724712
5c0ce4192fe64603b53959af5cc740ca348b1497
1,335
py
Python
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
5
2019-05-07T07:41:45.000Z
2021-06-08T13:30:17.000Z
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
7
2020-06-12T17:27:54.000Z
2022-02-10T11:06:30.000Z
setup.py
cpkthompson/django-fake-bot-detector
5b04bbd7eb20ba5a15de8e661c78fd86af9c988f
[ "Apache-2.0" ]
1
2021-04-28T09:23:58.000Z
2021-04-28T09:23:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from fakebotdetector import __version__ def get_long_description(): """Return the README""" return open('README.md', 'r', encoding='utf8').read() setup( name='django-fake-bot-detector', version=__version__, url='https:/...
32.560976
70
0.637453
5c0da5f77a085661e96a680ab4f4aace5c39d144
34
py
Python
venv-lib/lib/python3.7/__future__.py
migmaciasdiaz/venvs
bcdbb75931cb27fc4b5b30f12fc44be85952157e
[ "MIT" ]
2
2020-03-30T14:17:10.000Z
2020-10-04T12:33:00.000Z
venv-lib/lib/python3.7/__future__.py
migmaciasdiaz/venvs
bcdbb75931cb27fc4b5b30f12fc44be85952157e
[ "MIT" ]
1
2020-11-24T03:31:13.000Z
2020-11-24T03:31:13.000Z
venv/lib/python3.7/__future__.py
wensu425/aws-eb-webapp
4b149c75c11fe5b33c9a080313ec336fabb45824
[ "MIT" ]
1
2021-05-04T09:18:22.000Z
2021-05-04T09:18:22.000Z
/usr/lib64/python3.7/__future__.py
34
34
0.823529
5c0dcc445a82edfdc35b31cc9c086ddb8671e374
294
py
Python
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
117
2016-08-22T15:52:28.000Z
2022-01-08T00:53:28.000Z
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
12
2017-10-28T09:44:44.000Z
2018-11-21T15:12:42.000Z
pyez/get_config.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
78
2016-08-19T05:35:28.000Z
2022-03-13T07:16:27.000Z
from jnpr.junos import Device from lxml import etree dev = Device(host='xxxx', user='demo', password='demo123', gather_facts=False) dev.open() cnf = dev.rpc.get_config() #cnf = dev.rpc.get_config(filter_xml=etree.XML('<configuration><interfaces/></configuration>')) print etree.tostring(cnf)
29.4
95
0.751701
5c10ee61d634ed5370e785cfb72db7af4ce9d4af
1,032
py
Python
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-02-22T07:19:59.000Z
2022-02-22T07:19:59.000Z
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-15T20:26:01.000Z
2022-01-15T20:26:01.000Z
images/core/context/free5gc/lib/nextepc/nas/support/cache/nas_msg_93.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-07T18:49:10.000Z
2022-01-07T18:49:10.000Z
ies = [] ies.append({ "iei" : "", "value" : "Selected NAS security algorithms", "type" : "security algorithms", "reference" : "9.9.3.23", "presence" : "M", "format" : "V", "length" : "1"}) ies.append({ "iei" : "", "value" : "NAS key set identifier", "type" : "key set identifier", "reference" : "9.9.3.21", "presence" : ...
114.666667
186
0.552326
5c1434a7013b9bee370455ab2802787652471f6d
2,158
py
Python
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/kucoin/kucoin_constants.py
pachares/beatit
1c92ca68545667498f46db1c262e3bfb98acfcc9
[ "Apache-2.0" ]
1
2022-03-28T09:28:25.000Z
2022-03-28T09:28:25.000Z
import sys from hummingbot.core.api_throttler.data_types import RateLimit # REST endpoints BASE_PATH_URL = "https://api.kucoin.com" PUBLIC_WS_DATA_PATH_URL = "/api/v1/bullet-public" PRIVATE_WS_DATA_PATH_URL = "/api/v1/bullet-private" TICKER_PRICE_CHANGE_PATH_URL = "/api/v1/market/allTickers" EXCHANGE_INFO_PATH_URL = ...
43.16
108
0.810009
5c147b1581c9e42ed038ee8839eff0846fb1f39f
3,586
py
Python
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
1,110
2016-06-02T23:58:41.000Z
2020-11-29T07:24:20.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
49
2016-08-14T22:58:41.000Z
2020-07-17T17:59:56.000Z
ml4a/utils/histogram.py
KushGabani/ml4a-guides
d71b61a99c417b9ace3404420b37d22f6da06153
[ "MIT" ]
300
2016-06-13T23:06:55.000Z
2020-11-18T22:42:55.000Z
from PIL import Image import numpy as np from tqdm import tqdm
38.148936
123
0.583101
5c165b43b1f198ab8d8542c8ff00784873352544
4,911
py
Python
simulations/exp_schapiro.py
nicktfranklin/EventSegmentation
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
14
2019-04-05T14:06:39.000Z
2022-03-26T19:11:42.000Z
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
null
null
null
simulations/exp_schapiro.py
nicktfranklin/SEM_paper_simulations
aa1ab809918ee3a10fa0bd4ae1757b3febc573d1
[ "MIT" ]
2
2020-07-07T17:12:09.000Z
2021-01-15T23:30:16.000Z
import numpy as np from models import SEM, clear_sem from sklearn import metrics import pandas as pd from scipy.special import logsumexp
37.48855
119
0.591326