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
62ebdeb4a9a3c6611827d97f4b92bc435a425238
5,966
py
Python
oscar/lib/python2.7/site-packages/faker/providers/color/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/color/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/faker/providers/color/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from collections import OrderedDict from .. import BaseProvider localized = True class Provider(BaseProvider): all_colors = OrderedDict(( ("AliceBlue", "#F0F8FF"), ("AntiqueWhite", "#FAEBD7"), ("Aqua", "#00FFFF"), ...
33.516854
91
0.455246
62ebf163df1e503e98315895b9ed118f162ca3d6
170
py
Python
numpy_ref/np_c_.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
numpy_ref/np_c_.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
numpy_ref/np_c_.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
import numpy as np arr = np.c_[np.array([1, 2, 3]), np.array([4, 5, 6])] arr2 = np.c_[np.array([[1, 2, 3]]), 0, 0, np.array([[4, 5, 6]])] print(arr) print(arr2)
21.25
65
0.523529
62ec4a95f09b5a2e0b22c26dd4df9d520ac23f70
4,076
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/kn.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/kn.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/kn.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "kn", "date_order": "DMY", "january": [ "ಜನವರಿ", "ಜನ" ], "february": [ "ಫೆಬ್ರವರಿ", "ಫೆಬ್ರ" ], "march": [ "ಮಾರ್ಚ್" ], "april": [ "ಏಪ್ರಿಲ್", "ಏಪ್ರಿ" ], "may": [ "ಮೇ" ], ...
17.955947
36
0.215407
62ec5510551673809be03a2c70e8456b83644266
1,840
py
Python
test/test_dag_path_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_dag_path_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_dag_path_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
26.666667
84
0.565217
62eca6347da2a46db4931b12c141994b05bb599c
2,399
py
Python
python_modules/dagster-test/dagster_test/toys/sleepy.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-test/dagster_test/toys/sleepy.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-test/dagster_test/toys/sleepy.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
# pylint:disable=no-member from time import sleep from typing import Iterator, List from dagster import Field, Output, OutputDefinition, solid from dagster.core.definitions.decorators.graph import graph @solid def sleeper(context, units: List[int]) -> int: tot = 0 for sec in units: context.log.info("...
25.252632
97
0.603168
62eca98b1de468eaa758c0930f07450de190cd8b
3,970
py
Python
examples/dicom/header-manipulation/func-replacement.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
88
2017-10-16T12:47:09.000Z
2022-03-10T23:08:04.000Z
examples/dicom/header-manipulation/func-replacement.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
180
2017-06-15T01:37:00.000Z
2022-03-23T23:05:57.000Z
examples/dicom/header-manipulation/func-replacement.py
glebsts/deid
a0c630ee613d358b3c8e936dd539d51dee94a5a7
[ "MIT" ]
41
2017-09-29T00:29:50.000Z
2022-03-16T02:26:54.000Z
#!/usr/bin/env python3 from deid.dicom import get_files, replace_identifiers from deid.data import get_dataset # This is an example of replacing fields in dicom headers, # but via a function instead of a preset identifier. # This will get a set of example cookie dicoms base = get_dataset("dicom-cookies") dicom_files...
30.538462
84
0.705038
62ecaaa6a77781d29ef098b389eb540f48de7028
15,410
py
Python
thirdparty/doxy2swig/doxy2swig.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
10
2018-09-05T15:12:26.000Z
2019-05-04T05:41:39.000Z
thirdparty/doxy2swig/doxy2swig.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
1
2019-08-21T12:12:25.000Z
2019-08-27T17:11:05.000Z
thirdparty/doxy2swig/doxy2swig.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
1
2019-01-12T13:54:14.000Z
2019-01-12T13:54:14.000Z
#!/usr/bin/env python """Doxygen XML to SWIG docstring converter. Usage: doxy2swig.py [options] input.xml output.i Converts Doxygen generated XML files into a file containing docstrings that can be used by SWIG-1.3.x. Note that you need to get SWIG version > 1.3.23 or use Robin Dunn's docstring patch to be able t...
34.01766
78
0.545685
62ecb27e0f04a39131ac1f80935d98fe8c5bfcf1
13,668
py
Python
ims/upload/browser/upload.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/browser/upload.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
ims/upload/browser/upload.py
imsweb/ims.upload
b1143ed231b1a9a22f3f53596c0c8b90bda1a0d0
[ "MIT" ]
null
null
null
import json import logging import mimetypes import re import tempfile import plone.api as api from Products.CMFPlone import utils from Products.CMFPlone.interfaces.constrains import ISelectableConstrainTypes from Products.CMFPlone.resources import add_bundle_on_request, add_resource_on_request from Products.Five impor...
39.848397
119
0.621159
62ecd834392379a73b4bafc1363d07c4fe7112bd
3,310
py
Python
dataloaders/datasets/combine_dbs.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
dataloaders/datasets/combine_dbs.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
dataloaders/datasets/combine_dbs.py
bmhopkinson/pytorch-deeplab-xception
f652206cfa07363018c1879de496da49358ba289
[ "MIT" ]
null
null
null
import torch.utils.data as data class CombineDBs(data.Dataset): NUM_CLASSES = 21 def __init__(self, dataloaders, excluded=None): self.dataloaders = dataloaders self.excluded = excluded self.im_ids = [] # Combine object lists for dl in dataloaders: for elem ...
33.1
96
0.58429
62ecde28137e108e6c666271a122a8e215151611
1,100
py
Python
test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
test.py
gzyszuuow/BusBunching
e9b01a62e422ae6525d9287bdf46c25aacdf9c6c
[ "Apache-2.0" ]
null
null
null
from statsmodels.tsa.arima_model import ARIMA import pmdarima as pm import pandas as pd import numpy as np df = pd.read_csv('https://raw.githubusercontent.com/selva86/datasets/master/wwwusage.csv', names=['value'], header=0) print(df) model = pm.auto_arima(df.value, start_p=1, start_q=1, test='adf...
35.483871
117
0.562727
62ed075381908371bddb68af6cc1483b49ad7120
1,290
py
Python
video/frame.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
video/frame.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
video/frame.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
import os import uuid import logging from threading import Lock from cfg import settings from .stream import VideoStream class FrameBuffer: _frames = {} _lock = Lock() def __init__(self, img_dir=None): self.img_dir = img_dir or '.' @property def log(self): return logging.getLog...
23.035714
59
0.572868
62ed14d7456af8c27e1e81d4fd3dac6736774888
1,607
py
Python
api_utils.py
TheScienceMuseum/BLINK
b66faa263800b42536a11dcaf130d0d01bcb30d9
[ "MIT" ]
1
2021-11-08T15:20:24.000Z
2021-11-08T15:20:24.000Z
api_utils.py
TheScienceMuseum/BLINK
b66faa263800b42536a11dcaf130d0d01bcb30d9
[ "MIT" ]
null
null
null
api_utils.py
TheScienceMuseum/BLINK
b66faa263800b42536a11dcaf130d0d01bcb30d9
[ "MIT" ]
null
null
null
import urllib, json def extract_json_values(obj: dict, key: str) -> list: """ Pull all values of specified key from nested JSON. Args: obj (dict): nested dict key (str): name of key to pull out Returns: list: values for the specified key """ arr = [] def extract(o...
29.218182
109
0.567517
62ed2eecdac3a8693fa118c6e8247ce58cf487aa
4,670
py
Python
tools/scripts/render_icons_fancy.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
1
2015-05-22T14:11:17.000Z
2015-05-22T14:11:17.000Z
tools/scripts/render_icons_fancy.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
2
2021-09-02T20:01:35.000Z
2022-01-26T19:47:35.000Z
tools/scripts/render_icons_fancy.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
null
null
null
#!python3 import os, os.path, sys, subprocess, time, math, random SHARPEN = True SVG_SIZE = 512 SVG_DIVISIONS = 16 OUTPUT_HEIGHT_SCALE = 0.5 #sys.exit(0) sep = os.path.sep env = os.environ if "INKSCAPE_PATH" in env: inkscape_path = env["INKSCAPE_PATH"] else: inkscape_path = None def np(path): return os.path...
23.826531
147
0.605996
62ed44bca34cc6c020a71290b24872baa77f8f05
1,872
py
Python
day09/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day09/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
day09/solve.py
ipanin/adventOfCode2021
cdf85fa7e7d26d9c37f9626314dd4c0294b96d9b
[ "Apache-2.0" ]
null
null
null
# Day 9: Smoke Basin import util from collections import defaultdict def solve1(matrix): basins = find_basins(matrix) sum = 0 for i,j in basins: sum += matrix[i][j] + 1 return sum def solve2(matrix): basins = find_basins(matrix) basins_sizes = [] for i,j in basins: basi...
23.696203
85
0.536859
62ed6ef782c1c922ea2cd38d7aa7c89b35ec830e
2,647
py
Python
keras_predictor/keras_predictor.py
jlgoh/labeldat
057248a22c7f022110d712dbcb61befd40e62760
[ "MIT" ]
1
2021-09-07T06:34:54.000Z
2021-09-07T06:34:54.000Z
keras_predictor/keras_predictor.py
wilsonteng97/labeldat
bdca5df0af55bdd460807808861de25d762b28da
[ "MIT" ]
5
2021-09-08T02:44:59.000Z
2022-02-27T10:55:29.000Z
keras_predictor/keras_predictor.py
wilsonteng97/labeldat
bdca5df0af55bdd460807808861de25d762b28da
[ "MIT" ]
1
2020-12-31T11:03:39.000Z
2020-12-31T11:03:39.000Z
''' For image: EfficientNetB4 with noisy-student weights For Text: TODO Find pre-built sentiment analysis model ''' import tensorflow as tf import efficientnet.keras as efn import numpy as np import re IMG_SIZE = 380 # Create model and keep it loaded model = efn.EfficientNetB4(weights='noisy-student') cache = dict() ...
27.010204
83
0.730261
62ed820b1c02c6e911ae0e944c8649506eb4a806
6,213
py
Python
conans/client/loader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/loader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/loader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
from conans.errors import ConanException, NotFoundException from conans.model.conan_file import ConanFile import inspect import uuid import imp import os from conans.util.files import load from conans.paths import CONANFILE_TXT from conans.util.config_parser import ConfigParser from conans.model.options import OptionsV...
39.322785
95
0.615645
62ed9cb26d827b9a9668f12f982ef84a64391f62
87,346
py
Python
scipy/stats/tests/test_distributions.py
bewithaman/scipy
9eea599120903c9f88fb16ba6b39af77cf7d70e5
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_distributions.py
bewithaman/scipy
9eea599120903c9f88fb16ba6b39af77cf7d70e5
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_distributions.py
bewithaman/scipy
9eea599120903c9f88fb16ba6b39af77cf7d70e5
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, asse...
37.519759
86
0.588384
62edc463f0fa9ee3b9933c399c97a1afc9cdd016
5,544
py
Python
tests/support/tokens.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
null
null
null
tests/support/tokens.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
155
2020-05-29T17:21:13.000Z
2022-03-28T19:55:52.000Z
tests/support/tokens.py
lsst-sqre/gafaelfawr
5d965e9d7901987ef041fd341637d75407b55227
[ "MIT" ]
3
2021-04-26T18:02:58.000Z
2022-02-03T01:29:13.000Z
"""Create tokens for testing.""" from __future__ import annotations from datetime import datetime, timedelta, timezone from typing import TYPE_CHECKING import jwt from gafaelfawr.constants import ALGORITHM from gafaelfawr.models.history import TokenChange, TokenChangeHistoryEntry from gafaelfawr.models.oidc import ...
29.178947
78
0.65368
62ede6f5379c22f707888207017cbcd23f2d29c8
1,953
py
Python
src/actions/actions.py
openstack/charm-trilio-dm-api
eef2e6fbef482aef412e0b458c13a0e37a239e6a
[ "Apache-2.0" ]
1
2020-07-02T13:50:42.000Z
2020-07-02T13:50:42.000Z
src/actions/actions.py
openstack/charm-trilio-dm-api
eef2e6fbef482aef412e0b458c13a0e37a239e6a
[ "Apache-2.0" ]
null
null
null
src/actions/actions.py
openstack/charm-trilio-dm-api
eef2e6fbef482aef412e0b458c13a0e37a239e6a
[ "Apache-2.0" ]
null
null
null
#!/usr/local/sbin/charm-env python3 # Copyright 2018,2020 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
27.507042
76
0.713774
62ee00c731e692a47ae1013b14859a469051cf04
5,252
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_i18n.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_i18n.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_i18n.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
############################################################################### # Name: ed_i18n.py # # Purpose: I18n utilities and services # # Author: Cody Precord <cprecord@editra.org> # ...
38.335766
79
0.563785
62ee471c79c806bf96f5b42efbb5aa890be0d114
1,709
py
Python
masker_allen_pkg/training/metrics/acc_vs_del.py
TalSchuster/TokenMasker
bbe6909b140bf58296079c323f6dd5314d61eabc
[ "MIT" ]
10
2019-12-14T00:07:34.000Z
2022-01-15T15:21:38.000Z
masker_allen_pkg/training/metrics/acc_vs_del.py
TalSchuster/TokenMasker
bbe6909b140bf58296079c323f6dd5314d61eabc
[ "MIT" ]
null
null
null
masker_allen_pkg/training/metrics/acc_vs_del.py
TalSchuster/TokenMasker
bbe6909b140bf58296079c323f6dd5314d61eabc
[ "MIT" ]
4
2020-02-18T14:59:39.000Z
2021-08-08T12:12:02.000Z
from overrides import overrides from allennlp.training.metrics.metric import Metric @Metric.register("acc_vs_del") class AccuracyVSDeletion(Metric): """ This :class:`Metric` breaks with the typical ``Metric`` API and just stores values that were computed in some fashion outside of a ``Metric``. If you h...
31.072727
99
0.600351
62ee767c232f5fd6e239ee7005d334a1def61cac
1,040
py
Python
curve_tracer/shortcut_bar.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
4
2016-06-19T12:41:56.000Z
2021-08-04T02:46:55.000Z
curve_tracer/shortcut_bar.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
5
2016-06-14T17:00:54.000Z
2019-05-02T21:35:24.000Z
curve_tracer/shortcut_bar.py
slightlynybbled/curve_tracer_gui
1fe9940f6e21f8fdb748f058bee1ae89cc559a28
[ "MIT" ]
1
2021-08-29T14:02:28.000Z
2021-08-29T14:02:28.000Z
import tkinter as tk from PIL import Image, ImageTk class ShortcutBar: HEIGHT = 30 WIDTH = 30 def __init__(self, parent): self.parent = parent self.btn_images = [] self.buttons = [] def add_btn(self, text=None, image_path=None, command=None, tag=None): if image_path:...
29.714286
119
0.632692
62ee8d9b45bfc1241aea92d335539af112fe8701
30,729
py
Python
python_modules/dagster/dagster_tests/general_tests/compat_tests/test_back_compat.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/general_tests/compat_tests/test_back_compat.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/general_tests/compat_tests/test_back_compat.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
# pylint: disable=protected-access import os import re import sqlite3 import time from collections import namedtuple from enum import Enum from gzip import GzipFile from typing import NamedTuple, Optional, Union import pytest from dagster import ( AssetKey, AssetMaterialization, Output, check, exe...
39.145223
680
0.693547
62eec07033e7c2cb3d556ccc9da6de46d2dc824e
20,937
py
Python
build/lib/dashapp/dashapp.py
bgithub1/dashapp
0ee5de20b44bb91b52b7d76c4df4db5846b9128e
[ "MIT" ]
null
null
null
build/lib/dashapp/dashapp.py
bgithub1/dashapp
0ee5de20b44bb91b52b7d76c4df4db5846b9128e
[ "MIT" ]
null
null
null
build/lib/dashapp/dashapp.py
bgithub1/dashapp
0ee5de20b44bb91b52b7d76c4df4db5846b9128e
[ "MIT" ]
null
null
null
import sys,os if not os.path.abspath('./') in sys.path: sys.path.append(os.path.abspath('./')) if not os.path.abspath('../') in sys.path: sys.path.append(os.path.abspath('../')) import dash import dash_html_components as html import dash_core_components as dcc import plotly.graph_objs as go from plotly.gra...
35.070352
143
0.613173
62eed36d17e8363b23dc102fa5482e189f6e1f5e
28,750
py
Python
tbonlineproject/post/models.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
null
null
null
tbonlineproject/post/models.py
nathangeffen/tbonline3
1b8a3af8d2dc1ee8083ca6638d025e94bd98f253
[ "MIT" ]
3
2021-06-08T23:57:13.000Z
2022-01-13T03:42:01.000Z
tbonlineproject/post/models.py
nathangeffen/tbonline-2
0d5869197e66a0057fa07cb99f21dde7f5b47c30
[ "MIT" ]
null
null
null
''' Model definitions for content posts. The main content type is a BasicPost. Posts with images, slideshows and embedded objects inherit from BasicPost and are implemented in PostWithImage, PostWithSlideShow and PostWithEmbeddedObject respectively. The 3rd party library model_utils handles getting inherited models f...
39.819945
100
0.593843
62eed64d76953e2a20eadae3d01f322d5f1c085d
919
py
Python
medical/utils.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
medical/utils.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
medical/utils.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
import os import numpy as np from itertools import groupby from skimage import morphology,measure from PIL import Image from scipy import misc # 因为一张图片里只有一种类别的目标,所以label图标记只有黑白两色 rgbmask = np.array([[0,0,0],[255,255,255]],dtype=np.uint8) # 从label图得到 boundingbox 和图上连通域数量 object_num def getboundingbox(image): # mas...
36.76
89
0.73667
62eedf2bc2f932d79a80914ffafcba6f1e6981cd
17,583
py
Python
robograph/attack/convex_relaxation.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
7
2020-10-23T23:20:33.000Z
2022-01-04T16:16:40.000Z
robograph/attack/convex_relaxation.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
null
null
null
robograph/attack/convex_relaxation.py
learndeep2020/RoboGraph
22e8aa045e5fc5d0928b287cc29c4cb145c5075c
[ "MIT" ]
3
2021-05-24T16:45:15.000Z
2021-12-15T05:40:15.000Z
import numpy as np import time from robograph.attack.dp import exact_solver_wrapper import robograph.attack.utils as utils import scipy.optimize as optim from robograph.attack.SPG import * from docplex.mp.model import Model # import matlab.engine class ConvexRelaxation(object): """ Convex relaxation of F_c(A)...
42.165468
125
0.490189
62ef00f99eca5af9e99e9b0d473add2154b61ed3
94
py
Python
__init__.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
8
2016-12-04T15:42:43.000Z
2021-06-17T19:20:53.000Z
__init__.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
null
null
null
__init__.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
6
2018-09-12T12:06:27.000Z
2021-10-12T20:59:39.000Z
# -*- coding: utf-8 -*- """ Created on Mon Nov 21 10:18:29 2016 @author: charles sutton """
11.75
35
0.595745
62ef6fcb489da3ddc572049726e5b63e6b873993
545
py
Python
backend/scraper/tests/spiders/test_full_helping.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
40
2020-09-15T16:39:35.000Z
2022-03-20T12:49:45.000Z
backend/scraper/tests/spiders/test_full_helping.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
34
2020-03-28T08:36:59.000Z
2022-03-30T06:07:17.000Z
backend/scraper/tests/spiders/test_full_helping.py
Anyesh/mychef
7d83f947e939847d7f41df9e8fd174cf3f914c46
[ "MIT" ]
5
2021-09-29T22:15:04.000Z
2022-03-31T20:32:57.000Z
import pytest from scraper.spiders.full_helping_spider import UrlExtractor @pytest.mark.usefixtures("full_helping_recipe_index") def test_get_latest_recipe(full_helping_recipe_index, monkeypatch): def mock_get_start_page(url): return full_helping_recipe_index monkeypatch.setattr(UrlExtractor, "get_s...
34.0625
78
0.794495
62ef7c79155ec3e4c40bd47baad02b2afa64608d
6,024
py
Python
api.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
null
null
null
api.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
null
null
null
api.py
cogk/phd-track-event-vis
f14af26f547ff9c38c4d09a9cf0cda05318fc192
[ "MIT" ]
1
2022-03-27T09:30:45.000Z
2022-03-27T09:30:45.000Z
""" Simple Flask API server returning JSON data """ from datetime import datetime, timedelta from math import floor from operator import itemgetter import os from flask import Flask, request, jsonify, send_from_directory, render_template from flask_cors import CORS from export_events_to_csv_annotable import get_mabed...
30.12
96
0.660193
62efce116f4e67066c599a3f17ed1ec5daac4c22
12,039
py
Python
Automate_Salmonella_Feed.py
lowandrew/ROGA_Redmine
f1fea6e68e48aaef459e457fe68e72b47b82251a
[ "MIT" ]
null
null
null
Automate_Salmonella_Feed.py
lowandrew/ROGA_Redmine
f1fea6e68e48aaef459e457fe68e72b47b82251a
[ "MIT" ]
2
2021-03-22T17:16:05.000Z
2021-06-01T21:47:39.000Z
Automate_Salmonella_Feed.py
lowandrew/ROGA_Redmine
f1fea6e68e48aaef459e457fe68e72b47b82251a
[ "MIT" ]
null
null
null
# This is where I'll learn to use python-docx so that ROGAs can get automated. from Automate import Automate class Salmonella_Automator(Automate): def get_sistr_data(self): import csv with open(self.nasmnt + "WGSspades/reports/sistr.tsv") as sis: sistr_data = csv.DictReader(sis, deli...
52.116883
147
0.563419
62efd285c6e2b8b19dab839fac08f03f57af2530
7,509
py
Python
tests/test_crypto/test_ledger_apis.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_crypto/test_ledger_apis.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_crypto/test_ledger_apis.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
36.275362
88
0.634439
62effb7feb08612b6fd9503855ca40962c0501b7
1,231
py
Python
cli/gardener_ci/cd.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
cli/gardener_ci/cd.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
cli/gardener_ci/cd.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
import sys import ccc.oci import gci.componentmodel as cm import product.v2 import version def retrieve( name: str, version: str, ctx_base_url: str=None, out: str=None ): ctx_repo = cm.OciRepositoryContext( baseUrl=ctx_base_url, componentNameMapping=cm.OciComponentNameMapp...
21.982143
81
0.670187
62f009edb78d5349db0ca7295ae2a8c735a82911
4,319
py
Python
pywick/optimizers/radam.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/optimizers/radam.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/optimizers/radam.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
# Source: https://github.com/LiyuanLucasLiu/RAdam/blob/master/cifar_imagenet/utils/radam.py (Apache 2.0) import math import torch from torch.optim.optimizer import Optimizer class RAdam(Optimizer): r"""Implementation of the `RAdam optimizer`_. The learning rate warmup for Adam is a must-have trick for s...
43.19
175
0.549201
62f01e3e6bc0db5c1e699e96f4f26f82dd6bf6a5
27,220
py
Python
ingestion/src/metadata/ingestion/sink/metadata_rest.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/metadata_rest.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/ingestion/sink/metadata_rest.py
codingwithabhi/OpenMetadata
196b023643cbb8cd3be11294c7b40aa9aaf8e88b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Collate # 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...
43.762058
114
0.636995
62f022715113f559b8e5e1370af816b650db39fd
192
py
Python
aggregatedValue/python/errorPrinter.py
jonyzp/parallelGames
ba9895971dcf0c6e77a0738113ffae3a01596e6e
[ "Apache-2.0" ]
null
null
null
aggregatedValue/python/errorPrinter.py
jonyzp/parallelGames
ba9895971dcf0c6e77a0738113ffae3a01596e6e
[ "Apache-2.0" ]
null
null
null
aggregatedValue/python/errorPrinter.py
jonyzp/parallelGames
ba9895971dcf0c6e77a0738113ffae3a01596e6e
[ "Apache-2.0" ]
null
null
null
#We have this code to print in a better way the error of every method from __future__ import print_function import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)
32
69
0.75
62f047f97613e6d0eee6bf0d29a1de1e6487b5d8
81
py
Python
src/index.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/index.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
src/index.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
null
null
null
from biothings.web.index_base import main if __name__ == '__main__': main()
16.2
41
0.716049
62f04be78f160d138caae31db4f3c7f3eb944467
3,782
py
Python
src/oscarcch/tests/test_persist_taxation_details.py
thelabnyc/django-oscar-cch
d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e
[ "0BSD" ]
null
null
null
src/oscarcch/tests/test_persist_taxation_details.py
thelabnyc/django-oscar-cch
d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e
[ "0BSD" ]
14
2020-02-11T21:53:07.000Z
2022-01-13T00:40:33.000Z
src/oscarcch/tests/test_persist_taxation_details.py
thelabnyc/django-oscar-cch
d98832c9cf642c6d241e3aaf4b1dc631c3d5ce0e
[ "0BSD" ]
1
2016-05-31T10:02:38.000Z
2016-05-31T10:02:38.000Z
from unittest import mock from decimal import Decimal as D from oscar.core.loading import get_model, get_class from oscar.test import factories from .base import BaseTest Basket = get_model("basket", "Basket") ShippingAddress = get_model("order", "ShippingAddress") Country = get_model("address", "Country") USStrategy ...
45.566265
82
0.682179
62f05b08a2a69471979c38ac24c65229597eee45
29
py
Python
rllite/PrioritizedDQN/__init__.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/PrioritizedDQN/__init__.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/PrioritizedDQN/__init__.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
from .PrioritizedDQN import *
29
29
0.827586
62f064399a74597a89e3e2d338d6bd3d4db7444e
5,934
py
Python
src/saas/bkuser_shell/config_center/serializers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/serializers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/serializers.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
35.746988
115
0.724638
62f07eecbda8c5d1dc4a1c4334ce542b51f07986
2,288
py
Python
setup.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
null
null
null
setup.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
null
null
null
setup.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
1
2021-05-31T07:59:07.000Z
2021-05-31T07:59:07.000Z
# -*- coding: utf-8 -*- """Setup module for flask taxonomy.""" import os from setuptools import setup readme = open('README.md').read() history = open('CHANGES.md').read() OAREPO_VERSION = os.environ.get('OAREPO_VERSION', '3.3.40') install_requires = [ 'deepmerge' ] tests_require = [ 'marshmallow-utils', ...
26.917647
74
0.633741
62f0e5cd8273d1f8a095d13a670c5e5848710842
1,425
py
Python
steamguard/util.py
James-LG/SteamGuard
85e51b5bc306abf68c434e36bba34b747fd29ce1
[ "MIT" ]
3
2021-02-09T16:03:41.000Z
2021-07-28T10:40:10.000Z
steamguard/util.py
Tygon/SteamGuard
85e51b5bc306abf68c434e36bba34b747fd29ce1
[ "MIT" ]
2
2021-02-05T22:28:58.000Z
2021-04-30T21:14:30.000Z
steamguard/util.py
Tygon/SteamGuard
85e51b5bc306abf68c434e36bba34b747fd29ce1
[ "MIT" ]
null
null
null
""" Utility classes that don't belong anywhere else. """ import time import json import requests class APIEndpoints(): #A series of URL constants steam_api_base = "https://api.steampowered.com" community_base = "https://steamcommunity.com" mobile_auth_base = steam_api_base + "/IMobileAuthService/%s/v0...
33.139535
108
0.660351
62f0f42b7ab1844f4736ee112b214b570a35ed67
8,293
py
Python
deepsim/deepsim/colliders/sphere_collider.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/colliders/sphere_collider.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/colliders/sphere_collider.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
39.679426
116
0.56397
62f151565be880b4697beabaa7148fe1e29332be
4,029
py
Python
tests/integration/cloud/providers/profitbricks.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/integration/cloud/providers/profitbricks.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/integration/cloud/providers/profitbricks.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Ethan Devenport <ethand@stackpointcloud.com>` ''' # Import Python Libs from __future__ import absolute_import import os import random import string # Import Salt Testing Libs from salttesting import skipIf from salttesting.helpers import ensure_in_syspath, expensiv...
30.522727
88
0.600894
62f158e111e8dfe5553ece36bfa707b6b9ee819e
12,813
py
Python
tensor2tensor/models/video/basic_stochastic.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
1
2019-03-10T14:54:14.000Z
2019-03-10T14:54:14.000Z
tensor2tensor/models/video/basic_stochastic.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/models/video/basic_stochastic.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-24T07:17:14.000Z
2019-01-24T07:17:14.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
41.466019
80
0.737298
62f1662a72b4895f36317d706bb1ca67f021a4cd
3,595
py
Python
models/exps/tut_data_loading.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
models/exps/tut_data_loading.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
20
2019-07-15T21:49:29.000Z
2020-01-09T14:35:03.000Z
models/exps/tut_data_loading.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('tkagg', warn=False) import warnings import matplotlib.pyplot as plt import pandas as pd import numpy as np import torchvision.transforms as trf from torch.utils.data import Dataset from pathlib import Path def...
32.387387
106
0.615299
62f166ccc64d7a3294a13f72dcf84c3bfd28cdf1
67,254
py
Python
src/microscan/config.py
jonemo/microscan-driver
65d5bb8b39be1c526c10a8ecd5a65ccf27b965c9
[ "MIT" ]
6
2017-05-22T12:20:28.000Z
2021-01-03T08:01:24.000Z
src/microscan/config.py
jonemo/microscan-driver
65d5bb8b39be1c526c10a8ecd5a65ccf27b965c9
[ "MIT" ]
null
null
null
src/microscan/config.py
jonemo/microscan-driver
65d5bb8b39be1c526c10a8ecd5a65ccf27b965c9
[ "MIT" ]
3
2018-06-19T11:38:31.000Z
2021-01-03T09:33:30.000Z
from enum import Enum import logging import re logger = logging.getLogger(__name__) """ Since the ASCII characters below 32 have special meaning, they need to be escaped when transmitted as part of a setting. The following string can be used in regex patterns in place of `.` to match any ASCII character as well as ...
30.949839
79
0.623725
62f1734d947ae915fdcfd1efa5f1c313e04f6032
4,615
py
Python
attitude/display/plot/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
8
2015-03-24T09:08:32.000Z
2021-05-17T03:32:01.000Z
attitude/display/plot/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
3
2018-03-16T07:38:26.000Z
2022-02-15T06:07:54.000Z
attitude/display/plot/__init__.py
davenquinn/Attitude
f7cd15212ca7a2f9a0e367cf9769e382eeaea91e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division import matplotlib from mplstereonet.stereonet_math import line, pole import numpy as N from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.patches import Polygon from matplotlib.gridspec ...
27.969697
75
0.604117
62f189ddbb9a0f7a55416035d3c598f22e45b950
506
py
Python
glia/app.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
1
2020-08-20T08:22:33.000Z
2020-08-20T08:22:33.000Z
glia/app.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
3
2021-04-20T18:20:45.000Z
2021-06-01T23:56:13.000Z
glia/app.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
null
null
null
import sys from pathlib import Path from PyQt5.QtWidgets import QApplication from glia.definitions import ROOT_DIR from glia.utils import get_theme_contents from glia.windows.main import MainWindow def start(**kwargs): app = QApplication(sys.argv) # Load Theme app.setStyleSheet(get_theme_contents("drac...
18.740741
67
0.717391
62f190b7dbebb705f97ff9b48f057cb84761e028
1,428
py
Python
src/node-agent/bring_up_containers.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/node-agent/bring_up_containers.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/node-agent/bring_up_containers.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from log_utils import logger from cli_utils import CLIUtils from constants import * cont_spec = { "node": "12375", "container": { "image": "nginx", "name": "nginx_12375", "port": "12374" } } num_nodes = 5 num_replicas = 3 port = START_PORT # for i in range(int(num...
34
173
0.651961
62f194713871b01777c1fc5cbbe56c12ce6a8255
3,042
py
Python
asyncpraw/models/listing/generator.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/models/listing/generator.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/models/listing/generator.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Provide the ListingGenerator class.""" from copy import deepcopy from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, Optional, Union from ..base import AsyncPRAWBase from .listing import FlairListing if TYPE_CHECKING: # pragma: no cover import asyncpraw class ListingGenerator(AsyncPRAWBase, AsyncIte...
34.965517
88
0.642012
62f1ad599033c5f49d6e7bedac43ab44465a1fcb
1,708
py
Python
prototype/clients/urwid/src/network.py
ajroach42/bbj
e0f83592dc5f22a07f79f97ccc63ac66e917e2c7
[ "MIT" ]
36
2018-11-10T21:42:36.000Z
2022-03-17T18:34:11.000Z
prototype/clients/urwid/src/network.py
tildetown/bbj
e0f83592dc5f22a07f79f97ccc63ac66e917e2c7
[ "MIT" ]
11
2017-04-13T12:27:02.000Z
2018-10-29T15:14:18.000Z
prototype/clients/urwid/src/network.py
desvox/bbj
9488ade7fb64a58076b69cdae1b9ade0e9bb6241
[ "MIT" ]
6
2017-03-01T22:51:06.000Z
2018-10-14T17:57:34.000Z
from hashlib import sha256 import socket import json class BBJ: def __init__(self, host, port): self.host = host self.port = port self.username = None self.auth_hash = None def __call__(self, method, **params): return self.request(method, **params) def setuser(...
26.276923
77
0.578454
62f1bffb343404110e0b6be76ccac1ad2d18db5f
615
py
Python
python/cudf/cudf/_lib/__init__.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/_lib/__init__.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/_lib/__init__.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
1
2020-09-24T04:31:05.000Z
2020-09-24T04:31:05.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. import numpy as np from . import ( avro, binaryop, concat, copying, csv, datetime, filling, gpuarrow, hash, interop, join, merge, null_mask, nvtext, nvtx, orc, partitioning, quantiles, reduce, repl...
15.375
48
0.627642
62f1f4122b05b56a708823df4246d618bd3fa5d4
11,752
py
Python
tensorflow/contrib/boosted_trees/estimator_batch/custom_export_strategy.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/boosted_trees/estimator_batch/custom_export_strategy.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/boosted_trees/estimator_batch/custom_export_strategy.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...
48.561983
85
0.695286
62f202034efd819f6c070d1f524913171cc8e0d8
239
py
Python
ecommerce_api/urls.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
ecommerce_api/urls.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
ecommerce_api/urls.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
from django.urls import path, include from ecommerce_api import views from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register('', views.UserViewSet) urlpatterns = [ path('', include(router.urls)) ]
19.916667
48
0.769874
62f266531d3ccd0d0500f150dee9f225f867c164
1,396
py
Python
bokeh/__init__.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
1
2020-02-06T05:27:53.000Z
2020-02-06T05:27:53.000Z
bokeh/__init__.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
bokeh/__init__.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
""" Bokeh is a Python interactive visualization library that targets modern web browsers for presentation. Its goal is to provide elegant, concise construction of novel graphics in the style of d3.js, but also deliver this capability with high-performance interactivity over very large or streaming datasets. Bokeh can ...
31.022222
77
0.782951
62f26782754a11a2ab6e26a99e782ad6f10c7ecf
4,868
py
Python
python/dask_cudf/dask_cudf/io/orc.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/dask_cudf/dask_cudf/io/orc.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/dask_cudf/dask_cudf/io/orc.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
1
2020-09-24T04:31:05.000Z
2020-09-24T04:31:05.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. from io import BufferedWriter, IOBase from pyarrow import orc as orc from dask import dataframe as dd from dask.base import tokenize from dask.bytes.core import get_fs_token_paths, stringify_path from dask.dataframe.io.utils import _get_pyarrow_dtypes import cudf def _rea...
29.865031
79
0.619145
62f26eaa73c6663c60ec818c4396b8bec7270307
455
py
Python
src/ex2/conv_1d_kernels/c_conv_kernel_combo.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
7
2021-01-20T09:11:53.000Z
2022-03-15T12:19:06.000Z
src/ex2/conv_1d_kernels/c_conv_kernel_combo.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
null
null
null
src/ex2/conv_1d_kernels/c_conv_kernel_combo.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
10
2020-11-01T09:47:02.000Z
2021-11-02T12:59:50.000Z
from copy import deepcopy class CConvKernelCombo(object): def __init__(self, filters): self._filters = [] self.filters = filters @property def filters(self): return self._filters @filters.setter def filters(self, value): self._filters = value def kernel(self,...
20.681818
43
0.593407
62f278615844599d46eb2ac0153288da366a9c90
7,067
py
Python
nova/tests/functional/api_sample_tests/test_pci.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/functional/api_sample_tests/test_pci.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/api_sample_tests/test_pci.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2013 Intel. # # 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 i...
34.812808
79
0.613556
62f27f2b6bb2ffb9fe11afd9e23c63df66c2f092
446
py
Python
test.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
null
null
null
test.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
21
2019-02-18T11:18:43.000Z
2021-04-21T14:17:39.000Z
test.py
lexibank/marrisonnaga
84d5bba62b0013618e95af1a6f9f2475ed02194c
[ "CC-BY-4.0" ]
1
2019-07-26T08:18:57.000Z
2019-07-26T08:18:57.000Z
def test_valid(cldf_dataset, cldf_logger): assert cldf_dataset.validate(log=cldf_logger) def test_forms(cldf_dataset): assert len(list(cldf_dataset["FormTable"])) == 27594 assert any(f["Form"] == "bu◦thu" for f in cldf_dataset["FormTable"]) def test_parameters(cldf_dataset): assert len(list(cldf_dat...
27.875
72
0.733184
62f29e5c02fd722ed7225b3a905088fe886b4d84
13,384
py
Python
src_hindi/speaker.py
AI-Swasthyam/fixMyPose
37c668adcd54bca3f259f1bfee07588f77861bc1
[ "MIT" ]
7
2021-12-14T07:12:00.000Z
2022-02-25T00:23:44.000Z
src_hindi/speaker.py
AI-Swasthyam/fixMyPose
37c668adcd54bca3f259f1bfee07588f77861bc1
[ "MIT" ]
2
2021-11-22T15:27:38.000Z
2021-12-01T13:29:29.000Z
src_hindi/speaker.py
hyounghk/FixMyPose
1b31c7f9e25ade6ee929cbbdc56d50162a8c2218
[ "MIT" ]
null
null
null
import torch import json import os from torch.distributions import Categorical import torch.nn as nn import torch.nn.functional as F from model import Encoder from decoders import Decoder from tensorboardX import SummaryWriter from param import args import numpy as np from evaluate import LangEvaluator import utils fro...
40.071856
131
0.556859
62f29ff2f8b6ac4cf31c4cf35f1d7358baa6e045
3,976
py
Python
action_plugins/dcos_package.py
dirkjonker/ansible-dcos
3b0d3cf625f70df96e8f7af59622c5416282597c
[ "Apache-2.0" ]
3
2018-02-19T09:07:52.000Z
2018-02-21T14:38:10.000Z
action_plugins/dcos_package.py
dirkjonker/ansible-dcos
3b0d3cf625f70df96e8f7af59622c5416282597c
[ "Apache-2.0" ]
1
2018-06-14T13:15:37.000Z
2022-03-08T22:16:10.000Z
action_plugins/dcos_package.py
dirkjonker/ansible-dcos
3b0d3cf625f70df96e8f7af59622c5416282597c
[ "Apache-2.0" ]
null
null
null
""" Action plugin to install a Universe package on a DC/OS cluster. """ from __future__ import (absolute_import, division, print_function) __metaclass__ = type import time from ansible.errors import AnsibleActionFail from ansible.plugins.action import ActionBase try: import dcos.package except ImportError: ...
32.064516
77
0.612928
62f2a091628127978c4c0e3adee706c243377e6f
124
py
Python
abc/036/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/036/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/036/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) S = [input() for _ in range(N)] S_90 = (list(zip(*S))) for i in range(N): print("".join(S_90[i][::-1]))
24.8
33
0.532258
62f2dc20848c64b411880424cc30aadb14dd57b8
930
py
Python
tests/test_stochasticality.py
uit-cosmo/2d-propagating-blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
1
2021-10-02T17:58:16.000Z
2021-10-02T17:58:16.000Z
tests/test_stochasticality.py
uit-cosmo/2d_propagating_blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
20
2021-10-04T10:44:34.000Z
2022-01-28T15:20:39.000Z
tests/test_stochasticality.py
uit-cosmo/2d-propagating-blobs
2c19458a5ba6d0d138461fadf3e935273bee4b5c
[ "MIT" ]
1
2021-12-06T13:31:58.000Z
2021-12-06T13:31:58.000Z
import pytest from blobmodel import DefaultBlobFactory def test_mean_of_distribution(): bf = DefaultBlobFactory() distributions_mean_1 = ["exp", "gamma", "uniform", "ray", "deg"] distributions_mean_0 = ["normal", "zeros"] for dist in distributions_mean_1: tmp = bf._draw_random_variables( ...
26.571429
68
0.64086
62f31a76d1d12c722bed54d477ae2671ee89c287
7,027
py
Python
whoville/cloudbreak/models/host_group_adjustment.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/host_group_adjustment.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/host_group_adjustment.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
33.146226
984
0.638395
62f31b609370a153a68a12d00d6e66391859a5a5
8,298
py
Python
labml_nn/diffusion/ddpm/vqvae.py
gqkc/annotated_deep_learning_paper_implementations
677a6e9dfa626ba825b5a123adb6c60d947b6a92
[ "MIT" ]
null
null
null
labml_nn/diffusion/ddpm/vqvae.py
gqkc/annotated_deep_learning_paper_implementations
677a6e9dfa626ba825b5a123adb6c60d947b6a92
[ "MIT" ]
null
null
null
labml_nn/diffusion/ddpm/vqvae.py
gqkc/annotated_deep_learning_paper_implementations
677a6e9dfa626ba825b5a123adb6c60d947b6a92
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import Categorical, RelaxedOneHotCategorical import math class VQEmbeddingEMA(nn.Module): def __init__(self, latent_dim, num_embeddings, embedding_dim, commitment_cost=0.25, decay=0.999, epsilon=1e-5): super(VQEmbe...
37.547511
115
0.591106
62f32ff6cd924544a577bdcc41d99cb795dce24a
909
py
Python
manage.py
ses4j/ebird-statistical-report
190ae653bdcb9425655ede5f2d327ddb118a8422
[ "BSD-3-Clause" ]
10
2021-01-26T05:26:25.000Z
2022-03-31T00:58:40.000Z
manage.py
ses4j/ebird-statistical-report
190ae653bdcb9425655ede5f2d327ddb118a8422
[ "BSD-3-Clause" ]
4
2021-04-08T20:58:40.000Z
2022-01-17T02:10:40.000Z
manage.py
ses4j/ebird-statistical-report
190ae653bdcb9425655ede5f2d327ddb118a8422
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ebirddb.settings') os.environ.setdefault('OSGEO4W_ROOT', r'C:\OSGeo4W') os.environ.setdefault('GDAL_DATA', r'C:\OSGeo4W\share\gdal') os...
31.344828
88
0.671067
62f33556c178e9217672e38fff28451b452c5185
8,551
py
Python
homeassistant/components/sensor/sonarr.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/sensor/sonarr.py
Paxy/home-assistant
326cc83a17d344ea60ccaa1ef8295efaebf82f21
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/sensor/sonarr.py
Paxy/home-assistant
326cc83a17d344ea60ccaa1ef8295efaebf82f21
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Sonarr. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.sonarr/ """ import logging import time from datetime import datetime import requests import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeas...
35.778243
78
0.543796
62f380c424644f093d4ac0a4feca3fe62b12dd27
5,059
py
Python
tests/unit/plugins/openstack/scenarios/magnum/test_clusters.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
tests/unit/plugins/openstack/scenarios/magnum/test_clusters.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/plugins/openstack/scenarios/magnum/test_clusters.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2020-06-05T10:06:37.000Z
2020-06-05T10:06:37.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
40.472
79
0.632536
62f38b9893b28638a03eb3ad2796f7361b105e81
204
py
Python
cerebunit/validation_tests/cells/Purkinje/__init__.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
null
null
null
cerebunit/validation_tests/cells/Purkinje/__init__.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
null
null
null
cerebunit/validation_tests/cells/Purkinje/__init__.py
myHBPwork/cerebunit
8d986953652231c178e48a6272b6ba583ae1df96
[ "BSD-3-Clause" ]
1
2021-05-21T03:06:37.000Z
2021-05-21T03:06:37.000Z
# ~/cerebunit/cerebunit/validation_tests/cells/PurkinjeCell/__init__.py from .test_for_soma_restVm import SomaRestingVmTest from .test_for_soma_spikeheight_antidromic import SomaSpikeHeightAntidromicTest
51
79
0.897059
62f38bba1b1379311304adf6fa077527a961a08c
2,503
py
Python
utils/network_layers.py
CuiLily/pfnet
c1e5958b966120dfe0cf4b1c68e8c9087c061a53
[ "MIT" ]
70
2018-10-15T14:05:00.000Z
2022-03-30T12:44:08.000Z
utils/network_layers.py
CuiLily/pfnet
c1e5958b966120dfe0cf4b1c68e8c9087c061a53
[ "MIT" ]
1
2019-10-21T08:40:30.000Z
2020-06-08T13:10:08.000Z
utils/network_layers.py
CuiLily/pfnet
c1e5958b966120dfe0cf4b1c68e8c9087c061a53
[ "MIT" ]
30
2018-11-19T05:51:28.000Z
2022-02-28T19:02:51.000Z
import tensorflow as tf import numpy as np _L2_SCALE = 1.0 # scale when adding to loss instead of a global scaler # Helper functions for constructing layers def dense_layer(units, activation=None, use_bias=False, name=None): fn = lambda x: tf.layers.dense( x, units, activation=convert_activation_string...
41.716667
113
0.678785
62f395687c454fec142a9a75e6ca54aa44d5492d
6,465
py
Python
controllers/probanno_management.py
kingb12/flask_probanno
c0c57d3bac987eebc037ac21903c85ac628705a1
[ "MIT" ]
null
null
null
controllers/probanno_management.py
kingb12/flask_probanno
c0c57d3bac987eebc037ac21903c85ac628705a1
[ "MIT" ]
null
null
null
controllers/probanno_management.py
kingb12/flask_probanno
c0c57d3bac987eebc037ac21903c85ac628705a1
[ "MIT" ]
null
null
null
import uuid from flask import request, abort, send_from_directory, render_template, jsonify, Response from redis import Redis from rq import Queue import traceback import probanno import session_management import data.database as db import utils import json import exceptions from controllers.error_management import m...
42.254902
137
0.698685
62f3ae99248f703d2523b0654cc59e033ca0c841
1,328
py
Python
setup.py
chriswhite199/pyebpf
fe51728894568ae49451da17eb56f49ea4d5723f
[ "MIT" ]
null
null
null
setup.py
chriswhite199/pyebpf
fe51728894568ae49451da17eb56f49ea4d5723f
[ "MIT" ]
null
null
null
setup.py
chriswhite199/pyebpf
fe51728894568ae49451da17eb56f49ea4d5723f
[ "MIT" ]
1
2020-11-19T06:45:52.000Z
2020-11-19T06:45:52.000Z
from io import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='pyebpf', version='1.0.4', description='A bcc-based Python eBPF (Ext...
34.051282
84
0.637801
62f40637fd3ede89a52229b28168d019c96f2ca4
555
py
Python
.guides/secure/unit_tests/recursion/lab_challenge_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/unit_tests/recursion/lab_challenge_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/unit_tests/recursion/lab_challenge_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
import os, shutil, sys # path to student file student_file = "/home/codio/workspace/code/recursion/lab_challenge.py" # new location for testing new_location = "/home/codio/workspace/.guides/secure/unit_tests/recursion" # copy student file to the new location shutil.copy(student_file, new_location) # run the code ...
29.210526
88
0.756757
62f4200b578e40e2ae962c963d01537edb56548c
11,228
py
Python
pylib/mps/cluster/packages.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/mps/cluster/packages.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/mps/cluster/packages.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
#!/usr/bin/python """Packages and deploys""" __author__ = 'chernyak@room77.com (Michael Chernyak)' __copyright__ = 'Copyright 2013 Room77, Inc.' import copy import glob import os import re import shutil import subprocess from string import Template import sys import time import yaml class Error(Exception): """The...
34.12766
121
0.642768
62f421cc5fe0c33d288aa786098a11e331a5c387
8,969
py
Python
src/h3_pyspark/__init__.py
kevinschaich/h3-pyspark
dffe8e1dea5d99b0b121cc9282f650a2a262ae72
[ "Apache-2.0" ]
8
2021-11-25T05:06:16.000Z
2022-03-25T18:39:53.000Z
src/h3_pyspark/__init__.py
kevinschaich/h3-pyspark
dffe8e1dea5d99b0b121cc9282f650a2a262ae72
[ "Apache-2.0" ]
4
2022-02-15T19:28:19.000Z
2022-03-04T16:32:51.000Z
src/h3_pyspark/__init__.py
kevinschaich/h3-pyspark
dffe8e1dea5d99b0b121cc9282f650a2a262ae72
[ "Apache-2.0" ]
2
2022-02-14T22:08:05.000Z
2022-02-17T19:50:40.000Z
import h3 from pyspark.sql import functions as F, types as T import json from inspect import getmembers, isfunction from .utils import sanitize_types, handle_nulls import sys from shapely import geometry ############################################################################### # Indexing #######################...
27.261398
95
0.67042
62f42303dae6466d9ea524323803bffe2c26b1c4
1,396
py
Python
tests/records/marshmallow/__init__.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
null
null
null
tests/records/marshmallow/__init__.py
oarepo/invenio-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
7
2019-05-08T08:35:01.000Z
2021-06-25T15:21:34.000Z
tests/records/marshmallow/__init__.py
oarepo/invenio-explicit-acls
a649b2e71e729e3bcfa44110afeb73358aa6034a
[ "MIT" ]
2
2019-03-31T19:07:30.000Z
2019-05-06T08:11:45.000Z
# # Copyright (c) 2019 UCT Prague. # # __init__.py is part of Invenio Explicit ACLs # (see https://github.com/oarepo/invenio-explicit-acls). # # 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 Softwa...
42.30303
80
0.772923
62f45cddcd75168cc21dc58cd7e286d2f667a699
10,738
py
Python
nova/api/openstack/compute/simple_tenant_usage.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/simple_tenant_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/simple_tenant_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2011 OpenStack Foundation # 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 requ...
37.414634
79
0.574595
62f46744b0701b36247a09499ee9695d85419872
2,205
py
Python
two1/commands/util/exceptions.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2016-09-10T18:14:33.000Z
2016-09-10T18:14:33.000Z
two1/commands/util/exceptions.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
two1/commands/util/exceptions.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2020-11-04T05:01:17.000Z
2020-11-04T05:01:17.000Z
""" All command line related exceptions """ # standart python imports import logging # 3rd party imports import click # Creates a ClickLogger logger = logging.getLogger(__name__) class Two1Error(click.ClickException): """ A generic Two1Error """ def __init__(self, msg="", json=None): self._msg = m...
27.911392
81
0.666213
62f46840e653415fdd22d5969f93e3a0ad98013d
502
py
Python
tests/client/mappings/test_retrieving.py
symonk/pytest-wiremock
372956418174adafadcb33ad38db121a049f7f2b
[ "MIT" ]
null
null
null
tests/client/mappings/test_retrieving.py
symonk/pytest-wiremock
372956418174adafadcb33ad38db121a049f7f2b
[ "MIT" ]
7
2022-03-14T08:41:55.000Z
2022-03-28T18:01:22.000Z
tests/client/mappings/test_retrieving.py
symonk/pytest-wiremock
372956418174adafadcb33ad38db121a049f7f2b
[ "MIT" ]
null
null
null
import pytest from pytest_wiremock import MatchingJsonPath @pytest.mark.skip(reason="Work in progress") def test_find_by_string_equals_meta_data(connected_client, mapping_factory, request_factory, httpx_session) -> None: mapping = mapping_factory(request_factory("GET", "/metadata"), metadata={"foo": 1337}) c...
41.833333
116
0.784861
62f468ffaa0d577ea33e97a30f50bc285162f19c
204
py
Python
png2jpg.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
png2jpg.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
png2jpg.py
HCW0727/headswap-machine
16423279a18e30db9d240fd03a9410b7fb213730
[ "MIT" ]
null
null
null
import cv2 from PIL import Image from pathlib import Path route = f"{Path(__file__).parent}" im = Image.open(route + "/tests/model_img.png").convert('RGB') im.save(route+"/tests/model_img.jpg","jpeg")
20.4
62
0.720588
62f473079a4b299f461e1c7e4ebeb49a937fd159
468
py
Python
setup.py
fm-jason/matrixpng-py
0f8d4e9da04c56231d0e39c5cc0ee9cbe85da457
[ "MIT" ]
1
2016-12-23T15:52:24.000Z
2016-12-23T15:52:24.000Z
setup.py
fm-jason/matrixpng-py
0f8d4e9da04c56231d0e39c5cc0ee9cbe85da457
[ "MIT" ]
null
null
null
setup.py
fm-jason/matrixpng-py
0f8d4e9da04c56231d0e39c5cc0ee9cbe85da457
[ "MIT" ]
null
null
null
from distutils.core import setup setup(name='matrixpng', version='alpha', description='Store 2-D matrices as human-readable PNG files and recover them', url='https://github.com/finitemobius/matrixpng-py', author='Finite Mobius, LLC', author_email='jason@finitemobius.com', license='G...
29.25
84
0.617521
62f4dfc79ba096474447f9d8c08c04b413d45958
4,659
py
Python
userbot/modules/purge.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-03-22T11:40:54.000Z
2021-03-22T11:40:54.000Z
userbot/modules/purge.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/purge.py
PratyakshM/DirtyBlack_EXTENDED
d842013d969c9ca57c640a944fc3e8b23f1eb68a
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for purging unneeded messages(usually spam or ot). """ from asyncio import sleep from telethon.err...
30.058065
78
0.613222
62f512755e0ab26263df3ee6fcac67bb51ee6c36
88,929
py
Python
runtests.py
neverpanic/trac-github
004b382bb3c76c4d52a04aaaf57d00807e14f0d2
[ "BSD-3-Clause" ]
39
2015-07-23T14:00:41.000Z
2020-10-27T07:59:18.000Z
runtests.py
neverpanic/trac-github
004b382bb3c76c4d52a04aaaf57d00807e14f0d2
[ "BSD-3-Clause" ]
48
2015-05-01T13:04:39.000Z
2022-03-07T20:21:26.000Z
runtests.py
neverpanic/trac-github
004b382bb3c76c4d52a04aaaf57d00807e14f0d2
[ "BSD-3-Clause" ]
17
2015-08-04T03:44:53.000Z
2021-08-22T05:14:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. """Functional tests for the Trac-GitHub plugin. Trac's testing framework isn't well suited for plugins, so we NIH'd a bit. """ import BaseHTTPSe...
41.652927
138
0.560312
62f54cdd3627b3fce5c3be44c000f2250120d2a0
39,451
py
Python
tests/clients/settings/test_device_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/settings/test_device_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/settings/test_device_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
from copy import deepcopy import pytest from tests.clients.conftest import param from py42.clients.settings import get_val from py42.clients.settings.device_settings import DeviceSettings from py42.exceptions import Py42Error TEST_USER_ID = 13548744 TEST_COMPUTER_ID = 4290210 TEST_COMPUTER_GUID = 42000000 TEST_COMPU...
39.254726
119
0.561203
62f58eb6200a01d48fabfe6dfd60417684694acd
4,624
py
Python
autolrn/getargs/__init__.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
autolrn/getargs/__init__.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
autolrn/getargs/__init__.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
import argparse # class FooAction(argparse.Action): # def __init__(self, option_strings, dest, nargs=None, **kwargs): # if nargs is not None: # raise ValueError("nargs not allowed") # super(FooAction, self).__init__(option_strings, dest, **kwargs) # def __call__(self, parser, namesp...
28.195122
73
0.56596
62f5a2764ee71b938b37137705f5241bc4a2bddd
871
py
Python
atom/nucleus/python/test/test_decision_tree.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_decision_tree.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_decision_tree.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
21.243902
79
0.698048
62f5bfdc35bf93b9283a890fe70c956ae01a5c24
1,378
py
Python
analysis/patterns_get_LeutgebMeasure_tresolved_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/patterns_get_LeutgebMeasure_tresolved_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/patterns_get_LeutgebMeasure_tresolved_outputs.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Sun May 20 11:35:03 2018 @author: DanielM """ import os import numpy as np import shelve import os import analysis_main import pdb def similarity_measure_leutgeb_output_tresolved_directory(data_path, len_bins): # Setup some parameters given by paradigm_frequency_inhibition....
33.609756
160
0.724964
62f62ff03bbcbf65cee87658c62c954cfc7096c1
1,925
py
Python
cadnano/gui/dialogs/ui_latticetype.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/gui/dialogs/ui_latticetype.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/gui/dialogs/ui_latticetype.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'latticetype.ui' # # Created: Sun Oct 12 21:39:15 2014 # by: PyQt5 UI code generator 5.3.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_LatticeType(object): def setup...
43.75
108
0.733506
62f63a2347dc4d4985a6ea542335a3f7918f10b1
10,732
py
Python
app/api/v1/resources/regdocuments.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
app/api/v1/resources/regdocuments.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
app/api/v1/resources/regdocuments.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" DRS Registration document resource package. Copyright (c) 2018-2020 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: ...
55.895833
844
0.655423
62f63b914a8252dfaf4caa3910575e074e69761a
2,312
py
Python
scripts/dist/windows/Input/runvistrails.py
MaritimeResearchInstituteNetherlands/VisTrails
9b42ca9b3550b599467b0c7dfa56f57bbd97a4f2
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
scripts/dist/windows/Input/runvistrails.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
scripts/dist/windows/Input/runvistrails.py
VizierDB/Vistrails
895f7204fbf56a9cdf3f46afae72969c2fc64a24
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
45.333333
79
0.691176
62f653e1bf9900dd42e929f6d5b9069caa35b4f3
5,307
py
Python
func_tests/tests/registrationtests/registration_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/tests/registrationtests/registration_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/tests/registrationtests/registration_tests.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from nose.plugins.attrib import attr from framework.base_test import HeadlessRunnerTest from pages.registrationpage.registration_page import RegistrationPage from registration_data import * from testdata.test_data import DATA_WINNER_REGISTER_PAGE, DATA_WINNER_REGISTRATION_CO...
49.598131
119
0.77916
62f65574885565b0fa3b280b3bc918211c24b4bb
3,557
py
Python
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.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 ...
48.067568
125
0.69806
62f65be2f387d687ae0eb4d61b8b0205c6dc4e51
502
py
Python
pantsuitUp/interviewMe/migrations/0024_auto_20171112_1247.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
null
null
null
pantsuitUp/interviewMe/migrations/0024_auto_20171112_1247.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
4
2020-06-05T17:52:33.000Z
2022-03-11T23:17:53.000Z
pantsuitUp/interviewMe/migrations/0024_auto_20171112_1247.py
PantsuitUp/Whack2017
9463b90b0a38a5ccc57062190cc692db7155b3a0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-12 12:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('interviewMe', '0023_interview'), ] operations = [ migrations.AlterField( ...
23.904762
104
0.62749
62f67d7340b941b9c553c3efe430f8c61f8628e1
3,498
py
Python
dev/helpers/__init__.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
12
2021-12-27T14:40:17.000Z
2022-03-22T20:14:42.000Z
dev/helpers/__init__.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
dev/helpers/__init__.py
MasonData/dev
f4e996e7bb75d4b478fdd96ab8ac98edf63d7d36
[ "MIT" ]
null
null
null
import io import os import subprocess import sys from importlib import import_module from pkgutil import iter_modules from typing import Callable, List, Optional, Tuple from dev import environment, pty from dev.console import console from dev.exceptions import NonZeroReturnCodeError, TaskNotFoundError root_path = os....
28.672131
101
0.650658
62f6816181e34ebc4be6100fd826a6b2ec9a1224
6,394
py
Python
scripts/gradient_interactive/tasks.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
34
2019-12-15T13:04:31.000Z
2022-03-30T02:21:13.000Z
scripts/gradient_interactive/tasks.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
2
2020-04-07T08:44:51.000Z
2020-10-27T15:11:40.000Z
scripts/gradient_interactive/tasks.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
10
2019-02-22T09:59:44.000Z
2021-12-29T16:11:18.000Z
import contextlib from matplotlib import animation as anim import matplotlib.pyplot as plt import matplotlib.patches as patches import numpy as np from math import * import time def draw_map(start, goal, obstacles_poses, R_obstacles, f=None, draw_gradients=True, nrows=500, ncols=500): if draw_gradients and f is n...
41.79085
159
0.640757
62f696c7cfd9453f256ddcae339d60752abda6bd
836
py
Python
coyote_framework/util/testing/framework/datastore.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/util/testing/framework/datastore.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
coyote_framework/util/testing/framework/datastore.py
vaibhavrastogi1988/python_testing_framework
583a2286479ed0ccda309c866a403dc92fa1bb3b
[ "MIT" ]
null
null
null
import errno import os import pickle __author__ = 'justin@shapeways.com' class TestData(object): def save(self, path='', filename=''): """Saves the data to a pkl file @param path: Path to save to @param filename: Filename @return: None """ try: os.mak...
23.885714
69
0.553828
62f6b8c5b22ff49cfc589819b9bc4b860f4417cd
2,503
py
Python
sql30/cmd.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
sql30/cmd.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
sql30/cmd.py
gitbhumi/sql30
29d30f058f349777cbc3ea3731f8e13aad60443a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020 Vipin Sharma. All Rights Reserved. # SPDX-License-Identifier: BSD-2 License # The full license information can be found in LICENSE.txt # in the root directory of this project. ''' A simple REST interface for reading SQLite Database. Following examples consider test_reviews.db...
27.811111
71
0.64163
62f6cffba57a9ff1976a13f70e2c7e996e8b1cd6
3,560
py
Python
src/tests/test_preprocess.py
orcasound/orcaal-research
7b9bf14c01b73696fcb604a5318148e6c4f795cd
[ "MIT" ]
7
2020-11-13T17:36:46.000Z
2022-01-27T00:55:40.000Z
src/tests/test_preprocess.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
null
null
null
src/tests/test_preprocess.py
rahulraikwar00/orcaal-research
1227e61a4535b237cae0f68d7eb25ef2617b06cd
[ "MIT" ]
6
2020-08-31T19:12:40.000Z
2021-12-10T01:34:46.000Z
import unittest import librosa import pandas as pd import os import sys import numpy.testing as npt sys.path.append(os.path.abspath(os.path.join('..', 'preprocessing_script'))) import preprocess call_annotations = pd.read_csv("../datasets/test_extract_audio.tsv", sep="\t") call_annotations["end"] = call_annotations[...
40.454545
108
0.677528
62f74042349c392e82e0970df3822bc9475ae916
521
py
Python
backend_api/urls.py
mehulrk18/Backend_REST_API
22d7e7586f92d64e92d01a6c3b1fe594d62a4eae
[ "MIT" ]
null
null
null
backend_api/urls.py
mehulrk18/Backend_REST_API
22d7e7586f92d64e92d01a6c3b1fe594d62a4eae
[ "MIT" ]
8
2019-12-04T23:30:52.000Z
2022-02-10T08:58:53.000Z
backend_api/urls.py
mehulrk18/Backend_REST_API
22d7e7586f92d64e92d01a6c3b1fe594d62a4eae
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from backend_api import views # Registering ViewSet\ router = DefaultRouter() router.register('testviewset', views.TestViewSet, base_name='testviewset') router.register('profile', views.UserProfileViewSet) router.register('feed', v...
30.647059
74
0.771593