hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
6256aec531c7152e539620fc277fb52af61be82f
4,550
py
Python
bittensor/_wallet/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
bittensor/_wallet/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
bittensor/_wallet/__init__.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
""" Create and init wallet that stores coldkey and hotkey """ # The MIT License (MIT) # Copyright © 2021 Yuma Rao # 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, includin...
45.5
170
0.655604
6256f22daa1ae60b600d8ef93c1ef3655e19755a
213
py
Python
spikesorters/yass/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikesorters/yass/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
spikesorters/yass/container/upload_singularity_container.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from cairio import client as ca ca.autoConfig(collection='spikeforest', key='spikeforest2-readwrite', ask_password=True) sha1_path = ca.saveFile('yass.simg') print(sha1_path)
23.666667
62
0.7277
6256f404d050d4824b6cda6e359de3ea1fe1abef
5,578
py
Python
lego/settings/base.py
ion05/lego
873f6898e35ed2d9a33bdfb8339eaf6c9a61470c
[ "MIT" ]
null
null
null
lego/settings/base.py
ion05/lego
873f6898e35ed2d9a33bdfb8339eaf6c9a61470c
[ "MIT" ]
null
null
null
lego/settings/base.py
ion05/lego
873f6898e35ed2d9a33bdfb8339eaf6c9a61470c
[ "MIT" ]
null
null
null
import base64 import datetime import json import os import environ root = environ.Path(__file__) - 2 BASE_DIR = root() ALLOWED_HOSTS = ["*"] SHELL_PLUS = "ipython" INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "djan...
30.480874
130
0.691825
6256f85673e007652c641e48efa347614ca73992
2,252
py
Python
alipay/aop/api/domain/MonitorInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MonitorInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MonitorInfo.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 * class MonitorInfo(object): def __init__(self): self._monitor_account_name = None self._monitor_account_no = None self._monitor_bank_code = None @property def monitor_ac...
31.71831
91
0.654529
62570352eace51f944ffccfc1238e2e820bc8368
68,126
py
Python
src/sage_docbuild/__init__.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage_docbuild/__init__.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage_docbuild/__init__.py
tobiasdiez/sagetrac-mirror
20ca179bed4ff605de4111362b02c8e2acca617e
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
""" The documentation builder It is the starting point for building documentation, and is responsible to figure out what to build and with which options. The actual documentation build for each individual document is then done in a subprocess call to sphinx, see :func:`builder_helper`. * The builder can be configured...
38.359234
184
0.587309
62572b481187c98e7d3593da1fe26bf1dc49f6ab
6,046
py
Python
python-code/opengl-learning/pymunk-learning/box2d_pyramid.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opengl-learning/pymunk-learning/box2d_pyramid.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opengl-learning/pymunk-learning/box2d_pyramid.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
from __future__ import division import math import pygame from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * from Box2D import * #CONTROLES ########################################## #TECLAS DIRECCION E (W,A,S,D) -> MOVEMENTO DA CAMARA #BOTON ESQUERDO DO RATO -> CREAR CAIXA #BOTON DEREITO D...
25.948498
137
0.656632
62572eacaf026e4f970fb539a319112c65465ecd
5,401
py
Python
src/python/pants/backend/python/macros/pipenv_requirements.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/macros/pipenv_requirements.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/backend/python/macros/pipenv_requirements.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import json from packaging.utils import canonicalize_name as canonicalize_project_name from pants.backend.python.macros.common_fields import ( Mod...
35.071429
97
0.703573
625738de500f10ee4fc644b7d96f926bd3ce9c5e
15,704
py
Python
scripts/rrd_tools.py
ninjawil/garden-irrigation
f12cb3e9a68122db9d5b92edcbc19196c76f7cc0
[ "MIT" ]
null
null
null
scripts/rrd_tools.py
ninjawil/garden-irrigation
f12cb3e9a68122db9d5b92edcbc19196c76f7cc0
[ "MIT" ]
null
null
null
scripts/rrd_tools.py
ninjawil/garden-irrigation
f12cb3e9a68122db9d5b92edcbc19196c76f7cc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''Manages RRD file''' #=============================================================================== # Import modules #=============================================================================== # Standard Library import os import logging import collections import subprocess from xml.et...
39.162095
124
0.422313
625772896100d71ca62730ca85e148a6ee884f61
2,591
py
Python
watcher_dashboard/content/strategies/tests.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
15
2016-02-12T07:33:42.000Z
2019-01-28T22:13:27.000Z
watcher_dashboard/content/strategies/tests.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
null
null
null
watcher_dashboard/content/strategies/tests.py
openstack/watcher-dashboard
146e547da934c2464ec5f49326eabed0eecfda96
[ "Apache-2.0" ]
2
2017-08-11T02:25:37.000Z
2017-10-10T09:59:40.000Z
# Copyright (c) 2016 b<>com # # 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, softw...
34.092105
73
0.698186
6257d1c0bf69e5c99a13a53b98127a9966041b8c
1,687
py
Python
Polynomial-Interpolation/Lagrange_Polynomials.py
Robertboy18/Numerical-Algorithms-Implementation
e1ea13137d42ccc2502c590559edba750db4592d
[ "Apache-2.0" ]
null
null
null
Polynomial-Interpolation/Lagrange_Polynomials.py
Robertboy18/Numerical-Algorithms-Implementation
e1ea13137d42ccc2502c590559edba750db4592d
[ "Apache-2.0" ]
null
null
null
Polynomial-Interpolation/Lagrange_Polynomials.py
Robertboy18/Numerical-Algorithms-Implementation
e1ea13137d42ccc2502c590559edba750db4592d
[ "Apache-2.0" ]
null
null
null
import numpy from functions import f # interpolation error by barycentric is # |f - p| <= (||f^(n+1)||_inf/(n+1)!) pi_{i=0}^{n} | x - x_i | def centrix_weights(xnodes): """ computing the barycentric weights w_j = 1/(pi*(x_j - x_i) { j \= i}) Inputs : nodes x_j output : weights w_j """ ...
31.240741
104
0.566686
6257ee06c9de104e81c3c80029aa95ee33f1f288
6,727
py
Python
mediapipe/framework/thread_pool_executor_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
5
2021-01-01T11:02:41.000Z
2022-03-11T19:44:29.000Z
mediapipe/framework/thread_pool_executor_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
null
null
null
mediapipe/framework/thread_pool_executor_pb2.py
mengfu188/simple-mediapipe
85dc8a87c9586312c2d057ad587bfccf3b5e2eb6
[ "Apache-2.0" ]
1
2021-04-12T05:59:46.000Z
2021-04-12T05:59:46.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/framework/thread_pool_executor.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf im...
47.041958
703
0.795154
6257fd55b8a1007a3bf949a142aa866f4b6db1bd
9,381
py
Python
clif/pybind11/lambdas.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/pybind11/lambdas.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/pybind11/lambdas.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.942529
79
0.707494
625831a6e9b5aec9b5e86e01721162010f04730d
22,941
py
Python
eureka/S5_lightcurve_fitting/utils.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
eureka/S5_lightcurve_fitting/utils.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
eureka/S5_lightcurve_fitting/utils.py
astrojake/Eureka
57cb0f1a576dfbbef9ba616b7a13a28c42efb876
[ "MIT" ]
null
null
null
# !/usr/bin/python # -*- coding: latin-1 -*- """ A module for utility funtions """ import glob import itertools import os import re import requests import shutil import urllib from astropy.io import fits import bokeh.palettes as bpal from scipy.interpolate import RegularGridInterpolator import matplotlib.pyplot as pl...
32.633001
143
0.600061
625863116bba0b1e0d728d7b4a26032b9c3e21f9
823
py
Python
video_reading_benchmarks/ffmpeg_python/test.py
bml1g12/benchmarking_video_reading_python
6447f0a434fbde1e21781e1150b6f41062737759
[ "MIT" ]
19
2021-03-28T19:40:34.000Z
2022-03-09T07:37:02.000Z
video_reading_benchmarks/ffmpeg_python/test.py
bml1g12/bechmarking_video_reading_python
6447f0a434fbde1e21781e1150b6f41062737759
[ "MIT" ]
1
2022-01-02T20:05:52.000Z
2022-01-05T20:08:18.000Z
video_reading_benchmarks/ffmpeg_python/test.py
bml1g12/bechmarking_video_reading_python
6447f0a434fbde1e21781e1150b6f41062737759
[ "MIT" ]
3
2021-09-10T15:51:45.000Z
2021-12-30T02:42:27.000Z
import ffmpeg import numpy as np class FFMPEGStream(): def __init__(self, videopath): self.fn = videopath self.start = 0 probe = ffmpeg.probe(videopath) video_info = next(s for s in probe['streams'] if s['codec_type'] == 'video') self.width = int(video_info['width']) ...
30.481481
84
0.550425
625866626d342022fc3ae8491045fbc935d13db2
2,322
py
Python
monitoring/tank_level.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
monitoring/tank_level.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
monitoring/tank_level.py
tBaxter/pi-things
ecba577748178f1a85b393144d872a16112ee26d
[ "CC0-1.0" ]
null
null
null
import RPi.GPIO as GPIO import os import time from webapp.settings import LEVEL_SENSOR_ECHO, LEVEL_SENSOR_TRIGGER TRIGGER_TIME = 0.00001 MAX_TIME = 0.004 # max time waiting for response in case something is missed # Set this to the tank depth in cm # Our tank is 8.25 inches deep, so we're converting TANK_DEPTH = ro...
30.96
77
0.654177
625874305aeee3ddf8d5402b9aeafd44486a8b94
1,100
py
Python
challenges/6/sender_raw.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
4
2022-02-25T05:45:27.000Z
2022-03-10T01:05:27.000Z
challenges/6/sender_raw.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
null
null
null
challenges/6/sender_raw.py
cromulencellc/hackasat-final-2021
d01a1b5d7947b3e41ae2da3ec63d5f43278a5eac
[ "MIT" ]
2
2022-03-02T02:14:16.000Z
2022-03-05T07:36:18.000Z
#!/usr/bin/python3 import socket, time HOST = '0.0.0.0' PORT = 1337 def send_raw(data): #print(f"SNDR: Connecting to HOST:{HOST} PORT:{PORT}") s = socket.create_connection((HOST, PORT)) #print(f"SNDR: {data}") s.send(bytes(data.encode())) #print(f"SNDR: Sent data of size {len(data)}") r...
28.205128
58
0.567273
6258d1b94298dbe1f465b5832d01b9fe1d157883
11,995
py
Python
cms/tests/multilingual.py
fusionbox/django-cms
3a09d5c39b3469e64aeecc0205a193f5b70c2061
[ "BSD-3-Clause" ]
null
null
null
cms/tests/multilingual.py
fusionbox/django-cms
3a09d5c39b3469e64aeecc0205a193f5b70c2061
[ "BSD-3-Clause" ]
null
null
null
cms/tests/multilingual.py
fusionbox/django-cms
3a09d5c39b3469e64aeecc0205a193f5b70c2061
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement import copy from cms.api import create_page, create_title, publish_page, add_plugin from cms.exceptions import LanguageError from cms.forms.utils import update_site_and_page_choices from cms.models import Title from cms.test_utils.testcases import (SettingsO...
43.460145
107
0.594164
6258e8d58bb3bc12728ffedbeb6f79622a3bbe48
2,802
py
Python
docs/source/conf.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
6
2019-11-28T11:58:45.000Z
2020-10-14T19:11:03.000Z
docs/source/conf.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
7
2022-01-08T18:28:39.000Z
2022-01-16T23:35:53.000Z
docs/source/conf.py
phelipetls/seriesbr
b67ea73f987591fae5d3c4f87b479d6b71449ea3
[ "MIT" ]
2
2020-04-17T18:44:46.000Z
2021-08-29T00:42:18.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.206897
79
0.681299
6258fe455b1fad1e469cb9260c1b7cbaf30911e1
3,234
py
Python
test/test_ctrl/Vct6Ctrl_syn.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
test/test_ctrl/Vct6Ctrl_syn.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
test/test_ctrl/Vct6Ctrl_syn.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
import PyTango import CounterTimerController class Vct6Controller(CounterTimerController.CounterTimerController): "This class is the Tango Sardana CounterTimer controller for the VCT6" ctrl_extra_attributes = {'PyCT_extra_1': {'Type': 'PyTango.DevDouble', 'R/W Type': 'PyTango.READ_WRITE'}, ...
37.172414
140
0.625232
625918be13887646c29b3d88677dda32a965bcfa
2,679
py
Python
sample-plugins/permissions/public_wiki_policy.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
sample-plugins/permissions/public_wiki_policy.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
sample-plugins/permissions/public_wiki_policy.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2013 Edgewall Software # Copyright (C) 2007 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://tr...
34.346154
79
0.62598
625948943ca9ee7e37a39d2ec1e68a36607c93db
1,315
py
Python
lib/python2.7/site-packages/pelican/tests/default_conf.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pelican/tests/default_conf.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pelican/tests/default_conf.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function AUTHOR = 'Alexis Métaireau' SITENAME = "Alexis' log" SITEURL = 'http://blog.notmyidea.org' TIMEZONE = 'UTC' GITHUB_URL = 'http://github.com/ametaireau/' DISQUS_SITENAME = "blog-notmyidea" PDF_GENERATOR = False REVERSE_CATEGORY_ORDER = True...
29.222222
75
0.651711
62598630e1d03b343e813f82dc5ac997613ce507
12,295
py
Python
pex/resolve/lockfile/operations.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/resolve/lockfile/operations.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/resolve/lockfile/operations.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import os import shutil from collections import OrderedDict, defaultdict from pex import hashing, resolver from pex.common import pluralize, safe_m...
40.577558
100
0.688247
62598addd1d6a2bc6798aca19930926b1b2e0c18
204
py
Python
backend/constants.py
RohanJnr/YNB-site-backend
b1ff5c128aa34da24a18a91889ab897809c2507a
[ "MIT" ]
1
2021-05-13T18:34:25.000Z
2021-05-13T18:34:25.000Z
backend/constants.py
RohanJnr/YNB-site-backend
b1ff5c128aa34da24a18a91889ab897809c2507a
[ "MIT" ]
null
null
null
backend/constants.py
RohanJnr/YNB-site-backend
b1ff5c128aa34da24a18a91889ab897809c2507a
[ "MIT" ]
null
null
null
import os import asyncpg DATABASE_URL = os.getenv("DATABASE_URL") DB_POOL = asyncpg.create_pool( DATABASE_URL, min_size=1, max_size=2 ) IMAGE_FORMATS = ("png", "jpg", "jpeg")
14.571429
41
0.642157
62599cd627d1fb08f9a42abb8455004025d0ea92
1,644
py
Python
asposewordscloud/models/responses/save_as_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/responses/save_as_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/responses/save_as_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="save_as_online_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy...
48.352941
85
0.667883
6259cb86f4c99c45eb2b16cd71caf935c4728f32
27,736
py
Python
src/sentry/conf/server.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/conf/server.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
null
null
null
src/sentry/conf/server.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
""" sentry.conf.server ~~~~~~~~~~~~~~~~~~ These settings act as the default (base) settings for the Sentry-provided web-server :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf.global_se...
30.08243
192
0.669239
6259e1d7fdb521677641e3c2554ca5a5338f268c
771
py
Python
examples/tmp.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
null
null
null
examples/tmp.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
null
null
null
examples/tmp.py
sjklipp/automol
ba87f4443ebe2ceb5929d4269c4be93fd28f68ca
[ "Apache-2.0" ]
7
2019-12-18T20:11:06.000Z
2020-10-14T08:54:16.000Z
""" testing fake_stereo_geometry function """ import automol # ICH = automol.smiles.inchi('FC=C(F)N') # ICH = automol.smiles.inchi('FC=CC=CCCCC(O)(C)') # ICH = ('InChI=1S/C7H14O3/c1-3-4-6-7(10-8)5(2)9-6/h5-8H,3-4H2,1-2H3/' # 't5-,6-,7-/m0/s1') # ICH = ('InChI=1S/C7H14O3/c1-3-6(10-8)7-4-5(2)9-7/h5-8H,3-4H2,1-2H...
33.521739
71
0.619974
6259f2eed948d5d690cc7ebc312ee67723565d39
32,988
py
Python
app/tasks/ept/ep_subscriber.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/tasks/ept/ep_subscriber.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/tasks/ept/ep_subscriber.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
""" Endpoint Subscriber @author agossett@cisco.com """ from . import utils as ept_utils from .ep_job import EPJob from .ep_worker import EPWorker, ep_get_delete_jobs from .ep_priority_worker import EPPriorityWorker import re, time, traceback from multiprocessing import Process as mProcess from multiprocessing ...
44.820652
80
0.577695
625a0f6fdf9e2914d23a27afc1f2bbc9ea0982a4
11,376
py
Python
exchangelib/attachments.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
exchangelib/attachments.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
exchangelib/attachments.py
dmcgee/exchangelib
b2f7006835393132bdf2cfb416ba44f847c8bbf2
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from io import BytesIO import logging import mimetypes from .fields import BooleanField, TextField, IntegerField, URIField, DateTimeField, EWSElementField, Base64Field, \ ItemField, IdField from .properties import RootItemId, EWSElement from .services import GetAttachment, ...
39.363322
120
0.648383
625a10157dc29cf06be1fe19c27e159434537782
7,025
py
Python
nova/api/openstack/compute/legacy_v2/contrib/services.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/api/openstack/compute/legacy_v2/contrib/services.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/legacy_v2/contrib/services.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2012 IBM Corp. # # 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 t...
35.125
79
0.593452
625a304abd1a02395b6c41600edd0608d3df6357
2,509
py
Python
sdk/search/azure-search-documents/samples/async_samples/sample_semantic_search_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/search/azure-search-documents/samples/async_samples/sample_semantic_search_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/search/azure-search-documents/samples/async_samples/sample_semantic_search_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
36.897059
104
0.670785
625a36421a40d87103732f884c1eb0f9bd5d1917
23,551
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/media/azure-mgmt-media/azure/mgmt/media/operations/_account_filters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.887153
207
0.674579
625a5f8a491a36b91824b5ed25b7146aeebd24e7
4,594
py
Python
src/ggrc_basic_permissions/roles/Creator.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc_basic_permissions/roles/Creator.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_basic_permissions/roles/Creator.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Collects all permissions for Global Creator role.""" # pylint: disable=invalid-name scope = "System" description = """ This role grants a user basic object creation and editing permission. """ owne...
23.319797
78
0.446234
625a7aefef656be783e0b488376c64122b870fb6
464
py
Python
twitter_game/posts/urls.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
twitter_game/posts/urls.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
twitter_game/posts/urls.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
"""URL configuration for posts.""" from django.conf.urls import re_path from posts.views import PostCreateView from . import views from django.urls import path urlpatterns = [ re_path(r'^create/$', PostCreateView.as_view(), name='create'), path('like/', views.like, name='like'), path('dislike/', views.dis...
22.095238
67
0.676724
625a7befcffa99394de50ce647df5f100b9ac126
3,425
py
Python
test/statespace/test_statespace.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/statespace/test_statespace.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
test/statespace/test_statespace.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
""" """ from __future__ import division, print_function, unicode_literals import numpy as np import scipy import scipy.signal from wavestate.iirrational.utilities.np import logspaced from wavestate.iirrational.utilities.mpl import mplfigB from wavestate.iirrational.statespace import dense import scipy.signal c_m_s =...
25.94697
89
0.574015
625a9847c3153e105c80b62da67e4a0bc1c0ff32
565
py
Python
docs/fica_demo.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
docs/fica_demo.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
docs/fica_demo.py
chrispyles/fica
7c1739d0d5dae0e2f847b901b0968f484d6b097b
[ "MIT" ]
null
null
null
import fica CONFIG = fica.Config([ fica.Key( name="foo", description="a value for foo", default=False, ), fica.Key( name="bar", description="a value for bar", subkeys=[ fica.Key( name="baz", default=1, )...
19.482759
45
0.40177
625a9b8b27999f015f47ea0596fe74ba96aa041a
156
py
Python
lewis_emulators/rotating_sample_changer/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/rotating_sample_changer/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/rotating_sample_changer/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .device import SimulatedSampleChanger from ..lewis_versions import LEWIS_LATEST framework_version = LEWIS_LATEST __all__ = ['SimulatedSampleChanger']
26
42
0.846154
625ab507aad0aa02f52d9f2ce23868355c93a447
1,760
py
Python
flasynk/huey_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
flasynk/huey_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
flasynk/huey_specifics.py
Colin-b/flasynk
373d0adb2a0ab70705962c5ccd9dea3460b1c8d2
[ "MIT" ]
null
null
null
import logging import os from huey import RedisHuey from huey.exceptions import TaskException logger = logging.getLogger("asynchronous_server") # List all statements that should be executed before evaluating an Exception that occurred. imported_exceptions = [] def build_async_application(config: dict, **kwargs) -...
28.387097
98
0.693182
625ac0ae2b0dbfd419e68be67d545cc56531371e
62
py
Python
office365/sharepoint/sharing/sharedObjectType.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/sharing/sharedObjectType.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/sharing/sharedObjectType.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
class SharedObjectType: def __init__(self): pass
12.4
23
0.645161
625af630bafd57586f207e4be0b0d12c61e51431
18,980
py
Python
python_modules/libraries/dagster-aws/dagster_aws/emr/pyspark_step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/emr/pyspark_step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws/emr/pyspark_step_launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import os import pickle import sys import tempfile import time import boto3 from botocore.exceptions import ClientError from dagster_aws.emr import EmrError, EmrJobRunner, emr_step_main from dagster_aws.emr.configs_spark import spark_config as get_spark_config from dagster_aws.utils.mrjob.log4j import parse_hadoop_log...
42.844244
107
0.644521
625b0c5d4aae97bc55d1e19deee4951cc1d5f3cf
5,664
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/blob_container.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/blob_container.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/models/blob_container.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.2
139
0.66702
625b0f9a0eb2c10f516a1401d117dc5a23fc9228
464
py
Python
models/focal.py
deepcam-cn/FaceQuality
dfbf66d41707add18613247e5c43fd5d9564956c
[ "MIT" ]
91
2021-04-26T09:16:57.000Z
2022-03-28T09:06:26.000Z
models/focal.py
delldu/EQFace
a088e80709c1e31a57e302cabfa85ab96f2c0aa5
[ "MIT" ]
11
2021-05-06T20:01:40.000Z
2022-03-22T09:48:57.000Z
models/focal.py
delldu/EQFace
a088e80709c1e31a57e302cabfa85ab96f2c0aa5
[ "MIT" ]
16
2021-04-26T09:02:05.000Z
2022-03-13T19:52:54.000Z
import torch import torch.nn as nn # Support: ['FocalLoss'] class FocalLoss(nn.Module): def __init__(self, gamma = 2, eps = 1e-7): super(FocalLoss, self).__init__() self.gamma = gamma self.eps = eps self.ce = nn.CrossEntropyLoss(reduction='none') def forward(self, input, tar...
23.2
55
0.586207
625b238a0581e757ef7bbf79848cf19fb83ed38c
750
py
Python
python/twisted/deferreds_chains.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/twisted/deferreds_chains.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
python/twisted/deferreds_chains.py
y2ghost/work
b7f5b02db9dc0df6157bc799ddb4a1ac9d574cf3
[ "MIT" ]
null
null
null
from twisted.internet.defer import Deferred def callback1(result): print("Callback 1 said:", result) return result def callback2(result): print("Callback 2 said:", result) def callback3(result): print("Callback 3 said:", result) raise Exception("Callback 3") def errback1(failure): print("Err...
22.058824
46
0.701333
625b3c3e83f62554e195b0f485f167ab223d4e70
1,248
py
Python
angrmanagement/ui/widgets/qipython_widget.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
2
2022-01-23T21:43:54.000Z
2022-02-02T08:20:20.000Z
angrmanagement/ui/widgets/qipython_widget.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-12-04T01:11:46.000Z
2021-12-04T01:11:46.000Z
angrmanagement/ui/widgets/qipython_widget.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-05-17T05:46:19.000Z
2021-05-17T05:46:19.000Z
from qtconsole.rich_jupyter_widget import RichJupyterWidget from qtconsole.inprocess import QtInProcessKernelManager from IPython.lib import guisupport class QIPythonWidget(RichJupyterWidget): def __init__(self, banner=None, namespace=None, *args, **kwargs): if banner is not None: self.banner...
29.714286
74
0.689103
625b5624c55454c1f8107f7da6ef24a7588046e7
386
py
Python
Chapter_07/orders/forms.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
1
2021-04-23T16:35:45.000Z
2021-04-23T16:35:45.000Z
Chapter_07/orders/forms.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
null
null
null
Chapter_07/orders/forms.py
codingEzio/code_py_book_django2_by_example
d215d0c87a557685824286822186966b06fa8d59
[ "Unlicense" ]
null
null
null
from django import forms from .models import Order from localflavor.us.forms import USZipCodeField class OrderCreateForm(forms.ModelForm): """ Example code (localflavor): postal_code = USZipCodeField() """ class Meta: model = Order fields = ['first_name', 'last_n...
22.705882
53
0.611399
625ba9d0bf247f0f2884914fb2e4de0f83bff9eb
15,174
py
Python
src/zhinst/toolkit/control/drivers/base/sweeper.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
src/zhinst/toolkit/control/drivers/base/sweeper.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
src/zhinst/toolkit/control/drivers/base/sweeper.py
bahadirdonmez/zhinst-toolkit-1
0ca241c8ff6fe259401eadb30091ced184cd7da1
[ "MIT" ]
null
null
null
import time import numpy as np from typing import List, Dict from .base import BaseInstrument from zhinst.toolkit.control.node_tree import Parameter from zhinst.toolkit.interface import LoggerModule _logger = LoggerModule(__name__) MAPPINGS = { "bandwidthcontrol": {0: "manual", 1: "fixed", 2: "automatic"}, ...
34.408163
103
0.585014
625bb3a2a29f1d7dea006527316d02aafc5bec51
39,364
py
Python
test/test_flowprobe.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
1
2019-04-04T06:16:55.000Z
2019-04-04T06:16:55.000Z
test/test_flowprobe.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
null
null
null
test/test_flowprobe.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import binascii import random import socket import unittest import time import re from scapy.packet import Raw from scapy.layers.l2 import Ether from scapy.layers.inet import IP, TCP, UDP from scapy.layers.inet6 import IPv6 from framework import VppTestCase,...
36.414431
79
0.592115
625bcb0929bd14a44401d0552f737ecbc56d99c8
8,160
py
Python
artellapipe/widgets/shot.py
ArtellaPipe/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
7
2019-10-28T05:18:30.000Z
2020-08-21T05:36:52.000Z
artellapipe/widgets/shot.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
4
2020-01-22T02:41:54.000Z
2020-03-17T10:49:12.000Z
artellapipe/widgets/shot.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains widgets related with Artella shots """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" import os import logging i...
32.50996
110
0.665441
625bcf7f1851429262cc09ca13ed4914b17d4e34
1,675
py
Python
tests/functional/__init__.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
91
2017-05-08T22:41:33.000Z
2022-02-09T11:37:07.000Z
tests/functional/__init__.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
63
2017-06-14T20:08:49.000Z
2021-06-16T23:08:25.000Z
tests/functional/__init__.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
26
2017-10-13T23:23:13.000Z
2022-01-11T16:58:17.000Z
from __future__ import ( absolute_import, unicode_literals, ) import subprocess from typing import List import six COMPOSE_FILE = 'tests/functional/docker/docker-compose.yaml' def run_docker_compose_command(command): # type: (List[six.text_type]) -> six.text_type full_command = ['docker-compose', '-f...
34.895833
113
0.730149
625bd01feeb9a4eebd2d925f7baf149fcf648059
4,816
py
Python
models/img_style_generator/models/networks/loss.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
17
2021-07-15T13:22:31.000Z
2022-02-15T05:37:51.000Z
models/img_style_generator/models/networks/loss.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
null
null
null
models/img_style_generator/models/networks/loss.py
valeoai/SemanticPalette
a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d
[ "Apache-2.0" ]
3
2021-07-16T09:25:10.000Z
2022-01-11T12:36:28.000Z
""" Copyright (C) 2019 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import torch import torch.nn as nn import torch.nn.functional as F from models.img_style_generator.models.networks.architecture import VGG19 #...
39.801653
105
0.60735
625bdc7c9fcd0bd48b33ec1a35170fb44717f3c5
775
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/errors.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/errors.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/sql/errors.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.227273
74
0.774194
625be33eb77fa8e5af2b3005c762ccb1c6b13db3
3,967
py
Python
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_configuration_header.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_configuration_header.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_configuration_header.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2014, 2016 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributio...
43.119565
112
0.724225
625bebe335a463d1776b65150c1d889e61bb6dec
26
py
Python
btd6_memory_info/generated/System/Diagnostics/Tracing/TplEtwProvider/tpl_etw_provider.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Diagnostics/Tracing/TplEtwProvider/tpl_etw_provider.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Diagnostics/Tracing/TplEtwProvider/tpl_etw_provider.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class TplEtwProvider: pass
26
26
0.884615
625c09da54443b833f5daed2d795d2e50d2b9ec3
16,337
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_log_analytics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.00551
211
0.686295
625c4097ec28aa9297490c608890c4337412bd85
3,507
py
Python
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_read_lengths.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: latin-1 -*- import argparse import os.path import encodedcc import sys EPILOG = ''' This script opens a fastq and calculates the read length, it can also print the header line of the fastq currently unable to parse header for information such as machine name %(prog)s --inf...
35.424242
116
0.564585
625c56e51c6d02a5b05bb7bdb59bdcf2cf57b8df
4,581
py
Python
lib/apps/feature_interaction.py
adbmd/explainx
bb8bd78bcb1b6fbf2de368e56de6300de98a413a
[ "MIT" ]
1
2020-09-12T17:05:32.000Z
2020-09-12T17:05:32.000Z
lib/apps/feature_interaction.py
adbmd/explainx
bb8bd78bcb1b6fbf2de368e56de6300de98a413a
[ "MIT" ]
null
null
null
lib/apps/feature_interaction.py
adbmd/explainx
bb8bd78bcb1b6fbf2de368e56de6300de98a413a
[ "MIT" ]
null
null
null
from imports import * from plotly_graphs import * from plotly_css import * from app import app def layout_interaction(original_variables, y_variables): layout = html.Div([ dcc.Loading( id="feature_interaction_load", type="circle", ...
47.71875
193
0.305392
625c69b8676edc5936f2adf5d5794ae956e7ff79
8,388
py
Python
pyspeckit/spectrum/models/formaldehyde_mm.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/models/formaldehyde_mm.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/models/formaldehyde_mm.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" =========================== Formaldehyde mm-line fitter =========================== This is a formaldehyde 3_03-2_02 / 3_22-221 and 3_03-2_02/3_21-2_20 fitter. It is based entirely on RADEX models. """ import numpy as np import hyperfine from . import fitter,model#,modelgrid try: # for model grid reading imp...
35.542373
136
0.616237
625c83ce3bafd980adf6d298008f33888f14a5fa
2,615
py
Python
Analytics/resources/Widgets/get_layouts.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/resources/Widgets/get_layouts.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/resources/Widgets/get_layouts.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
from http import HTTPStatus from flask_jwt_extended import jwt_required from flask_restful import Resource from flask_restful import abort from flask_restful import reqparse from models.widget import WidgetModel class GetLayouts(Resource): """ Fetches all layouts for the widgets with a specific userID :...
36.830986
103
0.634034
625c958ef37c363d31667f43bd2be8aa80630210
30,875
py
Python
pgmpy/inference/ExactInference.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
pgmpy/inference/ExactInference.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
pgmpy/inference/ExactInference.py
jaidevd/pgmpy
0a7f371f4b39ded45e48d637fa1a44b4518162da
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import itertools import copy import numpy as np import networkx as nx from pgmpy.inference import Inference from pgmpy.factors.Factor import factor_product from pgmpy.models import JunctionTree class VariableElimination(Inference): def _variable_elimination(self, variables, operation, ev...
44.811321
118
0.552032
625cba0cca5128b52bc01ee9bf8494deb04c2f40
474
py
Python
filterdesigner/tests/test_polystab.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:22:35.000Z
2021-10-17T08:50:17.000Z
filterdesigner/tests/test_polystab.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/tests/test_polystab.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:23:24.000Z
2021-05-03T10:03:32.000Z
import unittest import filterdesigner.IIRDesign as IIRDesign import numpy as np class TestPolystab(unittest.TestCase): def setUp(self): self.a = [1, -2, -3] def test_polystab(self): # test case x = [1, -2, -3] v = np.roots(x) vs = 0.5 * (np.sign(np.abs(v...
27.882353
65
0.521097
625cc0be4bbec74f3c39f98e417477fac15bde5d
4,831
py
Python
c3/system/tasks.py
superplay1/c3
5540458a13c1bb05c5e528f65056ec33f1fb9a69
[ "Apache-2.0" ]
1
2021-04-13T12:52:14.000Z
2021-04-13T12:52:14.000Z
c3/system/tasks.py
marcorossignolo/c3
2b41aac7f9df227a423f7cacdaa943731c7e40e7
[ "Apache-2.0" ]
null
null
null
c3/system/tasks.py
marcorossignolo/c3
2b41aac7f9df227a423f7cacdaa943731c7e40e7
[ "Apache-2.0" ]
null
null
null
from c3.c3objs import C3obj, Quantity import copy import tensorflow as tf import numpy as np import c3.libraries.constants as constants import c3.utils.tf_utils as tf_utils import c3.utils.qt_utils as qt_utils class Task(C3obj): # TODO BETTER NAME FOR TASK! """Task that is part of the measurement setup.""" ...
29.457317
112
0.565721
625cc31d0572688f7c9baffe5db7d88c13d7ac09
1,428
py
Python
tests/test_rc.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
tests/test_rc.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
tests/test_rc.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python import os import sys # For coverage. if __package__ is None: sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/..") from unittest import main, TestCase import requests import requests_mock from iris_sdk.client import Client from iris_sdk.models.rate_centers import RateCenters...
26.943396
76
0.660364
625cdca19ae118fff36facbeddee33d6d2e73528
551
py
Python
comap/__init__.py
navikt/CoMap
19a1ad609f51289ad75bf6e96f327fa2bb1ec1e1
[ "MIT" ]
1
2021-01-27T12:40:55.000Z
2021-01-27T12:40:55.000Z
comap/__init__.py
navikt/CoMap
19a1ad609f51289ad75bf6e96f327fa2bb1ec1e1
[ "MIT" ]
null
null
null
comap/__init__.py
navikt/CoMap
19a1ad609f51289ad75bf6e96f327fa2bb1ec1e1
[ "MIT" ]
null
null
null
# Copyright (c) 2020-present, NAV.... # # This source code is licencend under... from comap.mapper import CoMap __doc__ = """ CoMa - 'Complexity Mapping' - a simple python package to support graph analysis with the 'System Effects' methodology. For reference to methodology, see: [paper] Main features: --------------...
23.956522
118
0.727768
625cf24e965366d390cbf657cae83e8782ef5734
12,813
py
Python
distnet/utils/losses.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
4
2020-05-27T01:39:44.000Z
2021-09-03T18:20:33.000Z
distnet/utils/losses.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
null
null
null
distnet/utils/losses.py
jeanollion/dlutils
ea419e79486e1212219dc06d39c3a4f4c305ff49
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras import losses import numpy as np from .lovasz_losses_tf import lovasz_hinge, lovasz_softmax from .helpers import convert_probabilities_to_logits, ensure_multiplicity def mse(y_true, y_pred): return K.square(y_pred - y_true) def mae...
39.424615
167
0.617576
625d287d6a69cbe926603b437cb490961b538834
698
py
Python
test/discovery/tracker_test.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
test/discovery/tracker_test.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
test/discovery/tracker_test.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
from types import SimpleNamespace from bittorrent.discovery import PeerDiscovery def test_tracker_discovery(singleFileContext): actual = None def peerDiscovered(peers): nonlocal actual actual = peers discovery = PeerDiscovery(singleFileContext, SimpleNamespace(peerDiscovered=peerDiscovered...
33.238095
96
0.719198
625d33cc707bf07d1b783da01d2a02d710f41fcb
3,261
py
Python
vplexapi-7.0.0/vplexapi/models/extent_payload.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/extent_payload.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/extent_payload.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ExtentPayload(object): """NOTE: This class is au...
27.871795
100
0.57191
625d82b6e488fb18ade2d428bf7437825bb725e9
3,615
py
Python
tests/blas/nodes/dot_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/blas/nodes/dot_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/blas/nodes/dot_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
#!/usr/bin/env python3 # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import numpy as np import argparse import scipy import dace from dace.memlet import Memlet from dace.fpga_testing import xilinx_test, intel_fpga_test import dace.libraries.blas as blas from dace.transformation.inters...
27.807692
75
0.624343
625daf80487435c2bb7272b64aa8c79f34f4110a
6,227
py
Python
config.py
sales-tagging/text-tagging-ml
7bf7162119026fcdd08a05edf2d1a107d6c11c02
[ "MIT" ]
1
2019-04-21T04:47:21.000Z
2019-04-21T04:47:21.000Z
config.py
sales-tagging/text-tagging-ml
7bf7162119026fcdd08a05edf2d1a107d6c11c02
[ "MIT" ]
null
null
null
config.py
sales-tagging/text-tagging-ml
7bf7162119026fcdd08a05edf2d1a107d6c11c02
[ "MIT" ]
null
null
null
import argparse args_list = [] parser = argparse.ArgumentParser() def add_arg_group(name): """ :param name: argument group, str :return: list (argument) """ arg = parser.add_argument_group(name) args_list.append(arg) return arg def get_config(): cfg, un_parsed = parser.parse_known_...
51.46281
117
0.718805
625dd7533209ea76db13b1b86d89dab6b968653e
3,294
py
Python
socfaker/computer.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
socfaker/computer.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
socfaker/computer.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
import random, requests, json, ipaddress, string class Computer(object): def __init__(self): self.name = 'test' self.os = 'os' @property def name(self): return self._name @name.setter def name(self, value): prefix = random.choice(['Desktop'] * 4 + ['Laptop']) ...
28.643478
144
0.487553
625e4a5d994f27f06ebf056fa120d0a06ac2bb0a
452
py
Python
autoio-base/setup.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
null
null
null
autoio-base/setup.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
1
2022-02-15T19:35:14.000Z
2022-02-15T19:35:14.000Z
autoio-base/setup.py
lpratalimaffei/autoio
57be6e4882af1841153c19e7353e2531e64ce47f
[ "Apache-2.0" ]
13
2020-06-24T05:21:11.000Z
2021-05-05T19:58:30.000Z
""" Install Interfaces to MESS, CHEMKIN, VaReCoF, ProjRot, and ThermP """ from distutils.core import setup setup( name="autoio-base", version="0.7.0", packages=['autoparse', 'ioformat', 'autoread', 'autoread._zmat', 'autowrite'], package_dir={ ...
22.6
69
0.539823
625e577fff1640edc5b351a11994903ce615ab52
24,122
py
Python
python/ray/rllib/agents/dqn/dqn_policy_graph.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/rllib/agents/dqn/dqn_policy_graph.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/rllib/agents/dqn/dqn_policy_graph.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from gym.spaces import Discrete import numpy as np import tensorflow as tf import tensorflow.contrib.layers as layers import ray from ray.rllib.models import ModelCatalog from ray.rllib.evaluation.sample_batch...
40.473154
79
0.5786
625e6aa3bba91df138539e1a7c3d34b09e16d474
7,929
py
Python
src/train.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
src/train.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
src/train.py
karanrampal/image-caption
f903504dbb369ec86e11f7628421bf06d78d117f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Script to train a model in pytorch""" import argparse import logging import os import numpy as np from tqdm import tqdm import torch from torch.utils.tensorboard import SummaryWriter import utils from model.net import Net, loss_fn, get_metrics import model.data_loader as d_l from evaluate i...
37.225352
96
0.644974
625e70c497c4447ea1ae8bb55ee4ec3e1177f4f4
280
py
Python
onmt/constants.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-11T10:09:37.000Z
2019-09-11T10:09:37.000Z
onmt/constants.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
null
null
null
onmt/constants.py
jniehues-kit/NMTGMinor
7631ce9c4f19fc7d0ebf475860fa60e681847969
[ "MIT" ]
1
2019-09-15T17:22:58.000Z
2019-09-15T17:22:58.000Z
import torch PAD = 0 UNK = 1 BOS = 2 EOS = 3 PAD_WORD = '<blank>' UNK_WORD = '<unk>' BOS_WORD = '<s>' EOS_WORD = '</s>' checkpointing = 0 static = False residual_type = 'regular' max_position_length = 8192 torch_version = float(torch.__version__[:3]) double_precision = False
14
44
0.689286
625e75a37fa7f4d94e40b31ee5506c95a5f68ef0
1,078
py
Python
server/songhelper/fake_server.py
mezidia/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
6
2021-02-10T10:50:18.000Z
2021-08-21T10:44:37.000Z
server/songhelper/fake_server.py
mezgoodle/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
116
2021-02-10T08:09:03.000Z
2022-03-30T01:50:02.000Z
server/songhelper/fake_server.py
mezgoodle/song-helper
059d02f4e5e4758bef04322ee53d1f1e815ba08b
[ "MIT" ]
1
2021-08-16T14:31:13.000Z
2021-08-16T14:31:13.000Z
from .utils import SpotifyUtils from .predict import PredictMood class FakeServer: """ This fake implements the requests from server-side interface. This interface is also used by the real implementation. This is used only for testing. """ def __init__(self, spt: SpotifyUtils = None, pt: Predi...
32.666667
81
0.653989
625ef0ace9a1270d2eade3132f076f5e8af08b56
1,636
py
Python
tests/feature_engineering.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
tests/feature_engineering.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
tests/feature_engineering.py
justinchanjinle/data-science-verification-exercise
52e383a0a64c6db8b17601c007ed187a5ce69ea0
[ "MIT" ]
null
null
null
import pandas as pd import pytest from src.feature_engineering import hours_per_week_level_feature, half_hours_per_week_feature, \ apply_hours_per_week_level_feature, get_input_data_with_features from utils.enumerations import ColumnNames, FeatureNames, FeatureClasses # Test features ----------------------------...
36.355556
98
0.738386
625efaad710e4c9cb5f8c356f1438ab940dc5f44
8,748
py
Python
collections/ansible_collections/ansible/netcommon/plugins/modules/netconf_rpc.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/plugins/modules/netconf_rpc.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/netcommon/plugins/modules/netconf_rpc.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2018, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: netconf_rpc author: - Ganesh N...
30.802817
99
0.651349
625effad345116635998532910e0bfa6a5181fc4
5,063
py
Python
sdks/python/appcenter_sdk/models/Stacktrace.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/Stacktrace.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/Stacktrace.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class Stacktrace(obj...
25.315
92
0.551649
625f1174c586a9600a486fa04a38830bc25b6ea7
1,354
py
Python
test/many_envs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/many_envs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/many_envs_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. from .. import ConfigRoot from ..envs import EnvFactory ef = EnvFactory() envs = [] groups = [] for ii in range(0, 16): local_envs = [] for jj in range(0, 128): local_envs...
29.434783
73
0.615214
625f2cd73083de027da2c512dbd2cf5c209abfa3
9,795
py
Python
scripts/db/seeders.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
scripts/db/seeders.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
scripts/db/seeders.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" DRS Seeds package. Copyright (c) 2018-2021 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistributions of sour...
53.52459
844
0.642369
625f3c6d9328e2870e255c2a3c95bbecc106f173
7,584
py
Python
ginga/rv/plugins/Ruler.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/rv/plugins/Ruler.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/rv/plugins/Ruler.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
# This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. """ ``Ruler`` is a simple plugin designed to measure distances on an image. **Plugin Type: Local** ``Ruler`` is a local plugin, which means it is associated with a channel. An instance can be opened for each ch...
31.865546
77
0.635153
625f7512d152d0bdc1403487aef39c2ba33df55c
4,023
py
Python
run_all.py
sct-pipeline/csa-atrophy
cef8d55dcac0e2ea6f9a4920373c9301b406ca4c
[ "MIT" ]
2
2020-05-12T19:43:44.000Z
2020-06-15T02:23:51.000Z
run_all.py
sct-pipeline/csa-atrophy
cef8d55dcac0e2ea6f9a4920373c9301b406ca4c
[ "MIT" ]
95
2020-05-13T20:26:38.000Z
2021-07-12T22:19:31.000Z
run_all.py
sct-pipeline/csa-atrophy
cef8d55dcac0e2ea6f9a4920373c9301b406ca4c
[ "MIT" ]
2
2020-05-12T19:43:52.000Z
2020-10-31T00:47:17.000Z
# !/usr/bin/env python # -*- coding: utf-8 ######################################################################################### # # Break down multiprocessing jobs across sub-datasets # example: python run_all.py -config config_sct_run_batch.yml # ###################################################################...
35.289474
137
0.619687
625f7a0ee4ef14a79ed56ce2f902757380697cf7
4,501
py
Python
ginga/examples/gl/example_wireframe.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/examples/gl/example_wireframe.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
ginga/examples/gl/example_wireframe.py
SimonKrughoff/ginga
abcd284228400092b2d7b73bb51d30632e90ee03
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # example_wireframe.py -- Example of a 3D plot with octahedron and wireframe # """ Example of 3D plotting in Ginga Plots an octahedron within a wireframe sphere. Run with no parameters. Scroll to zoom in/out, click and drag to orbit. Requirements: Qt5, OpenGL, numpy """ from __future__ impo...
26.952096
76
0.589869
625f82f164e6ab0f180f8621f2f6a986398e6628
1,093
py
Python
literacy/environment.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
6
2016-04-19T22:15:37.000Z
2019-08-26T02:31:15.000Z
literacy/environment.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
2
2016-04-28T18:15:51.000Z
2016-05-01T13:00:01.000Z
literacy/environment.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
4
2020-06-19T00:02:53.000Z
2021-02-23T07:01:47.000Z
from jinja2 import ( Environment, DictLoader, ) from IPython import ( get_ipython, ) from mistune import ( Markdown, Renderer, ) class LiterateEnvironment( Environment ): """A Jinja Environment and the current notebook state.""" ip = get_ipython() renderer=Markdown(renderer=Renderer(esc...
29.540541
102
0.514181
625f9e6c0805642c4bac39833056ed657095eac4
925
py
Python
pcdsdevices/evr.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/evr.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdsdevices/evr.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
from ophyd import Component as Cpt from ophyd import Device, EpicsSignal, EpicsSignalRO from .interface import BaseInterface class Trigger(Device, BaseInterface): """Class for an individual Trigger.""" eventcode = Cpt(EpicsSignal, ':EC_RBV', write_pv=':TEC', kind="config") eventrate = Cpt(EpicsSignalRO, ...
34.259259
77
0.663784
625fa5302accd0c6dd538c3be025214396d24fda
1,847
py
Python
appengine/monorail/features/spamtraining.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/features/spamtraining.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/features/spamtraining.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
"""Cron job to train spam model with all spam data.""" from __future__ import print_function from __future__ import division from __future__ import absolute_import import logging import settings import time from googleapiclient import discovery from googleapiclient import errors from google.appengine.api import app_i...
28.859375
75
0.626421
625fd196b7097b6c3e5f1ffa8650f06a6086fb64
631
py
Python
blender_integration/blender_integration.py
brookman/IPC
531527c3583d4b3ef7950bb10147a6d33308f7a3
[ "MIT" ]
null
null
null
blender_integration/blender_integration.py
brookman/IPC
531527c3583d4b3ef7950bb10147a6d33308f7a3
[ "MIT" ]
null
null
null
blender_integration/blender_integration.py
brookman/IPC
531527c3583d4b3ef7950bb10147a6d33308f7a3
[ "MIT" ]
null
null
null
import bpy import os import shutil from ipc_docker import IpcDocker from simulation import * input_directory = os.path.join(os.path.dirname(bpy.data.filepath), 'input') output_parent_directory = os.path.dirname(bpy.data.filepath) output_directory = os.path.join(output_parent_directory, 'output') if os.path.exists(in...
26.291667
75
0.81141
625ff44fab154c3789789b42c9c9108f17e82375
3,342
py
Python
utils.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
utils.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
utils.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
import os import shutil from populus.utils.filesystem import ( ensure_path_exists, ) from geth.wrapper import ( construct_test_chain_kwargs, ) from geth.accounts import ( create_new_account, ) from geth.install import ( chmod_plus_x, ) INIT_COMMAND = ( "geth --rpc --rpcaddr 127.0.0.1 --rpcport...
28.564103
87
0.649312
6260185c77ece51d575ebf305f605660d9056656
2,508
py
Python
tests/nuodb_huge_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
tests/nuodb_huge_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
tests/nuodb_huge_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pynuodb import unittest from nuodb_base import NuoBase class NuoDBHugeTest(NuoBase): def test_wide_select(self): con = self._connect() cursor = con.cursor() total_columns = 5120 alphabet = "ABCDEFGHIJKLMNOPQRSTUWXYZ" select_string = "SELECT ...
29.857143
140
0.598086
6260241ff074fdcd0fd27810fc2195663253b619
1,950
py
Python
src/rubrix/sdk/models/text_classification_search_aggregations_predicted.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_search_aggregations_predicted.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_search_aggregations_predicted.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
32.5
83
0.710769
626031834de789dbe418178ad1622d9fb96db729
297
py
Python
lepidoptera/migrations/0012_delete_status.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
2
2020-11-17T18:02:44.000Z
2021-02-02T04:00:21.000Z
lepidoptera/migrations/0012_delete_status.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
5
2020-06-05T19:00:59.000Z
2022-01-13T00:52:30.000Z
lepidoptera/migrations/0012_delete_status.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# Generated by Django 2.1 on 2018-09-14 12:26 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lepidoptera', '0011_auto_20180914_1425'), ] operations = [ migrations.DeleteModel( name='Status', ), ]
17.470588
51
0.609428
626043de3dd56b51a980bfbe36f66b5301f9ac9c
231,247
py
Python
test/unit/common/test_utils.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_utils.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/test_utils.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
41.227848
79
0.565664
6260539055d292969cc26dd9e911d70efa6a2df2
14,430
py
Python
src/api/fundings/db_services.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
src/api/fundings/db_services.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
src/api/fundings/db_services.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
from enum import Enum from flask import current_app from marshmallow import INCLUDE, EXCLUDE from sqlalchemy import func, case from src.api.funders.entities import Funder from src.shared.entity import Session from src.shared.manage_error import CodeError, ManageErrorUtils, TError from .entities import Funding, Fundin...
41.111111
164
0.582536
62607e1ee86dd480e08fc45382cbfcaff4749f41
11,134
py
Python
keystoneclient/tests/v2_0/test_auth.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/tests/v2_0/test_auth.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
null
null
null
keystoneclient/tests/v2_0/test_auth.py
jamielennox/python-keystoneclient
a1bc48c0fc475db6bca761a9023c35adab740dab
[ "Apache-1.1" ]
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 # d...
40.487273
79
0.601132
62608427c47542820b8eabb4fb5ae612198ecd7b
17,113
py
Python
TP_TN_OSC_funcs.py
yoramzarai/Oscillatory
d0ca3743a0e0203b039a9822b13849c7becc68ee
[ "MIT" ]
null
null
null
TP_TN_OSC_funcs.py
yoramzarai/Oscillatory
d0ca3743a0e0203b039a9822b13849c7becc68ee
[ "MIT" ]
null
null
null
TP_TN_OSC_funcs.py
yoramzarai/Oscillatory
d0ca3743a0e0203b039a9822b13849c7becc68ee
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from scipy.special import comb import networkx as nx import functools as fnt from itertools import combinations, product '''Implementation here of the EB factorization on an invertible TN matrix is based on chapter 2 of the book "Totally Nonnegative Matrices", Fal...
41.536408
140
0.613393
62609045a4430a939d287576bc4e952606a9d618
4,604
py
Python
flexget/plugins/est_released_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/est_released_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
flexget/plugins/est_released_series.py
BrainDamage/Flexget
50f75bdad64ce023daaff334df8478319ddb9f64
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from datetime import timedelta, datetime import contextlib import logging from sqlalchemy import desc, func from flexget import plugin from flexget.event import event from flexget.manager import Session from flexget.utils.tools import multiply_timedel...
48.978723
115
0.571894
626091abcf84eec6587de353a56f766b3a504223
299
py
Python
src/examples/reference/specular.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
3
2018-04-23T17:33:02.000Z
2021-01-05T04:52:36.000Z
src/examples/reference/specular.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
1
2018-04-23T17:37:37.000Z
2018-04-23T17:37:37.000Z
src/examples/reference/specular.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
2
2019-01-16T06:34:52.000Z
2019-10-15T14:03:07.000Z
from pyprocessing import * size(100, 100); background(0); noStroke(); background(0); fill(0, 51, 102); lightSpecular(255, 255, 255); directionalLight(204, 204, 204, 0, 0, -1); translate(20, 50, 0); specular(255, 255, 255); sphere(30); translate(60, 0, 0); specular(204, 102, 0); sphere(30); run()
16.611111
42
0.668896
6260b044ee677a9dcc6f63857dd8359d4dd60bf8
2,540
py
Python
doslib/control.py
nw13slx/Doslib
425eca912c598626f16fd061e9afd9ba7bec4eee
[ "MIT" ]
1
2021-09-09T08:53:39.000Z
2021-09-09T08:53:39.000Z
doslib/control.py
nw13slx/Doslib
425eca912c598626f16fd061e9afd9ba7bec4eee
[ "MIT" ]
null
null
null
doslib/control.py
nw13slx/Doslib
425eca912c598626f16fd061e9afd9ba7bec4eee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # usage: split_dos_atom argument-name argument # argument name, parameter # partial orbital: "s, p, d, f", # of element; i.e. p 1 f 0 # input element species: atom.ntype, [# of types, type 0 #, type 1 #, ...] # this setting overrides the one in poscar/contcar # write_dos0 yes/no # write_pdos yes...
33.866667
150
0.492913
6260d26bd133809cf9e26d64e0072a8eb283a2d9
5,690
py
Python
model/SSD_VMRN.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
model/SSD_VMRN.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
model/SSD_VMRN.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
# -------------------------------------------------------- # Visual Detection: State-of-the-Art # Copyright: Hanbo Zhang # Licensed under The MIT License [see LICENSE for details] # Written by Hanbo Zhang # -------------------------------------------------------- import torch import torch.nn as nn from model.utils.con...
41.532847
119
0.596309
6260f98fd1f540c4ac68ed0c780d5ffacdf15ac7
11,074
py
Python
tests/mock/responses/get_album_tracks.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
1
2019-04-24T19:50:03.000Z
2019-04-24T19:50:03.000Z
tests/mock/responses/get_album_tracks.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
3
2019-10-11T20:31:57.000Z
2020-04-13T16:06:43.000Z
tests/mock/responses/get_album_tracks.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
null
null
null
import json _jtracks = """ { "href": "https://api.spotify.com/v1/albums/6akEvsycLGftJxYudPjmqK/tracks?offset=0&limit=5", "items": [ { "artists": [ { "external_urls": { "spotify": "https://open.spotify.com/artist/08td7MxkoHQkXnWAYD8d6Q" }, "href": "https:/...
19.704626
131
0.364548
62611ba86f28f2b6b87edc7ad9e0c542a8bf63e9
1,776
py
Python
tests/objects/test__application.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
1
2022-01-31T02:07:49.000Z
2022-01-31T02:07:49.000Z
tests/objects/test__application.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
null
null
null
tests/objects/test__application.py
vladimirs-git/fortigate-api
7059fa1375feaa53ffcc19c7f48869727b854857
[ "MIT" ]
1
2022-02-17T07:04:50.000Z
2022-02-17T07:04:50.000Z
"""unittest objects/application.py""" from __future__ import annotations import unittest from fortigate_api.application import Application from tests.helper__tst import NAME1, NAME2, NAME3 from tests.mock_fortigate import MockFortigate class Test(MockFortigate): """unittest objects/application.py""" def s...
29.6
76
0.576014
626135b0a1740d939379c8293c43a6f32ddbd9e8
769
py
Python
app/__dev__/class_method_attribute_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
app/__dev__/class_method_attribute_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
app/__dev__/class_method_attribute_testing.py
timothyhull/ww_tweeter
6ef76bed2bf10c7f2ef6c849e3fb883d8a286c83
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Tests for adding attributes with methods to class methods. The intent is to return two objects: test_method_1().name test_method_1().url.test_method_2() """ # Define a url class for the test method class URL: # Define test method #2 def test_method_2(self, url)...
22.617647
75
0.669701