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 -*-
import math
import os
import tensorflow as tf
import numpy as np
import pandas as pd
import pickle
import pickle as pkl
import cv2
import skimage
import random
import tensorflow.python.platform
from tensorflow.python.ops import rnn
from keras.preprocessing import sequence
from collections import... | dricciardelli/vae2vec | capt_gen_o2e_aux_cs.py | Python | mit | 40,074 | [
"Gaussian"
] | a53ccf64b1b6bc368f73d7d97bbb9ed5e2434ee212268ac38f0016dfac54455c |
"""
*******************************************************************
Copyright (c) 2017, 2019 IBM Corp.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
and Eclipse Distribution License v1.0 which accompany this distributi... | JonnyWong16/plexpy | lib/paho/mqtt/properties.py | Python | gpl-3.0 | 17,815 | [
"FEFF"
] | 8144a47cedda009c17b0540e97c9415ab60c356b5ae83d9c9388f8eec5cf7400 |
import threading
import glob
import gzip
try:
from StringIO import StringIO # Python 2.7
except:
from io import StringIO # Python 3.3+
import uuid
import json
import base64
import re
import os
import sys
from collections import defaultdict
import pandas as pd
from prettytable import PrettyTable
import pybars... | RaoUmer/db.py | db/db.py | Python | bsd-2-clause | 71,351 | [
"Brian"
] | 93a47f584749f20475bf1acf915505da6d9baf42fcae9b5c04c67b2279ea173a |
#!/usr/bin/python
# (C) 2013, Markus Wildi, markus.wildi@bluewin.ch
#
# 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, or (at your option)
# any later version.
#
# Thi... | jstrobl/rts2 | scripts/rts2saf/rts2saf/analyze.py | Python | lgpl-3.0 | 14,329 | [
"VisIt"
] | 30f7f612ee3deb58a4e00b39446b194cf886a9159b0ea4c1cb8fdc40adcc4260 |
# Copyright (C) 2012-2016, 2019
# 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 term... | MrTheodor/espressopp | src/interaction/FENE.py | Python | gpl-3.0 | 6,071 | [
"ESPResSo"
] | 75c02989dde8db46eb3ff14257edfd3f2dc71844ec926bc2e40f73f4790c5dac |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2022, 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.
# ------------------------------------------------... | qiime2/q2cli | q2cli/__main__.py | Python | bsd-3-clause | 1,275 | [
"VisIt"
] | 983e8a3856d2f7b91bf0d2b74a4b9d936e261fff7716fe89854a18b70ddcb34e |
from dirac.tests import *
class TestUserdataController(TestController):
def test_index(self):
response = self.app.get(url_for(controller='web/userdata'))
# Test response...
| DIRACGrid/DIRACWeb | dirac/tests/functional/test_web_userdata.py | Python | gpl-3.0 | 195 | [
"DIRAC"
] | b8fa4fd1fec6c8ebf0aa2739b1d7b4ba027ec23ff24ee9c639eca509075bc28d |
#!/usr/bin/env python3
#pylint: disable=missing-docstring
#* 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
... | nuclear-wizard/moose | python/chigger/tests/clipping/box_clip.py | Python | lgpl-2.1 | 922 | [
"MOOSE",
"VTK"
] | 96032b74c0563c616830636d8f8319397e4866b93468cc5f0b28f55c263f6844 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 19 March 2012
@author: tcezard
'''
import sys
import os
import logging
from optparse import OptionParser
from collections import defaultdict, OrderedDict, Counter
import pysam
from utils import utils_logging, utils_commands
import command_runner
from utils.... | tcezard/RADmapper | bin/RAD_merge_bam_files.py | Python | mit | 10,981 | [
"pysam"
] | 8d56d5ad19786f67f7184b0d5788f1cdea3c14a81f61fd36cb4c27e2aa2c000a |
from .lpi_filter import inverse, wiener, LPIFilter2D
from ._gaussian import gaussian
from .edges import (sobel, sobel_h, sobel_v,
scharr, scharr_h, scharr_v,
prewitt, prewitt_h, prewitt_v,
roberts, roberts_pos_diag, roberts_neg_diag,
laplac... | rjeli/scikit-image | skimage/filters/__init__.py | Python | bsd-3-clause | 1,983 | [
"Gaussian"
] | a8e88d85450c8d627706d9ea0f760bc85cee43206b8ccfab87b4ee2e50b4cb0a |
# context.py - changeset and file context objects for mercurial
#
# Copyright 2006, 2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from node import nullid, nullrev, short, hex, bin
from i18n im... | hekra01/mercurial | mercurial/context.py | Python | gpl-2.0 | 69,324 | [
"VisIt"
] | 1680bde94c6acc0677be52367128e77e6c29d7577ef7fc734d68a21b225049ea |
"""
Test functions for multivariate normal distributions.
"""
from __future__ import division, print_function, absolute_import
import pickle
from numpy.testing import (assert_allclose, assert_almost_equal,
assert_array_almost_equal, assert_equal,
assert_array_les... | yuanagain/seniorthesis | venv/lib/python2.7/site-packages/scipy/stats/tests/test_multivariate.py | Python | mit | 48,646 | [
"Gaussian"
] | c74a86bd1475184473ea0a870844d3ab09fd15faa55e7ba017d9d965e3020ec2 |
import sys
from math import sqrt
import numpy as np
import gpaw.mpi as mpi
MASTER = mpi.MASTER
from ase.parallel import paropen
from ase.units import Hartree
from gpaw import debug
import gpaw.mpi as mpi
from gpaw.poisson import PoissonSolver
from gpaw.output import initialize_text_stream
from gpaw.lrtddft.excitation... | qsnake/gpaw | gpaw/lrtddft/omega_matrix.py | Python | gpl-3.0 | 23,441 | [
"ASE",
"GPAW"
] | 762a53b177cc6c478d18ca566606b787fab10e42891d19f65e48b8e6f3c1cd6c |
"""
Copyright 2016 Brian Quach
Licensed under MIT (https://github.com/brianquach/udacity-nano-fullstack-catalog/blob/master/LICENSE) # noqa
"""
from catalog import db
class User(db.Model):
"""User class represents a Catalog App user.
Attributes:
id: An integer of user's id.
name: A string of... | brianquach/udacity-nano-fullstack-catalog | vagrant/catalog/catalog/models.py | Python | mit | 5,474 | [
"Brian"
] | 4d69bcf3177b03713e20d2c16b2f0805a25da0588532dab577aa5c2d30e1dd75 |
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2018, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | rhyolight/nupic.research | htmresearch/regions/GridCellLocationRegion.py | Python | gpl-3.0 | 20,208 | [
"Gaussian"
] | 722a17f5a71ad01b2211ed83cb1cfef09b070c87106d2a1f4db98b106e49a6f0 |
# Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Bio.SearchIO parser for BLAST+ XML output formats."""
# for more info: http://www.ncbi.... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/SearchIO/BlastIO/blast_xml.py | Python | gpl-2.0 | 35,200 | [
"BLAST",
"Biopython"
] | b83cd57a931e9c389c27d550e7385dc253e24abbfbecc28a8fb4ae878b885638 |
"""Visitor/traversal interface and library functions.
SQLAlchemy schema and expression constructs rely on a Python-centric
version of the classic "visitor" pattern as the primary way in which
they apply functionality. The most common use of this pattern
is statement compilation, where individual expression classes m... | dbbhattacharya/kitsune | vendor/packages/sqlalchemy/lib/sqlalchemy/sql/visitors.py | Python | bsd-3-clause | 8,088 | [
"VisIt"
] | f369afdd15fe0b0c71bbf785b3d9dd371c65d41daff89f777308d7d43d5846cb |
# -*- coding: utf-8 -*-
#
# Pyplis is a Python library for the analysis of UV SO2 camera data
# Copyright (C) 2017 Jonas Gliss (jonasgliss@gmail.com)
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License a
# published by the Free Software Foundat... | jgliss/pyplis | pyplis/dilutioncorr.py | Python | gpl-3.0 | 25,064 | [
"Gaussian"
] | f3c02c1c6d84610ef7eee0620051683ccf3147c9bcd8fe9ad3aca178b34f62fa |
""" Problem Set 01 starter code
Please make sure your code runs on Python version 3.5.0
Due date: 2016-02-05 13:00
"""
import numpy as np
from scipy import spatial
from scipy.stats import norm
def my_knn(X, y, k=1):
""" Basic k-nearest neighbor functionality
k-nearest neighbor regression for a numeric test... | statsmaths/stat665 | psets/pset01/pset01_starter.py | Python | gpl-2.0 | 1,819 | [
"Gaussian"
] | 0458ed78026db6cd548b5e25724bc122b21adcec5152711cc3a488b48ce6f90e |
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import mimetypes
import time
from flask import Blueprint
from flask import url_for
from flask import request
from flask import session
from flask i... | damahou/sagewui | sagewui/blueprints/base.py | Python | gpl-3.0 | 3,388 | [
"Jmol"
] | 995292d55dd01f3455f01bf6d903b70ca0be5dc204d7a9c1eba625060d0013c7 |
#External code
import numpy as np
import time
import matplotlib.pyplot as plt
#Py2PAC code
import ThetaBins_class as binclass
import Gp_class as gpclass
import miscellaneous as misc
class CorrelationFunction(object):
"""
This class holds all the info about a correlation function.
It has the CF values, the... | cwhite1026/Py2PAC | py2pac/CorrelationFunction_class.py | Python | bsd-3-clause | 26,048 | [
"Galaxy"
] | defa18a28c3b65a06b3eae843dc6f67ac7657b2a0250f66ec3d4b6b8a824408c |
#!/usr/bin/env python
#
# Appcelerator Titanium Module Packager
#
#
import os, sys, glob, string
import zipfile
from datetime import date
cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
os.chdir(cwd)
required_module_keys = ['name','version','moduleid','description','copyright','license','co... | funkbit/TIKeyboardEvents | build.py | Python | bsd-3-clause | 5,858 | [
"VisIt"
] | c99039fa0c1c019d32f76319681be3b08abe51bcb1fee051e85a9d60673df1a8 |
#!/usr/bin/env python3
from ..lazy import KroneckerProductLazyTensor, lazify
from .index_kernel import IndexKernel
from .kernel import Kernel
class MultitaskKernel(Kernel):
r"""
Kernel supporting Kronecker style multitask Gaussian processes (where every data point is evaluated at every
task) using :class... | jrg365/gpytorch | gpytorch/kernels/multitask_kernel.py | Python | mit | 2,288 | [
"Gaussian"
] | 254be84cbe96797793da19db0d1060acb32d761147a5b5e9e0d659f708d30492 |
import SpaceObejct
class Galaxy(SpaceObejct.SpaceObject):
"""basic data about a galaxy"""
def __init__(self,objid,ra,dec,r,redshift,l_to_sun=None):
SpaceObejct.SpaceObject.__init__(self,objid,ra,dec,redshift)
self.r=r
self.l_to_sun=l_to_sun
| chshibo/CosData_Tools | Galaxy.py | Python | gpl-3.0 | 278 | [
"Galaxy"
] | ff449e05dc98c5897b8b689bdccefd1d68b98de1fc04726719cc26d3ec8f10e8 |
"""
AtomSpace Publisher Extension for socket.io
Extends: http://wiki.opencog.org/wikihome/index.php?title=AtomSpace_Event_Publisher
Forwards ZeroMQ messages from the AtomSpace Publisher module
to a socket.io socket accessible from web applications using
JavaScript and JQuery, including cross-domain requests
Dependenc... | sumitsourabh/opencog | opencog/python/web/socketio/atomspace_publisher.py | Python | agpl-3.0 | 3,238 | [
"VisIt"
] | e235f388e700f1d186ee9e63506a3c01c64061b4053e455d2b4a6648f8ca7677 |
"""Random variable generators.
integers
--------
uniform within range
sequences
---------
pick random element
generate random permutation
distributions on the real line:
------------------------------
uniform
normal (Gaussia... | DarioGT/OMS-PluginXML | org.modelsphere.sms/lib/jython-2.2.1/Lib/random.py | Python | gpl-3.0 | 26,968 | [
"Gaussian"
] | 3ba10c67b689879c85e4435071fb433a7fb75f3b0276e602df379072bd317f8a |
#!/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.
"""Nodes for PPAPI IDL AST"""
#
# IDL Node
#
# IDL Node defines the IDLAttribute and IDLNode objects which are constructed
# by th... | Yukarumya/Yukarum-Redfoxes | browser/extensions/mortar/ppapi/generators/idl_node.py | Python | mpl-2.0 | 13,146 | [
"VisIt"
] | e04c86606c2e315ca39c8df98ea2128a84dd82e010e4ad7401a5dc82f7307db7 |
# 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... | junghans/espressopp | src/analysis/LBOutputVzInTime.py | Python | gpl-3.0 | 3,288 | [
"ESPResSo"
] | 9ea721f1ede53f39cf9ab9001a5c17b8665a6343b455e818c05575be2a3176e9 |
#***********************************************************************
# This code is part of pyCMPL
#
# Copyright (C) 2013
# Mike Steglich - Technical University of Applied Sciences
# Wildau, Germany
#
# pyCMPL is a project of the Technical University of
# Applied Sciences Wildau and the Institute f... | Mangara/ArboralExplorer | lib/Cmpl/pyCmpl/lib/pyCmpl/CmplException.py | Python | apache-2.0 | 2,035 | [
"VisIt"
] | 95e1d5889630ba5aec92287db7104c1816719cf761d50f78f5bb512ba6622ee0 |
'''Convert to and from Roman numerals
This program is part of 'Dive Into Python 3', a free Python book for
experienced programmers. Visit http://diveintopython3.org/ for the
latest version.
'''
class OutOfRangeError(ValueError): pass
class NotIntegerError(ValueError): pass
roman_numeral_map = (('M', 1000),
... | ctasims/Dive-Into-Python-3 | examples/roman4.py | Python | mit | 2,469 | [
"VisIt"
] | 113bbabc9112bc7543180612bbabae301011dfdd99fa563ae4168a86040e2db5 |
#* 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
im... | harterj/moose | python/moosesqa/get_requirements.py | Python | lgpl-2.1 | 9,439 | [
"MOOSE"
] | 7edcc5a7fa02f0415b75d14e97cbec3d79f851ab143b025e91ca5df284ae7e7d |
'''
Authors: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
Created: May 1, 2011
Last Update: May 16, 2011
Copyright (C) 2011 Murphy Lab
Lane Center for Computational Biology
School of Computer Science
Carnegie Mellon University
This program is free software; you can redistribute it and/or modify
it under the terms of the G... | icaoberg/pyslid | pyslid/utilities.py | Python | gpl-3.0 | 11,174 | [
"VisIt"
] | ef0828e25e62185d883b4ef160fb3db23a01024cfcaf41b003a0d1d323921deb |
# -*- coding: utf-8 -*-
# Author: Óscar Nájera
# License: 3-clause BSD
"""
==================
RST file generator
==================
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
# Don't use unicode_literals here (be explici... | Hiyorimi/scikit-image | doc/ext/sphinx_gallery/gen_rst.py | Python | bsd-3-clause | 22,697 | [
"Mayavi"
] | 6213e5eb9b087b3fa6b90a84bbb5a86b52d104150527f6f0049a9183c01a2f53 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import json
import frappe
import frappe.utils
from frappe import _
from frappe.contacts.doctype.address.address import get_company_address
from frappe.desk.notifications import clear_doctype... | mhbu50/erpnext | erpnext/selling/doctype/sales_order/sales_order.py | Python | gpl-3.0 | 37,671 | [
"VisIt"
] | ba6d8c19de8ef8c1f4355ace4a7dd93c16cf8e30a97e373ab5c5be01c2e8c1b1 |
##
# Copyright 2009-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | akesandgren/easybuild-easyblocks | easybuild/easyblocks/t/tinker.py | Python | gpl-2.0 | 6,575 | [
"TINKER"
] | 6b1f827356584aa4e6ab1c232a723d4699db8f150bacd713745bdce7856accc5 |
#!/usr/bin/env python3
import os
from pathlib import Path
import pytest
from pysisyphus.helpers import geom_from_library
from pysisyphus.calculators.IDPP import idpp_interpolate
from pysisyphus.optimizers.BFGS import BFGS
from pysisyphus.optimizers.ConjugateGradient import ConjugateGradient
from pysisyphus.optimizers... | eljost/pysisyphus | tests_staging/test_xtb_hcn_iso/test_xtb_hcn_iso.py | Python | gpl-3.0 | 3,058 | [
"xTB"
] | 0e4d2448216def8d609d0fd77f8a838ddd5e4d4a56e40d16cd46e802e7011c33 |
#this code is copied/stolen/borrowed/modified from various sources including
#https://github.com/zopefoundation/AccessControl
#https://github.com/zopefoundation/RestrictedPython
#https://github.com/danthedeckie/simpleeval
#hopefully we are standing on giants' shoulders
import sys, os, ast, re, weakref, time, copy, math... | piMoll/SEILAPLAN | lib/reportlab/lib/rl_safe_eval.py | Python | gpl-2.0 | 41,243 | [
"VisIt"
] | 2bf56dd7ea32e9ff61789a58946983ab21ed6be4569d78f5786e14559cbdbd48 |
# -*- coding: UTF-8 -*-
# Copyright 2012-2016 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
# $ python setup.py test -s tests.UtilsTests.test_demonames
"""
Example usage:
The first five Belgians:
>>> for i in range(5):
... print(LAST_NAMES_BELGIUM.pop())
Adam
Adam... | lino-framework/lino | lino/utils/demonames/bel.py | Python | bsd-2-clause | 43,545 | [
"Amber"
] | fbecb2dc42d39cb6fe9d0ce37a99877f9f196156abdb4bc16e31366aa456f4a2 |
"""
Container page in Studio
"""
from bok_choy.page_object import PageObject
from bok_choy.promise import Promise, EmptyPromise
from . import BASE_URL
from .utils import click_css, confirm_prompt, type_in_codemirror
class ContainerPage(PageObject):
"""
Container page in Studio
"""
NAME_SELECTOR = '.... | tiagochiavericosta/edx-platform | common/test/acceptance/pages/studio/container.py | Python | agpl-3.0 | 20,786 | [
"VisIt"
] | 2af5d7333d29859ffe8def388214c1eff6ad45b0234ed9f0d7a7cf51b089c771 |
## Automatically adapted for numpy.oldnumeric Jun 27, 2008 by -c
#
# Copyright (C) 2003-2008 Greg Landrum and Rational Discovery LLC
# All Rights Reserved
#
from __future__ import print_function
import random
import os.path,sys
from rdkit import RDConfig,RDRandom
from rdkit.six.moves import xrange
SeqTypes=(list... | adalke/rdkit | rdkit/ML/Data/SplitData.py | Python | bsd-3-clause | 8,765 | [
"RDKit"
] | 9d317b151cde7f9863eff1b14cbafa5d7489bdc30e7b0218e9cd0c6f6b5b1df0 |
#! /usr/bin/env python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | googleapis/google-cloud-datastore | python/demos/todos/todos.py | Python | apache-2.0 | 6,238 | [
"VisIt"
] | 1114d5fe47e8d7baa5619c5cdf8e6ec9e7cd76e2bc735f3e90b5a7719f953878 |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | espressomd/espresso | testsuite/python/features.py | Python | gpl-3.0 | 1,247 | [
"ESPResSo"
] | 4f2679cbff7550fc876aa941632550ecdaeaa88f61a801e64fa2db733c2b273c |
import numpy as np
import os
import struct
import glob
from scipy.io import FortranFile
from .headerdata import *
from .postproc import PostProc
from .pplexceptions import NoResultsInDir
class DummyReader:
def __init__(self, fname="./dummy"):
self.fname = fname
self.maxrec = 0
def read_pos... | edwardsmith999/pyDataView | postproclib/mdmols.py | Python | gpl-3.0 | 20,238 | [
"VMD"
] | d461de9256a0583b429136e99d0f51a941937fd554e69fa80a3d2d01828b0c42 |
"""
Tools to download and process SDSS fits files.
More information can be found at
http://www.sdss.org/dr7/products/spectra/index.html
"""
import gc # garbage collection
import numpy as np
from scipy.ndimage.filters import gaussian_filter1d, uniform_filter1d
from scipy import interpolate
from . import download_with... | astroML/astroML | astroML/datasets/tools/sdss_fits.py | Python | bsd-2-clause | 12,313 | [
"Galaxy"
] | 70e27a4aa539261034ec75a4653cb0a02dfde6e33bc1b902646ecf814824ff46 |
#!/usr/bin/env python
"""
Add or Modify a User info in DIRAC
Example:
$ dirac-admin-add-user -N vhamar -D /O=GRID/C=FR/O=CNRS/OU=CPPM/CN=Vanessa Hamar -M hamar@cppm.in2p3.fr -G dirac_user
"""
import DIRAC
from DIRAC import gLogger
from DIRAC.Core.Base.Script import Script
userName = None
userDN = None
userMail = No... | DIRACGrid/DIRAC | src/DIRAC/Interfaces/scripts/dirac_admin_add_user.py | Python | gpl-3.0 | 3,046 | [
"DIRAC"
] | 69ca683252ca66fff1cc0a1e4639fc53f9bcb7301c8e97f44fbb8a39a0d0cf64 |
# -*- coding: utf-8 -*-
from mock import patch
from nose.tools import eq_
from kitsune.dashboards import models
from kitsune.dashboards.models import (
WikiDocumentVisits, LAST_7_DAYS, googleanalytics)
from kitsune.sumo.tests import TestCase
from kitsune.wiki.tests import document, revision
class DocumentVisitsT... | orvi2014/kitsune | kitsune/dashboards/tests/test_models.py | Python | bsd-3-clause | 4,111 | [
"VisIt"
] | 213210ac71e51abb40d334b0ddaf0e609356f9b26fafa48dbea24a0cc4035904 |
# -*- coding: utf-8 -*-
#
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Joan Massich <mailsik@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
#
# License: Simplified BSD
import numpy as np
import collections.abc
VALID_3D... | cjayb/mne-python | mne/viz/backends/_utils.py | Python | bsd-3-clause | 2,043 | [
"Mayavi"
] | 8a1b0123699d730d1566aa168b2e7c07264c1e30befe8a412cb484ffb65f1244 |
# (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/accounts/forms.py | Python | apache-2.0 | 4,673 | [
"Galaxy"
] | 346945065b1776b5978a606580a48069f424cf1daf1e01745d1dc7ecf8fe3950 |
#! /usr/bin/env python3
# rlib/make_commonfunc_stan.py
"""
===============================================================================
Copyright (C) 2009-2018 Rudolf Cardinal (rudolf@pobox.com).
This file is part of rlib.
Licensed under the Apache License, Version 2.0 (the "License");
you may not... | RudolfCardinal/rlib | make_commonfunc_stan.py | Python | apache-2.0 | 104,644 | [
"VisIt"
] | 8ada0a5c89844369c5d94b72e8aa6f606b4956cc66f9e0e89ce2f2b8fdc96987 |
#!/usr/bin/env python
# coding:utf-8
__version__ = '3.2.0'
__password__ = ''
__hostsdeny__ = () # __hostsdeny__ = ('.youtube.com', '.youku.com')
import os
import re
import time
import struct
import zlib
import base64
import logging
import urlparse
import httplib
import io
import string
from google.appengine.api imp... | bankonme/niix-linux | config/includes.chroot/TOOLS/GoAgent/server/gae/gae.py | Python | gpl-2.0 | 12,292 | [
"VisIt"
] | 1b233b6b637b5d7f1d32391cf25eae21ba173e4dda65585f61da2e65cf33f384 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
For downloading lecture resources such as videos for Coursera classes. Given
a class name, username and password, it scrapes the course listing page to
get the section (week) and lecture names, and then downloads the related
materials into appropriately named files and... | WangYue7477/coursera | coursera/coursera_dl.py | Python | lgpl-3.0 | 38,508 | [
"VisIt"
] | da3b356db795355257e5d5dc269aa99a931755796c7715da79ed942f7ec88b84 |
from sys import exit
from random import randint
class Scene(object):
def enter(self):
print ("This scene is not yet configured. Subclass it and implement enter().")
exit(1)
class Engine(object):
def __init__(self, scene_map):
self.scene_map = scene_map
def play(self):
... | SunWalter/Hard | ex43.py | Python | apache-2.0 | 8,916 | [
"BLAST"
] | 34f28c1bf0f727d0497949984864794c6be8106d6ab0ecbda5599f2cad1995f2 |
##############################################################################
#
# Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __manifest__.py
#
#########################################################################... | CompassionCH/compassion-switzerland | website_event_compassion/models/account_invoice.py | Python | agpl-3.0 | 1,970 | [
"VisIt"
] | 5fa2bfda2e8400f930615891958de5bb9dddf819ec1c82a69bb21ad70be347df |
#!/usr/bin/env python
#Corey Brune - Sep 2016
#This script performs a rewind of a vdb
#requirements
#pip install --upgrade setuptools pip docopt delphixpy
#The below doc follows the POSIX compliant standards and allows us to use
#this doc to also define our arguments for the script.
"""Rewinds a vdb
Usage:
dx_rewi... | mcbrune/delphixpy | v1_7_0/dx_rewind_vdb.py | Python | mit | 11,851 | [
"ASE"
] | df419c92688952c07b7daf821041c44b3779091fb65ddf95b69935e67d7cb22d |
"""Support for Ecobee Thermostats."""
import collections
from typing import Optional
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_HVAC_DRY... | tboyce021/home-assistant | homeassistant/components/ecobee/climate.py | Python | apache-2.0 | 27,136 | [
"VisIt"
] | a16987aeacb0b06c6cef55abe10aef56d2fa229d4890a2277e81e30d9d3f526b |
# (c) 2014, Brian Coca, Josh Drake, et al
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | shawnsi/ansible | lib/ansible/plugins/cache/redis.py | Python | gpl-3.0 | 3,601 | [
"Brian"
] | 28b34f947030f8cdea4cf027194793f0f442a96bfbe044a8e5c2bcfe82d1b2a5 |
#
# 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 n... | wangyixiaohuihui/spark2-annotation | python/pyspark/mllib/util.py | Python | apache-2.0 | 20,370 | [
"Gaussian"
] | 3f044c2a3d4b6d97ff0327835545c35732f39a83d78263e734d894c0d904b801 |
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
ImageMathematics()
| jeromevelut/Peavip | Testing/ImageMathematics.py | Python | gpl-3.0 | 129 | [
"ParaView"
] | 01f9bffc07959e2f4c437f6558fa8e11a307d853e40ad6282c089df1d8d2f43c |
""" :mod: GFAL2_HTTPSStorage
=================
.. module: python
:synopsis: HTTPS module based on the GFAL2_StorageBase class.
"""
# from DIRAC
from DIRAC.Resources.Storage.GFAL2_StorageBase import GFAL2_StorageBase
from DIRAC import gLogger
class GFAL2_HTTPSStorage( GFAL2_StorageBase ):
""" .. class... | andresailer/DIRAC | Resources/Storage/GFAL2_HTTPSStorage.py | Python | gpl-3.0 | 969 | [
"DIRAC"
] | 0de6eb1b6f2d1e5fc1d3cbe747b23d8a7390dd1ccffa2035990930fe891db812 |
#!/usr/bin/env python3
import os
import path_utils
import fsquery
import mvtools_exception
import git_lib
import terminal_colors
import mvtools_envvars
class gvbexcept(RuntimeError):
def __init__(self, msg):
self._set_message(msg)
def _get_message(self):
return self._message
def _set_mes... | mvendra/mvtools | git/visitor/git_visitor_base.py | Python | mit | 8,351 | [
"VisIt"
] | 26fcc96a744d54c79e9f842b0614dd16a1bbe58e303142a65b3e4119f8fb947a |
import cv2
import numpy as np
import sys
import argparse
from os.path import splitext
from os import listdir, makedirs, rename
#cv2.CV_64F, cv2.CV_8UC3
color_mode=cv2.CV_8UC1
#8UC1
def none(img,*args):
return img
def bilateral(img,d,sSpace,sCol):
return cv2.bilateralFilter(img,d,sSpace,sCol)
#def adaptivebil... | OAkyildiz/dataset_tools | bitmask_tool-bilateral.py | Python | mit | 13,892 | [
"Gaussian"
] | 44245a81b608106ca69c47503c4a121bcc2bdc2294b7ac6248f3ed4de0c8718b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module defines classes to represent the density of states, etc.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Pro... | migueldiascosta/pymatgen | pymatgen/electronic_structure/dos.py | Python | mit | 17,341 | [
"Gaussian",
"VASP",
"pymatgen"
] | c509ab70763f736edabfac77ead9bb495d8a060731941cea50521f1e883c87f5 |
#!/usr/bin/env python
"""RNAalignment
Example::
# STOCKHOLM 1.0
AACY023581040 --CGUUGGACU------AAA--------AGUCGGAAGUAAGC-----AAU-C------GCUGAAGCAACGC---
AJ630128 AUCGUUCAUUCGCUAUUCGCA-AAUAGCGAACGCAA--AAG------CCG-A-------CUGAAGGAACGGGAC
target --CGUUGA... | mmagnus/EvoClustRNA | RNAalignment.py | Python | gpl-3.0 | 2,678 | [
"Biopython"
] | 230f429565e515ca5a292c937b03b2f50dd8a3ed87bcaf80cb3ffd10940c76cb |
from __future__ import print_function
import numpy as np
import SimPEG.dask
from SimPEG import (
data,
data_misfit,
directives,
maps,
inverse_problem,
optimization,
inversion,
regularization,
)
from SimPEG.potential_fields import magnetics
from SimPEG import utils
from SimPEG.utils impo... | simpeg/simpeg | tests/dask/test_mag_nonLinear_Amplitude.py | Python | mit | 10,519 | [
"Gaussian"
] | 01d05f662286a10885a119f06e0a13efdde26743179f635c1306bfed63dd6abe |
#!/usr/bin/env python
# Copyright (c) 2011-2019, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Xarray powered Data I/O
^^^^^^^^^^^^^^^^^^^^^^^
Reads data from netcdf-based CfRadial1, CfRadial2 and hdf5-based ODIM_H5 and
other hdf5-flavours (GAMIC).
Writes data to CfRadi... | kmuehlbauer/wradlib | wradlib/io/xarray.py | Python | mit | 66,407 | [
"NetCDF"
] | e40ba4c5a23c28f30f5a1b03a90a4df54a1201abc0d390d59d991a1a38776f7c |
# Copyright (C) 2013 Synapse Wireless, Inc.
# Subject to your agreement of the disclaimer set forth below, permission is given by Synapse Wireless, Inc. ("Synapse") to you to freely modify, redistribute or include this SNAPpy code in any program. The purpose of this code is to help you understand and learn about SNAPpy... | synapse-wireless/bulk-reprogramming | snappyImages/synapse/M41T00CAP.py | Python | apache-2.0 | 6,152 | [
"CRYSTAL"
] | 25d3f2420d30d9f716ba30d016f43b7627dde3e7673e9af6044f49c69c98feb7 |
""" QualityGraph represents a Quality Map of entities as a special color schema
The DIRAC Graphs package is derived from the GraphTool plotting package of the
CMS/Phedex Project by ... <to be added>
"""
import datetime
from pylab import setp
from matplotlib.colors import Normalize
import matplotlib.cm as cm
f... | Andrew-McNab-UK/DIRAC | Core/Utilities/Graphs/QualityMapGraph.py | Python | gpl-3.0 | 7,454 | [
"DIRAC"
] | f5443fbf23bf82f87bb0218b464a2f8e963ebd1ae87f591b3a445b1976914226 |
#!/usr/bin/env python
from nibabel import trackvis
import numpy as np
from copy import deepcopy
from ..streamlines import track_math
from ..volumes.mask_dataset import MaskDataset
from collections import defaultdict
import cPickle as pickle
#from dipy.tracking.utils import streamline_mapping
from traitsui.api import Vi... | mattcieslak/DSI2 | dsi2/streamlines/track_dataset.py | Python | gpl-3.0 | 33,777 | [
"Mayavi"
] | 57f0477f831888c4d5c6f602dda9f75208f4d0d60b6b132ea9bf36ebc777d14a |
#!/usr/bin/python -u
import os, subprocess
from argparse import Namespace
from gmx_lib import run_setup, gro_and_top, box, water
from gmx_lib import counterions, local_energy_minimum
from gmx_lib import solvent_equilibration, production
from gmx_lib import postproduction
from gmx_lib.run_setup import WorkdirStructur... | ivanamihalek/smallmol | gmx08_protein_w_posrestr_RNA.py | Python | gpl-2.0 | 4,451 | [
"Gromacs"
] | f3963f1bb30a9cdfcfe5ede5395a8a0a32c07d0f27281fff8857798eda1b0d56 |
"""
The image module supports basic image loading, rescaling and display
operations.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import os
import warnings
import numpy as np
from matplotlib import rcParams
import matplotlib.artist as m... | Reagankm/KnockKnock | venv/lib/python3.4/site-packages/matplotlib/image.py | Python | gpl-2.0 | 49,749 | [
"Gaussian"
] | 3ea30424f141803a3f7ad5f77c5b0a6ca25eecc9a488a373583b326bdb61acae |
#!/usr/bin/env python
"""
This is an implementation of two-component Gaussian example from
Elements of Statistical Learning (pp 272)
"""
## make imports
from __future__ import division
import sys
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import scipy.stats as stats
class Tw... | ajrichards/bayesian-examples | estimation/two-component-gaussian-em.py | Python | bsd-3-clause | 6,433 | [
"Gaussian"
] | 19e94695ce0704d321bc35d2adf1b5c0756256192b82601b6b8d994170bbd7ac |
from gnuradio import gr
from gnuradio import digital
from gnuradio.gr import firdes
from gnuradio import filter
from math import pi
import numpy
# spent a lot of time here...
# if having trouble demodulating compute the average of noise RX msk_demod in floats
# it should be as close to 0 as possible (.000X is preferab... | levelrf/level_basestation | level/python/msk.py | Python | gpl-3.0 | 5,821 | [
"Gaussian"
] | 45657f90ca4de6c257c500477457d118b11788121806b6aff0c18621a3576618 |
"""
API operations on a data library.
"""
from galaxy import util
from galaxy import exceptions
from galaxy.managers import libraries, folders, roles
from galaxy.web import _future_expose_api as expose_api
from galaxy.web import _future_expose_api_anonymous as expose_api_anonymous
from galaxy.model.orm import and_, not... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/webapps/galaxy/api/libraries.py | Python | gpl-3.0 | 18,689 | [
"Galaxy"
] | 5892c6f6d5699dbdf0eccbe34afbdf93be931aa4ba357514ea33c7eff67f9fa2 |
"""Plot to test line contours"""
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.mlab as mlab
import mpld3
def bivariate_normal(X, Y, sigmax=1.0, sigmay=1.0,
mux=0.0, muy=0.0, sigmaxy=0.0):
"""
Bivariate Gaussian distribution for equal shape *X*, *Y*.
See `bivaria... | jakevdp/mpld3 | mpld3/test_plots/test_contour.py | Python | bsd-3-clause | 1,184 | [
"Gaussian"
] | 5830009cca2032836c414db39472efdaf2750934a3e609bf14eb5b6ab46939e7 |
#!/usr/bin/env python
from glob import glob
from gscripts.qtools._Submitter import Submitter
import sys
import argparse
class CommandLine(object):
"""
Check out the argparse documentation for more awesome things you can do!
https://docs.python.org/2/library/argparse.html
"""
def __init__(self, i... | YeoLab/gscripts | gscripts/mapping/repeat_align.py | Python | mit | 3,875 | [
"Bowtie"
] | 26f7ad6895697dc35a3ef581be3eada693e4da3ef35a940a73c111559295b7e2 |
from functools import total_ordering
import h5py
from progressbar import ProgressBar
import numpy
import random
from rdkit import Chem
#from tsp_solver.greedy import solve_tsp
from sklearn.manifold import MDS
def fingerprint_with_new_index(smiles_file_path, random_order):
prefix = smiles_file_path[:smiles_file_p... | patrick-winter-knime/deep-learning-on-molecules | lsfp/util/neighborhoods.py | Python | gpl-3.0 | 15,004 | [
"RDKit"
] | 3d29c7b20a7bcc949caabc6dc325a8e691a5c0e2bc7729eb279fd3de431394d9 |
# -*- coding: utf-8 -*-
import numpy as np
from fitr.environments.graph import Graph
from fitr.environments.utils import reward_reflection
class DawTwoStep(Graph):
""" An implementation of the Two-Step Task from Daw et al. (2011).
Arguments:
mu: `float` identifying the drift of the reward-determining... | ComputationalPsychiatry/fitr | fitr/environments/dawtwostep.py | Python | gpl-3.0 | 3,509 | [
"Gaussian"
] | 4dabb98c0eebddc6f1c4569c29f7e201497c0eee24f81982abdb9347660056e1 |
# The MIT License (MIT)
#
# Original work Copyright (c) 2016 Taehoon Kim
# Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#... | gheinrich/DIGITS-GAN | examples/gan/network-celebA-encoder.py | Python | bsd-3-clause | 16,075 | [
"Gaussian"
] | a8b26bc830d35cd21dcf55f5f0f167fe149ca44a207e407b9b8c5e528396190f |
# -*- coding: utf-8 -*-
"""
A real simple app for using webapp2 with auth and session.
It just covers the basics. Creating a user, login, logout
and a decorator for protecting certain handlers.
Routes are setup in routes.py and added in main.py
"""
# standard library imports
import logging
import jso... | eugenewong/AirShare | boilerplate/handlers.py | Python | apache-2.0 | 72,160 | [
"VisIt"
] | 3abc3e70f5341188879752de4ffb4f033f146f39760eb039dff70fdd722c2636 |
# 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 FindCirc(Package):
"""Find-circ is a collection of python scripts
detecting head-to-ta... | LLNL/spack | var/spack/repos/builtin/packages/find-circ/package.py | Python | lgpl-2.1 | 1,356 | [
"pysam"
] | 87b79b9055739bd3b6e885c7d9a1e5823fcba97982e2fd207e4fa4b2a8d3c041 |
import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell, GRUCell, MultiRNNCell, DropoutWrapper
distr = tf.contrib.distributions
# RNN decoder for pointer network
class Pointer_decoder(object):
def __init__(self, encoder_output, config):
#######################################
... | MichelDeudon/neural-combinatorial-optimization-rl-tensorflow | Self_Net_TSP/decoder.py | Python | mit | 7,936 | [
"VisIt"
] | c80361c8fc4c046565cc45b5a2a381491334846e76bf5884ee97f3139b54dd3f |
"""Sequence to sequence translation models."""
from deepchem.models import KerasModel, layers
from heapq import heappush, heappushpop
import numpy as np
import tensorflow as tf
from tensorflow.keras.layers import Input, Layer, Dense, Dropout, GRU, Lambda, Conv1D, Flatten, BatchNormalization
class VariationalRandomiz... | deepchem/deepchem | deepchem/models/seqtoseq.py | Python | mit | 23,409 | [
"Gaussian"
] | cd2fdc7723b7ad76abe3bad3debde8a30d4cac46749953f096cd008ed287acb1 |
#!/usr/bin/python
import sys
import random
import math
rtt = {}
num_sites = int(sys.argv[1])
num_hosts = int(sys.argv[2])
sites = {}
points = []
#generate sites over a plane of 1000 x 1000
for i in range(0, num_sites):
x = random.random()*1000
y = random.random()*1000
sites[i] = (x,y)
#now generate poin... | twchoi/tmp-brunet-deetoo | tests/coordinate/generate_rtt.py | Python | gpl-2.0 | 862 | [
"Gaussian"
] | 7cc67d51443cc8fb411a750c87c7e1ddf45d34a3f5d4262008b0feb8792c7c22 |
# Volumetric curvature from Inline and Crossline dip
# as per Weinkauf and Theisel(2003) "Curvature measures of 3D vector fields and their applications"
#
import sys,os
import numpy as np
from numba import autojit
#
# Import the module with the I/O scaffolding of the External Attribute
#
sys.path.insert(0, os.path.joi... | waynegm/OpendTect-Plugins | bin/python/wmpy/Curvature/ex_curvature_from_dip.py | Python | gpl-3.0 | 2,657 | [
"Gaussian"
] | 3fe2c9cbd769151c895fdf8f00553bd97e226873bc6825b34c07263ecc33250c |
"""
Multivariate Conditional and Unconditional Kernel Density Estimation
with Mixed Data Types
References
----------
[1] Racine, J., Li, Q. Nonparametric econometrics: theory and practice.
Princeton University Press. (2007)
[2] Racine, Jeff. "Nonparametric Econometrics: A Primer," Foundation
and Trends in Econ... | bashtage/statsmodels | statsmodels/sandbox/nonparametric/kernel_extras.py | Python | bsd-3-clause | 14,266 | [
"Gaussian"
] | c02ec162d02e27e50f3339821db06b336cbce77d5c2cf294832661d2675ef9da |
########################################################################
# $HeadURL$
########################################################################
""" UserProfileDB class is a front-end to the User Profile Database
"""
__RCSID__ = "$Id$"
import types, os, sys
try:
import hashlib as md5
except ImportError... | rajanandakumar/DIRAC | FrameworkSystem/DB/UserProfileDB.py | Python | gpl-3.0 | 27,519 | [
"DIRAC"
] | bfccab2e32add1fd566d0d1b8cfff956abcfbaa94bac28b08127c64e61f836a0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Brian Coca <brian.coca+dev@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the... | smashwilson/ansible-modules-extras | system/getent.py | Python | gpl-3.0 | 4,181 | [
"Brian"
] | ace7055acd227b6251fe388b23a5f74057306bbc2398c9c1519fc3695d734b0c |
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
# Copyright 2017, National University of Ireland and The James Hutton Insitute
# Author: Nicholas Waters
#
# This code is part of the riboSeed package, and is governed by its licence.
# Please see the LICENSE file that should have been included as part of
# this package.
i... | nickp60/riboSeed | scripts/runme.py | Python | mit | 4,018 | [
"BWA"
] | fdac04292ffd9f3fc7ed11142479d973390c18d068a7bf1ba512d5e85f6d2ad2 |
#!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | Tatsh-ansible/ansible | lib/ansible/modules/cloud/amazon/elb_classic_lb.py | Python | gpl-3.0 | 54,277 | [
"Dalton"
] | 4cf140ee3ebea13365a3b8e7707e5d2a275606e15f9e3384713ad2bba98788e0 |
################################################################################
# #
# Nanomod is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by ... | scottgigante/nanomod | nanomod/summarise_modifications.py | Python | gpl-3.0 | 18,508 | [
"pysam"
] | 0ad970053974fb4269ade39b14fcea0144ca8781469f6b5ce06c94289550759e |
# -*- coding: utf-8 -*-
BIP39ENGWORDLIST = [ \
'abandon','ability','able','about','above','absent','absorb',
'abstract','absurd','abuse','access','accident','account',
'accuse','achieve','acid','acoustic','acquire','across','act',
'action','actor','actress','actual','adapt','add','addict',
... | maxweisspoker/simplebitcoinfuncs | simplebitcoinfuncs/bip39wordlists.py | Python | mit | 125,831 | [
"BLAST",
"CASINO",
"CRYSTAL",
"FLEUR",
"Galaxy",
"Jaguar",
"ORCA",
"RASPA",
"SIESTA",
"VisIt"
] | a868cdee2ced733aeffc6405232ea6658f2970c77887f7cd7a459812e99981c8 |
# GromacsWrapper: run.py
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
:mod:`gromacs.run` -- Running simulations
=========================================
Helper functions and classes around :class:... | PicoCentauri/GromacsWrapper | gromacs/run.py | Python | gpl-3.0 | 12,556 | [
"Gromacs"
] | d405dde86edc40c0a0cf56fcf0739d8e047ad7260c7942c4849a032179732e62 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines utility classes and functions.
"""
import os
import tempfile
from io import open
from subprocess import PIPE, Popen
import numpy as np
try:
from openbabel import pybel as pb
exce... | davidwaroquiers/pymatgen | pymatgen/io/lammps/utils.py | Python | mit | 18,684 | [
"LAMMPS",
"Pybel",
"pymatgen"
] | b84b1b5b6f77f2cdbf52f048aaced15347d78b9b13bcb3fc39e93638c4beef40 |
''' This is a comment
'''
from xml.sax.handler import ContentHandler
from DIRAC.Core.Workflow.Parameter import Parameter
from DIRAC.Core.Workflow.Module import ModuleInstance, ModuleDefinition
from DIRAC.Core.Workflow.Step import StepDefinition, StepInstance
from DIRAC.Core.Workflow.Workflow import Workflow
class W... | Sbalbp/DIRAC | Core/Workflow/WorkflowReader.py | Python | gpl-3.0 | 5,017 | [
"DIRAC"
] | 33dc9b4101018597af3f37c599f07b8abc0f2eb888a8e67ca1bbc389c47c83eb |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | javierwilson/cacaomovilcom | config/urls.py | Python | bsd-3-clause | 1,511 | [
"VisIt"
] | 3b59c977065e9754ad09c9f5389fdad808f958999f469ebda92ea7355922160a |
"Yang/Wu's OEP implementation, in PyQuante."
from math import sqrt
from PyQuante.NumWrap import zeros,matrixmultiply,transpose,dot,identity,\
array,solve
from PyQuante.Ints import getbasis, getints, getJ,get2JmK,getK
from PyQuante.LA2 import geigh,mkdens,trace2,simx
from PyQuante.hartree_fock import get_fock
from... | certik/pyquante | PyQuante/OEP.py | Python | bsd-3-clause | 25,673 | [
"Gaussian"
] | f55867c992efa168a4a5c2a826f946b63b353df3bdfd0bdecb83c0dcb40c9fec |
"""
Temporal propagation of the component: Take a component at birth time
(time 0) and propagate it for its age t to the current position.
trace_epicyclic_orbit traces a 6D point
trace_epicyclic_covmatrix traces covariance matrix
"""
import numpy as np
def convert_cart2curvilin(data, ro=8., vo=220.):
"""
C... | mikeireland/chronostar | chronostar/run_em_files_python/temporal_propagation_marusa.py | Python | mit | 14,146 | [
"Galaxy",
"Gaussian"
] | 472b2bbc07d3c080c1034e74d59d903ddfc998d46797fac1827a51e9eb6b9eb2 |
"""Check that reading and writing .con files is consistent."""
import tempfile
import os
import shutil
from numpy import array
import ase
import ase.io
# Error tolerance.
TOL = 1e-6
# A correct .con file.
CON_FILE = """\
10000 RANDOM NUMBER SEED
0.0000 TIME
7.2200000000 10.8760700623 14.5090868079
84.... | misdoro/python-ase | ase/test/eon/eon_readwrite.py | Python | gpl-2.0 | 13,257 | [
"ASE"
] | 990f99d76407aa91bd103074918f161c406314ab8fbafd1138a915fadb79fb88 |
# Copyright 2000-2002 Andrew Dalke.
# Copyright 2002-2004 Brad Chapman.
# Copyright 2006-2010 by Peter Cock.
# All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Represent a Seque... | asherkhb/coge | bin/last_wrapper/Bio/SeqRecord.py | Python | bsd-2-clause | 47,694 | [
"BioPerl",
"Biopython"
] | 722e87320b90688dfbee72aed54bdbf5ae9f6ef6d626e628aea3e189850da515 |
################################################################################
# #
# Copyright (C) 2010-2018 The ESPResSo project #
# #
# This file is part o... | hmenke/espresso | doc/tutorials/09-swimmer_reactions/EXERCISES/reaction.py | Python | gpl-3.0 | 9,831 | [
"ESPResSo"
] | 55ff43a8dd0a471838e6294e6c2b184f0b8b7a534905292a97c7aa80af8695e8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.