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
# Lint as: python3 # Copyright 2018 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 ...
tensorflow/lingvo
lingvo/core/layers_with_attention_test.py
Python
apache-2.0
132,081
[ "Gaussian", "MOE" ]
3f709d7e70c9dfa37c022dd6e53f53595f3101394b51d9c40388b5370275e8b1
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.filter_base import FilterBase from mayavi.core.pipeline_info import PipelineIn...
dmsurti/mayavi
mayavi/filters/stripper.py
Python
bsd-3-clause
1,209
[ "Mayavi" ]
ee4a355fd1a6f92381318abbf1e9fe016a3335117f0b002f03dc066b159d2baa
#!/usr/bin/env python """ Local Processing Unit (LPU) draft implementation. """ import importlib import numbers import pycuda.gpuarray as garray from pycuda.tools import dtype_to_ctype import pycuda.driver as cuda from pycuda.compiler import SourceModule import pycuda.elementwise as elementwise import numpy as np i...
neurokernel/lamina
lamina/LPU.py
Python
bsd-3-clause
41,754
[ "NEURON" ]
4e734831cc2243e1a380973d843278dff7d3bda9e72646f27ae23c0941a2538a
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # '''Density functional calculations can be run with either the default backend library, libxc, or an alternative library, xcfun. See also example 32-xcfun_as_default.py for how to set xcfun as the default XC functional library. ''' from pyscf impor...
sunqm/pyscf
examples/dft/12-camb3lyp.py
Python
apache-2.0
1,055
[ "PySCF" ]
04fa7f1c4319c1c98481fcd899a546078cdf6cc53cc77ccd19f6137498f0d0f7
""" Trace object types that are inserted into Python list. """ import ast from clike import CLikeTranspiler def decltype(node): """Create C++ decltype statement""" if is_list(node): return "std::vector<decltype({0})>".format(value_type(node)) else: return "decltype({0})".format(value_type(...
lukasmartinelli/py14
py14/tracer.py
Python
mit
4,694
[ "VisIt" ]
22c63c744977f72bd22d73e5163f89ea62b9b1a5c54c754dec1341e3431015d3
#!/opt/local/bin/python2.7 # # script to take a CSV list of filenames/NetID/name pairs and import to Evernote # # Usage: if mfst.csv is of the form # # filename,NetID,LastName__FirstNames # # then # # $ ./enimport.py [options] < mfst.csv # # will import into Evernote all the specified files import hashlib import bin...
leingang/plg
bin/enimport.py
Python
gpl-3.0
9,381
[ "VisIt" ]
0d28178ecc3e274b0df4f0ab6bfbeb86d2804bd546b28c027dd0d04bcd8ed1d5
''' This is the implementation of the proof search algorithm. I'm pretty sure that I know this well enough to just flat out implement it. The tricky part is going to be merging of the threading and multiprocessing libraries. I predict that this will be ugly. We're going to make all of the interface calls properties...
dwhalen/holophrasm
proof_search.py
Python
mit
30,034
[ "VisIt" ]
2f12981de1142826410ee429f3f66ba8160bd81448ac8b4b1deb7a2a7beaaee8
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy.misc.doccer import (extend_notes_in_docstring, replace_notes_in_docstr...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/scipy/stats/_continuous_distns.py
Python
gpl-3.0
186,903
[ "CRYSTAL", "Gaussian" ]
5c00f8381f8e68f91b08e6fe8732a4b3cb6a516b3db3ede7dcaa914da0993d26
### AUTHOR: William F. Hooper ### Affiliation: Rensselaer Polytechnic Institute ### Based off of kic.py, included with InteractiveROSETTA ### Additional dependencies: LoopHash, available at github.com/willhooper/LoopHash (might be packaged with this install already) ### Database files iRosetta_Lookup.exe, pdbselect.dat...
schenc3/InteractiveROSETTA
InteractiveROSETTA/scripts/indel.py
Python
gpl-2.0
78,517
[ "PyMOL" ]
390263cc0ac83f34fd317454fff5a8aef3149db2cdd4751d67e1511e106099d4
''' =============================================== :mod:`gridcells.analysis.bumps` - bump tracking =============================================== Classes and functions for processing data related to bump attractors. Classes ------- .. inheritance-diagram:: gridcells.analysis.bumps :parts: 2 .. autosummary:: ...
lsolanka/gridcells
gridcells/analysis/bumps.py
Python
gpl-3.0
12,722
[ "Gaussian" ]
2ba2ce48e790fc7c83c994dc21c45202a4037c1d3252ad846642a04717956b02
#!/usr/bin/env python """ SCHISM native reader ================================== """ import numpy as np from datetime import timedelta, datetime from opendrift.readers import reader_schism_native from opendrift.readers import reader_global_landmask from opendrift.models.oceandrift import OceanDrift ################...
OpenDrift/opendrift
examples/example_schism_native.py
Python
gpl-2.0
2,316
[ "NetCDF" ]
b4309868b107bf6fa8b2e8f950fa632e67f1d8d2992fbf2dbfcdf8a7adfaf534
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import ( absolute_import, division, print_function, unicode_literals) import six from six.moves import zip, range, map import sys import os.path import argparse import numbers import numpy as np import scipy.optimize as spo import scipy.stats as sp...
nicktimko/multiworm
blob_info.py
Python
mit
12,348
[ "Gaussian" ]
4aaa803771af73d0fdf18834fa4a059e26c043bf0065eace727d65547fa1ea6b
from .decorator import tract_math_operation, set_dictionary_from_use_filenames_as_index from warnings import warn import numpy import nibabel from nibabel.spatialimages import SpatialImage from ..tractography import ( Tractography, tractography_to_file, tractography_from_files ) import sys import traceback fro...
BRAINSia/tract_querier
tract_querier/tract_math/operations.py
Python
bsd-3-clause
31,095
[ "VTK" ]
25912bf665d92b1c08087e85d0e0220de8b3cd6996095bb467b4b042b93d72c0
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import numpy as np import tables from scipy import ndimage from scipy.misc import imsave import scipy.optimize as opt from sklearn.cross_decomposition import PLSCanonical from sklearn.linear_mode...
sealhuang/brainCodingToolbox
braincode/vim2/rfencoding.py
Python
bsd-3-clause
27,156
[ "Gaussian" ]
f28012babd46f1c57ada314ca08c0717892a7dc0d5691af16afd2e45000511fc
from __future__ import print_function, division import collections from sympy.core.add import Add from sympy.core.basic import Basic, Atom from sympy.core.expr import Expr from sympy.core.function import count_ops from sympy.core.logic import fuzzy_and from sympy.core.power import Pow from sympy.core.symbol import Sym...
ChristinaZografou/sympy
sympy/matrices/matrices.py
Python
bsd-3-clause
136,380
[ "DIRAC", "Gaussian" ]
bf8c50fa36cbcbcd78d6b99fe757652c27a4cc18da78f43dd7ebe5e3b9bc0c5c
# ################################################################ # # Active Particles on Curved Spaces (APCS) # # Author: Silke Henkes # # ICSMB, Department of Physics # University of Aberdeen # # Author: Rastko Sknepnek # # Division of Physics # School of Engineering, Physics and Math...
sknepneklab/SAMoS
FormerAnalysis/Patches_stresses_defects_lib.py
Python
gpl-3.0
29,759
[ "VTK" ]
28e4ee5d36801e93a1eaf884e4782505dcdccea6ad9e5ec4b852e6c0225e8e37
#Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt. import sys sys.path.append("./CommonTestScripts") import System import Test import CircuitEditorUtil doc = atfDocService.OpenNewDocument(editor) CircuitEditorUtil.SetGlobals(schemaLoader, Schema) modules = [] annotations = [] connections =...
jethac/ATF
Test/FunctionalTests/CircuitEditorTestScripts/EditSaveCloseAndReopen.py
Python
apache-2.0
3,356
[ "ORCA" ]
d5eb029e1959e62b6a54686eabd82085548f47a0ec0e1e742bed8bfd998db19b
# -*- coding: utf-8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distri...
piotrpawlaczek/suds-jurko
tests/test_cache.py
Python
lgpl-3.0
12,588
[ "Firefly" ]
b76e4363cb95adf0a4be4610d6bbb05e665348568f388846ed61aac6a02786cc
""" Miscellaneous utility functions. """ __author__ = "Steven Kearnes" __copyright__ = "Copyright 2014, Stanford University" __license__ = "BSD 3-clause" import cPickle import gzip import numpy as np import os from rdkit import Chem from rdkit.Chem.Scaffolds import MurckoScaffold from rdkit_utils import PicklableMo...
rbharath/pande-gas
vs_utils/utils/__init__.py
Python
bsd-3-clause
10,224
[ "RDKit" ]
ace4e0471203b59c19d82d51de02bb2c95ed97d2ff4e531743a4ee617b5b0a58
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ # Django Admin url(r'^admin/', include(admin.site.urls)), # User manageme...
andresgz/django_todolist
config/urls.py
Python
bsd-3-clause
1,067
[ "VisIt" ]
cca160f5061f29efb4353d365589d22f798135218675a2fc0009c3a864912d55
import unittest from test import support import sys import random import math import array # Used for lazy formatting of failure messages class Frm(object): def __init__(self, format, *args): self.format = format self.args = args def __str__(self): return self.format ...
harmy/kbengine
kbe/res/scripts/common/Lib/test/test_long.py
Python
lgpl-3.0
48,711
[ "Brian" ]
9734ccae67c944ab54dde8b40882422f7b60ba466c1787068079c02d2a7f245d
#!/usr/local/bin/python import time, sys, os import numpy as np np.errstate(invalid='ignore') from prospect.models import model_setup from prospect.io import write_results from prospect import fitting from prospect.likelihood import lnlike_spec, lnlike_phot, write_log, chi_spec, chi_phot # -------------- # Read com...
bd-j/prospector
scripts/prospector.py
Python
mit
9,248
[ "Gaussian" ]
7b98da6e80255eaa81dd05592d1238bf59d97d816b6ba88ecfb14403fb902bfe
# Copyright 2020 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/addons
tensorflow_addons/layers/noisy_dense.py
Python
apache-2.0
11,081
[ "Gaussian" ]
7d09eb2c743b069c3baffd5b3c04392d58fdcd0b72fc751c040d0d17cc110cce
""" Student Views """ import datetime import logging import uuid import json import warnings from collections import defaultdict from urlparse import urljoin from pytz import UTC from requests import HTTPError from ipware.ip import get_ip from django.conf import settings from django.contrib.auth import logout, authen...
doganov/edx-platform
common/djangoapps/student/views.py
Python
agpl-3.0
100,509
[ "VisIt" ]
1b139da2587637bd6691eed9831e28e4ee52b6b7088ece41d70099e8ef9521b2
# -*- coding: utf-8 -*- """ This module implements the GenDendrite class, which implements generic dendrite logic. """ from neuron import h class GenDendrite(object): """This is the model of a generic dendrite. Attributes: name - String (Default None) Name of the dendrite secs - list (Default...
danielmuellernai/ouropy
gendendrite.py
Python
mit
4,318
[ "NEURON" ]
821dfabcc3e7cc7cc448451efb45061161f95f83c3228b66ffa15bc0d556e4f9
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import json import logging import os import stat from shutil import rmtree from time import sleep from dropbox import client, rest, session # https://www.dropbox.com/static/developers/...
nandoflorestan/poorbox
poorbox/__init__.py
Python
bsd-3-clause
9,668
[ "VisIt" ]
2afb4259ebaeedbba3a8718a1fd8f2376edcb66c8467b36cb22ef66c1e9d10de
#!/usr/bin/env python """ This script subsamples the alignments of a BAM file. For this a likelihood (0.0 < p(keep) < 1.0) of keeping all alignments of a read has to be provided. All alignments of a read are treated the same (i.e. are discarded or kept). """ import argparse import random import sys import pysam __de...
konrad/kuf_bio_scripts
subsample_bam_file.py
Python
isc
1,775
[ "pysam" ]
5f8daa3ca32b12858376123bc461365a0099bcef56f17d40963f931418ec2eae
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides the Stress class used to create, manipulate, and calculate relevant properties of the stress tensor. """ from pymatgen.core.tensors import SquareTensor import math import numpy as np ...
tschaume/pymatgen
pymatgen/analysis/elasticity/stress.py
Python
mit
3,451
[ "pymatgen" ]
a13fb310672608767f4faabbf025ef8c0a081c9562eed0316d807f386939afe5
import re import traceback from PyQt5 import QtCore as QC from PyQt5 import QtGui as QG from PyQt5 import QtWidgets as QW import numpy as n import scipy.signal as ss from scipy import poly1d, polyfit from scipy import ndimage as sn import scipy.interpolate as si from lsjuicer.util import helpers from lsjuicer.sta...
ardoi/datajuicer
lsjuicer/data/pipes/tools.py
Python
gpl-3.0
27,557
[ "Gaussian" ]
999373c59b712ce6382e91956b88029a088fc0eda19a2b8e8775af9dc3f2e7b0
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from django.dispatch import receiver from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible from django.utils.functional import cached_property from django.utils.tra...
1tush/reviewboard
reviewboard/accounts/models.py
Python
mit
13,588
[ "VisIt" ]
70c7dfa609f7b2ef4533f8fd9451c9aa0f57751306decc0e87d8311b44fb639e
import glob, shelve from geneutils import * DB_DIR = '../Proteomes/Candida_proteomes/' BLASTP_RESULTS_DIR = 'resultsp/' #MAIN_SPECIES = 'S288C' #SUBJECT_DBS = ['AWRI1631_ABSV01000000', 'AWRI796_ADVS01000000', 'CBS7960_AEWL01000000', \ #'CLIB215_AEWP01000000', 'CLIB324_AEWM01000000', 'CLIB382_AFDG01000000', 'E...
q10/gene
testp.py
Python
bsd-3-clause
3,442
[ "BLAST" ]
dfb05f3568b0dfbdb5a54392b33fc9cfea9c4c4fdafd8a55e8f8d335d8a348fe
# BEGIN_COPYRIGHT # # Copyright (C) 2014 CRS4. # # This file is part of blast-python. # # blast-python 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) # ...
crs4/blast-python
setup.py
Python
gpl-3.0
4,043
[ "BLAST" ]
d265ab1db73de48f7d5f96a9e6b3445948b049996207f8fa66b9523d53fef0f1
# modified mexican hat wavelet test.py # spectral analysis for RADAR and WRF patterns import os, shutil import time import pickle import numpy as np from scipy import signal, ndimage import matplotlib.pyplot as plt from armor import defaultParameters as dp from armor import pattern from armor import objects4 as ob ...
yaukwankiu/armor
tests/modifiedMexicanHatTest3.py
Python
cc0-1.0
4,018
[ "Gaussian" ]
7cd77cce8fcfafcae4c71004e781a762442d13b223b160976620f0f5cf9d4449
"""Session object for building, serializing, sending, and receiving messages in IPython. The Session object supports serialization, HMAC signatures, and metadata on messages. Also defined here are utilities for working with Sessions: * A SessionFactory to be used as a base class for configurables that work with Sessio...
WillisXChen/django-oscar
oscar/lib/python2.7/site-packages/IPython/kernel/zmq/session.py
Python
bsd-3-clause
30,948
[ "Brian" ]
62af6776910b45820618002b4c0029f82cf8a202cbe1f074c9492fae69a547f0
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import pytest from mock import Ma...
mattclay/ansible
test/units/galaxy/test_token.py
Python
gpl-3.0
3,218
[ "Galaxy" ]
d8fa8acce1b937febd7aba36ab2c6beeedd93ec2966c3815b9cfc095ce6195b8
"""Optimise the cache.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function from zeroinstall import _, logger import os, sys def _already_linked(a, b): ai = os.stat(a) bi = os.stat(b) return (ai.st_dev, ai.st_ino) == (bi.st...
timdiels/0install
zeroinstall/zerostore/optimise.py
Python
lgpl-2.1
3,542
[ "VisIt" ]
6561e59ddfacc37ba8988d8e57dd9ed6f59f9c7908f475525bec2c3bb31cae75
""" This module contains logic for the home page of the web application, from which the user can visit any page of the application. """ from pyramid.view import view_config @view_config(route_name='home', renderer='homepage.mako') def home_view(request): """ This function executes the logic for the home page,...
CO600GOL/Game_of_life
ProjectConway/projectconway/views/home.py
Python
mit
507
[ "VisIt" ]
f0c8cc304a2c90189e6dea539e36143302e271fd11f7e46c17d2366101c99654
import math import cmath # # def radians(degrees): return math.pi * degrees / 180.0 def degrees(rad): return 180.0 * rad / math.pi def rotate_2d(theta, x, y): """Rotate point by theta""" cangle = cmath.exp(theta * 1j) cx = cangle * complex(x, y) return cx.real, cx.imag def angle(x, y): ...
DaveBerkeley/lasercut
laser/laser.py
Python
gpl-2.0
20,008
[ "VisIt" ]
2bdc12dec0774aa969804d570076a699b29e33d988a1d93c3aeb8d84ab7553aa
from collections import deque import time import requests # Constants BRAZIL = 'br' EUROPE_NORDIC_EAST = 'eune' EUROPE_WEST = 'euw' KOREA = 'kr' LATIN_AMERICA_NORTH = 'lan' LATIN_AMERICA_SOUTH = 'las' NORTH_AMERICA = 'na' OCEANIA = 'oce' RUSSIA = 'ru' TURKEY = 'tr' # Platforms platforms = { BRAZIL: 'BR1', EUR...
Neil511/Riot-Watcher
riotwatcher/riotwatcher.py
Python
mit
22,597
[ "CRYSTAL" ]
5e78953f5cd5fcea3a7440293c01a6deec425980a9d45e812c5aa64232fd839a
""" mbed SDK Copyright (c) 2011-2013 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
maximmbed/mbed
tools/synch.py
Python
apache-2.0
11,465
[ "VisIt" ]
0debb82ea2367ae1b2beddc8dc15eaad23f5ebc1ad390944c4d421651632cb54
""" Output conversion for Gaussian ============================== This module contains conversion utilities that is solely written for the Gaussian computational chemistry program. .. autosummary:: :toctree: gauout2PESyaml """ import collections import re from collections import abc import itertools impo...
tschijnmo/FFOMP
FFOMP/ccutils/gau2yaml.py
Python
mit
10,855
[ "Gaussian" ]
c3468c8c4d0c0649bb457f49c68d116534c6abb0bfaae90c17995ab19f153e70
# Autodetecting setup.py script for building the Python extensions # import sys, os, importlib.machinery, re, optparse from glob import glob import importlib._bootstrap import importlib.util import sysconfig from distutils import log from distutils.errors import * from distutils.core import Extension, setup from dist...
anbangleo/NlsdeWeb
Python-3.6.0/setup.py
Python
mit
101,041
[ "VisIt" ]
71ffa5a25db9d6e45a08f5356f778e595f62bf001cccd26bc587364a97144a1f
# # Copyright (c) 2014 ThoughtWorks, Inc. # # Pixelated 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 Foundation, either version 3 of the License, or # (at your option) any later version. # # Pixelated is distrib...
pixelated/puppet-pixelated
files/functional-tests/steps/account.py
Python
agpl-3.0
2,635
[ "VisIt" ]
51c4e2300dccd8096191249ad2f7f18d96bda423bcec54f20fda8f03711bc55d
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2011, 2012 CERN. # # Invenio 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 2 of the # License, or (at your option) any...
ioannistsanaktsidis/invenio
modules/bibauthorid/lib/bibauthorid_webinterface.py
Python
gpl-2.0
149,664
[ "VisIt" ]
0dd8707efd7729d89f8166f9a2dd7e878cc9554164476388d86fe3a7b4630914
#==== Image Centering ====================================================# #=========================================================================# def set_fiber_data(self, method, **kwargs): """Set the fiber center, diameter, and centroid using the same method Args ---- method : {'edge', ...
rpetersburg/fiber_properties
legacy_code/image_centering.py
Python
mit
13,360
[ "Gaussian" ]
53f70b75320fcf36b820c797f2bb48d757848abc0cd82fbd11255d48d23c41fb
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # Copyright 2010-2013 The Orca Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
GNOME/orca
src/orca/guilabels.py
Python
lgpl-2.1
47,461
[ "ORCA" ]
de60ffa9c5855630e3bb5c24b7d298449374191fe8ca97d695e3d9d9ec0f9397
from __future__ import unicode_literals from django.db import IntegrityError, connection, models, transaction from django.test import TestCase from .models import ( Bar, Director, Favorites, HiddenPointer, ManualPrimaryKey, MultiModel, Place, RelatedModel, Restaurant, School, Target, UndergroundBar, Waiter, )...
mewtaylor/django
tests/one_to_one/tests.py
Python
bsd-3-clause
20,355
[ "Brian" ]
e3ea417a509c11d5fe04c4dac1d6303746de891a2610c45b19e47db6bb9af95c
# spud - keep track of photos # Copyright (C) 2008-2013 Brian May # # 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, either version 3 of the License, or # (at your option) any later version. # # ...
brianmay/spud
spud/settings.py
Python
gpl-3.0
987
[ "Brian" ]
62c08bd5d600a08daec9c20e5dbc4334714b29df2022553b1caf613a41005f7a
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2013, 2014 CERN. ## ## Invenio 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 2 of the ## License, or (at your opt...
lnielsen/invenio
invenio/ext/script/__init__.py
Python
gpl-2.0
7,029
[ "VisIt" ]
418f3fe8aab61df79767f861dedf85c1a345ed7e5eb838abc70984f5bad39cc3
############################################################################## # 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...
krafczyk/spack
var/spack/repos/builtin/packages/r-aims/package.py
Python
lgpl-2.1
1,934
[ "Bioconductor" ]
5307ea7cd329b0b615e124e5759f84d949c43e6cf3e0879b6ad3a73c390dbb2c
#!/usr/bin/env python """Simple parsers for configuration files.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import collections import logging import re from future.builtins import zip from future.utils import iteritems from future.utils import st...
dunkhong/grr
grr/core/grr_response_core/lib/parsers/config_file.py
Python
apache-2.0
41,134
[ "TINKER" ]
195fb651b1cc9a25adc88fa74d3fbe3195b76ebf0b82ef25916a94d7ab84157b
"""Read genome build configurations from Galaxy *.loc and bcbio-nextgen resource files. """ from six.moves import configparser import glob import os import sys from xml.etree import ElementTree import toolz as tz import yaml from bcbio import utils from bcbio.cwl import cwlutils from bcbio.distributed import objectst...
biocyberman/bcbio-nextgen
bcbio/pipeline/genome.py
Python
mit
16,520
[ "Galaxy" ]
f83c7695cb376c853981565d67b88ad348e7635f4f14d74de24d50b334cbafa4
############################################################################### # # $Id: stretcher.py 585 2010-12-15 05:21:28Z weegreenblobbie $ # ############################################################################### from Nsound import * # Read in the wavefile. a1 = AudioStream("Temperature_in.wav") # Gra...
weegreenblobbie/nsound
src/examples/stretcher.py
Python
gpl-2.0
1,481
[ "Gaussian" ]
af6d8b1d6777c2e7904b48798f88f487d8f26e67ef4318b4f68ff3d505e1f8e7
################################################################################# # File Name: rmsdAnalysis.py # Author: Kory Melton # Date: 6/28/17 # Project: ProteinAnalysis # Purpose: This file will define and implement the rmsdAnalysis class # to allow the easy use of analyz...
melt6457/MMProteinAnalysis
Source/rmsdAnalysis.py
Python
mit
7,068
[ "VMD" ]
13ff21d842f356112eeec49de7b24aa5c9d4ba4d5e8e0da84269ee225ca134b7
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from __future__ import (absolute_import, divi...
mganeva/mantid
Framework/PythonInterface/test/python/plugins/algorithms/ComputeCalibrationCoefVanTest.py
Python
gpl-3.0
9,858
[ "Gaussian" ]
1be90929626f634cba2a2660892689d38abb7cc66b2e1a4e55b63f5c0f27e1f2
import director.vtkAll as vtk import director.objectmodel as om from director import lcmUtils # if bot_lcmgl cannot be important than this module will not be able to # support lcmgl, but it can still be imported in a disabled state try: import bot_lcmgl import octomap as lcmOctomap LCMGL_AVAILABLE = True e...
RobotLocomotion/director
src/python/director/lcmoctomap.py
Python
bsd-3-clause
5,236
[ "VTK" ]
a2513d63f94d791f87b6885f300865c39921be2c25cdef0dd6d093d5c4b68c20
# 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...
kkreis/espressopp
src/integrator/FixPositions.py
Python
gpl-3.0
1,965
[ "ESPResSo" ]
ae502a91e27e08f19e6f7d01cfbb84722bee3ad3f5e26c934153e02b9729acb0
""" @author: rhallmen @date: 24.06.2017 """ from antlr4 import * from sxlLexer import sxlLexer from sxlParser import sxlParser from sxlVisitor import sxlVisitor class Signal(object): def __init__(self, name): self.name = name self.position = None self.mode = None self.isInput = Non...
nussbrot/AdvPT
python/SignalVisitor.py
Python
mit
3,895
[ "VisIt" ]
c93e602c42c4df1b9988f2ff4a5e06ba7c8d77c1e2bd1b44b34086a49db6885c
""" Browser set up for acceptance tests. """ # pylint: disable=no-member # pylint: disable=unused-argument from base64 import encodestring from json import dumps from logging import getLogger import requests from django.conf import settings from django.core.management import call_command from lettuce import after, b...
Edraak/edraak-platform
common/djangoapps/terrain/browser.py
Python
agpl-3.0
10,736
[ "VisIt" ]
9bc2134be5314ae47d3ca7acff4a97843f174c7c14081440cc01e3d31b5b8f08
# """ # # Stuff to make multi-D dispersion spectra, for instance for Mayavi ... # For now this works only for 4 curves, to give 3 dimensions. # # """ # # import sys # import numpy as np # #import matplotlib.pyplot as plt # # import pycs.gen.util as util # import pycs.gen.lc as lc # import pycs.gen.ml as ml # # # ...
COSMOGRAIL/PyCS
pycs/play/fit/multispec.py
Python
gpl-3.0
3,194
[ "Mayavi" ]
4b042df90cd56d08a5f15d3d739f5fc363a37be0dd43b08a9c9cc6aecf3992d9
#!/usr/bin/python # # Flickr API implementation # # Inspired largely by Michele Campeotto's flickrclient and Aaron Swartz' # xmltramp... but I wanted to get a better idea of how python worked in # those regards, so I mostly worked those components out for myself. # # http://micampe.it/things/flickrclient # http://www.a...
crmauceri/VisualCommonSense
code/crawler/flickrapi2.py
Python
mit
19,386
[ "Brian", "VisIt" ]
b30333f9fb4c05ea6e501a6168b97392a71c11e67e94d35d34ccb4e1d204dbb9
# Copyright (c) 2000-2010 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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; either version 2 of the License, o...
tlksio/tlksio
env/lib/python3.4/site-packages/pylint/pyreverse/diadefslib.py
Python
mit
8,339
[ "VisIt" ]
1276239fa0d9b6036fddf9be81892391340b7fb2826f2a92a77acf4e1f23191e
# -*- coding: utf-8 -*- # Copyright (c) 2013 Spotify AB import cStringIO import signal import unittest from graphwalker import planning class Thing(tuple): id = property(lambda self: self[0]) name = property(lambda self: self[1]) outgoing = property(lambda self: self[2]) incoming = property(lambda se...
bartvanherck/python-graphwalker
graphwalker/test/planning_test.py
Python
apache-2.0
12,153
[ "VisIt" ]
cd388e8ef1bc5008edb5bbdb1734078e3953228053566edf2cfad807932a22e9
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
thaim/ansible
lib/ansible/modules/network/avi/avi_hardwaresecuritymodulegroup.py
Python
mit
3,663
[ "VisIt" ]
622a2448c86cf66dd469f73397a2b90d25afaae9e5fa46405cb1e7f927c9c692
#!/usr/bin/env python # -*- coding: utf-8 -*- """Initialization of LFPy, a Python module for simulating extracellular potentials. Group of Computational Neuroscience, Department of Mathematical Sciences and Technology, Norwegian University of Life Sciences. Copyright (C) 2012 Computational Neuroscience Group, NMBU. ...
LFPy/LFPy
LFPy/__init__.py
Python
gpl-3.0
3,715
[ "NEURON" ]
de8143601748f1719b0076ce0090d5526623c86798ae85b49798138b78a266c5
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
albertomurillo/ansible
lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py
Python
gpl-3.0
15,977
[ "Galaxy" ]
262565ff26d635f0dc001f5c784e2e5f993a9b16a929b5a27787653a08ff9dde
# Made by disKret, as a part of the # Official L2J Datapack Project, please visit # http://forum.l2jdp.com to meet the community behind it, or # http://l2jdp.com/trac if you need to report a bug. import sys from com.l2scoria import Config from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserv...
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/39_RedEyedInvaders/__init__.py
Python
gpl-3.0
4,946
[ "VisIt" ]
6cf9e05926e588343ee1675f160f476fa23fec0e142b266593838653f3622f3f
""" ============================= Generic SpectralModel wrapper ============================= .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> """ import numpy as np from pyspeckit.mpfit import mpfit,mpfitException from pyspeckit.spectrum.parinfo import ParinfoList,Parinfo import copy from astropy import log...
vlas-sokolov/pyspeckit
pyspeckit/spectrum/models/model.py
Python
mit
47,916
[ "Gaussian" ]
99808187106775c55e63e5d62528d02c96257d846fe436a60f170022be5e07c6
# -*- coding: utf-8 -*- """ End-to-end tests for the CCX dashboard. """ from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture from common.test.acceptance.tests.helpers import UniqueCourseTest, EventsTestMixin from common.test.acceptance.pages.lms.auto_auth import AutoAut...
ampax/edx-platform
common/test/acceptance/tests/lms/test_ccx.py
Python
agpl-3.0
1,656
[ "VisIt" ]
25d8f8e7e0c7d9a050aef7590386fd9302dee6363aaada1c2a12e0892fee2047
#!/usr/bin/env python ## /*========================================================================= ## Program: Visualization Toolkit ## Module: HeaderTesting.py ## Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen ## All rights reserved. ## See Copyright.txt or http://www.kitware.com/Copyright...
mspark93/VTK
Testing/Core/HeaderTesting.py
Python
bsd-3-clause
17,406
[ "VTK" ]
26ba702f1cff3f575e3ed99367db6e260e5d37977cc61c12920bcfa1adfceb44
from nanopores import * from nanopores.physics.exittime import ExitTimeProblem from dolfin import * import math # @Benjamin, Gregor TODO: # -) check permittivity and surface charge of ahem # -) what biased voltage to use? geo_params = dict( l3 = 30., l4 = 15., R = 40., x0 = [5., 0., 10.], # |x0| > 2.2...
mitschabaude/nanopores
scripts/test_ahem.py
Python
mit
4,411
[ "FEFF" ]
9e9ce3f8bc9c13a3e3f3486e90dfb4c3b4a31b6509d7d9e438f881595fd7e731
import argparse import csv import matplotlib.pyplot as plt import numpy as np import pandas as pd import sklearn.dummy import sklearn.gaussian_process import sklearn.linear_model import sklearn.kernel_approximation LABEL_COL = 4 INPUT_COLS = 7, 9, 11, 13, 15 INPUT_DIM = len(INPUT_COLS) INPUT_ROW_VALID = lambda row: ...
alasdairtran/mclearn
projects/jakub/redshift_regression/photometric_redshift.py
Python
bsd-3-clause
6,307
[ "Galaxy" ]
35e26a1d187441b683bda844f4c2eccbc8e24417c18e82a75d730b2207334094
# PyCal - Python web calendar # # Copyright (C) 2004-6 Ray Osborn # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later versio...
rayosborn/pycal
src/pycal/Event.py
Python
lgpl-3.0
51,992
[ "VisIt" ]
32006a622309cf342d2190d8089f37020dcdcc5ce3e1b091c8364b45f9e41f62
#!/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. # ...
yannh/ansible-modules-core
files/acl.py
Python
gpl-3.0
10,175
[ "Brian" ]
fe50431a562629d7f2fd993e12abaed68494c1d9c4aa2e6776921806e357110b
"""Module containing physical constants and `NamedTuple`s to store molecular orbitals, shell, etc. Index ----- .. currentmodule:: nanoqm.common .. autosummary:: DictConfig change_mol_units getmass number_spherical_functions_per_atom retrieve_hdf5_data is_data_in_hdf5 store_arrays_in_hdf5 A...
SCM-NV/qmworks-namd
nanoqm/common.py
Python
mit
13,045
[ "CP2K" ]
58ee3b28729a9b4c28590bb3f815d51b62caf83abd7a3a5f72d7f5872550a86e
# # Copyright (C) 2000 greg Landrum # """ unit testing code for cross validation """ from __future__ import print_function import os import unittest from rdkit import RDConfig from rdkit import RDRandom from rdkit.ML.DecTree import CrossValidate from rdkit.ML.DecTree import randomtest from rdkit.TestRunner import r...
rvianello/rdkit
rdkit/ML/DecTree/UnitTestXVal.py
Python
bsd-3-clause
2,793
[ "RDKit" ]
f5324324af795008ff42df2cef4d709f3ab3840ecd56bb38a007055c78d237b2
#!/usr/bin/env python # # $File: utils.py $ # $LastChangedDate$ # $Rev$ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free softwar...
BoPeng/simuPOP
src/utils.py
Python
gpl-2.0
136,911
[ "VisIt" ]
d9d39e3c5e5241c8c9b1c7a4c5c75a892dc2b1f0b7eed1dd8f203163b64cadf8
# This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: ...
zasdfgbnm/qutip
qutip/bloch3d.py
Python
bsd-3-clause
21,732
[ "Mayavi" ]
cc1bfdf8202a9117b116e6edea1a88f74d6e221b4805c966b665668699bc072f
from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from django.db.models import Q from epl.models import Teamrecord, Players, Teams, Stats, Games from epl.serializers import TeamRecordSerializer, PlayerRecordSerializer, TeamsSerializer, StatsSerialize...
TeamEmily/Emily_server
epl/views.py
Python
mit
19,515
[ "CRYSTAL" ]
dcf4726f2d067e89807a30e1df7d5857b63dd6dee73039a2ac06c23627c2bda2
#!/usr/bin/env python2 # Copyright (C) 2012 W. Trevor King <wking@drexel.edu> # Copyright (C) 2012 Sebastian Pipping <sebastian@pipping.org> # Copyright (C) 2013 Brian dolbec <dolsen@gentoo.org> # Licensed under GPL v2 or later # This script should be run from the root of the catalyst source. # source the testpath fil...
proneetv/catalyst
doc/make_target_table.py
Python
gpl-2.0
1,224
[ "Brian" ]
dfbcf32394afc0ada4ac14435d9918c22429841f30c331509b2df3f8dcdaf3a3
# -*- 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/event.py
Python
gpl-2.0
18,906
[ "Brian" ]
9893129f17c02551f80dd049b0d9b0e9a49837c5babef7542c74bb2a9d7421aa
#!/usr/bin/env python # Copyright 2014-2021 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 # # U...
sunqm/pyscf
pyscf/cc/eom_uccsd.py
Python
apache-2.0
124,148
[ "PySCF" ]
f76fd934800ee28b38e22d1295b79245097dbdc55d57010e15f8d51bb402baf4
# # Copyright (C) 2010-2011, 2011 Canonical Ltd. All Rights Reserved # # This file is part of txzookeeper. # # Authors: # Kapil Thangavelu # # txzookeeper is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Fou...
racker/txzookeeper
txzookeeper/tests/test_client.py
Python
gpl-3.0
40,264
[ "MOOSE" ]
d33407e58cd42d396dbdcdbe145738c8d49b9817d96e027545d24ece709abf9c
import os, string, tempfile, shutil from subprocess import Popen from ase.io import write from ase.units import Bohr class Bader: '''class for running bader analysis and extracting data from it. The class runs bader, extracts the charge density and outputs it to a cube file. Then you call different funct...
askhl/ase
ase/calculators/jacapo/utils/bader.py
Python
gpl-2.0
6,698
[ "ASE" ]
8cb1222ce09b579db35de20dee5a211ffc122d7ae3c0d80708808ff68f6f3ddc
''' CacheFeederAgent This agent feeds the Cache tables with the outputs of the cache commands. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN CacheFeederAgent :end-before: ##END :dedent: 2 :caption: CacheFeederAgent options ''' __RCSID__ = '$Id$' from DIRAC import S_OK from DIRAC.Core.Bas...
fstagni/DIRAC
ResourceStatusSystem/Agent/CacheFeederAgent.py
Python
gpl-3.0
6,604
[ "DIRAC" ]
aecd72fce5d4b0574e386c742d44772f219c7163d4644efb65d6d90c6f606b6e
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2018-10-11 17:51:43 # @Last modified by: Brian Cherinka # @Last Modified time: 2018-11-29 17:23:15 from __future__ import print_function, division, absolute_import import marvin.tools impo...
sdss/marvin
python/marvin/contrib/vacs/visual_morph.py
Python
bsd-3-clause
7,457
[ "Brian" ]
04df6468800c578d044bb0d7cd44d86b4241f8f6e236db29a61e9b186e97b8cd
# Copyright (c) 2013 Huan Do, http://huan.do import ast import environment from future_finder import FutureFinder class FutureVisitor(object): def __init__(self, env): self.env = env self.tree = env.tree def traverse(self): future_finder = FutureFinder(self.env) future_finder...
huan/Underscore
underscore/future_visitor.py
Python
mit
618
[ "VisIt" ]
98545aa9418ebc68e7bb75ba5bebc643dc1a56b6b4d1ca00a69ca7518983d14a
#!/usr/bin/env python # This example shows how to load a 3D image into VTK and then reformat # that image into a different orientation for viewing. It uses # vtkImageReslice for reformatting the image, and uses vtkImageActor # and vtkInteractorStyleImage to display the image. This InteractorStyle # forces the camera...
naucoin/VTKSlicerWidgets
Examples/ImageProcessing/Python/ImageSlicing.py
Python
bsd-3-clause
4,168
[ "VTK" ]
6a599f4d09525cb4aa861abfface71388a2c9079846e0649fc2a94310944231e
# pylint: disable=missing-docstring from lettuce import step, world SELECTORS = { 'spinner': '.video-wrapper .spinner', 'controls': '.video-controls', } # We should wait 300 ms for event handler invocation + 200ms for safety. DELAY = 0.5 @step('I have uploaded subtitles "([^"]*)"$') def i_have_uploaded_sub...
fintech-circle/edx-platform
cms/djangoapps/contentstore/features/video.py
Python
agpl-3.0
2,082
[ "VisIt" ]
bbe92b381904249ad9ef4368d501293ca996b0d4972e8167491cf61fa6bc89cc
import commands import os import Queue import settings import time import threading import serial import sys import traceback from thirtybirds_2_0.Network.manager import init as network_init from thirtybirds_2_0.Updates.manager import init as updates_init class Network(object): def __init__(self, hostname, netwo...
andycavatorta/oratio
Roles/avl-medulla/main.py
Python
mit
11,212
[ "CRYSTAL" ]
a51d99384cf1886ad35779380db898c44ec3e3e240a8daf530855bb7feb388f0
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # create a rendering window and renderer ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRen...
timkrentz/SunTracker
IMU/VTK-6.2.0/Filters/Modeling/Testing/Python/TestSpherePuzzleArrows.py
Python
mit
1,865
[ "VTK" ]
31505c93199947928204cf9e460cc45b404bed9826630a892b869222dd0c14bb
# # Author: Henrique Pereira Coutada Miranda # Run a GW calculation using yambo # from __future__ import print_function from builtins import range from yambopy import * from qepy import * import argparse yambo = "yambo" p2y = "p2y" folder='bse' def doublegrid(): global folder folder = "%s_dbg"%folder data...
henriquemiranda/yambo-py
tutorial/mos2/bse_mos2.py
Python
bsd-3-clause
4,093
[ "Yambo" ]
ade5c6561fd66873a40f35a86582f9936447ade18f37d61dba751b9cac38e99f
#!/usr/bin/env python from __future__ import division from optparse import OptionParser import rospy import rosparam import copy # import cv: open cv 1 not used import cv2 import numpy as np import threading import dynamic_reconfigure.server from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Imag...
florisvb/multi_tracker
nodes/delta_video_simplebuffer.py
Python
mit
9,513
[ "Firefly" ]
52dde3f4c5a5c950124675743edfffef24c2b249ba9d1ac73e4d940bfe3e31a8
# Copyright 2014-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 required by appl...
sunqm/pyscf
pyscf/pbc/__init__.py
Python
apache-2.0
943
[ "PySCF" ]
f30fdd7b0c166a9f187489e01235c54974aa5bf7d32bdfe77edb0d5e8f32090f
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
tensorflow/probability
tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop.py
Python
apache-2.0
11,578
[ "Gaussian" ]
7ae6e0a91f670692f32f39eaa088b399936d7bb8cdd4261c7cb03cf7e4fdad75
# coding=utf-8 # octopus在etcd中的根节点 ROOT_NODE = '/octopus' # service信息在etcd中的节点 SERVICE_NODE = ROOT_NODE + '/service' # config信息在etcd中的节点 CONFIG_NODE = ROOT_NODE + '/config' # locker 信息在etcd中的节点 LOCKER_NODE = ROOT_NODE + '/locker' # logger_name LOGGER_NAME = 'octopus' class SERVICE_ACTION: """ service 变更操作 ...
ideascf/octopus
constant.py
Python
mit
1,208
[ "Octopus" ]
5573b8ba8bc9ff30015b85facfbc48b6d0d4352798062d0191f97dd8fbbf965c
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
sparkslabs/kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Device/DVB/Parse/ParseServiceDescriptionTable.py
Python
apache-2.0
19,571
[ "CRYSTAL" ]
c2b6893bf70942efa4eaed7aab4bad87267f126785bb5c92951738a36d5b3cae
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-05-19 16:08:47 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-07-30 19:12:14 from __future__ import print_function, division, absolute_import from tests.api.conftest ...
sdss/marvin
tests/api/test_plate.py
Python
bsd-3-clause
3,385
[ "Brian", "Galaxy" ]
03183b7ce6b852cf8f52977226d3f097015d3a5032bf6c5de8f95afc95b19d89
""" Encoding and decoding for dirac, Ids: i -> int I -> long f -> float b -> bool s -> string z -> datetime n -> none l -> list t -> tuple d -> dictionary """ from __future__ import print_function from __future__ import absolute_import from __future__ import division __RCSID__ = "$Id$" from past.builtins imp...
yujikato/DIRAC
src/DIRAC/Core/Utilities/DEncode.py
Python
gpl-3.0
15,157
[ "DIRAC" ]
72a85d8051e6e7356b4bf26fe2e04512ed16f56a89b49e3daa7170125cdd9c8f
# -*- coding: utf-8 -*- ''' *GSASIIstrMath - structure math routines* ----------------------------------------- ''' ########### SVN repository information ################### # $Date: 2018-06-13 20:58:28 +0300 (Wed, 13 Jun 2018) $ # $Author: vondreele $ # $Revision: 3433 $ # $URL: https://subversion.xray.aps.a...
AntonGagin/GSAS_USE
patchSystErrors/modifiedOld/GSASIIstrMath.py
Python
gpl-3.0
243,705
[ "CRYSTAL", "Gaussian" ]
9ab9a1b9cb89c0a43c16fc673f7ead9ea561f11cd96b54c7fb7ebd826533268f