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 |
|---|---|---|---|---|---|---|---|
"""
/***************************************************************************
CalcolodannoDialog
A QGIS plugin
-------------------
begin : 2014-11-02
copyright : (C) 2014 by RSE
email : Flo... | FloodRiskGroup/floodrisk | calcolodanno/calcolodannodialog.py | Python | gpl-2.0 | 28,148 | [
"ADF"
] | 306d35caa9c81c7a203e3f582563782d3e51070e6927c0d826f38c2cb11dd637 |
# 2.12.2014 fix negative temp readings. avoid -127 and 85 gdegrees C for a timeout
# to be imported to access modbus registers as counters
# combines previous achannels.py and cchannels.py into one universal acchannel.py. add cfg bit for counter?
# 28 may 2014.... handle negative values
# 27.06.2014 make_svc() handles ... | dcneeme/droidcontroller | droidcontroller/acchannels.py | Python | gpl-3.0 | 53,971 | [
"BLAST"
] | 55f162453b33f445427124972074ef4159c8be95501b49996e20700c893a30da |
"""Computes activation for the given class, neurons, or channels of a CNN.
CNN = convolutional neural network
"""
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
import argparse
import numpy
from keras import backend as K
from gewittergefahr.gg_utils import general_utils
from gewittergefahr.gg_utils import time_c... | thunderhoser/GewitterGefahr | gewittergefahr/scripts/get_cnn_activations.py | Python | mit | 14,054 | [
"NEURON"
] | 12348870c4450118050152d37dc0e15afa9d8a21537baa029e81d0ddfa61eb32 |
import web, os, hashlib
import requests
import threading
import time
import lxml.objectify
urls = (
'/', 'index',
'/reverse', 'reverse',
'/ioc','ioc',
'/search', 'search',
'/search_archive', 'search_archive',
'/add','add',
'/process', 'process',
'/config', 'config',
'/dash','dashboa... | z3ndrag0n/forensicator-fate | webapp/ffate.py | Python | apache-2.0 | 4,303 | [
"Elk"
] | e299b19209ce7e21105b8a6cc036c944ee65c4c91e1a9d1c166a04fd8c70ecc9 |
"""Kernels for Gaussian process regression and classification.
The kernels in this module allow kernel-engineering, i.e., they can be
combined via the "+" and "*" operators or be exponentiated with a scalar
via "**". These sum and product expressions can also contain scalar values,
which are automatically converted to... | ElDeveloper/scikit-learn | sklearn/gaussian_process/kernels.py | Python | bsd-3-clause | 66,251 | [
"Gaussian"
] | cd1d61c45f87dfa602ca10f407196343d271d0ba456dbaff8a450fac4310efd5 |
# Copyright 2016 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... | gunan/tensorflow | tensorflow/python/autograph/converters/control_flow_deprecated_py2.py | Python | apache-2.0 | 22,919 | [
"VisIt"
] | 6a9ebde939e56cfb44845a45d40443e28ecfa76665dfd0bde214189503edc26d |
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | vidartf/hyperspy | hyperspy/tests/model/test_fit_component.py | Python | gpl-3.0 | 4,618 | [
"Gaussian"
] | 3a0d3393d9d6998c1ce578420749a79b70f353f1f0ae30999db4ab6ef3a98f9d |
# Copyright 2017 Max Planck Society
# Distributed under the BSD-3 Software license,
# (See accompanying file ./LICENSE.txt or copy at
# https://opensource.org/licenses/BSD-3-Clause)
"""Training AdaGAN on various datasets.
Refer to the arXiv paper 'AdaGAN: Boosting Generative Models'
Coded by Ilya Tolstikhin, Carl-Joha... | tolstikhin/adagan | cifar_sota.py | Python | bsd-3-clause | 7,946 | [
"Gaussian"
] | b0ddbd9460439c4a0531f6a2ad607b1e743aec6cc7ce01c7325f793a1018f2e0 |
from ..thing import Thing
from ..children import ChildGenerator
# new Thing("sea monster",["sea monster thoughts",["tentacle,0-6","fish fin,0-4","",""],"stinger,20%",["crustacean claw,0-4",""],["crustacean leg,0-8",""],["crustacean shell","scales","fur","exoskeleton",""],["mouth,1-2","beak,1-2"],"skull,80%",["eye,1-8... | d2emon/generator-pack | src/genesys/generator/_unknown/nested/biology/monsters.py | Python | gpl-3.0 | 8,272 | [
"CRYSTAL"
] | fd685e0cb12353fe054403accba763b0a800297fa2b788e849b2ea03811e4bc2 |
# Copyright 2016 Autodesk 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 or agreed to in writing... | tkzeng/molecular-design-toolkit | moldesign/interfaces/biopython_interface.py | Python | apache-2.0 | 6,575 | [
"Biopython"
] | 257bd5b3f132accbeff318dae0bc82c3fbf98e45ad127b42b063171ba44c01fd |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/analysis/Pressure.py | Python | gpl-3.0 | 1,656 | [
"ESPResSo"
] | 104405c0a720887efcd821444c89132283715ea9a62e9c441f20940dca53133e |
# coding=utf-8
# Copyright 2021 The RecSim 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... | google-research/recsim_ng | recsim_ng/applications/latent_variable_model_learning/user.py | Python | apache-2.0 | 6,551 | [
"Gaussian"
] | 6e3b134b8e60eb1511716313aaf7b333937f23e564e764b732e63cffdc0cff9a |
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.test import TestCase
from django.utils import translation, encoding
import jinja2
import mock
from nose.tools import eq_
from caching import base, invalidation
cache = invalidation.cache
from testapp.models import Addon, User
if dja... | DramaFever/django-cache-machine | tests/test_cache.py | Python | bsd-3-clause | 16,475 | [
"ADF"
] | 6c9931a9d0cc178aae30770dc5de699aa13a9464403ddda7b263ea10afa50bc9 |
####################################################################
# Rdesigneur example 3.1
# Making an axon with a propagating action potential.
####################################################################
import numpy as np
import moose
import pylab
import rdesigneur as rd
numAxonSegments = 200
comptLen = ... | BhallaLab/moose-examples | tutorials/Rdesigneur/ex3.2_squid_axon_propgn.py | Python | gpl-2.0 | 1,557 | [
"MOOSE",
"NEURON"
] | e69bf74ffe5f9b96ef1fe11438804aee98b736047107fbc7c99f4a5d805562b7 |
"""
@author: Martin Kuemmel
@organization: LMU / USM
@license: Gnu Public Licence
@contact: mkuemmel@usm.lmu.de
@version: $Revision: $
@date: $Date: $
@changeDate: $LastChangedDate: $
Initialize the test library.
"""
import os.path
import shutil
import unittest
# check tips version
import tips
if float(tips.... | nfourmanoit/TIPS | test/test_tips/testverify/testVerifyFlux.py | Python | gpl-3.0 | 19,047 | [
"Gaussian"
] | 12b7ec792350e7346255d4c04982c3d529ad7194b6f3b41740cfa639124b5154 |
# coding: utf8
# Copyright 2014-2017 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Int... | dquartul/BLonD | unittests/synchrotron_radiation/test_synch_rad.py | Python | gpl-3.0 | 32,285 | [
"Gaussian"
] | 0ba0f5a185b0b855c046814087259077962933ac8bc881010323bbbbf1598108 |
"""
Base class for models. Encapsulates the model description
and getters and setters for the parameters of the model.
Also includes hyperparameters
"""
from parameters import Parameter
from optofit.inference.distributions import *
from optofit.neuron.channels import *
from optofit.simulation.stimulus import Stimulus
f... | HIPS/optofit | optofit/models/model.py | Python | gpl-2.0 | 18,706 | [
"NEURON"
] | 4bf246526960b887b59c0eca38ffdb1be2d494b86c122ef720e06127e2fd8ead |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | mixman/djangodev | django/conf/global_settings.py | Python | bsd-3-clause | 20,793 | [
"VisIt"
] | 400cf7dc397d3ce84b7da8a404cdd38ed17ead2bcb60337f4a3898db3cd5323b |
# 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... | KaiSzuttor/espresso | testsuite/scripts/tutorials/test_06-active_matter__rectification_simulation.py | Python | gpl-3.0 | 1,809 | [
"ESPResSo",
"VTK"
] | c3247864f41643b0389c5e448f019f2438579a9c8e319e234e695d64bdfc3157 |
import utils.dave_reader as DaveReader
import utils.dataset_helper as DsHelper
import utils.filters_helper as FltHelper
import utils.model_helper as ModelHelper
import utils.exception_helper as ExHelper
import utils.plotter as Plotter
import math
import numpy as np
import scipy as sp
import utils.dave_logger as logging... | StingraySoftware/dave | src/main/python/utils/dave_engine.py | Python | apache-2.0 | 111,651 | [
"Gaussian"
] | 02c6cc2d323fca3932ca8c19d20673884cf3ab68d3cea799cf3535482260bbf7 |
runs = [
#'bands05m', 'bands10m', # 'bands20m', # large number of bands bad
#'m101',
#'m102',
#'m103', 'm105', # 'm107', # for Mixer nmaxold matters
#'m051', # many steps, and no advantage for this set of systems
#'m203', # larger mixing better
's103',
'd103', 'd203', 'd253', # Mi... | robwarm/gpaw-symm | gpaw/test/big/scf/g2_1_pbe0_fd.agts.py | Python | gpl-3.0 | 884 | [
"GPAW"
] | 430b94cc8025c5999bea5747c8988c1ea6eef10a24f96020ed0a7afb630b7cf5 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/learn/pytorch/pytorch_pyspark_worker.py | Python | apache-2.0 | 6,543 | [
"ORCA"
] | 3f771ebc2397da96c4c6575192f7d0930eab04305384698f9e540f9283ebbe40 |
##############################################################################
# Imports
##############################################################################
import numpy as np
import mdtraj as md
from mdtraj.utils.six import PY2
from mdtraj.utils import ensure_type
from mdtraj.geometry.hbond import _prep_k... | leeping/mdtraj | mdtraj/geometry/dssp.py | Python | lgpl-2.1 | 3,484 | [
"MDTraj"
] | 7403f603978f23f730d229dc689bb96bd0e85af8ba33ea4864685d15005f3475 |
"""Support for Ecobee Thermostats."""
from __future__ import annotations
import collections
import voluptuous as vol
from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import (
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
CURRENT_HVAC_COOL,
CURRENT_... | lukas-hetzenecker/home-assistant | homeassistant/components/ecobee/climate.py | Python | apache-2.0 | 28,180 | [
"VisIt"
] | 62c441706b376568e2fe7e0a853fe5f17cca1ed83623ad71b874cd8c03731dc8 |
# Copyright (c) 2003-2007 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 ... | yorvic/.vim | bundle/python-mode/pylibs/pylama/checkers/pylint/checkers/exceptions.py | Python | gpl-3.0 | 9,260 | [
"VisIt"
] | b90db6ba2fc6d377f1ee4a54d6e77c5d6c9cf0e83157d0cb9cf6716833e0092a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" A module containing a number of interesting image filter effects,
such as:
* Black-and-white pencil sketch
* Warming/cooling filters
* Cartoonizer
"""
import numpy as np
import cv2
from scipy.interpolate import UnivariateSpline
__author__ = "Michael ... | PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python | Module 3/01_code/filters.py | Python | mit | 6,689 | [
"Gaussian"
] | 9b9e1ab6160f4ed2045cdb4963068ee876ee75921bce3a942efc0d816c46d7d2 |
"""**Class projection**
"""
from osgeo import osr
# The projection string depends on the gdal version
DEFAULT_PROJECTION = '+proj=longlat +datum=WGS84 +no_defs'
def proj4_to_dict(P):
"""Helper to turn a proj4 string into a dictionary for ease of comparison
See issue #304
Args:
P: proj4 string, ... | Jannes123/inasafe | safe/storage/projection.py | Python | gpl-3.0 | 6,217 | [
"NetCDF"
] | 6dfd85a63ba42c958770c6c234fc85f010fd721a7528db940c23efb16873716f |
#! /usr/bin/env python
import argparse, re, os
parser = argparse.ArgumentParser(description = 'Download genome/transcript sequences and gene annotations')
parser.add_argument('species', choices=['hg19','mm10','TAIR10'], help='choose a species (Human, Mouse, Arabidopsis)')
parser.add_argument('-d', '--download', action... | bioxfu/circRNAFinder | src/SeqAnnoDownloadBuild.py | Python | gpl-3.0 | 7,557 | [
"Bowtie"
] | c634fbffa5ede9c35940adccc0f99d590f84a7f75a1e036bb33b67bdd9bbb059 |
'''
[1] Mei, Jian-Ping, et al. "Drug target interaction prediction by learning from local information and neighbors." Bioinformatics 29.2 (2013): 238-245.
[2] van Laarhoven, Twan, Sander B. Nabuurs, and Elena Marchiori. "Gaussian interaction profile kernels for predicting drug-target interaction." Bioinformatics 27.21 ... | akiyamalab/BO-DTI | blm.py | Python | gpl-3.0 | 5,916 | [
"Gaussian"
] | 189a38a26db9722e5f9cf806f74df5593c08363403c68e3d10d8e0a07e9f86d5 |
import sys
import random
import bisect
import pysam
import gzip
import cPickle
import numpy
from time import time, localtime, strftime
import argparse
from multiprocessing import Process
import os
import math
inds={'A':0,'T':1,'G':2,'C':3,'N':4,'a':0,'t':1,'g':2,'c':3,'n':4}
def subprogram(command, name):
os.system(... | cbg-ethz/WES_Cancer_Sim | sim_cancer/tools/Wessim_beta/Wessim2.py | Python | apache-2.0 | 6,678 | [
"pysam"
] | 997e0b7ddd2a898dad9c96b77d9a0d56dc5290dcf6797acf23d1243dd34ad9fc |
# Load Modules
from __future__ import print_function
import os
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
from statsmodels.tsa.arima_model import ARIMA
import statsmodels.api as sm
import statsmodels.tsa.api as smtsa
# Funct... | Diyago/Machine-Learning-scripts | time series regression/ARIMA/ARIMA.py | Python | apache-2.0 | 4,301 | [
"ADF"
] | 4f7c0f2877fa1ca473720f535662989880e4a66112cd8422a52df1f8f3dfe7c9 |
__source__ = ' https://leetcode.com/problems/maximum-depth-of-n-ary-tree/'
# Time: O(N)
# Space: O(N)
#
# Description: Leetcode # 559. Maximum Depth of N-ary Tree
#
# Given a n-ary tree, find its maximum depth.
#
# The maximum depth is the number of nodes along the longest path
# from the root node down to the farthes... | JulyKikuAkita/PythonPrac | cs15211/MaximumDepthofN-aryTree.py | Python | apache-2.0 | 4,218 | [
"VisIt"
] | 448466cc0ab4b24f1d07d6c21d1bbfed61de014456014da550e43ba9e3ccaf37 |
from utilities import read_csv, str2fl
from math import pow, log, exp
from psychrometrics import HumFromRHumTemp
class Weather(object):
"""
Weather
Read epw file
http://bigladdersoftware.com/epx/docs/8-2/auxiliary-programs/epw-csv-format-inout.html
properties
location # location name
... | saeranv/UWG_Python | UWG/weather.py | Python | gpl-3.0 | 3,162 | [
"EPW"
] | af0c2f3ce17fa81baab9a4a27fcc588f1eea65c5c7618d0911f7588823c05a32 |
from django.utils.translation import ugettext_lazy as _
import horizon
class SwiftCluster(horizon.PanelGroup):
slug = "swift_cluster"
name = _("Swift Cluster")
panels = ('regions', 'zones', 'nodes', 'rings', 'containers',)
class SDSManagement(horizon.PanelGroup):
name = _("SDS Management")
slug ... | Crystal-SDS/dashboard | crystal_dashboard/dashboards/crystal/dashboard.py | Python | gpl-3.0 | 925 | [
"CRYSTAL"
] | 9e243bd091e29d8a9db7b35b27c79c11586d4fd18f9f7b791046d3a62791fd69 |
#!/usr/bin/python
#
# Copyright 2010 Brian Dolbec <brian.dolbec@gmail.com>
# Copyright(c) 2010, Gentoo Foundation
# Copyright 2003-2004 Karl Trygve Kalleberg
# Licensed under the GNU General Public License, v2
#
# $Header: $
"""Gentoo's installed packages analysis and repair tool"""
# Move to Imports section after P... | zmedico/gentoolkit | pym/gentoolkit/enalyze/__init__.py | Python | gpl-2.0 | 3,046 | [
"Brian"
] | 662ead7907870dbbee273c06e81392c023056a020ccfd6b9b6cc396e3cd21b55 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import inspect
import logging
import re
from lxml import etree
from django.db.models import Model
from ..models import *
from .data import OPERATOR_TABLE
from .exceptions import BlocklyXmlBuilderException
logger = logging.getLogger(__name__)
def ca... | dgk/django-business-logic | business_logic/blockly/build.py | Python | mit | 7,523 | [
"VisIt"
] | 1163afd26668703b7bd738e91957811713becc09f8197a4bf468b158eaf0ea2c |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2019, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | BenKaehler/q2-feature-classifier | q2_feature_classifier/_vsearch.py | Python | bsd-3-clause | 13,539 | [
"BLAST"
] | 1ac8509d040ca02e6e095efb5e6e40b1d45acedd373de00c176faea3b1936f34 |
import logging
import urllib
from collections import defaultdict
from lxml import html
from django.conf import settings
from django.core.context_processors import csrf
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User, Anonymo... | hwjworld/xiaodun-platform | lms/djangoapps/courseware/views.py | Python | agpl-3.0 | 38,172 | [
"VisIt"
] | 8c2da74928f63c7cd49ffa5b85f8205c70ae0cecfa6a4527f716cd9a0e4c19d0 |
"""Check package URLs for updates
Subclasses of `Hoster` define how to handle each hoster. Hosters are
selected by regex matching each source URL in a recipe. The
`HTMLHoster` provides parsing for hosting sites listing new
releases in HTML format (probably covers most). Adding a hoster is
as simple as defining a regex... | bioconda/bioconda-utils | bioconda_utils/hosters.py | Python | mit | 27,054 | [
"Bioconda",
"Bioconductor"
] | 58a1607e2d5a08ff47f6ce19e0f1fa267d028c6cf16648cad21789f6f6b3d0fa |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyBcbioGff(PythonPackage):
"""Read and write Generic Feature Format (GFF) with Biopython
... | LLNL/spack | var/spack/repos/builtin/packages/py-bcbio-gff/package.py | Python | lgpl-2.1 | 640 | [
"Biopython"
] | b57622c0eee7afc7172e40209da2394f2582ca9bc35d61e424fa38bc9a37037a |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
import os
import xml.sax
import re
from cStringIO import StringIO
from math import sqrt, pi
import numpy as np
from ase.data import atomic_names
from ase.units import Bohr, Hartree
from gpaw import setup_paths
from gpaw.spl... | qsnake/gpaw | gpaw/setup_data.py | Python | gpl-3.0 | 20,200 | [
"ASE",
"GPAW"
] | 7c3c0864e2abeb22462ce556e66410fd0f170340f35b6d5334c4752541cf823a |
import os
import sys
from traceHandler import Trace
import optimizerHandler
import importlib
try:
import copyreg
except:
import copyreg
from types import MethodType
class externalHandler():
"""
Handles models which are using a simulator other than Neuron.
:param command: the command string whi... | KaliLab/optimizer | optimizer/modelHandler.py | Python | lgpl-2.1 | 15,481 | [
"NEURON"
] | 2bf8eb1de916278919929e00852e6bb3c1f46463ca96f27255ee49e80df6619f |
#!/usr/bin/env python
#==============================================================================
#
# CVS Snapshot Generation Script
# Copyright (C) 2000-2005 by Eric Sunshine <sunshine@sunshineco.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the G... | garinh/cs | bin/snapshot.py | Python | lgpl-2.1 | 17,726 | [
"BLAST",
"CRYSTAL"
] | ad2c6586031b7d41a1268a22afdede4e1cf2be9ede4cdbbe5c5b7667862996ed |
import numpy as np
from numpy import sin, cos, pi, sqrt, tan, arccos, arcsin
try:
from scipy.optimize import newton, minimize, curve_fit
from scipy.signal import find_peaks, savgol_filter
except ImportError:
_can_compute_eclipse_params = False
else:
_can_compute_eclipse_params = True
import logging
log... | phoebe-project/phoebe2 | phoebe/solverbackends/lc_geometry.py | Python | gpl-3.0 | 17,980 | [
"Gaussian"
] | 7088dbd915e387ae54399ffd944bd7464fdaaffc04f9bbda40a9b7df1624b8fb |
###############################################################################
# DoubleExponentialDiskPotential.py: class that implements the double
# exponential disk potential
#
# rho(R,z) = rho_0 e^-R/h_R e^-|z|/h_z
########################... | jobovy/galpy | galpy/potential/DoubleExponentialDiskPotential.py | Python | bsd-3-clause | 11,672 | [
"Gaussian"
] | ae634c6336256aa13436cb553cfb0cfb54f83411a98d4ca2ab32c3028d1a51af |
from common.pdb_io import *
from common.interface import *
import subprocess
def mutate_residue(atomgroup, resnum, original_residue, new_residue_name, segid = None):
"""
Mutate the residue resum (in segid) to new_residue_name. The procedure
changes the residue name and retains only backbone and CB atoms ... | dww100/bac | builder/bac_builder.py | Python | apache-2.0 | 5,212 | [
"Amber"
] | af330471949369fc404fc31bf37d6335d524d9bfaa6550d826c566fb30eb3824 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Prepares IPHAS images for public release.
This script will edit all images in the data release to ensure they have
the correct astrometric solution (WCS) and calibration information (PHOTZP).
This script will fail for r376022.fit, which is unfortunately a corrupt file.... | barentsen/iphas-dr2 | dr2/images.py | Python | mit | 19,646 | [
"VisIt"
] | 94dec500e5a9e77e294b730ac83a69a36aad04b8e770588fe20f03a5d07c77b8 |
from .estimator_base import *
class H2OGradientBoostingEstimator(H2OEstimator):
"""
Builds gradient boosted classification trees, and gradient boosted regression trees on
a parsed data set. The default distribution function will guess the model type based on
the response column type run properly the response ... | pchmieli/h2o-3 | h2o-py/h2o/estimators/gbm.py | Python | apache-2.0 | 6,518 | [
"Gaussian"
] | 26df52ed109558ee397c4d1e133d4c75b53e937c985bdeee5dce21a3602ec45c |
'''
Created on Jun 9, 2019
@author: briank
'''
"""
@name: PyHouse/Project/src/Modules/Core/Utilities/Node_tools.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2019-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Jun 9, 2019
@Summary: Routines to
"""
... | DBrianKimmel/PyHouse | Project/src/Modules/Core/Utilities/node_tools.py | Python | mit | 590 | [
"Brian"
] | 3902e5139ac4b67d0d6cad243d9ce39a79ddbe146431007ef83cc59d069d2dc4 |
# coding: utf-8
"""
Acceptance tests for Studio's Setting pages
"""
from __future__ import unicode_literals
import os
from mock import patch
from nose.plugins.attrib import attr
from base_studio_test import StudioCourseTest
from bok_choy.promise import EmptyPromise
from ...fixtures.course import XBlockFixtureDesc
fro... | shabab12/edx-platform | common/test/acceptance/tests/studio/test_studio_settings.py | Python | agpl-3.0 | 25,324 | [
"VisIt"
] | 54f96bb12bcdb21fdf6915b0378c04c28b93acbd76bda3e7af51b25ee7718aaf |
"""Bias matrix tests.
"""
from __future__ import division, absolute_import
import unittest
import numpy as np
from bcn.bias import BiasLowRank, BiasUnconstrained
class TestBiasLowRank(unittest.TestCase):
"""Test to verify that all three models produce finite ndarrays.
"""
def setUp(self):
self.... | a378ec99/bcn | tests/test_bias.py | Python | mit | 3,098 | [
"Gaussian"
] | 9e29aee25cb8cd844e3e9726ceacbfdad5d1cc75a9b7798717ce7ad322d53e12 |
## INFO ########################################################################
## ##
## cutils ##
## ====== ... | matt-hayden/cutils | pycutils/cutils/internal/comment.py | Python | gpl-3.0 | 3,683 | [
"VisIt"
] | 4d98444831c376cff1015ff396217ad9a63f2b6fe95e613c3ec1a1e931ddce6d |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/topology/test_psf.py | Python | gpl-2.0 | 3,941 | [
"MDAnalysis",
"NAMD",
"VMD"
] | 2a00b4171f9163008b8daf42b402fc83a3db7a51d3001ddbbe08c3d520a7944b |
"""
Internal implementation of a SAT solver, used by L{solver.SATSolver}.
This is not part of the public API.
"""
from __future__ import print_function
# Copyright (C) 2010, Thomas Leonard
# See the README file for details, or visit http://0install.net.
# The design of this solver is very heavily based on the one de... | rammstein/0install | zeroinstall/injector/sat.py | Python | lgpl-2.1 | 19,957 | [
"VisIt"
] | c34b55f64622374e6d6a75db99a007f315214f26ed7ad370c7e5df94728d3125 |
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for misc.GritNode'''
import os
import sys
if __name__ == '__main__':
sys.path[0] = os.path.abspath(os.path.join(s... | leighpauls/k2cro4 | tools/grit/grit/node/misc_unittest.py | Python | bsd-3-clause | 15,067 | [
"xTB"
] | 6e304834a1ece7ef9604e7d9a39ea1de9244058e6e7bbbc8dee904a0ed4b302c |
""" DIRAC FileCatalog utilities
"""
__RCSID__ = "$Id$"
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities.List import intListToString
def getIDSelectString(ids):
"""
:param ids: input IDs - can be single int, list or tuple or a SELECT string
:return: Select string
"""
if isinstance(ids, basestring)... | fstagni/DIRAC | DataManagementSystem/DB/FileCatalogComponents/Utilities.py | Python | gpl-3.0 | 586 | [
"DIRAC"
] | 4302c66b502f8f2636ff9f73934e751f0b4c73a44ccf31b98e77490696446a9d |
r"""wamp is a module that provide classes that extend any
WAMP related class for the purpose of vtkWeb.
"""
import inspect, types, string, random, logging, six, json, re, base64
from threading import Timer
from twisted.web import resource
from twisted.python import log
from twisted.int... | hlzz/dotfiles | graphics/VTK-7.0.0/Web/Python/vtk/web/wamp.py | Python | bsd-3-clause | 14,893 | [
"VTK"
] | 39574a5ffba9df013b981fa7e138192da838af85513967fa15d8cd7254bf76a4 |
from rpy2 import robjects
def main():
# load r functions
r_install_packages = robjects.r['install.packages']
r_source = robjects.r['source']
# setup bioconductor
r_source("http://bioconductor.org/biocLite.R")
r_biocLite = robjects.r['biocLite']
# install argparser
r_install_packages(... | shafferm/dada2_qiime1 | scripts/install_dada2_qiime_dependencies.py | Python | mit | 456 | [
"Bioconductor"
] | 3640f83738dd175303d5cc5933d785806a471e9c738d1fcdead6e637fd8e89db |
## numpy-oldnumeric calls replaced by custom script; 09/06/2016
## Automatically adapted for numpy-oldnumeric Mar 26, 2007 by alter_code1.py
##
## Biskit, a toolkit for the manipulation of macromolecular structures
## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner
##
## This program is free software; you can r... | graik/biskit | biskit/molUtils.py | Python | gpl-3.0 | 26,169 | [
"Avogadro"
] | 6ef7060811c2dd4f15eddefa5d1775331a0a1ad3f844f1978e1886fbd6dd130a |
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
"""Unittest for ipaddress module."""
import unittest
import re
import contextlib
import operator
import ipaddress
class BaseTestCase(unittest.TestCase):
# One big change in ipaddress over the original ipaddr module is
# error rep... | timm/timmnix | pypy3-v5.5.0-linux64/lib-python/3/test/test_ipaddress.py | Python | mit | 74,242 | [
"FEFF"
] | 910ed20bcd93c7542a0297d4c6442786bd0db4934cfa4f519fd2894e053e5c02 |
"""
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | jungla/ICOM-fluidity-toolbox | netcdf.py | Python | gpl-2.0 | 32,158 | [
"NetCDF"
] | c1462fcfd20d25b8b849459e510fa1a0ca2bc8ca0d122f45a800adf13029c233 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess as sp
from Bio import SeqIO
from Bio.Seq import Seq
from .config import BCFTOOLS_PATH
from .config import BWA_PATH
from .config import MARK_DUPLICATES_JAR_PATH
from .config import MASK_MIN_DEPTH
from .config import MASK_MIN_QUALITY
from .config... | TheCulliganMan/cgap | cgap/build_consensus.py | Python | gpl-3.0 | 8,889 | [
"BWA"
] | 6c9712f47c1137674f1656210d2262786fa600dfcf70591860dc3170c9c45493 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/esutil/NormalVariate.py | Python | gpl-3.0 | 1,754 | [
"ESPResSo"
] | 9e4e154022ceee760e861ed9f13d354aa73a8c19661d88175286bd9aad1b14b1 |
"""
# Notes:
- This simulation seeks to emulate the CUBA benchmark simulations of (Brette
et al. 2007) using the Brian2 simulator for speed benchmark comparison to
DynaSim. However, this simulation does NOT include synapses, for better
comparison to Figure 5 of (Goodman and Brette, 2008).
- The time taken to si... | asoplata/dynasim-benchmark-brette-2007 | Brian2/brian2_benchmark_CUBA_nosyn_compiled_0016.py | Python | gpl-3.0 | 2,138 | [
"Brian"
] | 2b2687fa476d97ada0b17edcd0aaabe371b8d66917937c1413c166fb5272d5a9 |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2007-2008 Matthew Perry
Copyright (C) 2008-2010 Borys Jurgiel
/***************************************************************************
* *
* This program is free software; you can redistribute it a... | imincik/pkg-qgis-1.8 | python/plugins/plugin_installer/installer_gui.py | Python | gpl-2.0 | 41,029 | [
"VisIt"
] | 8c4bfe54a896bcecd23a4e911d83340b182ff2807fdbc95e26570f8b90128630 |
#
# File:
# TRANS_read_netCDF.py
#
# Synopsis:
# Illustrates how to read a netCDF file
#
# Categories:
# I/O
#
# Author:
# Karin Meier-Fleischer, based on NCL example
#
# Date of initial publication:
# September 2018
#
# Description:
# This example shows how to read a netCDF file.
#
# Effects... | KMFleischer/PyEarthScience | Transition_examples_NCL_to_PyNGL/read_data/TRANS_read_netCDF.py | Python | mit | 2,055 | [
"NetCDF"
] | 1564432cf05f6c715c332f1232e4322715d2c2df7b84b23288429aeb61d46381 |
# New cli for testing
import datetime
from pathlib import Path
import click
import openmmtools.utils
from perses.app.setup_relative_calculation import getSetupOptions
percy = """
MMMMMMMMMMMMXo:ccldOKNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMWxcxOkxdodddxxxk0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMM... | choderalab/perses | perses/app/cli.py | Python | mit | 7,497 | [
"OpenMM"
] | 09de8c4e7f423ee748ee07e88e88988d13a7ac13a660aec58bc2269456f776e7 |
import json
from octopus.server.orientdb.orientdb_server_command import OrientDBServerCommand
class OrientDBPluginExecutor(object):
def __init__(self, server_host, server_port):
self.command = OrientDBServerCommand(server_host, server_port)
def execute(self, pluginname, classname, settings=None):
... | octopus-platform/bjoern | python/octopus-tools/octopus/server/orientdb/orientdb_plugin_executor.py | Python | gpl-3.0 | 582 | [
"Octopus"
] | 73ddfd73cbab6e208797eebbed40728e3aef6710ce986a8c5768034cf0bb60de |
# -*- coding: utf-8 -*-
"""Functions to plot evoked M/EEG data (besides topographies)."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# C... | Teekuningas/mne-python | mne/viz/evoked.py | Python | bsd-3-clause | 106,681 | [
"Gaussian"
] | 0b9b1d8969cd048d3b3fd12238c0796b41f2a37f19f31d1d25b9f26acdd58cf3 |
''' COSMO-VIEW
Script: drawing.py
Changes:
J. Ballabrera, December 2017
EGL, 06/2020:
No more support to python 2.7
Support to Basemap deprecated and updated to cartopy
A consola can be added to the main window (it requires
to change all prints and use instead the tools.toconsola()
functio... | quimbp/cosmo | modules/cosmo/drawing.py | Python | mit | 475,691 | [
"NetCDF"
] | 4917991fd1b398142cfe78afea401dd769cd4bb8c61f1c3b9c01156d61888558 |
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
# Copyright: (C) 2001 Centro de Pesquisas Renato Archer
# Homepage: http://www.softwarepublico.gov.br
# Contact: invesalius@cti.gov.br
# License: GNU ... | paulojamorim/invesalius3 | invesalius/gui/task_navigator.py | Python | gpl-2.0 | 98,486 | [
"VTK"
] | bbba4f5f419080f09d33643519d2fa65a0e0097c15db26aa41f5dcd8d4ca468a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
# TODO: put pa... | briancohan/fmapi | setup.py | Python | mit | 1,771 | [
"Brian"
] | 252134288a0ecaa789bd97df4a242617477042116845dcbf313f2c4cc5682010 |
# (c) 2012-2018, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | chouseknecht/galaxy | galaxy/api/throttling.py | Python | apache-2.0 | 3,329 | [
"Galaxy"
] | 8c34628f8edd9dd4a5c9d2c497f350978293688043cfaa21eaa1e7cdcf9903f7 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Rackspace
# Copyright (c) 2011 X.commerce, a business unit of eBay 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 t... | maoy/zknova | nova/tests/network/test_manager.py | Python | apache-2.0 | 94,348 | [
"FEFF"
] | b40d8d80d522338b2939709ebbced70eb2a555c3ec64e798788406d8b89dab1b |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/lib/__init__.py | Python | gpl-2.0 | 14,177 | [
"Brian"
] | 7d3bf1fc63400ecd11ffa72b11c288fdf04373a8ca821ba3fa32ceb10c91a16c |
from __future__ import division, absolute_import, print_function
import os
import sys
import types
import re
from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype
from numpy.core import product, ndarray, ufunc
__all__ = ['issubclass_', 'issubsctype', 'issubdtype',
'deprecate', 'deprecate_w... | alephu5/Soundbyte | environment/lib/python3.3/site-packages/numpy/lib/utils.py | Python | gpl-3.0 | 36,117 | [
"VisIt"
] | 06899a5bd4fae1f1db1a51c5dcd0bcef0ac6c99e57311c89145cdf55bf98412c |
# 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 | robust_optim/optim.py | Python | apache-2.0 | 12,482 | [
"CDK"
] | 69e842e67f369d1284aa3db7cca5318fcb438884e26b35413e57269be89ab6cf |
# This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | mitya57/debian-buildbot | buildbot/test/unit/test_steps_shell.py | Python | gpl-2.0 | 36,531 | [
"exciting"
] | 14dde78dcfca2eb6770e89774d18bb23f9099aa974398f8e8911b8252aa0f301 |
#!/usr/bin/env python3
"""this is a short script that runs findRFI and saves the results to a python pickle file"""
import sys
import numpy as np
import matplotlib.pyplot as plt
from LoLIM.utilities import processed_data_dir, logger
from LoLIM.IO.raw_tbb_IO import MultiFile_Dal1, filePaths_by_stationName
#from LoLI... | Bhare8972/LOFAR-LIM | LIM_scripts/examples/run_findRFI.py | Python | mit | 2,489 | [
"Brian"
] | d6cc4389d11b619529b15e32d5350b8261e0a4560f4f4bc7673432b12e377ab6 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2017 Malcolm Ramsay <malramsay64@gmail.com>
#
# Distributed under terms of the MIT license.
"""Testing the crystal class of statdyn."""
from pathlib import Path
import hoomd
import numpy as np
import pytest
from hypothesis import given, ... | malramsay64/MD-Molecules-Hoomd | test/crystal_test.py | Python | mit | 3,465 | [
"CRYSTAL"
] | 8fc2cf55a24822243c5d009c81ccd98abe1759184e8d68e8424111fcd75de216 |
# J. Pocahontas Olson June 2016
# An API simulating a source of Fibonacci numbers with some noise.
# For instance, poorly defined bumps on tree trunks, a hard to measure bunny population,
# visual scan of arrangement of sunflower seeds, or any other system where you
# know your values are fibonacci numbers, but... | Aturen/Fibonacci | noisy_input_API.py | Python | apache-2.0 | 1,743 | [
"Gaussian"
] | b61752d3eb324d5a7c48d19f6141528e84bbbcff0983e6629108299d1a3956f0 |
import warnings
import numpy as np
from .. import coding, conventions
from ..core import indexing
from ..core.pycompat import integer_types
from ..core.utils import FrozenDict, HiddenKeyDict
from ..core.variable import Variable
from .common import AbstractWritableDataStore, BackendArray, _encode_variable_name
# need... | shoyer/xarray | xarray/backends/zarr.py | Python | apache-2.0 | 25,673 | [
"NetCDF"
] | 4d326f87c35625e05ea0346abfaa3d395e167b1f51bad9712f0c3b5b5c418a53 |
#! /usr/bin/env python3
# Table Printer Chap. 6
# Function for taking lists of strings and displays in an organized table
tableData = [['apples','oranges','cherries','bananas'],
['Alice','Bob','Carol','David'],
['dogs','cats','moose','goose']]
def printTable(dataLists):
colWidths = [0] ... | lotcom/automateBoringstuffPython | Chap6PracPrintTable.py | Python | cc0-1.0 | 625 | [
"MOOSE"
] | 09941de4fdfcaf3c5dad1b694d304d64845ca6a39000e6b79aaf77d81f00efa2 |
# 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 u... | nusdbsystem/incubator-singa | test/python/test_operation.py | Python | apache-2.0 | 11,250 | [
"Gaussian"
] | 7e3167b4080d7127d02946624efd5e82b8d6b0d92ebeab2bd5cd619d8f15c613 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | dezynetechnologies/odoo | addons/project/project.py | Python | agpl-3.0 | 80,406 | [
"VisIt"
] | 7cb86e8579d0ff660bac52973351e4a303cec4b5f8d5f56e3494c6ea741bd5b3 |
import netCDF4 as nc4
import numpy as np
# Model datatype
float_type = "f8"
# Set the height
kmax = 512
zsize = 0.5
dz = zsize / kmax
# Define the variables
z = np.zeros(kmax)
b = np.zeros(kmax)
# Create non-equidistant grid
alpha = 0.7
for k in range(kmax):
eta = -1. + 2.*((k+1)-0.5) / kmax
z[k] = zsize... | microhh/microhh | cases/rayleighbenard/rayleighbenard_input.py | Python | gpl-3.0 | 693 | [
"NetCDF"
] | 925c1931babd252d336e970808016bf1c07835c3d287c6462446628b9957530c |
#!/usr/bin/env python
# Copyright 2014->future! Mikko Korpela
#
# 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 ... | mkorpela/pabot | pabot/pabot.py | Python | apache-2.0 | 59,396 | [
"VisIt"
] | 3b4fb64951c2c82a1a6ab442e4b1fc48de25eaa090e7286d3ff3b2dec3373284 |
"""Runs gene fusion caller with EricScript.
Install EricScript via `bcbio upgrade --toolplus ericscript`,
or manually add the path to conda environment where it can be found
to the system config.
Reference data can be installed via `bcbio upgrade --datatarget ericscript`.
Alternatively, you can add path to the database... | biocyberman/bcbio-nextgen | bcbio/rnaseq/ericscript.py | Python | mit | 5,999 | [
"BWA"
] | 620a92e53565cdaaca3ce655e233a86d37c98f4ce37143aa9209eaff4609ba55 |
import os,sys
import h5py
import numpy as np
# lflib imports
from lflib.iterative_deconvolution import LightFieldOperator
from lflib.calibration import LightFieldCalibration
from lflib.volume import LightFieldProjection
from lflib.optics import compute_light_field_psf
from lflib.optics import LensletArray
from lflib.i... | sophie63/FlyLFM | stanford_lfanalyze_v0.4/lflib/operator_analysis.py | Python | bsd-2-clause | 15,765 | [
"Gaussian"
] | ecb5c8b407dff645ca152cdc52e6eaeb7a94ae2118807285647818f0f1bd6b87 |
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange 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 applic... | adviti/melange | tests/app/soc/modules/gsoc/logic/test_cleaning.py | Python | apache-2.0 | 1,980 | [
"ASE"
] | d4c968413173cd48e38c0c0e051da4445d8e15b06d212b15e05ffce8c5a6707a |
from __future__ import print_function
import time
from math import pi
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.glyphs import Line, Quad
from bokeh.objects import (
Plot, ColumnDataSource, DataRange1d, FactorRange,
LinearAxis, CategoricalAxis, Grid, Legend,
SingleInt... | jakevdp/bokeh | examples/glyphs/population_server.py | Python | bsd-3-clause | 4,649 | [
"VisIt"
] | 1159e8bd051b76dd99a676a3226e2516265ed2d823bca2377cd4f5f73c526965 |
# .. coding: utf-8
# $Id: __init__.py 7971 2016-09-13 19:11:48Z milde $
# Author: Engelbert Gruber, Günter Milde
# Maintainer: docutils-develop@lists.sourceforge.net
# Copyright: This module has been placed in the public domain.
"""LaTeX2e document tree Writer."""
__docformat__ = 'reStructuredText'
# code contributi... | bgris/ODL_bgris | lib/python3.5/site-packages/docutils/writers/latex2e/__init__.py | Python | gpl-3.0 | 124,872 | [
"VisIt"
] | 2181994cf9e636ebd512678eb1c2b6b21455ed6817eaba203cb79fea8f58b267 |
# pylint: disable=protected-access
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import tempfile
from DIRAC.Interfaces.API.Job import Job
from DIRAC.tests.Utilities.utils import find_all
def helloWorldJob():
job = Job()
job.setName("helloWorld")... | ic-hep/DIRAC | src/DIRAC/tests/Utilities/WMS.py | Python | gpl-3.0 | 1,186 | [
"DIRAC"
] | 3c4ad0cb8591c993688ca1d8345c5de61bb31c36c8f976466b928e26c2f8f7b6 |
#* 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/lgpl-2.1.html
import os
i... | harterj/moose | python/moosesqa/check_documents.py | Python | lgpl-2.1 | 2,375 | [
"MOOSE"
] | bcb5088592a2c0d96cf801989a82138de6c0c9c8df72077b396ad06feb23158b |
# -*- coding: utf-8 -*-
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import re
from lxml.cssselect import CSSSelector
from zope.testbrowser.browser import Browser, ListControl
from splinter.element_list i... | lrowe/splinter | splinter/driver/zopetestbrowser.py | Python | bsd-3-clause | 12,426 | [
"VisIt"
] | d7d0064722cd6d7bc3f9ece144f23ab3d25e1194738718cb06d5859fff01e6fa |
# -*- coding: utf-8 -*-
# creates: surface.png
import os
from ase import *
execfile('N2Cu.py')
image = read('N2Cu.traj@-1')
write('surface.pov', image, transparent=False, display=False, run_povray=True)
| freephys/python_ase | doc/tutorials/surface.py | Python | gpl-3.0 | 204 | [
"ASE"
] | 21d7c0a97d1c530643ab7d232ad54414c56dfac0649085346f58df2c9dd869d1 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2012 Brian G. Matherly
# Copyright (C) 2009 Gary Burton
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2010 Nick Hall
# Copyright (C) 2013-2014 Paul Franklin
#
# This program is free software; you can redistribute it and/or modif... | SNoiraud/gramps | gramps/plugins/textreport/tagreport.py | Python | gpl-2.0 | 35,291 | [
"Brian"
] | 7d90018ad07f41753f6176df187dcb6c4e601324e0a6980a20fccf3fc35d3a27 |
from fabric.api import task, local, run, cd, sudo
from fabric.contrib.files import upload_template
from fabric.context_managers import settings
from fabric.operations import put
from fabric import state
import os
from boto import ec2
config = {
'server_name': 'tiranacode',
'port': 80,
'remote_install_dir... | tiranacode/jap-jete-admin | fabfile.py | Python | bsd-3-clause | 3,869 | [
"GULP"
] | 3e2ae74dfb7b7f16838a5b45c66de35b539f7a5a30a5f0dcf6d2f292a1e2e023 |
#!/usr/bin/python
#
# Copyright 2015 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 required b... | coxmediagroup/googleads-python-lib | examples/adwords/v201506/basic_operations/add_text_ads.py | Python | apache-2.0 | 3,121 | [
"VisIt"
] | d8842ff156471b415803a7d4ab05245fdcb358311b84c05d21cc6118072cac4b |
# Copyright: (c) 2017, Brian Coca <bcoca@ansible.com>
# Copyright: (c) 2018, Ansible Project
# 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
import sys
import argparse
from operator im... | indrajitr/ansible | lib/ansible/cli/inventory.py | Python | gpl-3.0 | 15,510 | [
"Brian"
] | 6caf7d3ad23c7165844ba1415bef4ea1e63f151f2c6a60180d4f8f36add27e5c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.