hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
74bdc25410fe2d217d48df4b922d92a0673bcd3c
2,078
py
Python
contrib/devtools/check-doc.py
martin-braun/Nuwa
ea9924c953db44a8a2844c6bb63cb3a18f4e658f
[ "MIT" ]
1
2021-12-30T23:57:59.000Z
2021-12-30T23:57:59.000Z
contrib/devtools/check-doc.py
martin-braun/Nuwa
ea9924c953db44a8a2844c6bb63cb3a18f4e658f
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
martin-braun/Nuwa
ea9924c953db44a8a2844c6bb63cb3a18f4e658f
[ "MIT" ]
1
2022-01-10T22:20:22.000Z
2022-01-10T22:20:22.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
43.291667
303
0.688643
1f046d99249b240068aa49f3560b1cabb09ab0b8
4,468
py
Python
webrecorder/webrecorder/standalone/webrecorder_full.py
ssteo/webrecorder
8690608171f35c475842df8fabbe666f5058193d
[ "Apache-2.0" ]
1,217
2015-10-16T06:37:32.000Z
2020-06-08T14:02:08.000Z
webrecorder/webrecorder/standalone/webrecorder_full.py
ssteo/webrecorder
8690608171f35c475842df8fabbe666f5058193d
[ "Apache-2.0" ]
476
2015-10-15T22:24:07.000Z
2020-06-11T07:43:29.000Z
webrecorder/webrecorder/standalone/webrecorder_full.py
nla/webrecorder
29be63e71999de6a4bc1144a47d59137fab34239
[ "Apache-2.0" ]
101
2015-10-16T01:24:07.000Z
2020-05-18T00:49:49.000Z
import os import sys import base64 import shutil from webrecorder.standalone.standalone import StandaloneRunner from webrecorder.models.usermanager import CLIUserManager from webrecorder.utils import sanitize_title from webrecorder.standalone.localredisserver import LocalRedisServer import redis from six.moves.urll...
33.343284
91
0.597135
015a9cd0da4d60c54b523018013d2059bbe1d238
4,392
py
Python
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/streamhandler.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
1
2020-05-23T11:56:52.000Z
2020-05-23T11:56:52.000Z
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/streamhandler.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
null
null
null
Providers/nxOMSAutomationWorker/automationworker/3.x/worker/streamhandler.py
assing/PowerShell-DSC-for-Linux-1
2747634e5e82fbbfcc87fff5e2c1cb0b91187d47
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ==================================== # Copyright (c) Microsoft Corporation. All rights reserved. # ==================================== """Stream handler module. Is used to process output from stdout and stderr""" import codecs import traceback from threading import Thread import jrdsclient...
40.666667
118
0.617259
6701623e8fd6e8ce499126dbd697e9e2d0646d7f
2,094
py
Python
weather_scrape_print.py
kmuldrew/Home_Automation
952427a3c4d189e3998e4269f2b45374364a4d17
[ "MIT" ]
null
null
null
weather_scrape_print.py
kmuldrew/Home_Automation
952427a3c4d189e3998e4269f2b45374364a4d17
[ "MIT" ]
null
null
null
weather_scrape_print.py
kmuldrew/Home_Automation
952427a3c4d189e3998e4269f2b45374364a4d17
[ "MIT" ]
null
null
null
#Scrapes weather data and writes to disk import time from weather import weather_day from weather import forecast_day from apscheduler.schedulers.blocking import BlockingScheduler #start the scheduler sched = BlockingScheduler() sched.daemonic = True def write_weather_data(): w_data = weather_day() ...
30.347826
72
0.592646
af584f26890c700f652cfdb9b92897a1da357926
1,973
py
Python
orlov/libs/minicap/fixture.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
orlov/libs/minicap/fixture.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
orlov/libs/minicap/fixture.py
coppelia517/orlov
d7ed6c061432b99ab2b75e0262db293e444fe6be
[ "MIT" ]
null
null
null
""" Orlov Module : Minicap Module Fixture. """ import logging import pytest from orlov.libs.minicap import MinicapService, MinicapStream, MinicapProc from orlov.exception import AndroidError logger = logging.getLogger(__name__) @pytest.fixture(scope='session') def m_stream(request) -> MinicapStream: """ Minicap...
27.027397
73
0.686265
850103c86f150fe4825ecb41db03cc85d1659519
18,377
py
Python
test/functional/wallet_multiwallet.py
subhashkarthik1998/namecoin-core
5026155158efb285079f088a3812e090dec5c246
[ "MIT" ]
null
null
null
test/functional/wallet_multiwallet.py
subhashkarthik1998/namecoin-core
5026155158efb285079f088a3812e090dec5c246
[ "MIT" ]
null
null
null
test/functional/wallet_multiwallet.py
subhashkarthik1998/namecoin-core
5026155158efb285079f088a3812e090dec5c246
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiwallet. Verify that a bitcoind node can load multiple wallet files """ import os import shut...
51.912429
195
0.670839
11ac5c19d44190b8130c86af33d626d89e4b896b
54,319
py
Python
src/writelogs.py
onishtar/amazon-serverless-datalake-workshop
2fe83c408a8f2e316fdea72b30ddc826f129a88d
[ "MIT-0" ]
166
2018-11-24T21:40:12.000Z
2022-03-17T23:50:55.000Z
src/writelogs.py
onishtar/amazon-serverless-datalake-workshop
2fe83c408a8f2e316fdea72b30ddc826f129a88d
[ "MIT-0" ]
3
2019-11-01T23:27:44.000Z
2022-01-26T22:47:49.000Z
src/writelogs.py
onishtar/amazon-serverless-datalake-workshop
2fe83c408a8f2e316fdea72b30ddc826f129a88d
[ "MIT-0" ]
88
2018-11-19T01:59:57.000Z
2022-01-29T16:11:23.000Z
import boto3 import random import string import uuid import json import os import datetime import calendar import time #105.156.115.196,ontistesns0,17/Jan/2018:10:43:54,"GET /petstore/Cats/Treats",200,314 profiles = [{"ip":"34.209.30.165", "username":"mphillpottslx"}, {"ip":"207.130.250.61", "username":"gmellandnr...
50.388683
166
0.581749
0cd8da46f0f4c0d3c942cc0cd6f0e2f269a12a9e
1,804
py
Python
setup.py
skabbit/djangocms-unitegallery
e77c6f1b20e75f25c11674a9fd35f8d0b7cf3ec7
[ "MIT" ]
null
null
null
setup.py
skabbit/djangocms-unitegallery
e77c6f1b20e75f25c11674a9fd35f8d0b7cf3ec7
[ "MIT" ]
null
null
null
setup.py
skabbit/djangocms-unitegallery
e77c6f1b20e75f25c11674a9fd35f8d0b7cf3ec7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from setuptools import setup from djangocms_unitegallery import __version__ INSTALL_REQUIRES = [ 'django>=1.7', 'django-cms>=3.0', # 'sorl-thumbnail>=12.0', # this should be done manually ] CLASSIFIERS = [ 'Development Status :: 4 - Beta', ...
26.529412
77
0.638027
a159122d896494c3cf699fb31fabe409a8c6aa50
6,972
py
Python
train.py
rendchevi/BVAE-TTS
235753c13bc528430c19a34e1ca0fa1c1a631993
[ "MIT" ]
null
null
null
train.py
rendchevi/BVAE-TTS
235753c13bc528430c19a34e1ca0fa1c1a631993
[ "MIT" ]
null
null
null
train.py
rendchevi/BVAE-TTS
235753c13bc528430c19a34e1ca0fa1c1a631993
[ "MIT" ]
null
null
null
import os, sys, argparse import torch import torch.nn as nn import torch.nn.functional as F from modules.model import Model import hparams as hp from text import * from utils.utils import * from utils.plot_image import * from apex import amp def validate(model, val_loader, iteration, writer): model.eval() wit...
45.568627
132
0.549053
6e053fef29fa0b07c1320316de3e733ec6e92049
534
py
Python
python/cv/LoadImage/main.py
knyazer/lessons
2ff0ecc4be53d56d4709f5b0e0de2b5a3cc2d0cc
[ "MIT" ]
null
null
null
python/cv/LoadImage/main.py
knyazer/lessons
2ff0ecc4be53d56d4709f5b0e0de2b5a3cc2d0cc
[ "MIT" ]
null
null
null
python/cv/LoadImage/main.py
knyazer/lessons
2ff0ecc4be53d56d4709f5b0e0de2b5a3cc2d0cc
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np ### TARGET: read an image and then show it # Pixels are in format BGR (blue green red) # And images presented as width x height x channels img = cv.imread("data/images/deer.jpg") print(img.shape) ### (height, width, number of channels) # You can set pixel value: img[5][60] = (...
21.36
91
0.702247
b2dd65f9fc5115bbe67ed6cc149fd15a99b14d38
17,205
py
Python
main.py
PeacefulLion/91160
57d0cf429fb1808b3141a10839db6cdda8b4de58
[ "Apache-2.0" ]
null
null
null
main.py
PeacefulLion/91160
57d0cf429fb1808b3141a10839db6cdda8b4de58
[ "Apache-2.0" ]
null
null
null
main.py
PeacefulLion/91160
57d0cf429fb1808b3141a10839db6cdda8b4de58
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # author: MasterPan # email: i@hvv.me import re import time import json import datetime import logging import requests.cookies from bs4 import BeautifulSoup from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 as Cipher_PKCS1_v1_5 from base64 import b64decode, b64encode from fake_user...
29.973868
120
0.529555
7b4bbb9adedf8f41f6fd0917c5f697a793a30f02
1,351
py
Python
tests/test_morning_star.py
laye0619/ofanalysis
e59585c65117c6a573fa2ad6d5ee0a311afbd50f
[ "MIT" ]
null
null
null
tests/test_morning_star.py
laye0619/ofanalysis
e59585c65117c6a573fa2ad6d5ee0a311afbd50f
[ "MIT" ]
null
null
null
tests/test_morning_star.py
laye0619/ofanalysis
e59585c65117c6a573fa2ad6d5ee0a311afbd50f
[ "MIT" ]
null
null
null
from unittest import TestCase from ofanalysis.morningstar.morning_star import MorningStar class TestMorningStar(TestCase): def setUp(self) -> None: self.morning_star = MorningStar( assets_path='./tests/assets', temp_path='./tests/temp_storage.csv', cookie_str="MS_Local...
67.55
889
0.834937
c4ce52ee35c6664ad7e357341c605f176e07b1e6
85
py
Python
pyqtstarter/__init__.py
jokey2k/PyQtStarter
165c14ee954164399d286cecd90cd25bacc328c3
[ "Unlicense" ]
null
null
null
pyqtstarter/__init__.py
jokey2k/PyQtStarter
165c14ee954164399d286cecd90cd25bacc328c3
[ "Unlicense" ]
null
null
null
pyqtstarter/__init__.py
jokey2k/PyQtStarter
165c14ee954164399d286cecd90cd25bacc328c3
[ "Unlicense" ]
null
null
null
__version__ = "1.0.0" # as seen on Semantic Versioning 2.0.0, http://www.semver.org
42.5
84
0.694118
ea299bf6918f0abf7d0fae2fb06525567746c17f
3,583
py
Python
Taxi/LightGBM/lightGBM.py
chenwenhang/Short-term-Prediction-of-Demand-for-Ride-hailing-Services
d0cc73643314d6daac4d7cd39adf8208b30989a3
[ "MIT" ]
1
2020-07-08T13:44:59.000Z
2020-07-08T13:44:59.000Z
Taxi/LightGBM/lightGBM.py
chenwenhang/Short-term-Prediction-of-Demand-for-Ride-hailing-Services
d0cc73643314d6daac4d7cd39adf8208b30989a3
[ "MIT" ]
null
null
null
Taxi/LightGBM/lightGBM.py
chenwenhang/Short-term-Prediction-of-Demand-for-Ride-hailing-Services
d0cc73643314d6daac4d7cd39adf8208b30989a3
[ "MIT" ]
1
2020-12-21T15:10:17.000Z
2020-12-21T15:10:17.000Z
from sklearn.model_selection import GridSearchCV from sklearn.model_selection import train_test_split from sklearn.utils import shuffle from sklearn.preprocessing import PolynomialFeatures from lightgbm import LGBMClassifier import joblib import numpy as np import pandas as pd import time # Make sure the data file and...
35.83
109
0.744348
51b3c2a7bd215a83be926e8dbb2b01c74b5afa45
296
py
Python
captcha/apps.py
Andrew-Chen-Wang/django-recaptcha
fa0d0f844413d451e0f9f9db293909b046ecd944
[ "BSD-3-Clause" ]
13
2022-01-26T21:57:05.000Z
2022-03-18T11:39:36.000Z
captcha/apps.py
Andrew-Chen-Wang/django-recaptcha
fa0d0f844413d451e0f9f9db293909b046ecd944
[ "BSD-3-Clause" ]
34
2022-01-25T14:11:48.000Z
2022-02-08T01:23:07.000Z
captcha/apps.py
Andrew-Chen-Wang/django-recaptcha
fa0d0f844413d451e0f9f9db293909b046ecd944
[ "BSD-3-Clause" ]
4
2022-01-29T11:35:17.000Z
2022-02-21T09:17:29.000Z
from django.apps import AppConfig from django.core.checks import Tags, register from captcha.checks import recaptcha_key_check class CaptchaConfig(AppConfig): name = "captcha" verbose_name = "Django reCAPTCHA" def ready(self): register(recaptcha_key_check, Tags.security)
22.769231
52
0.760135
b192efc0b714b14282924156f2c2417639fd630d
6,531
py
Python
scripts/dfa_walkthrough.py
rahulvenugopal/ComapreComplexity
77039ee02dc579825e7806930a67fdbcdd1dcf4f
[ "MIT" ]
null
null
null
scripts/dfa_walkthrough.py
rahulvenugopal/ComapreComplexity
77039ee02dc579825e7806930a67fdbcdd1dcf4f
[ "MIT" ]
null
null
null
scripts/dfa_walkthrough.py
rahulvenugopal/ComapreComplexity
77039ee02dc579825e7806930a67fdbcdd1dcf4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 30 11:07:55 2021 - DFA tutorial based on nolds implementation @author: Rahul Venugopal References - https://nolds.readthedocs.io/en/latest/nolds.html#detrended-fluctuation-analysis - https://nolds.readthedocs.io/en/latest/_modules/nolds/measures.htm...
27.791489
82
0.670035
cc212862217c3fbea36e487ac0926d33cb8bae69
1,177
py
Python
examples/scripts/load_csv_to_neo4j.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
32
2020-10-21T17:35:27.000Z
2022-03-17T02:40:08.000Z
examples/scripts/load_csv_to_neo4j.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
136
2020-10-02T11:06:50.000Z
2022-03-29T03:55:53.000Z
examples/scripts/load_csv_to_neo4j.py
kevinschaper/kgx
4c129428131047af4506a93fe8dc54fb92a7c702
[ "BSD-3-Clause" ]
19
2018-05-03T17:03:08.000Z
2020-07-15T22:12:40.000Z
import os import argparse from kgx.transformer import Transformer """ A loader script that demonstrates how to load edges and nodes into Neo4j. """ def usage(): print(""" usage: load_csv_to_neo4j.py --nodes nodes.csv --edges edges.csv """) parser = argparse.ArgumentParser(description='Load edges and nodes ...
25.042553
97
0.704333
4153dbe662944d3be0d9f192e78c4b2587230458
585
py
Python
examples/delivery/trade/get_balance.py
AlfonsoAgAr/binance-futures-connector-python
f0bd2c7b0576503bf526ce6be329ca2dae90fefe
[ "MIT" ]
58
2021-11-22T11:46:27.000Z
2022-03-30T06:58:53.000Z
examples/delivery/trade/get_balance.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
15
2021-12-15T22:40:52.000Z
2022-03-29T22:08:31.000Z
examples/delivery/trade/get_balance.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
28
2021-12-10T03:56:13.000Z
2022-03-25T22:23:44.000Z
#!/usr/bin/env python import logging from binance.delivery import Delivery as Client from binance.lib.utils import config_logging from binance.error import ClientError config_logging(logging, logging.DEBUG) key = "" secret = "" client = Client(key, secret,base_url="https://dapi.binance.com") try: response = cli...
26.590909
76
0.711111
c048c46562750090cfd8293a936e73d7a7d69de7
6,382
py
Python
pygest/cmdline/command.py
mfschmidt/PyGEST
3d5e9f5f29ad3d51d3786ea8c39ac89ae792db3b
[ "MIT" ]
null
null
null
pygest/cmdline/command.py
mfschmidt/PyGEST
3d5e9f5f29ad3d51d3786ea8c39ac89ae792db3b
[ "MIT" ]
1
2020-09-20T03:20:14.000Z
2020-09-20T03:20:14.000Z
pygest/cmdline/command.py
mfschmidt/PyGEST
3d5e9f5f29ad3d51d3786ea8c39ac89ae792db3b
[ "MIT" ]
null
null
null
import os import sys import argparse import logging import pkg_resources import pygest as ge from datetime import datetime from pygest.convenience import path_to """ TODO: Create a file logger with command line, never when instantiating the library altogether. Library use should never auto-log. """ class...
48.717557
115
0.592918
2581faf0bba8b578d45967d3ac4d1eb362d00fb2
6,736
py
Python
warp_drive/training/utils/data_loader.py
MetaMind/warp-drive
ecc17aae6c75a00c46b0e9f3297963f1beb697c0
[ "BSD-3-Clause" ]
null
null
null
warp_drive/training/utils/data_loader.py
MetaMind/warp-drive
ecc17aae6c75a00c46b0e9f3297963f1beb697c0
[ "BSD-3-Clause" ]
null
null
null
warp_drive/training/utils/data_loader.py
MetaMind/warp-drive
ecc17aae6c75a00c46b0e9f3297963f1beb697c0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root # or https://opensource.org/licenses/BSD-3-Clause import numpy as np from gym.spaces import Discrete, MultiDiscrete from warp_drive.utils.constants i...
41.073171
88
0.694774
014c5ccce17e9e1d251bea4c58f055a1c4f57f12
6,444
py
Python
utils.py
yueliu1999/awesome-deep-graph-clustering
84af77b466ee05807041a1e3bd6277c713ee3364
[ "MIT" ]
3
2021-11-26T16:21:19.000Z
2021-11-27T05:40:22.000Z
utils.py
xihongyang1999/Awesome-Deep-Graph-Clustering
34115911ec504b69b2194cee3219b22b7bd50414
[ "MIT" ]
null
null
null
utils.py
xihongyang1999/Awesome-Deep-Graph-Clustering
34115911ec504b69b2194cee3219b22b7bd50414
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author : Yue Liu # @Email : yueliu19990731@163.com # @Time : 2021/11/25 11:11 import torch import numpy as np def numpy_to_torch(a, is_sparse=False): """ numpy array to torch tensor :param a: the numpy array :param is_sparse: is sparse tensor or not :return: torch...
31.434146
105
0.602576
e93e988e93c595ea512999833e8502aa15a2efd2
446
py
Python
{{cookiecutter.project_package}}/{{cookiecutter.project_package}}/wsgi.py
madelyneriksen/react-django-goodstuff-cookiecutter
daa8960a762c59ebbdc940ebb08f3784853e4ccf
[ "MIT" ]
17
2019-11-05T20:29:11.000Z
2022-03-09T09:25:10.000Z
{{cookiecutter.project_package}}/{{cookiecutter.project_package}}/wsgi.py
madelyneriksen/react-django-goodstuff-cookiecutter
daa8960a762c59ebbdc940ebb08f3784853e4ccf
[ "MIT" ]
49
2019-12-02T13:27:23.000Z
2021-08-03T13:32:25.000Z
{{cookiecutter.project_package}}/{{cookiecutter.project_package}}/wsgi.py
madelyneriksen/react-django-goodstuff-cookiecutter
daa8960a762c59ebbdc940ebb08f3784853e4ccf
[ "MIT" ]
2
2020-10-11T18:38:39.000Z
2021-03-16T13:16:00.000Z
""" WSGI config for {{ cookiecutter.project_title }}. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefa...
23.473684
80
0.766816
230311e763c4b3ddc0e2202e7ba70af3e6c8285b
14,694
py
Python
src/batou/utils.py
gocept/batou
4d239996f464c406cde82c48155e5b8273a9063d
[ "BSD-2-Clause-FreeBSD" ]
34
2019-09-06T05:30:10.000Z
2022-03-12T01:25:38.000Z
src/batou/utils.py
gocept/batou
4d239996f464c406cde82c48155e5b8273a9063d
[ "BSD-2-Clause-FreeBSD" ]
204
2019-09-05T14:41:12.000Z
2022-03-10T12:14:37.000Z
src/batou/utils.py
gocept/batou
4d239996f464c406cde82c48155e5b8273a9063d
[ "BSD-2-Clause-FreeBSD" ]
25
2019-10-10T07:13:41.000Z
2022-03-24T14:52:25.000Z
import contextlib import copy import fcntl import functools import hashlib import inspect import itertools import os import socket import subprocess import sys import time from collections import defaultdict import pkg_resources from batou import DeploymentError, IPAddressConfigurationError, output class BagOfAttri...
29.865854
79
0.603716
d9f3830e1898006cb66c7a534b4bc1e5052751ff
8,553
py
Python
eeg_modelling/eeg_viewer/data_source.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
1
2019-04-18T15:03:39.000Z
2019-04-18T15:03:39.000Z
eeg_modelling/eeg_viewer/data_source.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
null
null
null
eeg_modelling/eeg_viewer/data_source.py
nilu33032/google-research
bb8f5457fd9dba56018b23a038249c539c1b7491
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.768293
80
0.718578
f1f9edd0b0b6b13b4431d1c8eba7750ee6601387
66
py
Python
modules/templates/historic/Delphi/__init__.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
205
2015-01-20T08:26:09.000Z
2022-03-27T19:59:33.000Z
modules/templates/historic/Delphi/__init__.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
249
2015-02-10T09:56:35.000Z
2022-03-23T19:54:36.000Z
modules/templates/historic/Delphi/__init__.py
himansu1997/eden
1e2cf2b00f55da46b1ce3e6b7ad44b5345d7a1dc
[ "MIT" ]
231
2015-02-10T09:33:17.000Z
2022-02-18T19:56:05.000Z
__all__ = ("delphi", ) import templates.Delphi.delphi
13.2
30
0.606061
4f8bd15d1c409bd45f287e39bcb008b8283aad6b
4,569
py
Python
pastepoints/pastepoints.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
null
null
null
pastepoints/pastepoints.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
null
null
null
pastepoints/pastepoints.py
majordookie/paste-cogs
b4e9fd919a8c5dde020b6aabac000c27648b835a
[ "Apache-2.0" ]
null
null
null
import asyncio import io import re from collections import namedtuple import aiohttp import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import box, pagify # Paste Points are the new Bitcoin BaseCog = getattr(commands, "Cog", object) upemoji_id = 3970...
39.730435
172
0.602758
424622f86c8f06efacc262277b4e5a814bd9daac
9,023
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "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 ...
36.530364
131
0.655769
01d20866418d5149b9f2b189c563d1210f5e2e49
807
py
Python
manage.py
ksu-svt/svt-event-web-app
10d6d7ab0829edf45e4d8d503ac57f5b20fecbae
[ "MIT" ]
null
null
null
manage.py
ksu-svt/svt-event-web-app
10d6d7ab0829edf45e4d8d503ac57f5b20fecbae
[ "MIT" ]
15
2017-08-29T03:26:08.000Z
2018-01-20T21:05:01.000Z
manage.py
ksu-svt/svt-event-web-app
10d6d7ab0829edf45e4d8d503ac57f5b20fecbae
[ "MIT" ]
1
2017-09-24T04:56:00.000Z
2017-09-24T04:56:00.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "svt_event.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
711ce82ed5e548703444c327276ec5e1b7c5fd16
1,429
py
Python
app/recipe/serializers.py
singhlovepreet1/recipe-app-api
d604dcc3d788691c7ec6ee00e9c10a1f0f9a647d
[ "MIT" ]
null
null
null
app/recipe/serializers.py
singhlovepreet1/recipe-app-api
d604dcc3d788691c7ec6ee00e9c10a1f0f9a647d
[ "MIT" ]
null
null
null
app/recipe/serializers.py
singhlovepreet1/recipe-app-api
d604dcc3d788691c7ec6ee00e9c10a1f0f9a647d
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag object""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngredientSerializer(serializers....
25.981818
65
0.639608
b4dd823cdfbd0db425061a9d8a5784ee20ad7e78
13,926
py
Python
tests/test_support.py
sudhanshu8917/babel
5c1383a4b36809afa196f5813f799036c0ce5b55
[ "BSD-3-Clause" ]
null
null
null
tests/test_support.py
sudhanshu8917/babel
5c1383a4b36809afa196f5813f799036c0ce5b55
[ "BSD-3-Clause" ]
null
null
null
tests/test_support.py
sudhanshu8917/babel
5c1383a4b36809afa196f5813f799036c0ce5b55
[ "BSD-3-Clause" ]
1
2019-07-02T07:23:46.000Z
2019-07-02T07:23:46.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 Edgewall Software, 2013-2019 the Babel team # All rights reserved. # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. ...
38.153425
97
0.568074
5940ac5461e9eedb418a7b88a9a2136104e3610c
4,047
py
Python
python/ray/serve/pipeline/tests/test_deployment_node.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
1
2022-03-07T06:40:06.000Z
2022-03-07T06:40:06.000Z
python/ray/serve/pipeline/tests/test_deployment_node.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
29
2021-11-24T00:50:07.000Z
2022-03-19T07:11:36.000Z
python/ray/serve/pipeline/tests/test_deployment_node.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
null
null
null
import pytest import ray from ray import serve from ray.experimental.dag.input_node import InputNode from ray.serve.pipeline.deployment_node import ( DeploymentNode, ) from ray.serve.pipeline.constants import USE_SYNC_HANDLE_KEY @serve.deployment class ServeActor: def __init__(self, init_value=0): se...
24.089286
82
0.604151
f092a53625215f4ac23ece0aefdd6ea71b830c3e
31,847
py
Python
Compiler/path_oram.py
mkskeller/SPDZ-BMR-ORAM
78af37ae0316699260199030c28441dbf175d860
[ "BSD-4-Clause-UC" ]
4
2019-01-22T23:14:00.000Z
2021-10-04T02:57:32.000Z
Compiler/path_oram.py
mkskeller/SPDZ-BMR-ORAM
78af37ae0316699260199030c28441dbf175d860
[ "BSD-4-Clause-UC" ]
null
null
null
Compiler/path_oram.py
mkskeller/SPDZ-BMR-ORAM
78af37ae0316699260199030c28441dbf175d860
[ "BSD-4-Clause-UC" ]
1
2021-05-26T19:33:01.000Z
2021-05-26T19:33:01.000Z
# (C) 2018 University of Bristol, Bar-Ilan University. See License.txt if '_Array' not in dir(): from oram import * import permutation _Array = Array import oram #import pdb class Counter(object): def __init__(self, val=0, max_val=None, size=None, value_type=sgf2n): if value_type is sgf2n: ...
41.039948
152
0.558075
5fcbc3ba39fc492ab2533c7e35a616bb2e147b48
3,178
py
Python
mtsgi/agents/agents_test.py
srsohn/mtsgi
31dc14b007758edc0aa340397184f47695705b1c
[ "MIT" ]
1
2021-03-30T16:43:36.000Z
2021-03-30T16:43:36.000Z
mtsgi/agents/agents_test.py
srsohn/mtsgi
31dc14b007758edc0aa340397184f47695705b1c
[ "MIT" ]
null
null
null
mtsgi/agents/agents_test.py
srsohn/mtsgi
31dc14b007758edc0aa340397184f47695705b1c
[ "MIT" ]
null
null
null
""" Testing all agents on several environments. """ import os os.environ['CUDA_VISIBLE_DEVICES'] = "-1" # use cpu import sys import pytest from acme import specs import mockito from mockito import spy2 from mtsgi import envs from mtsgi import agents from mtsgi import environment_loop from mtsgi.envs import wrappe...
24.828125
72
0.698553
2c59d91ce2652a5ae333ef12cf77eed78e26c0f6
9,702
py
Python
etc/configure.py
tardyp/scancode-toolkit
cce8cbc64746ed58f2f0a9bf03d6c3500bd7cc1c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
etc/configure.py
tardyp/scancode-toolkit
cce8cbc64746ed58f2f0a9bf03d6c3500bd7cc1c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
etc/configure.py
tardyp/scancode-toolkit
cce8cbc64746ed58f2f0a9bf03d6c3500bd7cc1c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://aboutco...
29.047904
99
0.642136
4474b160d34ca3401008575d2535acd191638a35
1,529
py
Python
normatrix/normatrix/plugged/two_space.py
TristanMasselot/NorMatrix
978b204a7a88dd38629bc286677af155f0a6b7a6
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/two_space.py
TristanMasselot/NorMatrix
978b204a7a88dd38629bc286677af155f0a6b7a6
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/two_space.py
TristanMasselot/NorMatrix
978b204a7a88dd38629bc286677af155f0a6b7a6
[ "MIT" ]
null
null
null
try: from normatrix.source.file_parser import CFileParse except ModuleNotFoundError: from normatrix.normatrix.source.file_parser import CFileParse def check_non_comment_line(file: CFileParse, line: str, i: int, IS_IN_COMMENT: bool, nb_error: int, list_error: list): separator = [chr(k) for k in range(ord('a...
34.75
118
0.572269
a131b195020514ce15713e523855a37a946e453d
406
py
Python
CursoEmVideoPython/desafio34.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
CursoEmVideoPython/desafio34.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
1
2020-07-04T16:27:25.000Z
2020-07-04T16:27:25.000Z
CursoEmVideoPython/desafio34.py
miguelabreuss/scripts_python
cf33934731a9d1b731672d4309aaea0a24ae151a
[ "MIT" ]
null
null
null
print('-='*20) print('ANALISADOR DE TRIÂNGULOS') print('-='*20) c1 = float(input('Digite o comprimento da primeira reta:[cm] ')) c2 = float(input('Digite o comprimento da segunda reta:[cm] ')) c3 = float(input('Digite o comprimento da terceira reta:[cm] ')) if c2 - c3 < c1 < c2 + c3 and c1 - c3 < c2 < c1 + c3 and c2 - ...
40.6
80
0.633005
163698227d7a19c112e97e01a4d8f29d0cdcd241
3,468
py
Python
growlee/src/GrowleeConnection.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
30
2015-05-08T22:10:00.000Z
2022-03-13T22:09:31.000Z
growlee/src/GrowleeConnection.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
124
2015-04-27T21:30:48.000Z
2022-03-29T10:21:39.000Z
growlee/src/GrowleeConnection.py
TwolDE2/enigma2-plugins
06685a5ce6a65a8724d3b32c8f7906714650ca2c
[ "OLDAP-2.3" ]
193
2015-01-10T09:21:26.000Z
2022-03-21T08:19:33.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from Components.config import config from Tools import Notifications from Screens.MessageBox import MessageBox from twisted.internet.defer import Deferred from twisted.internet import reactor from . import NOTIFICATIONID def emergencyDisable(*args, **kwa...
27.52381
123
0.729527
4abf8a4e5b7ce7da146ea2e7981972fb317190dd
3,379
py
Python
setup.py
archiif/streamlink
5c9fa063e2200aaeb530c59a5e8ead7048334d38
[ "BSD-2-Clause" ]
null
null
null
setup.py
archiif/streamlink
5c9fa063e2200aaeb530c59a5e8ead7048334d38
[ "BSD-2-Clause" ]
null
null
null
setup.py
archiif/streamlink
5c9fa063e2200aaeb530c59a5e8ead7048334d38
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from os import environ, path from sys import argv, exit, version_info from textwrap import dedent from setuptools import setup import versioneer def format_msg(text, *args, **kwargs): return dedent(text).strip(" \n").format(*args, **kwargs) CURRENT_PYTHON = version_info[:2] REQUIRED_PYTH...
30.718182
96
0.64013
4282f680786fbcbf6ef87b5b484a19bb3c988e2d
39,075
py
Python
var/spack/repos/builtin/packages/openfoam/package.py
cjy7117/spack
3582115d2af3ebd8156d742883c049e5b864eb2d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-07-03T22:53:51.000Z
2021-07-03T22:53:51.000Z
var/spack/repos/builtin/packages/openfoam/package.py
cjy7117/spack
3582115d2af3ebd8156d742883c049e5b864eb2d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openfoam/package.py
cjy7117/spack
3582115d2af3ebd8156d742883c049e5b864eb2d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-01-10T18:54:54.000Z
2021-07-03T22:57:16.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # # Author: Mark Olesen <mark.olesen@esi-group.com> # # Legal Notice # ------------ # OPENFOAM is a trademark owned by Ope...
37.900097
116
0.583263
7683f2fecda3e0e37c65dc8369a5898cd79135f2
523
py
Python
hydroengine_service/error_handler.py
schnjaso2/hydro-engine-service
7cb7b136b86c7b97fcb21220dcdef45c2b1ec6ae
[ "MIT" ]
null
null
null
hydroengine_service/error_handler.py
schnjaso2/hydro-engine-service
7cb7b136b86c7b97fcb21220dcdef45c2b1ec6ae
[ "MIT" ]
null
null
null
hydroengine_service/error_handler.py
schnjaso2/hydro-engine-service
7cb7b136b86c7b97fcb21220dcdef45c2b1ec6ae
[ "MIT" ]
null
null
null
'''Application error handlers.''' from flask import Blueprint, jsonify import traceback error_handler = Blueprint('errors', __name__) @error_handler.app_errorhandler(Exception) def handle_unexpected_error(error): stack = traceback.format_exc() status_code = 500 success = False response = { ...
20.92
45
0.634799
48060e633dd1b4433347ca46e50e30e211d943a8
2,079
py
Python
WebSocketServer/megaRPI/megaCliente.py
felipelvrd/RPIWebAdmin
5f3a4d3b630183a6322ffe4b89df04db17a9dd9d
[ "MIT" ]
null
null
null
WebSocketServer/megaRPI/megaCliente.py
felipelvrd/RPIWebAdmin
5f3a4d3b630183a6322ffe4b89df04db17a9dd9d
[ "MIT" ]
null
null
null
WebSocketServer/megaRPI/megaCliente.py
felipelvrd/RPIWebAdmin
5f3a4d3b630183a6322ffe4b89df04db17a9dd9d
[ "MIT" ]
null
null
null
from mega import MegaRequestListener, MegaError from WebSocketServer.megaRPI.utils import enviar_cliente from WebSocketServer.megaRPI.megaNodosManager import MegaNodosManager class MegaCliente(object): def __init__(self, api, web_socket_handler): self._api = api self.web_socket_handler = web_socke...
32.484375
86
0.660895
d859aab42a7ad09c1428d32a6f9fc2d554586925
29,125
py
Python
electrum/lnsweep.py
p3ngu19z/electrum
427b396c24ec1a3cfdca8e1a70c94537b35ad882
[ "MIT" ]
79
2017-11-10T03:00:57.000Z
2022-02-27T16:35:04.000Z
electrum/lnsweep.py
fabrizioschiavi/electrum
a0f2dadf11fa1636e46a8c233b4d5651032080e4
[ "MIT" ]
70
2017-12-25T05:28:26.000Z
2022-03-26T22:31:47.000Z
electrum/lnsweep.py
fabrizioschiavi/electrum
a0f2dadf11fa1636e46a8c233b4d5651032080e4
[ "MIT" ]
64
2017-12-19T09:09:23.000Z
2022-02-08T10:26:13.000Z
# Copyright (C) 2018 The Electrum developers # Distributed under the MIT software license, see the accompanying # file LICENCE or http://www.opensource.org/licenses/mit-license.php from typing import Optional, Dict, List, Tuple, TYPE_CHECKING, NamedTuple, Callable from enum import Enum, auto from .util import bfh, bh...
52.195341
133
0.646798
c9003cc9bc0b94d7697fa9bdcd28a2d02584a6e2
11,967
py
Python
app/expansion.py
datactivist/fastapi-query-expansion
884d05cdf529e60db075904add3c7cdf97950cdd
[ "MIT" ]
null
null
null
app/expansion.py
datactivist/fastapi-query-expansion
884d05cdf529e60db075904add3c7cdf97950cdd
[ "MIT" ]
1
2021-12-17T15:15:23.000Z
2021-12-17T15:15:23.000Z
app/expansion.py
datactivist/fastapi-query-expansion
884d05cdf529e60db075904add3c7cdf97950cdd
[ "MIT" ]
null
null
null
import json import numpy as np from enum import Enum from pathlib import Path import re import sql_query import request_lexical_resources data_path = Path("data") keyw_path = Path("keywords_vectors") embeddings_path = Path("embeddings") keywords_delimitor = " |,|;|_|\|" class EmbeddingsType(str, Enum): word2ve...
29.330882
154
0.595889
db9635bc59260eb9d0378709090496a34abb2c4c
3,376
py
Python
BackEnd/cart/models.py
parhamzm/Kashan-Holiday-Project---SE
ce5205ea3b097287648be54f9d424679c649085e
[ "MIT" ]
3
2019-11-24T20:54:17.000Z
2021-09-19T18:52:23.000Z
BackEnd/cart/models.py
parhamzm/Kashan-Holiday-Project---SE
ce5205ea3b097287648be54f9d424679c649085e
[ "MIT" ]
null
null
null
BackEnd/cart/models.py
parhamzm/Kashan-Holiday-Project---SE
ce5205ea3b097287648be54f9d424679c649085e
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from decimal import Decimal from tours.models import Tour, TourVariation from accounts.models import BasicUser from django.db.models.signals import pre_save, post_save, post_delete from django.core.urlresolvers import reverse # Create your models here. User ...
38.363636
116
0.738448
e517445ee13933ffbbacdc06f38fb12c2e1dd220
1,062
py
Python
examples/servo-test.py
MultipedRobotics/qaudruped-AX12
e3f077b84980bfda02853d9209e4da98c93622bb
[ "MIT" ]
4
2019-05-18T17:18:40.000Z
2020-10-09T15:28:14.000Z
examples/servo-test.py
MultipedRobotics/qaudruped-AX12
e3f077b84980bfda02853d9209e4da98c93622bb
[ "MIT" ]
null
null
null
examples/servo-test.py
MultipedRobotics/qaudruped-AX12
e3f077b84980bfda02853d9209e4da98c93622bb
[ "MIT" ]
1
2020-10-06T01:57:33.000Z
2020-10-06T01:57:33.000Z
# #!/usr/bin/env python # ############################################## # # The MIT License (MIT) # # Copyright (c) 2018 Kevin Walchko # # see LICENSE for full details # ############################################## # # from __future__ import print_function # from __future__ import division # # from quadruped import ...
22.595745
58
0.591337
c9f15a3b88447e12c7172c6436259f9e24855497
1,337
py
Python
.venv/lib/python3.8/site-packages/yaml_env_tag.py
MCMaurer/mkdocs-learning-materials-home
7dfba825279415cb3658e53c18783c8074c6fb10
[ "Apache-2.0" ]
4
2021-09-23T16:16:02.000Z
2022-03-23T21:47:30.000Z
.venv/lib/python3.8/site-packages/yaml_env_tag.py
MCMaurer/mkdocs-learning-materials-home
7dfba825279415cb3658e53c18783c8074c6fb10
[ "Apache-2.0" ]
10
2021-06-16T20:48:32.000Z
2021-10-04T18:22:02.000Z
.venv/lib/python3.8/site-packages/yaml_env_tag.py
MCMaurer/mkdocs-learning-materials-home
7dfba825279415cb3658e53c18783c8074c6fb10
[ "Apache-2.0" ]
2
2022-01-17T16:50:08.000Z
2022-01-17T20:59:27.000Z
""" A custom YAML tag for referencing environment variables in YAML files. """ __version__ = '0.1' import os import yaml from typing import Any def construct_env_tag(loader: yaml.Loader, node: yaml.Node) -> Any: """Assign value of ENV variable referenced at node.""" default = None if isinstance(node, yam...
38.2
78
0.65819
368f026e96589bc94efb5ffccef3474131f6a844
435
py
Python
apps/projects/migrations/0004_auto_20180517_1028.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/projects/migrations/0004_auto_20180517_1028.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/projects/migrations/0004_auto_20180517_1028.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-05-17 10:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0003_auto_20180427_0823'), ] operations = [ migrations.AlterField( model_name='experiment', name='descript...
22.894737
91
0.627586
2ceb67433a07eed1474ef9ce664725f586186fda
195
py
Python
todo/admin.py
markwilson107/Django-Todo
3c9ceda7d3ffd2e85c9303b9d0dd0377ed74b0ac
[ "PostgreSQL", "MIT" ]
null
null
null
todo/admin.py
markwilson107/Django-Todo
3c9ceda7d3ffd2e85c9303b9d0dd0377ed74b0ac
[ "PostgreSQL", "MIT" ]
null
null
null
todo/admin.py
markwilson107/Django-Todo
3c9ceda7d3ffd2e85c9303b9d0dd0377ed74b0ac
[ "PostgreSQL", "MIT" ]
null
null
null
from django.contrib import admin from .models import Todo class TodoAdmin(admin.ModelAdmin): readonly_fields = ('created',) # Register your models here. admin.site.register(Todo, TodoAdmin)
24.375
36
0.774359
272ce6b7f11295bb2c4a681a2e2f1386b43aca5c
136
py
Python
Term 3/2/12-open-a.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term 3/2/12-open-a.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
Term 3/2/12-open-a.py
theseana/apondaone
7cbf3572a86c73220329804fee1f3d03842ae902
[ "MIT" ]
null
null
null
# keep all old data and add new data file = open('athlete.txt', 'a') file.write('Nothin Compares\n') file.write('Lakaka') file.close()
19.428571
36
0.691176
622df440963a9a049bd03ea3fb2e565a7cc48432
2,840
py
Python
backend/corpora/lambdas/api/v1/collection_uuid/upload.py
BuildJet/single-cell-data-portal
080ad03f4745d59ade75c3480149e83bb76cf39b
[ "MIT" ]
null
null
null
backend/corpora/lambdas/api/v1/collection_uuid/upload.py
BuildJet/single-cell-data-portal
080ad03f4745d59ade75c3480149e83bb76cf39b
[ "MIT" ]
null
null
null
backend/corpora/lambdas/api/v1/collection_uuid/upload.py
BuildJet/single-cell-data-portal
080ad03f4745d59ade75c3480149e83bb76cf39b
[ "MIT" ]
null
null
null
import requests from flask import make_response, g from .....common.corpora_config import CorporaConfig from .....common.corpora_orm import CollectionVisibility, ProcessingStatus from .....common import upload_sfn from .....common.entities import Collection, Dataset from .....api_server.db import dbconnect from .....c...
40.571429
118
0.734507
92e7cab9697705f98ac31dce9e0d74476ed52ea8
2,541
py
Python
dgm/models/bayesian_generator.py
mlii/variational-continual-learning
c5e0a7b56dfd4370127b092eb85213efc42bfcc9
[ "Apache-2.0" ]
null
null
null
dgm/models/bayesian_generator.py
mlii/variational-continual-learning
c5e0a7b56dfd4370127b092eb85213efc42bfcc9
[ "Apache-2.0" ]
null
null
null
dgm/models/bayesian_generator.py
mlii/variational-continual-learning
c5e0a7b56dfd4370127b092eb85213efc42bfcc9
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from mlp import init_weights """ A Bayesian MLP generator """ def sample_gaussian(mu, log_sig): return mu + tf.exp(log_sig) * tf.random.normal(mu.get_shape()) def bayesian_mlp_layer(d_in, d_out, activation, name): mu_W = tf.Variable(init_weights(d_in, d_out), name=name + '_mu_W') mu_...
25.41
80
0.658402
fa3826a78e2b26c024cff93920f2ee678997bccd
239
py
Python
fatproject/fat/admin.py
baydinsoftware/FAT
b580ef8016ffb9088cff9951ff23d21166f8f2dd
[ "MIT" ]
1
2019-02-11T12:52:08.000Z
2019-02-11T12:52:08.000Z
fatproject/fat/admin.py
baydinsoftware/FAT
b580ef8016ffb9088cff9951ff23d21166f8f2dd
[ "MIT" ]
1
2019-03-11T23:20:34.000Z
2019-03-11T23:20:34.000Z
fatproject/fat/admin.py
baydinsoftware/FAT
b580ef8016ffb9088cff9951ff23d21166f8f2dd
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Position, Stage, Candidate, Feedback admin.site.register(Position) admin.site.register(Stage) admin.site.register(Candidate) admin.site.register(Feedback)
23.9
56
0.811715
4639196dc392ab023a457b941ea4bdbf31d4f3c9
5,614
py
Python
netapp/santricity/models/symbol/port_idtlv.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
netapp/santricity/models/symbol/port_idtlv.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
netapp/santricity/models/symbol/port_idtlv.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
# coding: utf-8 """ PortIDTLV.py The Clear BSD License Copyright (c) – 2016, NetApp, 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: * Re...
35.531646
844
0.614535
240be404520b255d24af493f5816f5da24d3aadd
6,472
py
Python
integration-tests/tests/frame_category_summary_test.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
1
2016-04-05T21:57:16.000Z
2016-04-05T21:57:16.000Z
integration-tests/tests/frame_category_summary_test.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
integration-tests/tests/frame_category_summary_test.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # # Copyright (c) 2015 Intel Corporation  # # 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 requi...
50.96063
131
0.573857
cf81e885c5a0e28b7b1eb50f9434f2fa57096413
4,529
py
Python
tests/test_object_filter.py
PackeTsar/meraki-cli
c9e5bbf475bf367fd56ab559acc721d6031f2f5f
[ "MIT" ]
45
2020-06-07T04:16:57.000Z
2022-02-14T05:09:16.000Z
tests/test_object_filter.py
PackeTsar/meraki-cli
c9e5bbf475bf367fd56ab559acc721d6031f2f5f
[ "MIT" ]
13
2020-05-28T03:08:49.000Z
2022-03-17T15:35:57.000Z
tests/test_object_filter.py
PackeTsar/meraki-cli
c9e5bbf475bf367fd56ab559acc721d6031f2f5f
[ "MIT" ]
5
2021-03-09T14:36:35.000Z
2022-03-07T09:27:11.000Z
import unittest from meraki_cli.__main__ import _object_filter LISTOFDICTS = [ {'id': '1', 'name': 'THING1'}, {'id': '2', 'name': 'THING2'}, {'id': '100', 'name': 'OTHERTHING'}, {'id': '200', 'name': 'OTHER200THING'}, {'id': '300', 'name': 'ELSE'} ] class TestObjectFilter(unittest.TestCase):...
39.72807
76
0.595496
3707d6175d2b6fb929096f3d148ffca5e5270fdd
1,550
py
Python
core/polyaxon/init/file.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
core/polyaxon/init/file.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
51
2021-04-06T07:59:21.000Z
2022-03-29T01:08:22.000Z
core/polyaxon/init/file.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, Inc. # # 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 ...
31
83
0.748387
d39481361394699a541e42f633f9f1a7b90f83a7
24,589
py
Python
Bio/Motif/Motif.py
nuin/biopython
045d57b08799ef52c64bd4fa807629b8a7e9715a
[ "PostgreSQL" ]
2
2016-05-09T04:20:06.000Z
2017-03-07T10:25:53.000Z
Bio/Motif/Motif.py
nmatzke/biopython
381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a
[ "PostgreSQL" ]
null
null
null
Bio/Motif/Motif.py
nmatzke/biopython
381fc1d1fd2fe07cec7cefbbe5eb5a93757ab67a
[ "PostgreSQL" ]
1
2019-08-19T22:05:14.000Z
2019-08-19T22:05:14.000Z
# Copyright 2003 by Bartek Wilczynski. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ Implementation of sequence motifs. Changes: 10.2007 - BW added matrix (vertical, horiz...
33.318428
160
0.519907
513b84215a1fea5e26d2dcf52334cb313f2d5cef
19,042
py
Python
tools/perf/core/results_dashboard.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
tools/perf/core/results_dashboard.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/perf/core/results_dashboard.py
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
#!/usr/bin/env vpython # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Functions for adding results to perf dashboard.""" # This file was copy-pasted over from: # //build/scripts/slave/results_dash...
36.903101
80
0.700924
e13b9b79935001d5b772a03f4ffb6b20ce88683f
7,495
py
Python
train.py
agupta-git/Abstractive-text-summarizer
ee1268efed505a9e4fc68bf84a994cd8edd3fb9c
[ "MIT" ]
null
null
null
train.py
agupta-git/Abstractive-text-summarizer
ee1268efed505a9e4fc68bf84a994cd8edd3fb9c
[ "MIT" ]
null
null
null
train.py
agupta-git/Abstractive-text-summarizer
ee1268efed505a9e4fc68bf84a994cd8edd3fb9c
[ "MIT" ]
null
null
null
import time import numpy as np import pandas as pd; start = time.perf_counter() import tensorflow as tf import argparse import pickle import os from model import Model from utils import build_dict, build_dataset, batch_iter import io import warnings warnings.filterwarnings("ignore") # Uncomment next 2 lines to suppre...
43.323699
125
0.68459
9b4dc8105f625fc77ac66b2c70c4be429692248a
24
py
Python
RNAPuzzles/rnapuzzles/views/metrics/__init__.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
null
null
null
RNAPuzzles/rnapuzzles/views/metrics/__init__.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
26
2019-10-08T11:11:25.000Z
2022-03-12T00:52:30.000Z
RNAPuzzles/rnapuzzles/views/metrics/__init__.py
whinyadventure/RNA-Puzzles
bbd147e1a0748a77b5e3424a93ad57bb430b5a0e
[ "Apache-2.0" ]
1
2020-05-11T18:51:04.000Z
2020-05-11T18:51:04.000Z
from .calculate import *
24
24
0.791667
64ceef1aef17c3b54f7222294eff0d7fcaca521d
718
py
Python
rest-service/manager_rest/rest/resources_v3_1/aria/__init__.py
yeshess/cloudify-manager
04dd199ce7df54355b87e9594f9db9fb1582924b
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3_1/aria/__init__.py
yeshess/cloudify-manager
04dd199ce7df54355b87e9594f9db9fb1582924b
[ "Apache-2.0" ]
null
null
null
rest-service/manager_rest/rest/resources_v3_1/aria/__init__.py
yeshess/cloudify-manager
04dd199ce7df54355b87e9594f9db9fb1582924b
[ "Apache-2.0" ]
null
null
null
######### # Copyright (c) 2017 GigaSpaces Technologies Ltd. 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...
42.235294
79
0.688022
95361de8805fcb8bfdfe565e70909a45eed95087
34
py
Python
timerdec/__init__.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
1
2020-11-10T10:19:31.000Z
2020-11-10T10:19:31.000Z
timerdec/__init__.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
null
null
null
timerdec/__init__.py
desmoteo/timerdec
bb5433335a64a21c4dbe206c2d56303c4b843e62
[ "MIT" ]
null
null
null
from .shared_data import * init()
11.333333
26
0.735294
70899eb1e91ea7f96c4290fc05177da43222cdda
491
py
Python
bokeh/models/actions.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
1
2021-11-07T18:55:59.000Z
2021-11-07T18:55:59.000Z
bokeh/models/actions.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
null
null
null
bokeh/models/actions.py
timelyportfolio/bokeh
a976a85535cf137c6238ce9e90b41ab14ae8ce22
[ "BSD-3-Clause" ]
1
2021-08-01T08:38:53.000Z
2021-08-01T08:38:53.000Z
""" Client-side interactivity. """ from __future__ import absolute_import from ..plot_object import PlotObject from ..properties import String class Action(PlotObject): """ Base class for interactive actions. """ class OpenURL(Action): """ Open a URL in a new tab or window (browser dependent). """ url ...
27.277778
72
0.692464
09dd3209c22aabe351c71bcad64bd948faeca1be
8,178
py
Python
app/filter.py
thiwup/thiwup-search
2eba31032ab44f34bef6bf975a1ab69f49c8b0b4
[ "MIT" ]
null
null
null
app/filter.py
thiwup/thiwup-search
2eba31032ab44f34bef6bf975a1ab69f49c8b0b4
[ "MIT" ]
null
null
null
app/filter.py
thiwup/thiwup-search
2eba31032ab44f34bef6bf975a1ab69f49c8b0b4
[ "MIT" ]
null
null
null
from app.request import VALID_PARAMS from app.utils.filter_utils import * from bs4.element import ResultSet from cryptography.fernet import Fernet import re import urllib.parse as urlparse from urllib.parse import parse_qs class Filter: def __init__(self, user_keys: dict, mobile=False, config=None): ...
36.026432
80
0.549034
466daf204a1ae86a7f37107342046305ea7249fc
15,360
py
Python
tensorflow/contrib/model_pruning/python/layers/layers.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/model_pruning/python/layers/layers.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/model_pruning/python/layers/layers.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.197802
80
0.689518
a1b7cfef093e1b4f95235b8635f41fa61cd79d9d
2,163
py
Python
tensorflow/python/data/experimental/kernel_tests/serialization/zip_dataset_serialization_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/data/experimental/kernel_tests/serialization/zip_dataset_serialization_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/data/experimental/kernel_tests/serialization/zip_dataset_serialization_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.661017
106
0.718447
8f0e621fd53e2034d643c65d5028f03d35a4dbd1
2,590
py
Python
source/mmmtrainerconfig.py
AI-Guru/MMM-JSB
2cf0faeedc402b4574f292712632855675ae4037
[ "Apache-2.0" ]
72
2021-05-10T11:12:24.000Z
2022-03-30T17:49:06.000Z
source/mmmtrainerconfig.py
AI-Guru/MMM-JSB
2cf0faeedc402b4574f292712632855675ae4037
[ "Apache-2.0" ]
3
2021-06-12T10:10:44.000Z
2022-01-20T16:53:37.000Z
source/mmmtrainerconfig.py
AI-Guru/MMM-JSB
2cf0faeedc402b4574f292712632855675ae4037
[ "Apache-2.0" ]
9
2021-05-10T12:21:38.000Z
2022-03-10T14:37:16.000Z
# Copyright 2021 Tristan Behrens. # # 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 writ...
31.585366
124
0.672587
f5a8b5fe0faa2b9e88d94eb5a57b23dd65002fa3
1,267
py
Python
cassava/config.py
p-s-vishnu/cassava-leaf-disease-classification
41f26cb6b87f27f49db9a4d5dadcebb153b250a5
[ "MIT" ]
7
2021-04-22T08:12:40.000Z
2022-03-14T10:27:43.000Z
cassava/config.py
p-s-vishnu/cassava-leaf-disease-classification
41f26cb6b87f27f49db9a4d5dadcebb153b250a5
[ "MIT" ]
9
2021-04-17T16:19:24.000Z
2021-06-07T11:30:18.000Z
cassava/config.py
p-s-vishnu/cassava-leaf-disease-classification
41f26cb6b87f27f49db9a4d5dadcebb153b250a5
[ "MIT" ]
3
2021-05-10T06:23:38.000Z
2022-03-14T10:27:49.000Z
"""Project configurations """ TRAIN_PATH = "" TEST_PATH = "" DEBUG = False APEX = False PRINT_FREQ = 100 NUM_WORKERS = 4 MODEL_NAME = "tf_efficientnet_b4_ns" SIZE = 512 # ['ReduceLROnPlateau', 'CosineAnnealingLR', 'CosineAnnealingWarmRestarts'] SCHEDULER = "CosineAnnealingWarmRestarts" CRITERION = "BiTemperedLoss" # ...
27.543478
97
0.73086
e1a99bbbcf9566e3579d8b42e83c8dcd7b11767a
14,543
py
Python
tensorflow/python/training/gradient_descent_test.py
yage99/tensorflow
c7fa71b32a3635eb25596ae80d007b41007769c4
[ "Apache-2.0" ]
74
2020-07-06T17:11:39.000Z
2022-01-28T06:31:28.000Z
tensorflow/python/training/gradient_descent_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/training/gradient_descent_test.py
sseung0703/tensorflow
be084bd7a4dd241eb781fc704f57bcacc5c9b6dd
[ "Apache-2.0" ]
12
2020-07-08T07:27:17.000Z
2021-12-27T08:54:27.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
51.570922
80
0.645259
b1ac46c150ed1c8e80f6b85844a8497e239684bc
1,920
py
Python
tests/engine/_tests.py
2kodevs/Search-Engine
840001f825d9632c6c7a5fd24151b79ca1a9a06b
[ "MIT" ]
null
null
null
tests/engine/_tests.py
2kodevs/Search-Engine
840001f825d9632c6c7a5fd24151b79ca1a9a06b
[ "MIT" ]
null
null
null
tests/engine/_tests.py
2kodevs/Search-Engine
840001f825d9632c6c7a5fd24151b79ca1a9a06b
[ "MIT" ]
null
null
null
import unittest from src import SearchEngine, Indexer class SearchEngineTestCase(unittest.TestCase): def setUp(self): self.engine = SearchEngine('./tests/mocks/animal_corpus', 'cranfield') def test_vectorize_query(self): q = 'zorro nutria' ans = ['nutria', 'zorro'] self.assertE...
30.47619
100
0.564583
034b06029f28af7b89e6d197d850c19dd5e368a8
627
py
Python
Labs/AI and Machine Learning/Cognitive Toolkit/resources/cntk2images.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
24
2017-06-08T01:16:28.000Z
2017-08-24T06:49:52.000Z
Labs/AI and Machine Learning/Cognitive Toolkit/resources/cntk2images.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
null
null
null
Labs/AI and Machine Learning/Cognitive Toolkit/resources/cntk2images.py
varunjha089/computerscience
bd90079e4a8701e92c9f88f598bfa86203b6cbb7
[ "MIT" ]
6
2017-06-08T05:32:27.000Z
2019-03-12T02:47:10.000Z
# from os import walk from PIL import Image import numpy as np inputFile = '' with open(inputFile) as f: images = f.readlines() images = [line.strip() for line in images] w, h = 28, 28 imgcnt = 0; for imageline in images: dataparts = imageline.split(" |features ") imagedatastr = dataparts[1].split(" ") ...
13.630435
45
0.617225
117efebece96f9d983cc75b11d16a6091fb1eefe
4,517
py
Python
tests/test_changelist.py
0xTowel/python-perforce
249b73b54ed8f49f6e0be60f53c738212ff55aaa
[ "MIT" ]
43
2015-06-03T17:46:34.000Z
2022-01-21T14:05:19.000Z
tests/test_changelist.py
0xTowel/python-perforce
249b73b54ed8f49f6e0be60f53c738212ff55aaa
[ "MIT" ]
43
2015-06-12T06:10:38.000Z
2021-02-11T22:26:00.000Z
tests/test_changelist.py
0xTowel/python-perforce
249b73b54ed8f49f6e0be60f53c738212ff55aaa
[ "MIT" ]
7
2016-02-18T08:56:13.000Z
2020-08-26T22:28:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_python-perforce ---------------------------------- Tests for `python-perforce` module. """ import os import unittest import datetime import random import string import path import pytest import six from perforce import Connection, Changelist from perforce impo...
28.23125
153
0.612796
648baab74a081e02e8ef90c3af37a56d373d1fe6
5,112
py
Python
SimulationModels/get_sim_data_v2.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
SimulationModels/get_sim_data_v2.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
SimulationModels/get_sim_data_v2.py
kasmith/cbmm-project-christmas
2543eaf9ab57f31d68fef8a9f5d629ce0116ca1a
[ "MIT" ]
null
null
null
from __future__ import division, print_function from physicsTable import * from physicsTable.constants import * from physicsTable.models import PointSimulation import os, json, glob KAP_V_NORM = 20 # simulation for conditions with motion (small noise in velocity) KAP_V_NOMOT = 1e-10 # simulation for no motion conditio...
38.727273
149
0.570227
816dbabe204373322f1441b908d4bfe18a928b07
14,035
py
Python
pytorch_retinanet/model.py
AljoSt/pytorch-retinanet
303d6d3ed10d6408696bb49b78a8ec36f680d563
[ "Apache-2.0", "MIT" ]
null
null
null
pytorch_retinanet/model.py
AljoSt/pytorch-retinanet
303d6d3ed10d6408696bb49b78a8ec36f680d563
[ "Apache-2.0", "MIT" ]
null
null
null
pytorch_retinanet/model.py
AljoSt/pytorch-retinanet
303d6d3ed10d6408696bb49b78a8ec36f680d563
[ "Apache-2.0", "MIT" ]
1
2019-08-16T08:19:20.000Z
2019-08-16T08:19:20.000Z
import torch.nn as nn import torch.nn.functional import torch import math import time import torch.utils.model_zoo as model_zoo from .utils import BasicBlock, Bottleneck, BBoxTransform, ClipBoxes, non_max_suppression from .anchors import Anchors from . import losses import numpy as np def nms(boxes, scores, thresh): ...
35.352645
118
0.634129
5d80386838435f84f87fb540bd8c71ae501413a2
1,489
py
Python
python/paddle/nn/initializer/__init__.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
2
2020-12-09T16:09:59.000Z
2020-12-09T16:10:02.000Z
python/paddle/nn/initializer/__init__.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/initializer/__init__.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
1
2021-03-23T00:59:48.000Z
2021-03-23T00:59:48.000Z
# Copyright (c) 2020 PaddlePaddle 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 app...
31.020833
74
0.779046
85779e698fe1ba801ad4d3314ec743b07728f588
305
py
Python
data/multilingual/Latn.MAD/Serif_12/pdf_to_json_test_Latn.MAD_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.MAD/Serif_12/pdf_to_json_test_Latn.MAD_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.MAD/Serif_12/pdf_to_json_test_Latn.MAD_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.MAD/Serif_12/udhr_Latn.MAD_Serif_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.5
75
0.813115
6dff8f97ea7aac998920026f750652da0ff9e39d
114
py
Python
polecat/db/helpers.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/db/helpers.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/db/helpers.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
def print_table(table): print(repr(table)) for column in table.columns: print(f' {repr(column)}')
22.8
33
0.631579
8dfd4bf8cd141977eb60dcda0e6dd49976330f9a
378
py
Python
corefacility/authorizations/mailru/test/test_account_set.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/authorizations/mailru/test/test_account_set.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/authorizations/mailru/test/test_account_set.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
from core.test.entity_set.external_accounts import TestExternalAccounts from .account_set_object import AccountSetObject class TestAccountSet(TestExternalAccounts): """ Tests the set of external accounts """ _external_account_set_object_class = AccountSetObject _no_filter_accounts = ["account0@...
22.235294
71
0.78836
a9d5320a1c866820ad8b41b436df7a376cbc1859
412
py
Python
modules/discord_bot/command_controller.py
dimterex/outlook2tracker
bda21cf02f11df206922342706973c657e2612a2
[ "Apache-2.0" ]
1
2022-01-24T09:12:55.000Z
2022-01-24T09:12:55.000Z
modules/discord_bot/command_controller.py
dimterex/outlook2tracker
bda21cf02f11df206922342706973c657e2612a2
[ "Apache-2.0" ]
null
null
null
modules/discord_bot/command_controller.py
dimterex/outlook2tracker
bda21cf02f11df206922342706973c657e2612a2
[ "Apache-2.0" ]
null
null
null
NEXT_MEETING_COMMAND = 'next_meeting' WRITE_LOG_COMMAND = 'write' class Command_Controller: def __init__(self): self.commands = {} def configure(self, command: str, action): self.commands[command] = action def receive_message(self, command: str, promise_id: int, argumets: []): if...
27.466667
75
0.682039
af3ed9bf6562b05f164fe704f0ad6f5a25776c06
287
py
Python
awswrangler/__metadata__.py
bechbd/aws-data-wrangler
8a9048c9d1354eb5a3fb42206e8d76a5ea5ca29d
[ "Apache-2.0" ]
null
null
null
awswrangler/__metadata__.py
bechbd/aws-data-wrangler
8a9048c9d1354eb5a3fb42206e8d76a5ea5ca29d
[ "Apache-2.0" ]
null
null
null
awswrangler/__metadata__.py
bechbd/aws-data-wrangler
8a9048c9d1354eb5a3fb42206e8d76a5ea5ca29d
[ "Apache-2.0" ]
null
null
null
"""Metadata Module. Source repository: https://github.com/awslabs/aws-data-wrangler Documentation: https://aws-data-wrangler.readthedocs.io/ """ __title__: str = "awswrangler" __description__: str = "Pandas on AWS." __version__: str = "2.15.1" __license__: str = "Apache License 2.0"
23.916667
63
0.735192
9a39ee711faaaf9a9ee4b487bd07243c005b1ae9
8,820
py
Python
feature_tree.py
luvalenz/time-series-variability-tree
57ba881baa5caa6ec8b3dd27526c2d9d3368248b
[ "MIT" ]
1
2018-10-19T06:28:55.000Z
2018-10-19T06:28:55.000Z
feature_tree.py
luvalenz/time-series-variability-tree
57ba881baa5caa6ec8b3dd27526c2d9d3368248b
[ "MIT" ]
null
null
null
feature_tree.py
luvalenz/time-series-variability-tree
57ba881baa5caa6ec8b3dd27526c2d9d3368248b
[ "MIT" ]
1
2018-10-19T06:28:54.000Z
2018-10-19T06:28:54.000Z
from collections import Counter import pydotplus as pydot import numpy as np from sklearn.cluster import KMeans class FeatureTree: def __init__(self, max_level, db_features_list, k): self.max_level = max_level self.db_features_dict = {} self.db_features_ids = [] self.graph = pydot...
34.86166
96
0.628345
919c1aa26cb002f3f8f22beb83d2689ab018d749
27,754
py
Python
torch/fx/passes/splitter_base.py
sigmunjr/pytorch
526e12029274cf0257954616d5cd5260b1021f52
[ "Intel" ]
1
2021-05-11T11:53:47.000Z
2021-05-11T11:53:47.000Z
torch/fx/passes/splitter_base.py
sigmunjr/pytorch
526e12029274cf0257954616d5cd5260b1021f52
[ "Intel" ]
1
2021-05-10T01:18:33.000Z
2021-05-10T01:18:33.000Z
torch/fx/passes/splitter_base.py
sigmunjr/pytorch
526e12029274cf0257954616d5cd5260b1021f52
[ "Intel" ]
null
null
null
import argparse from collections import defaultdict from dataclasses import dataclass from typing import List, Dict, Optional, Tuple import torch from torch.fx.experimental.graph_manipulation import get_size_of_node from torch.fx.node import map_arg from .operator_support import ( get_node_target, OperatorSup...
36.760265
131
0.576133
132b028e2238ca35217a2837dcb4674ef19d175c
104
py
Python
src/user/__init__.py
hirmeos/altmetrics
546726f01e81e3ca2f37d448d01a55625e9be1ea
[ "MIT" ]
2
2019-02-28T04:11:06.000Z
2020-05-04T08:44:22.000Z
src/user/__init__.py
hirmeos/altmetrics
546726f01e81e3ca2f37d448d01a55625e9be1ea
[ "MIT" ]
23
2019-02-08T12:27:40.000Z
2020-12-16T20:43:50.000Z
src/user/__init__.py
hirmeos/altmetrics
546726f01e81e3ca2f37d448d01a55625e9be1ea
[ "MIT" ]
1
2020-05-04T08:44:25.000Z
2020-05-04T08:44:25.000Z
""" User module - code relating to users and user authentication will eventually all be moved here. """
26
69
0.75
4f179e51c73325f77bae057e7e2bffdb7b066673
4,978
py
Python
scanpy/datasets/__init__.py
gioelelm/scanpy
97391a0e7908b9644b2d6640c8e26d37bdc7811e
[ "BSD-3-Clause" ]
null
null
null
scanpy/datasets/__init__.py
gioelelm/scanpy
97391a0e7908b9644b2d6640c8e26d37bdc7811e
[ "BSD-3-Clause" ]
null
null
null
scanpy/datasets/__init__.py
gioelelm/scanpy
97391a0e7908b9644b2d6640c8e26d37bdc7811e
[ "BSD-3-Clause" ]
1
2019-02-18T07:39:59.000Z
2019-02-18T07:39:59.000Z
# Author: F. Alex Wolf (http://falexwolf.de) """Init runs, manage examples. """ from .builtin import * from ..utils import check_adata def init_run(run_name, suffix='', recompute=True, reread=False, return_module=False): """Read and preprocess data based on a "run file". Filenames of the form ...
37.712121
108
0.604661
aa398c2b684056aa972b58b8dcaa3faf289b09ac
1,453
py
Python
base/logs/log.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
4
2017-09-15T03:11:57.000Z
2018-02-02T16:15:55.000Z
base/logs/log.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
4
2018-01-28T11:24:13.000Z
2018-03-15T20:45:55.000Z
base/logs/log.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
1
2020-12-02T12:01:24.000Z
2020-12-02T12:01:24.000Z
# coding: utf-8 import logging from logging.handlers import RotatingFileHandler from base.config.config import Config from base.tools.sm_tools import SmallTools class Log4Kissenium: def __init__(self): self.config = Config() def setup(self, name, path): """ Every log file will be cr...
30.914894
87
0.636614
640787313e91c518884f7b118fd3df897081d3e5
69,590
py
Python
muskit/tasks/abs_task.py
hertz-pj/Muskits
e515fc87efe894a64d96557b440a99561766824a
[ "Apache-2.0" ]
null
null
null
muskit/tasks/abs_task.py
hertz-pj/Muskits
e515fc87efe894a64d96557b440a99561766824a
[ "Apache-2.0" ]
null
null
null
muskit/tasks/abs_task.py
hertz-pj/Muskits
e515fc87efe894a64d96557b440a99561766824a
[ "Apache-2.0" ]
null
null
null
# Adopted from ESPNet: https://github.com/espnet/espnet from abc import ABC from abc import abstractmethod import argparse from dataclasses import dataclass from distutils.version import LooseVersion import functools import logging import os from pathlib import Path import sys from typing import Any from typing import...
37.779587
100
0.577224
81fd6350f24f163b50ea72a3e5838ced811ea745
7,102
py
Python
cliente/views/cliente.py
gustavopinho/pmocgestao
950f39a252c13cda29003c03c99ffcfcf3824e86
[ "MIT" ]
null
null
null
cliente/views/cliente.py
gustavopinho/pmocgestao
950f39a252c13cda29003c03c99ffcfcf3824e86
[ "MIT" ]
1
2019-12-13T12:34:05.000Z
2019-12-13T12:34:05.000Z
cliente/views/cliente.py
gustavopinho/pmocgestao
950f39a252c13cda29003c03c99ffcfcf3824e86
[ "MIT" ]
null
null
null
import calendar from datetime import date from django.contrib import messages from django.contrib.auth.mixins import ( LoginRequiredMixin, PermissionRequiredMixin ) from django.contrib.messages.views import SuccessMessageMixin from django.http import HttpResponseRedirect, JsonResponse from django.shortcuts import ...
35.51
131
0.591664
9e2fa1a400566198853b982daf259405c3c280a7
170
py
Python
Chap04/04_06.py
elishahyousaf/linkedin-exercise-files
d79692fd4594d5b6f70253f78e7c4822e7659a00
[ "MIT" ]
null
null
null
Chap04/04_06.py
elishahyousaf/linkedin-exercise-files
d79692fd4594d5b6f70253f78e7c4822e7659a00
[ "MIT" ]
null
null
null
Chap04/04_06.py
elishahyousaf/linkedin-exercise-files
d79692fd4594d5b6f70253f78e7c4822e7659a00
[ "MIT" ]
5
2021-01-15T04:13:50.000Z
2021-02-06T02:52:42.000Z
guess = input("What's my favorite food? ") if guess == "cookies": print("Yep! So amazing!") else: print("Yuck! That’s not it!") print("Thanks for playing!")
14.166667
42
0.611765
a90f74399dfcf3690df96423bfe2e32764c1c405
365
py
Python
taotao-cloud-python/taotao-cloud-oldboy/day51-django-ORM/Django_ORM/app01/models.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
47
2021-04-13T10:32:13.000Z
2022-03-31T10:30:30.000Z
taotao-cloud-python/taotao-cloud-oldboy/day51-django-ORM/Django_ORM/app01/models.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
1
2021-11-01T07:41:04.000Z
2021-11-01T07:41:10.000Z
taotao-cloud-python/taotao-cloud-oldboy/day51-django-ORM/Django_ORM/app01/models.py
shuigedeng/taotao-cloud-paren
3d281b919490f7cbee4520211e2eee5da7387564
[ "Apache-2.0" ]
21
2021-04-13T10:32:17.000Z
2022-03-26T07:43:22.000Z
from django.db import models # Create your models here. class Book(models.Model): name=models.CharField(max_length=20) price=models.IntegerField() pub_date=models.DateField() author=models.CharField(max_length=32,null=False) def __str__(self): return self.name class Author(models.Model...
19.210526
53
0.723288
0f23a71190d77d3353744ea20e188f764fd94b36
11,347
py
Python
openpyexcel/drawing/shape.py
sciris/openpyexcel
1fde667a1adc2f4988279fd73a2ac2660706b5ce
[ "MIT" ]
2
2019-07-03T06:37:42.000Z
2020-05-15T00:28:13.000Z
openpyexcel/drawing/shape.py
sciris/openpyexcel
1fde667a1adc2f4988279fd73a2ac2660706b5ce
[ "MIT" ]
null
null
null
openpyexcel/drawing/shape.py
sciris/openpyexcel
1fde667a1adc2f4988279fd73a2ac2660706b5ce
[ "MIT" ]
1
2020-01-06T10:01:42.000Z
2020-01-06T10:01:42.000Z
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyexcel from openpyexcel.styles.colors import Color, BLACK, WHITE from openpyexcel.utils.units import ( pixels_to_EMU, EMU_to_pixels, short_color, ) from openpyexcel.compat import deprecated from openpyexcel.xml.functions import Element...
27.211031
113
0.607826
8dc653562d5a93d8c150088e73b615941eec385f
314
py
Python
tests/management/commands/test_dblog.py
grantjenks/django-dblog
c064b8018b4221ee7d6260cf6430b7cfa8dccee8
[ "Apache-2.0" ]
2
2019-01-16T10:31:30.000Z
2019-06-20T03:02:28.000Z
tests/management/commands/test_dblog.py
grantjenks/django-dblog
c064b8018b4221ee7d6260cf6430b7cfa8dccee8
[ "Apache-2.0" ]
3
2019-01-29T06:37:36.000Z
2019-01-29T06:43:50.000Z
tests/management/commands/test_dblog.py
grantjenks/django-dblog
c064b8018b4221ee7d6260cf6430b7cfa8dccee8
[ "Apache-2.0" ]
null
null
null
import logging from django.core.management.base import BaseCommand dblog = logging.getLogger('dblog.' + __name__) class Command(BaseCommand): help = 'Test command for dblog' def handle(self, *args, **options): dblog.info('Testing dblog in management command.') self.stdout.write('OK')
22.428571
58
0.697452
5c7a648bfe9562639c369b0c90675ba540a3c77d
926
py
Python
django/utils/html.py
Haakenlid/tassen
911a2541c77eca522ba5a723f175786f4f9eb481
[ "Apache-2.0" ]
16
2017-03-21T03:53:37.000Z
2021-08-14T06:28:02.000Z
django/utils/html.py
universitas/universitas.no
911a2541c77eca522ba5a723f175786f4f9eb481
[ "Apache-2.0" ]
104
2017-03-25T00:12:46.000Z
2021-03-09T22:40:58.000Z
django/utils/html.py
Haakenlid/tassen
911a2541c77eca522ba5a723f175786f4f9eb481
[ "Apache-2.0" ]
6
2017-03-21T03:53:40.000Z
2020-06-07T14:15:38.000Z
import re from bs4 import BeautifulSoup as bs # from lxml import etree, html def minify(source): """Minify HTML""" stripped = re.sub(r'\s*\n\s*', '', source) stripped = re.sub(r'\s+', ' ', stripped) soup = bs(stripped, 'html5lib') return ''.join(str(c) for c in soup.body.contents).strip() # de...
22.585366
80
0.561555
244602a7d5bad420767be01ee04666ecb28d4e6d
9,250
py
Python
docs/source/conf.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
186
2015-10-28T12:32:31.000Z
2022-03-24T18:39:15.000Z
docs/source/conf.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
72
2016-01-28T09:25:50.000Z
2021-11-24T03:58:59.000Z
docs/source/conf.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
73
2015-11-08T21:46:06.000Z
2022-03-24T10:11:50.000Z
# -*- coding: utf-8 -*- # # django-crudbuilder documentation build configuration file, created by # sphinx-quickstart on Tue Nov 10 15:47:30 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
32.45614
79
0.719784
26c7cbc47b593f636a6dbe6cc287ff5a67f19853
3,129
py
Python
rf_model/chembl_rf_vs.py
xiaotaw/protein_kinase
14a6ba490288f03195f13b331768cb7adfe4cf01
[ "Apache-2.0" ]
11
2018-04-09T14:15:39.000Z
2022-01-11T17:59:13.000Z
rf_model/chembl_rf_vs.py
xiaotaw/protein_kinase
14a6ba490288f03195f13b331768cb7adfe4cf01
[ "Apache-2.0" ]
null
null
null
rf_model/chembl_rf_vs.py
xiaotaw/protein_kinase
14a6ba490288f03195f13b331768cb7adfe4cf01
[ "Apache-2.0" ]
3
2019-12-04T03:45:50.000Z
2020-04-14T12:35:26.000Z
# Author: xiaotaw@qq.com (Any bug report is welcome) # Time Created: Dec 2016 # Time Last Updated: Dec 2016 # Addr: Shenzhen, China # Description: import os import sys import time import getpass import numpy as np from scipy import sparse from collections import defaultdict from matplotlib import pyplot as plt from sk...
32.936842
103
0.644615
bfdea6c0da37bf0de2704a8c53c7c703acb0e5ff
2,526
py
Python
redis-monitor/plugins/base_monitor.py
abael/ScrapyCluster
93a0bd069fe005963b120719c0da9636f24cf289
[ "MIT" ]
null
null
null
redis-monitor/plugins/base_monitor.py
abael/ScrapyCluster
93a0bd069fe005963b120719c0da9636f24cf289
[ "MIT" ]
null
null
null
redis-monitor/plugins/base_monitor.py
abael/ScrapyCluster
93a0bd069fe005963b120719c0da9636f24cf289
[ "MIT" ]
null
null
null
import time class BaseMonitor(object): ''' Base monitor for handling incoming requests seen within redis These classes have an implied redis_conn variable for manipulating a redis connection ''' # override this with your own regex to look for in redis regex = None def setup(self, sett...
29.717647
85
0.602138
5981190f85f2ec3be6af3dc96d3a9417ce05b201
4,433
py
Python
fastreport_cloud_sdk/models/subscription_invites_vm.py
FastReports/FastReport-Cloud-Python
4442e19ef4c980222ede6d9e0597f564d6d85b26
[ "MIT" ]
null
null
null
fastreport_cloud_sdk/models/subscription_invites_vm.py
FastReports/FastReport-Cloud-Python
4442e19ef4c980222ede6d9e0597f564d6d85b26
[ "MIT" ]
null
null
null
fastreport_cloud_sdk/models/subscription_invites_vm.py
FastReports/FastReport-Cloud-Python
4442e19ef4c980222ede6d9e0597f564d6d85b26
[ "MIT" ]
null
null
null
# coding: utf-8 """ FastReport Cloud No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except I...
28.235669
124
0.587864
907feb0b47d31e8692c1006f4aec35d78f819327
16,753
py
Python
django_select2/forms.py
darbula/django-select2
e7cd2b229b85ba39ffdc19be69bad734ab0ae2c0
[ "Apache-2.0" ]
null
null
null
django_select2/forms.py
darbula/django-select2
e7cd2b229b85ba39ffdc19be69bad734ab0ae2c0
[ "Apache-2.0" ]
null
null
null
django_select2/forms.py
darbula/django-select2
e7cd2b229b85ba39ffdc19be69bad734ab0ae2c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Django-Select2 Widgets. These components are responsible for rendering the necessary HTML data markups. Since this whole package is to render choices using Select2 JavaScript library, hence these components are meant to be used with choice fields. Widgets are generally of two types: 1...
31.84981
98
0.616367
efb97c4cb63f005d3b9eb53988e2db7f5075d022
2,711
py
Python
tests/test_x3d.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
1
2022-03-09T03:39:04.000Z
2022-03-09T03:39:04.000Z
tests/test_x3d.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
tests/test_x3d.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
""" test_collada ~~~~~~~~~~~~ """ import unittest # import requests # from mock import patch from domonic import domonic from domonic.dom import * from domonic.html import * from domonic.x3d import * from domonic.decorators import silence class TestCase(unittest.TestCase): # @silence def test_domo...
31.894118
109
0.589082
24caa9f77cb3f9c435f6264752ecaf8e6ccb0a05
933
py
Python
smartd/view/history.py
twd2/SmartD
f4687056a69e9bcadf6e98990ad670685e0e4a53
[ "MIT" ]
4
2016-04-15T16:55:20.000Z
2019-12-31T06:48:03.000Z
smartd/view/history.py
twd2/SmartD
f4687056a69e9bcadf6e98990ad670685e0e4a53
[ "MIT" ]
null
null
null
smartd/view/history.py
twd2/SmartD
f4687056a69e9bcadf6e98990ad670685e0e4a53
[ "MIT" ]
null
null
null
import json from smartd import app, util import smartd.util.datetime from smartd.model import data from smartd.util import event from smartd.view import base from tornado import web from tornado import gen from tornado import options @app.route('History', '/history/([^/]+)/(.+)') class HistoryHandler(base.BaseHandler)...
35.884615
94
0.696677
6daed345d322109eacdda25b13a4a1fef1bc58dd
5,055
py
Python
experimental/attentive_uncertainty/contextual_bandits/offline_contextual_bandits.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
experimental/attentive_uncertainty/contextual_bandits/offline_contextual_bandits.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
experimental/attentive_uncertainty/contextual_bandits/offline_contextual_bandits.py
miksu/edward2
973acdb23701f320ebaee8a56fc44d4414acfa4e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.630435
80
0.719683