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 |
|---|---|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
r"""
===================================
Background information on filtering
===================================
Here we give some background information on filtering in general,
and how it is done in MNE-Python in particular.
Recommended reading for practical applications of digital
filter des... | teonlamont/mne-python | tutorials/plot_background_filtering.py | Python | bsd-3-clause | 49,238 | [
"Gaussian"
] | 361ba6eee850ab704967cb00b6ef20896e8ce50008b0a32c573f8bfa90f4d753 |
#!/usr/bin/env python
##
## @file unsetNotes.py
## @brief unset notes for each element
## @author Akiya Jouraku
##
## This file is part of libSBML. Please visit http://sbml.org for more
## information about SBML, and the latest version of libSBML.
##
import sys
import time
import os
import os.path
from libsb... | dilawar/moose-full | dependencies/libsbml-5.9.0/examples/python/unsetNotes.py | Python | gpl-2.0 | 2,666 | [
"VisIt"
] | c5086722489e3b5f7d6dfbd2e730e643b24ab1bf9467f259c4335f7f6f19141f |
import numpy as np
from ase import Atoms
from ase.io import write, read
from ase.test import NotAvailable
a = 5.0
d = 1.9
c = a / 2
atoms = Atoms('AuH',
positions=[(c, c, 0), (c, c, d)],
cell=(a, a, 2 * d),
pbc=(0, 0, 1))
extra = np.array([ 2.3, 4.2 ])
atoms.set_array('extra',... | JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/test/fio/oi.py | Python | gpl-2.0 | 2,130 | [
"ASE",
"NetCDF"
] | f78294b4441e7800eb37f226653c555358a8b16ec43e7a772dac1636cdfd62d0 |
# -*- coding: utf-8 -*-
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import os
import re
import sys
import tempfile
import time
from contextlib import contextmanager
from selenium.common.exceptions import... | bmcculley/splinter | splinter/driver/webdriver/__init__.py | Python | bsd-3-clause | 26,222 | [
"VisIt"
] | b2c8c14a71f9b16296433612d93e474195221967d5ac14289e2e2ca81b552fa4 |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | espressomd/espresso | testsuite/python/interactions_non-bonded.py | Python | gpl-3.0 | 16,368 | [
"ESPResSo",
"Gaussian"
] | 077540a2d6025c0de86994ef00848894527e781d0b9b0a02042f949f40a0da20 |
import numpy as np
import cv2
import matplotlib.pyplot as plt
img = cv2.imread('images/saturn.png', 0)
# cv2.imshow('Original Saturn Image', img)
# cv2.waitKey(0)
# cv2.destroyAllWindows()
def add_gaussian_noise():
im = np.zeros(img.shape[:2], np.uint8)
mean = 0
for i, sigma in enumerate(range(5, 51, 5... | KECB/learn | computer_vision/10_adding_noise.py | Python | mit | 1,580 | [
"Gaussian"
] | e2ac7dae7fc4dfbc597a4ff3e56c4c784a56ea749da090644e6d9b1f238f9413 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2016, 2017 Adam.Dybbroe
# Author(s):
# Adam.Dybbroe <a000680@c20671.ad.smhi.se>
# 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... | adybbroe/iasi_level2 | scr/ears_iasi_lvl2_converter.py | Python | gpl-3.0 | 12,065 | [
"NetCDF"
] | b78f7fb9edd987a2c6c70ac485ab430dca58272de7c3129fb441e140c6dc25a8 |
import itertools
import pandas as pd
import numpy as np
from scipy import linalg
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.mixture import BayesianGaussianMixture, GaussianMixture
color_iter = itertools.cycle([
'b', 'c', 'g', 'y','brown',
'lightgray', 'salmon', 'moccasin',
'pin... | sealneaward/colonel-cluster | population/clustering.py | Python | mit | 2,505 | [
"Gaussian"
] | faf2be673141882bfde7285d74d48dafd5fdc6a68c98d6e33219894b88ecdd90 |
##
# Copyright 2009-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 (htt... | geimer/easybuild-easyblocks | easybuild/easyblocks/n/neuron.py | Python | gpl-2.0 | 9,246 | [
"NEURON"
] | 4cec1224f94261375f3af4181137f46e1adcd2799dd9fc2706603f67fcf9ea5d |
<<<<<<< master
import os
from os.path import join, expanduser
import mayavi.mlab as mlab
import moviepy.editor as mpy
import numpy as np
if __name__ == '__main__':
duration = 2 # duration of the animation in seconds (it will loop)
# MAKE A FIGURE WITH MAYAVI
fig = mlab.figure(size=(500, 500), bgcolor... | simvisage/oricreate | apps/sandbox/christoph/moviepy_example.py | Python | gpl-3.0 | 2,876 | [
"Mayavi"
] | 3279309a254ed322c16cbce9fd781e1e4eb426d39af850171289ba295e6adb26 |
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
# ----------------------------------------
# USAGE:
# ----------------------------------------
# PREAMBLE:
import MDAnalysis
from MDAnalysis.analysis.align import *
import sys
# ----------------------------------------
# VARIABLE DECLARATION
pdb = sys.a... | rbdavid/RMSD_analyses | testing/Write_traj_single_system.py | Python | gpl-3.0 | 2,854 | [
"MDAnalysis"
] | 0cabfa9b1676ccd2d9e24b2ff5776364db7fa7286d596d77647bb0694e88f725 |
from biokbase.probabilistic_annotation.Helpers import make_object_identity, make_job_directory, timestamp, ProbAnnoType, ServiceVersion
from biokbase.probabilistic_annotation.DataParser import DataParser
from biokbase.userandjobstate.client import UserAndJobState
from biokbase.workspace.client import Workspace
from bi... | kbase/probabilistic_annotation | lib/biokbase/probabilistic_annotation/Worker.py | Python | mit | 22,346 | [
"BLAST"
] | 0be71c7df343a5f0e1a1f95feab3515443852b97bb65758d449dc27253c5da95 |
""" Test class for plugins
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
__RCSID__ = "$Id$"
# imports
import unittest
# sut
from DIRAC.Core.Utilities.Time import timeThis
class logClass(object):
def __init__( self ):
self._systemName = 'aSyste... | yujikato/DIRAC | src/DIRAC/Core/Utilities/test/Test_Time.py | Python | gpl-3.0 | 2,305 | [
"DIRAC"
] | 9d0da552547f913832a5bf5958b05591e377e55fc9c6f45bd6adfe9cf57e4ebe |
# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or ... | wvangeit/python-mode | pymode/libs/pylama/lint/pylama_pylint/pylint/checkers/exceptions.py | Python | lgpl-3.0 | 12,614 | [
"VisIt"
] | 18296830126ac38f316445078858c06602ecc45104698d9bc11ac40cb86ca638 |
# -*- Mode: Python; coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2007-2013 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 Fre... | andrebellafronte/stoq | plugins/ecf/ecfdomain.py | Python | gpl-2.0 | 12,663 | [
"VisIt"
] | 59cd2c68c722520f2c03abddfb209a2a39eb66f6431c48b0d8bf469a234fcba5 |
"""Given an .xyz in Tinker format, this script will assemble the .hpp and .cpp
files for the system so that the coordinates, connectivity, parameter types,
and energies are in a format suitable for testing. The energies will be in
the .hpp file, the coordinates and connectivity in <mol_name>.cpp
"""
import sy... | ryanmrichard/ForceManII | bin/MakeTest.py | Python | lgpl-3.0 | 4,329 | [
"TINKER"
] | c46b2337e94e5b5b300773028ceef160e804d65a719edd11b87159e30b0584ce |
#########################################################################################
# Condor.py
# 10.11.2014
# Author: A.T.
#########################################################################################
""" Condor.py is a DIRAC independent class representing Condor batch system.
Condor objects are... | ic-hep/DIRAC | src/DIRAC/Resources/Computing/BatchSystems/Condor.py | Python | gpl-3.0 | 10,489 | [
"DIRAC"
] | 6f5714b8ad8755d6623350a8cb48da0fd39098bc4c9a0ac08f1fbec4d870be30 |
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para somosmovies
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re
import urlparse
from core import config
from core... | ChopChopKodi/pelisalacarta | python/main-classic/channels/somosmovies.py | Python | gpl-3.0 | 18,298 | [
"ADF"
] | 684b24bd1f355a03c56c38cf89187fdd5e9ba4ca01fc9f63328b47a88fa17543 |
from ase.io import read as aseread
from matscipy.neighbours import neighbour_list
import networkx as nx
def atoms_to_nxgraph(atoms, cutoff):
ni, nj = neighbour_list('ij', atoms, cutoff)
adjacency_matrix = np.zeros((len(atoms), len(atoms))).astype(np.int)
for i, j in zip (ni, nj):
adjacency_matrix[... | marcocaccin/crack2Dglass | silayergraph.py | Python | gpl-2.0 | 2,323 | [
"ASE",
"Matscipy"
] | c78d93092c4a13e4b2c57f2f8cb699345d60725dd54698a68b3890b835e68f61 |
from __future__ import print_function
import matplotlib.pyplot as plt
from neatsociety import visualize
from neatsociety.iznn import Neuron
def show(title, a, b, c, d):
n = Neuron(0.0, a, b, c, d)
spike_train = []
for i in range(1000):
n.current = 0.0 if i < 100 or i > 800 else 10.0
spike_... | machinebrains/neat-python | examples/visualize/iznn_visualize.py | Python | bsd-3-clause | 872 | [
"NEURON"
] | 49b2827758f273e3be0d183d9b97d9ea4ed1fd2d616aeee225b204253f3dbc18 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import scipy.stats as ss
import os, sys, time
try:
from mpi4py import MPI
except ImportError:
import nompi4py as MPI
try:
import acor
except ImportError:
print 'Do not have acor package'
pass
class... | vhaasteren/piccard | piccard/PTMCMC_generic.py | Python | gpl-3.0 | 33,780 | [
"Gaussian"
] | de90f8b49e0a457121bd325f4daa55f387734bfbdab30b86485e26b60ab9be46 |
#!/usr/bin/env python
# File: mk_ds9_rgb.py
# Created on: Mon 18 Jun 2012 11:20:57 AM CDT
# Last Change: Fri 05 Oct 2012 04:01:24 PM CDT
# Purpose of script: <+INSERT+>
# Author: Steven Boada
import numpy as np
import sys
import os
import stat
# read info files from comamnd line
#data = np.loadtxt(sys.argv[1])
#Doe... | boada/ICD | sandbox/legacy_plot_code/mk_ds9_rgb_better.py | Python | mit | 3,426 | [
"Galaxy"
] | c3f99f9b6dc59d5f33638047e41971e0fe8755db981111d99eeedb8d0e2959ac |
from contextlib import contextmanager
import sys
import unittest
from rdkit import Chem
from rdkit.Chem.ChemUtils.AlignDepict import initParser, processArgs, AlignDepict
from io import StringIO
class TestCase(unittest.TestCase):
def test1(self):
parser = initParser()
with outputRedirect() as (ou... | bp-kelley/rdkit | rdkit/Chem/ChemUtils/UnitTestAlignDepict.py | Python | bsd-3-clause | 1,806 | [
"RDKit"
] | ae187411e1bcb383c618a01db72642354f2de4a80318fad9ea8df0c67defd32d |
import nest
import pylab as plt
import numpy as np
"""
Reproduce result of the pairing experiment from Zenke (2015).
"""
nest.Install("stdpmodule")
nest.set_verbosity("M_WARNING")
def generateSpikes(neuron, times):
"""Trigger spike to given neuron at specified times."""
delay = 1.0
gen = nest.Create("spi... | zifeo/nest-stdpmodule | examples/ZenkePairing_neuron.py | Python | gpl-2.0 | 3,925 | [
"NEURON"
] | bcba780da800f7d69d9e87a43041fbfbc7de57ec998d2e510a83cb9710e4ad99 |
# -*- coding: utf-8 -*-
# reader.py ---
#
# Filename: reader.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Wed Jul 24 15:55:54 2013 (+0530)
# Version:
# Last-Updated: Sun Apr 17 16:32:59 2016 (-0400)
# By: subha
# Update #: 455
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#... | dharmasam9/moose-core | python/moose/neuroml2/reader.py | Python | gpl-3.0 | 18,621 | [
"MOOSE",
"NEURON"
] | cd8f151923fa3b7eb3f312fa5d1a778f4aab184343924c131f9a10daa776778f |
"""Configuration file for eruption scenario
Tephra modelling validation worksheet
Scenario Name: Mount Merapi 2010 (probabilistic_scenario)
Run Date: 2010_11_01
Run number:1 ... | GeoscienceAustralia/PF3D | testing/merapi.py | Python | gpl-3.0 | 3,982 | [
"Gaussian"
] | 31f639ea5d8218d0bb06a8fdea0b29a38a73619147c7f082b366612d5a348b6e |
"""
Mean functions to be use by Gaussian process functions. There are two
different kinds of mean functions:: simple and composite::
simple mean functions::
zero - zero mean function
one - one mean function
const - constant mean function
linear - linear mean function
composite covariance ... | depet/scikit-learn | sklearn/gpml/mean.py | Python | bsd-3-clause | 7,992 | [
"Gaussian"
] | 9ddcbe3e5b7c40c2e222080b8bf87a4609d1c0482a7766ac06faa6fbb693d858 |
# Copyright 2016-2020 the GPflow authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | GPflow/GPflow | tests/gpflow/models/test_svgp.py | Python | apache-2.0 | 6,634 | [
"Gaussian"
] | ffa2290656657fbd69d654637e0730343b97f85d25972a791d7b4cae0c9c3e5f |
# python3
# pylint: disable=g-bad-file-header
# Copyright 2021 DeepMind Technologies Limited. 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... | deepmind/neural_testbed | neural_testbed/agents/factories/deep_kernel.py | Python | apache-2.0 | 8,768 | [
"Gaussian"
] | 40fdb8109382033b0ccfc1aa1f9e6329446d1f2d8ef4d22da377d7865a649161 |
# iCraft is Copyright 2010 both
#
# The Archives team:
# <Adam Guy> adam@adam-guy.com AKA "Adam01"
# <Andrew Godwin> andrew@aeracode.org AKA "Aera"
# <Dylan Lukes> lukes.dylan@gmail.com AKA "revenant"
# <Gareth Coles> colesgareth2@hotmail.com... | TheArchives/Nexus | core/entities/nommer.py | Python | bsd-2-clause | 6,610 | [
"VisIt"
] | 0802d056c9cbde3e402d0eb08fa224e849ef875d0b6fd71315fb634b140348aa |
#!/usr/bin/env python
"""
Get the description of a given production
Example:
$ dirac-prod-get-description 381
"""
import DIRAC
from DIRAC.Core.Base.Script import Script
@Script()
def main():
# Registering arguments will automatically add their description to the help menu
Script.registerArgument("prodID: P... | DIRACGrid/DIRAC | src/DIRAC/ProductionSystem/scripts/dirac_prod_get_description.py | Python | gpl-3.0 | 848 | [
"DIRAC"
] | 0890973bab3207c1396571e0f014b0227eb2b9f7859ef45189d49d08b61dfb0d |
######################################################################
# This file is an ad hoc script used to simulate data for the b-tea
# pipeline. TE can be estimated using a simulation approach based on
# modifying real data to introduce differences in RNA/RFP data.
# This script uses samtools to subsample exist... | dieterich-lab/riboseq-utils | vars/simulate_data.py | Python | mit | 28,958 | [
"pysam"
] | dee6dc661137b4b9d332a09f67b1b3ee040374280d6b4331be42303909ae90f6 |
# -*- coding: UTF-8 -*-
#
"""
history
Names of companies that do moden media stuff
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3.0.0 - split all the content into babycontents
evb - note: only one dictionary named 'content' allowed per module
this limitation is ... | LettError/filibuster | Lib/filibuster/content/modernmedia.py | Python | mit | 3,901 | [
"VisIt"
] | 262342a52c656258c7918ceb66208d1b11903cce6b62238a1aadba5ea8bbc763 |
# -*- coding: utf-8 -*-
u"""shadow execution template.
:copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
from pykern import pkcollections
from pykern import pkio
from pykern... | mrakitin/sirepo | sirepo/template/shadow.py | Python | apache-2.0 | 22,024 | [
"CRYSTAL"
] | bf560c6f18c937660eab031e42285e2f239cbb1623757df18e28876e432fa3f9 |
#####################################################################
# Ryuretic: A Modular Framework for RYU #
# !/mininet/examples/SecFrameTest/ICMP_Revocation.py #
# Author: #
# Jacob Cox (jcox70@gatech.edu) #
# ICMP_Revocation.py #
# date 12 May 2016 ... | Ryuretic/RAP | mininet-wifi/Ryuretic/ICMP_Revocation.py | Python | apache-2.0 | 3,588 | [
"VisIt"
] | b0b160b0a7da18776822790fe87f2f2c3e2bedaf35383e98c1f52c50f6f82cf1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ommprotocol: A command line application to launch
# MD protocols with OpenMM
# By Jaime RGP <@jaimergp>
"""
ommprotocol.io
--------------
IO stuff:
- Parser logic for YAML input files
- Handlers for source topologies, coordinates, velocities,
box vectors ... | insilichem/ommprotocol | ommprotocol/io.py | Python | lgpl-3.0 | 34,957 | [
"Amber",
"CHARMM",
"Desmond",
"Gromacs",
"MDTraj",
"NAMD",
"NetCDF",
"OpenMM"
] | 3579941bbda1095f8ae22ae3e8d1f53475f38e575633785ec2475cec1c2eae89 |
from __future__ import print_function
import re
import argparse
import os.path
import io
parser = argparse.ArgumentParser()
parser.add_argument('version', help='file version')
parser.add_argument('outfile', help='outfile with extension .c/.h')
parser.add_argument('inputs', nargs='*', action='store', help='input filena... | markusgraube/open62541 | tools/amalgamate.py | Python | lgpl-3.0 | 2,641 | [
"VisIt"
] | d376dab0ae461e79ef6daad33390487316066414018d8e4abae140e3071dd4f7 |
# 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 *
import sys
class Xsdk(BundlePackage):
"""Xsdk is a suite of Department of Energy (DOE) packages... | iulian787/spack | var/spack/repos/builtin/packages/xsdk/package.py | Python | lgpl-2.1 | 12,462 | [
"NetCDF"
] | 3b1b3f7703f3cef8b0ce073bbde9964ae0b97f4decf17a81214dacac42463635 |
''' Tests for pyleoclim.core.ui.Scalogram
Naming rules:
1. class: Test{filename}{Class}{method} with appropriate camel case
2. function: test_{method}_t{test_id}
Notes on how to test:
0. Make sure [pytest](https://docs.pytest.org) has been installed: `pip install pytest`
1. execute `pytest {directory_path}` in termin... | LinkedEarth/Pyleoclim_util | pyleoclim/tests/test_ui_Scalogram.py | Python | gpl-3.0 | 1,918 | [
"Gaussian"
] | 6234644e8a24b1996069c03776dd4518cb91fa2cfbcabd494bff6b03c7cf4e6f |
# Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com>
__revision__ = "$Id: models.py 28 2009-10-22 15:03:02Z jarek.zgoda $"
import datetime
import secrets
from base64 import b32encode
from typing import Mapping, Optional, Union
from urllib.parse import urljoin
from django.conf import settings
from django.contrib... | rht/zulip | confirmation/models.py | Python | apache-2.0 | 8,560 | [
"VisIt"
] | f1c13ede2d9e56dfdd120cac9b1f1ab70f1471361da99eb7b1a029d08af71ace |
#!/usr/bin/env python3
import os, re, sys
from glob import glob
from argparse import ArgumentParser
parser = ArgumentParser(prog='check_tests.py',
description="Check force tests for completeness")
parser.add_argument("-v", "--verbose",
action='store_true',
... | jeremiahyan/lammps | unittest/force-styles/check_tests.py | Python | gpl-2.0 | 6,941 | [
"LAMMPS"
] | 34208e06171718c5846bbae042de2dc73f0a4e0386c88356a1f84f0cd5de5ba0 |
'''
Analyze the outputs of HI_surfdens_stacking_feathered
'''
from pandas import DataFrame
import matplotlib.pyplot as p
import numpy as np
from spectral_cube import SpectralCube, Projection
import astropy.units as u
from astropy.io import fits
from cube_analysis.spectral_stacking_models import fit_hwhm
from paths ... | e-koch/VLA_Lband | 14B-088/HI/analysis/HI_surfdens_stacking_analysis.py | Python | mit | 6,459 | [
"Gaussian"
] | f222234533b8eac9ba8fb732525c96e2c6af3718bba75399a3d99dee03a95b59 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/analysis/test_gnm.py | Python | gpl-2.0 | 8,044 | [
"MDAnalysis"
] | ae2df9e1313875bcbf93cda92778398e62e9dd41681b45c561eee53acaf1769e |
__author__ = 'sebastians'
# PyMOL Animation Tutorials -- 03 - Manual Viewpoints
# This tutorial will show you how to refine the camera position with manual viewpoints
# Import all necessary modules
import pymol
from pymol import cmd
def setup_pymol():
"""Sets up PyMOL for making animations."""
pymol.finish_... | ssalentin/pymol-animations | tutorials/basics/03-manual-viewpoints.py | Python | mit | 2,531 | [
"PyMOL"
] | 6578ec3eba07ec8ebc0df95e62982a6ca91505b695826d69bf7d6fe2e029a989 |
#A* -------------------------------------------------------------------
#B* This file contains source code for the PyMOL computer program
#C* Copyright (c) Schrodinger, LLC.
#D* -------------------------------------------------------------------
#E* It is unlawful to modify or remove this copyright notice.
#F* -------... | gratefulfrog/lib | python/pymol/exporting.py | Python | gpl-2.0 | 25,042 | [
"ChemPy",
"MacroModel",
"PyMOL"
] | a2fe5b9036c31fe787f9a957678aec0ada507b655a7280a725c9d559b1f04846 |
#!/usr/bin/env python2
# Import libraries
try:
import pygame_sdl2
pygame_sdl2.import_as_pygame()
import pygame, sys, singleplayer, settings
from pygame.locals import *
except:
import pygame, sys, singleplayer, settings
from pygame.locals import *
def launch():
# Initialize pygame
p... | kp96/Galaxy-Wars | menu.py | Python | apache-2.0 | 9,151 | [
"Galaxy"
] | fcde0c62ed8810e0a58d58a730643a3a17e9dfb2f9bcedb2ea5fc57c6f299ea0 |
#!/usr/bin/env python3
#
# OSU Fall 2017 CS344 - Program Py
# (Craig) Allan Reitan
# 10-16-2017
#
########
#
# Importing stuff
import random
# Start with the random number generator seed.
random.seed(None)
# Add a function to be called that will create 10 random numbers in a rand_list variable.
# Then at... | careitan/CS344 | ProgramPy/mypython.py | Python | gpl-2.0 | 1,256 | [
"MOE"
] | f91d9b4070709980a9d87e6c35be22a0be8ba6f4a053e089f7111c7707d2c17f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Copyright (C) 2012 Computational Neuroscience Group, NMBU.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | LFPy/LFPy | LFPy/test/test_networkcell.py | Python | gpl-3.0 | 60,217 | [
"NEURON"
] | 2a7210956c99df70893a517886f61d02015d2b4adcb5bd76e33c8f9752fc5cd5 |
'''
Created on 19/11/2009
TODO
@author: Brian Thorne
'''
from scipysim.actors import Source, Event, LastEvent
import logging
from numpy import linspace
import time
import random
class RandomSource(Source):
'''
A random noise source.
'''
def __init__(self, out, amplitude=1.0, resolution=10, simulation... | hardbyte/scipy-sim | scipysim/actors/signal/random_signal.py | Python | gpl-3.0 | 1,794 | [
"Brian"
] | f219674643a65e50424ad5bf1016d3d4e1c62fe2d656ce8d8707ea3ee743b431 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Image pipeline
image1 = vtk.vtkImageCanvasSource2D()
image1.SetNumberOfScalarComponents(3)
image1.SetScalarTypeToUnsignedChar()
image1.SetExtent(0,511,0,511,0,0)
image1.S... | hlzz/dotfiles | graphics/VTK-7.0.0/Imaging/Core/Testing/Python/TestCheckerboard.py | Python | bsd-3-clause | 1,228 | [
"VTK"
] | 25e89e2f30e8fb5f597cd6c5ea582edbdb062f6348463d38e2d2bbe1282932a6 |
#!/usr/bin/env python
## category General
## desc Combine multiple BAM files together (taking best-matches)
"""
Combine multiple BAM files together (taking best-matches)
Given a number of BAM files, this script will merge them together, taking
only the best matches. There can be any number of files, but the BAM heade... | ngsutils/ngsutils | ngsutils/bam/merge.py | Python | bsd-3-clause | 5,879 | [
"pysam"
] | 2602efe2aba5be630ddc622d539b8f6889966c8a8148bf59088968f1d6f807cd |
# Copyright (C) 2004 CCLRC & NERC( Natural Environment Research Council ).
# This software may be distributed under the terms of the
# Q Public License, version 1.0 or later. http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
"""
nc_to_na.py
=============
Holds the class NCToNA (sub-classing CDMSToNA... | eufarn7sp/egads | egads/thirdparty/nappy/nc_interface/nc_to_na.py | Python | gpl-3.0 | 17,255 | [
"NetCDF"
] | ffb6c9ea00a22cb5949d3ed2bd1088a711ecc02dd2c0f66a8ff9185db6d88c6c |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | aldian/tensorflow | tensorflow/python/eager/function_test.py | Python | apache-2.0 | 162,373 | [
"Octopus"
] | c4ca60e87233a1167f08c079fbe339675322316d1140917e53f18ebba44d7ad3 |
import numpy as np
from scipy.interpolate import InterpolatedUnivariateSpline
import os,os.path
import re
from numpy.lib.recfunctions import append_fields
from . import localpath
class SN1a_feedback(object):
def __init__(self):
"""
this is the object that holds the feedback table for SN1a
.masses giv... | jan-rybizki/Chempy | Chempy/yields.py | Python | mit | 97,950 | [
"ChemPy"
] | 665db74fa9f927dd772a90176b1716ca8a9ac23cc862e9762c2b5086beb82132 |
# -*- coding: utf-8 -*-
# ****************************************************************************
# Original work Copyright (C) 2013-2015 SUNCAT
# Modified work Copyright 2015-2017 Lukasz Mentel
#
# This file is distributed under the terms of the
# GNU General Public License. See the file 'COPYING'
# in the root ... | lmmentel/ase-espresso | espresso/nebespresso.py | Python | gpl-3.0 | 2,722 | [
"ASE"
] | f7d04c85a00202c15da7a329074513743c46c4f124d386b996ec50076db049fe |
# encoding:utf-8
# executando o blast localmente
# download: ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST
# comparando duas sequências de nucleotídeos
from Bio.Blast.Applications import *
comando = NcbiblastnCommandline(
query='seq1.fasta', subject='seq2.fasta',
outfmt=0, out='saida.txt')
stdo... | marcoscastro/pybr11 | codigos/10_blast_local.py | Python | gpl-2.0 | 396 | [
"BLAST"
] | cd9f0ad107f499a1e56f8233391de0cce48f9d9ca07b6cdeb66e5f02c00fe7b5 |
''' Tests for netcdf '''
import os
from os.path import join as pjoin, dirname
import shutil
import tempfile
import time
from StringIO import StringIO
from glob import glob
import numpy as np
from scipy.io.netcdf import netcdf_file
from nose.tools import assert_true, assert_false, assert_equal, assert_raises
TEST_D... | stefanv/scipy3 | scipy/io/tests/test_netcdf.py | Python | bsd-3-clause | 3,726 | [
"NetCDF"
] | c36e0a877b3ec44237546a5bf4b08d27fc38711c676452a0fe541617ee691ed8 |
from Components.Converter.Converter import Converter
from Components.Element import cached
from ServiceReference import ServiceReference
from enigma import eServiceCenter, eServiceReference, iServiceInformation, iPlayableService, eDVBFrontendParametersSatellite, eDVBFrontendParametersCable
from string import upper
from... | cubaeurokatmic/gui | lib/python/Components/Converter/ExtremeInfo.py | Python | gpl-2.0 | 58,733 | [
"Galaxy"
] | b90e8cfecd061a3fc657fb4c6788f63a6f38b05c1fda1bd96b72dc5e4043dc7d |
"""
Enterprise Data consent tests
"""
from regression.pages.enterprise.enterprise_const import ENT_COURSE_TITLE, ENTERPRISE_NAME
from regression.pages.whitelabel.basket_page import SingleSeatBasketPage
from regression.tests.enterprise.ent_test_base import EnterpriseTestBase
class TestEnterpriseDataSharingConsent(Ent... | edx/edx-e2e-tests | regression/tests/enterprise/test_ent_data_sharing_consent.py | Python | agpl-3.0 | 4,160 | [
"VisIt"
] | 551ed4a59ec62e4dcaa948fde09ceab29865e496bd59f87427bf81d322d78535 |
from mpl_toolkits.basemap import Basemap
from FileReader import *
from math import *
import numpy as np
import matplotlib.pyplot as plt
from random import *
all_events = True #Set this to False to see just the worst earthquakes
def drawMap():
#Read in the data:
if all_events:
fileName = 'Data\\all_ear... | blairg23/Earthquakes | finalScatter.py | Python | mit | 3,155 | [
"Mayavi"
] | 0c921b7579bfde71c52a8ccd09963c07cf7ce6a5ca7f4ef1cac921a841155721 |
import pandas as pd
from . import cytoscapejs as cyjs
import warnings
warnings.warn('\n\n\n**** util.util_dataframe will be deprecated in the next py2cytoscape release. ****\n\n\n')
def from_dataframe(df,
source_col='source',
target_col='target',
interaction_... | idekerlab/py2cytoscape | py2cytoscape/util/util_dataframe.py | Python | mit | 3,720 | [
"Cytoscape"
] | 8f0bc59e2083ebe55a762b2ec2e746db161304a7ea0202f62018d487eea62ce6 |
# LIBTBX_SET_DISPATCHER_NAME dials.refine_bravais_settings
# LIBTBX_SET_DISPATCHER_NAME dials.rbs
"""Refinement of Bravais settings consistent with the primitive unit cell.
This program takes as input the output of dials.index, i.e. indexed.expt
and indexed.refl files. Full refinement of the crystal and experimental
... | dials/dials | command_line/refine_bravais_settings.py | Python | bsd-3-clause | 8,131 | [
"CRYSTAL"
] | af0ca2b33793d3dff41d4f416b2a4738dfd8b84ce1d03fb94b323f14d74dcce9 |
import vtk
import random
import os
from os import path
import sys
# This is for sphenix to find the packages
sys.path.append( path.dirname( path.dirname( path.abspath(__file__) ) ) )
import numpy as np
from gempy.colors import *
def color_lot_create(geo_data, cd_rgb=color_dict_rgb, c_names=color_names, c_subname="400"... | nre-aachen/GeMpy | gempy/visualization_vtk.py | Python | mit | 28,715 | [
"VTK"
] | b1531305592f3356d85eb1fb6a5dc26cf8f71b759476d4e9a9aad239811e247a |
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
"""
Gaussian Processes regression examples
"""
try:
from matplotlib import pyplot as pb
except:
pass
import numpy as np
import GPy
def olympic_marathon_men(optimize=True, plot=True):
"""Ru... | esiivola/GPYgradients | GPy/examples/regression.py | Python | bsd-3-clause | 22,458 | [
"Gaussian"
] | f99a80238b18eb970bf05bd5b6b8663fcf038d3fec634ce2237cc1dc6acedadf |
from datetime import date
from django.db import models
from edc_base.audit_trail import AuditTrail
from edc_base.model.models import BaseUuidModel
from edc_base.model.fields import OtherCharField
from edc_constants.choices import DRUG_ROUTE, YES_NO_UNKNOWN
from edc_sync.models import SyncModelMixin
from edc_visit_tra... | botswana-harvard/microbiome | microbiome/apps/mb_maternal/models/maternal_post_fu_med.py | Python | gpl-2.0 | 2,246 | [
"VisIt"
] | 450e3ba5f96913e3d5b47ae8387a7cbe0d5b135c20601cba5974b423daf46da1 |
#!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser(description="Create and manipulate a PCA decomposition of the synthetic spectral library.")
parser.add_argument("--create", action="store_true", help="Create a PCA decomposition.")
parser.add_argument("--plot", choices=["reconstruct", "eigenspectr... | BrownDwarf/Starfish | scripts/pca.py | Python | bsd-3-clause | 13,650 | [
"Gaussian"
] | 5d1e53f5d399c6409f12e26b9e2be603bb31ebebd003055743806e9a13ae77ea |
# coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from unittest import TestCase
from mock import Mock
from pyqrllib.pyqrllib import bin2hstr, hstr2bin
from qrl.daemon.walletd import WalletD
from qrl.generated import ... | theQRL/QRL | tests/daemon/test_walletd.py | Python | mit | 63,348 | [
"Jaguar"
] | 963909acd2268ffe7b3afd0eba168905903ce04d64252e9e6709136c62d794fe |
#!/usr/bin/env python -i
# preceeding line should have path for Python on your machine
# simple.py
# Purpose: mimic operation of couple/simple/simple.cpp via Python
# Syntax: simple.py in.lammps
# in.lammps = LAMMPS input script
import sys
infile = 'in.simple'
me = 0
from lammps import lammps
lmp = lammps... | crtrott/lammps | test/lib_python/in.simple-002.py | Python | gpl-2.0 | 759 | [
"LAMMPS"
] | 86dd8c39c88a184e09fb3921740973fd8c787bfcdb5ee72a6d45a54ad086af21 |
"""Leetcode 721. Accounts Merge
Medium
URL: https://leetcode.com/problems/accounts-merge/
Given a list accounts, each element accounts[i] is a list of strings, where the
first element accounts[i][0] is a name, and the rest of the elements are emails
representing emails of the account.
Now, we would like to merge the... | bowen0701/algorithms_data_structures | lc0721_accounts_merge.py | Python | bsd-2-clause | 5,535 | [
"VisIt"
] | 58fa3919595d1fd8b083dc763bbadac181a01b0c966be6f3853d28111b0676cb |
'''
synbiochemdev (c) University of Manchester 2015
synbiochemdev is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
| neilswainston/development-py | synbiochemdev/utils/__init__.py | Python | mit | 209 | [
"VisIt"
] | a058ffeffd31b92f3d5c84a4f092f5cdb5ffcdf7b4eec2e4105fac44565294ee |
# ====== Legal notices
#
#
# Copyright 2014 - 2018 Jacques de Hooge, GEATEC engineering, www.geatec.com
#
# 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/licen... | QQuick/Transcrypt | transcrypt/modules/org/transcrypt/compiler.py | Python | apache-2.0 | 163,807 | [
"VisIt"
] | 6af416199332d09091232251e64e63d68b91d49e890583826f54cb0a8128e2c6 |
from . import base
from .. import stats
from .. import items
from .. import dialogue
from .. import context
from .. import aibrain
from .. import effects
from .. import animobs
from .. import targetarea
from .. import invocations
from . import animals
from .. import enchantments
# *******************************
# *... | jwvhewitt/dmeternal | old_game/monsters/auran.py | Python | gpl-2.0 | 6,405 | [
"BLAST"
] | 5809f0eae6a076c26cb67e373bf214a9ba8c5c820b4b2025e9e8de21b8c3a6b7 |
from __future__ import print_function, division
import io
from io import BytesIO
import os
from os.path import join
import shutil
import tempfile
try:
from subprocess import STDOUT, CalledProcessError, check_output
except ImportError:
pass
from sympy.core.compatibility import unicode, u_decode, string_types
... | kaushik94/sympy | sympy/printing/preview.py | Python | bsd-3-clause | 13,325 | [
"VisIt"
] | aaa16d1a5c9fe0e3894bcf726b5b888ada860386e6d51216cedcb51f2df1ef29 |
import numpy as NP
import numpy.ma as MA
import scipy as SP
from scipy import interpolate
from skimage import img_as_float
import skimage.morphology as morphology
from skimage.filters import median
from skimage.filters.rank import mean
from skimage.restoration import unwrap_phase
import astropy.convolution as CONV
impo... | nithyanandan/general | astroutils/mathops.py | Python | mit | 77,343 | [
"Gaussian"
] | 5ec72ac876f8debfd1485700651651aa8b85237c9dcd3afb07ec5af6ddc8dd91 |
__module_name__ = "xquiz"
__module_version__ = "1.11"
__module_description__ = "Quiz script for X-Chat"
# Requires X-CHAT 2.x with Python scripting interface plugin (or X-Chat Aqua 0.13.0 with Python (0.12.0 hangs))
# xquiz started life as TypusQuiz by Rensel & Laurentius
# Extensively modified by btobw for #qui... | tecan/xchat-rt | plugins/scripts/xquiz.py | Python | gpl-2.0 | 24,586 | [
"VisIt"
] | 8fcbdee6ae0b48821aef572c7929e9f7d2a6d9583028b69562abb77fa075a4e2 |
"""
Functions for calculating the statistical significant differences between two dependent or independent correlation
coefficients.
The Fisher and Steiger method is adopted from the R package http://personality-project.org/r/html/paired.r.html
and is described in detail in the book 'Statistical Methods for Psychology'... | MicrosoftResearch/Azimuth | azimuth/corrstats.py | Python | bsd-3-clause | 4,918 | [
"MOE"
] | 37fa1a5dfd0e4a33e304566c299cd7c17b4b3775971699bd49aaf5faf0cd0f54 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Licens... | theochem/horton | tools/harmonics.py | Python | gpl-3.0 | 9,039 | [
"Gaussian"
] | 815f041adb1a0c2b5e7a6971258b3c57d6e59d30d462f58f997d045eb2a36c78 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Provides a class for interacting with KPath classes to
generate high-symmetry k-paths using different conventions.
"""
import itertools
from warnings import warn
import networkx as nx
import numpy as np
... | gmatteo/pymatgen | pymatgen/symmetry/bandstructure.py | Python | mit | 14,782 | [
"pymatgen"
] | e6adeef06bf3d5065ed8308600fd757bde007adef0fdde9f82662dc8f5b78c5d |
# Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | tensorflow/graphics | tensorflow_graphics/projects/nasa/lib/model_utils.py | Python | apache-2.0 | 8,735 | [
"Gaussian"
] | 14b4e18e66120f5bb097956f40d32a98e0695f67f5224cdbd875126ef9eff423 |
#!/usr/bin/env python
import inspect
import os
import shutil
import unittest
from ansibullbot.parsers.botmetadata import BotMetadataParser
EXAMPLE1 = """
---
macros:
team_ansible:
- larry
- curly
- moe
team_cloud:
- bob
- sally
team_cloud_aws:
- jeff
te... | pilou-/ansibullbot | tests/unit/parsers/test_bot_metadata_parser.py | Python | gpl-3.0 | 3,061 | [
"Galaxy",
"MOE"
] | 6ffd5a19cce9fd48e6e42a0989982ab3e8f64633b5bc2235a867d35287a6166d |
# -*- coding: utf-8 -*-
#
# brunel_delta_nest.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 Licen... | kristoforcarlson/nest-simulator-fork | pynest/examples/brunel_delta_nest.py | Python | gpl-2.0 | 10,401 | [
"NEURON"
] | 52fefcb6c8d5e82cf40b2cb25a5d8a726be90310fa0d598b1e3391a8135ed3b2 |
#!/usr/bin/env python
"""The script will determine primer positions (coverage peaks) on the
forward and reverse strand of a BAM file. This done by first
extracting the read start/end rate for each strand and then applying a
simple 3-sigma cutoff.
NOTES:
- This code was written for single, short (viral) genomes. Your m... | CSB5/vipr | src/primer_pos_from_peaks.py | Python | gpl-2.0 | 7,364 | [
"pysam"
] | b80d18e38da54241d76a085a36b4acedd2fa5fa5e6c1e74516a7fb833c38b5df |
# coding: utf-8
__author__ = 'Insality'
from entities.entity import Entity
import config
import profile
import random
import cocos
from cocos.actions import *
BONUS_CRYSTAL = 'crystal.png'
BONUS_SPEED = 'speed_bonus.png'
bonuses = [BONUS_CRYSTAL, BONUS_SPEED]
class Bonus(Entity):
def __init__(self, type, pos):
... | Insality/argalactic | entities/bonus.py | Python | gpl-2.0 | 1,770 | [
"CRYSTAL"
] | 39e132468fdf17450a15eab9df272df9b567b323c7f7d6529b4ea7dc4f0bd5f3 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2022, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Q-Chem Ouput Editor
#######################
Editor classes for simple Q-Chem output files
"""
import six
import numpy as np
import pandas as pd
from exatomic.exa import TypedMet... | exa-analytics/exatomic | exatomic/qchem/output.py | Python | apache-2.0 | 2,106 | [
"Q-Chem"
] | 3982a34ce6e99857679bfb13741473a40bfba1fb0a1d8155f09da7a2d79edc2b |
"""API for Home Connect bound to HASS OAuth."""
from asyncio import run_coroutine_threadsafe
import logging
import homeconnect
from homeconnect.api import HomeConnectError
from homeassistant import config_entries, core
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, PERCENTAGE, TIME_SECONDS
from homeassistan... | tchellomello/home-assistant | homeassistant/components/home_connect/api.py | Python | apache-2.0 | 14,326 | [
"ESPResSo"
] | 64f45c920222fdb8fa17d5978ed41a35ae86571ebf07ff7f771c5e213c0d3520 |
__author__ = 'tflourenco'
#!/usr/bin/python
import re
from numpy import *
from pylab import *
from matplotlib import pyplot as plt
import scipy.interpolate as inter
from scipy.interpolate import interp1d
from matplotlib.ticker import FuncFormatter
from matplotlib.dates import DateFormatter
import csv
import sys
import ... | TiagoLourenco/DataAnalisis | sis.py | Python | unlicense | 12,263 | [
"Gaussian"
] | cb3264b448ef680edee67f0bcbf588079a0b61336ba375eebbde7741909e6870 |
#!/usr/bin/env python3
import hashlib
import os
import sys
from io import BytesIO
# noinspection PyUnresolvedReferences
from typing import BinaryIO, Dict, List, Optional, Union
B_SIZE = 512
B_COUNT = 880 * 2
T_HEADER = 2
T_DATA = 8
T_LIST = 16
ST_ROOT = 1
ST_USERDIR = 2
ST_FILE = 0xFFFFFFFF - 3 + 1
def char(block:... | FrodeSolheim/fs-uae-launcher | fsgamesys/amiga/adffile.py | Python | gpl-2.0 | 18,213 | [
"ADF"
] | 0b6030cb045477db0c92da36b88f564f3022b98cbc0cac62d156c6f5b4f81655 |
#!/usr/bin/env python
#############################################################################
# #
# P^2 Config Tool for NetworkManager (Gnome) #
# little helper to switch between Perfect Privacy Servers easily! #
# more infos? please visit https://github.com/pylight/P-2-Config-To... | pylight/P-2-Config-Tool | pptool.py | Python | mit | 8,398 | [
"VisIt"
] | e8d35a1da309a6f00eaa1468e2e3490dad957cfc3d335c038f6d976074b8676b |
#
# msword.py -- Python module for handling MS Word Documents
#
# Copyright (c) 2002, Silverback Software, LLC
#
# Brian St. Pierre, <brian @ silverback-software.com>
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose, without fee, and without a written agr... | lsaffre/timtools | timtools/tools/msword.py | Python | bsd-2-clause | 4,777 | [
"Brian"
] | c9523ce72117550fe65c2b39f34ec8a1a196511ea54d8b4b5d401b398d4a3682 |
# Copyright 2011 Rackspace
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2013 IBM Corp.
# 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
#
# ... | nikesh-mahalka/nova | nova/tests/unit/network/test_manager.py | Python | apache-2.0 | 165,287 | [
"FEFF"
] | 7b4031a4758bcd360002cf176fb037bba1499570067f024f6ebc113c1d251437 |
########################################################################
# $HeadURL$
# File : InstallTools.py
# Author : Ricardo Graciani
########################################################################
"""
Collection of Tools for installation of DIRAC components: MySQL, DB's, Services's, Agents
It only m... | avedaee/DIRAC | Core/Utilities/InstallTools.py | Python | gpl-3.0 | 84,293 | [
"DIRAC"
] | 21e9ee26bd6d17ae82cb546fd05840336746b17c6d264b0fa7416528b1b1f3c9 |
# -*- coding: utf-8 -*-
#
# plot_quantal_stp_synapse.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 th... | INM-6/nest-git-migration | pynest/examples/plot_quantal_stp_synapse.py | Python | gpl-2.0 | 3,172 | [
"NEURON"
] | 80543bcb4af1e9a2cd5e4dc40d6524580c4fb5493aa5a6552c936df7282bf746 |
#!/usr/bin/env python
#
# $File: statInfo.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute i... | BoPeng/simuPOP | docs/statInfo.py | Python | gpl-2.0 | 1,898 | [
"VisIt"
] | aed76a6f9bd96016a4cc922c8290e2634a823d594270b7549557bc353f32b414 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
"""
desitarget.geomask
==================
Utility functions for geometry on the sky, masking, matching, etc.
.. _`this post on Stack Overflow`: https://stackoverflow.com/questions/7392143/python-implementations-of-packing-algorith... | desihub/desitarget | py/desitarget/geomask.py | Python | bsd-3-clause | 64,166 | [
"Galaxy"
] | 41723e06877827729b05ec69cca4475bfd51f803649d9507841310c4832ccc52 |
import os
from boxbranding import getMachineBrand, getMachineName
import xml.etree.cElementTree
from datetime import datetime
from time import ctime, time, strftime, localtime, mktime
from bisect import insort
from enigma import eActionMap, quitMainloop
from Components.config import config
from Components.TimerSanity... | wetek-enigma/enigma2 | PowerTimer.py | Python | gpl-2.0 | 44,870 | [
"ASE"
] | 348805b91d7579ece041aac5b1294582a80087c5c193b3179165606ddf3ad967 |
#!/usr/bin/env python
import sys
from argparse import ArgumentParser
import subprocess
try:
import commands
except:
pass
import os
PATH_OF_THIS_SCRIPT = os.path.split(os.path.realpath(__file__))[0]
sys.path.insert(0, os.path.join(PATH_OF_THIS_SCRIPT, ".."))
import GetOrganelleLib
from GetOrganelleLib.seq_parser... | Kinggerm/GetOrganelle | Utilities/rm_low_coverage_duplicated_contigs.py | Python | gpl-3.0 | 7,845 | [
"BLAST"
] | b7dfe3bfa5bcf0e264f1f1f3f385ddaa637d3ee56b410439871dab0b94e09b36 |
"""
It is used to test the MonitoringReporter. It requires MonitoringDB which is based on elasticsearch and MQ which is optional...
CS:
Systems
{
Monitoring
{
Certification
{
Databases
{
MonitoringDB
{
Host = localhost
Port = 9200
}
}
}
... | Andrew-McNab-UK/DIRAC | tests/Integration/Monitoring/Test_MonitoringReporter.py | Python | gpl-3.0 | 15,556 | [
"DIRAC"
] | c93a2e08794fa35a9bb3ba8e671d0817c877e1d37a463d98f5c21c115eb479bf |
#! /usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-stager-show-stats
# Author : Daniela Remenska
########################################################################
"""
Reports breakdown of file(s) number/size in different staging states a... | andresailer/DIRAC | StorageManagementSystem/scripts/dirac-stager-show-stats.py | Python | gpl-3.0 | 3,011 | [
"DIRAC"
] | 3c38de86882cc158ffd625de1acead044a9316cc179b6152e784721c15f9b2f6 |
# -*- coding: utf-8 -*-
"""
Sphinx-Gallery introduction
===========================
Plot to present Sphinx-Gallery using itself to display its
version.
"""
# Code source: Óscar Nájera
# License: BSD 3 clause
import numpy as np
import matplotlib.pyplot as plt
import sphinx_gallery
np.random.seed(32)
def layers(n, ... | lesteve/sphinx-gallery | examples/plot_gallery_version.py | Python | bsd-3-clause | 1,103 | [
"Gaussian"
] | 0f545db585fb4d92b69726fc995bd587eb5c6b9106116532bf3726ad5e7d2598 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides an interface to start and stop Android emulator.
Emulator: The class provides the methods to launch/shutdown the emulator with
... | Pluto-tv/chromium-crosswalk | build/android/pylib/utils/emulator.py | Python | bsd-3-clause | 14,032 | [
"Galaxy"
] | 34c962f333fe429cfe8239fcd9e8f82d83a57b46042ef2603c68431a0aab4d92 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.