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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/python3
#
# Open SoundControl for Python
# Copyright (C) 2002 Daniel Holth, Clinton McChesney
#
# 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 Lice... | gratefulfrog/SPI | RPI/Python/Tests/SERIAL_TESTS/OSC_00/PythonSlip/OSC.py | Python | gpl-3.0 | 12,002 | [
"VisIt"
] | 50e1e51c592d83a5d200f687d33e094d4eae447ecb5f273cfe6f51a5fc56037d |
#!/usr/bin/env python
#
#
# This example shows how to add an observer to a Python program. It extends
# the Step1/Python/Cone.py Python example (see that example for information on
# the basic setup).
#
# VTK uses a command/observer design pattern. That is, observers watch for
# particular events that any vtkObject (o... | CMUSV-VisTrails/WorkflowRecommendation | examples/vtk_examples/Tutorial/Step2/Cone2.py | Python | bsd-3-clause | 1,349 | [
"VTK"
] | c1b3de99a162b31767b75073e0a16010324677e53257965b71d46747a0b00085 |
#Author : Lewis Mervin lhm30@cam.ac.uk
#Supervisor : Dr. A. Bender
#All rights reserved 2014
#Protein Target Prediction Tool trained on SARs from PubChem (Mined 08/04/14) and ChEMBL18
#Molecular Descriptors : 2048bit Morgan Binary Fingerprints (Rdkit) - ECFP4
#Dependencies : rdkit, sklearn, numpy
#libraries
from rdkit... | lhm30/PIDGIN | singlemodel/predict_singlemodel_ranked_number.py | Python | mit | 2,536 | [
"RDKit"
] | c4500436e848360f31273ab6192f487c3d507567a2802faf5ad549d62f6ef05d |
from yade import pack
from yade import export
from yade import timing
from yade import plot
if ( 'PFVFLOW' in features ):
num_spheres=1000# number of spheres
young=1e6
compFricDegree = 3 # initial contact friction during the confining phase
finalFricDegree = 30 # contact friction during the deviator... | cosurgi/trunk | scripts/checks-and-tests/checks/checkDEM-PFVPressureInjection.py | Python | gpl-2.0 | 13,383 | [
"VTK"
] | 41f394397328631c605f2e73e8f4d13babd5300a3a3b2ad39c9d1728b52ffeca |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | krafczyk/spack | var/spack/repos/builtin/packages/r-preprocesscore/package.py | Python | lgpl-2.1 | 1,606 | [
"Bioconductor"
] | af8c11a6849ac43128008df3e502170ba751a0448a5362b4304c859a4a54bcde |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 25 06:43:14 2020
@author: deborahkhider, fzhu, jeg
Utilities to manipulate timeseries
"""
__all__ = [
'simple_stats',
'bin',
'interp',
'gkernel',
'grid_properties',
'standardize',
'ts2segments',
'annualize',
'ga... | LinkedEarth/Pyleoclim_util | pyleoclim/utils/tsutils.py | Python | gpl-3.0 | 32,133 | [
"Gaussian"
] | f467d47cee78937a8e1e050dc3ca649247fc92dc3ba44f4514b7291e1fdd63ed |
from nose.tools import assert_equal
import numpy as np
import matplotlib
matplotlib.use('Agg', warn=False)
from probfit.nputil import mid
from probfit.pdf import crystalball, gaussian
from probfit.functor import Normalized
from probfit.toy import gen_toy
from probfit._libstat import compute_chi2
from probfit.nputil imp... | mtresch/probfit | test/testtoy.py | Python | mit | 1,379 | [
"Gaussian"
] | bd7785b8a37a02c4e0385a8630be2495c1da4962e8736352e9284e4ff4586e37 |
import random
import numpy as np
class Robot(object):
def __init__(self, length=0.5):
# creates robot and initializes location/orientation to 0, 0, 0
self.x = 0.0
self.y = 0.0
self.orientation = 0.0
self.length = length
self.steering_noise = 0.0
self.distan... | aurangzaib/robotics-ai | class_robot.py | Python | gpl-3.0 | 8,465 | [
"Gaussian"
] | d4fc248c8631abed5b360b7059e227504afb6dd9c2fceed70367698f45a1bb00 |
#!/usr/bin/python
"""
demoish.py
Let's think of the interactive shell prompt roughly as a state machine.
Inputs:
- Enter a line that finishes a command
- Enter a line that's incomplete.
- Hitting TAB to complete
- which display multiple candidates or fill in a single candidate
- Ctrl-C to cancel a COMMAND... | oilshell/blog-code | interactive-shell/demoish.py | Python | apache-2.0 | 20,494 | [
"VisIt"
] | e944fc3debe4f40c7df53e10b07c9b15777cc64d3afc920671e64b4888c8ab5e |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
sessions2trash.py
Run this script in a web2py environment shell e.g. python web2py.py -S app
If models are loaded (-M option) auth.settings.expiration is assumed
for sessions without an expiration. If models are not loaded, sessions older
than 60 minutes are removed. U... | SEA000/uw-empathica | empathica/scripts/sessions2trash.py | Python | mit | 6,636 | [
"VisIt"
] | e1f9472ce3301b4106a12d95cab11223fd86d1cb4050c83c5f5fd2228c37b49c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from compliance_checker.suite import CheckSuite
from netCDF4 import Dataset
from tempfile import gettempdir
from compliance_checker.cf import util
from compliance_checker.tests.resources import STATIC_FILES
from compliance_checker.tests import BaseTestCase
import pytest
i... | lukecampbell/compliance-checker | compliance_checker/tests/test_cf_integration.py | Python | apache-2.0 | 23,588 | [
"NetCDF"
] | 17695162b03165817430e2858d07ce3813797b97aeb31ea6f66ed9133c584dd7 |
#! /usr/bin/env python
# Copyright (c) 2005 Robert L. Campbell
from pymol import cmd
def fitting(obj1,select1,obj2,select2):
"""
DESCRIPTION
"fitting" allows the superpositioning of object1 onto object2 using
the atoms in selection1 and selection2 (side chains are ignored). The
residue names, residue number... | wjurkowski/ppibench | vegas/scripts/fitting.py | Python | apache-2.0 | 4,121 | [
"PyMOL"
] | 24c68b8c72b342c1b56fd49f8dbfce7d85835a9bcb0cf70bfda66593ef963e72 |
#!/usr/bin/env python
#pylint: disable=missing-docstring
#################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment #
# #... | Chuban/moose | python/chigger/tests/geometric/plane_source/plane_source.py | Python | lgpl-2.1 | 1,481 | [
"MOOSE",
"VTK"
] | 35fd02eb4c9bf9d089eebeb94db81d0101da6410f8f680e982328efc9b928109 |
#!/usr/bin/env python
""" This script retrieves the output of all the jobs of a given
test. <jobName> is the path of the directory created by submitMyJob
"""
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
import sys
from DIRAC.Interfaces.API.Dirac import Dirac
import os
if len(sys.arg... | andresailer/DIRAC | tests/Performance/DFCPerformance/retrieveResult.py | Python | gpl-3.0 | 1,100 | [
"DIRAC"
] | fc76b0488ec6eb12c49ea6b49e055a3ab38710474e93f9bcdde8fc4aed9985e5 |
# Orca
# Copyright (C) 2014-2015 Synthicity, LLC
# Copyright (C) 2015 Autodesk
# See full license in LICENSE.
| SANDAG/orca | orca/utils/tests/__init__.py | Python | bsd-3-clause | 110 | [
"ORCA"
] | 33111c9f9a6af655b6600244c5bc5c766815424fb98d7aae3de1aa48fa423dd8 |
#
# Copyright (C) 2009, Brian Tanner
#
#http://rl-glue-ext.googlecode.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/licenses/LICENSE-2.0
#
# Unless requi... | shiwalimohan/RLInfiniteMario | system/codecs/Python/examples/mines-sarsa-example/sample_mines_environment.py | Python | gpl-2.0 | 7,414 | [
"Brian"
] | 0e74fa295ed5ea176c0675a6869573d2e9e573cd59382e52936d9433a8f4cccf |
# Copyright (c) 2014, Satoshi Nakamoto Institute
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditio... | enikesha/pacioli | pacioli/accounting/memoranda.py | Python | bsd-3-clause | 9,435 | [
"VisIt"
] | 11a28282a401591e84abc148c4088d121e5e42219f534e65ecca0fd04298f630 |
import os
QEPYRC = {'pw.x':'/opt/espresso-5.1/bin/pw.x',
'ph.x':'/opt/espresso-5.1/bin/ph.x',
'q2r.x':'/opt/espresso-5.1/bin/q2r.x',
'mode':'queue',
'command':'qsub',
'options':'-joe',
'walltime':'24',
'nodes':1,
'ppn':1,
'mem':'2GB',
'vmem':'2GB',
'jobname:':'None'}
def read_configuration(fname... | kparrish/qepy | qepy/qepyrc.py | Python | gpl-2.0 | 759 | [
"ESPResSo"
] | 2cd6416c2e9025dd514a7ccabf000dea930c3a076525362e9edc71ff44f4111a |
# -*- coding: utf8
# Author: David C. Lambert [dcl -at- panix -dot- com]
# Copyright(c) 2013
# License: Simple BSD
"""
The :mod:`elm` module implements the
Extreme Learning Machine Classifiers and Regressors (ELMClassifier,
ELMRegressor, SimpleELMRegressor, SimpleELMClassifier).
An Extreme Learning Machine (ELM) is a... | zygmuntz/Python-ELM | elm.py | Python | bsd-3-clause | 20,363 | [
"Gaussian"
] | e8cf1df0b8db9fa3a2dc6493d1f9756994258cce9e46873ecabbdd201f2f6e21 |
# -*- coding: utf-8 -*-
# Github issue #69, Also BhallaLab/moose-gui#3.
import moose
print( '[INFO] Importing moose from %s' % moose.__file__ )
print( '[INFO] Version : %s' % moose.__version__ )
moose.loadModel('../data/acc27.g','/acc27_1',"gsl")
compts = moose.wildcardFind('/acc27_1/##[ISA=ChemCompt]')
for compt in c... | dharmasam9/moose-core | tests/issues/issue_69.py | Python | gpl-3.0 | 575 | [
"MOOSE"
] | 1ab582425f782ccb30a921a522b73e075260cb574497c88fde323122807398fa |
# Copyright 2000-2002 Andrew Dalke.
# Copyright 2002-2004 Brad Chapman.
# Copyright 2006-2010 by Peter Cock.
# All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Represent a Seque... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/SeqRecord.py | Python | gpl-2.0 | 46,653 | [
"BioPerl",
"Biopython"
] | 987326822497c6e694b917cb4d8a54609917b5bd834b48371e329ca64a19783e |
import os
output_path = os.path.dirname(os.path.abspath(__file__)) + "/"
output_test_flow = output_path + "test.hdf5"
output_test_fib = output_path + "test.fib"
output_test_vtk = output_path + "test.vtk"
| StongeEtienne/trimeshpy | trimeshpy/data/out/__init__.py | Python | mit | 205 | [
"VTK"
] | c6d0fb8fd67aa723ff9297b8b7bc2663b9050ddb39006118ea785841d1698413 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) Ostap developpers.
# =============================================================================
# @file ostap/math/ve.py
# Simple ``value-with-error'' concept
# @code
# a = V... | OstapHEP/ostap | ostap/math/ve.py | Python | bsd-3-clause | 15,818 | [
"Gaussian"
] | 46d82be499e588ae7d88ac65c8e21cf01cd202f51f4020a88a112b45a4cda050 |
# -*- coding: utf-8 -*-
import re
from modules import client,webutils,cloudflare,decryptionUtils,cache
from modules.constants import resolver_dict
from modules.log_utils import log
from modules.liveresolver_utils import *
import urlparse,urllib,base64
from BeautifulSoup import BeautifulSoup as bs
global limit
limit=0
... | azumimuo/family-xbmc-addon | script.module.liveresolver/lib/liveresolver/__init__.py | Python | gpl-2.0 | 33,380 | [
"VisIt"
] | 8d5cc0738637c6ca9b5a81990ca6657b1572408b801301d5dc64be7b51888ab8 |
# -*- coding: utf-8 -*-
""" GIS Module
@requires: U{B{I{gluon}} <http://web2py.com>}
@requires: U{B{I{shapely}} <http://trac.gispython.org/lab/wiki/Shapely>}
@copyright: (c) 2010-2013 Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaini... | sammyshj/gci | modules/s3/s3gis.py | Python | mit | 350,924 | [
"Amber"
] | 66964b3249381052150ed133ffaf409d27c146468c71dae52ace2f114ff5fbfc |
"""
Utility Functions and Classes
This module collects small pieces of code used throughout :py:mod:`bioconda_utils`.
"""
import asyncio
import contextlib
import datetime
import fnmatch
import glob
import logging
import os
import subprocess as sp
import sys
import shutil
import json
import queue
import warnings
from... | bioconda/bioconda-utils | bioconda_utils/utils.py | Python | mit | 53,574 | [
"Bioconda"
] | 505ba714ff440325ab80e9e7fae8077003134f42ca609de157d44f789d956c26 |
""" The POOL XML Slice class provides a simple plugin module to create
an XML file for applications to translate LFNs to TURLs. The input
dictionary has LFNs as keys with all associated metadata as key,
value pairs.
"""
from DIRAC.Resources.Catalog.PoolXMLCatalog import PoolXMLCatal... | Andrew-McNab-UK/DIRAC | WorkloadManagementSystem/Client/PoolXMLSlice.py | Python | gpl-3.0 | 2,823 | [
"DIRAC"
] | 4f961affb093e84e8ac2677ef3c177161906d6fbd64fc459dce26e41ded7e4a7 |
# Filename : Image2Map.py
# Authors : Georg Muntingh and Bjorn Lindeijer
# Version : 1.2
# Date : June 16, 2010
# Copyright : Public Domain
from PIL import Image
import os, sys, networkx
class TileMap:
""" This class represents a map of tiles.
"""
def __init__(self, file, tileX, tileY):
... | alpine9000/climbyskies | tools/image2map/Image2Map.py | Python | bsd-2-clause | 15,519 | [
"VisIt"
] | 7fac9ae7f19e626ab39e8e659f6b5cc0669db41b3137c7c6e751beea130b6dc6 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | BlueBrain/NeuroM | tests/apps/test_morph_stats.py | Python | bsd-3-clause | 14,459 | [
"NEURON"
] | eb42c39df3e70c8fc5ba048be678e96c4b02842e9322f78f2e753d0e5008357a |
# -*- coding: utf-8 -*-
''' Used for processing CLA requests'''
#
# Copyright © 2008 Ricky Zhou
# Copyright © 2008-2009 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2.... | chensuchun/fas | fas/cla.py | Python | gpl-2.0 | 15,152 | [
"VisIt"
] | 1f5efa947819640ba98867ffb42c466eb7486f6773bf4219ad2a7ff2ca66762c |
""" Implementation of Module
"""
# pylint: disable=unused-wildcard-import,wildcard-import
import copy
import os
# try: # this part to import as part of the DIRAC framework
from DIRAC.Core.Workflow.Parameter import *
__RCSID__ = "$Id$"
class ModuleDefinition(AttributeCollection):
def __init__(self, type=None, o... | andresailer/DIRAC | Core/Workflow/Module.py | Python | gpl-3.0 | 11,204 | [
"DIRAC"
] | 95d1d4fe1dbd7a2a2d707107d45047524c412b2fdae36b9f22b645c8263c6197 |
#!/usr/bin/env python
import sys
from Bio.Blast import NCBIXML
#Usage, opens an outfile and then parses any number of .xml files into that outfile, printing all hits
#parse_blastn.py outfile.txt anynumberofinfiles.xml
OUT = open(sys.argv[1], 'w')
OUT.write("Query Name\tQuery Length\tSubject Name\tSubject Length\tAlig... | cuttlefishh/papers | vibrio-fischeri-transcriptomics/code/python/parse_blast.py | Python | mit | 1,176 | [
"BLAST"
] | eb4f01ded067a3d95297d9cfa96ff7cf71ce6ed3245813cd36e668f5aa9f75f4 |
#-*- coding: utf-8 -*-
#
# test webfs_upload.py
# PV` Created on 26/09/2015.
#
# Bases:
#---------------------------------------------------
# 2006/02 Will Holcomb <wholcomb@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Licen... | vad7/CO2UART | webfs/webfs_upload1.py | Python | unlicense | 5,374 | [
"Brian"
] | 169b0187c36c782bb38b5054c5d063481edfe326eeb04842c5b34826bfd35a89 |
#!/usr/bin/python
# Script: logview.py
# Purpose: plots of LAMMPS log-file thermodynamic data
# Syntax: logview.py gnu/matlab files ...
# gnu/matlab = style of plots to create
# files = one or more log files
# Example: logview.py gnu log.*
# Author: Steve Plimpton (Sandia)
# enable script to run ... | eddiejessup/pizza | scripts/logview.py | Python | gpl-2.0 | 725 | [
"LAMMPS"
] | b052a4a0f2f99d09a3af5ec9ef2824d368d06f16a0b46fb28d47f7df7bc74442 |
from __future__ import print_function
import sys
import os
import tempfile
import subprocess
import random
import string
import glob
import struct
import atexit
import six
import pysam
from six.moves import urllib
from . import cbedtools
from . import settings
from . import filenames
from . import genome_registry
from ... | poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/helpers.py | Python | apache-2.0 | 21,821 | [
"pysam"
] | a689c41a40b144f713827735587dab09fa5c595dd827012fe0ad796fa78dbb00 |
# Copyright 2012 Google Inc.
#
# 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 (at your option) any late... | Shouqun/node-gn | tools/depot_tools/third_party/pylint/checkers/stdlib.py | Python | mit | 6,250 | [
"VisIt"
] | 06a0e553595c110eb3a1989fc9ca5ad9f7c383087882d56b5c1d3271869f039d |
###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | VisTrails/VisTrails | vistrails/packages/vtk/vtk_wrapper/parse.py | Python | bsd-3-clause | 35,333 | [
"VTK"
] | 0c34147acc63788160c2d156092436a3f092f90105545640cd67c8e0e75c1109 |
#!/usr/bin/env python3
from setuptools import setup
from setuptools import Extension
from sys import version_info as vi
installed_version = (vi[0], vi[1])
if installed_version < (3, 0):
raise Exception("The default Python version must be 3.0 or higher, not {0}.{1}".format(vi[0], vi[1]))
USE_CYTHON = ... | rmichie/heatsource-9 | setup.py | Python | gpl-3.0 | 3,217 | [
"Brian"
] | 577054b9d895b1c4e14c6528b751af09de83df3ed273a3e17dbb93072decd292 |
#! /usr/bin/env python
import timeit
import ase
import ase.io
from atomistica import *
###
pots = [ Brenner, BrennerScr, Tersoff, TersoffScr, Rebo2, Rebo2Scr, Rebo2SiCH, Rebo2SiCHScr ]
for pot in pots:
a = ase.io.read('rho_2.9.traj')
a.calc = pot()
t = timeit.timeit('a.get_potential_energy()',
... | Atomistica/atomistica | examples/ASE/time_potentials.py | Python | gpl-2.0 | 425 | [
"ASE"
] | 04571ebb109e5315d2d71bceeb2c10ca635adffcbbef406458ae120d3087b769 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# gpload - load file(s) into Greenplum Database
# Copyright Greenplum 2008
'''gpload [options] -f configuration file
Options:
-h hostname: host to connect to
-p port: port to connect to
-U username: user to connect as
-d database: database to connect to
... | 50wu/gpdb | gpMgmt/bin/gpload.py | Python | apache-2.0 | 112,056 | [
"ADF"
] | 96a61ecf23af382c4170fae3627a30ed757a126cf430662957170b7c8488ce22 |
from forte.core import flog
from forte.solvers.solver import Feature, Solver
from forte.model import MolecularModel
from forte import SCFInfo
class HF(Solver):
"""
A class to run Hartree-Fock computations
"""
def __init__(
self,
input_nodes,
state,
restricted=True,
... | evangelistalab/forte | forte/solvers/hf.py | Python | lgpl-3.0 | 6,269 | [
"Psi4"
] | 6d6e8ab094bb1f3a09105b5c436fda9888bf420d72cb6cbf2e5e574435e79215 |
cast = ['Cleese', 'Palin', 'Jones', 'Idle']
movies = ['The Holy Grail', 1975, 'Terry Jones & Terry Gilliam', 91, ['Graham Chapman', ['Michael Palin', 'John Cleese', 'Terry Gilliam', 'Eric Idle', 'Terry Jones']]]
fav_movies = ['The Holy Grail', 'The Life of Brian']
def print_lol(the_list):
for each_item in the_list:
... | devtronics/Gitme | monty.py | Python | agpl-3.0 | 405 | [
"Brian"
] | 9c2b841b2a4a1e91a07ace979b41f154b9ef60f2724c091e1f85b12f09b54049 |
class ASTVisitor():
def visit(self, astnode):
'A read-only function which looks at a single AST node.'
pass
def return_value(self):
return None
class ASTModVisitor(ASTVisitor):
'''A visitor class that can also construct a new, modified AST.
Two methods are offered: the normal visit() method, which ... | 207leftovers/cs207project | pype/ast.py | Python | mit | 4,473 | [
"VisIt"
] | 9a7e874cc78052fa06af29d926288bb0860f8ed7220404ea3a391f955c84befa |
# Orca
#
# Copyright (C) 2011-2013 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 (... | ruibarreira/linuxtrail | usr/lib/python3/dist-packages/orca/label_inference.py | Python | gpl-3.0 | 20,024 | [
"ORCA"
] | 03894fabcdfcb8742c02522716c2c15c9749b43cfcc7dced1b9bfaa804437ace |
import socket
import webbrowser
import httplib2
import oauth2client.clientsecrets as clientsecrets
from apiclient.discovery import build
from functools import wraps
from oauth2client.client import FlowExchangeError
from oauth2client.client import AccessTokenRefreshError
from oauth2client.client import OAuth2WebServerF... | azumimuo/family-xbmc-addon | script.xbmcbackup/resources/lib/pydrive/auth.py | Python | gpl-2.0 | 15,110 | [
"VisIt"
] | 0dae35d8e0f92b045386d5b51147ec19451c4951d6a2e3da5fb0e34efba300f4 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from numpy import pi, cos, sin, ravel, unravel_index
try:
from scipy.spatial import cKDTree
except ImportError:
print('The kdtree_fast method requires the scipy.spatial module.')
print('Ignore this warning when using the tunnel_fast method.')
__author__ = 'km... | kmunve/APS | aps/util/nc_index_by_coordinate.py | Python | mit | 2,835 | [
"NetCDF"
] | dd9aac4569d1eeb5d6cc23c8f2a88c68a7cfdaaab7115bc5c1c769d957643ada |
# Copyright (C) 2013 by Yanbo Ye (yeyanbo289@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
""" Classes and methods for finding consensus trees.
This module contains a ``_BitString`` clas... | updownlife/multipleK | dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Phylo/Consensus.py | Python | gpl-2.0 | 23,804 | [
"Biopython"
] | 1a4562934f07d59c76ddf9112f80f204587b38fe93fe4c231d10e00c92283fb2 |
bl_info = {
"name": "Caffe Nodes",
"category": "Object",
}
import subprocess
import bpy
from bpy.types import NodeTree, Node, NodeSocket
def calcsize(self, context, axis='x'):
'''NOTE - this function works out the dimensions of an image by the time it has reached a certain layer.
It traverses all the... | Chasvortex/caffe-gui-tool | CGTNodes.py | Python | unlicense | 77,330 | [
"Gaussian",
"NEURON"
] | 44a3dcc5a3f1779c698d846b45d9da1396f14f02901658554e10e9bfd97467de |
import os
import glob
from ConfigParser import ConfigParser
# from distutils.core import setup
from setuptools import setup
from distutils.cmd import Command
from distutils.errors import DistutilsExecError
from distutils.command.sdist import sdist as _sdist
p = ConfigParser()
p.read("metainf.cfg")
PACKAGE = p.get("m... | bzimmer/openroom | setup.py | Python | mit | 2,612 | [
"Brian"
] | 1eea7b5b7e64a6072f2feede70a6d13fa707bdde23bb8194a30b6953176dc632 |
"""
============================================================
Sparse recovery: feature selection for sparse linear models
============================================================
Given a small number of observations, we want to recover which features
of X are relevant to explain y. For this :ref:`sparse linear ... | lucidfrontier45/scikit-learn | examples/linear_model/plot_sparse_recovery.py | Python | bsd-3-clause | 7,344 | [
"Gaussian"
] | e09e888058bbadba39acc1673d29163b98d3a64fb4f58eebf9a16e741e3f880c |
#!/usr/bin/python
#
# dtc_reader.py
#
# Copyright (C) Ben Van Mechelen 2007-2009 <me@benvm.be>
#
# This file is part of Garmon
#
# Garmon 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 ... | bwhitelock/garmon-ng | plugins/dtc_reader/dtc_reader.py | Python | gpl-3.0 | 9,980 | [
"Jaguar"
] | 9cb70a0e3e3dfe1e3d58782ed77fd136685803db124a1159a4ec27abf1cdee4d |
from django.utils.translation import ugettext as _
from sqlagg import SumColumn
from sqlagg.columns import SimpleColumn
from corehq.apps.reports.sqlreport import SqlData, DatabaseColumn
class AncHmisCaseSqlData(SqlData):
table_name = "fluff_AncHmisCaseFluff"
def __init__(self, domain, datespan):
sel... | qedsoftware/commcare-hq | custom/m4change/reports/sql_data.py | Python | bsd-3-clause | 21,543 | [
"VisIt"
] | abf0314eac8290e7d717ca4335dfc10dc22c8bd7c85ba5aa062f06fad733082e |
#!/usr/bin/python
# EPG CPMG simulation code, based off of Matlab scripts from Brian Hargreaves <bah@stanford.edu>
# 2015 Jonathan Tamir <jtamir@eecs.berkeley.edu>
# 2019 Ke Wang <kewang@eecs.berkeley.edu> rewrite it in Pytorch
from __future__ import division
import torch
import torch.backends.cudnn as cudnn
import ... | jtamir/mri-sim-py | epg/epgcpmg_torch.py | Python | mit | 20,962 | [
"Brian"
] | c9d417c0a083a4371554975f447689bae73ef25d5f08b3bc598c1a440fafb385 |
from __future__ import division
import re
# List of tags in VASP sorted by the data type associated with it
VASP_TAG_INT_LIST = ['ialgo','ibrion','icharg','images','ismear','ispin',\
'istart','isym','lorbit','nbands','ndav','ngx','ngxf',\
'ngy','ngyf','ngz','ngzf','npar','ncor... | jbechtel/CASMcode | python/vasp/vasp/io/incar.py | Python | lgpl-2.1 | 8,493 | [
"VASP"
] | fdecd9a6e6d30923049ba9689d6f582fcf41eecd81ded92d33dc4076ba683334 |
#! /usr/bin/env python3
# -*- coding: utf-8; -*-
# very basic 2D plot using vtkXYPlotActor
import vtk
import math
def drange(start, stop, step):
r = start
while r < stop:
yield r
r += step
def genvalues():
# generate a list of tuples
values = []
for x in drange(0.0, 4*math.pi, ... | rboman/progs | sandbox/vtk/patte/testplot2d.py | Python | apache-2.0 | 1,847 | [
"VTK"
] | 1cb5582537fd60989eb29f3c5a3e06c63eaaa06f7d23bbced5d20b377f94d8ff |
# 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... | dims/nova | nova/hacking/checks.py | Python | apache-2.0 | 26,556 | [
"VisIt"
] | 106c187c471bca5e8c2c699c84c0a864ca2ed4ce31edf76b535ca945538fb0dc |
#!/usr/bin/python
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License, Version 2.0 (the "License"... | sparkslabs/kamaelia | Sketches/MPS/BugReports/FixTests/Axon/Axon/util.py | Python | apache-2.0 | 3,530 | [
"MOE"
] | df9791ce11af27060472fac9a8faf3a57afd5b0677a9ddb99f4b51770c789357 |
#
# 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... | pkreissl/espresso | testsuite/python/dipolar_p3m.py | Python | gpl-3.0 | 6,393 | [
"ESPResSo"
] | 5fe761ef5372cc2fc45a79814a6dd546c6c9e97c8183f7284ced72b9221912e7 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import os
import numpy as np
from pymatgen.core.sites import PeriodicSite
from pymatgen.io.vasp.inputs import Poscar
from pymatgen.io.vasp.ou... | matk86/pymatgen | pymatgen/symmetry/tests/test_analyzer.py | Python | mit | 27,586 | [
"VASP",
"pymatgen"
] | 7ce9a4d2f09abfe2c5d1d38c8f612ea02a8a647f811fe6b101e0850e3610ae6b |
# S. Ponce: Ziman formula for resistivity of Pb.
# Script to compute the resistivity
import numpy as np
import matplotlib.pyplot as P
from numpy.linalg import inv
from scipy.interpolate import spline
from pylab import *
import matplotlib.ticker as ticker
from scipy.optimize import curve_fit
# Constants
kelvin2eV= 8.... | mmdg-oxford/papers | Ponce-CPC-2016/Pb/resistivity.py | Python | gpl-3.0 | 3,086 | [
"Gaussian"
] | 9b5dcdc9aa931766f7b6fb864ba98db555a93fd56822fb120dce642f43b742e9 |
import sys
import subprocess
from .exceptions import PyperclipException
EXCEPT_MSG = """
Pyperclip could not find a copy/paste mechanism for your system.
For more information, please visit https://pyperclip.readthedocs.org """
PY2 = sys.version_info[0] == 2
text_type = str if PY2 else str
def init... | tvaddonsco/tva-release-repo | matrix/plugin.video.realizerx/resources/lib/modules/pyperclip/clipboards.py | Python | gpl-3.0 | 3,970 | [
"VisIt"
] | e7fa11b5e8e6791bda67881ce18f4d590c89dd747fec4a6df57b2f3082d726d6 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Geant4(CMakePackage):
"""Geant4 is a toolkit for the simulation of the passage of particle... | LLNL/spack | var/spack/repos/builtin/packages/geant4/package.py | Python | lgpl-2.1 | 9,334 | [
"VTK"
] | f13d9191a1090a9612cae984cdde24e0bf2d469f0f9b1809168925b772723633 |
import logging
import os
import multiprocessing
import traceback
import argparse
import sys
import time
import json
import base64
from functools import partial
import pybedtools
import pysam
from defaults import ISIZE_MEAN, ISIZE_SD, GT_WINDOW, GT_NORMAL_FRAC
GT_HET = "0/1"
GT_HOM = "1/1"
GT_REF = "0/0"
GT_UNK = "./.... | chapmanb/metasv | metasv/genotype.py | Python | bsd-2-clause | 9,805 | [
"pysam"
] | 48da4376d50eaa423ba4b870616b0a6d4786f772f725049af4cdbcbd86c79792 |
# coding=utf-8
# Copyright 2022 Google LLC.
#
# 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 ... | google-research/ott | tests/core/sinkhorn_bures_test.py | Python | apache-2.0 | 3,043 | [
"Gaussian"
] | 54380e76224c5c1b3c167cbdfeb210a87dd5970b729a3d693ade1fdd3d365fa6 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | thica/ORCA-Remote | src/ORCA/settings/setttingtypes/Base.py | Python | gpl-3.0 | 3,399 | [
"ORCA"
] | 78eec143bbc0d8599a2025957c2eda7ae07eb53c03643e33dcd1c573a823b631 |
'''
Classes to wrap up common tasks e.g., 'run a search, visit the urls, add content', or 'remove flagged content'
Class to employ one or more searchers and add returned urls to the database. This is intended to be generic.
The __init__ method to SearchAndAdd is passed an instance of the search module's main search... | pbarton666/buzz_bot | djangoproj/PES_web_site/trunk/djangoproj/djangoapp/crawler/b_taskWrappers.py | Python | mit | 21,979 | [
"VisIt"
] | 5c022c0a22fe74f54baf5974d20681d99fa3870bbcdc1724becf96f2ee512a55 |
# Copyright 2016 Brian Innes
#
# 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, ... | brianinnes/pycupi | python/test6.py | Python | apache-2.0 | 1,892 | [
"Brian"
] | 224866a0bb7ee9621d020bc121109ba49c370c321bebff974ae8e7e13c7a4325 |
# Copyright (c) 2016, NVIDIA Corporation
# 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
# notice, this list of c... | annafeit/web_labeling | config.py | Python | bsd-3-clause | 11,252 | [
"Gaussian"
] | c858ab497513ba906cdd8bb4c7ac50797a1bfad50fffd9cc650089f3f55f62f0 |
from numpy import sqrt, array, ones, zeros, dot, sign, float64, hstack, vstack, random, std
from numpy.random import uniform as unf
from numpy.random import random_integers, rand, randint, shuffle
from numpy.linalg import norm
import sys
from collections import defaultdict, Counter
from experiments import *
from class... | Kaushikpatnaik/Active-Learning-and-Best-Response-Dynamics | game_theory.py | Python | mit | 23,574 | [
"Gaussian"
] | 3c79d61fc75090dd6fd36d42115b3f11c201158330c014dd55f7fc559e7bc630 |
import h5py
import numpy as np
from mayavi import mlab
def plot_whole_mesh_mayavi(hdf5_fname, vsc=1.0):
"""
"""
f5 = h5py.File(hdf5_fname, 'r')
#
#
msh = f5['slab/top'][:]
#
# plot upper mesh
plot_mesh_mayavi(msh, vsc)
#
#
for idx, key in enumerate(f5['inslab']):
... | GEMScienceTools/oq-subduction | openquake/sub/slab/utils_plot.py | Python | agpl-3.0 | 1,182 | [
"Mayavi"
] | f89d1b9c1ffe8c6301fbd64398966e949e9c1b7761aa89d36c3230edfd7e8b83 |
## Copyright (C) 2016
## Written by Travis Thieme <tthieme@hawaii.edu>
## University of Hawai`i at Hilo
##
## 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
... | tthieme/Akamai2016 | Star_Model/star_model.py | Python | gpl-3.0 | 27,235 | [
"Mayavi"
] | 1a12f801495706010ed798d4190bb7c5906e8b954ae6c13f7cf8c5959b58d4b4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
#
# Copyright (C) 2017 Lenovo, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | caphrim007/ansible | lib/ansible/modules/network/cnos/cnos_rollback.py | Python | gpl-3.0 | 11,943 | [
"VisIt"
] | ffea358812c347ac34ad6e826e1ad7fc7e365a2a774e4f81640e6be5742eea6e |
# 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... | weiting-chen/manila | manila/hacking/checks.py | Python | apache-2.0 | 8,771 | [
"VisIt"
] | b53ca0916c7e758e6959975d13b9fd77d42e22267e3b26b14d554bf11e368692 |
# -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2016 CERN.
#
# INSPIRE 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... | jacenkow/inspire-next | tests/integration/workflows/test_arxiv_workflow.py | Python | gpl-2.0 | 11,780 | [
"Galaxy"
] | 6d05581467e904018563443082838bb22d38b86cdcb3f760c6f0377a4a0c5618 |
# -*- coding: utf-8 -*-
# Copyright (C) 2012, Almar Klein, Ant1, Marius van Voorden
#
# This code is subject to the (new) BSD license:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of s... | PennyQ/stero_3D_dust_map | 360-sphere-photo/make_anaglyph/images2gif.py | Python | gpl-3.0 | 36,970 | [
"NEURON"
] | 6e1edcfa3392230ee5c1dec4b5a8721db2c474d4101d73590b73c42469b8468e |
from copy import deepcopy
import numpy as np
from mpi4py import MPI
from scipy import special
from scipy.constants import physical_constants
from sirius.coefficient_array import CoefficientArray, diag, inner, threaded
kb = (
physical_constants["Boltzmann constant in eV/K"][0]
/ physical_constants["Hartree en... | electronic-structure/sirius | python_module/sirius/edft/smearing.py | Python | bsd-2-clause | 13,660 | [
"DIRAC",
"Gaussian"
] | 3d36daa0b41ce7444b303d0087495d7efe5b74e49e47c35b5eaac9eb2654f4fa |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import numpy as np
import unittest
from pymatgen.analysis.eos import EOS, NumericalEOS
from pymatgen.util.testing import PymatgenTest
class EOSTest(PymatgenTest):
def setUp(self):
# Si data fro... | tschaume/pymatgen | pymatgen/analysis/tests/test_eos.py | Python | mit | 14,339 | [
"pymatgen"
] | a239424060ba50dd2f047c2b701108dc661e1e309e7e580f6b678f55c5983de2 |
from pyopenscad import *
from math import *
def main():
# Height of the crystal
z_dim = 0
# Max height of crystal (# vertical circles)
max_height = 3
# Offset counter for the crystal
offset = 0
# Holds the overall object
objList = []
# Build the base but change the he... | jaredpetersen/wou | CS314/Lab2/crystal.py | Python | mit | 1,515 | [
"CRYSTAL"
] | d7ead2e66588ff7c32bfabac3297818554f7cb523cfeb022cf6e8fa658969e4d |
#!/usr/bin/env python
'''
GAEUnit: Google App Engine Unit Test Framework
Usage:
1. Put gaeunit.py into your application directory. Modify 'app.yaml' by
adding the following mapping below the 'handlers:' section:
- url: /test.*
script: gaeunit.py
2. Write your own test cases by extending unittest.TestCas... | gabriel/shrub | test/lib/gaeunit/gaeunit.py | Python | mit | 16,795 | [
"VisIt"
] | 5b389a6aadc7844f3ddc85e776bed4b6dc13afaa519a3945baa79ca484cbe717 |
"""
Provides classes that represent complete taxonomies, built using components from
the taxacomponents module.
"""
from taxacomponents import Citation, RankTable, Taxon
from taxonvisitor import TaxonVisitor
from taxonvisitors_concrete import PrintTaxonVisitor, CSVTaxonVisitor
from nameresolve import CoLNamesResolver... | stuckyb/sqlite_taxonomy | utilities/taxolib/taxonomy.py | Python | gpl-3.0 | 15,593 | [
"VisIt"
] | 643c273d0bfe1ba83ef75f7f1e958bc6cfca248ac468bf8635105c19ad8d12ff |
#!/usr/bin/env python
from __future__ import division, print_function #, unicode_literals
import sys
import os
import time
import shutil
import textwrap
import platform
import tarfile
import re
import warnings
from socket import gethostname
from subprocess import Popen, PIPE
# Handle py2, py3k differences.
py2 = sys... | SamKChang/abinit-7.10.5_multipole | tests/pymods/testsuite.py | Python | gpl-3.0 | 121,738 | [
"ABINIT"
] | a495c773acf21190cb2e1e94fa94132625c309a2ed33a186ac2c4315e4555b77 |
"""
Display a per face receptor density on a body surface modeled as
irregular dataset (vertices & triangular faces) - the receptor sheet
Display stimulation variables across the sensory receptor elements
modulated in time, controlled by a set of buttons
Pick a particular receptor and select/highlight downstream sens... | unidesigner/microcircuit | doc/examples/receptor.py | Python | bsd-3-clause | 821 | [
"NEURON"
] | 2931461fc03a3e6011fbb9632ff425fd79a40459a4b2db947cf70df7b7ac4910 |
"""Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
from .. import data_dir
from ..io import imread, use_plugin
from .._shared._warnings import expected_warnings
from ._binary_blobs import binary_blobs
from .. import img_as_bool
__all__ = ['load',
... | ofgulban/scikit-image | skimage/data/__init__.py | Python | bsd-3-clause | 6,497 | [
"ESPResSo"
] | 08a13e769f69e86ecd0ec7052dd053050cacbb0710003df0dbbc98b50963f7bb |
import os
import sys
import inspect
from time import time
from copy import deepcopy
import numpy as np
from ase import Atoms
from ase.io import read, write
from flare.utils.learner import get_max_cutoff
class FLARE_Atoms(Atoms):
"""
The `FLARE_Atoms` class is a child class of ASE `Atoms`,
which has compl... | mir-group/flare | flare/ase/atoms.py | Python | mit | 2,449 | [
"ASE"
] | 7461672c4f3991dd9ee9d005250019d6df07e1bfba03dbefd1bf3ed91d857cd2 |
# Orca
#
# Copyright 2005-2009 Sun Microsystems Inc.
# Copyright 2010-2013 The Orca Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your... | pvagner/orca | src/orca/structural_navigation.py | Python | lgpl-2.1 | 119,643 | [
"ORCA"
] | fa5fa5c7669593bed4c07f3033fccf33819e85e05227fd227bd4eeed2195aa5a |
tutorial_tests = """
Let's try a simple generator:
>>> def f():
... yield 1
... yield 2
>>> for i in f():
... print i
1
2
>>> g = f()
>>> g.next()
1
>>> g.next()
2
"Falling off the end" stops the generator:
>>> g.next()
Traceback (most recent call la... | jedie/pypyjs-standalone | website/js/pypy.js-0.3.0/lib/modules/test/test_generators.py | Python | mit | 50,985 | [
"VisIt"
] | a4ca60ea1e759d77973514174ab0fe8369c0faef9369b20bc990e8b02ccf8efc |
# This file is part of Checkbox.
#
# Copyright 2012 Canonical Ltd.
# Written by:
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
#
# Checkbox 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 versio... | zyga/plainbox | plainbox/impl/test_depmgr.py | Python | gpl-3.0 | 10,748 | [
"VisIt"
] | 4f730ee2d378b837830ae2b77d617e7382334fec3e50f09bb6e7b30ddf5856db |
# -*- coding: utf-8 -*-
"""
sphinx.cmdline
~~~~~~~~~~~~~~
sphinx-build command-line handling.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import print_function
import sys
import optparse
import traceback
from os impo... | neerajvashistha/pa-dude | lib/python2.7/site-packages/sphinx/cmdline.py | Python | mit | 11,788 | [
"VisIt"
] | 62c09af83dcb905068162ff2828b51b74b4dfb628f62997e9886fc384961c6f4 |
"""Module defining ``Eigensolver`` classes."""
import numpy as np
from gpaw.utilities.blas import axpy, rk, r2k, gemm
from gpaw.utilities.lapack import diagonalize, general_diagonalize
from gpaw.utilities import unpack
from gpaw.eigensolvers.eigensolver import Eigensolver
class Davidson(Eigensolver):
"""Simple... | qsnake/gpaw | gpaw/eigensolvers/davidson.py | Python | gpl-3.0 | 6,380 | [
"GPAW"
] | 8cf32b6f7bdfb4f16efc2e8693a1632d1343cd26784e020be3d6b90e316e316f |
#!/usr/bin/env python3
"""
Template by pypi-mobans
"""
import os
import sys
import codecs
import locale
import platform
from shutil import rmtree
from setuptools import Command, setup, find_packages
PY2 = sys.version_info[0] == 2
PY26 = PY2 and sys.version_info[1] < 7
PY33 = sys.version_info < (3, 4)
# Work around... | chfw/pyexcel | setup.py | Python | bsd-3-clause | 5,614 | [
"VisIt"
] | 30339fe3c47066a593292413d33c5209f3c92bf72b25b2b89780450f5bdcf944 |
# Copyright (C) 2014,2015 Nippon Telegraph and Telephone Corporation.
#
# 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 ... | j-kato/gobgp | tools/pyang_plugins/bgpyang2golang.py | Python | apache-2.0 | 26,619 | [
"VisIt"
] | 8d853b691a0d53b8c4a374db5b9d3c482b5182d288a3afcaf8b9ab24be0a62e1 |
tests = [("python", "SimilarityPickers.py", {}), ]
longTests = []
if __name__ == '__main__':
import sys
from rdkit import TestRunner
failed, tests = TestRunner.RunScript('test_list.py', 0, 1)
sys.exit(len(failed))
| greglandrum/rdkit | rdkit/SimDivFilters/test_list.py | Python | bsd-3-clause | 224 | [
"RDKit"
] | 4ee5b64ceb2e19bffb55d5f608fbd710f07e2c56944ae7ed929cc1b4d86ab2f7 |
'''
Neuromuscular simulator in Python.
Copyright (C) 2018 Renato Naville Watanabe
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
any late... | rnwatanabe/projectPR | MotorUnitNoChannel.py | Python | gpl-3.0 | 22,823 | [
"NEURON"
] | fb71ae5bf38001d421cf310cc2098ddc19d0719d6ea819d13c7e832ee87fd22d |
# Copyright 2014 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.
"""WebsiteTest testing class."""
import logging
import time
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common... | mou4e/zirconium | components/test/data/password_manager/automated_tests/websitetest.py | Python | bsd-3-clause | 12,787 | [
"VisIt"
] | 092946f1bcd39392710f9b528f1a5ff04da1c7aae073ba652b2777017825b5ce |
# -*- 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_leaflet.py | Python | gpl-2.0 | 3,088 | [
"MDAnalysis"
] | eb54bb094f3282547dc696d3e2e7004e26f6adc2cfa0036b3d27b008fc44ee13 |
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and University of
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., Universit... | jonasfoe/COPASI | copasi/bindings/python/unittests/Test_CEvent.py | Python | artistic-2.0 | 2,626 | [
"COPASI"
] | d72f18ea32cc3ca2b4760bdf9fbfbf8f4cdef264ad943c41e914ddf1e3274bd6 |
## INFO ########################################################################
## ##
## plastey ##
## ======= ... | kitchenbudapest/vr | const.py | Python | gpl-3.0 | 7,516 | [
"VisIt"
] | 37df413db70c41ae5b032f4df37e56f89b3ae64bd4853b0a0189b0056002ea71 |
# Copyright 2010 Hakan Kjellerstrand hakank@bonetmail.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/licenses/LICENSE-2.0
#
# Unless required by applicable ... | linsicai/or-tools | examples/python/mr_smith.py | Python | apache-2.0 | 3,363 | [
"VisIt"
] | eccefe58a16929e96a61e07a269982b79b2fc27c7e344661e20c2fb789a34ca9 |
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Classes corresponding to phyloXML elements.
See Also
--------
Official specification... | updownlife/multipleK | dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Phylo/PhyloXML.py | Python | gpl-2.0 | 45,819 | [
"Biopython"
] | ef723b26c783f9e37f0b43f49f20224bf4eba261ec0fba1aced372c4a48f4ab1 |
"""
===================
Canny edge detector
===================
The Canny filter is a multi-stage edge detector. It uses a filter based on the
derivative of a Gaussian in order to compute the intensity of the gradients.The
Gaussian reduces the effect of noise present in the image. Then, potential
edges are thinned dow... | michaelpacer/scikit-image | doc/examples/plot_canny.py | Python | bsd-3-clause | 1,633 | [
"Gaussian"
] | e04ae8833be2f50d2b8acb28424a569f8128942323f47273acad5257a0640a4f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.