text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import glob
import os
import json
import webbrowser
import requests
import re
import subprocess
import datetime
from invoke import task
from monty.os import cd
from pymatgen import __version__ as CURRENT_VER
... | xhqu1981/pymatgen | tasks.py | Python | mit | 5,832 | [
"pymatgen"
] | 94e4cf5e5ea0828a83e283f6b8861634a8296d65648869e9558d91ebe2e83f94 |
# proxy module
from __future__ import absolute_import
from mayavi.core.common import *
| enthought/etsproxy | enthought/mayavi/core/common.py | Python | bsd-3-clause | 87 | [
"Mayavi"
] | f1c3df1163ba0c962706debb5c3d1428bb9a1a3cac63160a70cffbc157b3e8d0 |
import numpy as np
from xd_elg_utils import *
import XD_selection_module as XD
cnames = ["Gold", "Silver", "LowOII", "NoOII", "LowZ", "NoZ", "D2reject", "DR3unmatched","D2unobserved"]
param_directory = "./XD-parameters/"
K_i = [2,2,2,3,2,2,7]
dNdm_type = [1, 1, 0, 1, 0, 0, 1]
param_tag2 = "-Field34" # "-Field34" if u... | jaekor91/xd-elg-scripts | print-params.py | Python | gpl-3.0 | 3,317 | [
"Gaussian"
] | 0d982b9ad0761c990f341dd2463550279c8594c751f06fcac95446fe47f6ebdf |
import pytest
class SeleniumSessionTestCase:
@pytest.fixture(scope="module")
def session(self):
raise NotImplementedError()
@pytest.fixture(autouse=True)
def reset_session(self, session):
try:
yield
finally:
session.reset()
def test_fill_in_with_cl... | elliterate/capybara.py | tests/selenium_session_test_case.py | Python | mit | 2,768 | [
"VisIt"
] | 7590d28bf1330e9bfdd7521cdd27d1e26d691f19b12588c9890a555c4edc5bd2 |
from sdssgaussfitter import gaussfit
import numpy as np
import os,sys
from util import utils
from util.readDict import readDict
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
def aperture(startpx,startpy,radius=7):
r = radius
length = 2*r
height = length
allx = xrange(startpx... | bmazin/ARCONS-pipeline | examples/Pal2014_throughput/fitPsf.py | Python | gpl-2.0 | 8,028 | [
"Gaussian"
] | 7b33c79e4bb28a8c500019a15bc91e76e2b883dd1b9812ed58c176c347f0596b |
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns # prettify matplotlib
import sklearn.gaussian_process as gp
import sys
if sys.version_info[0] == 3: # python 3
from queue import Empty
from math import isclose, inf
elif sys.version_info[0] == 2: # python 2
from Queue import Empty
... | mbway/Bayesian-Optimisation | old_library/synthetic_data.py | Python | gpl-3.0 | 12,722 | [
"Gaussian"
] | 9b188d7b23630b2bda187286eae67ffc2dc884227e4ef93886826e7cfc5fa783 |
# NOTE: This example uses the next generation Twilio helper library - for more
# information on how to download and install this version, visit
# https://www.twilio.com/docs/libraries/python
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
account = "ACXXXXXXXXXXXXXXXXXXXXX... | teoreteetik/api-snippets | notifications/rest/credentials/update-credential/update-credential.6.x.py | Python | mit | 624 | [
"VisIt"
] | 4e2ea7b921f23b3765c78de4afe29b40160cc1faa4ec0b8b0fb35b39fd266750 |
"""Test LCAO density calculation and conversion to grid.
Test that the density generated by the following three procedures is the same:
* basis_functions.construct_density as used in a normal calculation
* axpy used on the psit_nG as constructed by lcao_to_grid
* axpy used on the Phit_MG[i] * Phit_MG[j] * rho[j, i... | ajylee/gpaw-rtxs | gpaw/test/lcao_density.py | Python | gpl-3.0 | 1,690 | [
"ASE",
"GPAW"
] | a25c41111a7dd0dd182c7073e8ec709fcdc89dbd0b5d169b918e47c435b5a024 |
import numpy as np
from histomicstk.utils import gradient_diffusion
def gvf_tracking(I, Mask, K=1000, Diffusions=10, Mu=5, Lambda=5, Iterations=10,
dT=0.05):
"""
Performs gradient-field tracking to segment smoothed images of cell nuclei.
Takes as input a smoothed intensity or Laplacian-... | DigitalSlideArchive/HistomicsTK | histomicstk/segmentation/nuclear/gvf_tracking.py | Python | apache-2.0 | 8,978 | [
"Gaussian"
] | 5cf86b00ce94962cde61b0890d64bf18bedd3ea3fe2ed98a38b00fa031e28473 |
import os
import unittest
import numpy as np
from deepchem.utils import rdkit_utils
from deepchem.utils.fragment_utils import get_contact_atom_indices
from deepchem.utils.fragment_utils import merge_molecular_fragments
from deepchem.utils.fragment_utils import get_partial_charge
from deepchem.utils.fragment_utils impor... | miaecle/deepchem | deepchem/utils/test/test_fragment_utils.py | Python | mit | 2,484 | [
"RDKit"
] | a2634aff5674870d46e6a7cccadc1a6c3aa27ef79a8f0d175cef6e24ac006b9e |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import ldap3
class CERNLDAPSyncPlugin(object):
"""Synchronization plugin for mapping new users to CERN accounts.
This plugin results in new users having two additional fields in the CS,
CERNAccountType... | yujikato/DIRAC | src/DIRAC/ConfigurationSystem/Client/SyncPlugins/CERNLDAPSyncPlugin.py | Python | gpl-3.0 | 3,313 | [
"DIRAC"
] | 44974bf891ef51aba130ef66b2fb1313959212888cf9ce00f94d74b8f32a354b |
# -*- coding: utf-8 -*-
"""
Miscellaneous functions for simulations
gaussian : make a gaussian distribution along an x axis with defined mean and std
pha2r : Create a time series that is a nonlinear mapping of phase
simphase : simulate an oscillation and its phase by bandpass filtering white noise
spikes2lfp : Convolv... | srcole/tools | sim.py | Python | mit | 4,942 | [
"Gaussian"
] | 7429f7e179fa8c3e8cb3d180f85ce3d332954a4e199597d14e69fcb679378e08 |
import pickle
from io import BytesIO
import numpy as np
import scipy.sparse
from sklearn.datasets import load_digits
from sklearn.cross_validation import cross_val_score
from sklearn.externals.six.moves import zip
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_equ... | chaluemwut/fbserver | venv/lib/python2.7/site-packages/sklearn/tests/test_naive_bayes.py | Python | apache-2.0 | 11,977 | [
"Gaussian"
] | 820defb9f3ce014e4c4bfb70ef37ae5a1ccba32d89a0202451d02d11fee80db6 |
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#
# Copyright (C) 2012 Canonical Ltd.
#
# 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... | axaxs/Cnchi | src/i18n.py | Python | gpl-3.0 | 4,436 | [
"FEFF"
] | a53c1e58ced675fdc5e2bc23570f2d57f83afd4411b1e5ee6a837cc3a6d307db |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | alsrgv/tensorflow | tensorflow/python/ops/image_ops_test.py | Python | apache-2.0 | 202,340 | [
"Gaussian"
] | 23fc84d0ca0651ad90e6efd6d9ca8466314c8944eb75cee77a2c167a97251662 |
#!/usr/bin/env python
"""
Copyright (c) 2006-2014 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
class PRIORITY:
LOWEST = -100
LOWER = -50
LOW = -10
NORMAL = 0
HIGH = 10
HIGHER = 50
HIGHEST = 100
class SORT_ORDER:
FIRST = 0
SECOND = 1
... | pwnieexpress/raspberry_pwn | src/pentest/sqlmap/lib/core/enums.py | Python | gpl-3.0 | 9,259 | [
"Galaxy"
] | 0fe60ae0a1d83a3000cdc5c187fe7d0379578cccc09a46abdbc3ea261fda2953 |
'''
Wifi Facade.
=============
The :class:`Wifi` is to provide access to the wifi of your mobile/ desktop
devices.
It currently supports `connecting`, `disconnecting`, `scanning`, `getting
available wifi network list` and `getting network information`.
Simple examples
---------------
To enable/ turn on wifi scannin... | KeyWeeUsr/plyer | plyer/facades/wifi.py | Python | mit | 4,176 | [
"VisIt"
] | a9d21bc3c297a7da4c48708a4c1d9506f757b1478b66fb6d59de3573ffcdcc53 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | SKIRT/PTS | modeling/tests/data.py | Python | agpl-3.0 | 16,247 | [
"Galaxy"
] | 6c1a2949b46a2d2d6d47c90dea33894469552c451caeab32efd9940858dbd4c7 |
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | CraigHarris/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/access_methods/appendonly_checksum/test_appendonly_checksum_sql.py | Python | apache-2.0 | 1,028 | [
"ORCA"
] | d028d1161e99906b462320553db3c7397c556d5fca68074926d9d5364b6e15ac |
# 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 RBamsignals(RPackage):
"""Extract read count signals from bam files
This package a... | LLNL/spack | var/spack/repos/builtin/packages/r-bamsignals/package.py | Python | lgpl-2.1 | 1,749 | [
"Bioconductor"
] | db854fc1ffa9eadc8eb435dc1d28cd7a05d0b05ad78d17d851c08be963f07849 |
# Library imports
import numpy as np
# Package imports
from Model import Model
class Gaussian_Model(Model):
"""
Signal disruption model based on the log-distance path loss model
where environmental noise is modeled using a Gaussian function.
"""
def __init__(self, arguments):
"""
... | timvandermeij/mobile-radio-tomography | reconstruction/Gaussian_Model.py | Python | gpl-3.0 | 1,487 | [
"Gaussian"
] | f45a1dd576cc16569770801c3812efd213a08e368193aaf4d8d231ff8d840b6a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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.
... | camradal/ansible | lib/ansible/modules/packaging/os/dpkg_selections.py | Python | gpl-3.0 | 2,580 | [
"Brian"
] | 70cf3d365ab873f8dc31be0e1e61a41b33a687bbd8a7ff81b4037d21dc250dc6 |
"""
"""
from vtk import vtkExtractUnstructuredGrid, vtkGeometryFilter, vtkAppendFilter, vtkPolyData, vtkCleanPolyData
from pcloudpy.core.filters.base import FilterBase
class ExtractPolyData(FilterBase):
"""
Extent Extraction from a Point Cloud
Parameters
----------
extent: tuple, shape=6,
... | mmolero/pcloudpy | pcloudpy/core/filters/ExtractPolyData.py | Python | bsd-3-clause | 1,428 | [
"VTK"
] | a7b2b73228dfdb0e93a7f022fff21792ed5d0446bcda7e05b14460f83f063910 |
# coding: utf8
__version__ = "edofx2csv.py v0.1 - mai 2010"
import sys
from inouk.edofx import OFXParser
from optparse import OptionParser
class StatementTransaction(object):
'''
Used to store a statement transaction
'''
def __init__( self, fitid='', trntype='', dtposted='', trnamt='', name='', memo... | cmorisse/inouk.edofx | tests/edofx2csv.py | Python | mit | 6,985 | [
"VisIt"
] | f26bfb03d9cccdb80df4867d65137d4dbf2a3264607ee2c2ddf4fc0842624fe5 |
##
# Copyright 2009-2018 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... | bartoldeman/easybuild-easyblocks | easybuild/easyblocks/a/aladin.py | Python | gpl-2.0 | 15,308 | [
"NetCDF"
] | 419bea1d15b3fbaead176a5f97c8624dda306dae20cc968118b4ddf7b039f899 |
from django.contrib.auth.models import User
from django.db import models
from django.db.models import Q
from django.db.models.signals import m2m_changed
from django.dispatch import receiver
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional impor... | reviewboard/reviewboard | reviewboard/accounts/models.py | Python | mit | 28,424 | [
"VisIt"
] | cce083090650d56970a60ee79f95fab8281a18a6c58ce5bc0f11cb2562789d9c |
########################################################################
# File : AgentReactor.py
# Author : Adria Casajus
########################################################################
"""
DIRAC class to execute Agents
Agents are the active part any any DIRAC system, they execute in a cyclic
manner ... | DIRACGrid/DIRAC | src/DIRAC/Core/Base/AgentReactor.py | Python | gpl-3.0 | 7,604 | [
"DIRAC"
] | 153579693bd3d56aed7a1be44ea02f51db76e9b29f4dfcec351d58fd6fe96814 |
#
# Author: Jorg Bornschein <bornschein@fias.uni-frankfurt.de)
# Lincense: Academic Free License (AFL) v3.0
#
"""
The autotable module provides a simple interface to store data from simulation
runs into efficient HDF5 files onto the filesystem.
These files can later be opened
* in Python: PyTables (http://www.p... | jbornschein/mca-genmodel | pulp/utils/autotable.py | Python | agpl-3.0 | 10,974 | [
"Gaussian"
] | 54efbfe3e946aec7d2166e3b9e5d6ef56fffea5b0e20adafce1a0381f1c17a63 |
#!/usr/bin/python
from multiprocessing import Pool
import time
import os
import sys
import argparse
from homolog4 import *
from collections import defaultdict
# Copyright(C) 2015 David Ream
# Released under GPL version 3 licence. http://www.gnu.org/licenses/lgpl.html
# Do not remove this comment
# This exists to ma... | ashishjain1988/gbeer_standalone | blast_parse.py | Python | gpl-3.0 | 13,419 | [
"BLAST"
] | 092d3de4cae42204f39e5b2592e4f6ef97408fec0fd65a5f5977346fc1ff7ce1 |
from nose.tools import assert_equal, assert_almost_equal
import numpy as np
from probfit import (describe, rename, Convolve, Normalized,
Extended, AddPdf, AddPdfNorm, BlindFunc)
from probfit.pdf import gaussian, ugaussian
from probfit._libstat import integrate1d
from probfit.decorator import extend... | mtresch/probfit | test/testfunctor.py | Python | mit | 6,732 | [
"Gaussian"
] | 54f0914105094cf971d2848c696d95fd7234324379589f3461a2451c57adc5df |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | AsimmHirani/ISpyPi | tensorflow/contrib/tensorflow-master/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py | Python | apache-2.0 | 33,458 | [
"VisIt"
] | 020d35911da7d1c8b0427f3f2381ae29aa64031754da9fd610f8a12142f4203c |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# sfc_models documentation build configuration file, created by
# sphinx-quickstart on Sun Oct 23 16:05:06 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
#... | brianr747/SFC_models | docs/conf.py | Python | apache-2.0 | 9,981 | [
"Brian"
] | 94c86084c83f6dc40c4742db82b9caac1c0220c3b368084c29aba74c809e082c |
# this program corresponds to special.py
### Means test is not done yet
# E Means test is giving error (E)
# F Means test is failing (F)
# EF Means test is giving error and Failing
#! Means test is segfaulting
# 8 Means test runs forever
### test_besselpoly
### test_mathieu_a
### test_mathieu_even_coef
##... | bkendzior/scipy | scipy/special/tests/test_basic.py | Python | bsd-3-clause | 132,236 | [
"Elk"
] | f545f3f85b28c6c999fed8400e43f7026243ec0bb125f23789c31a431a1a3910 |
#!/usr/bin/env python
# This example reads a volume dataset, extracts two isosurfaces that
# represent the skin and bone, creates three orthogonal planes
# (sagittal, axial, coronal), and displays them.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Create the renderer, the re... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Examples/Medical/Python/Medical3.py | Python | gpl-3.0 | 7,624 | [
"VTK"
] | 1179528a7d47a9b535e8b88a0fb1d7adeed92f3cab85a0091e23657b7ff0463e |
#coding:utf8
'''
Created on 2013-8-7
@author: lan (www.9miao.com)
'''
from twisted.web import resource
from twisted.internet import reactor
from firefly.server.globalobject import GlobalObject
root = GlobalObject().webroot
reactor = reactor
def ErrorBack(reason):
pass
def masterwebHandle(cls):
'''
'''
... | yangdw/repo.python | src/annotation/Firefly/firefly/master/webapp.py | Python | mit | 1,040 | [
"Firefly"
] | 2c5acdcb594cc2e50f5c6be9b0be623a109508cac418604bd15f3ec7113c7204 |
#!/usr/bin/python
# Copyright 2012 Dorival de Moraes Pedroso. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import subprocess
def Cmd(command, verbose=False, debug=False):
if debug:
print '=======================================... | PaddySchmidt/gosl | xgendoc.py | Python | bsd-3-clause | 3,025 | [
"VTK"
] | eff20c50c5c304ff840897e5f3c0600e14ebbeddb202e685aea8a76b7cf513e3 |
r"""*Core package definition module for* ``tempvars``.
Context manager for handling temporary variables in
Jupyter Notebook, IPython, etc.
**Author**
Brian Skinn (bskinn@alum.mit.edu)
**File Created**
10 Sep 2017
**Copyright**
\(c) Brian Skinn 2017-2018
**Source Repository**
http://www.github.com/b... | bskinn/tempvars | tempvars/__init__.py | Python | mit | 589 | [
"Brian"
] | ccfc9a8a3e37e0c3873474e31ce7aacbc56a076d7e9d4dbab093c1cae62f82c2 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | openstack/python-openstacksdk | openstack/tests/unit/test_resource.py | Python | apache-2.0 | 100,885 | [
"Brian"
] | 87762767b4539fe2f970ebba9354586bbe0e1c3a2be2a353bdb6c05f1192039b |
#!/usr/bin/env python
"""
Blast
Genome library
Classes to handle Blast analysis against a local database
"""
import logging
import os
import subprocess
import sys
if sys.version_info[0] < 3:
from StringIO import StringIO # Python 2
else:
from io import StringIO # Python 3
__author__ = "Marco Galardini"
####... | combogenomics/DuctApe | ductape/genome/blast.py | Python | bsd-2-clause | 12,458 | [
"BLAST",
"Biopython"
] | b6fe81b7ecec83799c1f224dcce08bc64a3dc5620d409cbc1f040415076ae8d0 |
#!/usr/bin/env python
from omics_pipe.parameters.default_parameters import default_parameters
from omics_pipe.utils import *
p = Bunch(default_parameters)
def varscan2_segmentation(sample, varscan2_segmentation_flag):
'''Runs DNAcopy from Bioconductor on Varscan2 copynumber output to apply circular binary segmen... | adammaikai/PipeMaster | modules/varscan2_segmentation.py | Python | mit | 1,285 | [
"Bioconductor"
] | 2fd8e6f443d192f2762f73f72c86228f29aa6cc1a0e7f4b51e7524381f5deb09 |
import os
from astropy.io import ascii
from astropy.table import Table
from astropy.coordinates import Distance, Angle, SkyCoord
from astropy import units as u
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import sys
# Change path so that we can import functions from the '... | Gabriel-p/mcs_rot_angles | aux_modules/validation_set.py | Python | gpl-3.0 | 10,176 | [
"Galaxy"
] | 4fe745aa6660235217f7cedbeb61f53bacf7d2b730b4caaa273f2640874c3c2d |
# -*- coding: utf-8 -*-
'''
Created on 04 Mar 2017
@author: Guilherme Stiebler
Copyright © 2017 Guilherme Stiebler, Éric Piel, Delmic
This file is part of Odemis.
Odemis is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License version 2 as published by the Free So... | delmic/odemis | src/odemis/acq/align/keypoint.py | Python | gpl-2.0 | 7,625 | [
"Gaussian"
] | f6ec299677407369c09fe25bd7ea671b0263fdaf7bd0fa25d48ca0455cd26e11 |
from __future__ import print_function
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
from h2o.estimators.gbm import H2OGradientBoostingEstimator
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.estima... | mathemage/h2o-3 | h2o-py/tests/testdir_jira/pyunit_pubdev_4802_short_max_runtime_secs.py | Python | apache-2.0 | 7,133 | [
"Gaussian"
] | bb15d6cc08420c429543676467411754115f07848833d810961f8d9e4765dcf1 |
# -*- coding: utf-8 -*-
"""
created on Mon Jan 23 10:11:19 2017
@author: cattaert
modified June 7 2017 (D.Cataert)
in procedure "loadParams", the actual number of Loeb params is set to 41
modified June29, 2017 (D.Cataert)
line 220 parameter name error corrected ("sensColChartNbs")
modified July 17, 2017 (D.Ca... | neuRowsATL/animatLabSimulationAPI | mainOpt.py | Python | gpl-2.0 | 59,314 | [
"NEURON"
] | 6766123a571f86774b0f86faac3d33d3ad11004ee780d70a40a1cc96faffcb59 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import math
import random
import wx.lib.pubsub as ps
import vtk
import constants as const
import project as prj
import session as ses
TYPE = {const.LINEAR: _(u"Linear"),
const.ANGULAR: _(u"Angular"),
}
LOCATION = {const.SURFACE: _(u"3D"),
co... | tatiana/invesalius | invesalius/data/measures.py | Python | gpl-2.0 | 21,435 | [
"VTK"
] | 5b42538fb8cc1f663bc25be402f67d9f2e03614ee13aab5012508a250c891c87 |
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from .. import kern
from ..core import GP, Param
from ..likelihoods import Gaussian
class GPLVM(GP):
"""
Gaussian Process Latent Variable Model
"""
def __init__(... | SheffieldML/GPy | GPy/models/gplvm.py | Python | bsd-3-clause | 1,680 | [
"Gaussian"
] | f5f00aefd6cbabea61f451a699e09777207fdefa36e970ee44e7ce4d15b1a70d |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | myvoice-nigeria/myvoice | myvoice/clinics/migrations/0046_set_clinic_type.py | Python | bsd-2-clause | 13,561 | [
"VisIt"
] | ed6600ab968433d483f17cf910403bd3cfc2cc165296c646f4d7d6ff82648429 |
#!/usr/bin/env python
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fo... | eleftherioszisis/NeuroM | examples/soma_radius_fit.py | Python | bsd-3-clause | 3,138 | [
"NEURON"
] | 3f3fac13f5230011e6feb016fdbb9c40244fc4355416b90962ac60679ebef067 |
"""
Test helper functions and base classes.
"""
import functools
import inspect
import json
import operator
import os
import pprint
import unittest
import urlparse
from contextlib import contextmanager
from datetime import datetime
from unittest import TestCase
import requests
from bok_choy.javascript import js_defin... | kmoocdev2/edx-platform | common/test/acceptance/tests/helpers.py | Python | agpl-3.0 | 36,474 | [
"VisIt"
] | da89d5bc99aa6211a5a071ced4fcfbb1deaed53c4d7ff9184c22e7887272a48b |
<<<<<<< HEAD
<<<<<<< HEAD
"""
ast
~~~
The `ast` module helps Python applications to process trees of the Python
abstract syntax grammar. The abstract syntax itself might change with
each Python release; this module helps to find out programmatically what
the current grammar looks like and allo... | ArcherSys/ArcherSys | Lib/ast.py | Python | mit | 36,242 | [
"VisIt"
] | 38f384b9a82f2332e968ddf14761cef0e950526c4d7500b39ac88d80e0691c7d |
from os.path import join
import h5py
import numpy as np
import scipy.stats as ss
def generate_data(path):
distributions = {'Gaussian': {'options': dict(loc=0, scale=0.1),
'name': 'norm'},
'Exponential': {'options': dict(loc=-0.5, scale=1),
... | ericmjl/bokeh | examples/app/simple_hdf5/create_hdf5.py | Python | bsd-3-clause | 1,089 | [
"Gaussian"
] | ba464cc9fad8f0f007982e80eaf49296489f6eaef53448dc7a0a5f678d54eb1d |
import numpy as np
import scipy.special
import scipy.linalg
import vbr_utilities
import time
import pdb
import copy
import matplotlib.pyplot as plt
import sys
# TO DO: Check that the fixed Gamma hyper-hyperpriors that I use are appropriately uninformative...
##########################################################... | tomevans/linvb | linvb/vbr_routines.py | Python | gpl-2.0 | 40,963 | [
"Gaussian"
] | ce15500d7735075c960be060b3c0d16d12bbd38aa29fa162ba53b9f0d8e72779 |
#Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfbase/cidfonts.py
#$Header $
__version__=''' $Id$ '''
__doc__="""CID (Asian multi-byte) font support.
This defines classes to represent CID f... | olivierdalang/stdm | third_party/reportlab/pdfbase/cidfonts.py | Python | gpl-2.0 | 19,374 | [
"Brian"
] | f705a64bebfdb2c34072aab0d62f079f86aa469abaf841a09df1bf458b06eae9 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/core/templates.py | Python | gpl-2.0 | 1,983 | [
"VisIt"
] | 6165b00a5e19234a8973a2d4cc39f178a31fce349f82f7cd9389dbda9cc338a6 |
#
# Copyright 2015 Benjamin Kiessling
# 2014 Thomas M. Breuel
#
# 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 a... | mittagessen/kraken | kraken/pageseg.py | Python | apache-2.0 | 15,317 | [
"Gaussian"
] | 52d7a0aed6ec17c42946a3db9297779e6214519bcd948dd9993500c43be0f78f |
# Licensed under GPL version 3 - see LICENSE.rst
import numpy as np
from astropy.table import Column
import astropy.units as u
from astropy.coordinates import SkyCoord
from ..base import SimulationSequenceElement
from ..math.rotations import axangle2mat
from ..math.utils import norm_vector, h2e, e2h
class PointingMo... | Chandra-MARX/marxs | marxs/source/pointing.py | Python | gpl-3.0 | 9,285 | [
"Gaussian"
] | 89cda99f35abf404be283177448e761d026bbe166222dae6e83b7e3234a98383 |
""" Powerful utility for running a TCP/UDP server that is used to script
Mayavi2 from the network. This uses Twisted. This particular version
has been written for the wxPython, adding support for a Qt4 version
should be trivial.
The key functions exposed are::
serve_tcp(...)
serve_udp(...)
See the function docum... | dmsurti/mayavi | mayavi/tools/server.py | Python | bsd-3-clause | 9,319 | [
"Mayavi"
] | d0095fc725207ec081503ed4473b394b0c0195a8878f3405d41aae26b970c4d7 |
"""
Serializes a Cython code tree to Cython code. This is primarily useful for
debugging and testing purposes.
The output is in a strict format, no whitespace or comments from the input
is preserved (and it could not be as it is not present in the code tree).
"""
from __future__ import absolute_import, print_function... | Architektor/PySnip | venv/lib/python2.7/site-packages/Cython/CodeWriter.py | Python | gpl-3.0 | 15,254 | [
"VisIt"
] | d27fac9a70b90de90ed6dfa3f2381a3b516b3eb3621c90d2446153679c23a530 |
# 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 RBiovizbase(RPackage):
"""Basic graphic utilities for visualization of genomic data.
... | LLNL/spack | var/spack/repos/builtin/packages/r-biovizbase/package.py | Python | lgpl-2.1 | 2,539 | [
"Bioconductor"
] | 936474c933884406cc204ccd4d3f445ca12e198d0dd7cecfb3c339c339e3a65c |
#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
#* https://www.gnu.org/... | harterj/moose | python/chigger/observers/TimerObserver.py | Python | lgpl-2.1 | 2,204 | [
"MOOSE",
"VTK"
] | 75971b7c4ae476cdae4aa8368f4aab1f82fe5d49583ca55f7950ad948419d781 |
#!/usr/bin/env python
# ============================================================================================================
# Created by: Lee Bergstrand & Matt McInnes
# Description: A next generation bioinformatics file format converter and sequence feature extractor.
# Requirements: This script requires the... | LeeBergstrand/BioMagick | BioMagick.py | Python | mit | 9,222 | [
"Biopython"
] | 7162fc1a66753fe54336a8b8ddf23e314400b109dffa86ed111b22f706f88fa8 |
from string import Template
import logging
from hs_core.hydroshare.utils import get_resource_types
logger = logging.getLogger(__name__)
def parse_app_url_template(url_template_string, term_dict_list=()):
"""
This func replaces pre-defined HS Terms in url_template_string with real values;
Example: http://... | RENCI/xDCIShare | hs_tools_resource/utils.py | Python | bsd-3-clause | 2,523 | [
"NetCDF"
] | dd1a0515ab3e662eb5fa34116c5bd526d675734a02d72a50641ceec9fa20c8ca |
# Copyright 2018 The dm_control Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | deepmind/dm_control | dm_control/suite/wrappers/action_noise.py | Python | apache-2.0 | 2,630 | [
"Gaussian"
] | b872188f4f9da642df416a90965357598ecb47db3b71d719c6cee9560f08240b |
"""Implementation of Geodis Api."""
from roulier.api import Api
class GeodisApiRestWs(Api):
def _schemas(self):
return {
"service": self._service(),
"auth": self._auth(),
}
def normalize(self, data):
externalApi = super(GeodisApiRestWs, self)
internalAp... | akretion/roulier | roulier/carriers/geodis/geodis_api_rest_ws.py | Python | agpl-3.0 | 6,450 | [
"VisIt"
] | ab1b3ccf32be9fb0efd2faa36d79d9f40efc651548f30f146da1496199f534a8 |
"""Function-like object creating triclinic lattices.
The following lattice creator is defined:
Triclinic
"""
from ase.lattice.bravais import Bravais
import numpy as np
from ase.data import reference_states as _refstate
class TriclinicFactory(Bravais):
"A factory for creating triclinic lattices."
# The n... | grhawk/ASE | tools/ase/lattice/triclinic.py | Python | gpl-2.0 | 3,214 | [
"ASE",
"CRYSTAL"
] | 4aad796ed744ed33d84da1b751cdef5bb4b31f62103d098dd658776f59c15cce |
#!/usr/bin/env python3
from mayavi import mlab
import numpy as np
import os
def test_scalar_field():
# arbitrary grid
x, y, z = np.mgrid[-10:10:20j, -10:10:20j, -10:10:20j] # type: ignore
# fake data
s = np.sin(x * y * z) / (x * y * z)
scf = mlab.pipeline.scalar_field(x, y, z, s)
vol = mlab... | scienceopen/mayavi-examples-python | test_scalar_field.py | Python | mit | 486 | [
"Mayavi"
] | 4b79640c9cf4920c6ca42c90d3f5a77c6cdf06c446433f5ccafa1f1c06ab27e9 |
import collections
import networkx
import numpy
import os
import pandas
import pysam
import re
import scipy.stats
from grocsvs import step
from grocsvs import structuralvariants
from grocsvs import utilities
from grocsvs.stages import assembly
from grocsvs.stages import cluster_svs
from grocsvs.stages import call_rea... | grocsvs/grocsvs | src/grocsvs/stages/walk_assemblies.py | Python | mit | 18,814 | [
"pysam"
] | f816ebc208d6119537ace914fec0a691c963fe56a428aba5100039f815299309 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | test/test_drugs_api.py | Python | apache-2.0 | 10,007 | [
"VisIt"
] | bba89d86ffbfbd954e0c7598893f57f374592aeed2267ea331e1b5ba24bf6f6f |
# Orca
# Copyright (C) 2016 UrbanSim Inc.
# See full license in LICENSE.
import pandas as pd
import pytest
from .. import testing
def test_frames_equal_not_frames():
frame = pd.DataFrame({'a': [1]})
with pytest.raises(AssertionError) as info:
testing.assert_frames_equal(frame, 1)
assert 'Inputs... | jiffyclub/orca | orca/utils/tests/test_testing.py | Python | bsd-3-clause | 2,253 | [
"ORCA"
] | ea727cfb6071a60d4f6b7983c0ca47c7cca2b4fc844bfd734caf883e6a0bdb70 |
#!/usr/bin/env python
# encoding: utf-8
"""Pyvona : an IVONA python library
Author: Zachary Bears
Contact Email: bears.zachary@gmail.com
"""
import datetime
import hashlib
import hmac
import json
import tempfile
import contextlib
import os
from ..audio import sounds
class PyvonaException(Exception):
pass
try:
... | araczkowski/mopidy-rstation | mopidy_rstation/audio/pyvona.py | Python | apache-2.0 | 10,038 | [
"Brian"
] | 876328e3b0e4cea745f89b774d46440f17ef77667abd7cccb78708218d48c459 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | mfherbst/spack | var/spack/repos/builtin/packages/py-vmd-python/package.py | Python | lgpl-2.1 | 1,746 | [
"NetCDF",
"VMD"
] | d3b22118d594f95fe8f24ec1f1faf5c4e5c5b1022ff832954643205cddb9eed7 |
"""
/******************************************************************************
This source file is part of the Avogadro project.
Copyright 2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
di... | cjh1/mongochemweb-avogadrolibs | avogadro/qtplugins/scriptfileformats/formatScripts/zyx.py | Python | bsd-3-clause | 2,553 | [
"Avogadro"
] | 2104955494c58814af3acb14add2ed67b9f65eccda767cfa5f0121c8a44f21a3 |
"""
This module contains the core code needed for post selection
inference based on affine selection procedures as
described in the papers `Kac Rice`_, `Spacings`_, `covTest`_
and `post selection LASSO`_.
.. _covTest: http://arxiv.org/abs/1301.7161
.. _Kac Rice: http://arxiv.org/abs/1308.3020
.. _Spacings: http://arxi... | selective-inference/selective-inference | selectinf/constraints/quasi_affine.py | Python | bsd-3-clause | 37,606 | [
"Gaussian"
] | 7cc4f79c191fb54321a351a001c7772699d43536f750e613e68727043a98b314 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under ... | MDAnalysis/mdanalysis | package/MDAnalysis/converters/RDKitParser.py | Python | gpl-2.0 | 12,849 | [
"MDAnalysis",
"RDKit"
] | b63a1e376077ff61db995bdf73c72f654548cd8a824b422095b3719b8335d797 |
"""
Harris corner detector
Inspired from Solem's implementation
http://www.janeriksolem.net/2009/01/harris-corner-detector-in-python.html
"""
from scipy import ndimage
from . import peak
def _compute_harris_response(image, eps=1e-6, gaussian_deviation=1):
"""Compute the Harris corner detector response function
... | emmanuelle/scikits.image | skimage/feature/_harris.py | Python | bsd-3-clause | 3,265 | [
"Gaussian"
] | f3b312ca8ae2685299a0bc2d0eee6bfe5b4a58a1ab40bda5c18362e67dca7d8e |
#!/usr/bin/python
'''
Author: Alexander Godlewski
Year: 2011
A script to browse through the leaderboards for SOCOM 4
using multiprocessing to overcome network blocking
Gather the results and dump to a CSV file
There are issues with the implementation of the leaderboards
... | aleximplode/s4scraper | scrapef.py | Python | mit | 9,681 | [
"VisIt"
] | 830ffd4ef2068f7e3cb30bf25bc34287a361f9ff6e5525dd4a0b008260a7313c |
# Developed by Redjumpman for Redbot
# Standard Library
import ast
import csv
import re
from collections import namedtuple
# Discord
import discord
# Redbot
from redbot.core import commands
from redbot.core.data_manager import bundled_data_path
from redbot.core.utils.menus import menu, DEFAULT_CONTROLS
from redbot.c... | Redjumpman/Jumper-Cogs | pokedex/pokedex.py | Python | gpl-3.0 | 15,336 | [
"CRYSTAL"
] | b7166a3b848f928f2c648f9b26470b89169c77ab3092dd798da810db0f2a33fe |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
import json
from pymatgen.core.structure import Molecule
from pymatgen.io.nwchem import NwTask, NwInput, NwInputError, NwOutput
test_dir = os.path.join(os.path.dirname(__file__), ".... | tschaume/pymatgen | pymatgen/io/tests/test_nwchem.py | Python | mit | 13,627 | [
"NWChem",
"pymatgen"
] | 6909cb3d669fa5ecc15fee84e1bbdf8f692418d763a339c3966aff2be04fcbdb |
# -*- coding: latin-1 -*-
#
# Copyright (c) 2015-2016 Paul Bomke
# Distributed under the GNU GPL v2.
#
# This file is part of monkeyprint.
#
# monkeyprint 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... | robotsinthesun/monkeyprint | monkeyprintModelViewer.py | Python | gpl-2.0 | 7,353 | [
"VTK"
] | 08c5ecfd44f47ae5efbdf6ad9a263d0087753a71a6f739998ea5162a09217f98 |
from gammaspy.gammaData import peak, bg
import numpy as np
from six import iteritems
class FitModel(object):
"""!
@brief Combines background and peak models via Composition.
"""
def __init__(self, bg_order=1, n_peaks=1, peak_centers=[1000.]):
self.model_params = np.array([])
self.model... | wgurecky/GammaSpy | gammaspy/gammaData/fitmodel.py | Python | gpl-3.0 | 7,497 | [
"Gaussian"
] | 01e0f8cb2c8b735bad1520d9296e7ecf1af44cc777e710a96ed383f9ff46d3b8 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | CDSherrill/psi4 | psi4/driver/p4util/text.py | Python | lgpl-3.0 | 7,357 | [
"Psi4"
] | 7f132d524a34d73aa3906bb57e8c4d610365bac8d080e2aab926eb082677d042 |
from base import *
from globs import *
from types_builtin import app_map, subst
# Sure could use graphs here!
VatContents = DT('VatContents', ('copiedExtrinsics', ['*Extrinsic']),
('replacements', {'a': 'a'}),
('transmute', {'a': 'a'}))
VAT = new_env('V... | pshc/archipelago | vat.py | Python | mit | 12,572 | [
"VisIt"
] | ddb76256476173e39acad81c1ee8a1cbd83f229f1e4c19872b582d0f327f7d61 |
#!/usr/bin/env python3
##########################################################################
#
# Copyright 2011 Jose Fonseca
# 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
# in t... | apitrace/apitrace | scripts/retracediff.py | Python | mit | 13,177 | [
"VisIt"
] | 0e8760791362b1f5e75eb8df4759c3772e0280281b71dbb52230c484388a1271 |
# encoding: utf-8
"""
Enable pygtk to be used interacive by setting PyOS_InputHook.
Authors: Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license ... | mattvonrocketstein/smash | smashlib/ipy3x/lib/inputhookgtk.py | Python | mit | 1,023 | [
"Brian"
] | c37248861fdddac5cf7a0139f11095771f9a31385bb766ac484950897dbdfef7 |
from DIRAC import S_OK
from DIRAC.AccountingSystem.Client.Types.DataOperation import DataOperation
from DIRAC.AccountingSystem.private.Plotters.BaseReporter import BaseReporter
class DataOperationPlotter(BaseReporter):
_typeName = "DataOperation"
_typeKeyFields = [dF[0] for dF in DataOperation().definitionKeyFi... | andresailer/DIRAC | AccountingSystem/private/Plotters/DataOperationPlotter.py | Python | gpl-3.0 | 10,852 | [
"DIRAC"
] | e21714dc1a51b33d621d6f025b5365e3369481feac4ead20556325573313482c |
#!/usr/bin/env python
from __future__ import print_function
import optparse
import os
import os.path
import re
import shutil
import sys
parser = optparse.OptionParser()
parser.add_option('-d', '--export_dir', help='Directory where to export the datasets')
parser.add_option('-p', '--dir_prefix', help='How the export d... | TGAC/tgac-galaxytools | tools/export_to_cluster/export_to_cluster.py | Python | mit | 1,921 | [
"Galaxy"
] | 12ddd4f4fb8fd98af8bcf396f5c462a734aebe189ddbafe73080aa8accd27743 |
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2015 MUJIN Inc
from . import json
from . import planningclient
import logging
log = logging.getLogger(__name__)
class RealtimeRobotControllerClient(planningclient.PlanningControllerClient):
"""Mujin controller client for realtimerobot task
"""
_robotname = Non... | mujin/mujincontrollerclientpy | python/mujincontrollerclient/realtimerobotclient.py | Python | apache-2.0 | 53,535 | [
"Gaussian"
] | 580a48a567b94336333c49c1e01e6ebe8c6b76a474a91f81c542486bd995f293 |
#! /usr/bin/env python
# -*- coding: utf8 -*-
# Author: Platinhom; Last Updated: 2015-10-1
# Summary each atom type surface area from the pqrta file.
# Usage: python ESES_AtomicArea.py file.pqrta gaff
#
# Note: Only for PQRTA format input.
# Custom: ESES parameters, atom type set
import os,sys
# Modify the ESES prog... | platinhom/DailyTools | scripts/ESES_AtomicArea.py | Python | gpl-2.0 | 2,573 | [
"Amber"
] | 7450d7e30774a8c623db024ac6c7c2c89e76f25b78fff44f69f084f137edb4f2 |
""" Rough implementation of Harris Corner Detector and Shi-Tomasi
More faster than Harris.py (>10x) """
import cv2,time,sys
import numpy as np
from matplotlib import pyplot as plt
def det(a,b,c,d):
return 0
img = cv2.imread('sofsign.jpg',0)
#img = cv2.equalizeHist(img)
rows,cols = img.shape
#img = cv2.GaussianB... | abidrahmank/MyRoughWork | roughnote/corner_detectors/Harris_2.py | Python | mit | 1,304 | [
"Gaussian"
] | 9640a7796fb8e41bbe42b10e434cbd6dc39125952700cfb3e22525b862c1a84b |
#!/usr/bin/env python3
from setuptools import setup
setup(name='visipfix',
version='0.1.0',
description='IPFIX message visualizer for Python 3.3',
author='Brian Trammell',
author_email='brian@trammell.ch',
url='http://github.com/britram/python-ipfix',
packages=['visipfix'],
r... | britram/python-ipfix | vis-package/setup.py | Python | lgpl-3.0 | 756 | [
"Brian"
] | d964ccb326b5150029113743e2d4458dbd6cbe139caa5005603e555ec1f09aee |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | mlperf/training_results_v0.7 | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/python/tvm/relay/analysis.py | Python | apache-2.0 | 9,038 | [
"VisIt"
] | 98476352c6dcb8a336484d656802033de4817372d5e9fc8d6dcbb035af0e4478 |
# 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 RMzid(RPackage):
"""An mzIdentML parser for R
A parser for mzIdentML files impleme... | LLNL/spack | var/spack/repos/builtin/packages/r-mzid/package.py | Python | lgpl-2.1 | 1,523 | [
"Bioconductor"
] | 75422a51eaed918d58b44a29a9886ec17848c04a9d0e880687fe58d0e2637ed1 |
# This is part of DEPTH.
# DEPTH (Version: 2.0) computes the closest distance of a residue/atom to bulk solvent and predicts small molecule binding site of a protein.
# Copyright (C) 2013, Kuan Pern Tan, Nguyen Thanh Binh, Raghavan Varadarajan and M.S. Madhusudhan
#
# DEPTH is free software: you can redistribute it a... | asford/depth | bin/get_blast_entropy.py | Python | gpl-3.0 | 2,691 | [
"BLAST"
] | e9c1f6578272ddbaf0c91e31d51b8fc7ea2088886d322280887c6b4b078cefbc |
#!/usr/bin/env python
#By: Guruprasad Ananda
"""
Fetch closest up/downstream interval from features corresponding to every interval in primary
usage: %prog primary_file features_file out_file direction
-1, --cols1=N,N,N,N: Columns for start, end, strand in first file
-2, --cols2=N,N,N,N: Columns for start, end... | dbcls/dbcls-galaxy | tools/new_operations/flanking_features.py | Python | mit | 7,557 | [
"Galaxy"
] | 10b18dfc4845f81a04116ccb8632624d67f4e075a793142bbb9b087ed4a297f2 |
#!/usr/bin/python
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute... | psi4/psi4 | doc/sphinxman/document_plugins.py | Python | lgpl-3.0 | 15,223 | [
"Psi4"
] | 768378bbc4c7aff207a7d8e3258edc593defdc6ea2315c2ccf805fca8038b8af |
from DIRAC.WorkloadManagementSystem.Client.SandboxStoreClient import SandboxStoreClient
from WebAppDIRAC.Lib.WebHandler import WebHandler, asyncGen
from DIRAC.Core.DISET.RPCClient import RPCClient
from DIRAC import gConfig, gLogger
from DIRAC.Core.Utilities import Time
from WebAppDIRAC.WebApp.handler.Palette import Pa... | zmathe/WebAppDIRAC | WebApp/handler/JobMonitorHandler.py | Python | gpl-3.0 | 22,745 | [
"DIRAC"
] | c4b02e122131eb277efe2f83b944c4e86270e51fa572052f330f806f1d55c79a |
#
# 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 = 500
n = 250
display = True
wo... | sg0/Elemental | examples/interface/LAVDense.py | Python | bsd-3-clause | 1,802 | [
"Gaussian"
] | ef28bde0b807f67230454afb5482793628f3e64e02678ac229174df3d9dd5f1f |
# -*- coding: utf-8 -*-
# Spearmint
#
# Academic and Non-Commercial Research Use Software License and Terms
# of Use
#
# Spearmint is a software package to perform Bayesian optimization
# according to specific algorithms (the “Software”). The Software is
# designed to automatically run experiments (thus the code name
... | DavidMcDonald1993/ghsom | spearmint/spearmint/tasks/task_group.py | Python | gpl-2.0 | 13,533 | [
"Gaussian"
] | 3f4a4f516038f012703d17a2aa79bf1206a976fe95962bf225288cc36546f941 |
# -*- coding: utf-8 -*-
"""This module provides the Expr class. This attempts to create a
consistent interface to SymPy's expressions.
Copyright 2014--2022 Michael Hayes, UCECE
"""
# TODO, propagate assumptions for arithmetic......... This may be
# tricky. At the moment only a limited propagation of assumptions... | mph-/lcapy | lcapy/expr.py | Python | lgpl-2.1 | 117,484 | [
"DIRAC"
] | 10f7be83ec2e016a5fa7cd038b147cf5287db018eaaf605902787041e9a3ab4e |
from gpaw.xc.functional import XCFunctional
from gpaw.mpi import world
class NonLocalFunctional(XCFunctional):
type = 'GLLB'
def __init__(self, xcname):
self.contributions = []
self.xcs = {}
XCFunctional.__init__(self, xcname)
def initialize(self, density, hamiltonian, wfs, occ... | robwarm/gpaw-symm | gpaw/xc/gllb/nonlocalfunctional.py | Python | gpl-3.0 | 4,509 | [
"GPAW"
] | a4fe6fc63f86b6a9edb0671378128b3f3c8beabd0b488362aaabf4320f7e73f4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.