hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a227ce94b0a45e7cdd4e6e6aacf20f14da02b40
4,465
py
Python
aerosandbox/library/aerodynamics/inviscid.py
scivm/AeroSandbox
616c579e49bc13c3023364773705eaac7df10da7
[ "MIT" ]
1
2021-04-07T08:59:31.000Z
2021-04-07T08:59:31.000Z
aerosandbox/library/aerodynamics/inviscid.py
scivm/AeroSandbox
616c579e49bc13c3023364773705eaac7df10da7
[ "MIT" ]
null
null
null
aerosandbox/library/aerodynamics/inviscid.py
scivm/AeroSandbox
616c579e49bc13c3023364773705eaac7df10da7
[ "MIT" ]
null
null
null
import aerosandbox.numpy as np def induced_drag( lift, span, dynamic_pressure, oswalds_efficiency=1, ): """ Computes the induced drag associated with a lifting planar wing. Args: lift: Lift force [Newtons] span: Wing span [meters] dynamic_pressure: ...
31.006944
123
0.620605
4a227dc8df23d5a3b73d7ccb32997dba628f0126
23,593
py
Python
src/server/example.py
programmfabrik/easydb-example-plugin
9ef96f578ccc5b6d7d37eb7cf927a6b908e184f1
[ "MIT" ]
null
null
null
src/server/example.py
programmfabrik/easydb-example-plugin
9ef96f578ccc5b6d7d37eb7cf927a6b908e184f1
[ "MIT" ]
3
2021-12-09T14:13:23.000Z
2021-12-09T14:13:29.000Z
src/server/example.py
programmfabrik/easydb-example-plugin
9ef96f578ccc5b6d7d37eb7cf927a6b908e184f1
[ "MIT" ]
2
2018-03-15T11:24:43.000Z
2021-04-06T08:41:01.000Z
# coding=utf8 import os import json import yaml from datetime import datetime, date import calendar import locale from dateutil.relativedelta import relativedelta from time import sleep from threading import Thread from context import EasydbException from context import InvalidValueError from context import get_jso...
39.126036
137
0.606917
4a227e14ac7f5516c2e8700657eb9fc42deabee0
17,827
py
Python
examples/dbm_cifar_naive.py
praisethemoon/boltzmann-machines
bc49ba2c8c6c894af55b272e1b92f9cea3576136
[ "MIT" ]
196
2019-03-16T14:50:49.000Z
2022-03-31T03:24:00.000Z
examples/dbm_cifar_naive.py
praisethemoon/boltzmann-machines
bc49ba2c8c6c894af55b272e1b92f9cea3576136
[ "MIT" ]
6
2019-04-09T07:33:01.000Z
2019-11-27T21:37:37.000Z
examples/dbm_cifar_naive.py
praisethemoon/boltzmann-machines
bc49ba2c8c6c894af55b272e1b92f9cea3576136
[ "MIT" ]
49
2019-03-16T14:51:04.000Z
2022-03-10T13:47:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Train 3072-5000-1000 Gaussian-Bernoulli-Multinomial DBM with pre-training on "smoothed" CIFAR-10 (with 1000 least significant singular values removed), as suggested in [1]. Per sample validation mean reconstruction error for DBM monotonically decreases during training ...
41.945882
109
0.550008
4a227e1a437c963a17bf2333309a28c951bd25db
6,334
py
Python
hoomd/md/pytest/test_dihedral.py
pabloferz/hoomd-blue
9a27f63b9243b8a3a04ccd3047f686cb0e12ec31
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/pytest/test_dihedral.py
pabloferz/hoomd-blue
9a27f63b9243b8a3a04ccd3047f686cb0e12ec31
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/pytest/test_dihedral.py
pabloferz/hoomd-blue
9a27f63b9243b8a3a04ccd3047f686cb0e12ec31
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2022 The Regents of the University of Michigan. # Part of HOOMD-blue, released under the BSD 3-Clause License. import hoomd import pytest import numpy as np _harmonic_args = { 'k': [3.0, 10.0, 5.0], 'd': [-1, 1, 1], 'n': [2, 1, 3], 'phi0': [np.pi / 2, np.pi / 4, np.pi / 6] } _harm...
37.258824
79
0.558099
4a227eee04223bc662783a7b415ed10c4efa817b
597
py
Python
pylearn2/devtools/tests/test_via_pyflakes.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
3
2016-01-23T10:18:39.000Z
2019-02-28T06:22:45.000Z
pylearn2/devtools/tests/test_via_pyflakes.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/devtools/tests/test_via_pyflakes.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
from pylearn2.devtools.run_pyflakes import run_pyflakes __authors__ = "Ian Goodfellow" __copyright__ = "Copyright 2010-2012, Universite de Montreal" __credits__ = ["Ian Goodfellow"] __license__ = "3-clause BSD" __maintainer__ = "LISA Lab" __email__ = "pylearn-dev@googlegroups" def test_via_pyflakes(): d = run_pyfl...
31.421053
68
0.656616
4a227f2a672ed61a67015f5f1cdadad23101d97f
11,535
py
Python
qa/pull-tester/rpc-tests.py
uscoin-project/uscoin
6a459cc884133ba881c7ededce95320466bd4c07
[ "MIT" ]
null
null
null
qa/pull-tester/rpc-tests.py
uscoin-project/uscoin
6a459cc884133ba881c7ededce95320466bd4c07
[ "MIT" ]
1
2018-07-18T18:25:36.000Z
2018-07-19T14:19:43.000Z
qa/pull-tester/rpc-tests.py
uscoin-project/uscoin
6a459cc884133ba881c7ededce95320466bd4c07
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
32.492958
133
0.617945
4a227f42e87ad0fd995b916d270fd428a4264263
5,262
py
Python
inference_engine/efficientdet_pytorch/lib/efficientdet_folder.py
rohit0906/Monk_Object_Detection
aa96f0fa4629e12e2730164a571ea41aa0ee2278
[ "Apache-2.0" ]
549
2020-01-02T05:14:57.000Z
2022-03-29T18:34:12.000Z
inference_engine/efficientdet_pytorch/lib/efficientdet_folder.py
rohit0906/Monk_Object_Detection
aa96f0fa4629e12e2730164a571ea41aa0ee2278
[ "Apache-2.0" ]
98
2020-01-21T09:41:30.000Z
2022-03-12T00:53:06.000Z
inference_engine/efficientdet_pytorch/lib/efficientdet_folder.py
rohit0906/Monk_Object_Detection
aa96f0fa4629e12e2730164a571ea41aa0ee2278
[ "Apache-2.0" ]
233
2020-01-18T03:46:27.000Z
2022-03-19T03:17:47.000Z
# Author: Zylo117 """ Simple Inference Script of EfficientDet-Pytorch """ import os import time import torch from torch.backends import cudnn from matplotlib import colors from backbone import EfficientDetBackbone import cv2 import numpy as np from efficientdet.utils import BBoxTransform, ClipBoxes from utils.utils ...
35.315436
127
0.621437
4a227fc60809b432272adaccdfcb403da15956fa
1,578
py
Python
src/microgp/fitness/lexicographic.py
leonardogian/microgp4
69f06791e4f29373c06a4aabfbd2229e766f4f2c
[ "Apache-2.0" ]
null
null
null
src/microgp/fitness/lexicographic.py
leonardogian/microgp4
69f06791e4f29373c06a4aabfbd2229e766f4f2c
[ "Apache-2.0" ]
null
null
null
src/microgp/fitness/lexicographic.py
leonardogian/microgp4
69f06791e4f29373c06a4aabfbd2229e766f4f2c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # __________ # # __ __/ ____/ __ \__ __ This file is part of MicroGP4 v1.0 "Kiwi" # # / / / / / __/ /_/ / // / (!) by Giovanni Squillero and Al...
45.085714
77
0.52725
4a227fdfab6d9653ac3733e1f927d7aa1d248b2e
903
py
Python
Birnn_Transformer/ncc/tokenizers/utils.py
code-backdoor/code-backdoor
1eeb3d79aa8a54c8f08e8d0156b569de5edd974e
[ "MIT" ]
71
2020-12-04T02:18:13.000Z
2022-03-30T15:19:50.000Z
ncc/tokenizers/utils.py
hrshy0629/naturalcc
9c3329dd8387c8242deb52bf590ebe3ac795f8de
[ "MIT" ]
4
2021-03-10T17:48:50.000Z
2022-03-13T10:42:22.000Z
ncc/tokenizers/utils.py
hrshy0629/naturalcc
9c3329dd8387c8242deb52bf590ebe3ac795f8de
[ "MIT" ]
11
2020-12-09T12:17:44.000Z
2022-03-30T09:02:13.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from ncc import tokenizers def get_whole_word_mask(args, dictionary): bpe = tokenizers.build_bpe(args) if bpe is not No...
30.1
67
0.621262
4a22807dd6ab83e52ea43bc069b0d759658061d1
9,263
py
Python
lib/galaxy/util/compression_utils.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
47
2015-10-21T23:30:30.000Z
2022-03-09T06:51:32.000Z
lib/galaxy/util/compression_utils.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
78
2019-01-18T08:12:49.000Z
2022-03-13T08:56:41.000Z
lib/galaxy/util/compression_utils.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
35
2015-10-30T13:09:40.000Z
2021-05-03T23:17:46.000Z
import gzip import io import logging import os import tarfile import zipfile from galaxy.util.path import safe_relpath from .checkers import ( bz2, is_bz2, is_gzip ) log = logging.getLogger(__name__) def get_fileobj(filename, mode="r", compressed_formats=None): """ Returns a fileobj. If the file...
39.58547
128
0.628738
4a22813e872fc9b780ed8df8f183fb6f634683d2
5,490
py
Python
lib/models/resnet.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
lib/models/resnet.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
lib/models/resnet.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F import torchvision import torch.utils.model_zoo as modelzoo #from modules import InPlaceABNSync as BatchNorm2d from torch.nn import BatchNorm2d resnet18_url = 'https://download.pytorch.org/models/resnet18...
31.734104
87
0.565209
4a22819678ed1503f73497a4e814966cec1af233
2,757
py
Python
var/spack/repos/builtin/packages/channelflow/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin/packages/channelflow/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/channelflow/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 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) from spack import * class Channelflow(CMakePackage): """Channelflow is a software system for numerical analysis of t...
32.05814
81
0.611172
4a2281f32d6de0ce199b994cd8084a7866d36b4d
22,907
py
Python
src/lib/thirdparty/logutils/dictconfig.py
gavin-anders/SSRFScanner
68546de8cc1ea2e6141cf5eb7363ad448a07a138
[ "Apache-2.0" ]
1
2020-02-13T09:51:13.000Z
2020-02-13T09:51:13.000Z
src/lib/thirdparty/logutils/dictconfig.py
gavin-anders/SSRFScanner
68546de8cc1ea2e6141cf5eb7363ad448a07a138
[ "Apache-2.0" ]
7
2019-10-06T14:48:03.000Z
2021-09-08T01:20:06.000Z
src/lib/thirdparty/logutils/dictconfig.py
gavin-anders/SSRFScanner
68546de8cc1ea2e6141cf5eb7363ad448a07a138
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2009-2013 Vinay Sajip. See LICENSE.txt for details. # import logging.handlers import re import sys import types try: basestring except NameError: basestring = str try: StandardError except NameError: StandardError = Exception IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I) de...
39.907666
80
0.509495
4a22838df8198f30086621a6a412792e6207fc6f
2,680
py
Python
tests/main_test.py
silnrsi/glyphsLib
fc9ac286874e30130679430b028a173062c311a0
[ "Apache-2.0" ]
1
2019-01-19T05:50:30.000Z
2019-01-19T05:50:30.000Z
tests/main_test.py
DalavanCloud/glyphsLib
fc9ac286874e30130679430b028a173062c311a0
[ "Apache-2.0" ]
null
null
null
tests/main_test.py
DalavanCloud/glyphsLib
fc9ac286874e30130679430b028a173062c311a0
[ "Apache-2.0" ]
1
2019-01-19T05:50:14.000Z
2019-01-19T05:50:14.000Z
# coding=UTF-8 # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
31.904762
86
0.691045
4a2283ef1e36be560b76ff055806a9cbf0d9abe3
499
py
Python
kirjoitukset/urls.py
ntuomas/nettisivu-projekti
c0f74abaa22c7630dc439e924e20f208dec958e9
[ "MIT" ]
null
null
null
kirjoitukset/urls.py
ntuomas/nettisivu-projekti
c0f74abaa22c7630dc439e924e20f208dec958e9
[ "MIT" ]
null
null
null
kirjoitukset/urls.py
ntuomas/nettisivu-projekti
c0f74abaa22c7630dc439e924e20f208dec958e9
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.KirjoitusListView.as_view(), name='koti'), path('kirjoitus/<int:pk>', views.KirjoitusDetailView.as_view(), name='yksityiskohdat'), path('kirjoitus/uusi/', views.KirjoitusCreateView.as_view(), name='uusi_kirjoitus'), path('k...
38.384615
93
0.713427
4a22842f59fc23f8aa421078639bdc7359d2eb3d
1,357
py
Python
examples/tutorial.py
johertrich/Inertial-Stochastic-PALM
8ef7be8d741c01ecd23e049d976f28f468d301cb
[ "MIT" ]
1
2021-06-23T04:00:50.000Z
2021-06-23T04:00:50.000Z
examples/tutorial.py
johertrich/Inertial-Stochastic-PALM
8ef7be8d741c01ecd23e049d976f28f468d301cb
[ "MIT" ]
null
null
null
examples/tutorial.py
johertrich/Inertial-Stochastic-PALM
8ef7be8d741c01ecd23e049d976f28f468d301cb
[ "MIT" ]
null
null
null
# This code belongs to the paper # # J. Hertrich and G. Steidl. # Inertial Stochastic PALM (iSPALM) and Applications in Machine Learning. # ArXiv preprint arXiv:2005.02204, 2020. # # Please cite the paper, if you use the code. from palm_algs import * # implement model functions def H(X,batch): diffs1=tf.add(bat...
23.807018
79
0.687546
4a228458e057a71200fbb6451ced93aba750f67d
6,044
py
Python
PCRC-MCDR/utils/pycraft/networking/packets/packet.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
2
2020-04-17T13:32:53.000Z
2020-04-28T10:16:28.000Z
PCRC-MCDR/utils/pycraft/networking/packets/packet.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
PCRC-MCDR/utils/pycraft/networking/packets/packet.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
1
2020-04-28T10:25:56.000Z
2020-04-28T10:25:56.000Z
import copy from .packet_buffer import PacketBuffer from zlib import compress from ..types import ( VarInt, Enum ) class Packet(object): packet_name = "base" id = None definition = None data = None # PCRC # To define the packet ID, either: # 1. Define the attribute `id', of type int, i...
38.993548
79
0.627399
4a228507532d3492cb247acb443659a30d0727c0
3,873
py
Python
python/dsbox/template/template_files/loaded/DefaultLinkPredictionTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-05-10T22:19:44.000Z
2020-07-21T07:28:39.000Z
python/dsbox/template/template_files/loaded/DefaultLinkPredictionTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
187
2018-04-13T17:19:24.000Z
2020-04-21T00:41:15.000Z
python/dsbox/template/template_files/loaded/DefaultLinkPredictionTemplate.py
usc-isi-i2/dsbox-ta2
85e0e8f5bbda052fa77cb98f4eef1f4b50909fd2
[ "MIT" ]
7
2018-07-10T00:14:07.000Z
2019-07-25T17:59:44.000Z
from dsbox.template.template import DSBoxTemplate from d3m.metadata.problem import TaskKeyword from dsbox.template.template_steps import TemplateSteps from dsbox.schema import SpecializedProblem import typing import numpy as np # type: ignore class DefaultLinkPredictionTemplate(DSBoxTemplate): ''' Dummy ...
46.107143
115
0.452879
4a2285883355115bb20aebf4790fb44fc29493fc
3,642
py
Python
SimCalorimetry/EcalTrigPrimProducers/test/readDBTPConds_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimCalorimetry/EcalTrigPrimProducers/test/readDBTPConds_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimCalorimetry/EcalTrigPrimProducers/test/readDBTPConds_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TPDBAn") process.load("CondCore.DBCommon.CondDBSetup_cfi") process.load("Geometry.CaloEventSetup.CaloGeometry_cfi") process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1...
33.109091
83
0.636463
4a22880585479433cd485b84a5da22deeefaaf82
7,209
py
Python
rq/utils.py
zchcai/rq
49b156ecc7ab16794f91f962326c2c24ec76f3a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq/utils.py
zchcai/rq
49b156ecc7ab16794f91f962326c2c24ec76f3a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
rq/utils.py
zchcai/rq
49b156ecc7ab16794f91f962326c2c24ec76f3a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """ Miscellaneous helper functions. The formatter for ANSI colored console output is heavily based on Pygments terminal colorizing code, originally by Georg Brandl. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import calendar ...
28.721116
112
0.59939
4a2288ada92a7fe9d268898fc597c03f44b1752f
363
py
Python
MBAR_PyTorch/__init__.py
xqding/MBAR_PyTorch
b1daa07bddd98953777482c4fcff5d98e782f164
[ "MIT" ]
1
2018-08-09T16:39:32.000Z
2018-08-09T16:39:32.000Z
MBAR_PyTorch/__init__.py
xqding/MBAR_PyTorch
b1daa07bddd98953777482c4fcff5d98e782f164
[ "MIT" ]
null
null
null
MBAR_PyTorch/__init__.py
xqding/MBAR_PyTorch
b1daa07bddd98953777482c4fcff5d98e782f164
[ "MIT" ]
null
null
null
""" MBAR_PyTorch is an implementation of the multistate Bennette acceprance ratio (MBAR) [1] method using the PyTorch [2] library. Comparing with the package pymbar [3], MBAR_PyTorch is faster when calculating free energyies for a large num of states with a large num of conformations. """ from MBAR_PyTorch.MBAR impo...
40.333333
78
0.793388
4a228902c106e63f0279ee4abaf73f8d18ff9b0e
7,419
py
Python
src/sage/categories/coxeter_group_algebras.py
drvinceknight/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
2
2015-08-11T05:05:47.000Z
2019-05-15T17:27:25.000Z
src/sage/categories/coxeter_group_algebras.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
null
null
null
src/sage/categories/coxeter_group_algebras.py
kaushik94/sage
00199fb220aa173d8585b9e90654dafd3247d82d
[ "BSL-1.0" ]
1
2020-07-24T11:56:55.000Z
2020-07-24T11:56:55.000Z
import functools from sage.misc.cachefunc import cached_method from sage.categories.algebra_functor import AlgebrasCategory class CoxeterGroupAlgebras(AlgebrasCategory): class ParentMethods: def demazure_lusztig_operator_on_basis(self, w, i, q1, q2, side="right"): r""" Return the ...
42.153409
139
0.541852
4a22891b676f79a0c1a17eaf6741f028ec6bd2d1
7,887
py
Python
examples/pwr_run/checkpointing/timed/max_par/job34.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/timed/max_par/job34.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/timed/max_par/job34.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
31.674699
118
0.690884
4a228a4b1f7b81eb4c304ab4fb2e21abfacdf562
97
py
Python
sport.py
liujanice/SpORT
48daa47c89da07a5328f029e9f1fe82f294a7d3b
[ "BSD-3-Clause" ]
null
null
null
sport.py
liujanice/SpORT
48daa47c89da07a5328f029e9f1fe82f294a7d3b
[ "BSD-3-Clause" ]
null
null
null
sport.py
liujanice/SpORT
48daa47c89da07a5328f029e9f1fe82f294a7d3b
[ "BSD-3-Clause" ]
null
null
null
import pyglet song = pyglet.media.load('GroceryScanningSound.wav') song.play() pyglet.app.run()
16.166667
52
0.762887
4a228acbf843f44b26fdd52ec021dc496f536e58
19,661
py
Python
code/python/lib/mg_parallelization/pbs.py
alguru/metagenemark-2
3389a6bb306acea87ab3ccb63c47281aadafb273
[ "MIT" ]
null
null
null
code/python/lib/mg_parallelization/pbs.py
alguru/metagenemark-2
3389a6bb306acea87ab3ccb63c47281aadafb273
[ "MIT" ]
1
2022-03-30T10:18:15.000Z
2022-03-30T10:18:15.000Z
code/python/lib/mg_parallelization/pbs.py
gatech-genemark/MetaGeneMark-2-exp
99f8cf091911b9200af97e722543ad84a247770f
[ "MIT" ]
1
2021-04-06T12:43:12.000Z
2021-04-06T12:43:12.000Z
# Author: karl # Created: 2020-06-21, 9:34 a.m. import os import copy import time import logging import numpy as np from typing import * from mg_general import Environment from mg_io.general import mkdir_p, write_to_file, remove_p from mg_general.general import get_value, run_shell_cmd from mg_options.parallelizati...
36.274908
117
0.621738
4a228bf50b7c9d0bb7afcfc76fa49e036d7205b6
27,693
py
Python
torc/torc.py
ispielma/torc
b1374602ccfa9aff1df97136fecdc5327799866b
[ "BSD-2-Clause" ]
null
null
null
torc/torc.py
ispielma/torc
b1374602ccfa9aff1df97136fecdc5327799866b
[ "BSD-2-Clause" ]
1
2021-06-30T05:30:27.000Z
2021-06-30T05:30:27.000Z
torc/torc.py
ispielma/torc
b1374602ccfa9aff1df97136fecdc5327799866b
[ "BSD-2-Clause" ]
1
2021-06-23T22:09:51.000Z
2021-06-23T22:09:51.000Z
import numpy as np from scipy.special import ellipk, ellipe from scipy.constants import mu_0 pi = np.pi import torc DEFAULT_ARC_SEGS = 12 DEFAULT_CROSS_SEC_SEGS = 12 def _formatobj(obj, *attrnames): """Format an object and some attributes for printing""" attrs = ", ".join(f"{name}={getattr(obj, name, None...
38.785714
88
0.585455
4a228bfa9195575510ab02c7a2da0e14b9aed30e
24,698
py
Python
blocks.py
iksungk/dynamical-machine-learning-limited-angular-views
85b9ebcc674375cf38b7546ea549ea4d34f2a05d
[ "MIT" ]
null
null
null
blocks.py
iksungk/dynamical-machine-learning-limited-angular-views
85b9ebcc674375cf38b7546ea549ea4d34f2a05d
[ "MIT" ]
null
null
null
blocks.py
iksungk/dynamical-machine-learning-limited-angular-views
85b9ebcc674375cf38b7546ea549ea4d34f2a05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: from tensorflow.keras.layers import Activation, Add, Dense, BatchNormalization, Concatenate, Dropout, Subtract, Flatten, Input, Lambda, Reshape from tensorflow.keras.layers import Conv3D, Conv3DTranspose, MaxPool3D, AveragePooling3D, UpSampling3D, ConvLSTM2D from tensor...
49.396
143
0.579116
4a228c30ca572bc10395721f1398c4746ba1653d
9,130
py
Python
assets/src/ba_data/python/bastd/ui/soundtrack/entrytypeselect.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/ui/soundtrack/entrytypeselect.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/ui/soundtrack/entrytypeselect.py
Dmitry450/ballistica
27420d3f64c24bf3c9b4b047177a4769977659b1
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
44.10628
79
0.585652
4a228cc1ca9a9c9805d97431166eb060c9bebdbb
40
py
Python
tests/mocks/pycopy-cpython_core/usocket.py
BradenM/micropython-stubber
042aee27685dcf0152b6580c005f8a20a04f9d59
[ "MIT" ]
126
2019-07-19T14:42:41.000Z
2022-03-21T22:22:19.000Z
tests/mocks/pycopy-cpython_core/usocket.py
BradenM/micropython-stubber
042aee27685dcf0152b6580c005f8a20a04f9d59
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
tests/mocks/pycopy-cpython_core/usocket.py
BradenM/micropython-stubber
042aee27685dcf0152b6580c005f8a20a04f9d59
[ "MIT" ]
55
2019-08-02T09:32:33.000Z
2021-12-22T11:25:51.000Z
import micropython from socket import *
13.333333
20
0.825
4a228dd86aee14204e379678e6187c8cb85e7f5d
1,206
py
Python
ports/esp32/boards/ESP32_Dev_Board/modules/buzzer.py
tektecher/micropython
f1e76cb820671414ab6bb5dabc084a6b916d3d06
[ "MIT" ]
null
null
null
ports/esp32/boards/ESP32_Dev_Board/modules/buzzer.py
tektecher/micropython
f1e76cb820671414ab6bb5dabc084a6b916d3d06
[ "MIT" ]
null
null
null
ports/esp32/boards/ESP32_Dev_Board/modules/buzzer.py
tektecher/micropython
f1e76cb820671414ab6bb5dabc084a6b916d3d06
[ "MIT" ]
2
2022-02-21T17:07:34.000Z
2022-03-01T19:45:48.000Z
# Dev by Sonthaya Nongnuch # Edited and Modified by Saeed Desouky from machine import Pin, PWM from time import sleep note_map = { "C4": 261, "C#4": 277, "D4": 293, "Eb4": 311, "E4": 329, "F4": 349, "F#4": 369, "G4": 391, "G#4": 415, "A4": 440, "Bb4": 466, "B4": 493, "C5": 523, "C#5": 554, "D5": 587,...
16.985915
42
0.555556
4a228e79f0f4e716999ce5a770c2e188929e0ea6
2,158
py
Python
algDev/db/yf_updater.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
null
null
null
algDev/db/yf_updater.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
7
2021-03-10T10:08:30.000Z
2022-03-02T07:38:13.000Z
algDev/db/yf_updater.py
ajmal017/ralph-usa
41a7f910da04cfa88f603313fad2ff44c82b9dd4
[ "Apache-2.0" ]
1
2020-04-17T19:15:06.000Z
2020-04-17T19:15:06.000Z
import psycopg2 import credentials from datetime import datetime, timedelta import yfinance as yf def update(): conn = psycopg2.connect(host="localhost",database="postgres", user=credentials.username, password=credentials.password) conn.autocommit = True cursor = conn.cursor() # first, get the most r...
38.535714
144
0.581557
4a228e8663e4a7a06bd6c02d23c062779de3523c
9,133
py
Python
train.py
hfznr/Udacity
8d496f6e6581d1b069151ad83b523b3f9ab8f90d
[ "MIT" ]
null
null
null
train.py
hfznr/Udacity
8d496f6e6581d1b069151ad83b523b3f9ab8f90d
[ "MIT" ]
null
null
null
train.py
hfznr/Udacity
8d496f6e6581d1b069151ad83b523b3f9ab8f90d
[ "MIT" ]
null
null
null
# Imports here import numpy as np import matplotlib import matplotlib.pyplot as plt import pandas as pd import torch import torchvision from PIL import Image from collections import OrderedDict from os import listdir import json from torch import nn,optim import torch.nn.functional as F from torchvision import dataset...
33.454212
115
0.598927
4a228e911668a8659badca960c4bd33d5a86555c
30,103
py
Python
Lib/bsddb/dbtables.py
wchangque/bsddb3
477f9defcf61b47d2cc769374afff468e4b4a248
[ "BSD-3-Clause" ]
3
2016-08-25T15:37:55.000Z
2018-06-26T02:15:24.000Z
Lib/bsddb/dbtables.py
shoemakerdr/bsddb3
61bffcd65474ede4d4317dd28789056e83eff541
[ "BSD-3-Clause" ]
1
2022-02-22T22:23:55.000Z
2022-02-22T22:23:55.000Z
bsddb3/bsddb3-6.2.6/Lib/bsddb/dbtables.py
mpwillson/spambayes3
b51d7bb9016066234ce88dad65faabed85f63d78
[ "PSF-2.0" ]
null
null
null
#----------------------------------------------------------------------- # # Copyright (C) 2000, 2001 by Autonomous Zone Industries # Copyright (C) 2002 Gregory P. Smith # # License: This is free software. You may use this software for any # purpose including modification/redistribution, so long as ...
36.710976
135
0.526227
4a228e95e305f0fa5b946dd6701da1bdb29f0c69
744
py
Python
tests/test_holidata.py
xeals/holidata
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
[ "MIT" ]
null
null
null
tests/test_holidata.py
xeals/holidata
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
[ "MIT" ]
null
null
null
tests/test_holidata.py
xeals/holidata
c99a56b63b1cb9dc5f4f79f3de83ba3865215250
[ "MIT" ]
null
null
null
import pytest from snapshottest.file import FileSnapshot from snapshottest.formatter import Formatter from holidata import Locale from tests import HOLIDATA_YEAR_MAX @pytest.fixture(params=range(2011, HOLIDATA_YEAR_MAX)) def year(request): return request.param @pytest.fixture(params=Locale.plugins) def locale(...
27.555556
82
0.771505
4a22912547c3c22e46af40da3b58ca665bbaa110
1,323
py
Python
test/runtime/frontend_test/chainer_test/functions_test/basic_math_test/neg_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/runtime/frontend_test/chainer_test/functions_test/basic_math_test/neg_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
test/runtime/frontend_test/chainer_test/functions_test/basic_math_test/neg_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
import chainer import numpy as np from test.util import generate_kernel_test_case, wrap_template from webdnn.graph.placeholder import Placeholder from webdnn.frontend.chainer.converter import ChainerConverter from webdnn.frontend.chainer.placeholder_variable import PlaceholderVariable @wrap_template def template(des...
24.054545
78
0.647014
4a2291904fbec9b1da9af24c71ac98a13e9907cf
1,794
py
Python
crawler/crawler/spiders/govnews.py
thienanh1999/final-thesis
f2def0eb77caa2124cd7d03a79460afb42098b84
[ "Apache-2.0" ]
null
null
null
crawler/crawler/spiders/govnews.py
thienanh1999/final-thesis
f2def0eb77caa2124cd7d03a79460afb42098b84
[ "Apache-2.0" ]
null
null
null
crawler/crawler/spiders/govnews.py
thienanh1999/final-thesis
f2def0eb77caa2124cd7d03a79460afb42098b84
[ "Apache-2.0" ]
null
null
null
import scrapy class MohSpider(scrapy.Spider): name = 'govnews' allowed_domains = ['ncov.moh.gov.vn'] start_urls = ['https://ncov.moh.gov.vn/vi/web/guest/tin-tuc'] headers = { 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.3...
37.375
129
0.557414
4a2291ec69787dedc7d7b4a508b03ec663747e47
4,042
py
Python
zipline/finance/transaction.py
magnumjoseph/ziplineaqm
0b3ac565957b17079602658bbae8a48751956196
[ "Apache-2.0" ]
2
2019-02-12T02:22:34.000Z
2019-06-04T22:09:24.000Z
zipline/finance/transaction.py
magnumjoseph/ziplineaqm
0b3ac565957b17079602658bbae8a48751956196
[ "Apache-2.0" ]
null
null
null
zipline/finance/transaction.py
magnumjoseph/ziplineaqm
0b3ac565957b17079602658bbae8a48751956196
[ "Apache-2.0" ]
null
null
null
# # Copyright 2015 Quantopian, 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 law or agreed to in wr...
30.390977
88
0.64473
4a2291fab750190e4e6f7c80e7322b5cffba830f
1,002
py
Python
Python/Ultrassom.py
rodrigoferrazazevedo/bengalaiot
3ad68a80db64701b4683cbc3806dcef2e75a3c98
[ "MIT" ]
null
null
null
Python/Ultrassom.py
rodrigoferrazazevedo/bengalaiot
3ad68a80db64701b4683cbc3806dcef2e75a3c98
[ "MIT" ]
null
null
null
Python/Ultrassom.py
rodrigoferrazazevedo/bengalaiot
3ad68a80db64701b4683cbc3806dcef2e75a3c98
[ "MIT" ]
null
null
null
import mraa import time import math import pygame trigger = mraa.Gpio(32) echo = mraa.Gpio(27) trigger.dir(mraa.DIR_OUT) echo.dir(mraa.DIR_IN) D = 200 speed = 34000 pulse_start = time.time() pulse_end = time.time() print "Iniciando leitura ultrassom:" time.sleep(3) timeout=time.time()+D while True: trigger.wr...
20.04
47
0.57984
4a2292c5ce4b59bf5c00917e2403e2949fd2eb49
2,449
py
Python
exportcomments/base.py
exportcomments/exportcomments-python
5f7f836fb9195f02dbdb74432c879d327aa98029
[ "MIT" ]
8
2019-11-25T15:45:46.000Z
2021-12-29T12:03:38.000Z
exportcomments/base.py
exportcomments/exportcomments-python
5f7f836fb9195f02dbdb74432c879d327aa98029
[ "MIT" ]
1
2020-11-02T00:25:10.000Z
2020-11-02T07:42:26.000Z
exportcomments/base.py
exportcomments/exportcomments-python
5f7f836fb9195f02dbdb74432c879d327aa98029
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from exportcomments.settings import DEFAULT_BASE_URL import json import pkg_resources import requests import six from six.moves.urllib.parse import...
33.547945
89
0.602287
4a22939b33361c5bb0b1555b1fa2349604714829
16
py
Python
python/ql/src/Imports/ImportTwiceOnALine.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/src/Imports/ImportTwiceOnALine.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/src/Imports/ImportTwiceOnALine.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
import xxx, yyy
8
15
0.75
4a2293dce462e78de5b5a0f8e1826a9fd749c647
5,148
py
Python
py/gps_building_blocks/airflow/utils/retry_utils.py
isabella232/gps_building_blocks
86ef8be60a42cd12e27696007589388b7b053f4f
[ "Apache-2.0" ]
30
2020-03-13T09:56:37.000Z
2022-02-16T01:47:29.000Z
py/gps_building_blocks/airflow/utils/retry_utils.py
google/gps_building_blocks
385ea06f3e84047e08e120791281aac02f028a81
[ "Apache-2.0" ]
32
2020-04-16T14:28:37.000Z
2022-02-10T03:36:33.000Z
py/gps_building_blocks/airflow/utils/retry_utils.py
isabella232/gps_building_blocks
86ef8be60a42cd12e27696007589388b7b053f4f
[ "Apache-2.0" ]
13
2020-04-15T08:10:51.000Z
2021-10-04T23:49:46.000Z
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
31.2
101
0.741841
4a2294242a9699f88983d21d517e5ba2803d3c9e
4,625
py
Python
librtmp/amf.py
yn295636/python-librtmp
2bfdc4238e6247c4abd0745f8c7abe43543f0b1c
[ "BSD-2-Clause" ]
128
2015-02-11T15:09:25.000Z
2022-03-28T03:31:41.000Z
librtmp/amf.py
yn295636/python-librtmp
2bfdc4238e6247c4abd0745f8c7abe43543f0b1c
[ "BSD-2-Clause" ]
27
2015-01-07T14:06:42.000Z
2021-11-28T09:00:38.000Z
librtmp/amf.py
yn295636/python-librtmp
2bfdc4238e6247c4abd0745f8c7abe43543f0b1c
[ "BSD-2-Clause" ]
40
2015-02-11T21:13:41.000Z
2021-12-12T22:31:01.000Z
try: from functools import singledispatch except ImportError: from singledispatch import singledispatch from . import ffi, librtmp from .aval import AVal from .compat import is_py2, bytes, range from .exceptions import AMFError AMF_STRING_TYPES = (librtmp.AMF_STRING, librtmp.AMF_LONG_STRING) AMF_OBJECT_DICT_T...
23.241206
76
0.659027
4a229436ff16720b0de5b2adc3bc3f37a90662dd
4,136
py
Python
Bio/SeqIO/IgIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/IgIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/IgIO.py
bioinf-mcb/biopython
1a1f4a7ee4e0efba517d3d607c56c27e72e399cc
[ "BSD-3-Clause" ]
1
2020-03-19T17:06:16.000Z
2020-03-19T17:06:16.000Z
# Copyright 2008-2015 by Peter Cock. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Bio.SeqIO support fo...
31.333333
85
0.642892
4a2294c64152cf6107175b8ad3ae9351af9474d5
3,667
py
Python
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
edabit/hard/first_repeating_character/first_repeating_character.py
ticotheps/practice_problems
943c5ab9eebeac4e5cf162adbdc681119603dc36
[ "MIT" ]
null
null
null
""" FIND FIRST CHARACTER THAT REPEATS Create a function that takes a string and returns the first character that repeats. If there is no repeat of a character, then return '-1' (string). Examples: - first_repeat('legolas') -> 'l' - first_repeat('Gandalf') -> 'a' - first_repeat('Balrog') -> '-1' - firs...
34.59434
260
0.647123
4a22954588bc2b02eab5b725a75f81321b094d9a
3,347
py
Python
examples/Radar_Server_Level_3.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
164
2015-05-25T22:28:38.000Z
2022-02-07T11:09:16.000Z
examples/Radar_Server_Level_3.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
369
2015-05-20T17:03:38.000Z
2022-03-24T15:29:59.000Z
examples/Radar_Server_Level_3.py
DanielWatkins/siphon
4c6740c2f8030ec1a23cafd8b8b9713dcd382cb2
[ "BSD-3-Clause" ]
79
2015-05-15T19:31:34.000Z
2021-06-27T20:34:38.000Z
# Copyright (c) 2013-2015 Siphon Contributors. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """ ======================= TDS Radar Query Service ======================= Use Siphon to get NEXRAD Level 3 data from a TDS. """ from datetime import datetime import matpl...
37.188889
89
0.623842
4a22955fb7ecb2b393cf9a8bba188c0c2af4cec6
5,510
py
Python
1.9.4-479/benchmark.py
shaoziyang/micropython_benchmarks
adb2d218d76e725156c3a3752e642ddc627973d7
[ "MIT" ]
11
2018-11-26T13:00:38.000Z
2021-06-03T10:26:12.000Z
1.9.4-479/benchmark.py
shaoziyang/micropython_benchmarks
adb2d218d76e725156c3a3752e642ddc627973d7
[ "MIT" ]
null
null
null
1.9.4-479/benchmark.py
shaoziyang/micropython_benchmarks
adb2d218d76e725156c3a3752e642ddc627973d7
[ "MIT" ]
6
2018-09-16T04:15:05.000Z
2022-01-11T00:34:03.000Z
''' File: benchmarks.py Descript: benchmark test for different microcontroller Author: Shao ziyang Data: 2018-Octo-25 Version: 1.0 ''' import time import machine import gc def pi(places=100): # 3 + 3*(1/24) + 3*(1/24)*(9/80) + 3*(1/24)*(9/80)*(25/168) # The numerators 1, 9, 25, ... are given b...
25.159817
70
0.613067
4a2295ed8a033613cd950d94a8f1b7904fd6b369
29
py
Python
pyson_connect/__init__.py
clipper-programing/pyson_connect
103f74d62b43c093555988bca58b6e1510f99341
[ "BSD-3-Clause" ]
2
2022-01-04T01:57:34.000Z
2022-02-06T22:00:37.000Z
pyson_connect/__init__.py
clipper-programing/pyson_connect
103f74d62b43c093555988bca58b6e1510f99341
[ "BSD-3-Clause" ]
null
null
null
pyson_connect/__init__.py
clipper-programing/pyson_connect
103f74d62b43c093555988bca58b6e1510f99341
[ "BSD-3-Clause" ]
null
null
null
from .pyson_connect import *
14.5
28
0.793103
4a22974b26e80050b2e0b32ee5cbd0ca3d231352
9,929
py
Python
GANs/tecogan/train.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
null
null
null
GANs/tecogan/train.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
null
null
null
GANs/tecogan/train.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
42.251064
107
0.647699
4a2298526854320f99ed39cda615f37d6526a714
4,051
py
Python
modin/pandas/test/test_api.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
1
2019-03-12T08:24:24.000Z
2019-03-12T08:24:24.000Z
modin/pandas/test/test_api.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
null
null
null
modin/pandas/test/test_api.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
null
null
null
import modin.pandas as pd import pandas import inspect import numpy as np def test_top_level_api_equality(): modin_dir = [obj for obj in dir(pd) if obj[0] != "_"] pandas_dir = [obj for obj in dir(pandas) if obj[0] != "_"] missing_from_modin = set(pandas_dir) - set(modin_dir) ignore = [ "np", ...
30.923664
88
0.503579
4a229868ce85fe66b251fa265829dfc25116a9ed
178
py
Python
tests/sessions_tests/no_clear_expired.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/sessions_tests/no_clear_expired.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/sessions_tests/no_clear_expired.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
from django.contrib.sessions.backends.base import SessionBase class SessionStore(SessionBase): """Session store without support for clearing expired sessions.""" pass
22.25
70
0.775281
4a229897c338a01c8027a906ad4a72eec5b25577
250,164
py
Python
tst/style/cpplint.py
charge72002/Athena_Radiation-master
a192aeab0c3cd258853fe43468a4a1d8c2a9279d
[ "BSD-3-Clause" ]
null
null
null
tst/style/cpplint.py
charge72002/Athena_Radiation-master
a192aeab0c3cd258853fe43468a4a1d8c2a9279d
[ "BSD-3-Clause" ]
null
null
null
tst/style/cpplint.py
charge72002/Athena_Radiation-master
a192aeab0c3cd258853fe43468a4a1d8c2a9279d
[ "BSD-3-Clause" ]
1
2021-07-15T19:06:10.000Z
2021-07-15T19:06:10.000Z
#!/usr/bin/env python2 # -------------------------------------------------------------------- # KGF: https://github.com/cpplint/cpplint forked version 5a38c3a # (modified to use Python 2 when run from command line) # KGF: originally used google/styleguide version 1b206ee # ----------------------------------------------...
38.546071
97
0.652388
4a22991a3c02fd56aaef95f5336f0512db10e9c3
3,068
py
Python
pyrobolearn/robots/mkz.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/robots/mkz.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/robots/mkz.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide the Lincoln MKZ car robotic platform. """ import os import numpy as np from pyrobolearn.robots.wheeled_robot import AckermannWheeledRobot __author__ = "Brian Delhaisse" __copyright__ = "Copyright 2018, PyRoboLearn" __license__ = "GNU GPLv3" __version__ = "1.0....
31.958333
110
0.629074
4a229ab9187e887b8b623079af4df58cf85806c3
8,614
py
Python
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
5
2017-07-20T11:15:10.000Z
2020-04-16T15:42:55.000Z
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_service.py
Arenadata/ambari
4628267441121779113d98936dcdf5d9be60553c
[ "Apache-2.0" ]
12
2017-05-17T09:48:01.000Z
2021-08-05T19:01:25.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
45.336842
270
0.678895
4a229b60350211dcb0766c487eae4d60f5f634b3
448
py
Python
Kattis (Tae Ho Kim)/Transit Woes/Answer.py
kim4t/Kattis
67a0aef92d65f5f9294e9a3338ef68e38e697c1c
[ "Unlicense" ]
null
null
null
Kattis (Tae Ho Kim)/Transit Woes/Answer.py
kim4t/Kattis
67a0aef92d65f5f9294e9a3338ef68e38e697c1c
[ "Unlicense" ]
null
null
null
Kattis (Tae Ho Kim)/Transit Woes/Answer.py
kim4t/Kattis
67a0aef92d65f5f9294e9a3338ef68e38e697c1c
[ "Unlicense" ]
null
null
null
s,t,n = map(int,input().split()) d = input().split() b = input().split() c = input().split() total = 0 for i in d: total += int(i) for i in b: total += int(i) sum = int(d[0]) stop = [sum] for i in range(n-1): sum+= int(d[i])+int(b[i]) stop.append(sum) for i in range(n): x = stop[i] y = int(c[i]...
17.92
32
0.504464
4a229cebf1fde8dbb7687f304b9e64def06dbff8
5,993
py
Python
tools/auth.py
GeorgeGreenawayShow/messaging
0535c12fba2f02a6ff78721de2bf2d92abec7243
[ "MIT" ]
1
2020-03-29T12:34:05.000Z
2020-03-29T12:34:05.000Z
tools/auth.py
GeorgeGreenawayShow/messaging
0535c12fba2f02a6ff78721de2bf2d92abec7243
[ "MIT" ]
1
2021-08-31T00:30:56.000Z
2021-08-31T00:30:56.000Z
tools/auth.py
GeorgeGreenawayShow/messaging
0535c12fba2f02a6ff78721de2bf2d92abec7243
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import fire import requests import config import os def read_token_file(): if os.path.exists("token.txt"): with open("token.txt", "r+") as f: token = f.read() if "RST-" in token: print("🔑❗ Logged in with a password reset token, most commands won't...
39.688742
143
0.542466
4a229cfb509c4568da640a057c48ca45e39ebc37
31
py
Python
torch/ao/nn/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
torch/ao/nn/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
torch/ao/nn/__init__.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
from torch.ao.nn import sparse
15.5
30
0.806452
4a229d1b9783e8d75ed7b0e1456a652fc7a12cc4
28,055
py
Python
wokkel/test/test_disco.py
dustin/wokkel
2dae171b77adb790fda54e5f66e4bfc40c3b28ac
[ "MIT" ]
1
2015-11-04T10:33:54.000Z
2015-11-04T10:33:54.000Z
wokkel/test/test_disco.py
dustin/wokkel
2dae171b77adb790fda54e5f66e4bfc40c3b28ac
[ "MIT" ]
null
null
null
wokkel/test/test_disco.py
dustin/wokkel
2dae171b77adb790fda54e5f66e4bfc40c3b28ac
[ "MIT" ]
null
null
null
# Copyright (c) 2003-2009 Ralph Meijer # See LICENSE for details. """ Tests for L{wokkel.disco}. """ from zope.interface import implements from twisted.internet import defer from twisted.trial import unittest from twisted.words.protocols.jabber.jid import JID from twisted.words.protocols.jabber.xmlstream import toRe...
33.964891
80
0.584744
4a229f250e888af5f3c7e5b3743009e60bfb7753
5,405
py
Python
config.py
KaihuaTang/VQA2.0-Recent-Approachs-2018.pytorch
52e1ba5a7f3b88c617115ccc755e2e7868e8de2b
[ "MIT" ]
298
2019-01-19T05:44:29.000Z
2022-03-25T14:42:16.000Z
config.py
KaihuaTang/VQA2.0-Recent-Approachs-2018.pytorch
52e1ba5a7f3b88c617115ccc755e2e7868e8de2b
[ "MIT" ]
10
2019-02-10T06:10:29.000Z
2021-05-19T13:49:33.000Z
config.py
KaihuaTang/VQA2.0-Recent-Approachs-2018.pytorch
52e1ba5a7f3b88c617115ccc755e2e7868e8de2b
[ "MIT" ]
54
2019-01-19T05:45:01.000Z
2022-01-18T07:40:33.000Z
# paths qa_path = 'data' # directory containing the question and annotation jsons bottom_up_trainval_path = 'data/trainval' # directory containing the .tsv file(s) with bottom up features bottom_up_test_path = 'data/test2015' # directory containing the .tsv file(s) with bottom up features preprocessed_trainval_path ...
41.576923
156
0.670675
4a22a00afc40f3b0784428f2acf106d2ff9e00a0
5,387
py
Python
pynodegl-utils/pynodegl_utils/examples/medias.py
mbouron/gopro-lib-node.gl
e888e889643be8e8e02c8b9f9159b393b4b54928
[ "Apache-2.0" ]
null
null
null
pynodegl-utils/pynodegl_utils/examples/medias.py
mbouron/gopro-lib-node.gl
e888e889643be8e8e02c8b9f9159b393b4b54928
[ "Apache-2.0" ]
null
null
null
pynodegl-utils/pynodegl_utils/examples/medias.py
mbouron/gopro-lib-node.gl
e888e889643be8e8e02c8b9f9159b393b4b54928
[ "Apache-2.0" ]
null
null
null
import pynodegl as ngl from pynodegl_utils.misc import scene @scene(uv_corner=scene.Vector(n=2), uv_width=scene.Vector(n=2), uv_height=scene.Vector(n=2), progress_bar=scene.Bool()) def centered_media(cfg, uv_corner=(0, 0), uv_width=(1, 0), uv_height=(0, 1), progress_bar=True): '''A simple cen...
38.755396
109
0.6447
4a22a034ec63bbade40e890ef81df38456827d78
5,419
py
Python
src/logo_only.py
NitikaGupta16/logohunter
f57e987bbd37d6316e701688f99d6e1fea6d406b
[ "MIT" ]
128
2019-02-27T08:47:03.000Z
2022-02-25T04:23:48.000Z
src/logo_only.py
AntonMu/logohunter
4c6eb0931b3c100d4ed03334e26166d2429d5722
[ "MIT" ]
10
2019-12-11T07:17:27.000Z
2022-03-27T06:30:55.000Z
src/logo_only.py
AntonMu/logohunter
4c6eb0931b3c100d4ed03334e26166d2429d5722
[ "MIT" ]
32
2019-06-25T20:34:46.000Z
2022-03-21T12:29:30.000Z
""" Run generic logo detection on input images, without matching to a specific brand """ import argparse from keras_yolo3.yolo import YOLO import os import sys from timeit import default_timer as timer from logos import detect_logo, match_logo, detect_video import utils from utils import parse_input output_txt = 'ou...
35.188312
161
0.607677
4a22a0d06470206057dece9ac7c80ba902e61d1c
7,257
py
Python
data_bootstrap/bootstrap.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
19
2015-04-16T09:37:08.000Z
2022-02-10T11:50:30.000Z
data_bootstrap/bootstrap.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
125
2015-03-26T14:05:49.000Z
2020-05-14T08:16:50.000Z
data_bootstrap/bootstrap.py
Jenks18/mfl_api
ecbb8954053be06bbcac7e1132811d73534c78d9
[ "MIT" ]
39
2015-04-15T09:17:33.000Z
2022-03-28T18:08:16.000Z
import json import logging import os from collections import defaultdict from django.apps import apps from django.db import transaction from django.db.utils import ProgrammingError from django.contrib.gis.geos import Point from django.core.exceptions import ObjectDoesNotExist from common.fields import SequenceField ...
38.194737
100
0.608103
4a22a0e301d1f61cfb2f50afcbb0d9be35f21b90
603
py
Python
solutions/mixmilk.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
solutions/mixmilk.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
solutions/mixmilk.py
24TangC/USACO-Bronze
80f0986cb04998b039ba23c7349d25431b4e876b
[ "MIT" ]
null
null
null
capacity = [] current_amount = [] for x in range(0, 3): inputnumber = input().split() capacity.append(int(inputnumber[0])) current_amount.append(int(inputnumber[1])) for x in range(0, 100): if (current_amount[x%3] + current_amount[(x+1) % 3]) <= capacity[(x+1)%3]: current_amount[(x+1) ...
31.736842
79
0.568823
4a22a2332147db69480ae4942a4187575a37438e
2,997
py
Python
fbpcs/private_computation/entity/private_computation_base_stage_flow.py
adshastri/fbpcs
81d816ee56ea36f8f58dca6ae803fa50138cb91e
[ "MIT" ]
null
null
null
fbpcs/private_computation/entity/private_computation_base_stage_flow.py
adshastri/fbpcs
81d816ee56ea36f8f58dca6ae803fa50138cb91e
[ "MIT" ]
null
null
null
fbpcs/private_computation/entity/private_computation_base_stage_flow.py
adshastri/fbpcs
81d816ee56ea36f8f58dca6ae803fa50138cb91e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict from abc import abstractmethod from dataclasses import dataclass from typing import Type, TypeVar, TYPE_...
34.848837
113
0.71705
4a22a4147759e8c6c7ca0385d53a99a48abfa204
105,113
py
Python
dbReports/iondb/rundb/plan/page_plan/step_helper_db_loader.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
null
null
null
dbReports/iondb/rundb/plan/page_plan/step_helper_db_loader.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
null
null
null
dbReports/iondb/rundb/plan/page_plan/step_helper_db_loader.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
1
2020-04-18T13:00:23.000Z
2020-04-18T13:00:23.000Z
# Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved from django.utils.translation import ugettext_lazy from django.db.models import Q from iondb.utils import validation from iondb.rundb.labels import Plan, PlanTemplate from iondb.rundb.models import ( PlannedExperiment, PlannedExperimentQC, R...
42.264978
252
0.608707
4a22a41a257577f1b9989bf9a03c9d815786513b
390
py
Python
thunau/wsgi.py
acdh-oeaw/thunau-old
a3023885470e80f7312e43561028398bffd713e0
[ "MIT" ]
null
null
null
thunau/wsgi.py
acdh-oeaw/thunau-old
a3023885470e80f7312e43561028398bffd713e0
[ "MIT" ]
9
2020-02-12T00:19:18.000Z
2021-12-13T19:46:51.000Z
thunau/wsgi.py
acdh-oeaw/thunau
06e4d54f4553939ffba3c504088055c3807328c6
[ "MIT" ]
null
null
null
""" WSGI config for thunau project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
22.941176
78
0.784615
4a22a4b5600a80d54d1538c71500a5ab2d20c62f
2,937
py
Python
Model/solver.py
Spencerfar/djin-aging
f6513226e879e6061996d819b4de0e2873860fbc
[ "MIT" ]
3
2021-08-24T08:33:45.000Z
2022-01-18T23:50:33.000Z
Model/solver.py
Spencerfar/djin-aging
f6513226e879e6061996d819b4de0e2873860fbc
[ "MIT" ]
null
null
null
Model/solver.py
Spencerfar/djin-aging
f6513226e879e6061996d819b4de0e2873860fbc
[ "MIT" ]
1
2021-08-24T08:34:30.000Z
2021-08-24T08:34:30.000Z
import numpy as np import torch import torch.nn as nn from torch.nn import functional as F class SolveSDE(nn.Module): def __init__(self, N, device, dt = 0.5, length = 25): super(SolveSDE, self).__init__() self.device = device self.N = N self.dt = dt self.num_t = i...
39.16
220
0.516173
4a22a4fc272fb6d5599567477441abeddb155952
7,484
py
Python
data/ms_dataset.py
han-liu/ModDropPlusPlus
254e6d40a755cf1f00e544b6fcc0b3f587fd38e8
[ "MIT" ]
1
2022-03-23T03:35:39.000Z
2022-03-23T03:35:39.000Z
data/ms_dataset.py
han-liu/ModDropPlusPlus
254e6d40a755cf1f00e544b6fcc0b3f587fd38e8
[ "MIT" ]
null
null
null
data/ms_dataset.py
han-liu/ModDropPlusPlus
254e6d40a755cf1f00e544b6fcc0b3f587fd38e8
[ "MIT" ]
null
null
null
import os.path import random import torchvision.transforms as transforms import torch.nn.functional as F import torch import cv2 import numpy as np from data.base_dataset import BaseDataset from configurations import * import copy from albumentations.augmentations.functional import grid_distortion import matplotlib.pyp...
37.42
120
0.608231
4a22a5e9a16c8bb2b98d97342c4e81cf994a900f
9,771
py
Python
tests/conftest.py
jasadams/aws-data-wrangler
36aad847d48ebeafc6639a82a2a5107892dfcc06
[ "Apache-2.0" ]
1
2021-04-13T06:51:54.000Z
2021-04-13T06:51:54.000Z
tests/conftest.py
timmylicheng/aws-data-wrangler
6ae62354a82f41d38b1a20da3ab3f0baf0fe436d
[ "Apache-2.0" ]
63
2021-05-31T08:35:17.000Z
2022-03-28T08:12:04.000Z
tests/conftest.py
Thiago-Dantas/aws-data-wrangler
b13fcd8d169feb3219b4b4fff025dc6089cfe03b
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import boto3 # type: ignore import pytest # type: ignore import awswrangler as wr from ._utils import create_workgroup, extract_cloudformation_outputs, get_time_str_with_random_suffix, path_generator @pytest.fixture(scope="session") def cloudformation_outputs(): return extract_c...
32.89899
117
0.691331
4a22a76ff0108c8ce615dc4bdbab179b07f6469a
10,463
py
Python
trainrecs.py
cielsys/CarNDProj4_CarBehave
996802cdad6997ce31757e2b7f000e6522446365
[ "MIT" ]
null
null
null
trainrecs.py
cielsys/CarNDProj4_CarBehave
996802cdad6997ce31757e2b7f000e6522446365
[ "MIT" ]
null
null
null
trainrecs.py
cielsys/CarNDProj4_CarBehave
996802cdad6997ce31757e2b7f000e6522446365
[ "MIT" ]
null
null
null
import os import errno import csv import random import math import datetime import pickle import threading import cv2 import numpy as np import matplotlib import matplotlib.image as mpimg import matplotlib.pyplot as plt #====================== CTrainingRecord() ===================== class CTrainingRecord(): ''' ...
36.583916
138
0.636051
4a22aa54f2a48a2877243922b184f255cfffb079
593
py
Python
scripts/bump_alpha.py
JarbasAl/jarbas-wake-word-plugin-snowboy
09b9dea50ec2c40df37f5e4d0ed2faa1eef304cd
[ "Apache-2.0" ]
null
null
null
scripts/bump_alpha.py
JarbasAl/jarbas-wake-word-plugin-snowboy
09b9dea50ec2c40df37f5e4d0ed2faa1eef304cd
[ "Apache-2.0" ]
null
null
null
scripts/bump_alpha.py
JarbasAl/jarbas-wake-word-plugin-snowboy
09b9dea50ec2c40df37f5e4d0ed2faa1eef304cd
[ "Apache-2.0" ]
null
null
null
import fileinput from os.path import join, dirname version_file = join(dirname(dirname(__file__)), "ovos_ww_plugin_snowboy", "version.py") version_var_name = "VERSION_ALPHA" with open(version_file, "r", encoding="utf-8") as v: for line in v.readlines(): if line.startswith(version_var_name): v...
31.210526
87
0.674536
4a22abb5369728a9de3e212c9131384739ec7dde
2,053
py
Python
tests/functional/fkey/primary/test_insert_pk_16.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/fkey/primary/test_insert_pk_16.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/fkey/primary/test_insert_pk_16.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: functional.fkey.primary.insert_pk_16 # title: Check correct work fix with foreign key # decription: Check foreign key work. # Master transaction inserts record into master_table and commit. # Detail transaction inserts record in detail_table. # ...
26.320513
104
0.657087
4a22ac989a0fa8847d054cc298629b531867d9ba
2,037
py
Python
mozillians/announcements/models.py
mozilla/vouched-mozillians
88fca9aea0ab1e173cbc33776aa388b956859559
[ "BSD-3-Clause" ]
1
2020-10-27T12:17:34.000Z
2020-10-27T12:17:34.000Z
mozillians/announcements/models.py
akatsoulas/vouched-mozillians
6dcfaf61518ff038403b2b3e06ad9b813135b287
[ "BSD-3-Clause" ]
5
2020-09-28T19:04:19.000Z
2020-10-27T19:48:31.000Z
mozillians/announcements/models.py
akatsoulas/vouched-mozillians
6dcfaf61518ff038403b2b3e06ad9b813135b287
[ "BSD-3-Clause" ]
2
2020-09-22T08:55:10.000Z
2020-09-24T10:40:58.000Z
import os import uuid from jinja2 import Markup import bleach from django.conf import settings from django.core.exceptions import ValidationError from django.db import models from django.utils.timezone import now from mozillians.announcements.managers import AnnouncementManager from sorl.thumbnail import ImageField ...
31.338462
88
0.68434
4a22ace72ad88db6e6ec1e05466e8f9ae85598c4
13,304
py
Python
models.py
antonyvigouret/Text-Orientation-Detection
85ead7573a199f80176653035adaad6208713ad7
[ "MIT" ]
1
2020-08-01T21:19:37.000Z
2020-08-01T21:19:37.000Z
models.py
antonyvigouret/Text-Recognition
85ead7573a199f80176653035adaad6208713ad7
[ "MIT" ]
null
null
null
models.py
antonyvigouret/Text-Recognition
85ead7573a199f80176653035adaad6208713ad7
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import ( Dense, Conv2D, Bidirectional, LSTM, MaxPooling2D, BatchNormalization, Activation, Input, Lambda, Add, ) import tensorflow.keras.backend as K from tensorflow.keras.optimizers import Adam from tensorflow.keras.models imp...
32.687961
157
0.619738
4a22adb132ab1e93bb2141f1fd44e5b72088716f
9,513
py
Python
scripts/lib/xpedite/jupyter/driver.py
robber-m/Xpedite
18e58bd0fac9ec7620fdeae1e7d1c0f8dd1f03f7
[ "Apache-2.0", "BSD-3-Clause" ]
99
2018-06-29T23:22:36.000Z
2020-12-10T23:40:10.000Z
scripts/lib/xpedite/jupyter/driver.py
robber-m/Xpedite
18e58bd0fac9ec7620fdeae1e7d1c0f8dd1f03f7
[ "Apache-2.0", "BSD-3-Clause" ]
105
2018-07-01T23:10:15.000Z
2020-09-26T16:40:36.000Z
scripts/lib/xpedite/jupyter/driver.py
Mani-D/Xpedite
ce0811c0679e797029b3828a348fba07c6c92f77
[ "Apache-2.0", "BSD-3-Clause" ]
31
2018-06-30T00:28:46.000Z
2020-11-06T07:29:03.000Z
""" Driver to integrate Xpedite with Jupyter shell. This module provides 1. logic to store xpedite results in a jupyter notebook 2. ability to launch a jupyter instance with xpedite specific configuration 3. code to generate histogram and profile summary cells Author: Dhruv Shekhawat, Morgan Stanley """ import...
37.305882
115
0.709871
4a22adebb797e1a3f5f0a340e2a65cbae44461fb
1,908
py
Python
app/sensors/enabled/hih6130.py
jsolodev/nettemp
e1e9605b853689822f3e9c2a8ae9bf02e266359c
[ "MIT" ]
51
2015-01-03T01:37:25.000Z
2021-11-03T18:07:42.000Z
app/sensors/enabled/hih6130.py
jsolodev/nettemp
e1e9605b853689822f3e9c2a8ae9bf02e266359c
[ "MIT" ]
18
2015-03-06T18:46:51.000Z
2021-04-02T08:02:01.000Z
app/sensors/enabled/hih6130.py
jsolodev/nettemp
e1e9605b853689822f3e9c2a8ae9bf02e266359c
[ "MIT" ]
51
2015-02-04T18:53:54.000Z
2022-02-16T20:40:45.000Z
import smbus import os.path import sys from datetime import datetime dir=(os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', '..','..','..'))) sys.path.append(dir+'/app') from local_nettemp import insert __all__ = ['HIH6130'] class HIH6130: ''' HIH6130() returns an instance of the RHT sensor with defa...
23.268293
104
0.598008
4a22ae81a345d82fe72df27c4b96efbee9fa761e
1,765
py
Python
backend/api/views/project.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
null
null
null
backend/api/views/project.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
null
null
null
backend/api/views/project.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework import generics, status from rest_framework.permissions import IsAdminUser, IsAuthenticated from rest_framework.response import Response from members.permissions import IsInProjectReadOnlyOrAdmin from ..models import Project from ..serializers import ProjectPolymor...
36.020408
81
0.729745
4a22af2b446e349ab69c87d8136b05831511abbc
80,879
py
Python
qa/L0_lifecycle/lifecycle_test.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
null
null
null
qa/L0_lifecycle/lifecycle_test.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
null
null
null
qa/L0_lifecycle/lifecycle_test.py
szalpal/server
85bf86813bce30a6b8e9f66bde057e2145530b7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
48.085018
107
0.518503
4a22af2fffc3e4b580d7a2fdcaa0bf58656fde7a
3,869
py
Python
eval.py
dimenerno/cnn-text-korean
39df71c6d8a05b9ea8becd2a70267b5fc442941c
[ "Apache-2.0" ]
77
2016-12-16T02:06:38.000Z
2021-07-19T04:34:01.000Z
eval.py
dimenerno/cnn-text-korean
39df71c6d8a05b9ea8becd2a70267b5fc442941c
[ "Apache-2.0" ]
1
2019-03-25T06:41:10.000Z
2019-03-25T06:41:10.000Z
eval.py
dimenerno/cnn-text-korean
39df71c6d8a05b9ea8becd2a70267b5fc442941c
[ "Apache-2.0" ]
63
2016-12-16T02:06:50.000Z
2020-12-07T01:39:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import json import tensorflow as tf import numpy as np import os import data_helpers from multi_class_data_loader import MultiClassDataLoader from word_data_processor import WordDataProcessor import csv # Parameters # ================================================== #...
39.080808
102
0.715172
4a22af98f2631a2e22ece7de7d73d87c8c0c4400
283
py
Python
givemedata/__init__.py
sancau/givemedata
cbdb92ef72cb02f01c13f5230162c719b2abf9da
[ "MIT" ]
2
2019-05-17T10:01:25.000Z
2020-06-01T08:04:06.000Z
givemedata/__init__.py
sancau/givemedata
cbdb92ef72cb02f01c13f5230162c719b2abf9da
[ "MIT" ]
5
2020-03-24T16:57:34.000Z
2021-09-13T13:23:49.000Z
givemedata/__init__.py
sancau/givemedata
cbdb92ef72cb02f01c13f5230162c719b2abf9da
[ "MIT" ]
1
2019-05-17T10:02:23.000Z
2019-05-17T10:02:23.000Z
from .givemedata import Data from .givemedata import get_provider_from_config from .givemedata import init_provider from .version import VERSION as __version__ from . import utils __all__ = [ Data, get_provider_from_config, init_provider, utils, __version__, ]
18.866667
48
0.766784
4a22b0683cd0e415595b45751213c88f0e9b06a6
1,892
py
Python
sgmcmcjax/models/logistic_regression.py
ColCarroll/SGMCMCJax
de1dbf234577fa46ecc98c7c7de4ef547cef52ea
[ "Apache-2.0" ]
null
null
null
sgmcmcjax/models/logistic_regression.py
ColCarroll/SGMCMCJax
de1dbf234577fa46ecc98c7c7de4ef547cef52ea
[ "Apache-2.0" ]
null
null
null
sgmcmcjax/models/logistic_regression.py
ColCarroll/SGMCMCJax
de1dbf234577fa46ecc98c7c7de4ef547cef52ea
[ "Apache-2.0" ]
null
null
null
import warnings import jax.numpy as jnp import numpy as np from jax import grad, jit, random, value_and_grad, vmap from jax.scipy.special import logsumexp # ignore by GPU/TPU message (generated by jax module) warnings.filterwarnings("ignore", message="No GPU/TPU found, falling back to CPU.") def genCovMat(key, d, r...
25.917808
84
0.625264
4a22b1f84750a6bb8208b421dc2634ce7ff20827
3,451
py
Python
SimVascular-master/Externals/Make/2019.06/BuildHelpers/Jupyter/site-packages/simvascular_tcl_kernel/simvascular_tcl_proxy.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Externals/Make/2019.06/BuildHelpers/Jupyter/site-packages/simvascular_tcl_kernel/simvascular_tcl_proxy.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Externals/Make/2019.06/BuildHelpers/Jupyter/site-packages/simvascular_tcl_kernel/simvascular_tcl_proxy.py
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
import threading try: import queue except ImportError: import Queue as queue from threading import Timer from time import sleep class ReplReader(threading.Thread): def __init__(self, repl): super(ReplReader, self).__init__() self.repl = repl self.daemon = True self.queue = q...
31.372727
100
0.583599
4a22b248b277c06e7a3107ea2378a9e2f0ce5376
366
py
Python
codes/models/__init__.py
IceClear/MW-GAN
acb962468c984681c4a21f7b5c14588ca8f58c00
[ "MIT" ]
36
2020-08-12T05:17:42.000Z
2022-03-22T03:02:21.000Z
codes/models/__init__.py
IceClear/MW-GAN
acb962468c984681c4a21f7b5c14588ca8f58c00
[ "MIT" ]
15
2021-01-19T08:24:58.000Z
2021-11-16T15:52:58.000Z
codes/models/__init__.py
RyanXingQL/MW-GAN
562199344e322919a108048acd55b0dd8820df55
[ "MIT" ]
8
2020-10-23T14:15:15.000Z
2021-12-23T02:18:23.000Z
import logging logger = logging.getLogger('base') def create_model(opt): model = opt['model'] if model == 'mwgan': from .MWGAN_model import MWGANModel as M else: raise NotImplementedError('Model [{:s}] not recognized.'.format(model)) m = M(opt) logger.info('Model [{:s}] is created...
24.4
79
0.642077
4a22b381cc5d052fb2bda0408fdf39dfda971da4
788
py
Python
examples/dashboard.py
fusioncharts/fusionexport-python-client
03e5114b79414a81c2f8712c55cc0c3709479922
[ "MIT" ]
1
2018-05-24T09:06:23.000Z
2018-05-24T09:06:23.000Z
examples/dashboard.py
fusioncharts/fusionexport-python-client
03e5114b79414a81c2f8712c55cc0c3709479922
[ "MIT" ]
null
null
null
examples/dashboard.py
fusioncharts/fusionexport-python-client
03e5114b79414a81c2f8712c55cc0c3709479922
[ "MIT" ]
null
null
null
#!/usr/bin/env python from fusionexport import ExportManager, ExportConfig # Import sdk # Instantiate the ExportConfig class and add the required configurations export_config = ExportConfig() export_config["chartConfig"] = "resources/multiple.json" export_config["templateFilePath"] = "resources/template.html" exp...
31.52
73
0.790609
4a22b3e300a6bda689f8300d8475fea172829a89
3,760
py
Python
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_policy_states_by_assignment_id_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListPolicyStatesByAssignmentIdResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. a...
27.647059
89
0.583511
4a22b41ec5d6d147a7ee6042117c262005bcdb07
1,172
py
Python
cli/bandetl/__main__.py
blockchain-etl/band-protocol-etl
84a0819a89fdcbce75efc9f59e0c1286954397c2
[ "MIT" ]
5
2020-08-27T14:27:10.000Z
2021-08-17T14:15:29.000Z
cli/bandetl/__main__.py
blockchain-etl/band-protocol-etl
84a0819a89fdcbce75efc9f59e0c1286954397c2
[ "MIT" ]
4
2020-09-09T16:48:46.000Z
2020-09-22T12:14:50.000Z
cli/bandetl/__main__.py
blockchain-etl/band-etl
84a0819a89fdcbce75efc9f59e0c1286954397c2
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Evgeny Medvedev, evge.medvedev@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # ...
43.407407
80
0.776451
4a22b44912aa4ac2e089dbafca88e788d50340f2
3,788
py
Python
src/compas_igs/ui/Rhino/IGS/dev/IGS_edge_information_cmd.py
BlockResearchGroup/compas-IGS
b40698466b91c867600b94ae2530b19d336ad1b0
[ "MIT" ]
1
2021-11-03T23:22:37.000Z
2021-11-03T23:22:37.000Z
src/compas_igs/ui/Rhino/IGS/dev/IGS_edge_information_cmd.py
BlockResearchGroup/compas-IGS
b40698466b91c867600b94ae2530b19d336ad1b0
[ "MIT" ]
1
2021-11-10T03:27:58.000Z
2021-11-17T13:51:17.000Z
src/compas_igs/ui/Rhino/IGS/dev/IGS_edge_information_cmd.py
BlockResearchGroup/compas-IGS
b40698466b91c867600b94ae2530b19d336ad1b0
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_rhino import scriptcontext as sc find_object = sc.doc.Objects.Find __commandname__ = "IGS_edge_information" def RunCommand(is_interactive): if 'IGS' not in sc.sticky: compas_rhin...
32.655172
167
0.610348
4a22b492f5d9031c6b91cef780b610dcbc296f05
1,933
py
Python
signup/urls/views/__init__.py
djaodjin/djaodjin-signup
24d4b3f4cf139df87aa8c1586763744434346edd
[ "BSD-2-Clause" ]
14
2015-05-20T02:23:57.000Z
2022-01-06T06:37:20.000Z
signup/urls/views/__init__.py
djaodjin/djaodjin-signup
24d4b3f4cf139df87aa8c1586763744434346edd
[ "BSD-2-Clause" ]
33
2016-02-05T15:11:35.000Z
2022-02-21T09:02:06.000Z
signup/urls/views/__init__.py
djaodjin/djaodjin-signup
24d4b3f4cf139df87aa8c1586763744434346edd
[ "BSD-2-Clause" ]
7
2015-06-24T11:27:52.000Z
2021-07-15T07:12:35.000Z
# Copyright (c) 2019, Djaodjin Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
42.021739
78
0.758924
4a22b5eadcb6275a54207f40bd53dfe025d98ba2
2,907
py
Python
proyectos/models.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
proyectos/models.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
proyectos/models.py
luisfarfan/django_intranetapp
bb7e0c08706d8fdf9b1eae437baa1f5850dbd0bd
[ "Apache-2.0" ]
null
null
null
from django.db import models from sistemas.models import Sistema from django.contrib import admin class Proyecto(models.Model): id_siga = models.IntegerField() nombre = models.CharField(max_length=100) sigla = models.CharField(max_length=50, null=True, blank=True) anio = models.IntegerField() desc...
39.283784
102
0.718266
4a22b78013cbb509ef1cb2a708c6e4c54575197d
20,043
py
Python
astropy/utils/compat/futures/_base.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
3
2018-03-20T15:09:16.000Z
2021-05-27T11:17:33.000Z
astropy/utils/compat/futures/_base.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
astropy/utils/compat/futures/_base.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. import logging import threading import time from collections import namedtuple from ....extern.six.moves import zip __author__ = 'Brian Quinlan (brian@sweetapp.com)' FIRST_COMPLETED = 'FIRST_COMPLETED' FIRST_EXCE...
31.317188
79
0.601257
4a22b78eb15a4ec30f80e107c4b0b1e167a5dfaf
9,977
py
Python
examples/text/babi_rnn.py
SoucheLab/TensorFlow2-Examples
c9c6f7b5085795a599de7d9aaf96162981f5d92f
[ "MIT" ]
5
2019-10-25T06:17:42.000Z
2020-02-13T19:22:01.000Z
examples/text/babi_rnn.py
SoucheLab/TensorFlow2-Examples
c9c6f7b5085795a599de7d9aaf96162981f5d92f
[ "MIT" ]
null
null
null
examples/text/babi_rnn.py
SoucheLab/TensorFlow2-Examples
c9c6f7b5085795a599de7d9aaf96162981f5d92f
[ "MIT" ]
null
null
null
# coding=utf-8 ''' Trains two recurrent neural networks based upon a story and a question. ''' import tarfile import re from functools import reduce import numpy as np import tensorflow as tf from argparse import Namespace # 指定GPU并配置GPU PHYSICAL_DEVICES = tf.config.experimental.list_physical_devices('GPU') if PHYSICAL...
42.097046
116
0.601784
4a22b7dbc07084ae25b46e5205452881fde9b892
1,536
py
Python
i3-chrome-tab-dragging.py
moritzhoewer/i3-chrome-tab-dragging
c3abd0933e5c82106cd1cd44ed8d9f078a6f59a8
[ "MIT" ]
20
2020-03-29T16:59:54.000Z
2022-03-14T11:05:09.000Z
i3-chrome-tab-dragging.py
moritzhoewer/i3-chrome-tab-dragging
c3abd0933e5c82106cd1cd44ed8d9f078a6f59a8
[ "MIT" ]
4
2020-03-29T20:28:25.000Z
2022-01-22T14:28:15.000Z
i3-chrome-tab-dragging.py
moritzhoewer/i3-chrome-tab-dragging
c3abd0933e5c82106cd1cd44ed8d9f078a6f59a8
[ "MIT" ]
3
2020-03-29T16:56:33.000Z
2020-05-14T10:46:00.000Z
#!/usr/bin/env python3 # vi:expandtab tabstop=4 # This is intended to be run when i3 starts it will exit on restart; make sure # to use "exec_always --no-startup-id" to run this from pynput.mouse import Listener, Button from i3ipc import Connection, Event # Constants browser_classes = [ "Google-chrome", "Chrom...
27.927273
96
0.686198
4a22bc0687d552e1b794261fcc3e402fa5a0e209
38,458
py
Python
src/silx/gui/plot/tools/profile/manager.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
94
2016-03-04T17:25:53.000Z
2022-03-18T18:05:23.000Z
src/silx/gui/plot/tools/profile/manager.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
2,841
2016-01-21T09:06:49.000Z
2022-03-18T14:53:56.000Z
src/silx/gui/plot/tools/profile/manager.py
tifuchs/silx
4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7
[ "CC0-1.0", "MIT" ]
71
2015-09-30T08:35:35.000Z
2022-03-16T07:16:28.000Z
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2018-2021 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
35.609259
90
0.621847
4a22bc17148d681878ca132d169b721d5a9e4257
1,472
py
Python
analysis_liveTrade/data_definition.py
rindhane/stock_options
8dcf324c9203102cd53549945740d213ce3bbfcf
[ "MIT" ]
null
null
null
analysis_liveTrade/data_definition.py
rindhane/stock_options
8dcf324c9203102cd53549945740d213ce3bbfcf
[ "MIT" ]
null
null
null
analysis_liveTrade/data_definition.py
rindhane/stock_options
8dcf324c9203102cd53549945740d213ce3bbfcf
[ "MIT" ]
null
null
null
from utilities.general.class_builders import self_setup_class from utilities.data_analysis import ( Data, Source_Json) import pandas import os #---------constants-------------- DATA1=os.path.d...
29.44
84
0.595788
4a22bc2bcb47b128e97392693aaabf99de70023c
15,065
py
Python
superset/connectors/druid/views.py
Visortech-Solutions/incubator-superset
4b33597e521e07d1ec74cdbda761e103814f60a2
[ "Apache-2.0" ]
1
2020-08-31T17:22:25.000Z
2020-08-31T17:22:25.000Z
superset/connectors/druid/views.py
Visortech-Solutions/incubator-superset
4b33597e521e07d1ec74cdbda761e103814f60a2
[ "Apache-2.0" ]
1
2020-08-02T04:42:57.000Z
2020-08-02T04:42:57.000Z
superset/connectors/druid/views.py
Visortech-Solutions/incubator-superset
4b33597e521e07d1ec74cdbda761e103814f60a2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.289604
88
0.627946
4a22bc4ed8129dac80ccf03075cfd2cb8144d144
4,734
py
Python
homeassistant/components/hunterdouglas_powerview/__init__.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hunterdouglas_powerview/__init__.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hunterdouglas_powerview/__init__.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""The Hunter Douglas PowerView integration.""" import logging from aiopvapi.helpers.aiorequest import AioRequest from aiopvapi.helpers.api_base import ApiEntryPoint from aiopvapi.helpers.tools import base64_to_unicode from aiopvapi.rooms import Rooms from aiopvapi.scenes import Scenes from aiopvapi.shades import Shad...
33.814286
87
0.741022
4a22bcb559cc3125095f4d73fd2ca3b0b60ba261
2,991
py
Python
mbuild/atb_client.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/atb_client.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
mbuild/atb_client.py
dcardenasv/mbuild
20c13f6bb66c6b023b07d7a2b2e4ad0a5073d727
[ "MIT" ]
null
null
null
import httplib2 try: from HTMLParser import HTMLParser except ImportError: from html.parser import HTMLParser import urllib import warnings class SearchResultHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.molids = {} def handle_starttag(self, tag, attrs): ...
30.835052
96
0.573387
4a22bcb814bb3ca074aea1a62352b3e433bc4faf
2,760
py
Python
hyfed-server/pca_server/serializer/pca_serializers.py
AnneHartebrodt/hyfed-pca
57c009d17d00524f216d57f4fd3fb8732c3fccce
[ "Apache-2.0" ]
1
2021-06-15T17:29:31.000Z
2021-06-15T17:29:31.000Z
hyfed-server/pca_server/serializer/pca_serializers.py
AnneHartebrodt/hyfed-pca
57c009d17d00524f216d57f4fd3fb8732c3fccce
[ "Apache-2.0" ]
null
null
null
hyfed-server/pca_server/serializer/pca_serializers.py
AnneHartebrodt/hyfed-pca
57c009d17d00524f216d57f4fd3fb8732c3fccce
[ "Apache-2.0" ]
null
null
null
""" Pca project serializer to serialize project specific fields Copyright 2021 'My Name'. 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://ww...
36.8
117
0.717391
4a22bd218540f794edc37a37267f98b3597afa6a
24,145
py
Python
test/functional/rpc_rawtransaction.py
CommanderXanon/Xcoin
58c8daa1346e1b5f563d457c475c7f2804596551
[ "MIT" ]
null
null
null
test/functional/rpc_rawtransaction.py
CommanderXanon/Xcoin
58c8daa1346e1b5f563d457c475c7f2804596551
[ "MIT" ]
1
2020-06-20T00:39:21.000Z
2020-06-21T02:32:33.000Z
test/functional/rpc_rawtransaction.py
CommanderXanon/Xcoin
58c8daa1346e1b5f563d457c475c7f2804596551
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-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. """Test the rawtransaction RPCs. Test the following RPCs: - createrawtransaction - signrawtransacti...
54.626697
233
0.64738
4a22bd5fad9da20694985c416fe9a602feea21cf
15,905
py
Python
quaternion_layers/norm.py
heheqianqian/DeepQuaternionNetworks
199d261f080896c9408e771f980b8a98e159f847
[ "MIT" ]
null
null
null
quaternion_layers/norm.py
heheqianqian/DeepQuaternionNetworks
199d261f080896c9408e771f980b8a98e159f847
[ "MIT" ]
1
2020-01-03T17:03:45.000Z
2020-01-04T00:02:46.000Z
quaternion_layers/norm.py
heheqianqian/DeepQuaternionNetworks
199d261f080896c9408e771f980b8a98e159f847
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Authors: Chase Gaudet # code based on work by Chiheb Trabelsi # on Deep Complex Networks git source # # Implementation of Layer Normalization and Quaternion Layer Normalization import numpy as np from keras.layers import Layer, InputSpec from keras import initializer...
41.204663
111
0.569821
4a22bdaf657ee0043b9654a4d83d082c5b111bfe
12,595
py
Python
pyleecan/Generator/ClassGenerator/compare_method_generator.py
tobsen2code/pyleecan
5b1ded9e389e0c79ed7b7c878b6e939f2d9962e9
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Generator/ClassGenerator/compare_method_generator.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Generator/ClassGenerator/compare_method_generator.py
ecs-kev/pyleecan
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
from ...Generator import TAB, TAB2, TAB3, TAB4, TAB5 from ...Generator.read_fct import is_list_pyleecan_type, is_dict_pyleecan_type def generate_compare(gen_dict, class_dict): """Generate the code for the compare method of the class Parameters ---------- gen_dict : dict Dict with key = class ...
35.679887
97
0.378722