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
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
unnikrishnankgs/va
venv/lib/python3.5/site-packages/tensorflow/models/lfads/distributions.py
Python
bsd-2-clause
17,382
[ "Gaussian" ]
08baeda0dda46217df4b9c3c4e5a22e23cc334538c7fadc534f3a3d813496f87
from __future__ import division from __future__ import print_function from past.utils import old_div import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator import pandas as pd import numpy as np # test missing_value handling for ...
michalkurka/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_pubdev_6999_glm_interaction_NA.py
Python
apache-2.0
7,181
[ "Brian" ]
204d49818054beb9d5459290c5281a7a80e28c706c4b1e5d5fbec3ab3b952b4d
############################################################## # Trilogy - Color / grayscale image maker (from FITS input) # Dan Coe # http://www.stsci.edu/~dcoe/trilogy/ ############################################################## # Trilogy produces nice color / grayscale images based on your input FITS files...
moustakas/impy
image/trilogy.py
Python
gpl-2.0
57,974
[ "Galaxy" ]
dc7e23bcb8295d097376fc255cacbe1150673ef57c726305ef07facf7e150b9f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module implements an interface to enumlib, Gus Hart"s excellent Fortran code for enumerating derivative structures. This module depends on a compiled...
aykol/pymatgen
pymatgen/command_line/enumlib_caller.py
Python
mit
15,797
[ "VASP", "pymatgen" ]
0b4f3006fa9e9de604f68e00a93ecb87474615fff07171b827f496c073a51e2b
# Copyright 2021 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...
tensorflow/tensorflow
tensorflow/python/util/nest.py
Python
apache-2.0
66,421
[ "VisIt" ]
8dad6843adf14ef37bdc7db51b2f96955efdc5a5b86a19c0361e607ca0f67351
# coding=utf-8 from __future__ import division import collections as coll import numpy as np from scipy import ndimage as ndi from ..util import img_as_float, regular_grid from ..segmentation._slic import (_slic_cython, _enforce_label_connectivity_cython) from ..color import rgb2lab ...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/skimage/segmentation/slic_superpixels.py
Python
gpl-3.0
7,611
[ "Gaussian" ]
c32f3c2d78e0a384b96f66bfc15f07acfdbf75a6a77d4f7d22d0bfc80287d5cd
print "Loading ", __name__ import poser import Numeric as num from portability import * from geometry import Geometry from hair import HairGeometry def topological_order(children): seen = {} result = [] def visit(v): if not seen.has_key(v): seen[v] = True for w in childr...
odf/pydough
from_poser.py
Python
mit
8,210
[ "VisIt" ]
7184b442c7f60d61919e2ea9ab3895fb515fd994f7347b7c66bc1b888191b489
# -*- coding: utf-8 -*- """ Acceptance tests for CMS Video Module. """ import os from unittest import skipIf from mock import patch from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAu...
proversity-org/edx-platform
common/test/acceptance/tests/video/test_studio_video_module.py
Python
agpl-3.0
12,257
[ "VisIt" ]
0eb020d48acb229aef0b60186fd1e9a981184b9eb630dfaa80f4aa3a6481d436
#!/usr/bin/env python # Copyright 2020 The PySCF Developers. 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...
sunqm/pyscf
pyscf/solvent/_ddcosmo_tdscf_grad.py
Python
apache-2.0
57,033
[ "PySCF" ]
658f08da3f87d80c6d7c676662af6a988c45cadea84b068a6622ae05b25fe831
# (c) 2014 Michael DeHaan, <michael@ansible.com> # # 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 ve...
bjolivot/ansible
lib/ansible/playbook/role/requirement.py
Python
gpl-3.0
8,175
[ "Galaxy" ]
6ef1bb4f417325d9a3792c70da58367ba1786d94e6fb13191e62ce80ffdc67c6
## # title: BreadInterface.Controller.py # by: Brian Kim # description: the bread and butter of BreadInterface. # Developers will subclass the Controller to utilitize # the familiar BreadInterface button layout in addition # to their own app-specific functionality # import pygtk pygtk.require('2.0') import gtk ...
briansan/BreadInterface
py/BreadInterface/core/Controller.py
Python
bsd-2-clause
3,731
[ "Brian" ]
f74f6adf333362780f8a1d7fff1e2c3e25228a98dc994812bf9cfa9451eb7f21
from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import base64 from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities import DEncode gForceRawEncoding = False try: import zlib gZCompressionEnabled = True except Impor...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/Plotting/FileCoding.py
Python
gpl-3.0
3,101
[ "DIRAC" ]
1acdcb533012422417d8517b29528922f5a217ea09d60785d3f5ba225e57663a
import glob import gbtpipe from spectral_cube import SpectralCube import astropy.units as u from astropy.table import Table from astropy.utils.data import get_pkg_data_filename from astropy.coordinates import SkyCoord import numpy as np from astropy.convolution import Kernel1D import scipy.ndimage as nd from astropy.io...
low-sky/degas
degas/postprocess.py
Python
gpl-3.0
14,599
[ "Galaxy" ]
1e59cf7504700d51cd230d077610dd45080ef3296ec39ebf55cbdd6250492004
#!/usr/bin/env python """ This script is a python version of TimingAccuracyGLQC. We use numpy functions to simplify the creation of random coefficients. """ import os import sys import time import numpy as np sys.path.append(os.path.join(os.path.dirname(__file__), "../../..")) import pyshtools as shtools #==== MAIN ...
ian-r-rose/SHTOOLS
examples/python/TimingAccuracy/TimingAccuracyGLQC.py
Python
bsd-3-clause
2,760
[ "Gaussian" ]
305c88af87922020d16ba0c0fc32a6fadea5089354936f642d35b3cbf01e3dae
# $Id: manpage.py 5901 2009-04-07 13:26:48Z grubert $ # Author: Engelbert Gruber <grubert@users.sourceforge.net> # Copyright: This module is put into the public domain. """ Simple man page writer for reStructuredText. Man pages (short for "manual pages") contain system documentation on unix-like systems. The pages ar...
mozilla/sheriffs
vendor-local/src/python-nose/doc/manpage.py
Python
bsd-3-clause
35,499
[ "VisIt" ]
c6e9a8a5e363266eef9f9ec82fb887b477a23ffda46f0e4eaedaa01567fdca14
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
jralls/gramps
gramps/plugins/webreport/repository.py
Python
gpl-2.0
11,355
[ "Brian" ]
8359e4049388d1b33fc2dbaac8f8e0f059654f37196eb63bcee3ba6132ac0328
#Plots a lot of the various quantities that cna be extracted from emission lines ''' ''' import numpy as np import matplotlib.pyplot as plt from astropy.io import ascii import sys, os, string import pandas as pd from astropy.io import fits import collections #Folder to save the figures figout = '/Users/blorenz/COSMO...
brianlorenz/COSMOS_IMACS_Redshifts
PlotCodes/ReadEmission.py
Python
mit
24,020
[ "Galaxy", "Gaussian" ]
aec758e3c0d3710106a5d9ccb1b48dca8b5f1fb13544526a261e2efc725e310a
from ase.calculators.gaussian import Gaussian from ase.atoms import Atoms from ase.optimize.lbfgs import LBFGS # First test to make sure Gaussian works calc = Gaussian(method='pbepbe', basis='sto-3g', force='force', nproc=1, chk='water.chk', label='water') calc.clean() water = Atoms('OHH', ...
grhawk/ASE
tools/ase/test/gaussian/water.py
Python
gpl-2.0
856
[ "ASE", "Gaussian" ]
2c95802741dd8bf022aeaba229f0740e267e57814c9975dcc1e30ed82b9c4041
from Sire.MM import * from Sire.FF import * from Sire.Vol import * from Sire.IO import * from Sire.System import * from Sire.Move import * from Sire.Maths import * from Sire.Units import * from Sire.Mol import * from Sire.Qt import * import Sire.Stream from nose.tools import assert_almost_equal import math coul_cu...
michellab/SireUnitTests
unittests/SireMM/test_gridff.py
Python
gpl-3.0
4,170
[ "Amber" ]
705450f72783eb6f0e6c86b9ea690682ccd09d526fb6f54ec41d45cbf765695a
#!/usr/bin/env python from pycparser import c_ast, parse_file from subprocess import Popen, PIPE import sys import os import argparse HERE = os.path.dirname(__file__) DOXY_RELDIR = 'doxygen/html' def skip_name(name): return name[0] == '_' class DocItemCollector(c_ast.NodeVisitor): def __init__(self): ...
amirkdv/biseqt
docs/doxygen-glue.py
Python
bsd-3-clause
3,283
[ "VisIt" ]
c688b6d16aefbf1299040d6f2f2b10be9fc19e33a526e3c32fc4829ac3d9faf1
import logging import re import os import select import signal try: import autotest.common as common except ImportError: import common from autotest.client import utils, os_dep from autotest.client.shared import error from autotest.client.shared.utils import VersionableClass class ServiceManagerInterface(Vers...
uni-peter-zheng/autotest
client/shared/openvswitch.py
Python
gpl-2.0
18,628
[ "ASE" ]
b5c7d8abd785161a6e86f489241e9facf34f4e97cf0fa0f9537189c2715032fd
# Layer implementing a Gaussian mixture model. # Implementation largely follows https://github.com/fchollet/keras/issues/1061. # In contrast to the original code, the loss was divided by sqrt(2 pi) to use the same Gaussian as in numpy.random.norm from keras.layers import Layer # TODO: This is only implemented for the...
jrieke/timeseries-rnn
gmm.py
Python
mit
2,430
[ "Gaussian" ]
af1295eeefac4a482ad1e205e7ad2749d8ff9416257e65500fefe8f57f486940
import numpy as np from keras.callbacks import Callback from keras import backend as K class DeadReluDetector(Callback): """Reports the number of dead ReLUs after each training epoch ReLU is considered to be dead if it did not fire once for entire training set # Arguments x_train: Training datas...
keras-team/keras-contrib
keras_contrib/callbacks/dead_relu_detector.py
Python
mit
4,682
[ "NEURON" ]
c5a79b0bd7b37b284b0b73aec44e18098207e85d5d18b754cadf8f41f4a3d09f
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright 1996-2017 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By co...
Warboss-rus/wargameengine
WargameEngine/freetype2/src/tools/glnames.py
Python
gpl-3.0
112,194
[ "FEFF" ]
bd164329d8343a988299b926e13abd8a5d99c257645a31d3fcbb7ee55cfd91f7
# -*- encoding: utf-8 -*- """Prints the location of python object definition in your file-system. """ from __future__ import print_function import sys import argparse import importlib import inspect import re import os from textwrap import dedent import ast from collections import namedtuple # =============== # # Co...
nicolasdespres/pyloc
pyloc.py
Python
bsd-2-clause
14,893
[ "VisIt" ]
474914a2efe59f28dfa2918f2c42730ccfb1762ccfda07477c21150d998033bb
""" =========================================== Simulation of the Fermi-Pasta-Ulam problem =========================================== Visit "https://github.com/libeanim/fpu-problem" for further information. :license: GPLv2 :date: 05.03.2015 """ import numpy as np import matplotlib.pyplot as plt import matplotlib...
libeanim/fpu-problem
fpu-simulation.py
Python
gpl-2.0
5,477
[ "VisIt" ]
a06cd63bbb7cbe55fbf8bd1dceac0091c1c7c2115e51a01abd10bc0e070889d5
#!/usr/bin/env ganga import sys import argparse # Taken from # http://stackoverflow.com/questions/4042452/display-help-message-with-python-argparse-when-script-is-called-without-any-argu class MyParser(argparse.ArgumentParser): def error(self, message): sys.stderr.write('error: %s\n' % message) s...
nasfarley88/gangarun
gangarun.py
Python
gpl-2.0
2,692
[ "DIRAC" ]
cda7e606b6b159909b760d65ccb91fab773c26d7b1f9193905fb5840defae877
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2013 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
tjrileywisc/annoy
setup.py
Python
apache-2.0
2,736
[ "VisIt" ]
cfe4ff08434e6c58e34bda0de4f703b0789717753f530fd5d10fbaa283cf0a9e
""" QAPI types generator Copyright IBM, Corp. 2011 Copyright (c) 2013-2018 Red Hat Inc. Authors: Anthony Liguori <aliguori@us.ibm.com> Michael Roth <mdroth@linux.vnet.ibm.com> Markus Armbruster <armbru@redhat.com> This work is licensed under the terms of the GNU GPL, version 2. # See the COPYING file in the top-l...
dslutz/qemu
scripts/qapi/types.py
Python
gpl-2.0
8,788
[ "VisIt" ]
93534e1570b677405fe9e8fd32c6ac4a7e47d812d5dc8a4cfb27605cb67d7104
#------------------------------------------------------------------------------ # askremote.py # # (C) 2001-2006 by Marco Paganini (paganini@paganini.net) # # This file is part of ASK - Active Spam Killer # # ASK is free software; you can redistribute it and/or modify # it under the terms of the GNU General Publi...
celer/ask
askremote.py
Python
gpl-2.0
28,965
[ "VisIt" ]
ec929307de70c8b471dac0137d37bf0686718a89ada41f389d9d22a75da39e41
""" The name list was sourced from UCD and DCU project https://www.duchas.ie/en/nom first names from Northern Ireland Statistics and Research Agency https://www.nisra.gov.uk/publications/baby-names-2016 1996 series """ from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( ...
joke2k/faker
faker/providers/person/en_IE/__init__.py
Python
mit
58,684
[ "Amber", "Brian", "Dalton", "Desmond" ]
d0977baeca1762a1fd04c72c01764c2856d3b7f611b6e22707c0b56c717ac353
#!/usr/bin/env python # 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. '''Unit tests for grit.tool.android2grd''' import os import sys if __name__ == '__main__': sys.path[0] = os.path.abspath(os.path...
leighpauls/k2cro4
tools/grit/grit/tool/android2grd_unittest.py
Python
bsd-3-clause
7,230
[ "xTB" ]
a52682510cda2a592b5d7a8787ea0c47a6d8623f5102a30d854555549d2c9ba9
import optparse from ase.units import Bohr, Hartree from ase.tasks.calcfactory import CalculatorFactory, str2dict from gpaw.utilities.gpts import get_number_of_grid_points from gpaw.wavefunctions.pw import PW class GPAWFactory(CalculatorFactory): def __init__(self, show_text_output=False, write_gpw_file=None, ...
robwarm/gpaw-symm
gpaw/factory.py
Python
gpl-3.0
3,562
[ "ASE", "GPAW" ]
6b15a1b1a1975b0182ab8dc8a39a3c2457988b47f7ad252036dd5cfea7506804
""" Manages the feed cache. @var iface_cache: A singleton cache object. You should normally use this rather than creating new cache objects. """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. # Note: # # We need to know the modification time of each interface, b...
timdiels/0install
zeroinstall/injector/iface_cache.py
Python
lgpl-2.1
19,732
[ "VisIt" ]
2baab3c7ef1abd916d3535b1756f7c2d3a1a98aba34f2296144f1c0711e8d0db
# -*- coding: utf-8 -*- # # Python Audio Tools documentation build configuration file, created by # sphinx-quickstart on Wed Mar 17 10:20:37 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated fi...
R-a-dio/python-audio-tools
docs/programming/source/conf.py
Python
gpl-2.0
6,353
[ "Brian" ]
73e1621b1d1302f4c1f491b4ba7a69aea123ccdbd684c9aa6dbf191938a13679
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/wait/IsWaiting.py
Python
gpl-3.0
1,875
[ "ORCA" ]
467af9ed366278cd907eca943a830c6be5b405b13279a2cf0534413eb929df04
#!/usr/bin/python import sys import os import unittest from pyuppaal.ulp import lexer from pyuppaal.ulp.systemdec_parser import SystemDeclarationParser class TestBasicParsing(unittest.TestCase): def test_parse_very_simple_systemdec(self): sysdec = """system Process;""" #lex = lexer.lexer ...
bencaldwell/pyuppaal
tests/ulp/test_systemdec_parser.py
Python
gpl-3.0
11,350
[ "VisIt" ]
e09a8417bd4b404fc1ab24fc046edde61ae821c424528794083967df6ecc3ee0
from setuptools import setup, find_packages import account setup( name="django-user-accounts", version=account.__version__, author="Brian Rosner", author_email="brosner@gmail.com", description="a Django user account app", long_description=open("README.rst").read(), license="MIT", url=...
ntucker/django-user-accounts
setup.py
Python
mit
1,065
[ "Brian" ]
3d5b6019d6d2f9f0f62cc54b184e924938d10ba28d7d54bc10099f78b538bc97
# standard modules import datetime import copy import logging import os import subprocess import sys # 3rd party modules from configobj import ConfigObj import numpy from PyQt5 import QtWidgets import timezonefinder import xlrd # PFP modules cwd = os.getcwd() sys.path.insert(0, cwd[:cwd.index("utilities")-1]) import sc...
OzFlux/PyFluxPro
utilities/cleanup_netcdf_files.py
Python
gpl-3.0
30,037
[ "NetCDF" ]
2e076f90848f42248de62fa4d0f5f604e167702d11156c4dd93a6485f2932bfe
# -*- coding: utf-8 -*- """ Created on Thu Nov 23 11:23:03 2017 @author: tih """ import numpy as np import os import scipy.interpolate import gdal from openpyxl import load_workbook import osr from datetime import datetime, timedelta import pandas as pd import shutil import glob from netCDF4 import Dataset import warn...
wateraccounting/SEBAL
PreSEBAL/preSEBAL_light.py
Python
apache-2.0
51,271
[ "NetCDF" ]
2056b3cfc81d6844ad37e380188f27fd32898931313da449068103c338501753
""" Few unit tests for LCG clients """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import mock from datetime import datetime, timedelta from DIRAC.Core.LCG.GOCDBClient import GOCDBClient mockRSS = mock.MagicMock() GOCCli = GOCDBCli...
ic-hep/DIRAC
src/DIRAC/Core/LCG/test/Test_LCG.py
Python
gpl-3.0
30,476
[ "DIRAC" ]
6349a37943af04399d408688f44b7f1bf779f02bf0e815c8617adaa29a9f677b
sections={ 'varbas': { 'title': "BASIC variables", 'header': "ABINIT, basic input variables:", 'text': """This document lists and provides the description of the name (keywords) of the "basic" input variables to be used in the main input file of the abinit code. """, }, 'vardev': { 'title': "DEVELOPMENT variables", 'he...
SamKChang/abinit-7.10.5_multipole
doc/input_variables/GAF_not_activated/ABINIT_sections.py
Python
gpl-3.0
5,087
[ "ABINIT", "Wannier90" ]
ef81c124b2d1dcdf0d1264fc61edc2d9313d1eb1e82b4428d6bc09603437401e
#!/usr/bin/env python # coding: utf-8 # # Advanced: Distribution Types # ## Setup # # Let's first make sure we have the latest version of PHOEBE 2.3 installed (uncomment this line if running in an online notebook session such as colab). # In[1]: #!pip install -I "phoebe>=2.3,<2.4" # In[2]: import phoebe from ...
phoebe-project/phoebe2-docs
development/tutorials/distribution_types.py
Python
gpl-3.0
7,854
[ "Gaussian" ]
3c68bd7607ac0f7bada8558b78ac4acc82d65dc1d36b0a6d38f2185e43553375
""" Simple Python template file allowing users to define intent resposnes (convention is lowercase intent name from your intentsSchema and Utterances) as a function; leaving all the lambda skill service details to the alexa_py.py file. Intents implemented here for example: About Contact Upcoming Intents support...
wray/alexa_python
src/my_py.py
Python
mit
1,726
[ "COLUMBUS" ]
7efb618a0c3fce32119f717df589e7ef12fb0d47c9b9918f5fcbfb8eb855a28f
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.community.SunMibMonitor
ZenPacks/community/SunMibMonitor/modeler/plugins/community/snmp/SUNProcessMap.py
Python
gpl-2.0
2,322
[ "VisIt" ]
c9f1deba79680edb1d83bd97a7a561b5cc76d0440f5a990e9d018f73188bfd6d
from copy import deepcopy from enum import Enum from functools import reduce from math import inf, isinf from typing import List, Tuple from abstract_domains.lattice import BottomMixin from abstract_domains.numerical.dbm import IntegerCDBM from abstract_domains.numerical.interval_domain import IntervalLattice, Interva...
gitsimon/spadup-lyra
abstract_domains/numerical/octagon_domain.py
Python
mpl-2.0
29,159
[ "VisIt" ]
428332c85602d26145ee49fffb59b74cfcdbdea564ca4cf90fa11d44855681de
import os if not os.path.exists("temp"): os.mkdir("temp") def mc_test(): import os import numpy as np from pyemu import MonteCarlo, Cov jco = os.path.join("pst","pest.jcb") pst = jco.replace(".jcb",".pst") out_dir = os.path.join("mc") if not os.path.exists(out_dir): os.mkdir(o...
jtwhite79/pyemu
autotest/mc_tests.py
Python
bsd-3-clause
27,350
[ "Gaussian" ]
1faf86db7e5bfbc210b71a3a14400676883b56ee915fb1dc943d8883a0184f30
#!/usr/bin/python from reldi.tagger import Tagger from reldi.lemmatiser import Lemmatiser from getpass import getpass import json import argparse import os user='user' coding='utf8' def write(result,file): final=set() for sentence in result['sentences']['sentence']: final.add(sentence['tokenIDs'].split...
clarinsi/reldi-lib
tag_all.py
Python
apache-2.0
1,712
[ "VisIt" ]
9da024f129a8b7fb43e47d81e14541c96a6f1b779526422e7252ac390ba80864
# pylint: disable=C0111 # pylint: disable=W0621 from __future__ import absolute_import import time from lettuce import world, step from lettuce.django import django_url from django.contrib.auth.models import User from django.core.urlresolvers import reverse from student.models import CourseEnrollment from xmodule.mo...
yokose-ks/edx-platform
lms/djangoapps/courseware/features/common.py
Python
agpl-3.0
7,752
[ "VisIt" ]
fdb7946194dde5f0225d94a1af59e065e1ca416ae772c0d0c9e4ef4a230be397
##################################### # Imports ##################################### # Python native imports import sys from PyQt5 import QtWidgets, QtCore, QtGui, uic import signal import rospy import logging import qdarkstyle import time # Custom Imports import Framework.StartupSystems.ROSMasterChecker as ROSMaste...
caperren/Archives
OSU Coursework/ROB 421 - Applied Robotics/software/ros_packages/denso_ground_station/src/ground_station.py
Python
gpl-3.0
8,062
[ "ASE" ]
2956aa7c5ad35d47ea4a0c432d5ddc853e822020dc7287603b893c27b5e035b4
#!/usr/bin/env python """ Extract structures from NEB results and write to POSCAR files. Usage: nebout2poscars.py [options] Options: -h, --help Show this message and exit. """ from __future__ import print_function import os,sys from docopt import docopt import numpy as np from ase.io import write sys.path.appe...
ryokbys/nap
nappy/espresso/nebout2poscars.py
Python
mit
2,547
[ "ASE", "VASP" ]
78aa0e373608cc8a985782b979892113bf62d7a2fb52e3b2d0e299c461041c9b
import bs4 import copy import datetime import functools import time from django.conf import settings as django_settings from django.core import management from django.core import serializers import django.core.mail from django.core.urlresolvers import reverse from django.test import TestCase from django.test.client imp...
PearsonIOKI/compose-forum
askbot/tests/email_alert_tests.py
Python
gpl-3.0
46,176
[ "VisIt" ]
0e02d03c24f0a642076ad2406866d9556e5f3d692da4c1456fb1f2aa3e1b2129
""" Collection of user jobs for testing purposes """ # pylint: disable=wrong-import-position, invalid-name from __future__ import print_function, absolute_import from __future__ import division __RCSID__ = "$Id$" import unittest import time from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() f...
yujikato/DIRAC
tests/System/unitTestUserJobs.py
Python
gpl-3.0
4,132
[ "DIRAC" ]
2e5da6d89c4309fb133396e562a97f5347e4287884c46edfa847e63fb20bb52d
"""Module for operating on VTK data objects. For more details on VTK, go to www.vtk.org. For more details specifically on VTK classes, go to http://www.vtk.org/doc/release/5.10/html/classes.html. Please note, the functions in this module were created and tested using VTK 5.10. VTK 6 introduced a number of backw...
ajgeers/utils
utils/vtklib.py
Python
bsd-2-clause
24,293
[ "ParaView", "VTK" ]
872bf213405299fae7c8e6afbdca74c01e0e02ef9e9c1af8de1bae6b0adb5bda
#!/usr/bin/env python ######################################################################## # File : dirac-admin-allow-site # Author : Stuart Paterson ######################################################################## """ Add Site to Active mask for current Setup Example: $ dirac-admin-allow-site LCG.IN...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_allow_site.py
Python
gpl-3.0
3,280
[ "DIRAC" ]
d2f1e46f1968bba96d0b7b36616ba5cf201839a6223a05909af7900057ec9698
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # # 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 Software Foundation; ...
SNoiraud/gramps
gramps/gen/filters/rules/person/_hasnameof.py
Python
gpl-2.0
3,873
[ "Brian" ]
c750ce3f3435746e304261d608f777631b54e0a6484ec52c0b5aabbc23a744c0
#!/usr/bin/env python ##### Code by Grant Humphries ##### This code will allow users to download SST data from the European Center for Medium range Weather Forecasting (ECMWF) from ecmwfapi import ECMWFDataServer # To run this example, you need an API key # available from https://api.ecmwf.int/v1/key/ ...
worldseabirdunion/DownloadingData
GrantHumphries_DownloadECMWFData_Python/ecmwf_Download_SST.py
Python
cc0-1.0
2,080
[ "NetCDF" ]
a51805d416ba7d0251cd7bb2e9f804a7f8756cbf3094f189a4bef1326ffdea1e
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
sam-m888/gramps
gramps/plugins/webreport/basepage.py
Python
gpl-2.0
126,957
[ "Brian" ]
19b11f910eb5eb1e256d860f747de7c85b305cc82098be72273c8880c917153f
# # Copyright 2014-2015 Universidad Complutense de Madrid # # This file is part of Numina # # Numina 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 l...
Pica4x6/numina
numina/array/tests/test_fwhm.py
Python
gpl-3.0
2,366
[ "Gaussian" ]
f834a67ad80c87dfc49cbf4ec2f0086e899bcef8bd0beb568b7252ce70b18156
# -*- coding: utf-8 -*- """ Shortest path algorithms for weighed graphs. """ __author__ = """\n""".join(['Aric Hagberg <hagberg@lanl.gov>', 'Loïc Séguin-C. <loicseguin@gmail.com>', 'Dan Schult <dschult@colgate.edu>']) # Copyright (C) 2004-2015 by # Aric Hagb...
beni55/networkx
networkx/algorithms/shortest_paths/weighted.py
Python
bsd-3-clause
32,864
[ "VisIt" ]
41cda5277e0a49b77083907581e4d65647700d131b4815f65a0d62ed0af491c8
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
VisTrails/VisTrails
vistrails/packages/vtk/identifiers.py
Python
bsd-3-clause
2,070
[ "VTK" ]
fdfc5b89fc864e33caccff6f09397fe430125caf30a490483ea2e743db4c867e
from time import time import sys import numpy as np from gpaw import parsize, parsize_bands from gpaw.grid_descriptor import GridDescriptor from gpaw.fd_operators import Laplace from gpaw.mpi import world from gpaw.utilities.blas import gemm from gpaw.utilities.lapack import inverse_cholesky B = parsize_bands # numb...
qsnake/gpaw
oldtest/parallel/bandpar2c.py
Python
gpl-3.0
4,062
[ "GPAW" ]
a539bb4e0a78490e6bc66d5e0b8a37cf0bf8f44ec0fd95027e468548d78f28c7
#-*- coding: iso-8859-1 -* import datetime import random from cStringIO import StringIO from time import time, sleep try: from bson import ObjectId except ImportError: # old pymongo from pymongo.objectid import ObjectId from django.http import HttpResponseRedirect, HttpResponse, Http404 from django.conf impor...
peterbe/django-mongokit
exampleproject/exampleproject/benchmarker/views.py
Python
bsd-3-clause
4,480
[ "MOE" ]
c4d814b82afdf37c64a045ca16882cd2362715983c32d45622210d0432562ca6
from edc_base.audit_trail import AuditTrail from edc_base.model.models import BaseUuidModel from edc_consent.models import RequiresConsentMixin from edc_meta_data.models import CrfMetaDataMixin from edc_offstudy.models import OffStudyMixin from edc_sync.models import SyncModelMixin from edc_visit_tracking.constants imp...
botswana-harvard/bcvp
bcvp/bcvp_subject/models/subject_visit.py
Python
gpl-2.0
1,620
[ "VisIt" ]
646ac9cd04eefd982bee9cf195976c72fe43bff280be99eda8968ee0de5cd4b4
from setuptools import setup, find_packages version = '5.3.3' setup( name="alerta-logstash", version=version, description='Alerta plugin for ELK logstash', url='https://github.com/alerta/alerta-contrib', license='MIT', author='Nick Satterly', author_email='nick.satterly@theguardian.com', ...
alerta/alerta-contrib
plugins/logstash/setup.py
Python
mit
557
[ "Elk" ]
16d85fbc09e3e44a4a6af97c98747bcabc4c9137394e1a784f43b2a2584d0dba
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Transform a roidb into a trainable roidb by adding a bunch of metada...
Zardinality/TF_Deformable_Net
lib/roi_data_layer/roidb.py
Python
mit
6,129
[ "Gaussian" ]
0de57aa449fd8a22c14f52b39c712abc6c9e440a3e9f117bae5ae9bd0527301a
import Base import dynamic_mission import VS import pleasure_land time_of_day='' bar=-1 weap=-1 room0=-1 dynamic_mission.CreateMissions() room0 = pleasure_land.MakePleasureAgriculturalLanding(time_of_day) room = Base.Room ('Casino') room1 = room Base.Texture (room, 'background', 'bases/pleasure/Jolson_Concourse'+ti...
ermo/privateer_wcu
bases/pleasure.py
Python
gpl-2.0
2,113
[ "CASINO" ]
47ec34b5379c87bb6ae0af80f4c053194d271b75a71ca5fdc9b73db393d97aea
import string, gettext _ = gettext.gettext try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset EOF = None E = { "null-character": _(u"Null character in input stream, replaced with U+FFFD."), ...
kordless/wisdom
lib/html5lib/constants.py
Python
mit
90,834
[ "Bowtie" ]
e1ca869f6b231036f4b1d0347f796c576ac9440675c4468710e7980cbbc06d67
# # Copyright (C) 2013,2014,2015,2016 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo 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...
lahnerml/espresso
samples/python/minimal_random_number_generator.py
Python
gpl-3.0
1,583
[ "ESPResSo" ]
fea3dbe566ea6207fd00140cc2f2922620c64c5cdf87c71783f548f614075643
from __future__ import print_function, division, absolute_import #, unicode_literals import os import sys import time from subprocess import Popen from .subprocesswithtimeout import SubProcessWithTimeout try: from ConfigParser import SafeConfigParser, NoOptionError except ImportError: # The ConfigParser modu...
jmbeuken/abinit
tests/pymods/jobrunner.py
Python
gpl-3.0
20,059
[ "ABINIT" ]
851c66cd15d6a63f8c0c22d11a0ae9f5acbfa4a50a718460c1e47649e33b2635
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version][...
Ambrosys/glyph
versioneer.py
Python
lgpl-3.0
69,019
[ "Brian" ]
b2883634e7de29a96093a2fb84eb5bc99120d51fd20c5215e7664d017b244449
colors = { 'Red': { '200': 'ef9a9a', '900': 'b71c1c', '600': 'e53935', 'A100': 'ff8a80', '300': 'e57373', 'A400': 'ff1744', '700': 'd32f2f', '50': 'ffebee', 'A700': 'd50000', '400': 'ef5350', '100': 'ffcdd2', '800': 'c62...
cruor99/KivyMD
kivymd/color_definitions.py
Python
mit
15,632
[ "Amber" ]
0128c8ca826ab32cbc2da0a8b7283fff82316928d00d22b20ece3ebcc9082bcb
from rdkit import RDConfig import unittest from rdkit.SimDivFilters import rdSimDivPickers from rdkit.DataManip.Metric import rdMetricMatrixCalc as rdmmc import numpy import random class TestCase(unittest.TestCase): def setUp(self) : self.n = 1000 self.m = 80 self.d = 2 self.dataPts = numpy.z...
rdkit/rdkit-orig
Code/SimDivPickers/Wrap/testPickers.py
Python
bsd-3-clause
3,977
[ "RDKit" ]
ffde1be91c64b8fe88d861c9c9e2cd846ab9cb08462f5c65a5dfb682db064aa8
""" Linear Discriminant Analysis and Quadratic Discriminant Analysis """ # Authors: Clemens Brunner # Martin Billinger # Matthieu Perrot # Mathieu Blondel # License: BSD 3-Clause from __future__ import print_function import warnings import numpy as np from scipy import linalg from .extern...
toastedcornflakes/scikit-learn
sklearn/discriminant_analysis.py
Python
bsd-3-clause
28,563
[ "Gaussian" ]
d6b5257adfa00c86459076c2a655f6746b87217e64989d64ee0b2a63c950f543
""" A simple set of extensions to manage post-load requirements for pages. Commands: require -- turn on post-load requirements; either 'success' or 'links_ok'. no_require -- turn off requirements. skip_require -- for the next page visit, skip requirement...
jasrusable/fun
venv/lib/python2.7/site-packages/twill/extensions/require.py
Python
gpl-2.0
3,585
[ "VisIt" ]
5a149c1ed5764bd1fbf41aded07b704e2c5c6b11c8eb6aa416b7ab23dbf03c53
""" Single Bubble Model: Bubble simulations ======================================== Use the ``TAMOC`` `single_bubble_model` to simulate the trajectory of a natural gas bubble rising through the water column. This script demonstrates the typical steps involved in running the single bubble model. It uses the ambien...
socolofs/tamoc
bin/sbm/bubble.py
Python
mit
2,496
[ "NetCDF" ]
f1fbc4ceb17650f7e01848a58e1f08f6d9a7755ae7d96a9487ee809ad2e5e1b6
# -*- coding: utf-8 -*- # # Copyright (c) 2016, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Parser for Q-Chem output files""" from __future__ import division from __future__ import print_function import re imp...
Schamnad/cclib
src/cclib/parser/qchemparser.py
Python
bsd-3-clause
66,814
[ "Gaussian", "Q-Chem", "cclib" ]
dbf5fb1a0f25c9d48bdcd29b50a76821051469f1d2c2fbd08fab2b3bf9d5cfe8
""" A simple VTK widget for wxPython. Find wxPython info at http://wxPython.org Created by David Gobbi, December 2001 Based on vtkTkRenderWindget.py Updated to new wx namespace and some cleaning by Andrea Gavana, December 2006 """ """ Please see the example at the end of this file. -------------------------------...
keithroe/vtkoptix
Wrapping/Python/vtk/wx/wxVTKRenderWindow.py
Python
bsd-3-clause
23,453
[ "VTK" ]
8ba40975f5b409a4f12604b0081ab99724837452664ae6359b10975a3f475018
""" Collection of physical constants and conversion factors. Most constants are in SI units, so you can do print '10 mile per minute is', 10*mile/minute, 'm/s or', 10*mile/(minute*knot), 'knots' The list is not meant to be comprehensive, but just a convenient list for everyday use. """ from __future__ import division...
chaluemwut/fbserver
venv/lib/python2.7/site-packages/scipy/constants/constants.py
Python
apache-2.0
8,991
[ "Avogadro" ]
adc4b207eec8be7a87f4dadca8a6778e999551daf7131d2787be28ab80d21f1b
"""Hierarchical clustering and merging of data for RAPD plugin""" """ This file is part of RAPD Copyright (C) 2017, Cornell University All rights reserved. RAPD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Founda...
RAPD/RAPD
src/plugins/merge/plugin.py
Python
agpl-3.0
64,460
[ "CRYSTAL" ]
d7e1b3edaa7df631929beda369df6f18637e8ab132fa239866b7c7e7ddf8a1e6
from __future__ import division, print_function import logging import numpy import theano from theano import tensor from blocks.bricks.base import application, lazy from blocks.roles import add_role, WEIGHT, BIAS from blocks.bricks import Random, Initializable, Linear from blocks.utils import shared_floatx_zeros ...
drewlinsley/draw_classify
draw/prob_layers.py
Python
mit
8,790
[ "Gaussian" ]
bcabf47c1b2743326303dbb462e29b005649e2fe948a525ff60ec52797808284
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # 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...
kbrebanov/ansible
lib/ansible/modules/network/avi/avi_alertemailconfig.py
Python
gpl-3.0
3,741
[ "VisIt" ]
61ff0bf593d5de160bd443ba993a11f8aaeed7e0491af593dc85336424fd3680
from __future__ import print_function import json import datetime, time, os, fnmatch import re import textwrap def replace_path_bits(path,user,maxlen): res=re.sub('/work/[0-9]+/'+user,r'\$WORK',path) res=re.sub('/scratch/[0-9]+/'+user,r'\$SCRATCH',res) res=re.sub('.*?/home.*?/[0-9]+/'+user,'~'+user,res) return...
dimm0/tacc_stats
tacc_stats/analysis/gen/lariat_utils.py
Python
lgpl-2.1
4,592
[ "Amber", "CHARMM", "DL_POLY", "Gromacs", "LAMMPS", "NAMD", "VASP" ]
81eb1688f394dcf81faaad5d5973779ef655e854911ff913bcce49cda06c9b50
# ============================================================================= # Project 1: Effects of the Posterior Distribution on the Power Spectrum # Review of astro-ph.CO/1504.03979 # October 2017 # Mike S. Wang, ICG # ============================================================================= # --------------...
MikeSWang/Testing-Repos
Project-1-Survey.py
Python
apache-2.0
7,489
[ "Gaussian" ]
ba0ea9474494b81568647c5aaa1ed0736745b4a0c40eecf42573e0ddb45feb18
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/wait/StopWait.py
Python
gpl-3.0
1,239
[ "ORCA" ]
d951eac6ede42d8ed496d0d51c673b5877f093556594130dfb3a47c0967c0193
# Tests writing amber format with amber parameters # Special isopeptide bond between two residues import os import pytest from vmd import atomsel, molecule dir = os.path.dirname(__file__) #============================================================================== def verify_amber(molid): molecule.set_top(mol...
Eigenstate/dabble
dabble/test/3NOB/test_3nob.py
Python
gpl-2.0
5,235
[ "Amber", "VMD" ]
5a1a71e41c7dff79a0b16bd5ff02c1ddcfb612e99feeb461762d6cc562973522
r""" File I/O (:mod:`skbio.io`) ========================== .. currentmodule:: skbio.io This package provides I/O functionality for skbio. Introduction to I/O ------------------- Reading and writing files (I/O) can be a complicated task: * A file format can sometimes be read into more than one in-memory representa...
Kleptobismol/scikit-bio
skbio/io/__init__.py
Python
bsd-3-clause
11,016
[ "scikit-bio" ]
05a711bad5b5741b7aeb4a0c5a7b70f9eeb9f3742cfe06f226f4fba8612b006c
#!/usr/bin/env python3 # Nengo Statistical Inference Implementation for the UWaterloo course SYDE 750 # Copyright (C) 2017 Andreas Stöckel # # 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 Software Foundation, eith...
astoeckel/syde_750_project_lifespan_inference
code/analyse_net_lifespan_inference.py
Python
gpl-3.0
12,079
[ "Gaussian" ]
f3a2a3b99bd8b977688cb7e2564702b3276721342250036bb212add4aa26acfa
# Script to plot sub-surface ocean temperature drift. # Analysis: using newer python 2.7.3 """ module purge module use -a /home/fms/local/modulefiles module load gcc module load netcdf/4.2 module load python/2.7.3 """ import os import math import numpy as np from numpy import ma from netCDF4 import Dataset, MFDatase...
StevePny/NOAA-GFDL-MOM6-examples
tools/analysis/MOM6_ts_annual.py
Python
gpl-3.0
5,031
[ "NetCDF" ]
0f249aaff842ee7bf97e348414369d128fc2862674ca7c084fde3526125754df
from __future__ import print_function import lammps import ctypes import traceback import numpy as np class LAMMPSFix(object): def __init__(self, ptr, group_name="all"): self.lmp = lammps.lammps(ptr=ptr) self.group_name = group_name class LAMMPSFixMove(LAMMPSFix): def __init__(self, ptr, group...
quang-ha/lammps
examples/python/py_nve.py
Python
gpl-2.0
3,986
[ "LAMMPS" ]
42f59541b96d5c50f25e5d531019f9cc89ff31491c74640be491190b294d6877
# -*- coding: utf-8 -*- import smtplib import linecache import sys import re from utils import config from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText """ Mail Unit, just prepare mail and send it Author: Crash_ Version: 0.9 (Beta Version) This program is intended t...
crash2over/ghostsubscribermail
control/mail.py
Python
gpl-3.0
6,227
[ "VisIt" ]
b7750d506182fcce555becc6a7efc108a1197b4f479a9b4104943f3cb223214b
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/interaction/Morse.py
Python
gpl-3.0
7,218
[ "ESPResSo" ]
a0093a6b7bbbeda5514cfff087cb65f8e8c92a8354ea6b292e3094ae26e3de76
# # Copyright 2016 The BigDL 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 in ...
intel-analytics/BigDL
python/orca/src/bigdl/orca/tfpark/text/estimator/bert_ner.py
Python
apache-2.0
3,844
[ "ORCA" ]
be7a8cd263a7da47a5dd6d095cc308e19b5718076ed329a78f5bde3037c798df
# Copyright (C) 2014, 2015, 2016 SICS Swedish ICT AB # # Main author: Tomas Olsson <tol@sics.se> # # License: BSD 3 clause import logging import datetime import matplotlib from pandas.core import datetools from pandas import date_range from pyface.gui import GUI from traits.api import HasTraits, Instance from traits...
STREAM3/visisc
_visisc_modules/EventVisualization.py
Python
bsd-3-clause
25,628
[ "Mayavi" ]
f33dd1391f5382d168a6678b51ba80f5928bae8389a5897be84f357e7880ffa6
#!/usr/bin/env python # CREATED:2014-01-18 14:09:05 by Brian McFee <brm2132@columbia.edu> # unit tests for util routines # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except: pass import platform import numpy as np import scipy.sparse import pytest import warnings import librosa from tes...
carlthome/librosa
tests/test_util.py
Python
isc
36,574
[ "Brian" ]
258b77ae52824d696f2e9cd72b99f13b406df18c4c6b40ec5ff8c16e314fba72
#! /usr/bin/env python # coding:utf-8 # Author: bingwang # Email: toaya.kase@gmail.com # Copylight 2012-2012 Bing Wang # LICENCES: GPL v3.0 __docformat__ = "epytext en" # dependents: scer.gff,scer.fsa file in SGD_dataset/ # biopython # bing from Bio import SeqIO from bing import gff_parse flanking = 0 #indicate th...
BingW/yeast_anno_pipe
src/get_intron.py
Python
gpl-3.0
1,848
[ "Biopython" ]
f933831cea3520bc773624735f798fd574c4098d68e2756555ad62f6c2c33725
############################################################################ # Copyright 2019 Philip Morris Products S.A. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may no...
sgubianpm/RPackUtils
setup.py
Python
gpl-2.0
3,249
[ "Bioconductor" ]
cbaa944bf19fae6a13a19b9aeb744107e07974b09d99adc908965be3ceffd59d
# -*- coding: utf-8 -*- # Author: Óscar Nájera # License: 3-clause BSD """ Backreferences Generator ======================== Parses example file code in order to keep track of used functions """ from __future__ import print_function, unicode_literals import ast import codecs import collections from html import escape...
Eric89GXL/sphinx-gallery
sphinx_gallery/backreferences.py
Python
bsd-3-clause
12,437
[ "VisIt" ]
ace06f06fc16dfc424e2d3da642cb71bca8805f429a3fb713d1690593644521b
import h5py import numpy import os import sys h5file=os.path.realpath(sys.argv[-1]) h5dir=os.path.dirname(h5file) f=h5py.File(h5file) exportdir=os.path.join(h5dir,'exported') try: os.mkdir(exportdir) except: print 'mkdir error, maybe the export directory already exists?' def h5exportfunc(name): Deflname=name ...
Alwnikrotikz/hooke
mfp_igor_scripts/h5export.py
Python
lgpl-3.0
1,577
[ "VisIt" ]
73ac52e68ca20b610519a621f09c8e12f56bde210059a8b36123d8de6468c833
""" The TokenManagerClient is a class representing the client of the DIRAC TokenManager service. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from DIRAC.Core.Base.Client import Client, createClient @createClient("Framework/TokenM...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Client/TokenManagerClient.py
Python
gpl-3.0
558
[ "DIRAC" ]
91d662183382366e5820c73c91ccf267dc10f09cb3ac5dec24bf9a724f454767