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
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import os, subprocess import dialog from io import BytesIO from zeroinstall import _ from zeroinstall.injector import model, selections, qdom from gui import gobject XMLNS_0COMPILE = 'http://zero-install.sourceforg...
slovenwd/0install
zeroinstall/0launch-gui/compile.py
Python
lgpl-2.1
3,264
[ "VisIt" ]
99211d9da3dfa1738754216210f5bc175a86ed7dff4934b2c1a29c63590bc183
import cv2 import numpy as np import sys import argparse from os.path import splitext from os import listdir, makedirs, rename #cv2.CV_64F, cv2.CV_8UC3 color_mode=cv2.CV_8UC1 #8UC1 def none(img, *args): return img def avg(img,x): return cv2.blur(img,(x,x)) def gaussian(img,x): return cv2.GaussianBlur(im...
OAkyildiz/dataset_tools
bitmask_tool.py
Python
mit
13,414
[ "Gaussian" ]
5f9251cf4ddbbe2f4494e27888951acb54496743e0fb0001d59d4bbd1055f5fb
# coding: utf-8 """ This module provides objects for extracting timing data from the ABINIT output files It also provides tools to analye and to visualize the parallel efficiency. """ from __future__ import unicode_literals, division import sys import collections import numpy as np from six.moves import zip from mon...
rousseab/pymatgen
pymatgen/io/abinitio/abitimer.py
Python
mit
24,590
[ "ABINIT", "pymatgen" ]
16d23032a0fe29c4c7d42acf6f62f71dc3cc07c42ba6bbdb79a0aa37c7ecddae
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2014--, tax-credit development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ---------------------...
BenKaehler/short-read-tax-assignment
setup.py
Python
bsd-3-clause
926
[ "scikit-bio" ]
8e996870218706d8f8e76fb0c2ec62a707976eda96c26dbfe281e73391c40a6c
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageSobel3D(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.v...
nagyistoce/devide
modules/vtk_basic/vtkImageSobel3D.py
Python
bsd-3-clause
487
[ "VTK" ]
9f6429a461ccf08169a60e6b879f3de08e1a52417ad32f4dd0354a6cdc85f380
# pylint: disable=C0111 # pylint: disable=W0621 import urllib from lettuce import world from django.contrib.auth.models import User, Group from student.models import CourseEnrollment from xmodule.modulestore.django import modulestore from xmodule.modulestore import ModuleStoreEnum from xmodule.contentstore.django impo...
wwj718/murp-edx
common/djangoapps/terrain/course_helpers.py
Python
agpl-3.0
2,532
[ "VisIt" ]
789ff6860f87b32c1b9981eca0bc4e02709f9df1d3a84a74cb7af3cbef7fed7f
from math import radians, sin, cos from ase import Atom, Atoms from ase.neb import NEB from ase.constraints import FixAtoms from ase.calculators.emt import EMT from ase.optimize import QuasiNewton, BFGS from ase.visualize import view # http://jcp.aip.org/resource/1/jcpsa6/v97/i10/p7507_s1 doo = 2.74 doht = 0.957 doh ...
suttond/MODOI
ase/test/emt_h3o2m.py
Python
lgpl-3.0
2,096
[ "ASE" ]
1921e00156d7b40d5fb2d562ef6381e1b5e7dadbe12389a412cd69f637184451
# -*- coding: iso-8859-1 -*- '''Module containing and processing all orbkit options.''' lgpl = '''ORBKIT Gunter Hermann, Vincent Pohl, Lukas Eugen Marsoner Steinkasserer, Axel Schild, and Jean Christophe Tremblay Institut fuer Chemie und Biochemie, Freie Universitaet Berlin, 14195 Berlin, Germany This file is part o...
orbkit/orbkit
orbkit/options.py
Python
lgpl-3.0
22,643
[ "GAMESS", "Gaussian", "Mayavi", "Molpro", "VMD", "cclib" ]
d27ca159645f79e5db15972d2de142b30c5a07f610c57c29921fe1da1ed6e07a
"""Tests against live services. *** SKIPPED BY DEFAULT *** These tests won't normally be run, as part of the main test suite but are run by our hudson instance to tell us should Yahoo's API change in some way that will break python-yql. Note to end-users: These tests are dependent on defining a secrets file with API...
allanice001/RJ45
lib/yql/tests/test_live_services.py
Python
gpl-2.0
5,705
[ "VisIt" ]
c2a9225e8250f1a37c2e7d19436a37e1d0de9af491bd1ba06353de23f666446b
#!/usr/bin/python # (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # most of it copied from AWX's scan_packages module from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': ...
le9i0nx/ansible
lib/ansible/modules/packaging/os/package_facts.py
Python
gpl-3.0
7,114
[ "Brian" ]
142663de42f65089ac7ad6397a05261b303917832f9456403fc40bb7d2144c95
# 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 ...
tianzhihen/python-mode
pymode/libs/pylama/lint/pylama_pylint/pylint/checkers/exceptions.py
Python
lgpl-3.0
13,754
[ "VisIt" ]
cefe7b78873eb3ede25fc829429b70f16b23a6628446891da883589d9e36ee91
# Authors: John Dennis <jdennis@redhat.com> # # Copyright (C) 2011 Red Hat # see file 'COPYING' for use and warranty information # # 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...
hatchetation/freeipa
ipapython/log_manager.py
Python
gpl-3.0
62,297
[ "VisIt" ]
919424895f3f922965d04c3f647bd5377a08e6ba895fa143cea0d06770143c92
import ast from viper.exceptions import ( InvalidLiteralException, NonPayableViolationException, StructureException, TypeMismatchException, VariableDeclarationException, ) from viper.function_signature import ( FunctionSignature, VariableRecord, ) from viper.signatures.event_signature impor...
NedYork/viper
viper/parser/parser.py
Python
mit
52,311
[ "VisIt" ]
1ca32c163a6f1984a105a3abe54de8518f106918bf14b0f427a5c0561895ef6a
""" :Author: Engelbert Gruber :Contact: grubert@users.sourceforge.net :Revision: $Revision: 21817 $ :Date: $Date: 2005-07-21 22:39:57 +0200 (Thu, 21 Jul 2005) $ :Copyright: This module has been placed in the public domain. LaTeX2e document tree Writer. """ __docformat__ = 'reStructuredText' # code contributions from...
baoboa/Crystal-Space
docs/support/docutils/writers/latex2e.py
Python
lgpl-2.1
75,964
[ "VisIt" ]
70c025f691c8bf8a99c346ba32ad346ccf5e8198aef28c51e77204e29f874432
#!/usr/bin/env python ## ## See COPYING file distributed along with the ncanda-data-integration package ## for the copyright and license terms ## """ ncanda_quality_control_script ====================== This script checks the quality of the data for the NCANDA Project on REDCap. Call script on command line. Example ...
sibis-platform/ncanda-data-integration
scripts/reporting/ncanda_quality_control_script.py
Python
bsd-3-clause
14,366
[ "VisIt" ]
62a3534360b32b301d90693dfc7129136556c2d6ab33025d35044a58adf3790f
# Copyright (C) 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 versio...
espressomd/espresso
testsuite/scripts/samples/test_dpd.py
Python
gpl-3.0
1,207
[ "ESPResSo" ]
871872ce131487534a74fd5d0f224537d9531d064c312999d21350c368be8b74
''' This script performs a grid search for the current parameters that best match the data from Hausser and Clark (1997) ''' import datetime import os import gc import multiprocessing import itertools from brian import * import sys sys.path.append('../../') from MLI_PKJ_net import * import cPickle import time set_globa...
blennon/MLI_PKJ_net
MLI_PKJ_net/parameter_search/MLI_gamma_current_param_sweep.py
Python
mit
2,101
[ "Brian" ]
2a33f0b2509508ccecbb0c8b002a630f72cf2d66942bf70ce5ba95baaf507736
""" SALTS XBMC Addon Copyright (C) 2014 tknorris 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 your option) any later version. T...
JamesLinEngineer/RKMC
addons/plugin.video.salts/scrapers/2ddl_scraper.py
Python
gpl-2.0
8,509
[ "ADF" ]
b57d1a58c8309e74cf46d7d7696453ee63a0d9bf1b84a9e64fd5cc8ad1538e33
#!/usr/bin/env python # -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2014 Siyuan Ren (netheril96@gmail.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restr...
vitalyisaev2/autojsoncxx
autojsoncxx.py
Python
mit
19,692
[ "VisIt" ]
2b15add52f63865d9a6f94198c4665ab6d55ec6da6e4b62147fb40fb095a7eaf
# $Id$ # # Copyright (C) 2001-2011 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ SMARTS definitions ...
strets123/rdkit
rdkit/Chem/MACCSkeys.py
Python
bsd-3-clause
11,266
[ "RDKit" ]
55b48989f78c99c587695cd1e9f6467bd744d644ede44285b79094175bd12bbd
#!/usr/bin/env python # QAPI texi generator # # This work is licensed under the terms of the GNU LGPL, version 2+. # See the COPYING file in the top-level directory. """This script produces the documentation of a qapi schema in texinfo format""" from __future__ import print_function import re import qapi.common MSG_F...
marioli/qemu
scripts/qapi/doc.py
Python
gpl-2.0
9,156
[ "VisIt" ]
538f37701d9463d5da52f9b08ebe04ba40e07c87556bc123fa10075623ddf668
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought Inc. # License: BSD Style. import unittest from pkg_resources import resource_filename from traits.api import Str, Int, Bool from apptools.preferences.api import set_default_preferences from apptools.preferences.api impo...
dmsurti/mayavi
mayavi/tests/test_preferences_mirror.py
Python
bsd-3-clause
2,899
[ "Mayavi" ]
7ef9dad00b7a1728ffd3b2f687d1c5115ed88ec380ce3293a8341ec25cfff42f
<<<<<<< HEAD <<<<<<< HEAD # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import gyp import gyp.common import gyp.msvs_emulation import json import sys generator_supports_multiple_t...
ArcherSys/ArcherSys
node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py
Python
mit
8,444
[ "VisIt" ]
a702b60ec96a88a2f8dbd514e33559eb121a0b82f54b2b499a150c1a2579327c
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPispino(PythonPackage): """PISPINO (PIpits SPIN-Off tools).""" homepage = "https://...
rspavel/spack
var/spack/repos/builtin/packages/py-pispino/package.py
Python
lgpl-2.1
732
[ "Bioconda" ]
f0b80004b9472b8828280ab20d5f3c781ce61364dcc4ca08aa6792540de5983d
""" NetCDF reader/writer module. This module implements the Scientific.IO.NetCDF API to read and create NetCDF files. The same API is also used in the PyNIO and pynetcdf modules, allowing these modules to be used interchangebly when working with NetCDF files. The major advantage of ``scipy.io.netcdf`` over other modu...
grhawk/ASE
tools/ase/io/pupynere.py
Python
gpl-2.0
21,220
[ "NetCDF" ]
b3b9e7080b68124736ebda9af659fd7efd4067ab1af88f093a34343b551bf646
#-*- coding:Utf-8 -*- """ .. currentmodule:: pylayers.antprop.antenna This module handles antennas An antenna can be loaded from various file formats among + .vsh2 + .vsh3 + .sh2 + .sh3 + .mat + .trx Antenna derives from Pattern Examples -------- .. plot:: :include-source: >>> import matplotlib.pyplot a...
buguen/pylayers
pylayers/antprop/antenna.py
Python
lgpl-3.0
170,791
[ "Gaussian", "Mayavi" ]
e86422456c6ced663881ed6a56ace61e077bbf3655a6c3906aae410005e37b23
''' PMDL Export Blender Addon By Jack Andersen <jackoalan@gmail.com> This file defines the `pmdl_draw_general` class to generate vertex+index buffers and mesh arrays to draw them. `PAR1` files also include bone-weight coefficients per-vertex for vertex-shader-driven skeletal evaluation. ''' import struct import bpy ...
jackoalan/PSPL
Extensions/PMDLFormat/Blender/io_pmdl_export/pmdl_draw_general.py
Python
mit
16,891
[ "VisIt" ]
6ff8abb8d2e722f9afca00298cdb31d919f6383aef56dc7e9b77a0a6d868eaa5
from distutils.core import setup setup( name='Glider Singleton Publishing Service NetCDF Subscriber', version='1.0', author='Michael Lindemuth', author_email='mlindemu@usf.edu', packages=['gsps_netcdf_subscriber'], scripts=[ 'gsps_netcdf_subscriber/gsps_netcdf_sub.py' ] )
USF-COT/gsps_netcdf_subscriber
setup.py
Python
mit
310
[ "NetCDF" ]
e4bade8ca536782e12b8310907a50ed495e9426ad9fa20f9202d39beee638afa
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # 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) # # Released under t...
kain88-de/mdanalysis
package/MDAnalysis/topology/DMSParser.py
Python
gpl-2.0
6,420
[ "MDAnalysis" ]
f3f5166ca0ffa34e14c27a8eed9883b90056fbee204616ae08b1bf248df91cf0
"""Contains Timing and Timer classes""" # timing.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging import time class Timing(object): """...
jabdoa2/mpf
mpf/system/timing.py
Python
mit
6,667
[ "Brian" ]
bd129bbf8f297ec41f7c265deafe6a60f8cd7fc9212c5798460a2d133ff742a6
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Miscellaneous algorithms Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname(os.path.realpath(__file__)) >>> datadir = os.path.realpath(...
sgiavasis/nipype
nipype/algorithms/misc.py
Python
bsd-3-clause
51,523
[ "Gaussian" ]
744b12e64c1accfa78461ad12cfc95c50fddbc2b256f966110971459d2660ca0
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function import io import re from glob import glob from os.path import basename from os.path import dirname from os.path import join from os.path import splitext from setuptools import find_packages from setuptools import se...
glaunay/pyproteins
setup.py
Python
gpl-3.0
1,434
[ "Biopython" ]
2d5349b40f6a44d74db3e85f8f6ce9ba0419970c61d8f46b25a9eb47d9a880c4
from sys import stdout import simtk.openmm as mm import simtk.openmm.app as app from simtk import unit as u pdb = app.PDBFile("/home/kyleb/src/openmm/openmm/wrappers/python/simtk/openmm/app/data/tip3p.pdb") forcefield = app.ForceField('iamoeba.xml') system = forcefield.createSystem(pdb.topology, nonbondedMethod=app.P...
kyleabeauchamp/HMCNotes
code/old/build_iamoeba_box.py
Python
gpl-2.0
1,177
[ "OpenMM" ]
d88c6f2eeb12b581fcd3a6a95d321c92f95bf27eec353afabcd46ad96760307e
""" Convenience routines for performing common operations. @since: 0.28 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import os, sys from zeroinstall import support, SafeException, logger from zeroinstall.support import...
timdiels/0install
zeroinstall/helpers.py
Python
lgpl-2.1
7,229
[ "VisIt" ]
fdb94b4aca660b7c6843aada12c23cfd5d6f516ad94fd7773df1fcec7a1c2609
#!/usr/bin/env python # Copyright 2017-2021 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/pbc/cc/kccsd_t_rhf.py
Python
apache-2.0
28,756
[ "PySCF" ]
f4084bf84c601ec0955b31a1067b328d91279f17d811fe352d215fd874589d1a
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-14 19:13:49 by Brian McFee <brian.mcfee@nyu.edu> '''Unit tests for time and frequency conversion''' import warnings import os try: os.environ.pop('LIBROSA_CACHE_DIR') except KeyError: pass import librosa import numpy as np from nose.tools impor...
r9y9/librosa
tests/test_time_frequency.py
Python
isc
10,703
[ "Brian" ]
518aa611f278962e81795b89ff1d74ace8030db5b2839db3a9142fab80e42f3a
""" Gaussian expansion of distances """ import numpy as np import tensorflow as tf from tensorflow.keras.layers import Layer class GaussianExpansion(Layer): """ Simple Gaussian expansion. A vector of distance [d1, d2, d3, ..., dn] is expanded to a matrix of shape [n, m], where m is the number of Gauss...
materialsvirtuallab/megnet
megnet/layers/featurizer/_gaussian_expansion.py
Python
bsd-3-clause
1,686
[ "Gaussian" ]
ef27d1fcba6670e77af4cb091e0251d1a2c6919e1fd609a5276e78114be8acb7
from __future__ import with_statement import imp import inspect import os import sys from attest import ast, statistics from attest.codegen import to_source, SourceGenerator __all__ = ['COMPILES_AST', 'ExpressionEvaluator', 'TestFailure', 'assert_hook', 'AssertTra...
dag/attest
attest/hook.py
Python
bsd-2-clause
9,729
[ "VisIt" ]
07157ca0d6cb2bd7a81f2587476859dc1b81167054cb403cc355dfec2bcac985
""" This examples shows how many lines can be grouped together in a single object, for convenience and efficiency. We want to plot a large number of lines. We could use mlab.plot3d for this, but it will create an object for each line, this will be inefficient. This example shows how to create one object comprised of m...
dmsurti/mayavi
examples/mayavi/mlab/plotting_many_lines.py
Python
bsd-3-clause
2,777
[ "Mayavi" ]
08f2a52ecde61f8a6fe49e4e537ace47444e5299b62059c15daf3c1c7528906d
__all__ = ['resample_image', 'resample_image_to_target'] import os from ..core import ants_image as iio from .. import utils def resample_image(image, resample_params, use_voxels=False, interp_type=1): """ Resample image by spacing or number of voxels with various interpolators. Works wit...
ANTsX/ANTsPy
ants/registration/resample_image.py
Python
apache-2.0
5,955
[ "Gaussian" ]
20355fdd249363f307cd9f708423f3f9886eea7fc23565a64696ede45a1fece1
# (C) British Crown Copyright 2010 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
Jozhogg/iris
lib/iris/tests/test_cf.py
Python
lgpl-3.0
14,692
[ "NetCDF" ]
bd1c2e525488234796fc18e42d6762630126702f581624e0ffb63e6de2b7f62b
''' Created on Jun 2, 2011 @author: mkiyer ''' import sys import logging import argparse import pysam # local imports from chimerascan.lib import config def sam_to_bam(input_sam_file, output_bam_file): samfh = pysam.Samfile(input_sam_file, "r") bamfh = pysam.Samfile(output_bam_file, "wb", template=samfh) ...
tectronics/chimerascan
chimerascan/pipeline/sam_to_bam.py
Python
gpl-3.0
937
[ "pysam" ]
9d62dd0a45f8bfe34dc857697a22187f0f0bda1ed175130f5973ece93d629238
"""Visit and parse objdump.""" from scoff.ast.visits import ASTVisitor from hdltools.binutils.instruction import AsmInstruction from hdltools.binutils.function import AsmFunction class AsmDumpPass(ASTVisitor): """Visit objdump output.""" def __init__(self): """Initialize.""" self._visited = ...
brunosmmm/hdltools
hdltools/binutils/passes.py
Python
mit
1,596
[ "VisIt" ]
23bf1b985455e385918128ffa50c8ecb29c3fc7f0e773d8262a056cf4801fdd5
import unittest from nose.tools import * # PEP8 asserts from tests.base import OsfTestCase from tests.test_features import requires_search from tests.factories import ( UserFactory, ProjectFactory, NodeFactory, UnregUserFactory, UnconfirmedUserFactory ) from framework.auth.core import Auth from website imp...
himanshuo/osf.io
tests/test_elastic.py
Python
apache-2.0
17,890
[ "Brian" ]
0feb838d7a898fe05fd185c4dbbaad92a7eb393938b4d1c17319847170873553
""" This is a simple script that verifies several ways of accessing numpy arrays and ensures that their memory is properly cleaned. """ import pytest from .addons import using import numpy as np import psi4 pytestmark = pytest.mark.quick # If it's too small, something odd happens with the memory manager mat_size =...
ashutoshvt/psi4
tests/pytests/test_np_views.py
Python
lgpl-3.0
2,472
[ "Psi4" ]
56890db706f4e56d875af422362f190e94deece9bc733dade5c5d6d6abee7b6f
# Load python packages import re, sys, math from collections import OrderedDict # Load Moose packages from FactorySystem import MooseObject from ..slides import RemarkSlide, SlideWarehouse ## # Base class for markdown slide generation class RemarkSlideSet(MooseObject): ## # Defines the available properties for t...
danielru/moose
python/PresentationBuilder/slidesets/RemarkSlideSet.py
Python
lgpl-2.1
10,006
[ "MOOSE" ]
304a116d331c2a54dd782fdcd606d6f1882946800a5f1ec484ae1fb5088a8dd2
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
neumerance/deploy
horizon/base.py
Python
apache-2.0
29,640
[ "VisIt" ]
3a95eb66a173f150958a38979144f69924c15648e752bcb5e63910f47fcee377
import numpy as np import cv2 import glob import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression """Transformation Pipeline""" calibration_image_src = 'camera_cal/calibration*.jpg' FONT_SIZE = 200 def calibrate_camera(calibration_image_src = calibration_image_src, ): # prepare object ...
dzorlu/sdc
advanced_lane_detection/image_transformation.py
Python
mit
11,694
[ "Gaussian" ]
db28eee97d4588cfed91e06440cfd9ffbb43530599fe9f7dd3f97fb09023b5a4
# Lint as: python3 # Copyright 2020 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 ...
jhseu/tensorflow
tensorflow/python/eager/gradient_input_output_exclusions.py
Python
apache-2.0
12,367
[ "VisIt" ]
b415910a5c2b54bff20ee008d12e90b235b94dfb97e380fd9e708a231110a52c
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # import El n0 = 50 n1 = 50 display = False worldRank = E...
birm/Elemental
examples/interface/LAV.py
Python
bsd-3-clause
2,954
[ "Gaussian" ]
7c3d6de37955d3338774ce5d23410cf145b1e207a437378b01a2e1b3055bd437
# # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify ...
smarr/mxtool
mx_gate.py
Python
gpl-2.0
17,717
[ "VisIt" ]
885c1779d18f87f59c7b9c962b99bda9865b2420fb67d213dff338192dafb129
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/view/workspace.py
Python
gpl-2.0
18,783
[ "VisIt" ]
28a8b804ff34b3c1eb99941018c5d66b32b729879ee466685827885e9edcc50c
"""Installers for programming language specific libraries. """ import os from fabric.api import env, cd, settings from cloudbio import fabutils from cloudbio.custom import shared def r_library_installer(config): """Install R libraries using CRAN and Bioconductor. """ with shared._make_tmp_dir() as tmp_dir...
heuermh/cloudbiolinux
cloudbio/libraries.py
Python
mit
3,405
[ "Bioconductor" ]
d7aa0eb6652e7e6f5af97e1753bef49728b04ebbdb810d7596016a900d0031be
# (C) British Crown Copyright 2014 - 2017, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
LukeC92/iris
lib/iris/tests/unit/fileformats/netcdf/test__load_aux_factory.py
Python
lgpl-3.0
6,986
[ "NetCDF" ]
acd1c66885dcd5bfc4942d69d00eda0e4ce0a672bc422ed9a251a5a6905aac34
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/bwa/package.py
Python
lgpl-2.1
2,823
[ "BWA" ]
428f03021eb543fd94676f2ba61375a571e8c8c0dafb39d5b6cc2e249bef4d32
from Module import AbstractModule class Module(AbstractModule): def __init__(self): AbstractModule.__init__(self) def run( self, network, antecedents, out_attributes, user_options, num_cores, out_path): import os from genomicode import parallel from genomicode i...
jefftc/changlab
Betsy/Betsy/modules/convert_sai_to_sam_folder.py
Python
mit
5,144
[ "BWA" ]
3deaf3c93fb59c4f715af5197a77b85044f012679709f3d6b2894d0e79d5364e
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python # -*- coding: utf-8 -*- import os import json import urllib2 import subprocess name = '' email = '' options = { 'developer': '', 'android': '', 'ios': '', 'designer': '', 'web' : '', 'sublime': '', 'vim': '', 'zsh': '', 'animations...
Aerolab/setup
setup.py
Python
mit
12,816
[ "GULP" ]
c45b08c248a51645427caa5f349a22856b042f6994bce6f31b00a47040b3e355
""" This is a module for XPS analysis. It is modelled after the Galore package (https://github.com/SMTG-UCL/galore), but with some modifications for easier analysis from pymatgen itself. Please cite the following original work if you use this:: Adam J. Jackson, Alex M. Ganose, Anna Regoutz, Russell G. Egdell, Davi...
materialsproject/pymatgen
pymatgen/analysis/xps.py
Python
mit
2,915
[ "Gaussian", "pymatgen" ]
2b5b5f9a36b11496f2d9d64aa52a1007ab46506aa3ab10e06518989d44929a8c
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.conf import settings from django.core import mail from django.core.files.storage import default_storage as storage from django.test.utils import override_settings from django.utils import translation from unittest import mock import pytest i...
kumar303/addons-server
src/olympia/reviewers/tests/test_utils.py
Python
bsd-3-clause
53,663
[ "VisIt" ]
173b1dafe2da373783a68d0dae04844be7469ee786c3cbb49efe4e6bda653ff4
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # # 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; ...
pmghalvorsen/gramps_branch
gramps/plugins/quickview/filterbyname.py
Python
gpl-2.0
17,381
[ "Brian" ]
ea2e621a5d48767c86c54d7823cd03258858854342e322a7a54a0f3fab65e3bb
# # This file is part of PyOLab. https://github.com/matsselen/pyolab # (C) 2017 Mats Selen <mats.selen@gmail.com> # # SPDX-License-Identifier: BSD-3-Clause # (https://opensource.org/licenses/BSD-3-Clause) # # system stuff import os import sys import time from Tkinter import * #This interface a...
matsselen/pyolab
AnalogExample/userExample.py
Python
bsd-3-clause
3,649
[ "exciting" ]
001712a5ebd29c0f15d49b78eb9bfb91c0f16688dbb5b6b8d59286fa6b95408c
# 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...
nburn42/tensorflow
tensorflow/contrib/timeseries/python/timeseries/state_space_models/kalman_filter.py
Python
apache-2.0
16,368
[ "Gaussian" ]
218dca56297392b41c8929a781fff431217b44aa8ab58fa2537361204567474d
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
jamslevy/gsoc
thirdparty/google_appengine/google/appengine/tools/appcfg.py
Python
apache-2.0
74,994
[ "VisIt" ]
ec121a83a1969477ba256d66da4b9e2ab977e27d7f81075523217e104a89b88a
import eva import eva.tests import eva.tests.schemas import eva.adapter import eva.exceptions import eva.job from unittest import mock import httmock import datetime class TestFimexAdapter(eva.tests.BaseTestAdapter): adapter_class = eva.adapter.FimexFillFileAdapter config_ini = \ """ [adapter] fimex_fill_fil...
metno/EVA
eva/tests/adapters/test_fimex_fill_file.py
Python
gpl-2.0
2,649
[ "NetCDF" ]
95e00f801860c0b1a1056974bd97fb0f46cfbc9c9985e6adf698d4d8d7bdf27c
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # -------------------------------------------------------...
alisonken1/openlp-projector-2.0
openlp/projectors/xml_parser.py
Python
gpl-2.0
9,287
[ "Brian" ]
69e2552cc8050460a25fae9d89083d4e443c7c60d66f2bc047201fc4b27387ed
# import asyncio import sys from verbs import VisitPy2 as Visit # visit = Visit('http://192.168.59.100:8008/v1/app') #visit = Visit('http://192.168.59.200:8080/v1') visit = Visit('http://127.0.0.1:8080/v1') headers = { 'username':'user1', 'password':'self.test_account_pw1', 'content-type': ...
pa2515-group2/server
server/verb.py
Python
mit
3,201
[ "VisIt" ]
f0a2a9ff1a7f2eac57974bbf6ed348d34354c58d0a7202e1dd9ca10622915b0e
#!coding:utf-8 # Transmageddon # Copyright (C) 2009 Christian Schaller <uraeus@gnome.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at you...
linuxdeepin/deepin-media-player
src/format_conv/transmageddon.py
Python
gpl-3.0
64,931
[ "DIRAC" ]
88e7ad072fa35f82950612e330d8bbd57796600d59de5d74dd1ddef63ed7ddc8
import numpy as np from numpy.testing import assert_allclose import hyperspy.api as hs from hyperspy.models.model1d import Model1D from hyperspy.misc.test_utils import ignore_warning class TestPowerLaw: def setup_method(self, method): s = hs.signals.Signal1D(np.zeros(1024)) s.axes_manager[0].of...
CodeMonkeyJan/hyperspy
hyperspy/tests/model/test_components.py
Python
gpl-3.0
13,325
[ "Gaussian" ]
e83f13e15de69daa9060ba63697b88a7c1a3b56776d864c1717eb46ab8ef6fbf
#!/usr/bin/env python from ase_utils import symbol_number, symnum_to_sym import numpy as np import re import os import sys import pickle from scipy.integrate import trapz from collections import OrderedDict int_keys = ("num_bands", "num_wann", 'bands_num_points', "fermi_surface_num_points", "num_iter", "nu...
mailhexu/pyDFTutils
resource/phonon_ana/pyFA/wannier.py
Python
lgpl-3.0
22,509
[ "ASE", "Wannier90" ]
9b898795f10a6abbf47e4883d45dd59fcfb28a34f0f66301cd832a7485d1051e
# -*- coding: utf-8 -*- """ Models used to implement SAML SSO support in third_party_auth (inlcuding Shibboleth support) """ import json import logging import re from config_models.models import ConfigurationModel, cache from django.conf import settings from django.contrib.sites.models import Site from django.core.e...
cpennington/edx-platform
common/djangoapps/third_party_auth/models.py
Python
agpl-3.0
37,165
[ "VisIt" ]
4f54395286e130fd1b0b390d75f76ca583aeb07c70e8a0be1ce1e5f9becfdc8a
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Scalr/libcloud
libcloud/compute/drivers/azure.py
Python
apache-2.0
113,059
[ "VisIt" ]
35dd7dc1f12e283d11056e8abe9d1db1addd364f0a6356ea77ccb5d13921db4c
#!/usr/local/www/vamps/software/python/bin/python # -*- coding: utf-8 -*- # # See README file for details. Send your questions / remarks to "A. Murat Eren", <meren / mbl.edu> import sys try: import Levenshtein except: print ''' You need Levenshtein module installed to run this software. Here is a fa...
avoorhis/mbl_sequencing_pipeline
pipeline/anchortrimming_mbl.py
Python
gpl-2.0
10,632
[ "Gaussian" ]
f871adf8c38c0e10a76c9ea24b41afebffbd1d11efdcd179e8b4f0253fbebd7d
from __future__ import print_function import warnings from copy import copy import numpy as np import netCDF4 as nc from .constants import Ha2eV from .util import create_directory, formatted_array_lines from .qptanalyzer import QptAnalyzer from .mpi import MPI, comm, size, rank, master_only, mpi_watch, i_am_maste...
jmbeuken/abinit
scripts/post_processing/ElectronPhononCoupling/ElectronPhononCoupling/core/epcanalyzer.py
Python
gpl-3.0
38,739
[ "ABINIT", "NetCDF" ]
ec0a1f700f7281a43ad9d77ad979c9d00647c9e83928aa453e0c8e01387d8e25
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2012 Michiel D. Nauta # # This program is free software; you can redistri...
sam-m888/gramps
gramps/plugins/tool/check.py
Python
gpl-2.0
129,173
[ "Brian" ]
0925c50b059bba12a3aba9425d0e150286d37fa1b41573fbdb175d185449163d
# Copyright 2020 Makani Technologies 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 to...
google/makani
config/m600/control/hover.py
Python
apache-2.0
47,054
[ "exciting" ]
1b1d966b6aad6cafeb987af72053123b28ee16f627b0b89723633d8aa3043eba
#!/usr/bin/env python3 # Script by JK # Extracts targeted contigs from a multi-FASTA file eg. draft genome assembly import subprocess import os import sys import shutil from Bio.Blast.Applications import NcbiblastnCommandline from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Se...
kwongj/contig-puller
contig-puller.py
Python
gpl-2.0
6,533
[ "BLAST" ]
768ec0db444aa8c20a672f3327835ab2a4390ef1738ed259de9528e03f86b5d3
""" Created on May 17, 2012 @author: nmvdewie """ import unittest import rmgpy.qm.qmtp as qm import rmgpy.qm.parsers as pars import os import rmgpy.molecule as mol import rmgpy.qm.calculator as calc from rmgpy.thermo import ThermoData import re class Test(unittest.TestCase): def testMOPAC_PM3_Parser(self): ...
faribas/RMG-Py
unittest/qm/parserTest.py
Python
mit
2,113
[ "MOPAC", "cclib" ]
cdbe2995b79c8dbde955733aed8bfcb0c3bf8ebfcb8b232db2e291a2d5a7b035
#! /usr/bin/env python '''Test of text objects ''' from OpenGLContext import testingcontext BaseContext = testingcontext.getInteractive() from OpenGL.GL import * from OpenGLContext.arrays import * import string, time, sys, os import logging log = logging.getLogger( __name__ ) from OpenGLContext.scenegraph.basenodes im...
stack-of-tasks/rbdlpy
tutorial/lib/python2.7/site-packages/OpenGLContext/bin/choosefonts.py
Python
lgpl-3.0
7,200
[ "VisIt" ]
e2ef9ec646cbcb3395444cbc2e88a5138a92e6de485080e5d677e0fbea2d17eb
import bpy class MeshProperty(bpy.types.PropertyGroup): """Property group for mesh information Holds all the properties for the meshes used in the animation. Used by the Paths-panel and the Spikes-panel""" mesh = bpy.props.StringProperty(name="Mesh") neuron_object = bpy.props.StringProperty(name="N...
MartinPyka/Parametric-Anatomical-Modeling
pam/pam_anim/tools/meshTools.py
Python
gpl-2.0
1,930
[ "NEURON" ]
cdebfeb3fc1941ee559dac2c952f35ecbb77af13efdc45302e58c523e0651770
# Copyright (c) 2003-2010 Sylvain Thenault (thenault@gmail.com). # Copyright (c) 2003-2010 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 t...
dbbhattacharya/kitsune
vendor/packages/pylint/lint.py
Python
bsd-3-clause
39,287
[ "VisIt" ]
9cd9ff4d7a59f9fd33365cd0d8e140cd8d1ef24d2e00228386024adcb4d46c3b
#------------------------------------------------------------------------------- # Name: utils.execute # Purpose: Submodule containing utility functions for execution of # computational chemistry software packages for Open Anharmonic # # Author: Brian Skinn # bskinn@alum.mit...
bskinn/opan
opan/utils/execute.py
Python
mit
10,503
[ "Brian", "ORCA" ]
81e4dbf345313eefc50306e7a32a5bc211917285685731e50bf63e0f7404a945
from past.types import basestring from builtins import * # noqa: F403, F401 import os import shutil import pprint import requests import time from io import BytesIO from xml.etree import ElementTree from zipfile import ZipFile, is_zipfile from requests.auth import HTTPBasicAuth import geoserver from geoserver.catalo...
tethysplatform/tethys_dataset_services
tethys_dataset_services/engines/geoserver_engine.py
Python
bsd-2-clause
99,537
[ "NetCDF" ]
da7a0c7ba56814667359c803ea8c0698e5f8d701fae5ed066436153ebd6fdb1d
######################################################################## # Common functions used for solving projectEuler.net. problems. # Copyright (C) 2011 Santiago Alessandri # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as p...
sanSS/programming-contests
project-euler/CommonFunctions.py
Python
gpl-3.0
3,805
[ "VisIt" ]
e9efab91ba3c0561cb1969d84d71c23a193cc217786f37fa926619a366939e92
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
KaiSzuttor/espresso
testsuite/python/nsquare.py
Python
gpl-3.0
1,824
[ "ESPResSo" ]
ba33c31b48d7be033e20671a7125bb33b96a920a0721079de5daa3a9411bf67f
n = 5 while n > 0: print n n = n - 1 print "Blast Off!!!"
ashgang/RandomAlgos
Python/countDown.py
Python
apache-2.0
60
[ "BLAST" ]
26b06ccee4848a532f019fd43540a4b951246c2f8a855584cd751fac6b1c4de1
from Bio import Alphabet COUNT = 1 FREQ = 2 ################################################################## # A class to handle frequency tables # Copyright Iddo Friedberg idoerg@cc.huji.ac.il # Biopython (http://biopython.org) license applies # Methods to read a letter frequency or a letter count file: # Example fi...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/SubsMat/FreqTable.py
Python
gpl-2.0
2,610
[ "Biopython" ]
e211d30ea08fd17d4583c4f409500a1ec8fc0f0b407061df7126e32fe56e8cc6
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
edgedb/edgedb
edb/common/context.py
Python
apache-2.0
10,229
[ "VisIt" ]
e0d9b625337cad8fa3f6cafea643afb5670b2d18b3d012d9c670d970de62ae88
import pytest from .utils import * import psi4 import numpy as np pytestmark = pytest.mark.skip ref = { "conv": { "ene": { "d": -100.01941126909895, "t": -100.05801143109962, "q": -100.06768524807164, "5": -100.0704303543983, "6": -100.07073832...
lothian/psi4
tests/pytests/test_zeta.py
Python
lgpl-3.0
12,752
[ "Psi4" ]
fe3c95912a55ed1cac489ad134e0991a2c66339f0b5a045cbdca5cd6a7881bb7
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module define the various drones used to assimilate data. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" ...
aykol/pymatgen
pymatgen/apps/borg/hive.py
Python
mit
17,214
[ "Gaussian", "VASP", "pymatgen" ]
ebe45df5561ac6519718f372041d7b1fcd4f7e97040815de6cf828aea10106f8
# # 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 conditions and the following disclaimer. # # * Redistributions...
drichmond/tinker
python/Phy.py
Python
bsd-3-clause
19,038
[ "TINKER" ]
4a995e399f643c0f5d211d455ed42ff9384168e680cc10d4d65d8f4510f1aa95
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-04 09:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
tomp/food_pantry
clients/migrations/0001_initial.py
Python
mit
9,562
[ "VisIt" ]
5d8b78f46b5cdb9e7824a4297f9c0cb29e7a52407b43dffd1fd7dfc67ad78ff6
import urllib,urllib2,re,cookielib,string, urlparse,sys,os import xbmc, xbmcgui, xbmcaddon, xbmcplugin,urlresolver from t0mm0.common.net import Net as net from t0mm0.common.addon import Addon from resources.libs import main from decimal import Decimal import time #Mash Up - by Mash2k3 2012. from t0mm0.common.addon im...
marduk191/plugin.video.movie25
resources/libs/plugins/sominaltvfilms.py
Python
gpl-3.0
20,517
[ "ADF" ]
7aaa9bbdec05fe823548d20359d52fba95626942071979962a16e4f5097e32b5
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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 requir...
googleads/googleads-python-lib
examples/adwords/v201809/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py
Python
apache-2.0
3,843
[ "VisIt" ]
3d3316c507b55dbb799477ab780b99ec74f38601cbb94ad91f36a91d4e885b2f
# -*- coding: utf-8 -*- """ Created on Mon Mar 7 14:38:46 2011 Plot pca training error as a function of percentage of samples used @author: - """ # Computes the gaussian gradients on a boxm_alpha_scene import os; import optparse; import time; import sys; import plot_pca_functions; import numpy as np import matplotli...
mirestrepo/voxels-at-lems
bvpl/bvpl_octree/plot_training_error.py
Python
bsd-2-clause
1,422
[ "Gaussian" ]
393d8536479a0fc4c61004fe8b635446e53c12d247df4202c8f625425207b594
#!/usr/bin/env python # -*- coding: utf-8 -*- """Views tests for the OSF.""" from __future__ import absolute_import import datetime as dt import httplib as http import json import math import time import unittest import urllib import datetime import mock from nose.tools import * # noqa PEP8 asserts from modularodm...
zamattiac/osf.io
tests/test_views.py
Python
apache-2.0
184,669
[ "Brian" ]
d5574e53201eaaaa538cc900a615372d3bd226d34b2fbd7ed91f667450f9a73c
# -*- coding: UTF-8 -*- """ Name: concatenate.py Porpose: A simple concat demuxer UI Compatibility: Python3, wxPython Phoenix Author: Gianluca Pernigotto <jeanlucperni@gmail.com> Copyright: (c) 2018/2021 Gianluca Pernigotto <jeanlucperni@gmail.com> license: GPL3 Rev: Sep.29.2021 Code checker: - pycodestyle - fl...
jeanslack/Videomass
videomass/vdms_panels/concatenate.py
Python
gpl-3.0
10,087
[ "VisIt" ]
799392c25102aeb6c9369633ede0a45fef82e11d8bf5153b81d3d93a2e387ce1
import numpy as np from ase.units import Ha from ase.dft.kpoints import monkhorst_pack from ase.parallel import paropen from ase.lattice import bulk from gpaw import GPAW, FermiDirac from gpaw.wavefunctions.pw import PW from gpaw.mpi import size, serial_comm from gpaw.xc.rpa import RPACorrelation from gpaw.test import ...
robwarm/gpaw-symm
gpaw/test/rpa_energy_Na.py
Python
gpl-3.0
1,072
[ "ASE", "GPAW" ]
3235e83fefc5080f3c50a8a569cf0e753f0f86af465e73713607cf966c18fd89
# # @file TestSpeciesReference.py # @brief SpeciesReference unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the f...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestSpeciesReference.py
Python
bsd-3-clause
4,905
[ "VisIt" ]
952c20d035feaaf9eac9cf934fe070da5138c5655d31d5b5efaa5c2f28c4bd05
import sys sys.path.insert(1, "../../") import h2o def offset_1388(ip, port): print "Loading datasets..." pros_hex = h2o.import_file(h2o.locate("smalldata/prostate/prostate.csv")) pros_hex[1] = pros_hex[1].asfactor() pros_hex[3] = pros_hex[3].asfactor() pros_hex[4] = pros_hex[4].asfactor() ...
weaver-viii/h2o-3
h2o-py/tests/testdir_jira/pyunit_NOPASS_pubdev_1388_offset_comparisons.py
Python
apache-2.0
2,998
[ "Gaussian" ]
c103b871f4ddb4ed2e62288bf8efb67092217f3fad49267f112d8685c0b9aa74
# -*- coding: utf-8 -*- """This module tests various ways how to set up the provisioning using the provisioning dialog.""" import re from datetime import datetime, timedelta import fauxfactory import pytest from cfme import test_requirements from cfme.common.provider import cleanup_vm from cfme.infrastructure.virtual_...
rlbabyuk/integration_tests
cfme/tests/infrastructure/test_provisioning_dialog.py
Python
gpl-2.0
10,935
[ "VisIt" ]
3beaa4fe4d473f11284a4d36d52e7cdae32d8d4069b1e4182458948405935597