text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | dp_multiq/tree.py | Python | apache-2.0 | 23,670 | [
"Gaussian"
] | 5446a1e7d8c792835de08a0f8ccdc61e0d3c298ba3e7d9433520035e433263a6 |
########################################################################
# $HeadURL$
# File : dirac-proxy-init.py
# Author : Adrian Casajus
########################################################################
__RCSID__ = "$Id$"
import sys
import getpass
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.Core.Ba... | vmendez/DIRAC | FrameworkSystem/Client/ProxyGeneration.py | Python | gpl-3.0 | 9,907 | [
"DIRAC"
] | fcdeeb5f033554a1e9733ad0fd91231bdb5ac0a3501f1d3ff11120881bfbba5e |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
"""
Input sets for VASP GW calculations
Single vasp GW work: Creates input and jobscripts from the input sets for a specific job
"""
__author... | sonium0/pymatgen | pymatgen/io/vasp/GWvaspinputsets.py | Python | mit | 26,730 | [
"VASP",
"Wannier90",
"pymatgen"
] | 2d4f13a811b4c290a9022f7715ee76fbc3d0f74da11e0082a3b40ab0eed1e955 |
import numpy as np
from alis import almsgs
from alis import alfunc_base
msgs=almsgs.msgs()
class BrokenPowerLaw(alfunc_base.Base) :
"""
Returns a 1-dimensional gaussian of form:
p[0] = amplitude
p[1] = x offset
p[2] = dispersion (sigma)
"""
def __init__(self, prgname="", getinst=False, atom... | rcooke-ast/ALIS | alis/alfunc_brokenpowerlaw.py | Python | gpl-3.0 | 5,519 | [
"Gaussian"
] | e8b7990e833aa81df47029765970df9a162fa3224038aad72b702ae645ba2e2f |
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import sys
if not (sys.version_info.major == 3 and sys.version_info.minor > 5):
print("Python version %s.%s not supported version 3.6 or above required - exiting" % (sys.version_info.major,sys.version_info.minor))
sys.exit(1)
import os
for path in [os.getcwd(),"Ut... | vholland/schemaorg | tests/test_graphs.py | Python | apache-2.0 | 21,780 | [
"ASE"
] | 10d3285e7e4ee5611bc73957631148980d44e9112efd6e5a30999cd98db385ea |
# -*- coding: utf-8 -*-
#
# hl_api_models.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, ... | tobikausk/nest-simulator | pynest/nest/lib/hl_api_models.py | Python | gpl-2.0 | 5,163 | [
"NEURON"
] | 2e0d862629c4c3115b7e94d3c0a65b5a027f84300e822c81b5fd304d797350ed |
"""Takes a Python AST and converts it to a corresponding StencilModel.
Throws an exception if the input does not represent a valid stencil
kernel program. This is the first stage of processing and is done only
once when a stencil class is initialized.
"""
from stencil_model import *
from assert_utils import *
import ... | richardxia/asp-multilevel-debug | specializers/stencil/stencil_python_front_end.py | Python | bsd-3-clause | 7,873 | [
"VisIt"
] | 0defd858b48105b690546dca14487992615aa674894e0689bb2c80ff4552fb80 |
# Copyright 2018 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 to in writing, s... | GoogleCloudPlatform/python-docs-samples | appengine/standard_python3/building-an-app/building-an-app-3/main.py | Python | apache-2.0 | 3,322 | [
"VisIt"
] | 0d4931fc2295d4e5a8206b7fddbab682665c11250dd824deb55f93125a68db33 |
##############################################################################
# Copyright (c) 2013-2017, 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... | skosukhin/spack | var/spack/repos/builtin/packages/netcdf-cxx/package.py | Python | lgpl-2.1 | 1,769 | [
"NetCDF"
] | 3feb36aa0866deee333632b904e8f5fddb461fc70035259d62ab76a29068fa18 |
#############################################################################################
#
# Python script to demonstrate interacting with CASDA's SODA implementation to
# retrieve cutout images around a list of sources.
#
# This script creates a job to produce and download cutouts from the specified image at
# t... | csiro-rds/casda-samples | sources.py | Python | apache-2.0 | 6,412 | [
"Galaxy"
] | 9cecd50a8e966eb8c37c45842bb137440dbf31f0617bdfe3169ba36fadee06fe |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | CDSherrill/psi4 | psi4/driver/driver_cbs.py | Python | lgpl-3.0 | 82,123 | [
"CFOUR",
"Psi4"
] | 1b85991e44c384dd0b8177771f1bf6fa8942882e278e1cccc624a1b55cc07379 |
## -*- mode: python; coding: utf-8; -*-
##
## This file is part of Invenio.
## Copyright (C) 2007, 2008, 2010, 2011 CERN.
##
## Invenio 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... | pamoakoy/invenio | modules/bibrank/lib/bibrank_drank_indexer.py | Python | gpl-2.0 | 45,082 | [
"Gaussian"
] | ac2ac2c447985974b3ac9f2ebeeb9ce9df284b5f9d5149974333bf4821bae999 |
# -*- coding: utf-8 -*-
"""
Created on Mon May 16 12:41:12 2016
@author: cjs14
"""
from __future__ import division
import pkgutil
import math
import numpy as np
from OpenGL.GL import *
from .base import ShaderBaseRenderer
from ....shared.colors import black
class HexagonRenderer(ShaderBaseRenderer):
'''Used to ... | chrisjsewell/ipymd | ipymd/visualise/opengl/renderers/hexagon.py | Python | gpl-3.0 | 3,254 | [
"CRYSTAL"
] | 8ab28ef7b66f72a530fed316d387afad104c78b5e5e0853c72a838a1bae2d6a0 |
# $HeadURL$
"""
NovaImage
The NovaImage provides the functionality required to use
a OpenStack cloud infrastructure, with NovaAPI DIRAC driver
Authentication is provided by user/password attributes
"""
# File : NovaImage.py
# Author : Victor Mendez ( vmendez.tic@gmail.com )
# DIRAC
from DIRAC import gLo... | vmendez/VMDIRAC | WorkloadManagementSystem/Client/NovaImage.py | Python | gpl-3.0 | 6,726 | [
"DIRAC"
] | 56df07dff2b7c82c176cc4ede0cb0793c244a7088339d907b56576b26baad364 |
# ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems 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.o... | ruguevara/neon | neon/transforms/gaussian.py | Python | apache-2.0 | 1,907 | [
"Gaussian"
] | a2569596bbdef212cab09e15f4f3b7b5d615fa1e1920ebb62315f110bb3113a2 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Stephane Charette
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2009-2010 Gary Burton
# Contribution 2009 by Bob Ham <rah@bash.sh>
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011-2014 Paul Franklin
#
# This ... | prculley/gramps | gramps/plugins/graph/gvfamilylines.py | Python | gpl-2.0 | 48,048 | [
"Brian"
] | c02b58806310bb762835cf1441483a4eb5d4f4cc44ef9ca8458b5b27a407cffc |
# $Id$
#
# Copyright (C) 2003-2006 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.
#
import unittest
import random
from rdkit... | rdkit/rdkit-orig | rdkit/DataStructs/UnitTestTopNContainer.py | Python | bsd-3-clause | 1,888 | [
"RDKit"
] | f3aacd6009d957b4cbbbaed6ab97a61262e9435962babec6746db72076236c82 |
"""
sphinx.cmd.quickstart
~~~~~~~~~~~~~~~~~~~~~
Quickly setup documentation source to work with Sphinx.
:copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import argparse
import locale
import os
import re
import sys
import time
import warn... | lmregus/Portfolio | python/design_patterns/env/lib/python3.7/site-packages/sphinx/cmd/quickstart.py | Python | mit | 23,403 | [
"VisIt"
] | 5474096d347341133a9f5c9d9a01fdf231ea3e25cd99709e15883386013b8fca |
# bcgplvm.py: Implementation of back constrained GPLVM with minimal inheritance
# Author: Nishanth
# Date: 2017/01/18
# Source: GPflow source code
import numpy as np
import tensorflow as tf
from GPflow.tf_wraps import eye
from GPflow.model import GPModel
from GPflow._settings import settings
from GPflow.mean_functions... | ShibataLabPrivate/GPyWorkshop | Experiments/bcgplvm.py | Python | mit | 5,962 | [
"Gaussian"
] | 606dc8e3dc9bd3a552a533282b20129cb49aec4393544124c89ead0555ce5062 |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Eric Martin <eric@ericmart.in>
# License: BSD 3 clause
from itertools import chain, combina... | 3manuek/scikit-learn | sklearn/preprocessing/data.py | Python | bsd-3-clause | 56,747 | [
"Gaussian"
] | 24d259bdcd657a9cc6e861deb95b6a8c01bebb74d368736cd1df66a4c73379e6 |
#!/usr/bin/env python
# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Revision: $Revision: 2504 $
# Date: $Date: 2004-07-29 06:36:53 +0200 (Thu, 29 Jul 2004) $
# Copyright: This module has been placed in the public domain.
"""
Generates .html from all the .txt files in a directory.
Ordinary .txt f... | pombreda/django-hotclub | libs/external_libs/docutils-0.4/tools/buildhtml.py | Python | mit | 8,636 | [
"VisIt"
] | b841e3af376c73c149b5bee74a33962ad359012e3b374981564bb76679da4d2d |
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU
# GPL v2 or later.
from __future__ import absolute_import
import numpy as np
from . import constants
# TODO: add up weight percent an... | ian-r-rose/burnman | burnman/partitioning.py | Python | gpl-2.0 | 3,066 | [
"Avogadro"
] | 71bc921edeed6d16c54b93e7f921ba6006430900d9392145b42bf1af78b15633 |
# Orca
#
# Copyright 2010 Joanmarie Diggs.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library i... | pvagner/orca | src/orca/script_utilities.py | Python | lgpl-2.1 | 101,686 | [
"ORCA"
] | 8c9b57ddebe1c7152995b1503e01424151c5c26fd2a4bb39faff0a78cb94aee2 |
#! RHF Hessian code
# -*- coding: utf-8 -*-
"""
This script calculates nuclear Hessians of RHF Wavefunction using
derivatives of one and two electron integrals obtained from PSI4
Reference: "Derivative studies in hartree-fock and moller-plesset theories",
J. A. Pople, R. Krishnan, H. B. Schlegel and J. S. Binkley
DO... | ashutoshvt/psi4 | tests/psi4numpy/rhf-hessian/input.py | Python | lgpl-3.0 | 10,359 | [
"Psi4"
] | 1a86bba79dfbbd1b2bf627efcdadcb14621dd198e9d370050a0ce9ff5e7ab42a |
#! /usr/bin/python3
# -*- coding:utf-8 -*-
entero=10 # numero entero
flotante=10.0 # numero decimal
cadena="Ola Ke ase, pythoneando o ke ase" # una cadena
Booleano=True # un simple booleano
complejo=3+2j # numero complejo
print("Este es un valor entero ->", type(entero))
print("Este es un valor flotante ->", type(flota... | IntelBuap2014/Python | codigo6.py | Python | gpl-2.0 | 430 | [
"ASE"
] | 9cf08ba6a56d4ba1a9ffb5a7ef9a5a570779324ba612f797a54d1dd68c970947 |
from mumax2 import *
from math import *
# Standard Problem 4
Nx = 32
Ny = 32
Nz = 1
setgridsize(Nx, Ny, Nz)
setcellsize(64e-9/Nx, 64e-9/Ny, 2e-9/Nz)
#setperiodic(4,4,0)
load('3TM')
load('solver/rk12')
setv('dt', 1e-15)
setv('Te_maxerror', 1./1000.)
setv('Ts_maxerror', 1./1000.)
setv('Tl_maxerror', 1./1000.)
setv('k_e... | mumax/2 | tests/3T-test.py | Python | gpl-3.0 | 1,514 | [
"Gaussian"
] | 56b98867455c2c8ce872d71919b06c1626b80c2ed4a5014daddf660f59f10e17 |
""" The Machine/Job Features TimeLeft utility interrogates the MJF values
for the current CPU and Wallclock consumed, as well as their limits.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import os
import time
from urllib.reque... | ic-hep/DIRAC | src/DIRAC/Resources/Computing/BatchSystems/TimeLeft/MJFResourceUsage.py | Python | gpl-3.0 | 4,798 | [
"DIRAC"
] | 4bd79835e4a0ba84652e29f74b10c47ef1dc749d650817aed7976526d84f7bc8 |
# -*- coding: utf-8 -*-
"""Tests for ``pybel.tokens``."""
import unittest
from pybel.constants import ABUNDANCE, CONCEPT, FUNCTION, IDENTIFIER, NAME, NAMESPACE
from pybel.dsl import Abundance
from pybel.testing.utils import n
from pybel.tokens import _simple_po_to_dict
class TestRecover(unittest.TestCase):
"""... | pybel/pybel | tests/test_tokens.py | Python | mit | 1,910 | [
"Pybel"
] | 3455e8c68a361148f143535bd693f227c31b7df81d0b6fb38d6d1455a6223414 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 1: Fundamental Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2013 by Jeff Heaton
Licensed under the Apache License, Version 2... | trenton3983/Artificial_Intelligence_for_Humans | vol1/python-examples/examples/example_anneal_disc_knapsack.py | Python | apache-2.0 | 5,363 | [
"VisIt"
] | 7b3a76cc012c5b562231c57161dc2fb115844560f4409ac17039a7684a4d6ce7 |
"""
.. _ex-evoked-whitening:
=============================================
Whitening evoked data with a noise covariance
=============================================
Evoked data are loaded and then whitened using a given noise covariance
matrix. It's an excellent quality check to see if baseline signals match
the as... | mne-tools/mne-tools.github.io | stable/_downloads/350e6ac6c51e169a01ee8ebcc2352f7f/evoked_whitening.py | Python | bsd-3-clause | 2,704 | [
"Gaussian"
] | aeba181e10aea1456257ea94223d789a69d5fed4ece2e176b353e61868e37dbe |
"""
===========================
Formaldehyde mm-line fitter
===========================
This is a formaldehyde 3_03-2_02 / 3_22-221 and 3_03-2_02/3_21-2_20 fitter.
It is based entirely on RADEX models.
Module API
^^^^^^^^^^
"""
from __future__ import print_function
import numpy as np
from . import hyperfine
from . im... | keflavich/pyspeckit | pyspeckit/spectrum/models/formaldehyde_mm.py | Python | mit | 18,893 | [
"Gaussian"
] | 18b89fcc877d841512e00ecbb6f48d167817ac473069d437cd81c6439ca10cf8 |
# Copyright (c) 2016 Robert Bosch LLC, USA.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This source code is based on Neon
# https://github.com/NervanaSystems/neon/
# Copyright 2015 Nervana Systems Inc., lice... | DL-Benchmarks/DL-Benchmarks | neon/alexnet/alexnet.py | Python | mit | 5,187 | [
"Gaussian"
] | 7eab630112fe3a6dc4a977c1348f398a597d45b1d12f95f6f237f82552ae5234 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012-2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | stoq/kiwi | kiwi/ui/forms.py | Python | lgpl-2.1 | 21,356 | [
"VisIt"
] | a9397e8d9e7f1eaca5b46982a74adf46492c195011a66f046e3f15e3be793c1c |
class Visitor:
"""Abstract base class for all visitors."""
def visit(self,state_machine):
pass
| bwtaylor/statemach | visitors/visitor.py | Python | apache-2.0 | 105 | [
"VisIt"
] | ebc86a9fc9e056a6e7eff4a4a4ba2cd9b4a5a8a66e0af711deb06d192a4a056e |
from netCDF4 import Dataset
import numpy as np
from pandas import DatetimeIndex, Timestamp
class ModelGrid(object):
"""
Base class for reading 2D model output grids from netCDF files.
"""
def __init__(self,
filenames,
run_date,
start_date,
... | djgagne/hagelslag-unidata | hagelslag/data/ModelGrid.py | Python | mit | 3,623 | [
"NetCDF"
] | 8f18b7cf48751f8a829cdf9883371be1384bf05f5d189fcaa8ebbc6634e39dfc |
import numpy as np
##########################################################################
#
# QGIS-meshing plugins.
#
# Copyright (C) 2012-2013 Imperial College London and others.
#
# Please see the AUTHORS file in the main source directory for a
# full list of copyright holders.
#
# Dr Adam S. Candy... | adamcandy/QGIS-Meshing | scripts/generate_field_xyz_data.py | Python | lgpl-2.1 | 12,891 | [
"Gaussian",
"NetCDF"
] | 0e1378292aa7e45857d6be1b9515ebd5f445384497b73393d792de30544cb8ce |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='AutomatedMessage',
fields=[
('id', models.AutoF... | tperrier/mwachx | backend/migrations/0001_initial.py | Python | apache-2.0 | 1,566 | [
"VisIt"
] | 3b90a76681dd0e67828c126b9b20d52a3fc65021eea7e9590ca43518e9b2b012 |
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
from edc_visit_schedule.site_visit_schedules import site_visit_schedules
from ..constants import CANCELLED_APPT, IN_PROGRESS_APPT
from ..constants import COMPLETE_APPT, INCOMPLETE_APPT, NEW_APPT
from .appointment_creator import AppointmentC... | botswana-harvard/edc-appointment | edc_appointment/creators/unscheduled_appointment_creator.py | Python | gpl-2.0 | 6,248 | [
"VisIt"
] | e29cacb732f2940d3b9ea11bc74be1f0b605b22516465502019fc6b0a942d689 |
"""Code for the B{0desktop} command."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
from zeroinstall import _
import sys
from optparse import OptionParser
import logging
def main(command_args):
"""Implements the logic o... | dabrahams/zeroinstall | zeroinstall/gtkui/desktop.py | Python | lgpl-2.1 | 2,067 | [
"VisIt"
] | 05bc3d8cb34246b08ae8ef3482eb2f7f684480acb7c56d46a00d26f5c3d3bb2c |
# Copyright 2014-2018 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
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/m_eri3c.py | Python | apache-2.0 | 2,239 | [
"PySCF",
"SIESTA"
] | 96dcd6f1eba3ac93bbdde60026b1ec90e5da3306d560b2c242c2dadb8eaeace7 |
# Copyright (C) 2016-2018 The ESPResSo project
# Copyright (C) 2014 Olaf Lenz
#
# 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... | mkuron/espresso | src/python/espressomd/gen_code_info.py | Python | gpl-3.0 | 1,849 | [
"ESPResSo"
] | 2bb5c7cbc3923853dfe1d9ec6216a7bd453265a1a3f78c0c97d8facf74119956 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
# File : dirac-distribution
# Author : Adria Casajus
########################################################################
"""
Create tarballs for a given DIRAC release
"""
__RCSID__ = "$Id$"... | andresailer/DIRAC | Core/scripts/dirac-distribution.py | Python | gpl-3.0 | 15,240 | [
"DIRAC"
] | cd9c401aec2abea6b02bce62c3701530bf59ee2b3581be13a7578b762c6d4394 |
#!/usr/bin/python
from biokbase.cdmi.client import CDMI_EntityAPI
from biokbase.probabilistic_annotation.DataExtractor import getFieldFromEntity, getFieldFromRelationship
# For the CDMI URL and other constants
from biokbase.probabilistic_annotation.PYTHON_GLOBALS import *
import os
import sys
try:
import json
ex... | kbase/probabilistic_annotation | internalScripts/ModifyBiochemistryJson.py | Python | mit | 8,179 | [
"BLAST"
] | e86fae83fcadf8a528a6cc2691a921f4920fa7fff3b881573c135c7ebc2722c3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This module is also sponsored by E.T.A.I. (www.etai.fr)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version... | romain-dartigues/ansible | lib/ansible/modules/cloud/vmware/vmware_guest.py | Python | gpl-3.0 | 122,283 | [
"VisIt"
] | 6b1792381252b43243ce2b4df8bf206f14c0d4c28cf97ed7c24acd8f2443fae8 |
# Orca
#
# Copyright 2004-2008 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | ruibarreira/linuxtrail | usr/lib/python3/dist-packages/orca/scripts/apps/notification-daemon/__init__.py | Python | gpl-3.0 | 861 | [
"ORCA"
] | da769acc8275edf842965a022339c210858029c78bd4ad79ab486ba52aa8f1aa |
from . import CallInstr
class Visitor(object):
def visit(self, module):
self._module = module
for func in module.functions:
self.visit_Function(func)
def visit_Function(self, func):
self._function = func
for bb in func.blocks:
self.visit_BasicBlock(bb)
... | markdewing/llvmlite | llvmlite/ir/transforms.py | Python | bsd-2-clause | 1,542 | [
"VisIt"
] | c49aebec68b50ee9b81fb6d12f03789229edc300dd3c58f8192a5d7ba73eeb4d |
#!/usr/bin/env python
# -*- coding=UTF-8 -*-
# **************************************************************************
# Copyright © 2016 jianglin
# File Name: setup.py
# Author: jianglin
# Email: mail@honmaple.com
# Created: 2016-04-16 22:19:36 (CST)
# Last Update: Wednesday 2018-11-21 13:52:54 (CST)
# By:... | honmaple/flask-maple | setup.py | Python | bsd-3-clause | 1,355 | [
"VisIt"
] | 4073d14f1ca0346efe69dcc28ccf4dbce84d212cd32286a1f3a1cfa067e0a023 |
"""
Find intermediate evalutation results in assert statements through builtin AST.
This should replace oldinterpret.py eventually.
"""
import sys
import ast
import py
from _pytest.assertion import util
from _pytest.assertion.reinterpret import BuiltinAssertionError
if sys.platform.startswith("java") and sys.versio... | npinto/pytest | _pytest/assertion/newinterpret.py | Python | mit | 12,291 | [
"VisIt"
] | d813a8f2a32bf85f04968e1a72345d7e5ea55aa3aeee47a0b9cb965eca3f34a5 |
import unittest
from netcdf import netcdf as nc
from datetime import datetime
from models import JobDescription
import os
import glob
class TestHeliosat(unittest.TestCase):
def setUp(self):
# os.system('rm -rf static.nc temporal_cache products')
os.system('rm -rf temporal_cache products/estimated... | scottlittle/solar_radiation_model | tests/heliosat_test.py | Python | mit | 2,399 | [
"NetCDF"
] | a6ab27e12f45c2ea3ba8a6a9be09b106e05a0e4d43db9047629f85d21f5c309f |
'''apport package hook for pxljr
(c) 2009 Canonical Ltd.
Author: Brian Murray <brian@ubuntu.com>
'''
from apport.hookutils import *
def add_info(report):
attach_hardware(report)
attach_printing(report)
| Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/apport/package-hooks/source_pxljr.py | Python | gpl-3.0 | 213 | [
"Brian"
] | f2f453b6c6902732e77a3d58e4000d7fd1c7ef06b9c742fa2444c26f37005ce5 |
""" ProxyManager is the implementation of the ProxyManagement service
in the DISET framework
"""
__RCSID__ = "$Id$"
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from DIRAC.Core.Security import Properties
from DIRAC.Core.Utilities.ThreadScheduler import gThrea... | petricm/DIRAC | FrameworkSystem/Service/ProxyManagerHandler.py | Python | gpl-3.0 | 15,560 | [
"DIRAC"
] | c7aa21bf034ddad191a9ef70a7bea12fbba5f39afa0bfc325b1a8f43154a08a2 |
"""Contains the JsonInterface class for reading & writing to YAML files"""
# json_interface.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 os
impo... | spierepf/mpf | mpf/file_interfaces/json_interface.py | Python | mit | 3,942 | [
"Brian"
] | 44a69967912a1ad14a61287a0f3854336dc6b5c0e16c96528102015a03137abd |
import ast
import json
import random
from badges.models import Badge
from courses.models import Rank
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
from django.urls import reverse
from dja... | timberline-secondary/hackerspace | src/djcytoscape/models.py | Python | gpl-3.0 | 43,427 | [
"Cytoscape"
] | dee9d0e9fdd752653fcd7d77f1cadb4c1f5c5e82a1aeeadaa8f9fa3f5cb6ecf1 |
"""ladybug file translation commands."""
import click
import sys
import logging
from ladybug.wea import Wea
from ladybug.ddy import DDY
from ladybug.epw import EPW
from ._helper import _load_analysis_period_str
_logger = logging.getLogger(__name__)
@click.group(help='Commands for translating between various file t... | ladybug-analysis-tools/ladybug-core | ladybug/cli/translate.py | Python | gpl-3.0 | 4,634 | [
"EPW"
] | 38700fe93fd3ba2cf77784e826d52af655ae3f7f1e2bdea51760f802f38174c2 |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to
# submit large numbers of jobs on supercomputers. It provides a python interface to physical input,
# ... | pylada/pylada-light | tests/decorations/test_ndimiterator.py | Python | gpl-3.0 | 2,051 | [
"CRYSTAL",
"VASP"
] | 3f73b90227844839b579ea1a7861d0996a259e2e961066039349fb3e6e56f45e |
# encoding: utf-8
# module PyKDE4.kio
# from /usr/lib/python3/dist-packages/PyKDE4/kio.cpython-34m-x86_64-linux-gnu.so
# by generator 1.135
# no doc
# imports
import PyKDE4.kdeui as __PyKDE4_kdeui
import PyQt4.QtCore as __PyQt4_QtCore
import PyQt4.QtGui as __PyQt4_QtGui
class KBookmarkGroupTraverser(): # skipped bas... | ProfessorX/Config | .PyCharm30/system/python_stubs/-1247971765/PyKDE4/kio/KBookmarkGroupTraverser.py | Python | gpl-2.0 | 926 | [
"VisIt"
] | cd5bb2eb2431dea4cb3be2239a514e82b58f4ee97d8e884c05cd4acc8a1e6d45 |
'''
This modules contains OpenMP-related stuff.
* OMPDirective is used to represent OpenMP annotations in the AST
* GatherOMPData turns OpenMP-like string annotations into metadata
'''
from pythran.passmanager import Transformation
import pythran.metadata as metadata
from pythran.types.conversion import PYTYPE... | pombredanne/pythran | pythran/openmp.py | Python | bsd-3-clause | 7,183 | [
"VisIt"
] | 378beb9c7cfcb6dbdccb830f69ea97b1e281e831f37cd808fd056b532003dfcf |
from util import *
from InputParameters import InputParameters
from MooseObject import MooseObject
class Tester(MooseObject):
@staticmethod
def validParams():
params = MooseObject.validParams()
# Common Options
params.addRequiredParam('type', "The type of test of Tester to create for this test.")
... | zzyfisherman/moose | python/TestHarness/testers/Tester.py | Python | lgpl-2.1 | 9,136 | [
"VTK"
] | a8abfe9a7fce7dc0271ffab5c53f777013c49d37493e5ae244084f4df960c355 |
from base import *
import urllib2, json
# categorized tags
TYPES = [
["restaurant", "food", "bar", "night_club", "lodging", "meal_delivery", "meal_takeaway", "cafe", \
"grocery_or_supermarket", "bakery"],
["airport", "taxi_stand", "train_station", "taxi", "plane", "train", "transport", "subway_station", "bus_st... | 1egoman/quail | plugins/places/pigeon.py | Python | mit | 3,689 | [
"CASINO"
] | 152734f59daaccc98ed7bd42072cb186b72fdeb2f51314368bd058649937f684 |
'''
Service-specific functionality. Any operations that are bound to specific providers belongs here.
'''
from . import comm_settings
from .comm_settings import SLASHROOT_EXPRESSIONS
from .models import PhoneCall
from .response import CallResponse
from .rest import SLASHROOT_TWILIO_ACCOUNT
from Crypto.Random.random im... | SlashRoot/WHAT | what_apps/comm/services.py | Python | mit | 13,533 | [
"BLAST"
] | a8fcd899af34d5aa31296cd4e5d2e0eac01a8666220da7c31242d25f6155eeaf |
import sys
import gzip
import threading
from glob import glob
from io import BytesIO
from .. import backends, conventions
from .common import ArrayWriter
from ..core.combine import auto_combine
from ..core.utils import close_on_error, is_remote_uri
from ..core.pycompat import basestring, OrderedDict, range
def _get_... | kjordahl/xray | xray/backends/api.py | Python | apache-2.0 | 15,596 | [
"NetCDF"
] | 94254749237ba9b50465f2a7541c9a1fe8eaffffcb34341234243fa65b6e6b2e |
from galaxy.model import *
from galaxy.model.orm import *
from galaxy.web.framework.helpers import iff
from galaxy.tags.tag_handler import TagHandler
from galaxy.web import url_for
from galaxy.util.json import from_json_string, to_json_string
import sys, logging, math
log = logging.getLogger( __name__ )
class Grid(... | volpino/Yeps-EURAC | lib/galaxy/web/framework/helpers/grids.py | Python | mit | 20,476 | [
"Galaxy"
] | ad231512462c06acf3e4b5d21d58ef26875a17627fbabce9c1a4a16f07dddd7c |
#!/usr/bin/env python
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz as hv
import hr... | tapomayukh/projects_in_python | classification/Classification_with_CRF/old_crfsuite_package/old code/data_conversion_combined.py | Python | mit | 2,573 | [
"Mayavi"
] | 2ac2c10aed3055cde3515bf4e0d0ce9675adbcab04a0fd88c94bfb786cbcf8e4 |
#!/usr/bin/env python2
desc="""Generate chromosome graphs for given genome.
http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec343
"""
epilog="""Author:
l.p.pryszcz+git@gmail.com
Barcelona, 13/05/2014
"""
import argparse, os, sys
from datetime import datetime
from reportlab.lib import colors
#from genome_anno... | lpryszcz/bin | annotated_chromosomes.py | Python | gpl-3.0 | 7,562 | [
"Biopython"
] | 4ccff400d6b4cf98c46445d602a164cdb02fab3eb2231095be42423fe48c7d32 |
# Copyright (C) 2017 Open Source Integrators
# Copyright (C) 2019 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . import reports
| OCA/l10n-usa | l10n_us_form_1099/__init__.py | Python | agpl-3.0 | 189 | [
"Brian"
] | dfe7d7f2d6fba21dfaaa3dd18f8c0ea77d51d85060c9ac649a1e35d03f030462 |
# -*- coding: utf-8 -*-
"""
joeybutton and leomcelroy Bioinformatics final project
Usage on with test data: python swag.py variants.csv reads-NA12878.sam
Implementation of Smith-Waterman algorithm on a variation graph for demonstrating local alignment of reads to the reference with known variations
Some notes:
--- T... | joeybutton/bwtgraph | swag.py | Python | mit | 9,896 | [
"VisIt"
] | c1e65cf239a219d32100baba2722fdd09127a8cdcd2f6e63a25699f6919585c0 |
"""
Numerical python functions written for compatability with MATLAB
commands with the same names.
MATLAB compatible functions
-------------------------------
:func:`cohere`
Coherence (normalized cross spectral density)
:func:`csd`
Cross spectral density uing Welch's average periodogram
:func:`detrend`
Remov... | lthurlow/Network-Grapher | proj/external/matplotlib-1.2.1/lib/matplotlib/mlab.py | Python | mit | 102,127 | [
"Gaussian"
] | e68a37c4c180ea11eccef7e52492bb392866f8cbd1c1c3279aa6efde8439818e |
# pylint: disable=C0111
# pylint: disable=W0621
from __future__ import absolute_import
import time
from lettuce import world, step
from lettuce.django import django_url
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from student.models import CourseEnrollment
from xmodule.mo... | nanolearning/edx-platform | lms/djangoapps/courseware/features/common.py | Python | agpl-3.0 | 7,872 | [
"VisIt"
] | b7f1e8d749b45d325b1eaffe9ed73d436de6b264c22eb832b46dc9209ed4bc4f |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines classes representing non-periodic and periodic sites.
"""
import collections
import numpy as np
from typing import Union, Dict, Tuple, List
import json
from monty.json import MSONable
... | gVallverdu/pymatgen | pymatgen/core/sites.py | Python | mit | 22,632 | [
"pymatgen"
] | c760201c0d5b4ff531dc1239bacd39fdcd23cfec1629c0a9002ea1605ea2c333 |
""" This module exposes singleton gServiceInterface as istance of ServiceInterface (also in this module)
Interacts with RRD (rrdtool), with ComponentMonitoringDB (mysql) and with MonitoringCatalog (sqlite3)
Main clients are the monitoring handler (what's called by gMonitor object), and the web portal.
"""
fro... | DIRACGrid/DIRAC | src/DIRAC/FrameworkSystem/private/monitoring/ServiceInterface.py | Python | gpl-3.0 | 26,630 | [
"DIRAC"
] | 6dbd31031e4766faef66f4a3643d6d6f0a2d3c9386f7c516363c396489e8c929 |
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import re
import socket
import sys
import time
import math
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_etree_fromstring,
compat_getpass,
compat_http_client,
... | mcepl/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 89,946 | [
"VisIt"
] | 12432359f391d62e87c08b774ae6cef5c81ee843c3ce648a5c5663afb687640a |
#!/usr/bin/env python
'''
ooiservices.manage
Manage script for specific services related tasks
'''
from flask.ext.script import Manager
from ooiservices import app
from ooiservices.util.erddap_catalog import ERDDAPCatalog, ERDDAPCatalogEntry
from ooiservices.config import DataSource, DATASETS_FILE, TOUCH_FILE
from o... | asascience-open/erddap-management | erddap_management/core/generate_catalog.py | Python | apache-2.0 | 6,205 | [
"NetCDF"
] | 3199bb1ecb6d9c1c12a0a42bd788adb74ff36149b62d219d4097f7405ed13b39 |
# Copyright 2018 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... | yongtang/tensorflow | tensorflow/python/distribute/input_lib.py | Python | apache-2.0 | 87,670 | [
"VisIt"
] | 5feae36317442445c41fb1ff884da967d3993452f5a4bbe74e239872f0f0cef1 |
# -*- coding: ISO-8859-15 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk>
#
# Authors :
# Oliver Clements <olcl@pml.ac.uk>
#
# Contact email: olcl@pml.ac.uk
# =======================... | bird-house/OWSLib | owslib/coverage/wcs201.py | Python | bsd-3-clause | 19,569 | [
"NetCDF"
] | 2d5d42f00ebf2ef0785f7d6e21d982d87126cdd16c3c4a6965d2d4e0bd46baa7 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | thaim/ansible | lib/ansible/modules/network/avi/avi_sslkeyandcertificate.py | Python | mit | 7,083 | [
"VisIt"
] | 981f6b5379dcb3a2925be87ef80ee9b1f60fab73fd611d4f08be501a198a8cb4 |
"""
Kernel Density Estimation
-------------------------
"""
# Author: Jake Vanderplas <jakevdp@cs.washington.edu>
import numpy as np
from scipy.special import gammainc
from ..base import BaseEstimator
from ..utils import check_random_state
from ..utils.validation import _check_sample_weight, check_is_fitted
from ..ut... | huzq/scikit-learn | sklearn/neighbors/_kde.py | Python | bsd-3-clause | 10,961 | [
"Gaussian"
] | d642dac72b0c18007c2acb05002da497533f087847d4cd927d5c4954525e324c |
#!/usr/bin/python3
#
# Copyright (C) 2021 Richard Preen <rpreen@gmail.com>
#
# 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 vers... | rpreen/xcsf | xcsf/utils/types.py | Python | gpl-3.0 | 4,006 | [
"Gaussian"
] | 0df6b07859bd84b26a5e82677ad85310d5f29bb1c2cc4c0c8abfebcfc7084990 |
"""
Copyright (C) 2014, Jaguar Land Rover
This program is licensed under the terms and conditions of the
Mozilla Public License, version 2.0. The full text of the
Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
Maintainer: Rudolf Streif (rstreif@jaguarlandrover.com)
"""
"""
Backend daemon that conne... | rstreif/rvi_backend | server/rviserver.py | Python | mpl-2.0 | 9,882 | [
"Jaguar"
] | cf249da1ebc6af585b8a1fdef99e87a623b224cb44e5d5665df30096f924d0dd |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2017 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors: Kyle A Beauchamp, Matthew Harr... | gph82/mdtraj | tests/test_trajectory.py | Python | lgpl-2.1 | 26,757 | [
"MDTraj"
] | 844f15b92d71d255ce992c30cf0c60dda3eca6e10daac454b03d88cddd51256f |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/analysis/encore/bootstrap.py | Python | gpl-2.0 | 4,913 | [
"MDAnalysis"
] | 70f6d8b40cf6dfd608a535641924fde887d3ac9ff3464e220eda636af2489cd0 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import locale
from col... | Yelp/pootle | pootle/apps/pootle_language/models.py | Python | gpl-3.0 | 6,901 | [
"VisIt"
] | 4f90144869103d7d05d7edc0c3255456d8a2e5e2aaa103daebea9c2a9a165163 |
# coding=utf-8
import logging
import websockets
from websockets import exceptions
import asyncio
try:
from ujson import dumps, loads
except ImportError:
from json import dumps, loads
from .handler import SocketHandler
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
class Socket:
def __ini... | DefaltSimon/Amber | amber/web_modules/sockets.py | Python | mit | 2,079 | [
"Amber"
] | c77572c1094eb4776622bc051a36e756ebd626aa6c975272a755b59b9080c54a |
#!/usr/bin/env python
#%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%#
#%!% ---------------------------------- OPTIMIZE-analyze.py ---------------------------------- %!%#
#%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%!%... | klion93/Exciting-Scripts-Tools | OPTIMIZE-analyze_boron10.py | Python | apache-2.0 | 17,925 | [
"CRYSTAL"
] | 3a6d5157676e66ed903db8ebbea72f48ed08652801a541654d93e8f00f7fae63 |
# -*- coding: utf-8 -*-
"""
Created on Fri May 5 11:26:14 2017
@author: Alberto Terceño
Benchmark module used to perform a grid search for DNN hyperparameters
################# Hyperparameter tuning - Instructions #####################
1 - Choose a dataset (just the name of the csv or npy file)
2 - Choose the h... | zentonllo/tfg-tensorflow | benchmark/tuning_hyperparams.py | Python | mit | 9,543 | [
"NEURON"
] | ecf99226998d5be45ca0ff88741595d978359422ef0719690e3de29aaa7953d7 |
# Copyright 2017 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | deepmind/dm_control | dm_control/utils/rewards.py | Python | apache-2.0 | 4,870 | [
"Gaussian"
] | 009f02389fd2af84b2955324707638e79a0e18b6a540dd7c254abf5096e157f3 |
# Copyright (C) 2017-2021 Novartis Institute of BioMedical Research
# and other RDKit contributors
#
# 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 sourc... | greglandrum/rdkit | Code/GraphMol/SubstructLibrary/Wrap/rough_test.py | Python | bsd-3-clause | 25,348 | [
"RDKit"
] | d4d78472c4c27c2a25341cab383bc2b0e3891ba42f26235b4b0c2cf4ab020751 |
__author__ = 'mirko'
import oauth2 as oauth
import time
import json
import traceback
import config as cfg
consumer = oauth.Consumer(key=cfg.twitter['consumer_key'], secret=cfg.twitter['consumer_secret'])
access_token = oauth.Token(key=cfg.twitter['access_token'], secret=cfg.twitter['access_token_secret'])
client = oa... | mirkolai/twitter-experiment | python/rest API/user-show.py | Python | gpl-2.0 | 1,108 | [
"CRYSTAL"
] | dcb78b59faf767203a854ebc6499f688ea790eb53521cf003454361bd1724603 |
#
# Copyright (C) 2013-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | hmenke/espresso | testsuite/python/virtual_sites_tracers.py | Python | gpl-3.0 | 2,268 | [
"ESPResSo"
] | c59afae9180062c1d3f8470a6524695ea49d2f1961fd7cd4e702b5f41d8bd0d6 |
import os
from .util import filter_destination_params
REMOTE_SYSTEM_PROPERTY_PREFIX = "remote_property_"
def build(client, destination_args):
""" Build a SetupHandler object for client from destination parameters.
"""
# Have defined a remote job directory, lets do the setup locally.
if client.job_dir... | jmchilton/lwr | lwr/lwr_client/setup_handler.py | Python | apache-2.0 | 3,517 | [
"Galaxy"
] | ec3c90398bc3227efec401fb8a33d93a11cee21dcf4894d3f2cf5369bc858786 |
from Firefly import logging
from Firefly.helpers.device_types.switch import Switch
from Firefly.const import SWITCH, AUTHOR
TITLE = 'Virtual Switch'
def Setup(firefly, package, **kwargs):
logging.message('Entering %s setup' % TITLE)
switch = VirtualSwitch(firefly, package, **kwargs)
return firefly.install_compo... | Firefly-Automation/Firefly | Firefly/components/virtual_devices/switch.py | Python | apache-2.0 | 614 | [
"Firefly"
] | ee0b1481b3902724b16747ac5e2c5fb5a02663b00be0ce944a7329a3866c40c7 |
#===============================================================================
#
# CSR.py
#
# This file is part of ANNarchy.
#
# Copyright (C) 2018-2020 Julien Vitay <julien.vitay@gmail.com>,
# Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com>
#
# This program is free software: you can redistrib... | ANNarchy/ANNarchy | ANNarchy/generator/Projection/SingleThread/CSR.py | Python | gpl-2.0 | 19,915 | [
"NEURON"
] | 5bf8902e83eae0b3f84a2f5134854bf66c59207f34a8e6e05dd3b3527e74019c |
# -*- 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 | package/MDAnalysis/core/topologyattrs.py | Python | gpl-2.0 | 46,409 | [
"MDAnalysis"
] | 3b6d78956e9a3362fdad46adfaefe17206f4f7d6f61c702b515659faf54cf942 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/peacock/Input/InputFileEditor.py | Python | lgpl-2.1 | 7,271 | [
"MOOSE"
] | 68a5fd4e6eaf455a7caea86f427eb4d5f4196ecbc3059310d86612076bac8275 |
#!/usr/bin/python
# Pilot implementation of XAS and RIXS intensities calculation for Li2CuO2
#
# The LSOP and WFs extraction parts initially done by Vamshi M. Katukuri (2013)
# Improved and expanded by Nikolay A. Bogdanov (2014)
#
# The RIXS and XAS parts by Nikolay A. Bogdanov (2014, 2015)
# Licensed under the GNU G... | nb3-sci/r-intens | intens.py | Python | gpl-3.0 | 38,229 | [
"Molpro"
] | 6680a3bc4d2907cf986515ac15240fc7963c5479b9026a11e4f22702e2a97aa4 |
'''
ExpSettingsVal -
Validates Experimental Settings against a set of rules known to cause
the Compiler (Compiler.py) to fail if they are not followed
Created on April 17, 2015
Original Author: Brian Donovan
Copyright 2015 Raytheon BBN Technologies
Licensed under the Apache License, Version 2.0 (the "License");
y... | rmcgurrin/PyQLab | ExpSettingsVal.py | Python | apache-2.0 | 13,855 | [
"Brian"
] | a83671692c15d85741b3bc2cd6b82899f1dd623625e85ccbac6071ee45c9f366 |
# Copyright (C) 2016-2019 The ESPResSo project
# Copyright (C) 2014 Olaf Lenz
#
# 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... | pkreissl/espresso | src/python/espressomd/gen_code_info.py | Python | gpl-3.0 | 1,823 | [
"ESPResSo"
] | a81cc227273e80218ae749946e4dbd0fd1d940a77c30211ff873121ea629e560 |
#!/usr/bin/env python
""" Aqui voy a calcular los parametros para un modelo basado
en las estadisticas de ATNF.
"""
###########################################################################################
# http://www.scipy.org/Cookbook/OptimizationAndFitDemo1?highlight=%28fit%29
# NO ES LO MISMO EL TIPO LIST Y... | ovgarol/chaPulin9.0 | atnfParameters/atnfParameters.py | Python | agpl-3.0 | 15,830 | [
"Gaussian"
] | a5aae0a83942fdbe49a19a9949b3ed1ff0b1f76b917a79006bc4dae5e4753da0 |
from setuptools import setup, find_packages
from codecs import open
setup(
name='milight',
version='0.6',
description='Controller for milight/limitlessled Wi-Fi LEDs',
long_description='Visit GitHub for more information: https://github.com/McSwindler/python-milight',
url='https://github.com/McSwin... | McSwindler/python-milight | setup.py | Python | mit | 1,038 | [
"VisIt"
] | 17bbe078c96804a3df7a461d785e8b7ced46fc767d851e7fe27e6a6f73a71d9e |
# Copyright 2017-2018 The Tangram Developers. See the AUTHORS file at the
# top-level directory of this distribution and at
# https://github.com/renatoGarcia/tangram/blob/master/AUTHORS.
#
# This file is part of Tangram.
#
# Tangram is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | renatoGarcia/tangram | tangram/color.py | Python | lgpl-3.0 | 41,552 | [
"Amber"
] | 91bf130301490bfaff715c2a172ccc1ac4ce9d6d2504b76653f54ac6f8376acd |
import vtk
import numpy as np
def _max_length(strings):
if not strings: return 0
return max(len(s) for s in strings)
def _fields_repr(self, indent=4):
indent_str = ' '*indent
field_names = list(self._fields)
field_names.sort()
fill_length = _max_length(field_names) + 1
s = type(self).__n... | RobotLocomotion/director | src/python/director/fieldcontainer.py | Python | bsd-3-clause | 3,155 | [
"VTK"
] | ae985301d1f4d35bdced2ecaad3af477b88d30d5939e685c75e675addc9bc1de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.