text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
Stackdriver/heapster
vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
Python
apache-2.0
71,563
[ "CDK" ]
ddb0c0f8d8acfd9b91ec4c93dc4df65ee70efdbc39f5355ffa3716aef4538fee
"""A test that subscribes to NumPy arrays. Currently the timing of this example is not accurate as it depends on the subscriber and publisher being started at exactly the same moment. We should use a REQ/REP side channel to synchronize the two processes at the beginning. """ #-----------------------------------------...
mgadi/naemonbox
sources/psdash/pyzmq-13.1.0/examples/pubsub/subscriber.py
Python
gpl-2.0
1,795
[ "Brian" ]
2b04762e36f92e33a195fede0176353ed1cfc8eecdb3847254aadc0ddc889fa2
import os import sys import pybel import openbabel as ob from rfscore.config import config, logger def get_molecule(path): """ Reads a molecular structure with Open Babel. """ if os.path.exists(path): # DETERMINE FILE FORMAT filename, filetype = os.path.splitext(path) ...
huizhuzhao/rfscore
ob.py
Python
mit
2,854
[ "Open Babel", "Pybel" ]
1e6b4a374b1014523cfab0715b7f2f432f7898c699511c1cbaef9f6310a6db23
'''Utilities.py - Tools for writing reproducible scripts ========================================================= The :mod:`Utilities` modules contains utility functions for argument parsing, logging and record keeping within scripts. This module is imported by most UMI-tools tools. It provides convenient and consis...
CGATOxford/UMI-tools
umi_tools/Utilities.py
Python
mit
56,155
[ "Galaxy" ]
df93387cf40e799d62ce2502d5173a0a604eedf222849223a105541f6b9e4d4e
"""Actions to save and load a MayaVi2 visualization file. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Standard library imports. import sys from os.path import isfile # Enthought library imports. from pyface.api import FileDialog, OK from pyf...
liulion/mayavi
mayavi/action/save_load.py
Python
bsd-3-clause
4,447
[ "Mayavi" ]
821d8916c360a64b36e0375f08c97cc5024cb05415b0bb338044a2de2c2e7207
''' .. Created on Nov 25, 2013 .. codeauthor:: Robert Langlois <rl2528@columbia.edu> ''' import scipy.fftpack import numpy import logging import math _logger = logging.getLogger(__name__) _logger.setLevel(logging.DEBUG) try: from ..spi import _spider_ctf _spider_ctf; except: _spider_ctf=None from arac...
ezralanglois/arachnid
arachnid/core/image/ctf/correct.py
Python
gpl-2.0
8,199
[ "Gaussian" ]
73d780c84ea445f3d910d34466acb559a2a2f0291153a29bf75c91071f81a103
import vtk from numpy import random import numpy as np import vtk.util.numpy_support as converter import time import cv2 import itertools class VtkText: def __init__(self, text, pos): self.text = text self.pos = pos def get_vtk_text(self): txt = vtk.vtkTextActor() txt.SetInput...
sameeptandon/sail-car-log
process/VtkRenderer.py
Python
bsd-2-clause
10,375
[ "VTK" ]
521fb10daf6d3f51a22849bb39f2e877b6a5f653afb6d140c4bccb2d4e066490
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
smu/parser/smu_utils_lib_test.py
Python
apache-2.0
55,448
[ "RDKit" ]
2d9a88e7e2f57f2d6d6090e4fc9fb7c0d9a23c8122c65bcfbd860821149a63e7
#!/usr/bin/env python """genericReports.py: Reports common to all openHDS-based HDSS sites.""" __email__ = "nicolas.maire@unibas.ch" __status__ = "Alpha" import os from difflib import SequenceMatcher from datetime import date, datetime import csv import operator import xlwt import reportLib as rL def get_all_visit...
SwissTPH/openhds-su2
su2/lib/genericReports.py
Python
gpl-2.0
37,642
[ "VisIt" ]
1c13b1a9b718cc74f9732f4c60825add3d0b614a28a10e3b73d52e54936f50e3
# A Tinkerer's Assembler for the 6502/65c02/65816 in Forth # Scot W. Stevenson <scot.stevenson@gmail.com> # First version: 24. Sep 2015 # This version: 24. Dec 2016 # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
scotws/tinkasm
old/tinkasm_201612.py
Python
gpl-3.0
67,750
[ "TINKER" ]
d4e14ec2bdb7d33a7a9408939309bf78ccb5fe58c4e5ccafb60d22056a90740d
# -*- coding: utf8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley # # This file is part of pyzmq # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD, distributed as part o...
ellisonbg/pyzmq
zmq/tests/test_message.py
Python
lgpl-3.0
12,196
[ "Brian" ]
77a0e10583410fd4a2ec1fcb77526c413dd8a4e7d7c129dab611b4b0b8a76f30
#!/usr/bin/env python # coding=utf-8 from biopredyn import resources, workflow, result as res from matplotlib import colors, pyplot as plt import numpy as np from scipy.stats import f from scipy.linalg import svd from scipy.stats import norm from COPASI import CCopasiMethod # required inputs simulation_file = "genera...
TheCoSMoCompany/biopredyn
Prototype/scripts/parameter_estimation.py
Python
bsd-3-clause
5,307
[ "COPASI" ]
2a82814319f236c78b40e3a4866c21a9ba73fac3c3c255900e0c43339ab65dc0
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """A python based tool for interfacial molecules analysis """ # To use a consistent encoding import codecs import os import sys # Always prefer setuptools over distutils try: from setupt...
balazsfabian/pytim
setup.py
Python
gpl-3.0
5,679
[ "MDAnalysis" ]
fb2c79a4230c06b08afe45a00f88863735a40780318c94982136b7b13ccbc629
import os import sys import require from parallel import command def check_run(fname, func, *args, **kwargs): """ Checks if fname exists first before executing func. """ if os.path.exists(fname): print 'Skipped, using %s' % fname return fname else: return func(*args, **kwar...
sujason/thomas
libraries/imgtools.py
Python
mit
15,644
[ "Brian" ]
33b67430c84c0f1103b256cc91f8189ab7b0436f346135a7736c7a84963bef80
"""Classes to compute zred with a color-based red sequence model. """ import numpy as np import esutil import scipy.integrate import scipy.interpolate import copy from .galaxy import GalaxyCatalog from .utilities import interpol, sample_from_pdf class ZredColor(object): """ Class to compute zred galaxy photom...
erykoff/redmapper
redmapper/zred_color.py
Python
apache-2.0
12,361
[ "Galaxy" ]
03f10cae29c18450b47182f786a4cd643769bb52e8bc96ea8fe3eaa4f6046671
# -*- coding: utf-8 -*- # Copyright (c) 2006-2015 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2008 Fabrice Douchant <Fabrice.Douchant@logilab.fr> # Copyright (c) 2009 Mads Kiilerich <mads@kiilerich.com> # Copyright (c) 2009 Vincent # Copyright (c) 2011-2014 Google, Inc. # Copyright (c) 2012 Kevin ...
axbaretto/beam
sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/lint.py
Python
apache-2.0
59,153
[ "VisIt" ]
7a2608ec1d1b2126dd7a428e958ec5324e6c6d9e7515e282d9a0ed43aee9635c
""" This module contains code for detection of doors. """ import freenect import cv2 import numpy as np import time import serial import math import matplotlib.mlab as mlab from matplotlib import pyplot as plt import sys sys.path.append('/usr/lib/python2.7/dist-packages') __name__ = "Kinect" DOOR_FLAG = False DOOR_COU...
amirajdhawan/eYSIP_2015_Depth_Mapping_Kinect
Research/Final Code/Kinect.py
Python
cc0-1.0
39,038
[ "Gaussian" ]
039dda0483e38ea3b1bfb5693d2af0f43f018c8fc71adefbc53d6b4df9ab0fe7
"""Utilities used in the Kadenze Academy Course on Deep Learning w/ Tensorflow. Creative Applications of Deep Learning w/ Tensorflow. Kadenze, Inc. Parag K. Mital Copyright Parag K. Mital, June 2016. """ from __future__ import print_function import matplotlib.pyplot as plt import tensorflow as tf import urllib import...
AlunAlun/synthetic_machine_learning
tensor_flow/libs/utils.py
Python
gpl-3.0
21,361
[ "Gaussian" ]
0d7a1ac9ed87ff9d08e21afa9d838078ed4a75bad41868ea9d6b82944b79f0c0
#!/usr/bin/env python # Based heavily on the Bowtie 2 data manager wrapper script by Dan Blankenberg from __future__ import print_function import argparse import json import os import subprocess import sys DEFAULT_DATA_TABLE_NAME = "kallisto_indexes" def get_id_name(params, dbkey, fasta_description=None): # TOD...
galaxyproject/tools-iuc
data_managers/data_manager_kallisto_index_builder/data_manager/kallisto_index_builder.py
Python
mit
3,466
[ "Bowtie" ]
901ebf9bed3904c9b360c462bb214f289b9d0aa1b6d6290571a8a2171a89b59a
# -*- coding: utf-8 -*- """ Batch visualize skel and surface vtk files """ import sys import os import os.path as op import matplotlib.pyplot as plt from mayavi import mlab from pipeline.make_networkx import makegraph as mg from mombud.vtk_viz import vtkvizfuncs as vf import wrappers as wr import cPickle as pickle # py...
moosekaka/sweepython
cell_pick_viz/vtk_make_many_figs-tester.py
Python
mit
1,735
[ "Mayavi", "VTK" ]
07c609a2835b31687f1f8ea0fd3e8b383533a730eb6e2a6a6a0141d266ff2d4d
#!/usr/bin/python # # Copyright (c) 2017 Ansible Project # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = """ --- mod...
wrouesnel/ansible
lib/ansible/modules/cloud/amazon/elasticache.py
Python
gpl-3.0
20,816
[ "Dalton" ]
8664065111d72f49be56affc44bd9d844f74e7cd6fd61029c7d098aaf57abfd6
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/test/zoo/orca/learn/ray/mxnet/conftest.py
Python
apache-2.0
892
[ "ORCA" ]
c5a39308c520618059e209bb23776ef9bbc2a674b16b25f8517b86fb6b6ba667
# This is the translator that converts Tcl test to python. # Not all Tcl test are translatable. # To ensure that a test can be translated : # 1) do not use Tcl arrays # 2) do not use string substitution except in variable names # eg. obj${i} GetOutput is okay # obj12 GetOutputAs${i} is not okay. # 3) d...
hlzz/dotfiles
graphics/VTK-7.0.0/Utilities/vtkTclTest2Py/vtkTclToPyConvertor.py
Python
bsd-3-clause
19,271
[ "VTK" ]
3b6b41ed351b28a7a565ad76d75e2ec3a54cb9b2e50cac10150d89d4e38b7672
#!/usr/bin/python3 """ Binary heat map generator ``binheat`` converts a description of a binary relation into a PDF image of the relation as a binary heat map (a.k.a. matrix display, adjacency matrix, comparison chart, and probably a bunch of other names as well). Each line of the input (except for blank lines and co...
jwodder/binheat
src/binheat.py
Python
mit
12,371
[ "VisIt" ]
4864db67f83195b07371c235d30c36e65476972440b6c94ad79255e23c54c37e
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
yipenggao/moose
python/chigger/tests/clipping/clip_change.py
Python
lgpl-2.1
1,634
[ "MOOSE", "VTK" ]
c58fc46bea94fb5eca2308a84b00da05adc9726b781f922549ffe4c8c6b60f75
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # restartexe - Back end to restart one or more resource exe units # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the...
heromod/migrid
mig/shared/functionality/restartexe.py
Python
gpl-2.0
5,729
[ "Brian" ]
d5ecaec8674a36aeab73fa3d15b617bcb75aa3f84b423631e0e3b9077861eeb7
# # 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 us...
jlopezmalla/spark
python/pyspark/ml/regression.py
Python
apache-2.0
61,258
[ "Gaussian" ]
37c207fe7e6ec478eb2b587fd666e97d8d348d41179b55b0fb8bb50e1d6f58d0
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
kain88-de/mdanalysis
testsuite/MDAnalysisTests/plugins/memleak.py
Python
gpl-2.0
3,568
[ "MDAnalysis" ]
be5487318287c7680ec83c8aa1eafab84849702a526b010acc1e15a1d71b55ce
from choldate._choldate import cholupdate from kernel_exp_family.estimators.finite.gaussian import compute_b from kernel_exp_family.kernels.kernels import rff_feature_map_grad2_d, \ rff_feature_map_grad_d, rff_feature_map_grad2, rff_feature_map_grad, \ rff_feature_map, rff_feature_map_single import numpy as np...
karlnapf/kernel_exp_family
kernel_exp_family/estimators/finite/develop/gaussian.py
Python
bsd-3-clause
4,504
[ "Gaussian" ]
5709b1b3882a7fcd5fe97d016c7af4be68761d1b8ad18dcd4b62dde26e9b61b1
## # Copyright 2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (http://w...
ULHPC/modules
easybuild/easybuild-easyblocks/easybuild/easyblocks/d/dl_poly_classic.py
Python
mit
2,191
[ "DL_POLY" ]
adf25f88e413e503ea30a16c9a8df20aa1fc5b9d6e160adfd878ae8346cecffd
import json import os import os.path import sys from collections import defaultdict from distutils.command.build_scripts import build_scripts as BuildScripts from distutils.command.sdist import sdist as SDist try: from setuptools import setup, find_packages from setuptools.command.build_py import build_py as ...
Tatsh-ansible/ansible
setup.py
Python
gpl-3.0
7,514
[ "Galaxy" ]
3aac9fd281a3bc9fa92d33fee922cd623401d31216db0889e14bcc9dce21edfe
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import hashlib import time import re import listparser import feedparser import urlnorm from pylyskom import kom, komauxitems, komsession # TODO: # # - presentation för skapade möten # - länk till bloggen från presentationen # - länk till blogginlägget från ...
osks/komfeeder
feedimporter.py
Python
gpl-2.0
12,013
[ "ESPResSo" ]
5e9b13d3893325284c5fdf2ce76d3768f27c92b89436804d382271d1b9ef4006
#!/galaxy/home/mgehrin/hiclib/bin/python """ Read data in UCSC wiggle format and write it to an "array tree" file. usage: %prog array_length output.array_tree < input.wig """ from __future__ import division import sys from bx.arrays.array_tree import * from bx.arrays.wiggle import WiggleReader def main(): ...
bxlab/HiFive_Paper
Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/wiggle_to_array_tree.py
Python
bsd-3-clause
820
[ "Galaxy" ]
e0562c3a11b8edf6593c26eea8f231ff25a392b2070d54491a6f269bedaff5e8
""" This is a procedural interface to the matplotlib object-oriented plotting library. The following plotting commands are provided; the majority have MATLAB |reg| [*]_ analogs and similar arguments. .. |reg| unicode:: 0xAE _Plotting commands acorr - plot the autocorrelation function annotate - annotate som...
unnikrishnankgs/va
venv/lib/python3.5/site-packages/matplotlib/pylab.py
Python
bsd-2-clause
10,782
[ "Gaussian" ]
a083a4410c5a4e0b74f763b2734ef085c2e7d711158295ceacda69756391b1fc
import abc import datetime import enum import typing import jsii import jsii.compat import publication from jsii.python import classproperty import aws_cdk.assets import aws_cdk.aws_iam import aws_cdk.aws_s3 import aws_cdk.core import aws_cdk.cx_api __jsii_assembly__ = jsii.JSIIAssembly.load("@aws-cdk/aws-s3-assets"...
randyzingle/tools
kub/services/archive/cdk/python/sample-app/.env/lib/python3.6/site-packages/aws_cdk/aws_s3_assets/__init__.py
Python
apache-2.0
15,430
[ "CDK" ]
501a0c1a17f197a246f479d05609d78171e01eafa6f74b8c945e4da1d8478fa1
#!/usr/bin/env py27 from ecmwfapi import ECMWFDataServer import numpy as np import datetime as dt import calendar server = ECMWFDataServer() dir = "/automount/agh/Projects/skiefer/" year_first = 1957 year_last = 1957 years_vec = np.arange(year_first, (year_last + 1)) months_vec = np.arange(1, 13) for i in range(...
sebaki/clim-jet-stream
01-code/01-ecmwf-py/a-get-era-40-daily-by-month.py
Python
mit
1,312
[ "NetCDF" ]
6b3a535ba7a5e485ecc689987cda0cde215d8d50d0d011ece88ba7b5b5b33d1f
#!/usr/bin/env python # Testing the new parallel scanner class import os backupdir = os.getcwd() import numpy as np import pysces tbox=pysces.PyscesUtils.TimerBox() import time m=pysces.model('isola2a') ser = pysces.Scanner(m) print "Serial execution..." print "Start: ", tbox.normal_timer('SER') ...
asttra/pysces
pysces/examples/testparscanner.py
Python
bsd-3-clause
2,865
[ "PySCeS" ]
aa85b1c6afb22ebcd4803261f5c37d488188f359d8f4a61976260c192bdeccce
# coding: utf-8 import time import logging import json import io import bz2 from BlobTree import Blob from BlobTree import Tree import storj import Cache class StorjFS: def __init__(self): self.dirty=False self.cache=Cache.Cache(self) try: with open('storjfs.json') as f: ...
utamaro/StorjPoint
StorjPoint/StorjFS.py
Python
mit
6,325
[ "MOE" ]
31a06cc5f8d1cbad5477fe4467910cba0ef2a03cc18346943ba34c242678c001
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2015 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
eustislab/horton
horton/io/iodata.py
Python
gpl-3.0
17,091
[ "CP2K", "Gaussian", "Molpro", "VASP" ]
ddea47b62c2488abb3487eb29fc83ad50f362d44d287998e5921cf6b7835d28a
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
frreiss/tensorflow-fred
tensorflow/python/ops/nn_ops.py
Python
apache-2.0
252,704
[ "Gaussian" ]
0736b1eec24751ec0cd58dd1824c5e3c299338667f00958bd171b8ca0e53a831
# Author: Travis Oliphant 2001 # Author: Nathan Woods 2013 (nquad &c) import sys import warnings from functools import partial from . import _quadpack import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class ...
scipy/scipy
scipy/integrate/_quadpack_py.py
Python
bsd-3-clause
37,352
[ "Gaussian" ]
7757f71e49b29d05ee987afac1450732dc80a0e939a9963c503bb36e7c6b8217
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for SearchIO ExonerateIO parsers.""" import os import unittest from Bio import ...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_SearchIO_exonerate.py
Python
gpl-2.0
92,795
[ "BLAST", "Biopython" ]
3559c50c5e744c0a5ee4bb0a3377048f85f918c30982d04c17938297e19b7730
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
lothian/psi4
psi4/driver/procrouting/dft/dft_builder.py
Python
lgpl-3.0
19,652
[ "Psi4" ]
b729d2384a89ba4c441a2b2dd7c6b82d0a85e529d2af111633b16b66c6aa18b2
# -*- coding: utf-8 -*- """ Copyright (C) 2013-2021 ITB - CNR This file is part of isoSegmenter. isoSegmenter is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
bunop/isoSegmenter
setup.py
Python
gpl-3.0
6,367
[ "Biopython" ]
860a7a968a1521f7ffc4ec7f82977208d65f83ceb8e13523f804862ff4719b6a
#!/usr/bin/env python """ load mWGS Raw Seq Set into OSDF using info from data file """ import os import re from cutlass.WgsRawSeqSet import WgsRawSeqSet import settings from cutlass_utils import \ load_data, get_parent_node_id, list_tags, format_query, \ write_csv_headers, values_to_node_dict, write...
JAX-GM/osdf_submit
nodes/WgsRawSeqSet.py
Python
gpl-3.0
6,097
[ "VisIt" ]
51c3fc942e5d9d04a84714918e3d58e7dea3cf96127c881df212c1915d7aa5cd
# -*- coding:utf-8 -*- # Copyright (c) 2015, Galaxy Authors. All Rights Reserved # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Author: wangtaize@baidu.com # Date: 2015-04-06 import logging from sofa.pbrpc import client from galaxy import master_pb2 STATE_MAP=...
leoYY/galaxy
console/backend/src/galaxy/sdk.py
Python
bsd-3-clause
9,272
[ "Galaxy" ]
f42ef27be13d7edab266ddab612b0f6278c10d9f9b8dd9c853841341dfcab884
#!/usr/bin/python # -*- coding: utf-8 -*- # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
rosmo/ansible-modules-core
windows/win_lineinfile.py
Python
gpl-3.0
6,606
[ "Brian" ]
d0a5d595c2e9282c179fa2bdeaebad6a79604ea6821dd98b9b9d544a5b8970a7
# Copyright (c) 2014 Evalf # # 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, distribute, s...
wijnandhoitinga/nutils
nutils/element.py
Python
mit
43,460
[ "VTK" ]
55b36bfc28a9345e418e8048dd84f34e83a4dfaf0e5cdd8cd2795a45f3288d78
#!/usr/bin/env python """ Script to test the AMFM_decompy package. Version 1.0.11 23/Jan/2021 Bernardo J.B. Schmitt - bernardo.jb.schmitt@gmail.com """ import amfm_decompy import amfm_decompy.pYAAPT as pyaapt import amfm_decompy.pyQHM as pyqhm import amfm_decompy.basic_tools as basic import os.path # Declare the var...
bjbschmitt/AMFM_decompy
bin/AMFM_test.py
Python
mit
1,427
[ "Gaussian" ]
94a99c0901ba095d6ac5754542e73f3026338ace254d9af02cef53eab99c2016
# Version: 0.15+dev """ HEADS UP! ========= You are looking at a heavily modified version of the original [Versioneer](https://github.com/warner/python-versioneer), customized to fit the development of [OctoPrint](https://github.com/foosel/OctoPrint). This version adds * support for inclusion of the current bran...
Salandora/OctoPrint
versioneer.py
Python
agpl-3.0
80,296
[ "Brian" ]
ec4c17dfa362cc47b51f28e757e09e32e4c7fbdc1837d0d08012822b6b59c34c
#!/usr/bin/env python # coding=utf-8 # # IRC Bot to moderate a game of "Werewolf". # # Werewolf is a traditional party game, sometimes known as 'Mafia', # with dozens of variants. This bot is following Andrew Plotkin's rules: # http://www.eblong.com/zarf/werewolf.html # # Code originally based on example bot and irc-b...
Liag/wolfbot
wolfbot.py
Python
gpl-2.0
74,754
[ "CRYSTAL" ]
ef0563df49c8f0d117ea22c74b66e4c794e8246626c885bc1d68a00b367018fb
# Example: Modified non-recursive implementation using # a special Visit() class to signal what should be visited next import types class Node: pass class Visit: def __init__(self, node): self.node = node class NodeVisitor: def visit(self, node): stack = [ Visit(node) ] last_res...
tuanavu/python-cookbook-3rd
src/8/implementing_the_visitor_pattern_without_recursion/example3.py
Python
mit
2,634
[ "VisIt" ]
ecd54b2f5afe8e065750689aee5cc8b48fdd6aa7c9a9e9482780097b37264620
# First-Visit MC Policy Evaluation # Author: Yiheng Zhu # Date: 23th/Nov/2017 import numpy as np import Gridworld ######################## # Deterministic Policy # ######################## # hyperparameters GAMMA = 0.9 # discount rate NUM_EPISODES = 50 # number of episodes def play_one_episode(gridworld, policy): ...
GitYiheng/reinforcement_learning_test
test03_monte_carlo/first_visit_policy_evaluation.py
Python
mit
4,025
[ "VisIt" ]
b5cc6bace92bfde7ab63180e4a099245e4b58ce0a764ae8ace76cf986af1ed03
#!/usr/bin/env python # # Appcelerator Titanium Plugin Packager # # import os, sys, glob, string import zipfile cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) required_plugin_keys = ['version','pluginid','description','copyright','license','minsdk'] plugin_defaults = { 'description':'My p...
gianina-ingenuity/titanium-branch-deep-linking
testbed/x/mobilesdk/osx/5.5.1.GA/plugin/all/build.py
Python
mit
3,034
[ "VisIt" ]
0d1416cb52c1276c7acda6fe83c1f0486f06ff2895e8b873c9fd2c60ecff571c
# Copyright 2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
sebrandon1/nova
nova/virt/xenapi/client/objects.py
Python
apache-2.0
4,742
[ "VMD" ]
a7c273df6fa212c43b07f1e2e434ca9ce202aad9592ecb2b902d744d78371fa6
#!/usr/bin/env python import urllib from Bio import Phylo import sys,os from collections import defaultdict class PrepareTree: def __init__(self,build): self.rings={'crystal': {'include':'False', 'order':6, 'colours':{'crystal_true':'#6dcde1','crystal_false':'#EEE'}, 'color_type':'single', 'item...
protwis/protwis
phylogenetic_trees/PrepareTree.py
Python
apache-2.0
17,154
[ "CRYSTAL" ]
cc810e6a5293f4f019b9495deac02a192b669ef4c39d66a1e0ecb08f3e292a89
from collections import deque import os from .test_utils import TempDirectoryTestCase from pulsar.client.test.test_common import write_config from pulsar.client import submit_job, ClientJobDescription from pulsar.client import ClientOutputs from galaxy.tool_util.deps.dependencies import DependenciesDescription from ga...
galaxyproject/pulsar
test/client_staging_test.py
Python
apache-2.0
8,642
[ "Galaxy" ]
85bd95ad7eb5d987266a7a417752a35fe61eca2d4dbe21467eb7fb220c191d3d
from django.core.management.base import NoArgsCommand from django.http import HttpResponseRedirect, HttpResponse from django.template import loader, Context from django.conf import settings import csv from datetime import datetime from django.core.mail import send_mail from badges.models import * from users.models impo...
forallsystems/21stbadgepathways
badges/management/commands/bulkIssueQueue.py
Python
gpl-2.0
4,327
[ "VisIt" ]
1b00cd3f754a2421416d0081c914e85e6e94357ec5892ea8d18b7b42412bb806
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'venusian' ] test_requirements = [ # TODO: put package test require...
brianthelion/plugnparse
setup.py
Python
mit
1,517
[ "Brian" ]
ed485038c08d30ae6dccf23b01c5a2ddd4a8d1df08562014ac9ac75df49801ba
""" RemoveComprehension turns list comprehension into function calls. """ from pythran.analyses import ImportedIds from pythran.passmanager import Transformation import pythran.metadata as metadata import gast as ast from functools import reduce class RemoveComprehension(Transformation): """ Turns all list...
serge-sans-paille/pythran
pythran/transformations/remove_comprehension.py
Python
bsd-3-clause
5,710
[ "VisIt" ]
cc9529956d0e0c2959b17593c54a08cc83d555d565d86c332da03fb0f66f6c3e
#!/usr/bin/python2.7 """ Do mapping comparisons on a set of graphs Currently needs to be run as follows: scripts/eval-ec2.py """ import os, sys, subprocess, argparse def parse_args(args): parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) pa...
glennhickey/toil-vg
scripts/mapeval-ec2.py
Python
apache-2.0
3,371
[ "BWA" ]
2ce6130ecda4fa27e61ef199c4903ff0fd91e8ed694657c28fd58c2e83584b39
""" Top-level functions to mutate the astroid nodes with `end_col_offset` and `end_lineno` properties. Where possible, the `end_col_offset` property is set by that of the node's last child. fromlineno - existing attribute - one-indexed end_lineno - new attribute - one-indexed ...
RyanDJLee/pyta
python_ta/transforms/setendings.py
Python
gpl-3.0
22,884
[ "VisIt" ]
489c87bed4a7a44df1facd1c2cf8724c3508621feaa637def68c4a6ef04c684c
__author__ = 'george' import os import sys import pysam ### My imports ### from fluff.color import parse_colors from fluff.plot import profile_screenshot from fluff.util import process_groups def profile(args): interval = args.interval datafiles = [x.strip() for x in args.datafiles] annotation = args.ann...
simonvh/fluff
fluff/commands/profile.py
Python
mit
2,024
[ "pysam" ]
cc2723b01024d336314dbaa8ee32075fad812b85cfcb439fae2c81eee91d94e4
# Copyright 2008-2010 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Multiple sequence alignment input/output as alignment objects. The Bio.AlignIO interface...
bryback/quickseq
genescript/Bio/AlignIO/__init__.py
Python
mit
20,615
[ "BioPerl", "Biopython" ]
f59d094d357784a7c4c698c94c926422d30c05f49e362ec608e09d28c92734ad
"""Each ElkM1 area will be created as a separate alarm_control_panel.""" from elkm1_lib.const import AlarmState, ArmedStatus, ArmLevel, ArmUpState from elkm1_lib.util import username import voluptuous as vol from homeassistant.components.alarm_control_panel import ( ATTR_CHANGED_BY, FORMAT_NUMBER, AlarmCon...
mezz64/home-assistant
homeassistant/components/elkm1/alarm_control_panel.py
Python
apache-2.0
9,801
[ "Elk" ]
6e56db7142aab50b0dffdf52ad121e87a98d631e23ef24ae3554e82215962344
# Frame for peri-stimulus time histogram analysis. # # Copyright (C) 2010-2012 Huang Xin # # See LICENSE.TXT that came with this file. from __future__ import division import wx import scipy import threading import Pyro.core import numpy as np import matplotlib matplotlib.use('WXAgg') import matplotlib.gridspec as gri...
chrox/RealTimeElectrophy
Experimenter/GUI/PSTHTuning.py
Python
bsd-2-clause
27,859
[ "Gaussian" ]
70b8e95f7c6a2ba54d46ae29e63182f90a5361f27d91ea10551ddcbf48abf8e7
# -*- coding: utf-8 -*- from nose.tools import eq_ import bot_mock from pyfibot.modules import module_wolfram_alpha from utils import check_re config = {"module_wolfram_alpha": {"appid": "3EYA3R-WVR6GJQWLH"}} # unit-test only APPID, do not abuse kthxbai bot = bot_mock.BotMock(config=config) def test_simp...
EArmour/pyfibot
tests/test_wolfram_alpha.py
Python
bsd-3-clause
981
[ "Galaxy" ]
9b726268e4b379c0d5b6133a7ddc6b65c250859709fb3bbe56011586c15138eb
# Copyright 2013-2021 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) import collections import os.path class Plumed(AutotoolsPackage): """PLUMED is an open source library for free energ...
LLNL/spack
var/spack/repos/builtin/packages/plumed/package.py
Python
lgpl-2.1
10,060
[ "Amber", "ESPResSo" ]
aa90cb70ad46bf4e7c672fd727e50fc974728fcf8f0de43da1f0d72c2892049f
""" A lightweight implementation of an isotropic GSM. """ __license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>' __author__ = 'Lucas Theis <lucas@theis.io>' __docformat__ = 'epytext' from distribution import Distribution from numpy.random import rand, randint, randn from numpy import * from ...
lucastheis/isa
code/models/gsm.py
Python
mit
5,163
[ "Gaussian" ]
e95f73c6f98c04e6c858063f9dfc0eb2de87e0b831093051556d479812b6ad0c
""" A variety of utility functions that are used across a wider framework. Only elements applicable to developing and testing TheanoBatchDTW are present here and some changes from the original framework have been made to allow this code to operate outside the rest of the framework. As a result of this approach, some of...
danielrenshaw/TheanoBatchDTW
theano_batch_dtw/utility.py
Python
apache-2.0
2,600
[ "Gaussian" ]
ea55fcde85dd41a1c0ffd3e1a4e39700ed2f5f51517a1d016b8f928d2ed79619
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi4/psi4
psi4/driver/procrouting/findif_response_utils/__init__.py
Python
lgpl-3.0
1,235
[ "Psi4" ]
d847e43a99db0aaffe5a47d1b698d6175461227bb76e8ed441771db38c769376
""" py.test test of ExecutorDispatcher """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # pylint: disable=protected-access __RCSID__ = "$Id$" from DIRAC.Core.Utilities.ExecutorDispatcher import ( ExecutorState, ExecutorQueues, ) execState = E...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/test/Test_ExecutorDispatcher.py
Python
gpl-3.0
3,478
[ "DIRAC" ]
1eea2d304389c9efa7c61044c737b0f455f9f68785da221d745a82f0c9195ff6
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-14 19:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0010_auto_20161012_1921'), ] operations = [ migrations.AlterField( ...
savoirfairelinux/sous-chef
src/order/migrations/0011_auto_20161014_1901.py
Python
agpl-3.0
1,854
[ "VisIt" ]
a59fee3a6ca13d4783884229865b6e6bcf2f43b883401cccc198aa951055afb9
# Script to plot data from a NetCDF file onto a Basemap from netCDF4 import Dataset import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap # Change the strings according to your dataset nc = Dataset('../data/pottmp.2014.1time.nc') pottmp = nc.variables['pottmp'] lons = n...
jonblower/python-viz-intro
Lesson 4. Mapping using the Basemap library/plotmap.py
Python
bsd-3-clause
913
[ "NetCDF" ]
25df50d708463fc6c26bef8c570a2e6d20348ebfa44d3f2525025ad13df26d48
# # @file TestL3Model.py # @brief L3 Model unit tests # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # $Id$ # $HeadURL$ # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting th...
alexholehouse/SBMLIntegrator
libsbml-5.0.0/src/bindings/python/test/sbml/TestL3Model.py
Python
gpl-3.0
8,988
[ "VisIt" ]
c4d304627ac55a8e03fd9fcfb6ca9a92cfa3c35350be2a5d3aaaf98f931bc462
# Script for visualizing extractMin on a minHeap, step-by-step. # The initial heap is stored in the myHeap variable (in the bottom of the script) # Created by Brian Pedersen def min_heapify(heap, i): left = i * 2 + 1 right = i * 2 + 2 if left < len(heap) and heap[left] < heap[i]: smallest = left else: small...
PeterSR/DM507-Exam
Heaps/extractMin.py
Python
mit
936
[ "Brian" ]
a416fb017398f8df09a20502076ddf2a0c49c3ea0b3a14dd17905ee56cb114f0
#!/usr/bin/env python import numpy import vtk def main(): nc = vtk.vtkNamedColors() # Make a 32 x 32 grid size = 32 rn = vtk.vtkMinimalStandardRandomSequence() rn.SetSeed(1) # Define z values for the topography (random height) topography = numpy.zeros([size, size]) for i in range(s...
lorensen/VTKExamples
src/Python/PolyData/SmoothMeshGrid.py
Python
apache-2.0
4,533
[ "VTK" ]
d6f4ad381317949ae722ff5644d1c6d653abb989f8acf77bc5a95026efeac77e
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides an interface to communicate with the device via the adb command. Assumes adb binary is currently on system path. """ # pylint: disable-all ...
TeamEOS/external_chromium_org
build/android/pylib/android_commands.py
Python
bsd-3-clause
73,459
[ "Galaxy" ]
565e1b99686429414ba32f82ee5b9a06ba2afa01f4b147203984cbd69d771c15
# This is only meant to add docs to objects defined in C-extension modules. # The purpose is to allow easier editing of the docstrings without # requiring a re-compile. # NOTE: Many of the methods of ndarray have corresponding functions. # If you update these docstrings, please keep also the ones in # core...
dwf/numpy
numpy/add_newdocs.py
Python
bsd-3-clause
212,282
[ "Brian" ]
654f36f621b23bfc1a8c27e8424eee59363d192b2cd264b9af02fa741d569387
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','...
hyperlab/TiFXBlurView
iphone/build.py
Python
mit
7,581
[ "VisIt" ]
88d5e086ea5841a86a5dbb0bad108b167b9ceaf06124705adfe23507d5f37777
import subprocess import sys import py import _pytest import pytest MODSET = [ x for x in py.path.local(_pytest.__file__).dirpath().visit("*.py") if x.purebasename != "__init__" ] @pytest.mark.parametrize("modfile", MODSET, ids=lambda x: x.purebasename) def test_fileimport(modfile): # this test ens...
txomon/pytest
testing/test_modimport.py
Python
mit
930
[ "VisIt" ]
ed1eeec8011debcf1233384af20b47e8991ee78809e142e12a1ac40f96d62173
import lrkit.canonical from lrkit import Parser, Rule, rule, SnError from sys import exit specials = { "*": "*", "/": "/", "%": "%", "+": "+", "-": "-", "0": "0", "(": "(", ")": ")", ",": ",", } rules = [ rule("Program", "Expr"), rule("Pr...
cheery/lrkit
demo_raw_grammar.py
Python
mit
1,529
[ "VisIt" ]
b0a58b7d79f24525b8edbb262873350a182abc946686c72bacb24a76c8c24ed0
import tensorflow as tf from .rbm import RBM from .util import sample_bernoulli, sample_gaussian class BGRBM(RBM): def __init__(self, n_visible, n_hidden, sample_visible=False, sigma=1, **kwargs): self.sample_visible = sample_visible self.sigma = sigma RBM.__init__(self, n_visible, n_hidd...
pandeydivesh15/AVSR-Deep-Speech
util/RBM/bgrbm.py
Python
gpl-2.0
2,242
[ "Gaussian" ]
9fca5810598c901f556f07a8dac8370154397e38babc0e74033052f7d8520d85
''' Functions and classes to help build a Fedora Service. ''' __all__ = ('client', 'json', 'tg1utils', 'tg2utils', 'widgets', 'identity', 'utils', 'visit')
nirik/python-fedora
fedora/tg/__init__.py
Python
gpl-2.0
168
[ "VisIt" ]
df5f7ebb603646712615fa3d94511ed1dc62ee7f60aca833677fd575e02d3dc2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import warnings import copy from pymatgen.core.structure import Molecule from pymatgen.analysis.graphs import MoleculeGraph from monty.dev import requires try: import openbabel as ob import pybel as p...
dongsenfo/pymatgen
pymatgen/io/babel.py
Python
mit
13,034
[ "Open Babel", "Pybel", "pymatgen" ]
6226438000b2bc7a2df6efd5649c42f20e691d6f31858195c08b6beeee72da3f
"""A component that provides a selection of implicit widgets to be used by various modules. """ # Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in> # Prabhu Ramachandran <prabhu at aero.iitb.ac.in> # Copyright (c) 2009, Enthought, Inc. # License: BSD Style. import cPickle from traits.api import (Instance, ...
liulion/mayavi
mayavi/components/implicit_widgets.py
Python
bsd-3-clause
10,110
[ "Mayavi", "VTK" ]
6a6ed9c41052e6e0d7aa40a086e61438b1c0347346490ff0c3db0d35d04e17b3
""" @name: Modules/House/Family/Hue/_test/test_Hue_device.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2017-2018 by D. Brian Kimmel @license: MIT License @note: Created on Dec 18, 2017 @summary: Test Passed all 2 tests - DBK - 2018-01-27 """ from Modules.Core.Utilit...
DBrianKimmel/PyHouse
Project/src/Modules/House/Family/Hue/_test/test_Hue_device.py
Python
mit
2,397
[ "Brian" ]
6393943a8b48ddf35975aff7db4559e62d82ace25da704c7a783e1d64e683c0b
"""Additional docstring for the DErrno module.""" import textwrap MODULE = 'DIRAC.TransformationSystem.Client.Transformation' class CustomTransformation(object): # pylint: disable=too-few-public-methods """Add the ERRNO constants to the docstring automatically.""" def __init__(self): """Create a string co...
fstagni/DIRAC
docs/diracdoctools/CustomizedDocs/CustomTransformation.py
Python
gpl-3.0
1,596
[ "DIRAC" ]
40e68a82e7cda6cc05b8ccf7332b8f4a0e02f25c1d66dbb18953cc6c5cc9db91
#!/usr/bin/env python import numpy as np import math def compute_kl(mean_1, log_prec_1, mean_2, log_prec_2): """ compute KL between two Gaussian distributions """ mean_1 = np.asarray(mean_1) log_prec_1 = np.asarray(log_prec_1) mean_2 = np.asarray(mean_2) log_prec_2 = np.asarray(log_prec_2...
balajiln/mondrianforest
src/utils.py
Python
mit
8,057
[ "Gaussian" ]
c03de5ffa74fc6958969b0c330b558f22850e0b55c1dd14411fd863f011d281e
#!/usr/bin/env python from setuptools import setup, Command import versioneer commands = versioneer.get_cmdclass().copy() class Trial(Command): description = "run trial" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): ...
david415/foolscap
setup.py
Python
mit
2,428
[ "Brian" ]
15ebf300e87eff2242a85feb006905772281bc4be676b565851b0bce8384f998
from six import print_ as xprint from six.moves import input import random HANGMANPICS = [''' +---+ | | | | | | =========''', ''' +---+ | | O | | | | =========''', ''' +---+ | | O | | | | | =========''', ''' +---+ | | O |...
Chennaipy/hangman
gallows.py
Python
bsd-2-clause
5,109
[ "MOOSE" ]
96d16257195a7066330c851854f63bdb9c60d708129a0f47388fe41ab4240bcf
#!usr/bin/env python from numba import jit import numpy as np from scipy import sparse as sps try: from numba import jit, njit, prange except: njit = jit = lambda x: x prange = xrange from multiprocessing.pool import ThreadPool as Pool from threading import Thread #from Queue import Queue from time import...
Rinoahu/fastclust
lib/deprecate/spmm.py
Python
gpl-3.0
15,349
[ "VisIt" ]
18f8df4315f07620fb6101092160c665ba8b51789a9ebda67d6d26d40eabf8a9
import deepchem as dc import numpy as np import tensorflow as tf import deepchem.models.tensorgraph.layers as layers from tensorflow.python.eager import context from tensorflow.python.framework import test_util class TestLayersEager(test_util.TensorFlowTestCase): """ Test that layers function in eager mode. """...
ktaneishi/deepchem
deepchem/models/tensorgraph/tests/test_layers_eager.py
Python
mit
34,231
[ "RDKit" ]
ef9b74fbd39c1e8bb15badb05f6a2ab6662ea3b04622ab306ef9c8713c7e0a91
# Version: 0.12 """ The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner (modified by Florian Wilhelm and Felix Wick) * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy [![Build Status](https://travis-ci.org...
andsor/pydevs
versioneer.py
Python
apache-2.0
37,945
[ "Brian" ]
be51df2046fa92b5d6aae768da40fe25b24f3855fb4654192e2239808cf2311a
__package__ = 'archivebox' import os import sys import shutil import platform from pathlib import Path from datetime import date from typing import Dict, List, Optional, Iterable, IO, Union from crontab import CronTab, CronSlices from django.db.models import QuerySet from .cli import ( list_subcommands, run_...
pirate/bookmark-archiver
archivebox/main.py
Python
mit
50,857
[ "VisIt" ]
10d18430bdb01362c4d1e490b1dbd1eaf7cd071f83e0a74740851834178a92e6
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # home documentation build configuration file, created by # sphinx-quickstart on Fri Mar 28 08:27:53 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
d0ugal-archive/home
docs/source/conf.py
Python
bsd-3-clause
10,676
[ "VisIt" ]
60225d43c5eaf04eee39eee3d5063b7fe1671e452d2e4eda0e5f26b75f2f7520
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-simpleaffy/package.py
Python
lgpl-2.1
2,221
[ "Bioconductor" ]
1cfd6b92d4d5348273721cc1fb62157a46ce34fdaba54811e18aca47efec7740
""" ================================= Plotting EEG sensors on the scalp ================================= In this example, digitized EEG sensor locations are shown on the scalp. """ # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) import mne from mne.viz import plot_alignment from mayavi im...
adykstra/mne-python
examples/visualization/plot_eeg_on_scalp.py
Python
bsd-3-clause
797
[ "Mayavi" ]
27e2c17c2fdc968ca4cfcc0156fe8ddc67b05a323f1901f28f4b350411f82f69
import astnode as ast import visitor import astprint from parser import calvin_parse from codegen import query, ReplaceConstants class ExpandRules(object): """docstring for ExpandRules""" def __init__(self, issue_tracker): super(ExpandRules, self).__init__() self.issue_tracker = issue_tracker ...
EricssonResearch/calvin-base
calvin/csparser/dscodegen.py
Python
apache-2.0
8,968
[ "VisIt" ]
4552b4ac2b49ef7d3f59d21d01a0f0f30a29c32df9c9749a4261916c9c113e23
# Copyright (c) 2008-2015 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause r'''The Common Data Model (CDM) is a data model for representing a wide array of data. The goal is to be a simple, universal interface to different datasets. This API is a Pytho...
deeplycloudy/MetPy
metpy/io/cdm.py
Python
bsd-3-clause
13,161
[ "NetCDF" ]
e24688be137b987918689a77b342a8a667ae6e292e2864eda77add39f811647f