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
"""Transform a string with Python-like source code into SymPy expression. """ from __future__ import print_function, division from .sympy_tokenize import \ generate_tokens, untokenize, TokenError, \ NUMBER, STRING, NAME, OP, ENDMARKER from keyword import iskeyword import ast import re import unicodedata im...
AunShiLord/sympy
sympy/parsing/sympy_parser.py
Python
bsd-3-clause
29,878
[ "VisIt" ]
966047c34944a6eb571e7f89a34afde38dbabc6f4c90558363dcc8bcec1ea6ce
#!/usr/bin/env python """ Compute homogenized elastic coefficients for a given microstructure. """ from __future__ import print_function from __future__ import absolute_import from argparse import ArgumentParser import sys import six sys.path.append('.') import numpy as nm from sfepy import data_dir import sfepy.disc...
lokik/sfepy
examples/homogenization/rs_correctors.py
Python
bsd-3-clause
8,679
[ "VTK" ]
6326b40f9b1b784dc54b17e6b546ab92dd20cf7a71f262caf549c7de2b8b0b46
import os, subprocess ######################################### def generate(params): # change to topology directory currdir = params.rundirs.top_dir os.chdir("/".join([params.run_options.workdir, currdir])) pdbname = params.run_options.pdb pdbfile = pdbname+".pdb" topfile = pdbname+".top" grofile = pdbname+".g...
ivanamihalek/smallmol
gmx_lib/gro_and_top.py
Python
gpl-2.0
2,279
[ "Amber" ]
3b2c4cb6c6342967cac1e8b59d24dec5ab3e3581261eb3c46cfb94d15a79ae2b
"""Rewrite assertion AST to produce nice error messages""" from __future__ import absolute_import, division, print_function import ast import _ast import errno import itertools import imp import marshal import os import re import struct import sys import types import py from _pytest.assertion import util # pytest ca...
alexzoo/python
selenium_tests/env/lib/python3.6/site-packages/_pytest/assertion/rewrite.py
Python
apache-2.0
36,453
[ "VisIt" ]
a017c738fa852a1f6bff9c3295d42123e1c345693fe0706c93babd6f6f04b974
"""The PyRhO package setup script""" #from __future__ import print_function # Added for Python 2.x support from setuptools import setup, find_packages # Prefer setuptools over distutils from codecs import open # To use a consistent encoding import os # Download and install setuptools if n...
ProjectPyRhO/PyRhO
setup.py
Python
bsd-3-clause
8,243
[ "Brian", "NEURON" ]
f91c217f77562a1642b33713d9f162835639d80ae3f493202c9aa64d6d80f668
from __future__ import absolute_import from __future__ import print_function # #START_LICENSE########################################################### # # # This file is part of the Environment for Tree Exploration program # (ETE). http://etetoolkit.org # # ETE is free software: you can redistribute it and/or modify...
fmaguire/ete
ete3/tools/phylobuild_lib/task/cog_creator.py
Python
gpl-3.0
22,224
[ "BLAST" ]
1ae7229992e0e8a06b7b7fa05ba87ee570befe99c36e909e5b866aa519c5b7cf
#!/usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## __RCSID__ = "$Id$" from DIRAC.Core.Base import Script Script.setUsageMessage( """ Remove the given file or a list of files from the File C...
sposs/DIRAC
DataManagementSystem/scripts/dirac-dms-remove-files.py
Python
gpl-3.0
1,664
[ "DIRAC" ]
758b742b296f9465af9a18e72bc06c344be0e2a6774ebc3c61dba167b7e0ec4f
"""Tests for the thumbs module""" import pytest from bok_choy.promise import EmptyPromise from workbench import scenarios from workbench.test.selenium_test import SeleniumTest class ThreeThumbsTest(SeleniumTest): """Test the functionalities of the three thumbs test XBlock.""" def setUp(self): supe...
edx/xblock-sdk
workbench/test/test_filethumbs.py
Python
apache-2.0
3,181
[ "VisIt" ]
778b107ff4f79cebb9c1d8e17d5198beec365fcd43cf35b39932741bba2a3473
############################################ # Daniel Dixey # Datagenic - Interest in Sentiment Analysis # 28/4/15 ############################################ # Import Modules from textblob import TextBlob from textblob.sentiments import NaiveBayesAnalyzer import time from pattern.web import Twitter def Harry_Potte...
dandxy89/ExperiKeras
NLP/Sentiment_Harry_Potter_Review.py
Python
mit
3,129
[ "exciting" ]
95f3746c3f9cce72b18085247181d8a853b51010f766f6d724cd17c58ebf6c68
__author__ = 'noe' import numpy as _np def _guess_model_type(observations): """ Suggests a HMM model type based on the observation data Uses simple rules in order to decide which HMM model type makes sense based on observation data. If observations consist of arrays/lists of integer numbers (irrespective...
marscher/bhmm
bhmm/api.py
Python
lgpl-3.0
11,746
[ "Gaussian" ]
261f129e4505d4efa60346cfb076a34ad84192373f4048b44549ab3064796959
#!/usr/bin/python ################################################################################ # # SOAP.py 0.9.7 - Cayce Ullman (cayce@actzero.com) # Brian Matthews (blm@actzero.com) # # INCLUDED: # - General SOAP Parser based on sax.xml (requires Python 2.0) # - General SOAP Builder # ...
mikemintz/neutron
modules/SOAP.py
Python
gpl-2.0
130,709
[ "Brian" ]
bbc8c94022f3ed945dd8cc5293b5a8f0e5184f34680c1c62bcb05aa7040d6685
import paraBEM from paraBEM.pan3d import doublet_src_3_0_vsaero, src_3_0_vsaero_v from paraBEM.vtk_export import VtkWriter import numpy from paraBEM.utils import check_path v1 = paraBEM.PanelVector3(-0.5, -0.5, 0) v2 = paraBEM.PanelVector3(0.5, -0.5, 0) v3 = paraBEM.PanelVector3(0.5, 0.5, 0) v4 = paraBEM.PanelVector3(...
looooo/paraBEM
examples/vtk/vtk_panel_source.py
Python
gpl-3.0
937
[ "VTK" ]
e2d0d19f53bdd27553997c1090e2fa65efa9daaa3d2c4f349b4358230bce9ceb
# # Copyright (c) 2008--2016 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
lhellebr/spacewalk
backend/server/rhnChannel.py
Python
gpl-2.0
70,178
[ "VisIt" ]
a7f112ac4a539a072744a00185565a30b12a9538aada86b73cd6a67851c51f96
# # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # u...
graalvm/mx
mx_compat.py
Python
gpl-2.0
17,513
[ "VisIt" ]
613907b5bd074b3d60a713659248ab6f2ceccfee38c016d67b5cd993744fc4e6
# 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/dectalk.py
Python
gpl-3.0
14,816
[ "ORCA" ]
7b1d28780b981e1b1edbf3c24ebb06115a4009f2cfbb1ba6c7ad534433f870f1
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys import pickle from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose,...
HesselTjeerdsma/Cyber-Physical-Pacman-Game
Algor/flask/lib/python2.7/site-packages/scipy/stats/tests/test_distributions.py
Python
apache-2.0
117,215
[ "Gaussian" ]
ceb1c78a046ced8c5f7e11be78d75fb89f7c7b2750671683f646b3b8f0a46c15
# # 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...
mxm/incubator-beam
sdks/python/apache_beam/transforms/ptransform.py
Python
apache-2.0
30,477
[ "VisIt" ]
5168fefe95dd2ab68deb881177ded9103b172158573f92a47cec7339e5aa7554
"""Decision module. This module contains the different decision functors used by agents to call actions. Also contains helper classes used by these. Designed and developed by Sever Topan. """ # Standard. import os import sys import re import pickle import random import re import copy import math # Third party. from...
SeverTopan/AdjSim
adjsim/decision.py
Python
gpl-3.0
44,149
[ "Gaussian" ]
38ca0df276f735477b7ac56546b7bcb3888d99544a2627c336a625da8a61069f
#! /usr/bin/env python """Locate files using fuzzy matching.""" from __future__ import division import os.path import sys def locate(filename, start): """Search the filesystem under start for filename. @param filename: The filename to look for. @param start: The starting directory. @return: A list of...
nickpascucci/AppDesign
search/locate.py
Python
mit
2,002
[ "VisIt" ]
393d3f706af21f9ae471b4a7cf952b84b5cc1ab3cce38cb72429c636afa68c51
#!/usr/bin/env python """ Calculate cloud duration, minimum base, maximum height, mean mass, formation time, dissipation time, maximum depth, depth evolution and corresponding times for tracked clouds. Output is saved in a pkl file as a list of dictionaries, with one dictionary per cloud id. Dictionary keys are: 'i...
vladpopa/ent_analysis
id_stats/condensed_id_stats.py
Python
mit
3,685
[ "NetCDF" ]
7681abb048631fde02a667ee368753f8f8d72bd4d25739e67c526e31623bb287
#!/galaxy/home/mgehrin/hiclib/bin/python """ Read a MAF from standard input and print the score of each block. It can optionally recalculate each score using the hox70 matrix, and normalize the score by the number of columns in the alignment. TODO: Should be able to read an arbitrary scoring matrix. usage: %prog [...
bxlab/HiFive_Paper
Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/maf_print_scores.py
Python
bsd-3-clause
1,601
[ "Galaxy" ]
7e4b2a487185316be85f20c904de80add2ee758ee539439dee0ca8404f823999
import matplotlib matplotlib.use("TkAgg") import tkinter as tk import timeit import io import sys import traceback import math from math import sqrt from sympy import ln from algorithms.chebyshev import chebyshev from algorithms.cubicsplines import cubicSpline from algorithms.leastSquares import leastSquares from algo...
protocol114/numerical-2.2
project.py
Python
mit
13,010
[ "Gaussian" ]
6a143d4d7d9a5fc79d0bc2bbdb2a19af2b4688ba5c0c9c63e1f1c9b0baa60684
""" This implements the value recursion for numerical semirings. V(v) = \bigoplus_{e \in BS(v)} \omega(e) \bigotimes_{u \in tail(e)} V(u) We also have an implementation which is robust to the presence of cycles. :Authors: - Wilker Aziz """ from collections import defaultdict from functools import reduce from gr...
wilkeraziz/grasp
grasp/inference/value.py
Python
apache-2.0
11,897
[ "VisIt" ]
f66716673cf9738d4a1ef7ad51baab14b343cdaf15f7c4da5c4cd1eb216f96d7
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-jobexec # Author : Stuart Paterson ######################################################################## __RCSID__ = "$Id$" """ The dirac-jobexec script is equipped to execute workflows that...
avedaee/DIRAC
WorkloadManagementSystem/scripts/dirac-jobexec.py
Python
gpl-3.0
3,212
[ "DIRAC" ]
6502b3ab5118cf24713f92bac5804438ee7c50f709771961929a7eca8cd643a9
#-------------------------------------------------------------------------- # 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/gui/dicom_preview_panel.py
Python
gpl-2.0
27,079
[ "VTK" ]
83e90d5a9c7a9eb2dc5367b574afbd30db9367e80683126ede0a3afb81b741b7
#!/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.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
RackSec/ansible
lib/ansible/modules/network/avi/avi_systemconfiguration.py
Python
gpl-3.0
6,203
[ "VisIt" ]
4c921a39965a20d06cdb5d6c18f750feb939a862d939feba1c1fed5ec1a65dc1
import re from .. import lut, manip from . import helpers section_re = re.compile(r'^\$(basis|ecp|cbas|jbas|jkbas)$') element_re = re.compile(r'^([a-zA-Z]{1,3})\s+(.*)$') shell_re = re.compile(r'^(\d+) +([a-zA-Z])$') ecp_info_re = re.compile(r'^ncore\s*=\s*(\d+)\s+lmax\s*=\s*(\d+)$', flags=re.IGNORECASE) ecp_pot_am_re...
MOLSSI-BSE/basis_set_exchange
basis_set_exchange/readers/turbomole.py
Python
bsd-3-clause
7,786
[ "TURBOMOLE" ]
0fd69b85f1e80c64dc972f4564b83dbbb36edafd3167d90d6e22b2ac3ae384eb
""" Convergence comparison of different adaptive filtering algorithms (with different step sizes) in white Gaussian noise. """ import numpy as np import matplotlib.pyplot as plt import adaptfilt as adf # Generating inpud and desired signal N = 3000 coeffs = np.concatenate(([-4, 3.2], np.zeros(20), [0.7], np.zeros(33)...
Wramberg/adaptfilt
examples/convergence.py
Python
mit
1,879
[ "ADF", "Gaussian" ]
be544ba7ce83cad5ff1d7cf415c8f170d319b6479f2e2fd76b0cb0408cdfb310
#!/bin/env python2.7 # -*- coding: utf-8 -*- """ Created on Monday March 27 @author: Brian L. Dorney """ #Imports import sys, os import numpy as np from Utilities import * from ROOT import gROOT, Double, TCanvas, TDirectory, TF1, TFile, TGraph2D, TGraphErrors, TH1F, TH2F, TLegend class AnalysisSuiteGai...
bdorney/CMS_GEM_Analysis_Framework
python/AnalysisSuiteGainMap.py
Python
gpl-3.0
30,373
[ "Brian" ]
fbf3e47eb21a43e01efa99a2fa2e5fb075a6ceb6b34c36cb71561e101991a100
#!/usr/bin/env python # # Copyright 2012 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # noti...
guorendong/iridium-browser-ubuntu
v8/tools/presubmit.py
Python
bsd-3-clause
15,774
[ "VisIt" ]
76da2814bd8161d8fa821d82d9725c5f67d88c4d75b76d0a096c8a5bb9533ce0
from functools import partial from client.player import Player from client.updater import fetchClientUpdate from config import Settings import fa from fa.factions import Factions ''' Created on Dec 1, 2011 @author: thygrrr ''' from PyQt4 import QtCore, QtGui, QtNetwork, QtWebKit from PyQt4.QtCore import QDataStream ...
Sheeo/client
src/client/_clientwindow.py
Python
gpl-3.0
60,694
[ "VisIt" ]
f242d3e17a255ef32bab2ab945047f523b1af2d8769a14cd5f1fa81f3ac82690
#------------------------------------------------------------------------------- # Name: MODIS-Link-Retrieve # Purpose: Retrieve latest NetCDF chlorophyll file from NASA MODIS - Different URLS than other script in this Repo # # Author: JFry # # Created: 12/10/2015 # Edited: 11/30/2016 # Copyrig...
jfrygeo/FishSuitabilityTemplate
Process-MODIS-Data-py.py
Python
apache-2.0
2,743
[ "NetCDF" ]
40d8360fff195abb8572f511c4c52a8e015bcadf8bcdc19d55be52005100fb09
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2019 Blaise Frederick # # 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/LICEN...
bbfrederick/rapidtide
rapidtide/disabledtests/xtest_spectrogram.py
Python
apache-2.0
9,837
[ "Gaussian" ]
e695c578542a3b91da6842a4ec332e98a0983be5d41445306a37f7363c42d1a8
#!/usr/bin/env python # Copyright 2015 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
mdshuai/service-catalog
vendor/k8s.io/kubernetes/hack/boilerplate/boilerplate.py
Python
apache-2.0
6,214
[ "VisIt" ]
d21ad7ff546143653bd381d09f7c655415d10374442ed75470db916915be0159
from ase import Atoms from gpaw import GPAW, PW, FermiDirac # Setup up bulk NiO in an antiferromagnetic configuration: a = 4.19 # lattice constants b = a / 2**0.5 m = 2.0 atoms = Atoms('Ni2O2', pbc=True, cell=(b, b, a), positions=[(0, 0, 0), (b / 2, b...
robwarm/gpaw-symm
doc/tutorials/hubbardu/nio.py
Python
gpl-3.0
770
[ "ASE", "GPAW" ]
7a770d3600268e782ca49414dcb0f66859d4b643b29ffb99cb1f901ee5f31d23
# -*- coding: utf-8 -*- from __future__ import print_function """CLI scripts.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import argparse import os import os.path as op import glob import ...
rossant/ipymd
ipymd/core/scripts.py
Python
bsd-3-clause
6,417
[ "VisIt" ]
5b6ec1c9cc0abac873db0c929d593917b810496ad630a66026fa9ee443cfc727
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/agui
agui/aextras/__init__.py
Python
gpl-3.0
997
[ "Brian" ]
7a2ee2e7b6d96b34b801436d922eb3a85f13fc7f14c1653be5ed2e930a80a4b3
#!/usr/bin/env python3 from LoLIM.stationTimings.autoCorrelator3_fromLOC import save_EventByLoc ## these lines are anachronistic and should be fixed at some point from LoLIM import utilities utilities.default_raw_data_loc = "/exp_app2/appexp1/public/raw_data" utilities.default_processed_data_loc = "/home/brian/proces...
Bhare8972/LOFAR-LIM
LIM_scripts/stationTimings/examples/save_pulseByLoc.py
Python
mit
1,923
[ "Brian" ]
121934297c8eaa27a00653ddb6adcc55c6e5a1a1dfec33432a17e8295bf58f2e
# author: brian dillmann # for rscs from context import AnalogInput import unittest import RPi.GPIO as GPIO class test_analog_input(unittest.TestCase): def setUp(self): self.out_pin = 2 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) def test_init(self): # try to initialize output with illegal location w...
dillmann/rscs
test/devicetests/analog_input_test.py
Python
mit
714
[ "Brian" ]
91cb159713634626f8720996e486cced340351b339ca5d4aa7ff0349a3779dc6
import logging import logging.handlers import sys from octopus.lib.mail import send_mail class TlsSMTPHandler(logging.Handler): def __init__(self, mailhost, mailport, fromaddr, toaddrs, subject, credentials): super(TlsSMTPHandler, self).__init__() self.mailhost = mailhost self.mailport =...
JiscPER/magnificent-octopus
octopus/lib/error_handler.py
Python
apache-2.0
2,775
[ "Octopus" ]
4ed5fe7e1d1012602cf137fe63911386a299a44e792c27369cc7934cc963f06e
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals, division, print_function import os import unittest2 as unittest import numpy as np from pymatgen import Structure from pymatgen.util.testing import PymatgenTest from py...
aykol/pymatgen
pymatgen/io/abinit/tests/test_netcdf.py
Python
mit
3,021
[ "ABINIT", "pymatgen" ]
bc56630c698fa5b22745367f678a57decba38b22318a5f40d10483f81e78c653
"""`swordfish` is a Python tool to study the information yield of counting experiments. Motivation ---------- With `swordfish` you can quickly and accurately forecast experimental sensitivities without all the fuss with time-intensive Monte Carlos, mock data generation and likelihood maximization. With `swordfish` y...
cweniger/swordfish
swordfish/__init__.py
Python
mit
3,174
[ "Gaussian" ]
c8059b7c2703d51e2f9c10fccabe3abc3aac029b56b40fe89eae5941ff85f99a
# Orca # # Copyright (C) 2013-2014 Igalia, S.L. # # Author: Joanmarie Diggs <jdiggs@igalia.com> # # 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 (...
GNOME/orca
src/orca/scripts/toolkits/GAIL/script.py
Python
lgpl-2.1
4,622
[ "ORCA" ]
fd9c1b3efae23b2407556db981dacb27c98246cced26926a91198300bb28afed
#!/usr/bin/python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute...
susilehtola/psi4
doc/sphinxman/document_efpfrag.py
Python
lgpl-3.0
5,033
[ "Psi4" ]
c8e817613b5799a5aee9bea073c03237b2689a77699219d4a59409d6146d853a
""" ProxyProvider implementation for the proxy generation using local (DIRAC) CA credentials This class is a simple, limited CA, its main purpose is to generate a simple proxy for DIRAC users who do not have any certificate register on the fly. Required parameters in the DIRAC configuration for its implem...
yujikato/DIRAC
src/DIRAC/Resources/ProxyProvider/DIRACCAProxyProvider.py
Python
gpl-3.0
16,966
[ "DIRAC" ]
e74a6ca0455409a14f221e02205e78112cc3b7b6bc9d67d73398b9dc573a0e82
import numpy as np from scipy.optimize import leastsq import pylab as pl def get_orbitals(calc): """Get LCAO orbitals on 3D grid by lcao_to_grid method.""" bfs_a = [setup.phit_j for setup in calc.wfs.setups] from gpaw.lfc import BasisFunctions bfs = BasisFunctions(calc.wfs.gd, bfs_a, calc.wfs.kp...
qsnake/gpaw
gpaw/response/tool.py
Python
gpl-3.0
4,198
[ "GPAW" ]
8a367588e95b7fea3753e0bafb0fdfed25ba67d2b3355948614c52762a1e31d8
# Copyright 2017 The Sonnet 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 applicable l...
rakshit-agrawal/sonnet
sonnet/examples/brnn_ptb.py
Python
apache-2.0
22,701
[ "Gaussian" ]
b41f573a3c1f7bfc5c68b575193ff9924c33a995f141d8f682709c1777e739ba
""" Usage: python_visitor_gui.py This script shows how one can implement visitors in pure python and inject them into OpenGM solver. ( not all OpenGM solvers support this kind of code injection ) """ import opengm import numpy import matplotlib from matplotlib import pyplot as plt shape=[100,100] numLabels=...
joergkappes/opengm
src/interfaces/python/examples/python_visitor_gui.py
Python
mit
1,377
[ "VisIt" ]
2d93d0b9918e864f3b0792e3a669d1b24a193e378db08d031348a1d53b318973
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division ############################################################################ # # Copyright (C) 2008-2015 # Christian Kohlöffel # Vinzenz Schulz # # This file is part of DXF2GCODE. # # DXF2GCODE is free software: ...
hehongyu1995/Dxf2GCode
dxfimport/geoent_polyline.py
Python
gpl-3.0
9,035
[ "Gaussian" ]
5ee3f3f3ec9b7c3085bde62770ded6318286a629b886becde9d0e2fb17b28aa0
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
briancurtin/python-openstacksdk
openstack/tests/unit/test_resource.py
Python
apache-2.0
53,273
[ "Brian", "MOE" ]
5327e979410258ef6393aef25bb3d9e7b863b2d79b1a0e870ee33e24e63cbc2d
# -*- coding: utf-8 -*- # Copyright 2007-2021 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...
thomasaarholt/hyperspy
hyperspy/_components/skew_normal.py
Python
gpl-3.0
9,640
[ "Gaussian" ]
26e78c34beb21d400baa83277c597768319b0666415a025379f85f79f20cb6b6
# Copyright (c) 2012, Cloudscaling # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
petrutlucian94/nova
nova/hacking/checks.py
Python
apache-2.0
21,668
[ "VisIt" ]
0ef54a6b9c8946f8a5de0e20d1b40db8d02486fe6ada23d325d2f9536fa493e1
""" Plot the inference results """ import os import numpy as np import matplotlib matplotlib.use('Agg') # To enable saving remotely import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap # Get a red-white-black cmap cdict = {'red': ((0.0, 1.0, 1.0), (0.5, 1.0, 1....
slinderman/theano_pyglm
pyglm/plotting/plot_results.py
Python
mit
28,517
[ "NEURON" ]
96f2b1ba192fbc731ebd881708f0843e1e5a184c019e140374c2f715ed11c12c
# Copyright (C) 2010-2018 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 v...
mkuron/espresso
testsuite/python/lb_thermostat.py
Python
gpl-3.0
3,044
[ "ESPResSo" ]
5e61f6219546f477beaa7caad2e72bc0a9c8efffb00afc330f983f4dabb6d986
#!/usr/bin/env python try: # python 2 import xmlrpclib except: # python 3 import xmlrpc.client as xmlrpclib import time import tempfile import os.path import sys import pyBigWig from deeptools.utilities import mungeChromosome from deeptoolsintervals import GTF import datetime def isDeepBlue(fname): ...
fidelram/deepTools
deeptools/deepBlue.py
Python
gpl-3.0
10,950
[ "BWA" ]
21ec2848d56c6ae9b98772665273000ca764d776adf024db554f498b1c1dc9f7
from io import StringIO from django.contrib.messages import get_messages from django.core.management import call_command from django.test import TestCase from django.urls import reverse from core.models import ( User, Batch, Section, Election, UserType, VoterProfile ) class LoginViewTest(TestCase): """ ...
seanballais/botos
tests/test_auth_views.py
Python
gpl-3.0
9,194
[ "VisIt" ]
b120bca9646fe666ace6c6358ebd84c007b59f8bfd83e98fddef0c261774bae2
import sys from copy import copy import numpy as nm from sfepy.base.base import (complex_types, dict_from_keys_init, assert_, is_derived_class, insert_static_method, output, get_default, get_default_attr, Struct, basestr) from sfep...
RexFuzzle/sfepy
sfepy/discrete/fem/meshio.py
Python
bsd-3-clause
86,536
[ "VTK" ]
a63a9606d4438fe59c1787039ddb15982e09f9236925458dddaa07a11143a8f1
#!/usr/bin/python import sys from ctypes import * from functions import * from math import sqrt import numpy as np import multiprocessing import pyfits import signal # Load the library for the CFitsio routines overseer = CDLL("/home/steven/Projects/galaxy_icd/libraries/liboverseer.so.0") def main(sample): naxes ...
boada/ICD
parallel_main_gsd.py
Python
mit
5,357
[ "Galaxy" ]
d44f2bfbb466dfbf4e23a48cf44c35f1857f6ba3a08121af5aaab2416284f94f
import types from moose import * rng = ["Binomial", "Exponential", "Gamma", "Normal", "Poisson" ] mooseClasses = [] class MooseClasses: def __init__(self): self._classList = [] class_file = open("classes.txt", "r") for class_name in class_file: class_name = class_name.strip() if len(class_name) > 0: ...
BhallaLab/moose-thalamocortical
pymoose/tests/regression/TestClassCreation.py
Python
lgpl-2.1
932
[ "MOOSE" ]
7b1fe0408e9bbe8e6187012fa40d6c9e0d8344ccd7de6cdad9dcb17734ffa90d
# -*- coding: utf-8 -*- # Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # License: BSD 3 clause """ The :mod:`sklearn.gaussian_process` module implements Gaussian Process based regression and c...
scikit-learn/scikit-learn
sklearn/gaussian_process/__init__.py
Python
bsd-3-clause
530
[ "Gaussian" ]
93362b7d7abc387bc358268a0eb92c519e550d6456b1d120d43c58cb7b2bffab
import numpy as np import cPickle, gzip from sklearn.manifold import TSNE def convert_to_Y(y): n = y.shape[0] Y = np.zeros((n, np.unique(y).size)) Y[np.arange(n), y] = 1 return Y def double_swiss_roll(n_samples = 250, var = 1.): '''details about the generating procedure can be found at http://...
quark0/AnchorClouds
manifold_generator.py
Python
mit
1,459
[ "Gaussian" ]
21804cb600577b82f93132a549d3dd23881702c43c260fe700fb6a184a19fb48
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + #pylint: disable=no-init,invalid-name from __...
mganeva/mantid
Framework/PythonInterface/plugins/algorithms/USANSSimulation.py
Python
gpl-3.0
6,752
[ "Gaussian" ]
ba75c76310c1e14518c959ccd0acd39d7eb9df2272bd1a7edbc6ba42468c40fe
from coyote_framework.testing.coyote_test import CoyoteTest from example.example_app.config.example_config import ExampleConfig from coyote_framework.drivers.coyote_driverfactory import driver_context from example.example_app.page_objects.example_home_page import ExampleHomePage __author__ = 'matt' class TestClickBu...
Shapeways/coyote_framework
example/example_tests/TestClickButton_ShowText.py
Python
mit
1,605
[ "VisIt" ]
5715f9539506c2b87deeb5aa0f07fdd9e752e12a346f6733076b1c65248a9343
# This file is part of BHMM (Bayesian Hidden Markov Models). # # Copyright (c) 2016 Frank Noe (Freie Universitaet Berlin) # and John D. Chodera (Memorial Sloan-Kettering Cancer Center, New York) # # BHMM is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public Licen...
bhmm/bhmm
bhmm/output_models/discrete.py
Python
lgpl-3.0
14,141
[ "Gaussian" ]
90352bc61e7a07d6193b7a0d182dd38e312d7088d7688c541089dd7088ee7b5a
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.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='page...
ochronus/teamhealth.io
config/urls.py
Python
mit
1,553
[ "VisIt" ]
3eda8c4eb236021c0cfe4d6987f9b9d602b5cf0a15c860e5fd36e9bf81d05300
#! /usr/bin/env python #This script check all pdb files using pdb2gmx # check_structures_gromacs.py <PDB path> <GROMACS programs path> # Example: python check_structures_gromacs.py /home/faccioli/Execute/1VII/ /home/faccioli/Programs/gmx-4.6.5/no_mpi/bin/ import sys import os from subprocess import Popen, PIPE import...
rodrigofaccioli/2pg_cartesian
scripts/checking/rename_atoms.py
Python
apache-2.0
1,895
[ "Gromacs" ]
14ecbd285c9ba02a565ae4ca530d75cb00c69dd1d6f3e719c6e28541c4a22efa
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, division, absolute_import, print_function) import sys import os from functools import partial from collections import namedtuple from time import sleep from platform import python_implementation from powerline.segments import shell, tmux, pdb, i...
codeprimate/arid
powerline/tests/test_python/test_segments.py
Python
bsd-2-clause
86,678
[ "FEFF" ]
b0ea4ee0e3fcffc07ca2ad4074d9d47ecfa5a3b3303af05db94a8fb05074881a
#!/usr/bin/env python from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() import sys if len( sys.argv ) < 2: print 'Usage: dirac-transformation-remove-output transID [transID] [transID]' sys.exit() else: transIDs = [int( arg ) for arg in sys.argv[1:]] from DIRAC.TransformationSystem.Agent.Tra...
avedaee/DIRAC
TransformationSystem/scripts/dirac-transformation-remove-output.py
Python
gpl-3.0
1,370
[ "DIRAC" ]
a8730044b55f46199186b1fe204fce9eca34f7f272583ca64f5c028d2c41443d
#Author: Kwasi Mensah (kmensah@andrew.cmu.edu) #Date: 7/25/2005 import direct.directbase.DirectStart from panda3d.core import Filename,Buffer,Shader from panda3d.core import PandaNode,NodePath from panda3d.core import ColorBlendAttrib from panda3d.core import AmbientLight,DirectionalLight from panda3d.core import Text...
toontownfunserver/Panda3D-1.9.0
samples/Glow-Filter/Tut-Glow-Advanced.py
Python
bsd-3-clause
5,837
[ "Gaussian" ]
2a826265f19d8eb688b5b04b40b4a0309da98ccbaa05e7d7886d9bc4c28fbc05
# coding: utf-8 # In[1]: import numpy as np import networkx as nx import som_functions as som import math import sklearn.metrics as met import sklearn.manifold as man from time import time # In[48]: ##GHSOM algorithm #G: graph #lam: lambda -- the number of epochs to train before assessing erro...
DavidMcDonald1993/ghsom
GHSOM.py
Python
gpl-2.0
15,030
[ "NEURON", "VisIt" ]
d43b8a9bbe9fe9e3207ef72765f704c8cc4289a6dd32669e549927b7225573f6
# -*- coding: utf-8 -*- # # balancedneuron.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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,...
mschmidt87/nest-simulator
pynest/examples/balancedneuron.py
Python
gpl-2.0
6,751
[ "NEURON" ]
c46108ebda7a26d2c41b9a765aeef647f205aadc035c5ac398010f544856e372
# Name: Maud Ottenheijm # Student nr: 10641785 # This file contains code for writing csv to json format. Takes input from InternetUsersPer100.csv, outputs in # data.json. Part of D3 Datamaps assignment week 5, Data Processing. # bounds for range range_1 = 2000 range_2 = 4000 range_3 = 6000 range_4 = 8000 range_5 = 1...
MaudOtten/programmeerproject
WomenInScience/data/trial_data_files/csvreader.py
Python
unlicense
9,175
[ "BWA" ]
4f957b7e516b056c4b58801ee186101e414419e65624b3190cda37401939c27a
#import turbulence.turbulence from .turbulence import * import turbulence.vonkarman import turbulence.gaussian
antiface/turbulence
turbulence/__init__.py
Python
bsd-2-clause
111
[ "Gaussian" ]
103f395aa56db1e89b5e0699204c3682368b4bb22934b49484f6c39ae68ffdff
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
brianmay/python-tldap-debian
tldap/methods/ad.py
Python
gpl-3.0
2,688
[ "Brian" ]
c179fcc519fbb564a617e315baee5a1e5082bd5ab5ae1bf1e463f5b1c7b7e7b1
# mako/_ast_util.py # Copyright (C) 2006-2011 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ ast ~~~ The `ast` module helps Python applications to process trees of the Pyth...
OndinaHQ/Tracker
mako/_ast_util.py
Python
gpl-3.0
25,621
[ "VisIt" ]
e910312eb10898b134d4987de59e52cdb2710a8db4dad7e7cd5bf67800b53fa0
""" climatology3Spark.py Compute a multi-epoch (multi-day) climatology from daily SST Level-3 grids. Simple code to be run on Spark cluster, or using multi-core parallelism on single machine. """ import sys, os, urlparse, urllib, re, time import numpy as N import matplotlib matplotlib.use('Agg') import matplotlib.p...
dataplumber/nexus
climatology/clim/climatology3Spark.py
Python
apache-2.0
19,840
[ "Gaussian", "NetCDF" ]
095b50c0467c27d5ceea5cc6466dd4a8a83f872352c5642cc0cfd975bf42a792
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # PMDA # Copyright (c) 2019 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under the GNU Public Licence, v2 or any higher ve...
MDAnalysis/pmda
pmda/density.py
Python
gpl-2.0
14,957
[ "Gromacs", "MDAnalysis", "PyMOL", "VMD" ]
95a89543b3b098d81d3dae3de4773f08942d00435081abb814146e83fc506ab7
#make print in python 2, 3 compatible from __future__ import print_function import numpy as np import pyedda as edda #Distribution modeler dm = edda.DistributionModeler(2) dummy_data = np.random.rand(100) dm.computeGMM(dummy_data,2,0) dm.computeHistogram(dummy_data,32,1) dm.printDistr() r1,r2,r3,r4 = dm.ge...
subhashis/edda
pyEdda/test.py
Python
mit
2,233
[ "Gaussian" ]
72eefa5037f94680cff4ad5a62bc33c6348ce31e6d072169833147207f50edd1
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) #...
MDAnalysis/mdanalysis
testsuite/MDAnalysisTests/coordinates/test_pdb.py
Python
gpl-2.0
46,473
[ "MDAnalysis" ]
65655960665b75d4fa765ad3160d8e1b93cc0cd2c5ec324f44a7be35f436c73d
from django.core.urlresolvers import reverse from django.utils.html import strip_tags from selenium.webdriver.firefox.webdriver import WebDriver from selenium.common.exceptions import NoSuchElementException import django.test import re, os, time import tao.datasets as datasets #from tao.models import DataSetProperty...
IntersectAustralia/asvo-tao
web/tao/deployment_tests/ithelper.py
Python
gpl-3.0
18,904
[ "VisIt" ]
b9dc2533a15ff4ab7a98abcd3655b12257bb4f2d72d9a45a1780e8661ac3e5d4
# -*- coding: utf-8 -*- import os import pygame import random import classes.board import classes.extras as ex import classes.game_driver as gd import classes.level_controller as lc import classes.drw.splash import classes.drw.fraction class Board(gd.BoardGame): def __init__(self, mainloop, speaker, config, scr...
imiolek-ireneusz/eduActiv8
game_boards/game025.py
Python
gpl-3.0
39,742
[ "Elk", "Jaguar", "MOOSE" ]
d308a8584569ff4542c0662ec19acbdb9a831990e5265ab42b5a1f884bcb4ae2
import ast from astmonkey import visitors, transformers def parseprint(code, filename="<string>", mode="exec", **kwargs): """Parse some code from a string and pretty-print it.""" node = ast.parse(code, mode=mode) # An ode to the code print(ast.dump(node, **kwargs)) source = """ l = k = [1,2,3] i = a = 0 while i <...
librallu/RICM4Projet
parser/test.py
Python
gpl-3.0
532
[ "VisIt" ]
7f9000ff27075551b7a3c79fac796b19d775710040f27504e7bad92ba8fc4ff8
#!/usr/bin/env python #-*- coding: utf-8 -*- import sys, getopt, re, os try: from splinter import Browser except: print "Please install Splinter: http://splinter.readthedocs.org/en/latest/install.html" sys.exit(); import getpass from splinter.request_handler.status_code import HttpResponseError def main(argv): em...
skladsec/facebookFriendSaver
facebookFriendSaver.py
Python
isc
3,504
[ "VisIt" ]
0073cbdd70e2422dde6e3d83598736c082a25399fd4373b0a492273d4a2e2464
""" This is the guy that actually modifies the content of the CS """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import zlib import difflib import six from diraccfg import CFG from DIRAC.Core.Utilities import List, Time from DIRAC.ConfigurationSystem.Cl...
yujikato/DIRAC
src/DIRAC/ConfigurationSystem/private/Modificator.py
Python
gpl-3.0
9,707
[ "DIRAC" ]
199e01fcfa13aee71ae753657a388eb7c74fca7a474d032d286556a9ef1d763c
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################## # $HeadURL$ # File : dirac-distribution # Author : Adria Casajus ######################################################################## """ Create tarballs for a given DIRAC release """ __RCSID...
avedaee/DIRAC
Core/scripts/dirac-distribution.py
Python
gpl-3.0
16,448
[ "DIRAC" ]
42628edaa05380ee5dfa53d0545e3391962503c142e3a596e55213c8bd311afc
# -*- coding: utf-8 -*- """ Created on Thu Jun 9 15:52:38 2016 @author: nebula """ import os import swc2vtk from tqdm import tqdm cellname_list = [ '200000', '300000', '301000', ] stoptime = 1000.0 datastep = 0.25 nstep = int(stoptime / datastep) for cellname in cellname_list: vtkfile_base = ...
DaisukeMiyamoto/swc2vtk
examples/test_simulation.py
Python
apache-2.0
926
[ "VTK" ]
e94fa624bdc9c26b617870a3261abccb766c0a7c0d8546084eed9a26c87fd202
#################################################################### # This example illustrates modelling of presynaptic plasticity involving # Ca influx to 3 boutons, each with a pool of presnaptic vesicles, and # reactions leading to a buildup of Ca and depletion of vesicles during # synaptic release. The neurotrans...
BhallaLab/moose-examples
tutorials/Rdesigneur/ex11.1_presyn_dend.py
Python
gpl-2.0
2,708
[ "MOOSE" ]
d2d0cb5f5c4e1fd348fb2f0954d056379700c0754ee3f2d3eeb144c0fdbe5b39
#!/usr/bin/env python # Copyright 2015 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
justinsb/kubernetes
cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py
Python
apache-2.0
55,860
[ "CDK" ]
22b9530b90773d81f796ce58a8a1e1c50c219323b749c3d486a01766b1eb4743
#!/usr/bin/python # wpa-shoot #WPAShoot Adalah Tools Untuk Audit Keamanan Jaringan Wireless Yang Berbasis aircrack-ng suite #Jika Anda Ingin Mengedit Source Code Tolong Sertakan Nama Code Writernya. # #Version: 1.0 Beta #Code Writer: HardGhost #Web Page : Hardghost-sec.blogspot.com # #Jika Terjadi Error Pada File WPASh...
hardghost07/wpa-shoot
WPAShot.py
Python
gpl-3.0
7,892
[ "VisIt" ]
3d9e7f7373d9b2f3d30b3e6c784716b3556383eaf08bf3f299117b7c3f5f0c63
from frappe import _ def get_data(): return [ { "label": _("Documents"), "icon": "icon-star", "items": [ { "type": "doctype", "name": "Lead", "description": _("Database of potential customers."), }, { "type": "doctype", "name": "Customer", "description": _("Custome...
sheafferusa/erpnext
erpnext/config/crm.py
Python
agpl-3.0
3,225
[ "VisIt" ]
a6804967360ad3b99ed6207adcbb2f6cdbe5b932bc907e4c78d42769586a3fd7
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from pymatgen.analysis.magnetism.analyzer import *
fraricci/pymatgen
pymatgen/analysis/magnetism/__init__.py
Python
mit
161
[ "pymatgen" ]
e5544e10b55dd2ec03ac8fd6b08b17c958fac15b0c030b89ad2b035e2aba1313
import statsmodels.api as sm import mdtraj as md import simtk.unit as u code = "benzene" ff_name = "amber99sbildn" water_name = 'tip3p' which_forcefield = "%s.xml" % ff_name which_water = '%s.xml' % water_name out_pdb_filename = "./water/box.pdb" temperature = 1600.0 * u.kelvin dcd_filename = "./water/%s_%s_%s_%s....
kyleabeauchamp/T4Binding
code/benzene_box_analyze.py
Python
gpl-2.0
808
[ "MDTraj" ]
a12cc54ac8c8ef1c1d3ac80fb68cdbc4fa6123f909a7e5fc7a28420c25f9d6c8
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
thempel/adaptivemd
adaptivemd/scheduler.py
Python
lgpl-2.1
9,942
[ "MDTraj" ]
28f1e335e45d270a381ebf27f2841db3f5397d64ffd86fea35d0e86a12950423
#!/usr/bin/env python """ This script prepares/copies the required settings files and directories to the tombo scratch filesystem and creates a job script before submitting it to the job que Author: Tom Close (tclose@oist.jp) Created: 20/8/2013 """ #Name of the script for the output directory and submitted mpi jo...
wvangeit/NeuroFitter
scripts/neurofitter.py
Python
gpl-2.0
2,760
[ "NEURON" ]
2a1cfc48c44f8ceced76ee5d6bce40e297dae8b1934136de97d14f18248415c3
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module contains simple functions for model selection. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np __all__ = ['bayesian_info_criterion', 'bayesian_info_crite...
joergdietrich/astropy
astropy/stats/info_theory.py
Python
bsd-3-clause
14,954
[ "Gaussian" ]
03689bc911ceb90446b43da32e6721927fd346d983e47757f4f5078467b29286
"""setuptools.command.bdist_egg Build .egg distributions""" from distutils.errors import DistutilsSetupError from distutils.dir_util import remove_tree, mkpath from distutils import log from types import CodeType import sys import os import re import textwrap import marshal from setuptools.extern import six from pk...
ARL-UTEP-OC/emubox
workshop-creator/python27-64bit-gtk3/Lib/site-packages/setuptools/command/bdist_egg.py
Python
gpl-2.0
18,185
[ "VisIt" ]
450f61f019925695ca250493de2fdbfec9b4f7767e6825db7cc04433622b23e4
# Copyright (c) 2014, Alan Saul # Licensed under the BSD 3-clause license (see LICENSE.txt) import GPy import numpy as np from GPy.util import datasets try: import matplotlib.pyplot as plt except: pass def student_t_approx(optimize=True, plot=True): """ Example of regressing with a student t likelihoo...
strongh/GPy
GPy/examples/non_gaussian.py
Python
bsd-3-clause
10,661
[ "Gaussian" ]
227fad96f93110bd5d805f4df1d4e18e592e52ce743c9590139f2fd01440722d
# -*- coding: utf-8 -*- import os, datetime from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from django.shortcuts import render_to_response, redirect, HttpResponse, Http404 from django.template import RequestContext from django.contrib.auth import authenticate, logout, login...
aazhbd/medical_info01
patient/views.py
Python
bsd-3-clause
24,670
[ "VisIt" ]
014c81b4c43701d2ca71469758b2cb930e24880008631e5fde8694b975ad5649
#!/usr/bin/env python try: import gi gi.require_version('NumCosmo', '1.0') gi.require_version('NumCosmoMath', '1.0') except: pass from math import * import matplotlib.pyplot as plt from gi.repository import GObject from gi.repository import NumCosmo as Nc from gi.repository import NumCosmoMath as Ncm # # In...
NumCosmo/NumCosmo
examples/example_ca_sampling.py
Python
gpl-3.0
5,324
[ "Gaussian" ]
a31786018575aa73cc795d76a315a2e4ff3cfa8c223cc4c94a5ca471abbab315
""" Single page performance tests for LMS. """ from bok_choy.web_app_test import with_cache from common.test.acceptance.pages.lms.auto_auth import AutoAuthPage from common.test.acceptance.pages.lms.courseware import CoursewarePage from common.test.acceptance.pages.lms.dashboard import DashboardPage from common.test.acc...
louyihua/edx-platform
common/test/acceptance/performance/test_lms_performance.py
Python
agpl-3.0
4,552
[ "VisIt" ]
325bdab47dd413994a4f7a06d7128a0440c1c0c51ae41a7ce8993c545d483afd