text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python2
#
# Copyright 2008,2009,2011,2012,2015 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, o... | analogdevicesinc/gnuradio | gr-uhd/apps/uhd_siggen_base.py | Python | gpl-3.0 | 12,646 | [
"Gaussian"
] | dffb029efde87bb63227e802b99a888a2a6e047030e5735e1f50fd75398c6058 |
# Various Dijkstra-based algorithm for solving the shortest path problem
#
# Long Le <longle1@illinois.edu>
# University of Illinois
#
import numpy as np
from pqdict import minpq
def dijkstra_pqdict(aMap,start,goal):
# basic, priority-queue version: only works for finite maps
# version with pqdict
M,N = np... | long0612/randProbs | shortestPath/dijkstra.py | Python | mit | 11,135 | [
"VisIt"
] | ca506979176d34fcbd46abe87e050c752b80693d1663b2287d4e2005fe05651d |
# Copyright 2015 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 Intergovernment... | kiliakis/BLonD | __TEST_CASES/main_files/TC5_Wake_impedance.py | Python | gpl-3.0 | 6,577 | [
"Gaussian"
] | e9fee17d2a3a810e2f64bdee32770e70fcccdae91103f2e73880bc86467da212 |
"""
Django module container for classes and operations related to the "Course Module" content type
"""
import logging
from cStringIO import StringIO
from math import exp
from lxml import etree
from path import path # NOTE (THK): Only used for detecting presence of syllabus
import requests
from datetime import datetime... | kamalx/edx-platform | common/lib/xmodule/xmodule/course_module.py | Python | agpl-3.0 | 61,983 | [
"VisIt"
] | e9bd9baf11d1cdbb679e470c883cb708d89e73352327eb155fe648ea59b80537 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.append("/Libs/jsoup-1.8.2.jar")
sys.path.append("/Libs/lucene-analyzers-common-4.10.4.jar")
sys.path.append("/Libs/lucene-core-4.10.4.jar")
sys.path.append("/Libs/lucene-queries-4.10.4.jar")
sys.path.append("/Libs/lucene-queryparser-4.10.4.jar")
sys.pat... | facoy/facoy | Indexer/NewJavaParser_noUS.py | Python | apache-2.0 | 5,197 | [
"VisIt"
] | c5a9856b2b1281330d7a2396ab4f1062b870eaa702b817178a27ef3ce6e1cb0c |
from collections import namedtuple
import crypto
import hashlib
import os
import py
import json
import uuid
import requests
import cPickle as pickle
from util import read_file
from py.path import local as l
OBJ_ID_LEN = 20
EncryptedFile = namedtuple('EncryptedFile', ['id','filename', 'sha1', 'deleted'])
EncryptedFi... | kalafut/sbox | sbox.py | Python | mit | 4,248 | [
"VisIt"
] | e19a8f33a1273522531e43cf89e92686bb00f1fdbf308663f5dcbee8333b7763 |
#!/usr/bin/env python
"""
soda.py
Functions for dealing with the soda model for importation into ROMS
Written by Brian Powell on 07/24/15
Copyright (c)2017 University of Hawaii under the BSD-License.
"""
import numpy as np
from datetime import datetime
import netCDF4
from seapy.lib import default_epoch, chu... | dalepartridge/seapy | model/soda.py | Python | mit | 4,784 | [
"Brian"
] | 916b3e278e6b4f47f955b32183a8d28c39777ab7ae13239b55c5b176481865ee |
import atexit
import os
import sys
import pickle
import shutil
import tempfile
import textwrap
import unittest
import numpy as np
import pytest
try:
import ipytree
except ImportError: # pragma: no cover
ipytree = None
from numcodecs import Zlib
from numpy.testing import assert_array_equal
from zarr.attrs i... | zarr-developers/zarr-python | zarr/tests/test_hierarchy.py | Python | mit | 41,414 | [
"VisIt"
] | c8cfa82c0a674b63466c20a299949b02836ba4e7f1f28ce5004c3cf76f839bff |
""" Models for the shopping cart and assorted purchase types """
from collections import namedtuple
from datetime import datetime
from decimal import Decimal
import pytz
import logging
import smtplib
import unicodecsv
from boto.exception import BotoServerError # this is a super-class of SESError and catches connecti... | pelikanchik/edx-platform | lms/djangoapps/shoppingcart/models.py | Python | agpl-3.0 | 28,084 | [
"VisIt"
] | 44ff308f3d9f18347fb9652130ade5625d65c3935416b69c84fba22879a3c8a4 |
from __future__ import print_function
from collections import namedtuple
import doctest
import os.path
import unittest
from rdkit import Chem
from rdkit import RDConfig
from rdkit.Chem import QED
doLong = False
TestData = namedtuple('TestData', 'lineNo,smiles,mol,expected')
dataNCI200 = os.path.join(RDConfig.RDCode... | rvianello/rdkit | rdkit/Chem/UnitTestQED.py | Python | bsd-3-clause | 4,498 | [
"RDKit"
] | f71dc17a81c69c80a9d77300963dad70e6045e358129260b498ae4ff13304d49 |
from trello import TrelloApi
import sys
# You can use my API key, or get yours at https://trello.com/1/appKey/generate
API_KEY = 'b51d325ae73a0264377da49c031422cf'
# Initialize Trello
try:
with open('token.txt') as f:
TOKEN = f.readlines()[0].strip()
except IOError:
TOKEN = None
trello = TrelloApi(AP... | invernizzi/trello-automator | trello_automator.py | Python | mit | 1,044 | [
"VisIt"
] | d5f359e8971ea89576574b1abfe457841742157f8b41da54a71ca7ecc95b6f7d |
from __future__ import print_function
import numpy as np
import random
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from sklearn.linear_model import LogisticRegression
from .graph import *
from . import node2vec
from .classify import Classifier, read_node_label
from . import line
from . import tad... | thunlp/OpenNE | src/openne/__main__.py | Python | mit | 8,614 | [
"NEURON"
] | b91a77052b928bb7809238b10510bdcdb4710c19e12b0a88069fc89772b62d12 |
"""
Utility functions for transcripts.
++++++++++++++++++++++++++++++++++
"""
from functools import wraps
from django.conf import settings
import os
import copy
import json
import requests
import logging
from pysrt import SubRipTime, SubRipItem, SubRipFile
from pysrt.srtexc import Error
from lxml import etree
from HTML... | a-parhom/edx-platform | common/lib/xmodule/xmodule/video_module/transcripts_utils.py | Python | agpl-3.0 | 36,845 | [
"FEFF"
] | 172224faf5f9ab0eb3a92276de4d4614bc548e622546d58bb43f753e4d5283e6 |
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2019, 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 program is free software: you can redistribute it and/or modify
# it unde... | mrcslws/nupic.research | projects/rsm/active_dendrite.py | Python | agpl-3.0 | 3,322 | [
"NEURON"
] | e7e5c58a7a903f507653b3a8b9d93d1952d7b6ce136e716434ee597a09ba0f24 |
"""
This example can be used to check if the VTK ordering and the ones implemented
in :mod:`pyvisfil.vtk.vtk_ordering` match. It can be useful for debugging
and implementing additional element types.
To facilitate this comparison, and unlike the rest of the package, this example
makes use of the VTK Python bindings.
"... | inducer/pyvisfile | examples/vtk-sample-elements.py | Python | mit | 6,065 | [
"VTK"
] | a47bd08751049c58066cd15ba320f23598d8954e5b6fa6eee4d3326c9164469f |
"""
This module is for canonical hrf specification.
Here we provide for SPM, Glover hrfs and finite timpulse response (FIR) models.
This module closely follows SPM implementation
Author: Bertrand Thirion, 2011--2013
"""
from __future__ import absolute_import
import warnings
import numpy as np
from scipy.stats impor... | alexis-roche/nipy | nipy/modalities/fmri/hemodynamic_models.py | Python | bsd-3-clause | 13,418 | [
"DIRAC"
] | 2e509381f691ac17a0e6a4e3d3ff11e1629f46da43db9e1ab8ccdc52d4902947 |
"""Factor Analysis.
A latent linear variable model.
FactorAnalysis is similar to probabilistic PCA implemented by PCA.score
While PCA assumes Gaussian noise with the same variance for each
feature, the FactorAnalysis model assumes different variances for
each of them.
This implementation is based on David Barber's B... | chrsrds/scikit-learn | sklearn/decomposition/factor_analysis.py | Python | bsd-3-clause | 12,479 | [
"Gaussian"
] | b90c572a1c15904840ac94170b486c33479832455282fc57bbd1de2c4a5c69fd |
#! /usr/bin/env python
from hermes2d import (Mesh, MeshView, H1Shapeset, PrecalcShapeset, H1Space,
LinSystem, Solution, ScalarView, WeakForm, DummySolver)
from hermes2d.examples.c04 import set_bc
from hermes2d.forms import set_forms
from hermes2d.examples import get_example_mesh
mesh = Mesh()
mesh.load(get_e... | solin/hermes2d | python/examples/04.py | Python | gpl-2.0 | 1,104 | [
"Mayavi"
] | b42547755ad5db6a8d1d1152f006d46568fd98f4504a4a87bc330ef08c90efa1 |
# glviewdemo.py ---
#
# Filename: glviewdemo.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Fri Feb 5 16:45:13 2010 (+0530)
# Version:
# Last-Updated: Fri Feb 5 18:00:34 2010 (+0530)
# By: Subhasis Ray
# Update #: 10
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
# ... | BhallaLab/moose-thalamocortical | pymoose/gui/qt/glviewdemo.py | Python | lgpl-2.1 | 2,864 | [
"MOOSE"
] | 34c1f85a45aa75ad905ad2fef6303c608c1cc7621fbd29b276f46204f49a340d |
# coding: utf-8
from __future__ import division, unicode_literals
"""
Some reimplementation of Henkelman's Transition State Analysis utilities,
which are originally in Perl. Additional features beyond those offered by
Henkelman's utilities will be added.
This allows the usage and customization in Python.
"""
__auth... | rousseab/pymatgen | pymatgen/analysis/transition_state.py | Python | mit | 9,164 | [
"VASP",
"pymatgen"
] | caacf5dc1d72cbe5732c38867b18a9b0f30235e059ca69a6bef7ec9d9734e31b |
# ---
# jupyter:
# jupytext:
# formats: ipynb,.pct.py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.3.3
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [markdown]
... | GPflow/GPflow | doc/source/notebooks/theory/FITCvsVFE.pct.py | Python | apache-2.0 | 4,710 | [
"Gaussian"
] | 924a5daa8da8acb005938962b2aeca4a140c9cd45217b51d70f07c316b4897e3 |
import logging
import re
from seqrecord_expanded import SeqRecordExpanded
from seqrecord_expanded.exceptions import MissingParameterError, TranslationErrorMixedGappedSeq
from dataset_creator import Dataset
from create_dataset.models import Dataset as DatasetModel
from Bio.Nexus.Nexus import NexusError
from core impor... | carlosp420/VoSeq | create_dataset/utils.py | Python | bsd-3-clause | 12,672 | [
"Biopython"
] | bbdecf95ab57a46be384a0a960e856d0ecc296f08b38e01330da1713d3114c28 |
"""Some miscellaneous convenience functionality.
"""
# Author: Prabhu Ramachandran <prabhu_r [at] users.sf.net>
# Copyright (c) 2007, Enthought, Inc.
# License: BSD Style.
from os.path import splitext
# We import from tvtk.py and not api.py to prevent circular imports.
from tvtk.tvtk_access import tvtk
from tvtk.com... | dmsurti/mayavi | tvtk/misc.py | Python | bsd-3-clause | 2,116 | [
"VTK"
] | 13328971df9777edcff97e3b9c26f99816258e7ba9fa0989aeeac5d21e813ace |
#! /usr/bin/env python
# FIXME: if it requires a dirac.cfg it is not a unit test and should be moved to tests directory
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import unittest
import time
import os
import shutil
import sys
import six
from DIRAC.Co... | yujikato/DIRAC | src/DIRAC/Resources/Storage/test/FIXME_Test_StoragePlugIn.py | Python | gpl-3.0 | 34,041 | [
"DIRAC"
] | e094c092040c83fecc394ae00bc45f77dc4b7d783e50035930b88720ee21ae7c |
import os
from cx_Freeze import setup, Executable
import cx_Freeze.hooks
def hack(finder, module):
return
cx_Freeze.hooks.load_matplotlib = hack
import scipy
import matplotlib
scipy_path = os.path.dirname(scipy.__file__) #use this if you are also using scipy in your application
build_exe_options = {"packages": [... | JannickWeisshaupt/OpenDFT | src/build_freeze_windows.py | Python | gpl-3.0 | 1,304 | [
"Mayavi",
"pymatgen"
] | ac97a570fb58279bf688c0094b828c91446ecf431b31f8be3e2f4a1b02cfe40b |
# // Copyright (c) <2014> <Brian Wheatman>
from collections import Counter
import random
import copy
# the basic task
class Task():
def __init__(self, set_inputs, inputs_to_output, set_up_time, processing_time,\
output, output_a_round, items_waiting , items_done, in_set_up, counter , on_off , bro... | wheatman/Simulation | simulator.py | Python | mit | 20,544 | [
"Brian"
] | 390dc6a2aa5cffa780e0e87f20f6b8d23b9bfe65c1a65ee96eb8c57b70b87865 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@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 License, or
# (at your option) an... | sgerhart/ansible | lib/ansible/playbook/conditional.py | Python | mit | 10,081 | [
"VisIt"
] | f9205c88935f15c7cb147d202514dec262b5b4c6b0d07134af90065f003fd5bb |
# encoding: utf-8
# 2009 © Václav Šmilauer <eudoxos@arcig.cz>
"""
Module for 2d postprocessing, containing classes to project points from 3d to 2d in various ways,
providing basic but flexible framework for extracting arbitrary scalar values from bodies/interactions
and plotting the results. There are 2 basic component... | bcharlas/mytrunk | py/post2d.py | Python | gpl-2.0 | 13,803 | [
"Gaussian"
] | e33fd24bb88703c2dcd878abe1f238fcc13daa3f4d4feb4dd2798460f51832f7 |
import logging
import os
from six import string_types
from pulsar.managers.util.pykube_util import (
ensure_pykube,
find_job_object_by_name,
find_pod_object_by_name,
galaxy_instance_id,
Job,
job_object_dict,
produce_unique_k8s_job_name,
pull_policy,
pykube_client_from_dict,
sto... | natefoo/pulsar | pulsar/client/client.py | Python | apache-2.0 | 26,015 | [
"Galaxy"
] | 17955c0da1da562b5fede428143df4a1a73985a9ad9756d599405b04268485d7 |
########################################################################
#
# (C) 2013, James Cammarata <jcammarata@ansible.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 ... | blueboxgroup/ansible | lib/ansible/cli/galaxy.py | Python | gpl-3.0 | 30,678 | [
"Galaxy"
] | f7e943e7eed211c140fb30ee9ccf1e8e970bf6d123b1fc223ef28245a349269b |
'''
Created on Mar 16, 2011
@author: schiotz
'''
from ase.md.md import MolecularDynamics
from ase.md.verlet import VelocityVerlet as VelocityVerlet_ASE
import ase
import asap3
import numpy as np
import sys
class VelocityVerlet_Asap(MolecularDynamics):
def __init__(self, atoms, dt, trajectory=None, logfile=None,
... | auag92/n2dm | Asap-3.8.4/Python/asap3/md/verlet_fast.py | Python | mit | 1,828 | [
"ASE"
] | e44fe959f0f70c0fd4431b2b5cc7d117329aede332e4cc75c4f91f7ebee71fd2 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | kain88-de/mdanalysis | package/MDAnalysis/coordinates/PQR.py | Python | gpl-2.0 | 11,342 | [
"CHARMM",
"MDAnalysis"
] | 81493782f01e84b1f59bc54d6892c864397f8363ae21dd579b918f771ffecf8c |
import pickle
import itertools
import numpy as np
import pytest
from numpy.testing import assert_array_almost_equal
from sklearn.neighbors.ball_tree import (BallTree, NeighborsHeap,
simultaneous_sort, kernel_norm,
nodeheap_sort, DTYPE, I... | vortex-ape/scikit-learn | sklearn/neighbors/tests/test_ball_tree.py | Python | bsd-3-clause | 9,692 | [
"Gaussian"
] | 2ea703c915e6b9468d602f74f21eaca292c2a9dbc7473c794c9a2b6c2c4e339c |
"""
A registry for engines, sources, filters and modules.
"""
# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in>
# Copyright (c) 2008-2015, Enthought, Inc.
# License: BSD Style.
# Standard library imports.
from os.path import splitext
import logging
# Enthought library imports.
from traits.api import HasTraits, ... | dmsurti/mayavi | mayavi/core/registry.py | Python | bsd-3-clause | 5,174 | [
"Mayavi"
] | 193a900f90afa24e4de916c5db77c1d470bce030892e05b1ddb656d42961e49a |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | retrography/scancode-toolkit | tests/licensedcode/test_models.py | Python | apache-2.0 | 6,114 | [
"VisIt"
] | a15dc934e9af51520fb8ef0a31e34fb9661c10eba75f8c14b729c4ef66702e1a |
import numpy
from rdkit.ML.Cluster import Murtagh,ClusterUtils
from rdkit.ML.Cluster import Murtagh
print '1'
d = numpy.array([[10.0,5.0],[20.0,20.0],[30.0,10.0],[30.0,15.0],[5.0,10.0]],numpy.float)
print '2'
#clusters = Murtagh.ClusterData(d,len(d),Murtagh.WARDS)
#for i in range(len(clusters)):
# clusters[i].Print()... | rdkit/rdkit-orig | rdkit/ML/Cluster/murtagh_test.py | Python | bsd-3-clause | 900 | [
"RDKit"
] | 864f26483c309a21949fa6d6aad89ad4f3366564dea12debe7893166c3ec1603 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Stochastic variational inference for sparse Gaussian process (SVGP).
For the formulation you can refer to, e.g., Section 2.1 of the following paper:
Salimbeni and Deisenroth 2017, Doubly Stochastic Variational Inference for Deep
Gaussian Processes.
Results (mean and... | thu-ml/zhusuan | examples/gaussian_process/svgp.py | Python | mit | 7,562 | [
"Gaussian"
] | 23f7c89ec498552e6683e3f270c096d37971bf58a90da05b8fe212da207406d7 |
import scipy as sc
from scipy.linalg import eigh
import code
import warnings
def delta(kx,ky,param):
return 0.5*(sc.cos(kx*2*sc.pi)*sc.exp(1j*param[0]*sc.pi)\
+sc.cos(ky*2*sc.pi)*sc.exp(-1j*param[0]*sc.pi))
def omega(kx,ky,param):
return sc.sqrt(param[1]**2+abs(delta(kx,ky,param))**2)
def uk(kx,k... | bdallapi/gpvmc | tools/vmc_legacy_utils/stagflux.py | Python | mit | 7,410 | [
"Gaussian"
] | 8727aae46dfbcbd0261ad862c1195a1e872581c69e331054c72454d648761d08 |
from __future__ import print_function
import numpy as np
import os
from astrometry.util.fits import fits_table
from astrometry.util.starutil_numpy import degrees_between
from astrometry.util.util import Tan
from astrometry.util.miscutils import polygon_area
import tractor.sfd
def annotate(ccds, survey, camera, mp=Non... | legacysurvey/pipeline | py/legacyzpts/annotate_ccds.py | Python | gpl-2.0 | 12,214 | [
"Galaxy",
"Gaussian"
] | 4792c28582cf6d73158d9ea43e48eb2d8fa180644d97889281a846992cddde3d |
# -*- coding: utf-8 -*-
from nipype.interfaces.utility import IdentityInterface, Merge, Function
import nipype.pipeline.engine as pe # pypeline engine
from nipype.interfaces.freesurfer import *
from .ba_maps import create_ba_maps_wf
from nipype.interfaces.io import DataGrabber
def create_AutoRecon3(name="AutoRecon3",... | carolFrohlich/nipype | nipype/workflows/smri/freesurfer/autorecon3.py | Python | bsd-3-clause | 55,045 | [
"Gaussian"
] | 1c620eae9ff7546d6ab0330ec616023cf9ba198e408b68fec080cc2804984118 |
#!/usr/bin/python
# Copyright 2010 Peter Odding <peter@peterodding.com>
# This program is licensed under the MIT license.
# This Python script indexes a local/remote tree of Python HTML documentation
# and creates/updates an index file that maps identifiers to their associated
# URL in the documentation. Each line st... | isohybrid/dotfile | vim/bundle/git:--github.com-xolox-vim-pyref/misc/pyref/spider.py | Python | bsd-2-clause | 4,724 | [
"VisIt"
] | 4072a42a2b9b4dde879c05feb296d7ee038815f6101d4363a11e186266d4ca69 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/International.py | Python | gpl-3.0 | 21,705 | [
"ORCA"
] | 221a9def80869ced2861e3df92b01a10d294f1f9b2d85fc52e27177746661991 |
# this function is used to calculate K-correction for a power-law X-ray SED.
import pandas as pd
from scipy.interpolate import InterpolatedUnivariateSpline as interpol
from scipy.integrate import trapz as tsum
import numpy as np
from ctc_stat import bayes_ci
import sys
from astropy.io import fits
from astropy.table imp... | CTJChen/ctc_astropylib | ctc_xray.py | Python | apache-2.0 | 12,990 | [
"Gaussian"
] | 9c5fc3669da38656d277a8deb0c99c9b651e844af0d50842faf439cff8ec77cd |
"""
Constructs for grouping tool parameters
"""
import logging
log = logging.getLogger( __name__ )
import os
import StringIO
import unicodedata
from basic import ToolParameter
from galaxy.datatypes import sniff
from galaxy.util import inflector
from galaxy.util import relpath
from galaxy.util import sanitize_for_file... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/tools/parameters/grouping.py | Python | gpl-3.0 | 28,764 | [
"Galaxy"
] | 33189f6e14713763345f0a6a861f8ffa0e6fe89e2e08ab280ab46fb706eda0b4 |
#!/usr/bin/env python
# Copyright 2013 The Swarming Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0 that
# can be found in the LICENSE file.
"""Client tool to trigger tasks or retrieve results from a Swarming server."""
__version__ = '0.8.4'
import collection... | baslr/ArangoDB | 3rdParty/V8/V8-5.0.71.39/tools/swarming_client/swarming.py | Python | apache-2.0 | 49,821 | [
"VisIt"
] | 813b4cfb6d7731d2a9a7eee349b799bc3ec4e8bff0c5a157676b88810ddf1116 |
"""
Module for reading and handling samrai data.
"""
import copy
import h5py
import numpy
import re
from floatpy.upsampling import Lagrange_upsampler
from base_reader import BaseReader
class SamraiDataReader(BaseReader):
"""
Class to read samrai data.
"""
def __init__(self, data_directory_path,... | FPAL-Stanford-University/FloATPy | floatpy/readers/samrai_reader.py | Python | lgpl-3.0 | 185,376 | [
"VisIt"
] | d86b8e66ccebd215838fb0cd60a9d9469f4b35e1688442e5797b122a411e4968 |
#-------------------------------------------------------------------
# Note: We can now compute a new D8 flow grid and area grid for
# the new DEM and repeat this process until the flow grid
# no longer changes. Need to use d8_global.py (which
# computes flow and area grids; used by Erode) instead o... | mperignon/component_creator | topoflow_creator/topoflow/smooth_DEM.py | Python | gpl-2.0 | 75,891 | [
"NetCDF"
] | d0eb6072176082e3559df703b26c9403e752e52bcca46b3c9dccb1c35cd7cf9c |
#!/usr/bin/env python3
import sys, argparse, math, gzip, os, pysam, re, logging
import scipy.stats as stats
from copy import copy
from somaticseq.genomicFileHandler.read_info_extractor import *
import somaticseq.genomicFileHandler.genomic_file_handlers as genome
import somaticseq.annotate_caller as annotate_caller
im... | bioinform/somaticseq | somaticseq/somatic_vcf2tsv.py | Python | bsd-2-clause | 44,242 | [
"pysam"
] | dd9c0ecede83780637274c10a8775b27eec6989e8bfc117cba30718fa153ed20 |
# dirstate.py - working directory tracking for mercurial
#
# Copyright 2005-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
from i18n import _
import scmutil, util, ignor... | ya790206/temp_hg | mercurial/dirstate.py | Python | gpl-2.0 | 30,809 | [
"VisIt"
] | 1b3b2bed8ffe11b33d0f889e2dfce26c69ca9653b98a1b68231eff2b43334050 |
from collections import OrderedDict
def emojiLookup():
# Originally Taken from https://github.com/carpedm20/emoji/blob/master/emoji/code.py
# Adding additional possibilities
# XXX - switch this up so it's a dict with key:value of emoji:list of possible defs
emojiCodeDict = {
... | yoachim/pyemoji | python/emojiDict.py | Python | mit | 53,873 | [
"CRYSTAL",
"Octopus"
] | 2fada1d76aa2f09fcafa83d5a9fe796b154a44e7903d3e0be02374f39d9a0c36 |
'''
Created on Jan 17, 2013
@author: brian
'''
import logging
import os
from tempfile import mkdtemp
import cStringIO
import shutil
import sys
from django.test import TestCase
from django.core.management import call_command
from nose.plugins.skip import SkipTest
from student.models import User, TestCenterRegistratio... | elimence/edx-platform | common/djangoapps/student/management/commands/tests/test_pearson.py | Python | agpl-3.0 | 17,482 | [
"Brian"
] | add50184799f334a4db2bd68c2ef3daf99900f8433ab2c734cd9b7a3fe5256a3 |
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distrib... | trezor/python-trezor | trezorlib/client.py | Python | lgpl-3.0 | 13,152 | [
"VisIt"
] | 6fbb701e97ed14b357569add3da23fc3e916357102bab1cf33b785613c510325 |
#
# tsne.py
#
# Implementation of t-SNE in Python. The implementation was tested on Python 2.7.10, and it requires a working
# installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the
# results of this example, a working installation of matplotlib is required.
#
# The ... | hrantzsch/signature-verification | tools/tsne/tsne.py | Python | gpl-3.0 | 5,950 | [
"Gaussian"
] | b2a21bd7bae2b1870c86743fd14fee74ee9c1c40f7fddf5d92d744c2c0e5593e |
# LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE
import numpy as np
from scipy.sparse import isspmatrix
from sklearn.utils.validation import check_array
from .utils import RegisterSubclasses
def compute_affinity_matrix(adjacency_matrix, method='auto', **kwargs):
"""Compute the affin... | jakevdp/Mmani | megaman/geometry/affinity.py | Python | bsd-2-clause | 1,893 | [
"Gaussian"
] | 6c4b50f9342e536d03d5d44e7b1c904b08cc91343a2dfc01c22ce2fc029263ae |
#!/usr/bin/env python3
#
# A PyMol extension script to shorten the transform_selection() command and
# accept python lists as argument.
#
def main():
"""main"""
raise RuntimeError('This module should not be executed as a script')
if __name__ =='__main__':
main()
in_pymol = False
try:
... | joy13975/elfin | pymol_scripts/extensions/transform_helper.py | Python | mit | 1,855 | [
"PyMOL"
] | bac5e2c17cd5b2cd28b2aca129d9f9901f1077608848dbf5f06afa77d493465f |
import copy
import csv
import datetime
import json
import mock
import re
import urllib
import pyquery
from cStringIO import StringIO
from nose.tools import eq_, ok_, assert_raises
from nose.plugins.skip import SkipTest
from django.test.client import RequestFactory
from django.test.utils import override_settings
from ... | linearregression/socorro | webapp-django/crashstats/crashstats/tests/test_views.py | Python | mpl-2.0 | 199,939 | [
"VisIt"
] | 532274f5958dba38dc6e7e04eddaf0ec0d7a5e936a46d6e477a420ddb55ad6fd |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# freeseer - vga/presentation capture software
#
# Copyright (C) 2014 Free and Open Source Software Learning Centre
# http://fosslc.org
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | Freeseer/freeseer | src/freeseer/tests/framework/config/options/test_float.py | Python | gpl-3.0 | 2,524 | [
"VisIt"
] | 10548253923618ad9cb49ef56cd3b07b5b27d86de95c9f16464274d096a26fca |
#
# Copyright 2015 Lars Pastewka (U. Freiburg)
# 2015 Till Junge (EPFL)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | libAtoms/matscipy | examples/distributed_computation/distributed_server.py | Python | lgpl-2.1 | 3,787 | [
"Matscipy"
] | 50b22d7f412f42b1be111f2c6c841ba6cc1bc28eef0f910c8371db603447b76c |
"""
Module used to model Deep Neural Networks which solve binary classification problems (1 output neuron)
Code obtained and adapted from:
https://www.tensorflow.org/get_started/
https://github.com/ageron/handson-ml/blob/master/11_deep_learning.ipynb
https://github.com/aymericdamien/TensorFlow-Examples
https://github... | zentonllo/tfg-tensorflow | benchmark/dnn_binary.py | Python | mit | 22,167 | [
"NEURON"
] | 8a50e99ea7bd71760182496891cb8a375cfbe5276936b83aca95b9fa608528c7 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kratman/psi4public | psi4/driver/driver_util.py | Python | gpl-2.0 | 10,630 | [
"Psi4"
] | cfa2c22d1d1d449fdd6e9a2622c8031b95e0f03ff37641756cbf3db5a14d4eac |
"""
Tests for geography support in PostGIS 1.5+
"""
from __future__ import absolute_import
import os
from unittest import skipUnless
from django.contrib.gis.gdal import HAS_GDAL
from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.measure import D
from django.contrib.gis.tests.utils import postgis
fro... | makinacorpus/django | django/contrib/gis/tests/geogapp/tests.py | Python | bsd-3-clause | 4,349 | [
"VisIt"
] | b44d2cf54f3722343765e3bc6614f112ef8cc57a9a6be9cff0c72bccc675bef7 |
# -*- encoding: utf-8 -*-
"""
Gaussian optics.
The module implements:
- Ray transfer matrices for geometrical and gaussian optics.
See RayTransferMatrix, GeometricRay and BeamParameter
- Conjugation relations for geometrical and gaussian optics.
See geometric_conj*, gauss_conj and conjugate_gauss_beams
The co... | hrashk/sympy | sympy/physics/gaussopt.py | Python | bsd-3-clause | 19,675 | [
"Gaussian"
] | e2b4142f02abd66dd0420094847e883503a1c0c0ae66e33e4727508ec6a1af4b |
from operator import attrgetter
from unittest.mock import patch
from django.conf import settings
from django.contrib.auth.models import Group
from django.http.response import HttpResponseForbidden, HttpResponseBadRequest, HttpResponseBase, \
HttpResponseNotAllowed
from django.test import TestCase
from django.urls ... | SmartElect/SmartElect | changesets/tests/test_views.py | Python | apache-2.0 | 21,001 | [
"VisIt"
] | fb55b328d08a1f6fe17f3c666bdb707544d7ec260dfeca615993655f391af513 |
import json
import os
import unittest
from io import open
from pymatgen.phonon.bandstructure import PhononBandStructureSymmLine
from pymatgen.phonon.dos import CompletePhononDos
from pymatgen.phonon.plotter import PhononBSPlotter, PhononDosPlotter, ThermoPlotter
from pymatgen.util.testing import PymatgenTest
class P... | richardtran415/pymatgen | pymatgen/phonon/tests/test_plotter.py | Python | mit | 3,805 | [
"pymatgen"
] | 2f0c651f40588055e6242428a7c2b548b075fe0b1d019804bc4c0496e6a002e0 |
#!/usr/bin/env python
"""
change file mode bits
"""
import os
import DIRAC
from COMDIRAC.Interfaces import critical
from COMDIRAC.Interfaces import DSession
from COMDIRAC.Interfaces import DCatalog
from COMDIRAC.Interfaces import pathFromArgument
from DIRAC.Core.Base import Script
from DIRAC import S_OK
class Para... | pigay/COMDIRAC | Interfaces/scripts/dchmod.py | Python | gpl-3.0 | 1,879 | [
"DIRAC"
] | 8c7bfcce84284465fea961114607c69621bcdc666591b2d13796457bdb95e1c7 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 3: Deep Learning and Neural Networks
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2015 by Jeff Heaton
Licensed under the Apache License, V... | JPMoresmau/aifh | vol3/vol3-python-examples/examples/example_hopfield_storkey.py | Python | apache-2.0 | 5,507 | [
"VisIt"
] | f3a2b29b3623b8a127b9a93b23d13bf8d33daf4e343978ac109de98df3179753 |
# -*- coding: utf-8 -*-
"""
Regression tests for the Test Client, especially the customized assertions.
"""
from __future__ import unicode_literals
import os
import itertools
from django.core.urlresolvers import reverse, NoReverseMatch
from django.template import TemplateSyntaxError, Context, Template
from django.tes... | gdi2290/django | tests/test_client_regress/tests.py | Python | bsd-3-clause | 66,285 | [
"VisIt"
] | 3dc344e0e1e41d7d04acba8042e4266475725716bd5fbf611aa2c3d51281819e |
# mypy: ignore-errors
#
# This source file is part of the EdgeDB open source project.
#
# Copyright 2016-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the ... | edgedb/edgedb | edb/graphql/translator.py | Python | apache-2.0 | 66,762 | [
"VisIt"
] | a52d4cacb57eb6ba3da57e5526a3d4f0a94c741e595abf6acc3ec2b81d2d9646 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: y... | msultan/mdtraj | mdtraj/tests/test_xml.py | Python | lgpl-2.1 | 1,429 | [
"MDTraj"
] | 8f190c4aec581d74e1961f52abb0d9aebd9f10380f958ef2d0fb2a31557974e6 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
worker.py
~~~~~~~~~
EnergyPlus worker. This contains the basic code required to watch a folder for
incoming jobs, then run them and place the results ready to be fetched by the
client.
"""
from __future__ import absolute_import
from __future__ import division
from __fu... | jamiebull1/eplus_worker | worker/main.py | Python | mit | 3,961 | [
"EPW"
] | fca3e3c0ea012bc7e8fb47122864a88df7994880a10fa9179d337addb3324f13 |
# Copyright 2018 The TensorFlow Probability 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 o... | tensorflow/probability | tensorflow_probability/python/distributions/mvn_diag_plus_low_rank.py | Python | apache-2.0 | 11,418 | [
"Gaussian"
] | a05ceec53189f90f28294d72b9538fd8f361382609502c01c40c36a3fb347173 |
import dryscrape
import requests
from bs4 import BeautifulSoup
import threading
import time
import json
class MicrosoftFindService(object):
"""
A service to log into a Microsoft Account and access Find My Phone
"""
def __init__(self, username, password):
"""
Create the service and log... | krconv/MicrosoftFindService | service.py | Python | gpl-3.0 | 24,561 | [
"VisIt"
] | a16d4d6fe84359beb437187dd05d32b870a3aafe92714bacc03d759d10a5a082 |
#!/usr/bin/env python
# encoding: utf-8
'''
Created by Brian Cherinka on 2016-05-02 16:16:27
Licensed under a 3-clause BSD license.
Revision History:
Initial Version: 2016-05-02 16:16:27 by Brian Cherinka
Last Modified On: 2016-05-02 16:16:27 by Brian
'''
from __future__ import print_function
from __future__... | bretthandrews/marvin | python/marvin/web/web_utils.py | Python | bsd-3-clause | 8,159 | [
"Brian"
] | 8c7c9bdbce8678c81d62b212200bdb3d0bd2f4c165a2d7f33934776b22ba61f7 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@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 License, or
# (at your option) an... | serialdoom/ansible | lib/ansible/constants.py | Python | gpl-3.0 | 24,034 | [
"Galaxy",
"MOOSE"
] | 7b7350f9ff5f9d38fda3e416290725545f911323a7bf5b48a03646a2457530ca |
# 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)
import os
from spack import *
class Orthofiller(Package):
"""OrthoFiller: Identifying missing annotations for evolu... | LLNL/spack | var/spack/repos/builtin/packages/orthofiller/package.py | Python | lgpl-2.1 | 1,421 | [
"Biopython"
] | 8bd571d60f070a93b4bf639e481526ee7035c60f38aead025c13b6f982ab965b |
import os
import sys
from django.contrib.auth.models import User
from django.conf import settings
from django.contrib.gis.geos import GEOSGeometry
from lizard_neerslagradar import models
from lizard_neerslagradar import netcdf
from lizard_neerslagradar import reproject
from lizard_neerslagradar import views
from liz... | lizardsystem/lizard-neerslagradar | lizard_neerslagradar/scripts.py | Python | gpl-3.0 | 4,117 | [
"NetCDF"
] | f39c5fc132dcbfac0d8592a635ccf7e1d585360d35d6182f361cfb134886fe5a |
# Convert a single layer from a netCDF variable to a flt file.
# It is assumed that the netCDF variable dimensions are longitude,
# latitude and, optionally, a third dimension such as time or
# channel/waveength
import sys
import os.path
import numpy
import netCDF3
import nc3_handler as nh
def nctoflt(ncfile, fltst... | KimberleyOpie/common-tools | nc_to_formats/nctoflt.py | Python | apache-2.0 | 2,664 | [
"NetCDF"
] | d8bb51c8350d6fc423859a2d285f53d67e74091f8fb8cf3993a7bce54afd9c0d |
#A* -------------------------------------------------------------------
#B* This file contains source code for the PyMOL computer program
#C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific.
#D* -------------------------------------------------------------------
#E* It is unlawful to modify or remove ... | gratefulfrog/lib | python/chempy/tinker/__init__.py | Python | gpl-2.0 | 5,315 | [
"ChemPy",
"PyMOL",
"TINKER"
] | 606b39d3d9f2c29bf2e2bf9e3c1fee4f1a7196515d15bcee7d425dea122003e7 |
""" This integration test only need the TaskQueueDB
(which should of course be properly defined also in the configuration),
and connects directly to it
Run this test with::
"python -m pytest tests/Integration/WorkloadManagementSystem/Test_TaskQueueDB.py"
Suggestion: for local testing, run th... | DIRACGrid/DIRAC | tests/Integration/WorkloadManagementSystem/Test_TaskQueueDB.py | Python | gpl-3.0 | 40,680 | [
"DIRAC"
] | e10bb0b9d60e529fc536006f6e62778dc357098dc87bb16802d41d379f4cb813 |
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
# -*- coding: utf-8 -*-
import os
import json
import urllib
# Definición de colores
class color:
purple = '\033[95m'
blue = '\033[94m'
green = '\033[92m'
yellow = '\033[93m'
red = '\033[91m'
end = '\033[0m'
# Efe... | PosicionCreativa/setup | setup.py | Python | mit | 7,013 | [
"GULP"
] | dd7690edf8f757c5f95d0d701490a30ef4e43ffa123db9735ef5f722f4c646a9 |
# -*- coding: utf-8 -*-
'''
This module defines :class:`RecordingChannelGroup`, a container for multiple
data channels.
:class:`RecordingChannelGroup` derives from :class:`Container`,
from :module:`neo.core.container`.
'''
# needed for python 3 compatibility
from __future__ import absolute_import, division, print_fun... | amchagas/python-neo | neo/core/recordingchannelgroup.py | Python | bsd-3-clause | 6,173 | [
"NEURON"
] | 2382c7d1634f77c9f75c8d507802abce25c40a3aeb909dde86cfc89999206c2e |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from . import Lattice
import numpy as np
import pandas as pd
import itertools
import copy
def bring_fractional_within(frac):
"""Drops the leading integer from all the
Parameters
----------
fr... | goirijo/thermoplotting | thermoplotting/xtals/crystal.py | Python | mit | 14,977 | [
"CRYSTAL"
] | 88f0a22a056d36296720973472b4cb1dba280f3c56a880fef629e7a733eb280e |
# ionchannel.py ---
#
# Filename: ionchannel.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Wed Sep 17 10:33:20 2014 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# This program is free softwa... | BhallaLab/moose-examples | snippets/ionchannel.py | Python | gpl-2.0 | 8,623 | [
"MOOSE",
"NEURON"
] | 9a7cb79ba310463b247f18ad871a88ebe7325d7cfe7f229b5dfdd9ba3413074e |
import sys
import os
import io
import psycopg2
import xml.etree.ElementTree as ET
from lxml import etree
import math
from collections import Counter
from operator import itemgetter
import datetime
import nltk
import collections
#For use with Tr-ConLL
def block(ch):
'''
Return the Unicode block name for ch, or... | grantdelozier/TopoCluster | experimental/TestResolver_LGL_allits_Thetas.py | Python | apache-2.0 | 40,987 | [
"FEFF"
] | fe2d03b0f5b2497dbf93a2334095d320be178312ce94faf7df1e4865230a1c80 |
#
# Copyright (C) 2013-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | mkuron/espresso | doc/tutorials/10-reaction_ensemble/scripts/RE_vs_cpH_poly.py | Python | gpl-3.0 | 6,817 | [
"ESPResSo"
] | 6e50d6c8311e5eeed9e691babb46facec04a55eed90338784bbd89945caa723c |
def echo(*params):
"""
ECHO(1) User Commands ECHO(1)
NAME
echo - display a line of text
SYNOPSIS
echo [SHORT-OPTION]... [STRING]...
echo LONG-OPTION
DESCRIPTION... | kkusch/HoneyPy | lib/clilib/unix/echo.py | Python | gpl-2.0 | 2,615 | [
"Brian"
] | 9b1f10bf515df673c93a33566c2a8e911e7aca5ae7460a95ae682bde21449215 |
#
# Copyright 2015 The AMP HTML 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 applic... | burtcorp/amphtml | validator/validator_gen_js.py | Python | apache-2.0 | 36,419 | [
"VisIt"
] | 9c97d7cf195cb9172205e584a15116777ef4dede262d494245e8246954f3ff1f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import inkex, re, os, random, sys, subprocess, shutil
from outputpro import cmyk, cutmarks
from PyQt4 import QtGui
from PyQt4 import QtCore
import gettext
_ = gettext.gettext
reload(sys)
sys.setdefaultencoding("utf-8")
dirpathTempFolder = '/tmp/output-'
for i in range... | jonata/Inkscape-OUTPUT-PRO | outputpro.py | Python | gpl-2.0 | 64,893 | [
"Gaussian"
] | 7275bd87e175b529334a118c8107a85adeab81265ae6d3aa6b0eb4e86d1c610f |
#!/usr/bin/env python
"""
Created on Wed May 7 11:30:31 2014
Author: Oren Freifeld
Email: freifeld@csail.mit.edu
"""
import numpy as np
#from cpa.cpa2d.calcs import PAT
from gpu.gaussian import calc_err_per_sample
from gpu.gaussian import calc_ll_per_sample
from cpab.distributions.CpaCovs import CpaCovs
from ... | freifeld/cpabDiffeo | cpab/cpa2d/model/transformations/landmarks/_ScaleDependentLogLikelihoodGaussian.py | Python | mit | 3,362 | [
"Gaussian"
] | c2001aee01e9290b44a2563982188ba9023e27ee7609f14fb26ac74af069dce1 |
#!/usr/bin/env python
""" This script instantiate a DFC client against a given service,
and hammers it with mixed request (read/write/delete) for a given time.
It produces two files : time.txt and clock.txt which contain time measurement,
using time.time and time.clock (see respective doc)
It assumes t... | ic-hep/DIRAC | tests/Performance/DFCPerformance/writePerf.py | Python | gpl-3.0 | 4,038 | [
"DIRAC"
] | fd391f27c707ca7df9c00c71fc88264a04f2df64cb5c6ebbedd1e67d4aeda33f |
#!/usr/bin/pythonTest
# -*- coding: utf-8 -*-
#
# DbApi functions Fetch
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version... | netvigator/myPyPacks | pyPacks/DbApi/Fetch.py | Python | gpl-2.0 | 8,948 | [
"MOE"
] | 775983df8998facb3503646bab987e8302883c2f32cf0eb10a012e34c7aaf333 |
# get the the py4j server jar file with 'find /usr/ -type f -name py4j*jar'
# better: use pip: pip3 show -f py4j
py4j_path = '/usr/local/share/py4j/py4j0.10.7.jar'
cdk_path = './cdk/cdk-1.5.13.jar'
| sebotic/cdk_pywrapper | cdk_pywrapper/config.py | Python | agpl-3.0 | 199 | [
"CDK"
] | 242c0355116f9c8408fcb05431addfe62fcc2243ddfc8541ed221755f8bf4340 |
# Copyright (c) 2015 Mirantis 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 writ... | esikachev/sahara-backup | sahara/tests/unit/service/edp/test_hdfs_helper.py | Python | apache-2.0 | 5,819 | [
"Galaxy"
] | f8741790dad660228706b1ea9028b72c8ec5e2d9c0aad2f698a9df19a5b2c92e |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El
import time
m = 1000
n = 2000
testMehrotra = ... | sg0/Elemental | examples/interface/QPDirectDense.py | Python | bsd-3-clause | 3,369 | [
"Gaussian"
] | 196e964c63a349fa1a251f851903220600ac70a5b311bb95ddafbefd8b4dceba |
import re
import os
import dryscrape
from BeautifulSoup import BeautifulSoup
from urllib import unquote
MAIN_URL = 'http://www.rainiertamayo.com'
class NetworkError(Exception):
pass
class RainierTamayo:
"""RainierTamayo API class.
Provides funtions to scrap videos from www.rainiertamayo.com
"""... | nabilbendafi/plugin.video.rainiertamayo | resources/lib/rainiertamayo.py | Python | gpl-3.0 | 4,762 | [
"VisIt"
] | 7e7e23f8e7420588032b1808df83402b0fd4d838b8914e17dce5957cb09eeb1a |
__author__ = 'Robert Meyer'
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
install_requires=[
'tables >= 2.3.1',
'pandas >= 0.14.1',
'numpy >= 1.6.1',
'scipy >= 0.9.0']
# check if importlib exists, if not (aka pytho... | nigroup/pypet | setup.py | Python | bsd-3-clause | 2,573 | [
"Brian"
] | 4adab50be745aea5c163e2a00bacf9c8662b52b2b38627df1ca5e5653505d249 |
"""
Execute each notebook as a test, reporting an error if any cell throws an exception.
Adapted from https://gist.github.com/minrk/2620876.
"""
from __future__ import print_function
import os
import sys
import nbformat
import pytest
from jupyter_client import KernelManager
from six.moves.queue import Empty
FLAKEY_LI... | mattwthompson/mdtraj | examples/test_examples.py | Python | lgpl-2.1 | 2,134 | [
"OpenMM"
] | e6640ed0c428d536c5b4b758f302ac3c3e18d2a6cbbe6e02c97296003cbb008f |
#!/usr/bin/env python
# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.chem.ucsb.edu/~sheagroup
# License: 3-clause BSD License (See LICENSE.TXT)
# Copyright (c) 2011, Regents of the University of California
# All rights reserved.
"""
lttree.py
lttree.py is an extension of the generic ttree.py pr... | jcarlson23/lammps | tools/moltemplate/src/lttree.py | Python | gpl-2.0 | 34,901 | [
"LAMMPS"
] | e2b8eafd9f241630483e22366be8faf799e6c2250c5517edb73134bc6aa92072 |
#!/usr/bin/env python
########################################################################
# File : dirac-admin-get-banned-sites
# Author : Stuart Paterson
########################################################################
"""
Usage:
dirac-admin-get-banned-sites [options] ...
Example:
$ dirac-admin-g... | yujikato/DIRAC | src/DIRAC/Interfaces/scripts/dirac_admin_get_banned_sites.py | Python | gpl-3.0 | 1,227 | [
"DIRAC"
] | 708621c59090af99ee25d22b44136e84f56b88a8a890865e22c2b5d54677562f |
from abc import ABC, abstractmethod
import numpy as np
class AdaptiveParamNoiseSpec(object):
"""
Implements adaptive parameter noise
:param initial_stddev: (float) the initial value for the standard deviation of the noise
:param desired_action_stddev: (float) the desired value for the standard devia... | hill-a/stable-baselines | stable_baselines/common/noise.py | Python | mit | 4,023 | [
"Gaussian"
] | df7368d6d8e2f8edf4a70500d2d86c3ef5b805e37ec1e1b86b6c8e933b086d73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.