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
# # tsne.py # # Implementation of t-SNE in Python. The implementation was tested on Python 2.7.10, and it requires a working # installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the # results of this example, a working installation of matplotlib is required. # # The ...
alexandonian/lightning
lightning_fuse/tsne.py
Python
apache-2.0
5,780
[ "Gaussian" ]
10255154da6f9148673909f4c652ccf083815fc6dbf3f7196cd2232d7c9eceb8
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Copyright (c) 2016 David Topping. # All Rights Reserved. # This file is part of umansysprop. # # umansysprop 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, eit...
loftytopping/UManSysProp_public
umansysprop/activity_coefficient_models_dev.py
Python
gpl-3.0
128,172
[ "Avogadro", "Pybel" ]
939f47f9818d40d8e770ea8b91e3e53d69ca3e93611d940f03be001e6907211c
# To build out the data you'll need to jump into the Django shell # # $ python manage.py shell # # and run the build script with # # $ from data.v2.build import build_all # $ build_all() # # Each time the build script is run it will iterate over each table in the database, # wipe it and rewrite each row...
PokeAPI/pokeapi
data/v2/build.py
Python
bsd-3-clause
78,761
[ "CRYSTAL" ]
c1a7fd28898308ed208707102910f9a8a1b741407427db9c31f7b7083ac23aa4
# #START_LICENSE########################################################### # # Copyright (C) 2009 by Jaime Huerta Cepas. All rights reserved. # email: jhcepas@gmail.com # # This file is part of the Environment for Tree Exploration program (ETE). # http://ete.cgenomics.org # # ETE is free software: you can redistribute...
xguse/ete
ete_dev/phylo/reconciliation.py
Python
gpl-3.0
5,509
[ "VisIt" ]
5841b8db15fba39daff37b635612849873d468a7ac12b320eac29e31f8a354b6
from subprocess import call import matplotlib.pyplot as plt import numpy as np import healpy as hp import sys import time spice_exe='spice' spice_data='spice_data.fits' spice_noise='spice_noise.fits' spice_mask='spice_mask.fits' spice_dl='spice_dl.dat' spice_nl='spice_nl.dat' spice_bl='spice_bl.dat' spice_crr='spice_...
tbs1980/cosmo-codes
spicy/spice_cl.py
Python
mpl-2.0
7,498
[ "Galaxy" ]
f6f720eb0d0858ec652dfb984d1e391028324be4076c4b01fc5b644ef6c98d2f
from __future__ import division import scipy as sp import quantities as pq import neo from progress_indicator import ProgressIndicator import signal_processing as sigproc import tools import copy as cp from . import SpykeException def psth( trains, bin_size, rate_correction=True, start=0 * pq.ms, sto...
rproepp/spykeutils
spykeutils/rate_estimation.py
Python
bsd-3-clause
10,728
[ "Gaussian" ]
d7e0cb346ba631a0576d3a150dbc690ece22a8dfc312d860cb95b9e90e59d26b
# -*- coding: utf-8 -*- """ pepper.py ========= .. argparse:: :module: pepper :func: create_parser :prog: pepper .. moduleauthor:: Adam Gagorik <adam.gagorik@gmail.com> """ import langmuir as lm import numpy as np import collections import argparse import sys import os desc = """ Add pepper to phase(s). ...
LangmuirSim/langmuir
LangmuirPython/surface/pepper.py
Python
gpl-2.0
5,178
[ "Mayavi", "VTK" ]
d7998187730760b609b0a83aafcbc040be16de4c74cdbfeaa2be1ce6abd9232d
# -*- coding: utf-8 -*- # Copyright 2007-2020 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...
dnjohnstone/hyperspy
hyperspy/tests/signal/test_tools.py
Python
gpl-3.0
47,926
[ "Gaussian" ]
50ceda9bae6976d1b74d8b413958d6ee8dc4e36bec1c01fb1855210f183587bd
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/filter_operator.py
Python
gpl-2.0
5,612
[ "VisIt" ]
4d6ee8365ce6e5d97bf8502fecf43d1a9ccd54ec42eef401a7db5689c72aaab0
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. import numpy as np import os import shutil import sisl from ...plot import Plot, entry_point from ...plotutils import ...
zerothi/sisl
sisl/viz/plots/experimental/ldos.py
Python
mpl-2.0
15,303
[ "SIESTA" ]
433e2d5b4eee1a7ff98ffb1ea116b967f2a52fd14c77380f40d49bbc047fd5ca
from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base.Client import Client from DIRAC.Core.Utilities import DEncode class UserProfileClient(object): def __init__(self, profile, rpcClientFunctor=Client): self.rpcClientFunctor = rpcClientFunctor self.profile = profile def __getRPCClient(self): ...
DIRACGrid/DIRAC
src/DIRAC/FrameworkSystem/Client/UserProfileClient.py
Python
gpl-3.0
3,157
[ "DIRAC" ]
916dc0d3a7bc80ad585bfcfab0ceb61b19ba4e6976620b9a8b50279df28459f8
"""Contains the MoveIn transition class.""" # move_in.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import time import pygame from mpf.system.timing i...
spierepf/mpf
mpf/media_controller/transitions/move_in.py
Python
mit
4,479
[ "Brian" ]
fa1ef028f09ea108a0baa8b09f4a3aa3c2a042a38abedda34d3c05841969cd97
""" pyDatalog Copyright (C) 2012 Pierre Carbonnelle Copyright (C) 2004 Shai Berger 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 of the License, or (at your option) any lat...
pcarbonn/pyDatalog
pyDatalog/pyParser.py
Python
lgpl-2.1
36,233
[ "VisIt" ]
bf402b96223a8d32a9be9d7b62fb71caf90efb7fc78f03ce005f6dbe179621d0
# -*- coding: utf-8 -*- """ =============================================================================== Cubic: Generate lattice-like networks =============================================================================== """ import numpy as np import scipy as sp from openpnm.network import GenericNetwork from ope...
TomTranter/OpenPNM
openpnm/network/Cubic.py
Python
mit
12,176
[ "ParaView" ]
d27dc9129d5eb27caf400ab5272804a41b4cc1d00ea2749c0e92aed5840c50e6
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # # MEASURE - Master Equation Automatic Solver for Unimolecular REactions # # Copyright (c) 2010 by Joshua W. Allen (jwallen@mit.edu) # # Permission is hereby granted, free of charge, to...
jwallen/MEASURE
measure/output.py
Python
mit
14,194
[ "ChemPy" ]
00216d8355614e288f0e1c3fb5cbf88dfa8ffbdbc0a0e06983f941c8631254b7
# Copyright 2007 by Tiago Antao. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. from __future__ import print_function from os import sep import re from functools import reduce...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/PopGen/SimCoal/Template.py
Python
apache-2.0
7,595
[ "Biopython" ]
918f4259dfdbef048b8d7816624c36b8dfdd39069b6f34eb955602b7898c99e9
# 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 PyHaphpipe(PythonPackage): """HAplotype and PHylodynamics pipeline for viral assembly, ...
LLNL/spack
var/spack/repos/builtin/packages/py-haphpipe/package.py
Python
lgpl-2.1
2,151
[ "BLAST", "BWA", "Bioconda", "Biopython" ]
aa2d52676b346969452d8868cb5c01e684cc3be78d7ab0798b6f20ec63d89732
""" In this example we solve a scalar Laplace-Beltrami problem with a similar discretisation method to the one used in tracefem.py. However, we use a 3D (background mesh dimension) problem and higher order method this time. To be robust w.r.t. the interface position also in the condition number we use the normal diffus...
ngsxfem/ngsxfem
demos/tracefem.py
Python
lgpl-3.0
3,982
[ "ParaView", "VTK" ]
703194d50697d8d660a9985ccaec8e7c68b280edf3c8afabf8c774a6065a25d5
# Copyright 2016 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...
eadgarchen/tensorflow
tensorflow/contrib/distributions/python/ops/mvn_diag.py
Python
apache-2.0
8,077
[ "Gaussian" ]
d058b149346344246f26cbbf02da9aa2247b5b4c46aba46fcd35d2d3c28745ef
from JumpScale import j from flask import Flask,jsonify,make_response,g, session,redirect from flask.ext.admin import Admin from flask.ext.httpauth import HTTPBasicAuth from flask_debugtoolbar import DebugToolbarExtension auth = HTTPBasicAuth() app = Flask(__name__) # set a 'SECRET_KEY' to enable the Flask session...
Jumpscale/web
examples/restonly/start.py
Python
apache-2.0
2,812
[ "VisIt" ]
093ce688180ca4100964079e1f58559b266a487208ba7b1e4b191fad698921ac
#!/usr/bin/env python from scipy.io import netcdf import matplotlib.pyplot as plt import numpy as np import os import argparse def get_data(file,vars=[]): try: f=netcdf.netcdf_file(file,'r') except IOError: print('Error: Cannot open file'+file) return 0 if vars == []: vars=f.varia...
lstagner/FIDASIM-GUI
fidaTools.py
Python
mit
7,193
[ "NetCDF" ]
0a9eaec960b92ee9f1c376de50c6cfcf2382acc5a4397ca2a62fe331d73cf80d
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/templatetags/pipeline.py
Python
gpl-3.0
1,423
[ "Brian" ]
96652bb0a8f5daae4c984991a0ef7a86af56700988dd7b96d209b168b987e65b
# coding=utf-8 """ Unit Tests for sickbeard/numdict.py """ # pylint: disable=line-too-long from __future__ import print_function import os.path import sys import unittest sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), '../lib'))) sys.path.insert(1, os.path.abspath(os.path.join(os.path.d...
Thraxis/pymedusa
tests/numdict_tests.py
Python
gpl-3.0
19,558
[ "Octopus" ]
774ed6d9fabc1dfcafc0f57bafa78a82a7ec82c147b8f6b9fbabf6f3befb63db
""" Test functions for multivariate normal distributions. """ from __future__ import division, print_function, absolute_import import pickle from numpy.testing import (assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_equal, assert_array_les...
josephcslater/scipy
scipy/stats/tests/test_multivariate.py
Python
bsd-3-clause
59,570
[ "Gaussian" ]
61eac90dc3994623206bb8f613375d2f52b7cfa42df3598159ac8a76d4c27186
# Copyright 2011-2014, Damian Johnson and The Tor Project # See LICENSE for licensing information """ Basic enumeration, providing ordered types for collections. These can be constructed as simple type listings... :: >>> from stem.util import enum >>> insects = enum.Enum('ANT', 'WASP', 'LADYBUG', 'FIREFLY') >>...
DigiThinkIT/stem
stem/util/enum.py
Python
lgpl-3.0
4,353
[ "Firefly" ]
170b82aae4c314d797396eb3b1c46f0892d8fa5ed0b13aea58b86f64c0b48380
tests = [("python", "testMolDraw2D.py", {}), ] longTests = [] if __name__ == '__main__': import sys from rdkit import TestRunner failed, tests = TestRunner.RunScript('test_list.py', 0, 1) sys.exit(len(failed))
rvianello/rdkit
Code/GraphMol/MolDraw2D/Wrap/test_list.py
Python
bsd-3-clause
220
[ "RDKit" ]
8b1aa56cd40b4f3241d3d0459b009277d1c0d536e3dc90eedc926bf45710fc75
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from scipy.special import gamma as Gamma from scipy.integrate import quad G = 4.300918e-6 ## in units solar mass, km/s kpc GEV2cm5toMsol2kpc5 = 2.2482330e-07 GEVcm2toMsolkpc2 = 8.5358230e-15 def integrate_J_spherical_alphabe...
jls713/jfactors
spherical/spherical_Jfactors.py
Python
mit
26,599
[ "Gaussian" ]
90711219faeeac3337835087c2bfa19b726660c20f4a980d9487781f2809c864
############################################################################## # 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-acme/package.py
Python
lgpl-2.1
2,254
[ "Bioconductor" ]
a719dbe393448fc808ab4f192fd62a2156f3d2300deb399907cb00d7d6ae0821
""" Copyright 2014 Sotera Defense Solutions, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
Sotera/Datawake
server/datawake/plugin/scraper.py
Python
apache-2.0
4,427
[ "VisIt" ]
2df2cc3584694e835e7796ea2228bfff3236e492c8c70bc6692fd5e5e7f4103e
# glclient.py --- # # Filename: glclient.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Thu Feb 4 14:52:22 2010 (+0530) # Version: # Last-Updated: Sat Feb 13 20:38:12 2010 (+0530) # By: Subhasis Ray # Update #: 129 # URL: # Keywords: # Compatibility: # # # Commentary: # # ...
BhallaLab/moose-thalamocortical
pymoose/gui/glclient.py
Python
lgpl-2.1
2,574
[ "MOOSE" ]
67f0a43b85c30a4f4ceee31b81cb3ff5b0abeaaf6ec4d4bc3e0e96afb57113e9
import numpy as np from ase import Atoms from gpaw import GPAW from gpaw.xc.sic import SIC from gpaw.test import equal a = 7.0 atom = Atoms('N', magmoms=[3], cell=(a, a, a)) molecule = Atoms('N2', positions=[(0, 0, 0), (0, 0, 1.14)], cell=(a, a, a)) atom.center() molecule.center() calc = GPAW(xc=SIC(), eig...
robwarm/gpaw-symm
gpaw/test/scfsic_n2.py
Python
gpl-3.0
609
[ "ASE", "GPAW" ]
b5a6cdc2e358db30b4cd8e2f6982d7d5ea407f6fe7175121c9ca681ac6306b50
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # This work is licensed under the Creative Commons Attribution-NonCommercial # 4.0 International License. To view a copy of this license, visit # http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to # Creative Commons, PO Box 1866, Mountain ...
microsoft/DiscoFaceGAN
training/dataset.py
Python
mit
12,220
[ "VisIt" ]
92f23cf2c5ba17975c0b25592ccd13329e9a7a6933c31bbee48af423485c708e
"""Classes for use with the Gaussian Cube file format Provides a Cube class with reading and writing functions """ from __future__ import division import numpy as np import copy as cp import asetk.atomistic.fundamental as fu import asetk.atomistic.constants as constants import matplotlib.mlab as mlab class Cube(obj...
ltalirz/asetk
asetk/format/cube.py
Python
mit
21,858
[ "ASE", "Gaussian" ]
733d3c3d4d00cf1ec1c37cd119e391e9600e84de87469838e644ada8ba8e9ea0
from __future__ import absolute_import, division, print_function import os import numpy import json import sys import re import scipy.signal import logging import ast import inspect import collections import numbers try: import cPickle as pickle except: import pickle from collections import namedtuple, Ordered...
hotpxl/mxnet
example/reinforcement-learning/dqn/utils.py
Python
apache-2.0
10,786
[ "Gaussian" ]
25c7d3be7c5965c3db0e7c1af780c514305ed7dd64ab0fd6a2886b7717552fc0
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle from collections import defaultdict from itertools import combinations from itertools import product import numpy ...
moutai/scikit-learn
sklearn/ensemble/tests/test_forest.py
Python
bsd-3-clause
41,768
[ "Brian" ]
49e869256726c759cbbd60197b1d06899648edaa591e56c45e616f58de3a7f76
#!/usr/bin/env python import sys import unittest import vtk from PyQt5 import QtWidgets, QtCore from peacock.ExodusViewer.ExodusViewer import main from peacock.utils import Testing, qtutils from mooseutils import message class TestExodusViewer(Testing.PeacockImageTestCase): """ Testing for ExodusViewer. ...
Chuban/moose
python/peacock/tests/exodus_tab/test_ExodusViewer.py
Python
lgpl-2.1
6,586
[ "VTK" ]
337f6741865df9f36df5e9afec270b9a192d81b70a2bd82e7735450a83b519a3
import psi4 import re import os import inputparser import math import warnings from driver import * from wrappers import * from molutil import * import p4util from psiexceptions import * def run_psi4_gamess_mos(name, **kwargs): r"""Function encoding sequence of PSI module and plugin calls so that mos can be c...
lothian/psi4_gamess_efp
pymodule.py
Python
lgpl-3.0
941
[ "Psi4" ]
7f8191da05a8ca98d2cc10325c22bd8fd7eafd670b003a5c993049df7330d32f
# Copyright 2013-2020 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 RBiobase(RPackage): """Biobase: Base functions for Bioconductor. Functions that ar...
rspavel/spack
var/spack/repos/builtin/packages/r-biobase/package.py
Python
lgpl-2.1
1,080
[ "Bioconductor" ]
d703c3601956309c0b3a3b1bc16595382a80861ec4a7acdd7289d8061a37eff3
# (c) 2014 Michael DeHaan, <michael@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
alexlo03/ansible
lib/ansible/playbook/role/metadata.py
Python
gpl-3.0
4,307
[ "Galaxy" ]
9a15446860d0c6210b018c553b6717ea147fde9a44c0982026947412c1e022d8
## # Copyright 2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (http://w...
geimer/easybuild-easyblocks
easybuild/easyblocks/e/esmf.py
Python
gpl-2.0
4,100
[ "NetCDF" ]
9456726f3b5ddda4b1ecba97af739a163c18ea9713dfd335785986db2fe2175c
#!/usr/bin/python """ UDP Communications Module """ import asyncore import socket import cPickle as pickle import Queue as queue from time import time as _time from .debugging import ModuleLogger, bacpypes_debugging from .core import deferred from .task import FunctionTask from .comm import PDU, Server from .comm ...
JoelBender/bacpypes
py27/bacpypes/udp.py
Python
mit
8,542
[ "ASE" ]
057286d01b359fdc2c87d1827c1c73b30f69595f627ef431f4031eacdad00f6f
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-annotationfilter/package.py
Python
lgpl-2.1
1,982
[ "Bioconductor" ]
b00387c43cedac1efa1d903e3931895d9fa08390e064d681a5914aeae34b4541
from mumax2 import * # Standard Problem 4 # define geometry # number of cells Nx = 128 Ny = 32 Nz = 1 setgridsize(Nx, Ny, Nz) # physical size in meters sizeX = 500e-9 sizeY = 125e-9 sizeZ = 3e-9 setcellsize(sizeX/Nx, sizeY/Ny, sizeZ/Nz) # load modules load('micromagnetism') load('solver/rk12') # set parameters...
mumax/2
examples/stdproblem4.py
Python
gpl-3.0
1,416
[ "VTK" ]
6c7eb01120e865330b605aeb8a9ff84df513ef399c4d1efe696ecffe52b56fb1
# Copyright (c) 2018, Henrique Miranda # All rights reserved. # # This file is part of the yambopy project # from yambopy import * import shutil ha2ev = 27.211396132 class YamboGreenDB(object): """ Read the green's functions calculated using yambo These green's functions describe the spectral function of ...
alexmoratalla/yambopy
yambopy/dbs/greendb.py
Python
bsd-3-clause
6,922
[ "Yambo" ]
134d895810b814e5a60f7122a46df73b3986e6a8cf20f2df780872ae37f8c735
""" The effect of Sampling ---------------------- Figure 10.3 A visualization of aliasing in the Fourier transform. In each set of four panels, the top-left panel shows a signal and a regular sampling function, the top-right panel shows the Fourier transform of the signal and sampling function, the bottom-left panel s...
nhuntwalker/astroML
book_figures/chapter10/fig_FFT_aliasing.py
Python
bsd-2-clause
5,126
[ "Gaussian" ]
8553a55f6c0aad2a6d1ee461e521093214b40cb5f5b38b079bf17e1e048d41e8
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
yipenggao/moose
python/chigger/tests/geometric/base/orientation.py
Python
lgpl-2.1
1,673
[ "MOOSE", "VTK" ]
c48311d50ab2385da080a974775a0853ceffa807bb522d74c2898d8e59236b63
"""API for traversing the AST nodes. Implemented by the compiler and meta introspection. """ import typing as t from .nodes import Node if t.TYPE_CHECKING: import typing_extensions as te class VisitCallable(te.Protocol): def __call__(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any: ...
mitsuhiko/jinja2
src/jinja2/visitor.py
Python
bsd-3-clause
3,572
[ "VisIt" ]
66678bb938faea2737e7eb851fed66d042978b0e0e6c30dbfd6b84ea1e6f3c58
""" @name: PyHouse/src/Modules/Families/Null/_test/test_Null_device.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2017 by D. Brian Kimmel @license: MIT License @note: Created on Jul 28, 2015 @Summary: Passed all 1 tests - DBK - 2015-07-28 """ __updated__ = '2019-...
DBrianKimmel/PyHouse
Project/src/Modules/House/Family/Null/_test/test_Null_device.py
Python
mit
1,028
[ "Brian" ]
83effef33777c74e0fbf0fe41db6c4696603b0cf7a7f6fc62156d538b77ea257
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ClinicNameMapping' db.create_table(u'core_clinicnamemappi...
praekelt/txtalert
txtalert/core/migrations/0021_auto__add_clinicnamemapping.py
Python
gpl-3.0
16,792
[ "VisIt" ]
5c52d6048a333a8d96337f0eb002fe2f92c37ea57377ebe56fac22c17c226557
# Select and average hourly data # # Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Ladybug. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Ladybug is free software; you can redistribute it and/or modif...
samuto/ladybug
src/Ladybug_Average Data.py
Python
gpl-3.0
16,554
[ "EPW" ]
b2d6d5c1958a0cbe62c3295c395f559af79c7167aa85a486d0174f3118ba6238
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """nucmer.py Provides helper functions to run nucmer from pdp (c) The James Hutton Institute 2018 Author: Leighton Pritchard Contact: leighton.pritchard@hutton.ac.uk Leighton Pritchard, Information and Computing Sciences, James Hutton Institute, Errol Road, Invergowrie...
widdowquinn/find_differential_primers
diagnostic_primers/nucmer.py
Python
mit
17,605
[ "Biopython" ]
1afc046c75be315e423d09fdbe1fd753c61d403b15bec8698b218b7f49f61def
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Given a input MAP file containing reads mapping on exon-exon junctions it will remove the reads which have the mate mapping (i.e. second MAP input file containing reads mapping on transcriptom) on other genes than those containing the exons which form the exon-exon junc...
ndaniel/fusioncatcher
bin/remove_reads_exon_exon_psl.py
Python
gpl-3.0
10,470
[ "Bowtie" ]
d02823b830bd2cc49a94dc22607e1d33229af972d4aaca74dff91a3f661afe9d
""" Holds user settings and various helper objects. @since: 0.53 """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import support, _, logger import os try: import ConfigParser except ImportError: import configparser as ConfigParser from zero...
timdiels/0install
zeroinstall/injector/config.py
Python
lgpl-2.1
4,607
[ "VisIt" ]
e339932115804c7b793f08a5c298158b9fd33d0b98b8e3a7d732550d85849e6c
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## 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 Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_loansearch.py
Python
gpl-2.0
3,828
[ "VisIt" ]
ab40b6a2d775c6648d7c43af6dfe4889e17f7cc24fe358570b5820fd7576fa99
# # Copyright (C) 2005 Stefan Seefeld # All rights reserved. # Licensed to the public under the terms of the GNU LGPL (>= 2), # see the file COPYING for details. # __docformat__ = 'reStructuredText' import sys, os, os.path, re, string, stat, tempfile from Synopsis.config import version class TempFile: # Use tem...
stefanseefeld/synopsis
Synopsis/Parsers/Cpp/Emulator.py
Python
lgpl-2.1
14,113
[ "ASE" ]
4a13de4a40a29c840383eb7a3b73e53306be043af974a27fcc965827e65ad7d1
# import code_exercise as ce # x=random.normal(scale=1.0, size=1000) + 1. # ce.myplot(x, 0.3) ## # Import libraries from __future__ import print_function, absolute_import, division, unicode_literals assert False # Code is now back in PH136 SVN as code_exercise.py import numpy as np import glob, os, sys from xastr...
alfeinsod/xastropy
xastropy/PH136/exercises/code_exerc.py
Python
bsd-3-clause
1,523
[ "Gaussian" ]
3116b335e41081a5b664e927891d572184e0ee3430842540d535f2c7aa1d704e
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/delegates/datedelegate.py
Python
gpl-2.0
2,358
[ "VisIt" ]
f179eca4afcd9cb2998557868ec9eed85b5e1555b9ce3eb06ec934e44ca05105
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
lukeiwanski/tensorflow-opencl
tensorflow/python/ops/template.py
Python
apache-2.0
12,783
[ "VisIt" ]
da72b8e2f88b41696c47bfcf07aedb72dde836cad8c46dfce57ac1d5e6c82694
from particle.ParticleFilter import ParticleFilter from config.Config import config import zmq from data.MapLoader import loadRouteFromMap generators = {} mapDirectory = '/home/moe/PycharmProjects/dingge/app/map/' context = zmq.Context() socket = context.socket(zmq.PUB) socket.bind("tcp://*:9955") def particleFilterC...
icymorn/magnetic-info-process
particleWorkflow.py
Python
mit
1,978
[ "MOE" ]
3cf3bda59eb32ba3396a850c456904577ad576af4b25ab3b5c11f5587fc71e35
import time from lxml import etree from tap.parser import * from tap.settings import * from tap.decorators import http_auth, tap_job_submission_request, access_job from django.shortcuts import render, redirect from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse, HttpResponseBadRequ...
IntersectAustralia/asvo-tao
web/tap/views.py
Python
gpl-3.0
9,994
[ "Galaxy" ]
455bb6528adda1196f28ef7a7279d428c1570042bfbe826ec8e7aae21448eec9
# 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...
fedepad/espressopp
src/integrator/StochasticVelocityRescaling.py
Python
gpl-3.0
1,912
[ "ESPResSo" ]
1cea19272f61ae45c8e7a72ffd0f44966a50aedb4014a58439725152eec0e869
# # Copyright (C) 2020 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 vers...
fweik/espresso
testsuite/python/rotation.py
Python
gpl-3.0
5,980
[ "ESPResSo" ]
d87dc75a3595c1b48d4f45bfa5e5a861cf6de761ed3f39ff28f3cceae5a16d43
"""blueskyutils.netcdf.pointextraction: Provides uilities for extracting data from smoke dispersion nc files. @see: https://github.com/ecolell/netcdf """ __author__ = "Joel Dubowy" import datetime import os import netCDF4 __all__ = [ 'PointExtractor' ] class PointExtractor(object): """ Example: ...
pnwairfire/blueskyutils
blueskyutils/netcdf/pointextraction.py
Python
gpl-3.0
6,870
[ "NetCDF" ]
99815927522398c4d41f40ba23b3759c8c5ab4c285ea7f37b9b78e741dc1d6dd
# (C) British Crown Copyright 2014 - 2015, Met Office # # This file is part of Iris. # # Iris 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 3 of the License, or # (at your option) any l...
mo-g/iris
lib/iris/tests/unit/analysis/stats/test_pearsonr.py
Python
gpl-3.0
6,579
[ "NetCDF" ]
33170a368c3085326e062a38a3650a2c1218a0e85bc52633feaf07b9713fb392
import vtk from vtk.numpy_interface import dataset_adapter as dsa import numpy as np reader = vtk.vtkXMLUnstructuredGridReader() reader.SetFileName("/raid/home/ksansom/caseFiles/mri/VWI_proj/case4/fluent_dsa/vtk_out/wall_outfile_node.vtu") reader.Update() N = reader.GetNumberOfTimeSteps() print(N) #N = test.GetNumber...
kayarre/Tools
vtk/post_proc_cfd_numpy.py
Python
bsd-2-clause
8,365
[ "VTK" ]
5b6ad13a7371a1364ca22b63ad1c44d3a99ee3326f3a67be57fcb1a1604e6071
# Read 2 3D-coordinates from .trr trajectory files # input: tpr_filename, the filename of .tpr file in Gromacs # trr_filename, the filename of .trr file in Gromacs # select_atoms_filename#, the filename including a command-line # for keeping trajectory of the selected atoms # output: coordinates#, xyz position ...
jht0664/Utility_python_gromacs
python/hjung/io.py
Python
mit
25,757
[ "Gromacs", "MDAnalysis", "OpenMM" ]
e7744f8fe74d6f79ac5ca439af70963998287f68befb1f0ab9ea399a3b73a250
# Copyright (C) 2011 by Brandon Invergo (b.invergo@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import unittest import os import os.path from Bio.Phylo.PAML import yn00 from Bio.Phylo.PA...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_PAML_yn00.py
Python
gpl-2.0
5,593
[ "Biopython" ]
f0e9113ce5d98d613a8d756a3a4e53412b39f0f113a1bbd9e6130113dc4232cd
import pysam import sys import csv import os import argparse from numpy.random import choice import random from quicksect import IntervalNode from random import randint, seed def normalize(a): b = a s = sum(a) if s == 0: for i in a: i = 1 / len(a) else: for i in a: ...
smangul1/UMI-Reducer
mRNA.abundance.py
Python
gpl-2.0
18,231
[ "pysam" ]
36ad7a111a5b2eadce66ef7386b320e2ab3b586a679292beb0bfe1d5ebcc2575
# coding: utf-8 # Distributed under the terms of the MIT License. import unittest import os import numpy as np from ababe.io.vasp import VaspInput, VaspOutput from ababe.stru.scaffold import GeneralCell testdata_dir = os.path.join(os.path.dirname(__file__), "test_files") class TestVaspInput(unittest.TestCase): ...
unkcpz/ababe
ababe/io/tests/test_vasp.py
Python
mit
4,280
[ "VASP" ]
b076bcfc0bf36835878e82a24a16b0b78b8f8a447e2f6304d20332cfc66c5a6d
""" Tests for QE DFT calculations using the explicit interface. """ # pylint: disable=redefined-outer-name,unused-argument,protected-access import os import shutil import tempfile import pytest import numpy as np import z2pack @pytest.fixture def qe_system_new(sample): """ Create QE system with explicit in...
Z2PackDev/Z2Pack
tests/fp/test_espresso_new.py
Python
gpl-3.0
4,509
[ "Wannier90" ]
55b4d1d95f3c484a74a7a5c4bc7f80f2e5b602022a0d4337ed3d606019b8d8bf
EVENT_CTRL = { "_0": "Heartbeat", "_1": "Trigger", "_2": "Protocol Specific", "_3": "Nodes Updated", "_4": "System Config Updated", "_5": "System Status", "_6": "Internet Access", "_7": "System Progress", "_8": "Security System", "_9": "System Alert", "_10": "Electricity", "_11": "Climate", "_12": "AMI/SEP...
kevinkahn/softconsole
hubs/isy/isycodes.py
Python
apache-2.0
2,923
[ "Elk" ]
01e288392c3f75cdbda7164e3e0d0a8dbee6d8537cc75148986ea67ca89621d2
from __future__ import (division, print_function, absolute_import, unicode_literals) import numpy as np from scipy import optimize, fftpack, signal """ This function is a modified version of the astroML wiener_filter function https://github.com/astroML/astroML Copyright (c) 2012-2013, Jacob ...
mrtommyb/ktransit
ktransit/wiener2.py
Python
gpl-3.0
11,099
[ "Gaussian" ]
987cba92aad671bd0237585c9d1d0106afabb8c1b8ac2b905a74dac8a7d17671
# -*- 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...
pburdet/hyperspy
hyperspy/signal.py
Python
gpl-3.0
175,800
[ "Gaussian" ]
662fe2924f6104a93e4446d1c293282ecfa08dc54281013c7a596aec55d70e35
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Interface with command line GULP. http://projects.ivec.org WARNING: you need to have GULP installed on your system. """ __author__ = "Bharat Medasani, Wenhao Sun" __copyright__ = "Copyright 2013, The Mate...
fraricci/pymatgen
pymatgen/command_line/gulp_caller.py
Python
mit
26,096
[ "GULP", "pymatgen" ]
5fe15e1a87777916940349b558e6c1faf8e9f79f57d612c915df44486ffaeca5
#!/usr/bin/env python ''' Author: Aditya Gilra, Jun 2016. (with inputs from Matthieu Gilson) in Brian2rc3 for CAMP 2016. ''' #import modules and functions to be used from brian2 import * # importing brian also does: # 'from pylab import *' which imports: # matplot li...
h-mayorquin/camp_india_2016
tutorials/LTPinnetworks2/Step1e_weight_distributions.py
Python
mit
5,089
[ "Brian", "Gaussian", "NEURON" ]
81bf7099d6e53358b61342bf7edc827ede5cacf384b304f9b0ee66bf5b5ae438
""" Tests the DQM Server class """ import json import os import threading import pytest import requests import qcfractal.interface as ptl from qcfractal import FractalServer, FractalSnowflake, FractalSnowflakeHandler from qcfractal.testing import ( await_true, find_open_port, pristine_loop, test_serv...
psi4/DatenQM
qcfractal/tests/test_server.py
Python
bsd-3-clause
6,250
[ "RDKit" ]
8a64c53a9950118480ca9f81b69430380a9ac87970def1c7714c47a09107077e
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
chuckgu/Alphabeta
tensorflow/word2vec.py
Python
gpl-3.0
78,692
[ "VisIt" ]
a3225c7aca0c35a18dccb7c014b871acaaf0442ecda930ba8ee1084280ab04a0
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Andres Giordano" __version__ = "3.0.0" __maintainer__ = "Andres Giordano" __email__ = "andresgiordano.unlu@gmail.com" __status__ = "Produccion" import argparse from os.path import basename,dirname, join import os import matplotlib.cbook import warnings os.e...
INTA-Radar/radar-cmd
radar-cmd.py
Python
gpl-3.0
13,483
[ "NetCDF" ]
823f195f569db95d33679097e2545bbe62aa9a839d1f2b18102e098031ddb030
# Copyright (c) 2003-2010 Sylvain Thenault (thenault@gmail.com). # Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE). # 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 L...
sloanyang/depends
third_party/pylint/checkers/format.py
Python
gpl-2.0
14,446
[ "VisIt" ]
992cad8f825d6acd0d47c531921a24718ae5bb748bb90f6f78c820cbe372c021
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageDotProduct(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vt...
nagyistoce/devide
modules/vtk_basic/vtkImageDotProduct.py
Python
bsd-3-clause
508
[ "VTK" ]
f94838a261fb4e4426cbb3f2e282bb406381e040b611648aaa82ce5a7bda3df2
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== from __future__ import print_function import os import math import argparse import ...
hjl/cntkdemo
AlexNetDemo/AlexNet_ImageNet_Distributed.py
Python
mit
12,252
[ "NEURON" ]
e2049ba4f54d7e500fa9c6ff1fa6ae62d1405130e65b95fafd83568087fd7c87
## # title: BreadInterface.Navigator # by: Brian Kim # description: the class that manages a stack of Controllers # using push and pop methods # import pygtk pygtk.require('2.0') import gtk from Controller import Controller from Lifecycle import Lifecycle from DimensionChooser import DimensionChooser ## # navigat...
briansan/BreadInterface
py/BreadInterface/Navigator.py
Python
bsd-2-clause
2,352
[ "Brian" ]
19fd21eb80dfa5127e7f8a4cf39d34c50144a2109fd3a26e5a69e4272cde5b3a
from lib_spm import * #out_dir = os.path.join('/data42s/comparat/firefly/v1_1_0/figures', 'mass-redshift-presentation') out_dir = os.path.join(os.environ['HOME'], 'wwwDir', 'firefly') m_bins = n.arange(6.5, 13, 0.01) p.figure(2, (6.5, 3.5)) p.axes([0.12,0.18,0.8,0.73]) for imf in imfs: stellar_mass = imf+'stella...
JohanComparat/pySU
spm/bin_SMF/plot_distribution_masses.py
Python
cc0-1.0
5,029
[ "Firefly", "Galaxy" ]
c51b40bd258db335a46d9622f44633473760bc338f9557f53accaf9a0cb9b334
# 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 PyPymol(PythonPackage): """PyMOL is a Python-enhanced molecular graphics tool. It excels a...
LLNL/spack
var/spack/repos/builtin/packages/py-pymol/package.py
Python
lgpl-2.1
2,372
[ "NetCDF", "PyMOL" ]
894354bd4f024c56b428b6fedff66aa59b02bd0350d4de9283ce9fc4f908d01a
from __future__ import absolute_import, division, print_function import numpy as np import pandas as pd import scipy.optimize as opt from scipy.special import erf from .due import due, Doi __all__ = ["Model", "Fit", "opt_err_func", "transform_data", "cumgauss"] # Use duecredit (duecredit.org) to provide a citation t...
geoffbacon/semrep
semrep/semrep.py
Python
mit
5,759
[ "Gaussian" ]
4b7a9633a68dcf4f9f18739831440d1319393bc4c6c8134205cb5e80de9fef63
#! /bin/env python import sys import xml.dom.minidom import numpy as np from six.moves import xrange from .encoders import encode from .vtktypes import np_to_vtk_type, sys_to_vtk_endian class VtkExtent(object): def __init__(self, shape): if len(shape) > 3: raise ValueError("number of dimensi...
csdms/coupling
deprecated/printers/vtk/vtkxml.py
Python
mit
7,023
[ "VTK" ]
79c29fd602c932e06de900a163506be9aee800085000e1450c3abdd586f50a53
#!/usr/bin/env python import os import time import argparse import logging from logging.config import fileConfig from parsers.phage_file import PhageDBReader fileConfig('logging.ini') logger = logging.getLogger() def parse_args(): parser = argparse.ArgumentParser(description='Cleans up the results returned from...
arlissc/phageParser
filterByExpect.py
Python
mit
1,334
[ "BLAST" ]
1943c59c9feb280559215bc4ebea3ce162f38dcbb9360f390408d7334c690aa2
"""A GTK dialog which lets the user add a new application to their desktop.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, gobject import os import gtk from zeroinstall.gtkui import gtkutils from zeroinstall import SafeException fro...
res2k/0install
zeroinstall/gtkui/addbox.py
Python
lgpl-2.1
5,216
[ "VisIt" ]
339044013b4701e2ccf29b562e7cef73dc7b161b1c7cd119ef7f74c109449864
""" Test functions for models.GLM """ from __future__ import division from statsmodels.compat import range import os import numpy as np from numpy.testing import (assert_almost_equal, assert_equal, assert_raises, assert_allclose, assert_, assert_array_less, dec) from scipy import stats impor...
bert9bert/statsmodels
statsmodels/genmod/tests/test_glm.py
Python
bsd-3-clause
72,739
[ "Gaussian" ]
8e3a59b9c8cad510d2d8164f0b73bb1d87ecb0f4cfc28ea473388571739661bb
from __future__ import absolute_import, division, print_function from copy import deepcopy from panoptes_client.panoptes import ( LinkCollection, LinkResolver, PanoptesAPIException, PanoptesObject, ) from panoptes_client.project_role import ProjectRole from panoptes_client.exportable import Exportable ...
zooniverse/panoptes-python-client
panoptes_client/project.py
Python
apache-2.0
6,034
[ "Galaxy" ]
22e4581fe53a8ab184d734c8cac84f1c69ff96d117759ac9f446a192ebe7646f
#------------------------------------------------------------------------------- # Name: tests # Purpose: Definitions of all unit tests for the Open Anharmonic package. # # Author: Brian Skinn # bskinn@alum.mit.edu # # Created: 30 Jul 2015 # Copyright: (c) Brian Skinn 2016 # License...
bskinn/opan
opan/tests.py
Python
mit
7,545
[ "Brian", "ORCA" ]
d4a7c70f1771cc5c4842531785416cd37debacb30d32881a971e61d84ae14f4d
""" Handler for logging in security.log.csv files """ import os from DIRAC import gLogger, S_OK, S_ERROR, gConfig, rootPath from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.Core.Utilities.File import mkDir from DIRAC.FrameworkSystem.private.SecurityFileLog import SecurityFileLog from DIRAC.Framewo...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Service/SecurityLoggingHandler.py
Python
gpl-3.0
2,024
[ "DIRAC" ]
71f95b997a8c3cac388f31316b5962a8cc18c8e92e7a2cbf1b404805247dc6e6
#! /usr/bin/env python from openturns import * TESTPREAMBLE() RandomGenerator.SetSeed(0) try: # Multivariate case coll2 = DistributionCollection(0) coll2.add(Dirac(1)) coll2.add(Dirac(2)) coll2.add(Bernoulli(0.7)) coll2.add(Uniform(3.0, 4.0)) d2 = ComposedDistribution(coll2) coll1 = D...
dbarbier/ot-svn
python/test/t_ConditionalDistribution_std.py
Python
gpl-3.0
4,891
[ "DIRAC" ]
5138e6092b2b6be36468319b1001e51c6add9d7e40d4c7256a7d405fff4053d6
####################################################################### # # # Next Event Renderer for Dreambox/Enigma-2 # Coded by Vali (c)2010 # Support: www.dreambox-tools.info # # # This plugin is licensed under the Creative Commons # Attribution-NonCommercial-ShareAlike 3.0 Unported License. # To view ...
openhdf/enigma2-wetek
lib/python/Components/Renderer/NextEvent.py
Python
gpl-2.0
2,036
[ "VisIt" ]
4e3a0f2d45c7d96bb1d9b1e90f34dfde0cbcb6099f6cf5eab73879a6a18e2e52
# Name: Maud Ottenheijm # Student nr: 10641785 # # This file contains code for preprocessing the dataset from UNESCO on women in science, # combining it with birth rate data government expences data (World Bank). Outputfile 'data_all.js' separates data # per year, then per country with all values in one object. Data ...
MaudOtten/programmeerproject
WomenInScience/data/data_complete_parser_1.py
Python
unlicense
17,724
[ "BWA" ]
7d4cccacd194b78045e0a89a798a2f74c7af63a725dd1b1cbbbce9b354e15986
from blackjackTable import Card, Deck, Hand from collections import defaultdict, Counter payouts = {'royalFlush':100, 'straightFlush':50, '4ofakind':20, 'fullHouse':15, 'flush':10, 'straight':8, '3ofakind':5, '2pair':2, 'pair':1} class pokerDeck(Deck): suits = 'spades diamonds clubs hearts'.s...
techphenom/casino-games
videoPoker.py
Python
mit
3,374
[ "CASINO" ]
3dad4fca6c55ff1fa09bd1397c0769ca5eaa52c08759399ff45441cf7a718e03
# 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...
synsun/robotframework
src/robot/reporting/xunitwriter.py
Python
apache-2.0
3,405
[ "VisIt" ]
b85966a2bab78001096d6e063afdfc500710e1b404b1153462a200aaa7cc889d
######################################################################## # This program is copyright (c) Upinder S. Bhalla, NCBS, 2015. # It is licenced under the GPL 2.1 or higher. # There is no warranty of any kind. You are welcome to make copies under # the provisions of the GPL. # This program builds a multiscale ...
dilawar/moose-full
moose-examples/paper-2015/Fig4_ReacDiff/Fig4CDEF.py
Python
gpl-2.0
9,908
[ "MOOSE" ]
045eae1ce2f6ac346449b720a87fdb54a2f86c94475810f92eaa15234be1af70
# coding: utf-8 from __future__ import unicode_literals, division, print_function import os from pymatgen.util.testing import PymatgenTest from pymatgen.core.structure import Structure from pymatgen.core.units import Ha_to_eV from pymatgen.io.abinitio.abiobjects import * import warnings test_dir = os.path.join(os....
yanikou19/pymatgen
pymatgen/io/abinitio/tests/test_abiobjects.py
Python
mit
4,064
[ "pymatgen" ]
164089edf826026c4d6ed231a304f3d82d2be92db4b2e9d77754b97c976de501
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
robertwb/incubator-beam
sdks/python/apache_beam/runners/direct/direct_runner.py
Python
apache-2.0
24,082
[ "VisIt" ]
8ddbfe3f5d4738bebd023dc402f4e80c07d26eee519c5568bb9bd5add053febf