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
"""\ PyQuante: Python Quantum Chemistry PyQuante is a toolkit for building quantum chemistry programs in the Python programming language. Modules: CGBF Class/functions for manipulating contracted Gaussian bfns PGBF Class/functions for manipulating primitive Gaussian bfns hartree_fock Functions fo...
berquist/PyQuante
PyQuante/__init__.py
Python
bsd-3-clause
1,554
[ "Gaussian" ]
2775cb63152316efc0abc266dd60734cce11d1331930f642cb2289b081b441d2
r""" =============== Decoding (MVPA) =============== .. contents:: Contents :local: :depth: 3 .. include:: ../../git_links.inc Design philosophy ================= Decoding (a.k.a. MVPA) in MNE largely follows the machine learning API of the scikit-learn package. Each estimator implements ``fit``, ``transform``...
mne-tools/mne-tools.github.io
0.18/_downloads/e9da0c1f80863ce55775f8c349b7ce39/plot_sensors_decoding.py
Python
bsd-3-clause
18,083
[ "VisIt" ]
7b7498e82113776a9c9aa2f3558ff3977136ad91853eb818fe22f49fd5e79ed7
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' To avoid recomputing AO to MO integral transformation, integrals for CCSD, CCSD(T), CCSD lambda equation etc can be reused. ''' from pyscf import gto, scf, cc mol = gto.M(verbose = 4, atom = 'H 0 0 0; F 0 0 1.1', basis = 'ccpvdz') mf ...
gkc1000/pyscf
examples/cc/12-reuse_integrals.py
Python
apache-2.0
893
[ "PySCF" ]
9a258e8af2eac32ed83a2c2706ee32a27b94e99a71092d0f17af08cc22545205
# -*- coding: utf-8 -*- u"""simulation data operations :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkconfig from pykern import pkio from pykern.pkcol...
mkeilman/sirepo
sirepo/sim_data/srw.py
Python
apache-2.0
23,092
[ "CRYSTAL", "Gaussian" ]
b72d6e2a98b652ad1b13b988ea990cdbd7ea2c1ebd3067819a9b99d67aba4fc6
from numpy import array, matrix,log from math import exp from numpy import identity from numpy import zeros from .__gaussian_custom import norm_pdf_multivariate class density: """This is a kernel density estimation framework, but not the complete algorithm. The user will have to run a clustering method first t...
sbxzy/pygks
pygks/kde.py
Python
bsd-3-clause
2,602
[ "Gaussian" ]
3afb5ab7d15f84ce1fa8a467b080426ed89935c2f21e214b9a7ee96c73453662
# -*- coding: utf-8 -*- """Tests for the repository class.""" import os import tempfile from pybel import to_bel_script, to_nodelink_file, to_pickle from pybel.examples import egf_graph from pybel.repository import BELRepository from pybel.testing.cases import TemporaryCacheMixin class TestRepository(TemporaryCach...
pybel/pybel
tests/test_bel_repository.py
Python
mit
2,024
[ "Pybel" ]
5fd94ecaf7b28147272f8b2d227ed4762b3989c166485e7f4a539b8d4f256d3e
import numpy as np import tensorflow as tf import elbow.util as util from elbow import ConditionalDistribution import scipy.stats from elbow.gaussian_messages import MVGaussianMeanCov, reverse_message, forward_message from elbow.parameterization import unconstrained, psd_matrix, psd_diagonal class LinearGaussian(C...
davmre/bayesflow
elbow/models/time_series.py
Python
bsd-3-clause
12,076
[ "Gaussian" ]
47469e1b346a9b29f4d042d73f46c9068359cb345ba8cfa1b6262f34bdc70ef8
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Andrew Dykstra <andrew.r.dykstra@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os ...
jaeilepp/mne-python
mne/channels/channels.py
Python
bsd-3-clause
47,704
[ "Mayavi" ]
ae84ffb7767175b4fa5d4c1f6a29cbdad3fece218b2692ff4375e9e852242d3e
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/Input/JsonData.py
Python
lgpl-2.1
2,871
[ "MOOSE" ]
bca1d4fec3cb25aae2d7af0f7f14107142bdd1f894b10a6b2cc3d87a81ca67ba
'''subclassing kde Author: josef pktd ''' import numpy as np from numpy.testing import assert_almost_equal, assert_ import scipy from scipy import stats import matplotlib.pylab as plt class gaussian_kde_set_covariance(stats.gaussian_kde): ''' from Anne Archibald in mailinglist: http://www.nabble.com/Wid...
statsmodels/statsmodels
statsmodels/sandbox/nonparametric/kdecovclass.py
Python
bsd-3-clause
5,669
[ "Gaussian" ]
e30c6081b3b3219c39809dd0cc850377448de680e4967a0c9f92e4678d9a5409
# coding: utf8 { ' Quotas: %(quotas)s x%(quota_amount).2f': ' Quotas: %(quotas)s x%(quota_amount).2f', ' Transaction number: %s': ' Transaction number: %s', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field...
reingart/gestionlibre
languages/fr-ca.py
Python
agpl-3.0
16,572
[ "VisIt" ]
0f4f8dcecf465e04190254e18a01c4ea21e4a37e315cf272b0d477606b7bda9c
""" + + + + + + + HEADER + + + + + + + + + file_name lc_remaped_position_L3_.hdf5 HDF5_Version 1.8.18 h5py_version 2.7.1 + + + + + + + DATA + + + + + + + + + + ======================================== agn_properties <HDF5 group "/agn_properties" (2 members)> - - - - - - - - - - - - - - - - - - - - agn_activity <H...
JohanComparat/pyEmerge
bin_cluster/fits_add_templates.py
Python
unlicense
17,110
[ "Galaxy" ]
7db8279937aacd445e4b6d648f939c081317b465a55731e69232696e67cd8cdb
# -*- coding: utf-8 -*- # Copyright 2007-2011 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
sillvan/hyperspy
hyperspy/io_plugins/netcdf.py
Python
gpl-3.0
6,589
[ "NetCDF" ]
32d2e45f4234ea78f2d206d816be6bfa87db971127d4bb1a809482e089e91cbb
from datetime import datetime from django.contrib.auth.models import User from django.db import models from django.utils.translation import ugettext_lazy as _ from djblets.util.db import ConcurrencyManager from djblets.util.fields import CounterField from reviewboard.reviews.models import Group, ReviewRequest from r...
chazy/reviewboard
reviewboard/accounts/models.py
Python
mit
9,071
[ "VisIt" ]
1f42d46cab24be9e17744396728fd3409058cf4ea752d16687fc05d820988ad2
""" A program demonstrate how opposite neural networks work. Visit http://evtushenko.turris-eburnea.ru/opp_ann_2014.html for more details. """ __author__ = 'Evtushenko Georgy' from metanet.networks.artificial_networks.opposed_network import OpposedNetwork from metanet.datasets.xor import get_xor if __nam...
senior-zero/metanet
examples/opposed.py
Python
gpl-3.0
560
[ "VisIt" ]
1694b9d31c0d89420176d49c92d77f042a5fe61916723c63d8e716a86bc5bb7f
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of the test suite of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:LGPL$ ## Commercial License...
RLovelett/qt
doc/src/diagrams/contentspropagation/standardwidgets.py
Python
lgpl-2.1
7,315
[ "ASE" ]
6d0942bba8a45b6b53d5283196dee62ec7c68ce1616c678b4025fd00202568eb
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
tensorflow/agents
tf_agents/environments/examples/tic_tac_toe_environment.py
Python
apache-2.0
5,319
[ "VisIt" ]
5a1f02291d9fdcb1dd99d4310b137f97e356e479b7d2efec9e6ee472c6eb10f0
# coding: utf-8 """Standard test images. For more images, see - http://sipi.usc.edu/database/database.php """ import os as _os import numpy as _np from ..io import imread, use_plugin from .._shared._warnings import expected_warnings, warn from ..util.dtype import img_as_bool from ._binary_blobs import binary_bl...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/skimage/data/__init__.py
Python
gpl-3.0
11,893
[ "ESPResSo" ]
4b67dd93ffd658ac5f135a4077e1f393ed7d22dcd0ede3fc72910511ba381309
import copy import subprocess as sub from pos_parameters import string_parameter, value_parameter, filename_parameter, \ ants_transformation_parameter, vector_parameter, list_parameter, \ switch_parameter, ants_regularization_parameter, boolean_parameter import pos_parameters class ge...
pmajka/poSSum
possum/pos_wrappers.py
Python
mit
81,697
[ "Gaussian" ]
db289d08b1c5766fb4fc20bef8889cf36dfc537ad4461129bfc3604c9df149cc
# Copyright: Damien Elmes <anki@ichi2.net> # -*- coding: utf-8 -*- # License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html from PyQt4.QtGui import * import ankiqt.forms from ankiqt import appVersion def show(parent): dialog = QDialog(parent) abt = ankiqt.forms.about.Ui_About() abt.set...
richtermondt/ankiqt
ankiqt/ui/about.py
Python
gpl-3.0
1,788
[ "VisIt" ]
896d4850188f8536f5d765f92d3ea3780e602ca04d84ace692af6b9e80f11d28
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import with_statement __license__ = 'GPL v3' __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import sys, os, shutil, plistlib, subprocess, glob, zipfile, tempfile, \ py_compi...
Eksmo/calibre
setup/installer/osx/app/main.py
Python
gpl-3.0
23,816
[ "VisIt" ]
73887a25b1afae2ca7c2ee1a75dc608e5d831cb52b37a122c0016592e4712396
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** # ...
SKIRT/PTS
magic/config/find_other.py
Python
agpl-3.0
4,933
[ "Gaussian" ]
7366ef7e18330bb998fadbb931d58da25fd7fbc98eebf6c29337558532536972
# -*- coding: utf-8 -*- """ Created on Fri Sep 30 15:20:45 2011 @author: josef """ import numpy as np from scipy import stats from statsmodels.sandbox.tools.mctools import StatTestMC from statsmodels.sandbox.stats.diagnostic import ( acorr_ljungbox, unitroot_adf) def normalnoisesim(nobs=500, loc=0...
bavardage/statsmodels
statsmodels/sandbox/tools/try_mctools.py
Python
bsd-3-clause
1,890
[ "ADF" ]
e1d9a084d201e73b2a5aa51bfc22d0db10ff5e8926e60245205155289019dd57
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
germs-lab/RefSoil
script_google_api/google-api/google-soil-strain.py
Python
gpl-2.0
2,009
[ "VisIt" ]
181e3cc7a89aeb5a0f68a55f04297af14536dbb09dcae3b2405ce9e18b13637d
#!/usr/bin/env python """ This script generates API changes between two different versions of VTK. The script uses git and ctags to preset a list of classes added/removed, public methods added/removed when going from one version to the other. """ # ctags generated by the command: # ctags -R --sort=yes --c++-kinds=cf --...
candy7393/VTK
Utilities/Maintenance/semanticDiffVersion.py
Python
bsd-3-clause
20,609
[ "VTK" ]
e405d242f27b70946ae2e3b91eadf45ccb403ff4959204a2ee479e7604faf31a
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.2 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
bearstech/ansible
lib/ansible/modules/network/avi/avi_controllerproperties.py
Python
gpl-3.0
13,790
[ "VisIt" ]
e27e45785b57eb7d85f6833550e21fa4d11d2db6d088af6542e3bf5507269dbb
#!/usr/bin/env python from __future__ import division from __future__ import absolute_import from __future__ import print_function # -*- coding:UTF-8 -*- __author__ = 'Zhengtao Xiao' import HTSeq import pysam import sys def readGTF(gtfFile,stranded): gtf = HTSeq.GFF_Reader(gtfFile) start_codon_sites = {} stop_cod...
xzt41/RiboCode
RiboCode/RPF_count_ORF.py
Python
mit
4,586
[ "HTSeq", "pysam" ]
1e4e0bf639369086e27687c473a086e01caa0274a1034f4f52af02e2729845c1
#fq2sam.py: Align fastq read pairs to reference genome. #created by: Jeffrey A. Detras #!/usr/bin/python import sys, getopt, re, os, subprocess def main(argv): #define variables bwa_threads = '' reference = '' read_pair1 = '' output_dir = '' #get arguments try: opts, args = get...
IRRI-Bioinformatics/variant-calling-pipeline
fq2sam.py
Python
cc0-1.0
2,197
[ "BWA" ]
61d0bc6741b9c20febbb1210fafe4352ce694f8f70125d6f0e503cdd3fa172d2
# -*- coding: utf-8 -*- """ Generators for random graphs. """ # Copyright (C) 2004-2009 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. __author__ = """Aric Hagberg (hagberg@lanl.gov)\nPieter Swart (swart@l...
JaneliaSciComp/Neuroptikon
Source/lib/CrossPlatform/networkx/generators/random_graphs.py
Python
bsd-3-clause
30,902
[ "VisIt" ]
f3eef810b071198f7e206fcdfc10b83e89d6aec288e46a1a253af8a9082c4c9a
import torch import os import sys import itertools import threading from concurrent.futures import ThreadPoolExecutor from src.python.preprocess2 import * from blast import * from tempfile import gettempdir tmp_dir = gettempdir() out_dir = "./Data" from scipy.stats import * import pickle NUM_CPU = 8 eps = 10...
yotamfr/prot2vec
src/python/dingo_utils2.py
Python
mit
12,632
[ "BLAST" ]
12ccbb5bba29230fea0dcf4d51f9266bb7af4a88c7b7e4de8b9648472e6c5f83
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
snyderr/robotframework
src/robot/model/itemlist.py
Python
apache-2.0
2,989
[ "VisIt" ]
16e6bbfee2b6098a3e2b218d4c2c9c1113570fd4ca09aafa9abc02a4b6705954
"""The Mayavi UI plugin """ # Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Standard library imports. import logging # Enthought library imports. from traits.api import List, on_trait_change from envisage.api import Plugin from pyface.wor...
liulion/mayavi
mayavi/plugins/mayavi_ui_plugin.py
Python
bsd-3-clause
7,921
[ "Mayavi" ]
6bc675b0424682e8bb7a2cfca53f264d507b9581fe5a8a33ebb08fd713bd232d
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # Convolve MTSS rotamers with MD trajectory. # Copyright (c) 2011-2017 Philip Fowler and AUTHORS # Published under the GNU Public Licence, version 2 (or higher) # # Includ...
MDAnalysis/RotamerConvolveMD
rotcon/__init__.py
Python
gpl-2.0
7,468
[ "MDAnalysis" ]
ad5131d39ba7f0956e933bbd54e2e94c33873cca79ac7106f7fdfc3137d07653
import cv2 from matplotlib import pyplot as plt img_file_path = "./img/Lenna.png" #open image img = cv2.imread(img_file_path) img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # para converter para GRAY <<<<<<<<<<<<<<<<<< ## 1) blur (uniform) img_blur = cv2.blur(img, (3,3)) # fig, subs = plt.subplots(1,2) ## plt.gray(...
daniellima/cifar-10-image-recognition
src/examples/6-filters.py
Python
mit
1,514
[ "Gaussian" ]
7e9f209150f177d245f47dc647efd58bcde633cdd93425890586378c011e3cec
""" Codes for Scattering by ISM Based on formalism derived by Macquart & Koay 2013, ApJ, 776, 125 Modified by Prochaska & Neeleman 2017 """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np from scipy.special import gamma from astropy import constants from astr...
FRBs/FRB
frb/turb_scattering.py
Python
bsd-3-clause
13,395
[ "Galaxy" ]
c2a04f37e40126323d2d5a30edfb0fb84ad2182c84956250df5a5192c0e4fd7a
''' SparsePak Correction Tools (SPaCT) Author: Zach Pace (U Wisc-Madison) License: GNU GPLv2 Some tools for correcting un-flux-calibrated SparsePak data when there's no standard star. Performance not guaranteed. Success dependent on correct redshift, correct centering of SparsePak & SDSS. Changelog: Version ...
zpace/SparsePak-SFH
SPaCT.py
Python
mit
72,772
[ "Galaxy", "Gaussian" ]
2211d808a657eeb08bef8ab08e1467a1a71b0a33bba11d4dd3c5a9cc0234ad62
from django.views.generic import View from django.http import HttpResponse from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from influencetx.core import constants import logging log = logging.getLogger(__name__) class FrontendAppView(View): """ Serves the compiled frontend...
open-austin/influence-texas
src/config/views.py
Python
gpl-2.0
990
[ "VisIt" ]
7ef2ad88d7fe2747f1d3e1c9613587ec9b29507dc0027f748d56c5cc8cbf1d1b
# coding=utf-8 """Tests for the flood forecasting functions.""" import unittest import numpy import os import sys # We can't install scipy on OSX easily so disable import check #pylint: disable=F0401 from realtime.netcdf_utilities import convert_netcdf2tif from safe.storage.core import read_layer from safe.storage.ve...
opengeogroep/inasafe
realtime/test/test_flood_forecasting.py
Python
gpl-3.0
6,060
[ "NetCDF" ]
48fbcd8754dde5331a2fd133ac050235ef27015fa497e1dea3a0fc73519eab74
# Orca # # Copyright 2005-2008 Google Inc. # # 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 option) any later version. # # This library i...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/espeechfactory.py
Python
gpl-3.0
15,796
[ "ORCA" ]
36d36793338a6106a5101a49cc701cef263880557607ebdce6f677fa382b4df4
""" Test wait until next page loads. """ from bok_choy.web_app_test import WebAppTest from bok_choy.promise import BrokenPromise from .pages import ButtonPage, NextPage class NextPageTest(WebAppTest): """ Test wait for next page to load. """ def setUp(self): super().setUp() self.next...
edx/bok-choy
tests/test_next_page.py
Python
apache-2.0
822
[ "VisIt" ]
7ba95234ac3709f8aad1a17837f22b5b1570b0ea2bb5de2ce1bf93598cf43e09
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock, # Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern # University. # # This file is part of Crunchberry Pie. # # Crunchberry Pie is free software: you can redistribute it and/or modify # it under the terms of the GNU Gene...
brianboyer/newsmixer
pie/questions/tests.py
Python
gpl-3.0
3,210
[ "Brian", "exciting" ]
1582d0dfeed3d2b892461e15c1cd1bf3c9096165c6eeea2be53438175fbc4521
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
mehdidc/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
32,977
[ "Brian" ]
955fb65cbc819f3ddaf5ed9bcaaee7cabd82a2ec06a0592597b224bba7db450a
# -*- coding: utf-8 -*- from setuptools import setup from triggerd import __description__, __program__, __version__ def read(filename): with open(filename) as f: return f.read() setup( name=__program__, version=__version__, author='Brian Beffa', author_email='brbsix@gmail.com', desc...
brbsix/triggerd
setup.py
Python
gpl-3.0
1,934
[ "Brian" ]
5f22e4aea4f6c58a3312c809d75a1275828e60939443a010402c5f9b444a9482
from datetime import timedelta import datetime from django.utils.translation import ugettext_noop from django.utils import html from casexml.apps.case.models import CommCareCase from django.core.urlresolvers import reverse, NoReverseMatch from django.utils.translation import ugettext as _ from corehq.apps.reports.stand...
puttarajubr/commcare-hq
custom/apps/crs_reports/reports.py
Python
bsd-3-clause
7,704
[ "VisIt" ]
8ca1b755fe14d1ef5cd29f847d9cf1605982a8596fb5b7399c7bdacb7056c67f
# -*- coding: utf-8 -*- # @Author: YangZhou # @Date: 2015-10-20 22:19:29 # @Last Modified by: YangZhou # @Last Modified time: 2017-06-18 22:40:43 import aces.tools as tl import aces.config as config from ase.io import read from aces.runners import Runner from aces.graph import plot import numpy as np class runne...
vanceeasleaf/aces
aces/runners/phonts.py
Python
gpl-2.0
3,727
[ "ASE", "LAMMPS" ]
c7a92f97b215145e20552d84a9daca0ea04b6e8179f2331d5f1aaf9937ba946f
""" Adapted from https://github.com/karpathy/pytorch-normalizing-flows """ import numpy as np import torch import torch.nn.functional as F from torch import nn import pdb # from nflib.nets import LeafParam, MLP, ARMLP class AffineConstantFlow(nn.Module): """ Scales + Shifts the flow by (learned) constants p...
JannerM/gamma-models
gamma/flows/flows.py
Python
mit
10,059
[ "Gaussian" ]
fc54a38d1aeeb99d08630ecf78e54c523851111323bb401583c001d21fd30ec6
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RProtgenerics(RPackage): """S4 generic functions for Bioconductor proteomics infrastructur...
LLNL/spack
var/spack/repos/builtin/packages/r-protgenerics/package.py
Python
lgpl-2.1
973
[ "Bioconductor" ]
8e1c67dc1245d8978fb09170b5ece3267b369b6b48f6465c15041cf41ca6de21
r""" Constructing workflows (:mod:`skbio.workflow`) ============================================== .. currentmodule:: skbio.workflow Construct arbitrarily complex workflows in which the specific methods run are determined at runtime. This module supports short circuiting a workflow if an item fails, supports ordering...
xguse/scikit-bio
skbio/workflow.py
Python
bsd-3-clause
18,987
[ "exciting", "scikit-bio" ]
f3a3817dfdf37bf0fdd060b35f7f3e316f140b019e1c476cc99de38f09813ae4
# -*- coding: utf-8 -*- ? import config from app import app import time import os import json import sqlite3 as sqlite DATABASE_URL = os.environ.get("DATABASE_URL", default = "escv.db") USER_IMAGES_PATH = "../static/img/users/user_%s.jpg" ROOM_IMAGES_PATH = "../static/img/rooms/room_%s.jpg" def user_visits(user_id, ...
alxmamaev/ESCV
app/base.py
Python
gpl-3.0
3,877
[ "VisIt" ]
28bfc8a82cd559d3adeba4805736384c85011321231e76a61bdaec1625ff64d7
# -*- coding: utf-8 -*- # Copyright (c) 2010-2016 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
rackerlabs/swift
test/unit/proxy/test_server.py
Python
apache-2.0
420,732
[ "MOOSE" ]
b5ae5dc1dea453683ed80c9ae52148ff04a7ca846d3d661bdf135f2fe0911b99
# coding: utf8 from __future__ import unicode_literals NOUNS_IRREG = { "aardwolves": ("aardwolf",), "abaci": ("abacus",), "aboideaux": ("aboideau",), "aboiteaux": ("aboiteau",), "abscissae": ("abscissa",), "acanthi": ("acanthus",), "acari": ("acarus",), "acciaccature": ("acciaccatura",...
recognai/spaCy
spacy/lang/en/lemmatizer/_nouns_irreg.py
Python
mit
65,169
[ "FLEUR", "Octopus" ]
c60eccc5e85b716c55ca54fe3eed0fa9fdee4d7778684db13391fffe97fcf001
#!/usr/bin/env python __author__ = "Justin Kuczynski" __copyright__ = "Copyright 2011, The QIIME Project" __credits__ = ["Rob Knight", "Justin Kuczynski", "Daniel McDonald", "Jai Ram Rideout"] __license__ = "GPL" __version__ = "1.9.1-dev" __maintainer__ = "Justin Kuczynski" __email__ = "justinak@gmail.c...
suranap/qiime
qiime/make_phylogeny.py
Python
gpl-2.0
9,019
[ "BLAST" ]
49f69323a7e6c28f41c48dc939edb27729454f5d4cef5c88d2b522ac70faef9b
import ast as _ast import cypy import cypy.astx as astx import cypy.cg as cg import clq from clq import TypeResolutionError class Backend(clq.Backend): """A backend that centralizes logic common to C-based languages.""" def __init__(self, name): clq.Backend.__init__(self, name) def init_...
cyrus-/ace
clq/backends/base_c.py
Python
lgpl-3.0
29,850
[ "VisIt" ]
f0344f98d8e1cfe3b00e85d5b646f81a8d07a6977913e6a0c972596b7fc20248
import unittest import fix_import import builder as be import ast class CounterVisitor: def __init__(self): self.group = 0 self.alt = 0 self.range = 0 self.match_begin = 0 self.match_end = 0 self.single_char = 0 self.pattern_char = 0 self.q_none_or...
VaysseB/id_generator
test/test_visitor.py
Python
gpl-3.0
2,024
[ "VisIt" ]
8de072455efd69574c46e5d16fbeb805dd8f4a0a3bba5edb03933b87c40d6f5b
# # Copyright 2001 - 2016 Ludek Smid [http://www.ospace.net/] # # This file is part of Outer Space. # # Outer Space 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 # (...
ospaceteam/outerspace
server/lib/ige/ospace/Const.py
Python
gpl-2.0
7,683
[ "Galaxy" ]
6373c0107444e3e57d18e6ece4712663791512774df08043ecfd457a4760cd9a
import os import sys import yaml import netCDF4 from docopt import docopt __doc__ = """ Generate ncml based on a yaml file. Usage: yaml2ncml INFILE [--output=OUTFILE] yaml2ncml (-h | --help | --version) Examples: yaml2ncml roms.yaml yaml2ncml roms.yaml --output=roms.ncml Arguments: file yam...
rsignell-usgs/yaml2ncml
yaml2ncml/yaml2ncml.py
Python
mit
8,268
[ "NetCDF" ]
94dec5b906bc8215495cfb8786d394b771291eacfe663ea5adb963485b5117f7
# Installs a netCDF file with the files/install_path convention import sys import os from giss import ncutil #ifname = sys.argv[1] #odir = sys.argv[2] odir = os.path.join(os.environ['HOME'], 'modele_input', 'local') ncutil.install_nc('GIC.144X90.DEC01.1.ext_1_EC2.nc', odir) ncutil.install_nc('Z2HX2fromZ1QX1N_EC2-leg...
citibeth/twoway
landice2/install.py
Python
gpl-3.0
648
[ "NetCDF" ]
a7a2a47fe05edc37e74f912656d57312a8a1151772ec8d78021b135086882ec1
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.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 lat...
gentledevil/ansible
lib/ansible/template/safe_eval.py
Python
gpl-3.0
4,154
[ "VisIt" ]
9469558a5e802249950b410da3b6693a79273c5ec643c633a6035857ba1553b1
# -*- coding: utf-8 -*- """ Output Plugin for LAME (for 3.98 or later) Copyright (c) 2006-2008 by Nyaochi 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, or...
rinrinne/cueproc-alternative
src/ce_lame.py
Python
gpl-2.0
3,523
[ "VisIt" ]
0eaed642b2ac7e9ae27f112c62b6daec5069b4fc2ce81e65c9a9e301e1abc254
#!/usr/bin/env python ##calculate_relative_adaptiveness.py ##written 9/15/15 by Groves Dixon ProgramName = 'calculate_relative_adaptiveness.py' LastUpdated = '9/15/15' By = 'Groves Dixon' VersionNumber = '1.0' print "\nRunning Program {}...".format(ProgramName) VersionString = '{} version {} Last Updated {} by {}'.for...
grovesdixon/metaTranscriptomes
scripts/calculate_relative_adaptiveness.py
Python
mit
5,905
[ "BLAST" ]
fc0a2abe3139bd7937d52fa440a82f6582d047b2a6ae47318d86d044730e22e5
# Description: Functions to perform statistical calculations. # Author: André Palóczy # E-mail: paloczy@gmail.com __all__ = ['gauss_curve', 'principal_ang', 'nmoment', 'skewness', 'kurtosis', 'rcoeff', 'autocorr', 'crosscorr', 'Tdecorr', 'Tdecorrw', 'Ne...
paloczy/ap_tools
stats.py
Python
mit
21,964
[ "Gaussian" ]
2bceb97ec191b5c353dcc888b839d097d3a2129febbed641f913d6aba113c0f6
"""Functions for learning S2 prototypes.""" # Copyright (c) 2011-2013 Mick Thomure # All rights reserved. # # Please see the file LICENSE.txt in this distribution for usage terms. import logging import numpy as np import operator from glimpse.backends import ACTIVATION_DTYPE from glimpse.util.grandom import Histogra...
mthomure/glimpse-project
glimpse/prototypes/prototypes.py
Python
mit
11,098
[ "Gaussian" ]
c5d7e85a1063fad656cfde520e3dc974b05569b59b1c8cdcbdea725e13983076
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module provides core classes needed by all define electronic structure, such as the Spin, Orbital, etc. """ __author__ = "Shyue Ping Ong" __copyrigh...
aykol/pymatgen
pymatgen/electronic_structure/core.py
Python
mit
1,646
[ "VASP", "pymatgen" ]
d0b2c8f044f13b07b811be5ef720951f104a6f7290d55ca8ecf7559309afd65b
## This file is part of Invenio. ## Copyright (C) 2008, 2009, 2010, 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 ...
GRArmstrong/invenio-inspire-ops
modules/miscutil/lib/dbquery.py
Python
gpl-2.0
20,187
[ "BLAST" ]
2931e1bb458ef0bc939a6fe2885b409f718afac7304619e8e8385f2e69788df0
from rdkit import Chem import statsmodels.formula.api as sm import simtk.unit as u import polarizability import seaborn as sns import matplotlib.pyplot as plt import pandas as pd sns.set_palette("bright") sns.set_style("whitegrid") d = pd.read_table("/home/kyleb/src/choderalab/oeante/oeante/gaff/gaffsmarts.txt", name...
choderalab/LiquidBenchmark
src/figures/old/plot_functional_groups.py
Python
gpl-2.0
2,575
[ "RDKit" ]
7a067640b26e512deb713f2ae90295be3c5ab2053c5284a59ff7717571de23fd
from pyramid.config import Configurator from pyramid.authorization import ACLAuthorizationPolicy from pyramid.authentication import AuthTktAuthenticationPolicy from .security import groupfinder def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ config = Configur...
AlissonMMenezes/Octopus
server/octopus/__init__.py
Python
gpl-2.0
930
[ "Octopus" ]
f9226265cd252bce532003f65f9c7d91fc47591e533b313a5c659cb8957aa403
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # getrespgid - Get PGID of process on resource for kill in clean up # Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of t...
heromod/migrid
mig/shared/functionality/getrespgid.py
Python
gpl-2.0
6,023
[ "Brian" ]
cbf78de0d608ad3a00a2d4d116328332b8843691fd18c624130dbbf6e71ab6eb
#-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU ...
tatiana/invesalius
invesalius/data/editor.py
Python
gpl-2.0
8,414
[ "VTK" ]
7b50503adc8f114808b68fdc1c22a7b2d077dffb683c9bec95b25afe3329b76c
"""\ Routines to read/write information from/to Jaguar files This program is part of the PyQuante quantum chemistry program suite. Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modified BSD license. Please see the file LICENSE that is part of this...
berquist/PyQuante
PyQuante/IO/Jaguar.py
Python
bsd-3-clause
2,322
[ "Jaguar" ]
1416b1acca282d7c03421bd7d460048cd0b31d1097408f7a4756ee3960a66f77
# -*- encoding: utf-8 -*- # # amara.writers # © 2008, 2009 by Uche Ogbuji and Zepheira LLC # """amara.writers Implements Amara's support for serializing trees as XML, HTML, or XHTML. Functions for public use: lookup(str) : Returns a printer object for writing DOM elements. register(str, class) : Re...
zepheira/amara
lib/writers/__init__.py
Python
apache-2.0
11,623
[ "VisIt" ]
108c748c1e675626c7fdbac07c3459e1cb74adcf2702245b64944d8601c5b30b
r""" Linear elasticity with linear combination constraints and periodic boundary conditions. The linear combination constraints are used to apply periodic boundary conditions with a shift in the second axis direction. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) ...
rc/sfepy
examples/linear_elasticity/elastic_shifted_periodic.py
Python
bsd-3-clause
4,053
[ "VTK" ]
a3aac88af33329c84dd6e8a224cf562325bfdcab1ca377a37aa87b999afc8041
r""" Empirical Power Estimation (:mod:`skbio.stats.power`) ===================================================== .. currentmodule:: skbio.stats.power The purpose of this module is to provide empirical, post-hoc power estimation of normally and non-normally distributed data. It also provides support to subsample data ...
Achuth17/scikit-bio
skbio/stats/power.py
Python
bsd-3-clause
51,433
[ "scikit-bio" ]
6fe98d275b93d23d79b9bc3f5b4f300f4110a662d8083cdb6a4148f455e87124
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
benoitsteiner/tensorflow-opencl
tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py
Python
apache-2.0
17,350
[ "Gaussian" ]
bb9c9e56f66dc4cd508cd010e665a8d4476fa6071a578a6daa09ce1e2a396f72
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/p4util/inpsight.py
Python
gpl-2.0
23,238
[ "Jmol", "Psi4" ]
854fd40f7dd2ddeb7d11a6e8300510c8541feb74c6c9bcb3af55dbe061bbd0e7
import asyncio import random import discord from discord.ext import commands from discord.utils import get from yutu import bot from pony import orm class Games(commands.Cog): Player = None def __init__(self, bot: bot.Yutu): super().__init__() class Player(bot.db.Entity): id = o...
HarkonenBade/yutu
cogs/games.py
Python
mit
3,812
[ "CASINO" ]
ae71b7678b280860185f187ddc594dbe186739e9f20f0961f5e6c4a1bc3e8c18
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class CandleBenchmarks(Package): """ECP-CANDLE Benchmarks""" homepage = "https://github.com...
LLNL/spack
var/spack/repos/builtin/packages/candle-benchmarks/package.py
Python
lgpl-2.1
1,624
[ "MDAnalysis" ]
317ac67e8e9848e4e2101e0247b2f5d94cac623172eefcb4e6f868aeeb369743
#!/usr/bin/env python # Copyright 2014-2019 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...
gkc1000/pyscf
pyscf/pbc/scf/krohf.py
Python
apache-2.0
18,049
[ "PySCF" ]
4b08fdc45f9a0bedc3f5e989b04db47334d736e89fde445db715b1cff0464519
""" Principal Component Analysis """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Denis A. Engemann <denis-alexander.engemann@inria.fr> # Michael Eickenberg <michael.eickenberg@inria.fr>...
Titan-C/scikit-learn
sklearn/decomposition/pca.py
Python
bsd-3-clause
29,099
[ "Gaussian" ]
2109f3e775803ff99808aec734a0dcedff16bc3828f2b901fccad92662c16759
import numpy as np from kspclib import (get_snf3x3, snf_transform_rotations, get_all_grgrid_addresses, get_double_grgrid_address, get_grgrid_index, get_double_grgrid_index, get_grgrid_address_from_index, ...
atztogo/kspclib
python/test/test_grgrid.py
Python
bsd-3-clause
17,538
[ "CRYSTAL", "VASP", "phonopy" ]
33a5ee5e2e2aaef6e8dac02898d81259734e856a8502b1c3fc3c42befb3d0316
"""Core visualization operations.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Joan Massich <mailsik@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # # License: Simplified BSD from contextlib import contextmanager i...
cjayb/mne-python
mne/viz/backends/renderer.py
Python
bsd-3-clause
9,714
[ "Mayavi" ]
f6abf470aecb4e01bd0c14a86c3a91a6c25f6f816b6de13f2740c180c5f491b3
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import ast import io import operator import os import sys import textwrap import token import tokenize class Visitor(ast.NodeVisitor): def __init__(self, lines): self._lines = lines self.line_numbers_wit...
glenngillen/dotfiles
.vscode/extensions/ms-toolsai.jupyter-2021.6.832593372/pythonFiles/normalizeForInterpreter.py
Python
mit
5,187
[ "VisIt" ]
c04998413e3f934ab19db66c37630d0e79a8e47488071a690a573e433dc3cb6c
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{fir...
Nebucatnetzer/tamagotchi
pygame/lib/python3.4/site-packages/faker/providers/person/no_NO/__init__.py
Python
gpl-2.0
7,122
[ "MOE" ]
006be7a5214e3d4611e3c219f67182abf97fcda0f040927d2ebfd355c15722ec
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
lothian/psi4
psi4/driver/p4util/exceptions.py
Python
lgpl-3.0
9,507
[ "Psi4" ]
86bfcb71d934a2b66b523c7973343d8922dc34a7a6ef7cc2f3ffe140ae5db284
# # Copyright (C) 2013-2019 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) any later...
KaiSzuttor/espresso
samples/slice_input.py
Python
gpl-3.0
2,681
[ "ESPResSo" ]
5a8429dcff6e3025603eb8ed59ed94e580c7e1bdd92fdeb9077ac32550f3c806
#!/usr/bin/env python # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import unittest from splinter import Browser class TestGoogleSearch(unittest.TestCase): @classmethod def setUpClass(cls): ...
bmcculley/splinter
samples/test_google_search.py
Python
bsd-3-clause
1,099
[ "VisIt" ]
3f1df07f1a4e9ee8985b439361b3b32bd44a370dfc097a64ff2cd4a73195d0b6
""" Sampling along tracks --------------------- The :func:`pygmt.grdtrack` function samples a raster grid's value along specified points. We will need to input a 2D raster to ``grid`` which can be an :class:`xarray.DataArray`. The argument passed to the ``points`` parameter can be a :class:`pandas.DataFrame` table whe...
GenericMappingTools/gmt-python
examples/gallery/images/track_sampling.py
Python
bsd-3-clause
1,614
[ "NetCDF" ]
3d2eee2db7c56afe8ed69e75622ae3d89cdc73ca2600e5b930bed099735e09c3
#!/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...
ravibhure/ansible
lib/ansible/modules/network/avi/avi_actiongroupconfig.py
Python
gpl-3.0
5,439
[ "VisIt" ]
edee5c12bd55fad35de96bcd9d996646f6b6fa5ebbebc6495d0b9c8f845c8095
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy #...
dictoon/blenderseed
ui/materials.py
Python
mit
5,378
[ "VisIt" ]
5649486f6a0a7a4c031fff50d577558e489ed575866cf5ec4323d970a1e6a1c4
"""XML-RPC Servers. This module can be used to create simple XML-RPC servers by creating a server and either installing functions, a class instance, or by extending the SimpleXMLRPCServer class. It can also be used to handle XML-RPC requests in a CGI environment using CGIXMLRPCRequestHandler. The Doc* classes can be...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.1/Lib/xmlrpc/server.py
Python
mit
32,062
[ "Brian" ]
66b0073fc943c4ac54dc3cf59f3873c3956c0481672643be42b0da08d1165046
import sys class Out: def write(self, x): sys.__stdout__.write(x) raise RuntimeError('not silent') out, err = sys.stdout, sys.stderr sys.stdout = sys.stderr = Out() try: from gpaw import GPAW, FermiDirac from ase import Atom, Atoms a = 5.0 h = 0.2 calc = GPAW(h=h, nbands=1, kp...
robwarm/gpaw-symm
gpaw/test/stdout.py
Python
gpl-3.0
733
[ "ASE", "GPAW" ]
373775d04df45955e5faec17b41def62d871885f54f30bccf0369d557e5c5d6d
#!/usr/bin/env python """pretty.py will color text for Xterm/VT100 type terminals using ANSI Escape Sequences A library that provides a Python print, stdout, and string wrapper that makes colored terminal text easier to use(e.g. without having to mess around with ANSI escape sequences). Referance Materials: Col...
HelloClarice/ClariceNet
Pit/RaspberryPi/daemons/pretty.py
Python
gpl-3.0
2,708
[ "Brian" ]
2b4540df4665e398a9dacc91bba8f707b4db51de38b4935990c84357f7c41732
import numpy, theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams from collections import OrderedDict class RBM(object): """Bernoulli-bernoulli restricted Boltzmann machine (RBM) """ def __init__(self, input=None, n_visible=100, n_hidden=1000, ...
IITM-DONLAB/python-dnn
src/pythonDnn/layers/rbm.py
Python
apache-2.0
9,548
[ "Gaussian" ]
9870336235fdc93e777c588d0dc2c34a2b3c5bd44cb11a0d760f2c72b6574e47
"""TIP3P potential, constraints and dynamics.""" from math import pi, sin, cos import numpy as np import ase.units as units from ase.parallel import world from ase.md.md import MolecularDynamics qH = 0.417 sigma0 = 3.15061 epsilon0 = 0.1521 * units.kcal / units.mol rOH = 0.9572 thetaHOH = 104.52 / 180 * pi class T...
grhawk/ASE
tools/ase/calculators/tip3p.py
Python
gpl-2.0
5,939
[ "ASE" ]
7785f822a233bc9ed36111444fc1de196282511fc71e6ff9aeab80bdd4d21224
#!/usr/bin/env python import os import matplotlib matplotlib.use('Agg') import seaborn as sns sns.set_style('white') import matplotlib.pyplot as plt from ase_utils.myabinit import read_output from ase_utils.kpoints import cubic_kpath from ase.io.vasp import write_vasp from pyFA.abinit import DDB_reader from pyFA.ifc im...
mailhexu/pyDFTutils
resource/phonon_ana/phonana.py
Python
lgpl-3.0
16,818
[ "ABINIT", "ASE", "VASP" ]
b741aee3263478991b715b1bafcde47eecf3b19cb6a1206b615baa4b448f5bf8
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/core/ui/aboutdialog.py
Python
gpl-2.0
38,586
[ "Brian" ]
07133127c68e93c66cad24390aaa9727c510f000674ac8fd69e9f3f60c7f3e11
# Copyright 2013 Colm Ryan colm@colmryan.org # License GPL v3 (http://www.gnu.org/licenses/gpl.txt) """ Plotting synteny functions. Requires: matplotlib; pandas; Biopython """ import pandas as pd import numpy as np import re import subprocess from cStringIO import StringIO import matplotlib.pyplot as plt import...
caryan/PyBio
Synteny.py
Python
gpl-3.0
3,705
[ "Biopython" ]
7c8ad16b8df42ab445ebc3a587eacbd279eb9a1b9329dc518244621c0256ccfe
# encoding: utf-8 """ Enable wxPython to be used interacive by setting PyOS_InputHook. Authors: Robin Dunn, Brian Granger, Ondrej Certik """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the...
AMOboxTV/AMOBox.LegoBuild
script.module.pydevd/lib/pydev_ipython/inputhookwx.py
Python
gpl-2.0
6,063
[ "Brian" ]
b502ef3b5b9e942c8058184f68902a9dab597ac29581f0e7f646c74f741a2250
#! /usr/bin/env python3 # # update_po - a gramps tool to update translations # # Copyright (C) 2006-2006 Kees Bakker # Copyright (C) 2006 Brian Matherly # Copyright (C) 2008 Stephen George # Copyright (C) 2012 # Copyright (C) 2020 Nick Hall # # This program is free software; you can redistribute it a...
SNoiraud/gramps
po/update_po.py
Python
gpl-2.0
17,892
[ "Brian" ]
740f56045c625ed79a2656d5ed3553b6f367b57934528f9d19708b6ff85fd28b
# -*- 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 from django.views import defaults as default_views from go_green.users.views import UserViewSet from go...
TraMZzz/GoGreen
config/urls.py
Python
mit
1,427
[ "VisIt" ]
09217c433b7abdf5d36c14f45da0e5a37657712e3abe9c504abab6e058c5e356
"""Simple, inelegant Sphinx extension which adds a directive for a highlighted code-block that may be toggled hidden and shown in HTML. This is possibly useful for teaching courses. The directive, like the standard code-block directive, takes a language argument and an optional linenos parameter. The hidden-code-bl...
geaaru/database-release-manager
docs/sphinx/hidden_literalinclude.py
Python
gpl-2.0
3,665
[ "VisIt" ]
3fa2162f4df70495096db82beda39bc34c146e89ddbb1cdb8c380e74d64904f8