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) 2015-2018, Exa Analytics Development Team
## Distributed under the terms of the Apache License 2.0
"""
Tests for :mod:`~exatomic.nwchem.output`
#############################################
"""
#import numpy as np
#import pandas as pd
from unittest import TestCase
from exatomic.... | alexvmarch/atomic | exatomic/nwchem/tests/test_output.py | Python | apache-2.0 | 1,992 | [
"NWChem"
] | 6a3be71ffdc182002451b1d370778a24cec0acee9d8bb911e468797fc2ff9a0d |
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""I/O function wrappers for phylogenetic tree formats.
This API follows the same seman... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/Phylo/_io.py | Python | gpl-2.0 | 3,108 | [
"Biopython"
] | 0296a06d341b79637b20e7624b733de5c724b01777811d84d1d2883852a1ce7d |
from uuid import uuid4
import lightify
from Firefly import logging, scheduler
from Firefly.const import AUTHOR, COMMAND_UPDATE
from Firefly.core.service_handler import ServiceConfig, ServicePackage
from Firefly.helpers.events import Command
from Firefly.helpers.service import Service
TITLE = 'Lightify Lights'
SERVIC... | Firefly-Automation/Firefly | Firefly/services/lightify.py | Python | apache-2.0 | 2,231 | [
"Firefly"
] | 801f607f867c002694b78e0fc1e9be03d093f7cc396f8fd12e6dc190a632d13b |
"""Code for the B{0store} command-line interface."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
from zeroinstall import _
import sys, os, errno
from zeroinstall.zerostore import manifest
from zeroinstall.zerostore.manife... | linuxmidhun/0install | zeroinstall/zerostore/cli.py | Python | lgpl-2.1 | 7,801 | [
"VisIt"
] | f6247e2258a3fd2f7a018f850366c6c98c566582e876b56639a76cb103851f4d |
# pylint: disable=C0111
# pylint: disable=W0621
from lettuce import world, step
from lettuce.django import django_url
from nose.tools import assert_equal
def create_cert_course():
world.clear_courses()
org = 'edx'
number = '999'
name = 'Certificates'
world.scenario_dict['COURSE'] = world.CourseFa... | wwj718/ANALYSE | lms/djangoapps/courseware/features/certificates.py | Python | agpl-3.0 | 9,029 | [
"VisIt"
] | e76633790d6d6226c34946bde68d88b29b9edcfd2bb99dfa6c379d3d04be3b9d |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#检查history realtm文件中所有的个股,哪些是CX,哪些不是
#这是一个调试用的小方法
import sys
import re
import os
import string
import datetime
import shutil
sys.path.append(".")
from internal.trade_date import *
from internal.realtime_obj import *
from internal.analyze_realtime import *
from internal.hand... | yudingding6197/fin_script | debug/his_rt/check_his_cx.py | Python | gpl-2.0 | 1,479 | [
"BLAST"
] | 5fc47f5955afa38b2d379ef7973d04e6e7b8e304a794a2a1a584f9557936a49c |
# Copyright (c) 2015-2017 Cisco Systems, Inc.
#
# 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 the Software without restriction, including without limitation the
# rights to use, copy, modify, merge... | retr0h/maquina | molecule/command/init.py | Python | mit | 7,863 | [
"Galaxy"
] | 8b0b3734157da4959772e78243f8279d79ad5e52db5f1267f6c1cd654161f393 |
# Copyright 2013-2020 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)
"""
This module has methods for parsing names and versions of packages from URLs.
The idea is to allow package creators to... | iulian787/spack | lib/spack/spack/url.py | Python | lgpl-2.1 | 31,342 | [
"BLAST",
"HOOMD-blue",
"VTK"
] | 9f29f0cee25bbedc7a1b6898e079b277bad22df88d052bf7c6d7c079c61559e0 |
#!/usr/bin/env python
try:
from netCDF4 import Dataset
except:
print "netCDF4 is not installed!"
sys.exit(1)
import numpy as np
import pylab as plt
from optparse import OptionParser
parser = OptionParser()
parser.usage = "usage: %prog [options] FILE"
parser.description = "A script to compare PISM flowli... | talbrecht/pism_pik06 | examples/storglaciaren/plot_flowline_results.py | Python | gpl-3.0 | 3,592 | [
"NetCDF"
] | b31a241668105c8d0728e667180d0d1b835e10a6beeac9bae34c04a9600d82a3 |
### Input parameters for PAScual.
### by Carlos Pascual-Izarra < cpascual [AT] users.sourceforge.net > 2007
### '''
### This file is part of PAScual.
### PAScual: Positron Annihilation Spectroscopy data analysis
### Copyright (C) 2007 Carlos Pascual-Izarra < cpascual [AT] users.sourceforge.net >
###
#... | cpascual/PAScual | PAScual/PAScual_input.py | Python | gpl-3.0 | 13,938 | [
"Gaussian"
] | bd2b57277af820615f374d2e49c9f5128f421f588a19e07fab14f98efc8c47c1 |
#!/usr/bin/env python
##############################################################################
#
# Usage example for the procedure PPXF, which
# implements the Penalized Pixel-Fitting (pPXF) method by
# Cappellari M., & Emsellem E., 2004, PASP, 116, 138.
#
# This example shows how to fit multiple stellar componen... | moustakas/impy | lib/ppxf/ppxf_two_components_example.py | Python | gpl-2.0 | 4,201 | [
"Galaxy",
"Gaussian"
] | 815f27209cc81ab0ab540e3b48356ca5568d83ff0593db24fe561bdf26deadbd |
####### We start by importing some useful packages
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import time
import sys, getopt
from pysit import *
from pysit.gallery import marmousi
from pysit.util.parallel import *
from mpi4py import MPI
from scipy.io import savemat, loadmat
####### He... | kiaakrami/An-Alternative-FWI-AFWI-Algorithm-for-Monitoring-Time-lapse-Velocity-Changes | chapter_4_thesis_replication.py | Python | gpl-3.0 | 12,981 | [
"Gaussian"
] | fd1d409f00e1fe85285107cbf3163db1eb322f9506708b4f59647e2a6760c5c5 |
# Map assignments to questions
CURRENT_ASSIGNMENTS = ['hw01']
QUESTIONS = {
'HOG': ,
'ANTS': ,
'SCHEME':
'hw01':
'hw02':
'hw03':
'hw04':
'hw05':
'hw06':
'hw07':
'hw08':
'hw09':
'hw10':
'hw11': ,
}
OFFICE_HOURS = {
'MONDAY': {
(11,... | kvchen/officehour-queue | oh_queue/constants.py | Python | mit | 1,386 | [
"Brian"
] | 4445f77a6e6b6758ae5afe759cbdb44dca038386068c965034da4f5da541d0e5 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes 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 appli... | humblec/external-storage | vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py | Python | apache-2.0 | 37,444 | [
"CDK"
] | 3777b1e775713877c45a47189836735907c90680354b4ca32e9707b961abdfff |
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that all files contain proper licensing information."""
import json
import optparse
import os.path
import subproces... | hgl888/chromium-crosswalk | tools/checklicenses/checklicenses.py | Python | bsd-3-clause | 16,880 | [
"Galaxy"
] | a6026fb90b6b3e86cdf99e34dd4f4191af0491a773edce7973b96b18db128e9b |
#!/usr/bin/env python
#python 3.3 requires biopython
#Version 1. Darcy Jones, January 2014.
#Contact Darcy Jones, darcy.ab.jones@gmail.com
#----------------------------------- LICENSE ---------------------------------------#
# mcl2genes - takes gene family output information from MCL analysis and writes ... | darcyabjones/mcl-to-kaks | mcl2genes.py | Python | gpl-3.0 | 9,682 | [
"Biopython"
] | e75832acfc32011f21bec6f76c54871de32b264480162211b75edbeb3b5a4c19 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
import sys
import os
from PyQt4 import QtCore, QtGui
from ui.Ui_exterminator import Ui_MainWindow
from ui.Ui_finalize import Ui_FinalImage
from ui.Ui_export_to_hdf5 import Ui_ExportHdf5
from etc import changelog
f... | sem-geologist/Qstitch | Qstitch.py | Python | gpl-2.0 | 70,991 | [
"Gaussian"
] | 01988b4e6192df10ed2f5b98bfc0d5284e5bc8b528edfdd835565c11759bd599 |
"""Module make_residimage.
It calculates residual image from the list of gaussians and shapelets
"""
import numpy as N
from scipy import stats # for skew and kurtosis
from image import *
from shapelets import *
import mylogger
### Insert attribute into Image class for model image
Image.resid_gaus = NArray(doc="Resid... | jjdmol/LOFAR | CEP/PyBDSM/src/python/make_residimage.py | Python | gpl-3.0 | 8,960 | [
"Gaussian"
] | 582a8cbc5e8fbf036443e5bf02ca93ad2f7514e44eeff24c14355a0de6e417b1 |
"""
.. module: XCScan
: platform: Windows
.. moduleauthor: : Daniel R. Dietze <daniel.dietze@berkeley.edu>
Measure a 2D contour map consisting of camera signal vs delay time. Can be used to measure Kerr cross-correlation,
TA-maps, FSRS-maps or dT/T-maps. Allows fitting of the data columnwise to a Gaussian ... | ddietze/pyFSRS | installed_modules/xFSRS/XCScan.py | Python | gpl-3.0 | 12,082 | [
"Gaussian"
] | 8477f590b5a42d87c291c63830b2c457ed2460494aa73db9cb2c4e646c0fb4da |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
"""
.. currentmodule:: pylayers.simul.simultraj
.. autosummary::
"""
import doctest
import numpy as np
import copy
import matplotlib.pylab as plt
import pylayers.util.pyutil as pyu
import pylayers.signal.waveform as wvf
from pylayers.signal.device import Device
# Handle La... | pylayers/pylayers | pylayers/simul/simultraj.py | Python | mit | 43,608 | [
"Mayavi"
] | 26c53bb20f07461e4cee52b8d4faa9595008d493445fec790413e52b8180eafa |
import time
# !! This is the configuration of Nikola. !! #
# !! You should edit it to your liking. !! #
# ! Some settings can be different in different languages.
# ! A comment stating (translatable) is used to denote those.
# ! There are two ways to specify a translatable setting:
# ! (a) BLOG_TITLE = "My Blog"
# ... | colour-science/colour-science.org | conf.py | Python | bsd-3-clause | 59,916 | [
"VisIt"
] | 3225e94a6b9690dcda67b64e4023294b15c1b2daa4068f646f403844a9b61cf6 |
##
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2010 Peter Landgren
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Adam Stein <adam@csh.rit.edu>
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute it and... | Forage/Gramps | gramps/gen/plug/report/endnotes.py | Python | gpl-2.0 | 7,028 | [
"Brian"
] | 42f82df62e81fe0bb186a14b0772308efa38935fd31126ac4faa470f763a26b0 |
###
# Copyright (c) 2002-2005, Jeremiah Fincher
# Copyright (c) 2010, James McCoy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyr... | Ban3/Limnoria | plugins/Factoids/test.py | Python | bsd-3-clause | 10,283 | [
"MOE"
] | 90b7b19982ad59cdbdf4e1c40b9001fa65b851a42331bf8b3256f43a41956a9f |
"""
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe, J. Nothman
# License: BSD 3 clause
import numbers
import array
import numpy as np
from scipy import linalg
import scipy.sparse as sp
from ..preprocessing import MultiLabelBin... | valexandersaulys/airbnb_kaggle_contest | venv/lib/python3.4/site-packages/sklearn/datasets/samples_generator.py | Python | gpl-2.0 | 56,502 | [
"Gaussian"
] | 9442f71b0fcf348848656dd2fa85178af4e9b2268ab4f52359b77c2cf2c8c74c |
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU
# GPL v2 or later.
"""
example_geodynamic_adiabat
----------------
This example script demonstrates how burnman can be used to
self-c... | tjhei/burnman | examples/example_geodynamic_adiabat.py | Python | gpl-2.0 | 14,925 | [
"Gaussian"
] | cc7ac0586b4cb21fb9583989625f52eeaa63a747ba305b34e118d51ab42457c0 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2014 David Emms
#
# This program (OrthoFinder) is distributed under the terms of the GNU General Public License v3
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | davidemms/OrthoFinder | scripts_of/orthologues.py | Python | gpl-3.0 | 53,879 | [
"BLAST"
] | 8e93e4e34ec3e7ec429bdf4ba61e2f53468aff36cee73d5fc5abc1824eedd094 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import math
import os
import json
import collections
import itertools
from abc import ABCMeta, abstractmethod
import random
import warnings
from fnmatch import fnmatch
import re
import functools
from math imp... | montoyjh/pymatgen | pymatgen/core/structure.py | Python | mit | 141,301 | [
"ABINIT",
"CRYSTAL",
"Gaussian",
"NetCDF",
"VASP",
"exciting",
"pymatgen"
] | 533e21c4e20a400f58c6754cc4123d770884e1377f11c0c9446ecc4be1438412 |
"""
Use Scanorama to integrate cells from different experiments.
"""
from anndata import AnnData
import numpy as np
def scanorama_integrate(
adata: AnnData,
key: str,
basis: str = 'X_pca',
adjusted_basis: str = 'X_scanorama',
knn: int = 20,
sigma: float = 15,
approx: bool = True,
alph... | theislab/scanpy | scanpy/external/pp/_scanorama_integrate.py | Python | bsd-3-clause | 4,175 | [
"Gaussian"
] | 13d93058aab82753d90542ee40c717d2f4a564c8b6d1612d51a224aa8c1eb5bc |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
from __future__ import with_statement
import functools
import logging
import threading
import time
try:
from collections import namedtuple
except ImportError:
from third_party.py.concurrent.futures._compat im... | Digas29/bazel | third_party/py/concurrent/futures/_base.py | Python | apache-2.0 | 19,681 | [
"Brian"
] | 4ff740dabc310b2d2d062f56b03d1fee6fee2da2729bdeeb20246ccf5669543f |
"""
Migration script to add the metadata, update_available and includes_datatypes columns to the tool_shed_repository table.
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
import datetime
now = datetime.datetime.utcnow
# Need our custom types, but don't... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/model/migrate/versions/0086_add_tool_shed_repository_table_columns.py | Python | gpl-3.0 | 3,763 | [
"Galaxy"
] | 9b44d2541c265997e8aa373448a5673de0ad1cb60b517d31551fd54a2b237c0a |
../../../../../../../share/pyshared/orca/scripts/apps/gnome-system-monitor/__init__.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/gnome-system-monitor/__init__.py | Python | gpl-3.0 | 86 | [
"ORCA"
] | 8b9e383d5ee45b2b57ec2001258cd15d674123c55b052f2126e9a59caedbbcd7 |
# -*- coding: iso-8859-1 -*-
'''Module for creating the requested output files.
'''
'''
orbkit
Gunter Hermann, Vincent Pohl, Lukas Eugen Marsoner Steinkasserer, Axel Schild, and Jean Christophe Tremblay
Institut fuer Chemie und Biochemie, Freie Universitaet Berlin, 14195 Berlin, Germany
This file is part of orbkit.
... | orbkit/orbkit | orbkit/output/high_level.py | Python | lgpl-3.0 | 12,902 | [
"Mayavi",
"VMD"
] | 0847d8c2a5742db20d6043932ec31529fb455b235812133aef066aab50af5b18 |
####################################################################################################
#
# Patro - A Python library to make patterns for fashion design
# Copyright (C) 2018 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gene... | FabriceSalvaire/PyValentina | Patro/GraphicStyle/Color/color_data.py | Python | gpl-3.0 | 43,156 | [
"Amber"
] | 416e591efa8130cca2db46c8d3eb0c94e7f44884959539de959a6a5b535484d5 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Wrapper classes for Cif input and output from Structures.
"""
import math
import re
import os
import textwrap
import warnings
from collections import OrderedDict, deque
from io import StringIO
import numpy... | tschaume/pymatgen | pymatgen/io/cif.py | Python | mit | 58,730 | [
"Avogadro",
"CRYSTAL",
"pymatgen"
] | f04cf9cc45d70c40323bd0511e6ee17b10c6f2ae8e6daabb8b56db9dbaf7d150 |
#
# @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 it and/or modify
#... | psi4/psi4 | psi4/extras.py | Python | lgpl-3.0 | 6,885 | [
"CFOUR",
"Psi4"
] | a499f48c717354db972932e34ae558481e058527df4eeadc08752760f0ea9355 |
import logging
import os
import sys
import tempfile
from galaxy.util import listify
from xml.etree import ElementTree as XmlET
import xml.etree.ElementTree
log = logging.getLogger( __name__ )
using_python_27 = sys.version_info[ :2 ] >= ( 2, 7 )
class Py26CommentedTreeBuilder ( XmlET.XMLTreeBuilder ):
# Python 2.... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/util/xml_util.py | Python | gpl-3.0 | 6,092 | [
"Galaxy"
] | b3bed4ab711cb6ae6957ad1af61fb6fe7a4ea18f2f0b2707274d9e0c1aca140f |
#!/usr/bin/env python
#
# Copyright 2007 Google 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 o... | adviti/melange | thirdparty/google_appengine/google/appengine/tools/appcfg.py | Python | apache-2.0 | 129,924 | [
"VisIt"
] | dbb73a577dee1ffa04ce61da33559426eee6d182a52016498e78c2bc2655f316 |
import ply.lex as lex
import ply.yacc as yacc
import boilerplategen
import cgen
import collect_id as ci
import define_arguments as darg
import kernelgen
import lan
import rewriter
import stencil
import transpose as tp
fileprefix = "../../test/C/"
SetNoReadBack = True
DoOptimizations = True
def __get_ast_from_file(f... | dikujepsen/OpenTran | v2.0/framework/Matmul/main.py | Python | mit | 3,736 | [
"Gaussian"
] | ed087760fdea8a194cc1bc9ad4e7e4edfd9fb802e40395e2fc285552e89ea064 |
# -*- coding: utf-8 -*-
"""Algorithms for spectral clustering"""
# Author: Gael Varoquaux gael.varoquaux@normalesup.org
# Brian Cheung
# Wei LI <kuantkid@gmail.com>
# License: BSD 3 clause
import warnings
import numpy as np
from sklearn.base import BaseEstimator, ClusterMixin
from sklearn.utils impor... | e-koch/SCIMES | scimes/spectral.py | Python | gpl-2.0 | 19,146 | [
"Brian",
"Gaussian"
] | 50fcf92e54776bc074c85988ad9e21e1d74df08fb4b3a0bd681e914007e3ccb5 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Loreto Parisi <loretoparisi@gmail.com>
# Copyright (C) 2016 Silvio Olivastri <silvio.olivastri@gmail.com>
# Copyright (C) 2016 Radim Rehurek <radim@rare-technologies.com>
"""
USAGE: $ python -m gensim.scripts.word2vec2tensor --input <Word2Vec model f... | macks22/gensim | gensim/scripts/word2vec2tensor.py | Python | lgpl-2.1 | 3,301 | [
"VisIt"
] | 9dde73b43e026c36058d2e84028afb34cf72d5ed7d97cd83687b8c6fac77b795 |
#!/usr/bin/env python
""" load Sample into OSDF using info from data file """
import os
import re
from cutlass.Sample import Sample
import settings
from cutlass_utils import \
load_data, get_parent_node_id, list_tags, format_query, \
write_csv_headers, values_to_node_dict, write_out_csv, \
lo... | TheJacksonLaboratory/osdf_submit | nodes/host_Seq_Prep_Sample.py | Python | gpl-3.0 | 6,357 | [
"VisIt"
] | e83feae054e596bee15da49bc88c57ae02045a7c9e2ffc3c35d9659d710d31f2 |
# For each PDB in kinDB.xml, download the SIFTS residue-mapping .xml file
# Add experimental and resolved sequences to kinDB (numbered according to the UniProt sequence)
# Also add alignments of these sequences against the UniProt sequence
#
# Daniel L. Parton <partond@mskcc.org> - 10 Apr 2013
#
# Perhaps get DSSP info... | choderalab/TargetExplorer | scripts/attic/gather-pdb.py | Python | gpl-2.0 | 18,125 | [
"Biopython"
] | 1e48ac30ae08eb11bbc132235e4a8d0ff74ae2a9139696b828152734404e8c9c |
r"""
Empirical Power Estimation (:mod:`skbio.stats.power`)
=====================================================
.. currentmodule:: skbio.stats.power
The purpose of this module is to provide empirical, post-hoc power estimation
of normally and non-normally distributed data. It also provides support to
subsample data ... | johnchase/scikit-bio | skbio/stats/power.py | Python | bsd-3-clause | 51,572 | [
"scikit-bio"
] | 5d8a683661c31db6315728405f12db648deebf192a91057bd5114be9024ff20a |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/analysis/MaxPID.py | Python | gpl-3.0 | 1,638 | [
"ESPResSo"
] | 88927e9542d9b6b5535a82fa09faeacbc3630416f6534a0b741f94f6164c25c3 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/learn/optimizers/__init__.py | Python | apache-2.0 | 645 | [
"ORCA"
] | 02354115448aa7b7c62d20f39aae41d4302d6002448439568371db2b18caa4a6 |
"""
Project
FPGA-Imaging-Library
Design
Shear
Function
Shearing an image by your given sh.
Module
Software simulation.
Version
1.0
Modified
2015-05-28
Copyright (C) 2015 Tianyu Dai (dtysky) <dtysky@outlook.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Le... | jaechoon2/FPGA-Imaging-Library | Geometry/Shear/SoftwareSim/sim.py | Python | lgpl-2.1 | 4,117 | [
"MOE"
] | 4d0479cc3f1d10042db1c1f2b440eafa4ed8a8db73a6b5936928d4f2302fabd8 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | magnunor/hyperspy | hyperspy/tests/signal/test_remove_background.py | Python | gpl-3.0 | 4,285 | [
"Gaussian"
] | afe69defdfed37b845b2e17787ca9acf7a6f1d4c2c308a641e81ad2b2445387c |
""" Generation of sine-Gaussian bursty type things
"""
import pycbc.types
import numpy
def fd_sine_gaussian(amp, quality, central_frequency, fmin, fmax, delta_f):
""" Generate a Fourier domain sine-Gaussian
Parameters
----------
amp: float
Amplitude of the sine-Gaussian
quality: float
... | tjma12/pycbc | pycbc/waveform/sinegauss.py | Python | gpl-3.0 | 1,270 | [
"Gaussian"
] | dda5b931678ceac5a9e288288f07e659331292025fc0c0fb2e62fb554b024123 |
######################################################################
# Copyright (C) 2013-2014 Jaakko Luttinen
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
######################################################################
###############... | nipunbatra/bayespy | bayespy/demos/lssm_tvd.py | Python | gpl-3.0 | 15,450 | [
"Gaussian"
] | a89be6df26da0d66e54a3d4aee4e7e975e09d391e27308a00bfad840d2e3c438 |
"""Amber Electric Sensor definitions."""
# There are three types of sensor: Current, Forecast and Grid
# Current and forecast will create general, controlled load and feed in as required
# At the moment renewables in the only grid sensor.
from __future__ import annotations
from collections.abc import Mapping
from t... | jawilson/home-assistant | homeassistant/components/amberelectric/sensor.py | Python | apache-2.0 | 8,354 | [
"Amber"
] | dce0a7fe3dd89a36372333787b7f527fad6ab312fbd0027fa926c7490a72c808 |
# SPDX-License-Identifier: MIT
# Copyright (C) 2019-2021 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
from ..scraper import _ParserScraper
class WebToons(_ParserScraper):
imageSearch = '//img[contains(@class, "_images")]/@data-url'
prevSearch = '//a[contains(@class, "_prevEpisode")]'
multiple... | webcomics/dosage | dosagelib/plugins/webtoons.py | Python | mit | 27,799 | [
"CRYSTAL"
] | 34504c4f2ec7f6d81401fe7b176d860b62ab8279a8ea566004590f3c929cfc3e |
from tools.load import LoadMatrix
from sg import sg
lm=LoadMatrix()
traindat=lm.load_numbers('../data/fm_train_real.dat')
testdat=lm.load_numbers('../data/fm_test_real.dat')
train_label=lm.load_labels('../data/label_train_twoclass.dat')
parameter_list=[[traindat,testdat, train_label,10,2.1,1.2,1e-5,False],
[traindat... | curiousguy13/shogun | examples/undocumented/python_static/classifier_libsvm.py | Python | gpl-3.0 | 1,043 | [
"Gaussian"
] | 4ad930d8097646de5826eb984ae974880b595aba650a0ef36d721bc53ebabd4b |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | espressomd/espresso | testsuite/python/constraint_homogeneous_magnetic_field.py | Python | gpl-3.0 | 3,558 | [
"ESPResSo"
] | cedc3c7ff981c811661338ab84c7eb45e87a4221db7407646711c287be596ae7 |
#!/usr/bin/env python
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Deploys Fuchsia packages to a package repository in a Fuchsia
build output directory."""
import pkg_repo
import argparse
import os... | nwjs/chromium.src | build/fuchsia/deploy_to_pkg_repo.py | Python | bsd-3-clause | 1,408 | [
"Amber"
] | f1d7af5f5e5fa92c60d938ad6338ff3f07a5fd3452595ae5f05216fc8ee7b2c4 |
#
# Mike Dvorak
# Sail Tactics
# mike@sailtactics.com
#
# Created: 2014-12-26
# Modified:
#
#
# Description: Manages SUNTANS tide forecast netCDF data in a WindDB2.
#
#
import numpy
import scipy.io.netcdf as nc
import argparse
from windb2 import insert, util
import os
import tempfile
from datetime import datetime
impor... | sailorsenergy/windb2 | windb2/model/suntans/suntans.py | Python | gpl-3.0 | 7,472 | [
"NetCDF"
] | 76d20036daa4f7762b3f7ed1ed55562b2b498e58baa6c67c19a169b9463523b5 |
"""Implementation of the text encoder.
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | googleinterns/via-content-understanding | videoretrieval/models/components/textencoder.py | Python | apache-2.0 | 6,575 | [
"MOE"
] | f5d47583e3f9014adec77db9a994a54bee7013bc519a28c326aa9a5004d6d720 |
import math
import core
import euclid
# NOTE:
# Dear developers,
# If classes will be used as base class in geometries use LB in front of class names
# This will avoid name confusions between the libraries and all the geometry libraries
# can use the same class name (e.g Sunpath)
class LBSunpath(object):
"""
... | antonszilasi/honeybeex | honeybeex/honeybee/ladybug/sunpath.py | Python | gpl-3.0 | 13,838 | [
"EPW"
] | b0504796839ec7f760ae30e7cae70a7cb01dd656b48604740724adffb95bd92b |
#!/usr/bin/env python
import vtk
def main():
# Create a graph
graph = vtk.vtkMutableDirectedGraph()
v1 = graph.AddVertex()
v2 = graph.AddVertex()
v3 = graph.AddVertex()
graph.AddEdge(v1,v2)
graph.AddEdge(v2,v3)
# Manually set the position of the vertices
points = vtk.vtkP... | lorensen/VTKExamples | src/Python/Graphs/ColorVerticesLookupTable.py | Python | apache-2.0 | 1,712 | [
"VTK"
] | a52c32df53ce3ced3dd2663b03d16fc0c3939319c667f3f3acea32461cb1c41a |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-wms-job-attributes
# Author : Stuart Paterson
########################################################################
"""
Retrieve attributes associated with the given DIRAC job
"""
__RCSID__... | Sbalbp/DIRAC | Interfaces/scripts/dirac-wms-job-attributes.py | Python | gpl-3.0 | 1,197 | [
"DIRAC"
] | 8f9aa85cfd66ab1093caaacb24b103392854472619c76679f0f7b94a977ebbf4 |
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/extension/_help.py | Python | mit | 3,409 | [
"VisIt"
] | 1618f2f190f8ccb5e4084e6f4f10015fdd66fa321114112f66db50acacc03517 |
# Copyright (c) 2018 Greg Pintilie - gregp@slac.stanford.edu
# 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 the Software without restriction, including without limitation the rights
# to use, copy, mod... | gregdp/segger | Segger/modelz.py | Python | mit | 262,914 | [
"Gaussian"
] | fa9b5c964fc9ba967c3e835e53b9c7bfff2de8d144796bd569f1612bf95163b2 |
#!/usr/bin/env python
import unittest
import random
import nemo
class IzNetwork(nemo.Network):
def __init__(self):
nemo.Network.__init__(self)
self._type = self.add_neuron_type('Izhikevich')
def add_neuron(self, nidx, a, b, c, d, sigma, u, v):
nemo.Network.add_neuron(self, self._type, nidx... | pmediano/NeMo | src/api/python/test.py | Python | gpl-2.0 | 14,108 | [
"NEURON"
] | 922bfd55cefdaafafefc0276c50b83bb4c932b47770c008b3f76288fa42109fa |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/auxiliary/base.py | Python | gpl-2.0 | 33,900 | [
"MDAnalysis"
] | d3ac6bb155acec3acb96513cf2dab1ba3175ec7e81a3de0130a20f9d31c5e563 |
# -*- coding: utf-8 -*-
#
# PyGauss documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 14 01:13:38 2015.
#
# 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
# autogenerated file.
#
# A... | chrisjsewell/PyGauss | docs/source/conf.py | Python | gpl-3.0 | 12,609 | [
"Gaussian",
"cclib"
] | e80758c8c3244bcf417ecd76843f3dfa3c9e8d230cfa60d2469b1db2487b0e48 |
# Orca
#
# Copyright 2010 Joanmarie Diggs.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library i... | pvagner/orca | src/orca/scripts/apps/soffice/script_utilities.py | Python | lgpl-2.1 | 23,873 | [
"ORCA"
] | a4094dab595d6991772e43936cd777992c43298b9d4740ed1c15c73c035fc77c |
# Copyright 2008, 2009, 2016 Free Software Foundation, Inc.
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
from __future__ import absolute_import
import sys
import textwrap
from distutils.spawn import find_executable
from gi.repository import Gtk, GLib
from . import Utils, Actions,... | skoslowski/gnuradio | grc/gui/Dialogs.py | Python | gpl-3.0 | 15,860 | [
"VisIt"
] | 74f1372f2406429c048027560862b15da841d66e1eb403f5298928a61d340bc2 |
# Plot pdf and cdf of standard normal
import superimport
import numpy as np
import matplotlib.pyplot as plt
import pyprobml_utils as pml
from scipy.stats import norm
X = np.linspace(-3, 3, 500)
rv = norm(0, 1)
fig, ax = plt.subplots()
ax.plot(X, rv.pdf(X))
plt.title("Gaussian pdf")
pml.save_fig("gaussian1d.pdf")... | probml/pyprobml | scripts/gauss_plot.py | Python | mit | 449 | [
"Gaussian"
] | 9031797c185f55db4d0f1ad4271de3f92ea231968ce8056c45ceaeee81484c01 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import os
im... | nuclear-wizard/moose | python/MooseDocs/extensions/civet.py | Python | lgpl-2.1 | 11,701 | [
"MOOSE"
] | 3be3b8fb2a61144415875348e4e79337e8f83930702f73f7396103aef841d86d |
# !usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-02-12 20:46:42
# @Last modified by: Brian Cherinka
# @Last Modified time: 2018-06-06 14:38:39
from __future__ import print_function, division, absolute_import
import pytest
from marvi... | sdss/marvin | tests/web/test_index.py | Python | bsd-3-clause | 5,261 | [
"Brian",
"Galaxy"
] | 9cab806651db5dc4af3d039ce34667de15855fbd04d6e5603966b984addf66c0 |
#!/usr/bin/python
"""
Copyright 2010 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of th... | clreinki/GalaxyHarvester | markUnavailable.py | Python | agpl-3.0 | 4,018 | [
"Galaxy"
] | 428a8dc9e870159a5f84185767f3034556dee15d5d07f0a81db56db6627cf351 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/pluginform.py | Python | gpl-2.0 | 8,163 | [
"Brian"
] | 4aa373dd01bc249449603b40deacfc1bde345390573f41bf34d430ac141b8255 |
import numpy as np
def spherical_proposal(theta, prop_scale=.05):
""" jitters theta with spherical gaussian noise """
thp = theta + prop_scale*np.random.randn(len(theta))
if np.any(thp < 0):
#print thp
return None
else:
return thp
def whitened_mh( th, #current state of hyper para... | andymiller/flecks | inference/whitened_mh.py | Python | mit | 2,940 | [
"Gaussian"
] | 5daab7854d9be3df1286b99d9fe525a82a67eaacdca5822ba297cbd667f05718 |
# -*- 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 publish... | thica/ORCA-Remote | src/ORCA/utils/CachedFile.py | Python | gpl-3.0 | 1,668 | [
"ORCA"
] | ec5a4462fc28f81bed3fb02ed6b959fcb6f6aff803c2f8564eab8b98662d7695 |
###
# Copyright (c) 2002-2005, Jeremiah Fincher
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of co... | kg-bot/SupyBot | plugins/OSU/plugin.py | Python | gpl-3.0 | 14,694 | [
"COLUMBUS"
] | 1d7b06ee983802701e32e3594ad61b774be249dc1180a7ea451acc0192844ca7 |
import collections
url_exemple = "http://www.google.com/"
cards = [
{
'type': 'CB',
'card_number': '4970100000000000',
'behaviour': '3D-Secure',
'result': 'accepted'
},
{
'type': 'MasterCard',
'card_number': '5970100300000000',
'behaviour': '3D-Secur... | zehome/django-payzen | django_payzen/tests/data.py | Python | mit | 6,745 | [
"BLAST"
] | 9fda7c63315aaa73130160a4d5c6a1068cfa71954b56c7638c0f6edc76edc07a |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | FarnazH/horton | horton/io/test/test_molpro.py | Python | gpl-3.0 | 6,822 | [
"Molpro",
"Psi4"
] | c59e34c722181e33bd76d1ca2b1bc38b1e2a2b6226b390b975902cc814ce8f63 |
#pylint: disable=missing-docstring
####################################################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment ... | Chuban/moose | python/MooseDocs/html2latex/elements.py | Python | lgpl-2.1 | 12,543 | [
"MOOSE"
] | 7dda4a1b0763079024422559408c58fc377e2de4b3c530b40b6e6a2d6365ac0d |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
"""
hpsspy.os._os
~~~~~~~~~~~~~
Contains the actual functions in :mod:`hpsspy.os`.
"""
from .. import HpssOSError
from ..util import HpssFile, hsi
__all__ = ['chmod', 'listdir', 'makedirs', 'mkdir', 'stat', 'lstat', 'walk']
def ... | weaverba137/hpsspy | hpsspy/os/_os.py | Python | bsd-3-clause | 7,074 | [
"VisIt"
] | d8743fa29bcff5ef15ef6f22f79c4f95980f8344136b3616fa848a6f200fb77f |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Tests for the core module.
"""
import itertools
from contextlib import nullcontext
from astropy.modeling.models import Gaussian1D, Gaussian2D
from astropy.utils.exceptions import AstropyUserWarning
import numpy as np
from numpy.testing import assert_... | astropy/photutils | photutils/centroids/tests/test_gaussian.py | Python | bsd-3-clause | 4,408 | [
"Gaussian"
] | e65a8f0448173e3c3699c7d38d101419552a84af2e8a955a68f5babfc430c3cf |
# Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
import sys
import timeit
from . import sigtools, dlti
from ._upfirdn import upfirdn, _UpFIRDn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import Num... | bkendzior/scipy | scipy/signal/signaltools.py | Python | bsd-3-clause | 116,017 | [
"Gaussian"
] | c3d47e5345cb8c16482797bf202792784ee429ba50318f5c7e418ad7b1aafec0 |
###############################################################################
##
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary for... | Nikea/VisTrails | vistrails/packages/vtk/vtkhandler.py | Python | bsd-3-clause | 8,755 | [
"VTK"
] | 3f9a2d497e25688006e39cc5acfebf457c95b2fc1f0be0b0ed0dc55956557911 |
###############################################################################
#
# coverageWindows.py - calculate coverage of windows within sequences
#
###############################################################################
# #
# T... | fw1121/CheckM | checkm/coverageWindows.py | Python | gpl-3.0 | 10,582 | [
"pysam"
] | 8e3fca0a4d3ab620e8f19476bf5b7d701c59b8f6e66ddd69d6e3536d1ac1a811 |
from ase.ga.data import PrepareDB
from ase.ga.startgenerator import StartGenerator
from ase.ga.utilities import closest_distances_generator
from ase.ga.utilities import get_all_atom_types
from ase.constraints import FixAtoms
import numpy as np
from ase.lattice.surface import fcc111
db_file = 'gadb.db'
# create the su... | suttond/MODOI | ase/test/ga/basic_example_create_database.py | Python | lgpl-3.0 | 1,878 | [
"ASE"
] | 57248a8086a12402e44b7e050cce75b20b1edd7eba0d2f61dcb3334f7f9f7954 |
#!/usr/bin/env python
"""
FCKeditor - The text editor for internet
Copyright (C) 2003-2005 Frederico Caldeira Knabben
Licensed under the terms of the GNU Lesser General Public License:
http://www.opensource.org/licenses/lgpl-license.php
For further information visit:
http://www.fckeditor.net/
"Suppo... | dapfru/gladiators | parsek/cls/editor/_samples/py/sampleposteddata.py | Python | gpl-2.0 | 1,909 | [
"VisIt"
] | 84c486c81784b9a24555d2da9853fb7dbe756f110aef79b2e699926946d6b0eb |
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from catalogue import models
from catalogue.test_utils import BookInfoStub, PersonStub, WLTestCase, info_args
from django.core.files.base import ContentFile
class... | fnp/wolnelektury | src/catalogue/tests/test_visit.py | Python | agpl-3.0 | 2,750 | [
"VisIt"
] | cdad4b13eb91443b67ebe18d13145c4ec3f59b328c91e989deb64df6dcc74af2 |
from degas import pipeline
import os
from degas.gridding import gridGalaxy
from degas import catalogs
ppo = False
gallist = ['IC0342']
degasdir = '/mnt/bigdata/erosolow/surveys/DEGAS/'
datadir='/mnt/bigdata/erosolow/surveys/DEGAS/'
#catalogs.updateLogs('ObservationLog.csv')
#pipeline.reduceAll(release='QA0', galaxyLi... | low-sky/degas | degas/examples/ic342test.py | Python | gpl-3.0 | 3,020 | [
"Galaxy"
] | b58ded56ea93d57da170ff4285bb5cbc6c96e872269dbc679b084eb06dfa772b |
"""Scraper for United States District Court for the District of Columbia
CourtID: dcd
Court Short Name: D.D.C.
Author: V. David Zvenyach
Date created: 2014-02-27
Substantially Revised: Brian W. Carver, 2014-03-28
"""
from juriscraper.opinions.united_states_backscrapers.federal_district import dcd_2013
class Site(dcd_... | brianwc/juriscraper | opinions/united_states_backscrapers/federal_district/dcd_2010.py | Python | bsd-2-clause | 507 | [
"Brian"
] | 1631addd54485221a1a4f38f515b360c45f3e42933928cf28569eed5eaa4f330 |
# Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Bio.SearchIO parser for Exonerate vulgar output format."""
import re
from Bio._py3k i... | zjuchenyuan/BioWeb | Lib/Bio/SearchIO/ExonerateIO/exonerate_vulgar.py | Python | mit | 8,143 | [
"Biopython"
] | da4fb35af42367998b4b616b7962f0c4692adf4a08e6447fec742cbf4a3ecf26 |
"""
Author: Remi Lafage <remi.lafage@onera.fr>
This package is distributed under New BSD license.
Mixture of Experts
"""
# TODO : choice of the surrogate model experts to be used
# TODO : support for best number of clusters
# TODO : add factory to get proper surrogate model object
# TODO : implement verbosity 'print_... | bouhlelma/smt | smt/applications/moe.py | Python | bsd-3-clause | 20,407 | [
"MOE"
] | f234a81dc9a4df5cbae028f93a2c3daf90d513d1326cfd42c9866daec249559c |
"""Generalized Gauss-Laguerre quadrature rule."""
import numpy
from scipy.special import gamma
import chaospy
from .hypercube import hypercube_quadrature
def laguerre(order, alpha=0., physicist=False):
r"""
Generalized Gauss-Laguerre quadrature rule.
Compute the sample points and weights for Gauss-Lague... | jonathf/chaospy | chaospy/quadrature/laguerre.py | Python | mit | 1,910 | [
"Gaussian"
] | 8baf800306a01e2132f01c0e9d1b0fa654fc36de4b52596a63d7a98ac17a7cb7 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/analysis/LBOutputVzOfX.py | Python | gpl-3.0 | 3,184 | [
"ESPResSo"
] | a7040bbedbab0827c3e4c088914e1d0f79387b93cdc7972c6840b48af001b0f3 |
from PyDSTool import pointset_to_traj, pointset_to_vars, Pointset, QuantSpec, makeSeqUnique
from PyDSTool import prepJacobian, expr2fun, remain, isincreasing
import copy
import numpy as np
from math import ceil
def make_noise_signal(dt, t_end, mean, stddev, num_cells, seed=None):
"""Helper function: Gaussian white... | robclewley/compneuro | common_lib.py | Python | bsd-3-clause | 5,785 | [
"Gaussian"
] | f65b8b1a4a3a585ac9086c32560da0a9be13a919695d1d5b2f2ed2988fb7aa10 |
#!/usr/bin/env python
from __future__ import with_statement
__author__ = 'Brian Blais <bblais@bryant.edu>'
__version__ = (0, 1, 7)
import sys
from compiler import parse, walk
from compiler.consts import *
import os
import subprocess
from optparse import OptionParser
import re
from first_pass import *
from second_pas... | xlcteam/pynxc | pynxc/pynxc.py | Python | bsd-3-clause | 6,382 | [
"Brian"
] | fe27db34c30374a4e4198db2dc21da7f9aa86455d63821af6246b46b207a6984 |
from scipy.interpolate import griddata
import sys
import numpy as np
import vtk
from vtk.util import numpy_support
reader = vtk.vtkPolyDataReader()
reader.SetFileName(sys.argv[1])
reader.Update()
polydata = reader.GetOutput()
nodes_vtk_array= polydata.GetPoints().GetData()
#The "Temperature" field is the third scala... | blaisb/cfdemUtilities | paraview/vtkTest.py | Python | lgpl-3.0 | 961 | [
"VTK"
] | a5b80105d8c476bc9f98679b28d757e76f2188eb87b72c7e4f8b10bbeb9eb331 |
import os, os.path
import random
import string
import datetime, time
import logging
import Bio.Entrez
import util
Bio.Entrez.email = "nathan@acceleration.net"
Bio.Entrez.tool = "Biopython->pynpact"
MAX_TO_SUMMARIZE = 10
logger = logging.getLogger(__name__)
class TooManyResponsesException(Exception):
term = N... | victor-lin/npact | pynpact/pynpact/entrez.py | Python | bsd-3-clause | 5,770 | [
"Biopython"
] | f56d61780f2db40904934f899cfaf9fd4b32ea21500d1d5bfec7f07ad379f8ac |
#!/usr/bin/env python
"""
Author: Mateusz Malinowski
Email: mmalinow@mpi-inf.mpg.de
The script assumes there are two files
- first file with ground truth answers
- second file with predicted answers
both answers are line-aligned
The script also assumes that answer items are comma separated.
For instance, chair,table... | mateuszmalinowski/visual_turing_test-tutorial | kraino/utils/compute_wups.py | Python | mit | 6,503 | [
"DIRAC"
] | 75c1826d8e560309852c7b985d64b61c1bf1a5f6fee148a8abb2ee6f48f9eb94 |
""" Principal Component Analysis
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis A. Engemann <d.engemann@fz-juelich.de>
#
# License: BSD 3 clause
from math import log, sqrt
import numpy... | soulmachine/scikit-learn | sklearn/decomposition/pca.py | Python | bsd-3-clause | 22,689 | [
"Gaussian"
] | 800195dab6007880d881ee2ff3644aba2e85b9bb74012d7d3694e5f378483730 |
import math
from functools import reduce
class Function:
"""
Generic function representation
"""
def __init__(self, start, end):
"""
Initialize a new function object
:param start: First 'relevant' value in the function's domain
:param end: Last 'relevant' value in the ... | ealmuina/fuzzy-logic-evaluator | fuzzy/functions.py | Python | mit | 3,281 | [
"Gaussian"
] | 5e50b076d1c063014d6dbab21b8fe254e8d1dc6b8069ee00742a9fedda4b11dc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) Ostap developpers.
# =============================================================================
# @file ostap/histos/tests/test_histos_compare.py
# Test module for ostap/his... | OstapHEP/ostap | ostap/histos/tests/test_histos_compare.py | Python | bsd-3-clause | 8,968 | [
"Gaussian"
] | 54f19699bca65c7a481611e305463f26c8b9d857bc7c13ca851927ac5ff6ed2f |
#
# 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 us... | witgo/spark | python/pyspark/ml/classification.py | Python | apache-2.0 | 126,617 | [
"Gaussian"
] | 61a6935896663f12e2503aa5fd93fe3a963164208384ad2d5a00f4f6d9c7698e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.