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 by Tobias Houska
This file is part of Statistical Parameter Estimation Tool (SPOTPY).
:author: Tobias Houska and Alejandro Chamorro-Chavez
This class holds the Robust Parameter Estimation (ROPE) algorithm based on Bárdossy and Singh (2008).
Bárdossy, A. and Singh, S. K... | gitporst/spotpy | spotpy/algorithms/rope.py | Python | mit | 11,174 | [
"DIRAC",
"Gaussian"
] | 5daca28ffc9488b26265ec04ecb62e3a1a4f5ae17a487d7d45f01e4212c11061 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import six
import ruamel.yaml as yaml
import os
import json
from pymatgen.core.sites import PeriodicSite
"""
This module provides classes to perform analyses... | gpetretto/pymatgen | pymatgen/analysis/local_env.py | Python | mit | 103,123 | [
"Gaussian",
"Jmol",
"pymatgen"
] | 33e5b73f0e82df96bbf8cf807cb8f99967745890e50fe03417f3c93647eb5a5b |
# 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... | kevin-coder/tensorflow-fork | tensorflow/python/ops/image_ops_test.py | Python | apache-2.0 | 195,497 | [
"Gaussian"
] | be3c926a9ae5b764e1444a96ddc00436eb4179f8cc3f843219b9c2e72edf0615 |
# BLASTN 2.0a19MP-WashU [05-Feb-1998] [Build decunix3.2 01:53:29 05-Feb-1998]
# BLASTP 2.0.4 [Feb-24-1998]
class Algorithm(object):
def __init__(self, name, version, description = ""):
self.name = name # 'blastx', 'blastn', etc.
self.version = version # '2.1.2' or '2.0a19MP... | bryback/quickseq | genescript/Bio/Search.py | Python | mit | 5,628 | [
"BioPerl"
] | d6e880fe8d6d5f7100b68747c2e9aa7c164a2f2b91e2596c5e159d97be69094c |
#
# This file is part of DF.
#
# DF 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.
#
# Latassan is distributed in the hope that it ... | jimbotonic/df_nlp | lemmatizer.py | Python | gpl-2.0 | 9,521 | [
"Gaussian"
] | a007fe6d454c2b33a3ad53c04337c1669793d64889fabfe8d812623628adf4fe |
# 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... | BackupTheBerlios/espressopp | src/FixedTupleListAdress.py | Python | gpl-3.0 | 2,800 | [
"ESPResSo"
] | 172cd8b28b626edc858b6cc277a7bca132fc12dabfe6d4ed53190b8dd2c72f0e |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | gregcaporaso/scikit-bio | skbio/sequence/tests/test_protein.py | Python | bsd-3-clause | 4,890 | [
"scikit-bio"
] | 49fda2c7ff76efece9d504364cad728addd0434d0a8c52ef601903205804464d |
#
# @BEGIN LICENSE
#
# forte_inversion by Psi4 Developer, a plugin to:
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can re... | evangelistalab/forte | forte/pymodule.py | Python | lgpl-3.0 | 25,276 | [
"Psi4"
] | 4005f641386d0ebca16a8dd30cee0cf2ed0ace7e8bd889a3f0ae45baa3cf6c3f |
#!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Philipp Wagner <bytefish[at]gmx[dot]de>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistrib... | grace-/opencv-3.0.0-cvpr | opencv/samples/python2/facerec_demo.py | Python | bsd-3-clause | 7,155 | [
"DIRAC"
] | 8378240796a871442ec77c2d7c2a641c70f5c581482442fb716b3a01c8823cd3 |
def items(spoilers):
tools = {
'Bell of Opening' : {
'artifact': 1,
'price': 5000,
'weight': 10,
'charge': 3,
'fullname': 'The Bell of Opening',
'appearance': 'silver bell',
'subtype': 'instrument',
'mater... | helgefmi/ohno | ohno/spoilers/items/tool.py | Python | mit | 13,237 | [
"CRYSTAL"
] | d7984d69fd50bac8030075c2f49e2df3bcaf81ff00be9d0b824c10fccef40b1d |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2009 Brian G. Matherly
# Copyright (C) 2009 Peter G. Landgren
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | dermoth/gramps | gramps/gen/constfunc.py | Python | gpl-2.0 | 5,110 | [
"Brian"
] | 9ca0deff5c8d548c368e161bcc3f792575d40a705d032c8c5d0db9ab3df4448d |
'''
Created on 2019-02-23
A package containing Python modules that facilitate geospatial data processing; specifically, this includes
glue code to inter-operate between GDAL/rasterio and NetCDF/xarray.
@author: Andre R. Erler, GPL v3
''' | aerler/HGS-Tools | Python/geospatial/__init__.py | Python | gpl-3.0 | 240 | [
"NetCDF"
] | 12ec039c6b9241c75d96843ff27ed2f2254dc25c41ed4e016f169a200c4b90a0 |
################################################################################
# Copyright (C) 2014 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Unit tests for `transformations` module.
"""
import warnings
warn... | SalemAmeen/bayespy | bayespy/inference/vmp/tests/test_transformations.py | Python | mit | 42,190 | [
"Gaussian"
] | 739d869f5d2289c83fefc0d19b722bfda6d5d75d1bd1e798e5d375db0618e66d |
"""
It is a helper module which contains the available reports
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import hashlib
import re
from DIRAC import S_OK, S_ERROR, gConfig
from DIRAC.ConfigurationSystem.Client.PathFinder import getServiceSection
fr... | ic-hep/DIRAC | src/DIRAC/MonitoringSystem/private/MainReporter.py | Python | gpl-3.0 | 3,896 | [
"DIRAC"
] | 557a671bd38af6023a96c435b1a07947eab9be0d32788b2987f218af41c52d8b |
import imp
import os
import marshal
import struct
import sys
from cStringIO import StringIO
from compiler import ast, parse, walk, syntax
from compiler import pyassem, misc, future, symbols
from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL
from compiler.consts import (CO_VARARGS, CO_VARKEYWOR... | deanhiller/databus | webapp/play1.3.x/python/Lib/compiler/pycodegen.py | Python | mpl-2.0 | 48,638 | [
"VisIt"
] | 8e8c7de6de4f9c7efabb3b9afb4271f91bfa97b1f79c0922f8edb41c5af2d5cb |
"""Internal wordlist for Passphrase.
Currently, it only holds the EFF long wordlist.
"""
# https://www.eff.org/es/document/passphrase-wordlists
EFF_LONG_WORDLIST_ENTROPY = 12.92481
EFF_LONG_WORDLIST = (
'abacus',
'abdomen',
'abdominal',
'abide',
'abiding',
'ability',
'ablaze',
'able',... | HacKanCuBa/passphrase-py | passphrase/wordlist.py | Python | gpl-3.0 | 116,783 | [
"Amber",
"BLAST",
"CASINO",
"CRYSTAL",
"ESPResSo",
"Elk",
"GULP",
"NEURON",
"Octopus",
"SIESTA",
"TINKER",
"exciting"
] | 262a48837ce7c6a6e696efff254eeb95c14bb7034973645f23cd162f9d14e70c |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/songs/lib/easyslidesimport.py | Python | gpl-2.0 | 12,382 | [
"Brian"
] | 1221c523a4d46819bbf54678604dd36c149265996d14048639bee3b4a4845bd3 |
#!BPY
""" Registration info for Blender menus:
Name: 'Speed Dreams / Torcs (.acc)...'
Blender: 248
Group: 'Import'
Tip: 'Import a Speed Dreams / Torcs (.acc) file.'
"""
__author__ = "Brian Gavin based on Willian P. Germano .ac Importer"
__url__ = ("blender", "elysiun", "Speed Dreams's homepage, http://http://speed-dr... | xy008areshsu/speed-dreams-2 | src/tools/blender/acc3d_import.py | Python | gpl-2.0 | 26,931 | [
"Brian"
] | 0ac940ba12c6f7cc9c9bbb4a46aabdfe8c8474bf9dbb23a5279dc4b95fab4018 |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
float_or_none,
int_or_none,
parse_duration,
parse_iso8601,
unescapeHTML,
)
from ..compat import (
compat_etree_fromstring,
compat_HTTPError,
)
cla... | dntt1/youtube-dl | youtube_dl/extractor/bbc.py | Python | unlicense | 45,075 | [
"VisIt"
] | f1455228f2cbb969515f2f9d5ea20893a3da815b9f4e601447face10af3eb1cb |
import copy
import warnings
from os import path
import numpy as np
import pandas as pd
from pysces import Scanner, ParScanner
from pysces import model as pysces_model
from matplotlib import pyplot as plt
from .misc import scanner_range_setup, DotDict, cc_dict, rc_dict, ec_dict, prc_dict, is_parameter, is_species, \
... | exe0cdc/PyscesToolbox | psctb/utils/model_comparing.py | Python | bsd-3-clause | 36,311 | [
"PySCeS"
] | 9ffc427ac939bde1806cb6d7fce6774e98e6ef7d2fdcdeac31d1590c49c3471b |
# -*- coding: utf-8 -*-
#
# Brian2Cuda documentation build configuration file, copied from Brian 2
# equivalent, which was created by sphinx-quickstart on
# Tue Aug 14 14:57:16 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values... | brian-team/brian2cuda | docs_sphinx/conf.py | Python | gpl-2.0 | 11,360 | [
"Brian"
] | 14129c3989514a3b9beeb068c46d794e058d12d2f41c9b9c19f1542cfa68bb38 |
#!/usr/bin/env python
"""
A linting tool to check for xss vulnerabilities.
"""
from __future__ import print_function
import argparse
import ast
import os
import re
import sys
import textwrap
from enum import Enum
class StringLines(object):
"""
StringLines provides utility methods to work with a string in te... | lduarte1991/edx-platform | scripts/xss_linter.py | Python | agpl-3.0 | 101,324 | [
"VisIt"
] | 691318c6fcf71d76300a9117f755b7bf103bf06777602a0ed5fcaad41be2b558 |
# 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... | aam-at/tensorflow | tensorflow/python/autograph/converters/control_flow.py | Python | apache-2.0 | 14,913 | [
"VisIt"
] | f9b3b7bbae29285016ddf53bdf4af45c46d10bf0ba4b9951a073da506c59eff9 |
import os
import os.path
import shutil
from subprocess import call
from easybuild.framework.easyblock import EasyBlock
from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.run impo... | qldhpc/eb_local | eb_blocks/l/lammps_simple.py | Python | apache-2.0 | 1,217 | [
"LAMMPS"
] | 748d20d7b355f0a8fa02dc71f300a497d4baa848cfab6afc90c6075d74977409 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
dataobject.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
****************************... | pblottiere/QGIS | python/plugins/processing/tools/dataobjects.py | Python | gpl-2.0 | 8,285 | [
"NetCDF"
] | e05c86fe422d026c0652cef6a4284694ba05a03a79fdf3140eab62aaa6f46259 |
from setuptools import setup, find_packages
import versioneer
'''
This package provides tools for combining, genotyping and refining structural variant calls from LUMPY in a highly scalable way. The current package efficiently scales to process thousands of individuals.
'''
setup(
name='svtools',
version=ver... | abelhj/svtools | setup.py | Python | mit | 1,309 | [
"pysam"
] | bc31fde09d8efa54b1a21ec0337ea1e0b6f5358c2818b57b47a96e5ae101a422 |
"""This demo solves the equations of static linear elasticity for a
pulley subjected to centripetal accelerations. The solver uses
smoothed aggregation algerbaric multigrid."""
# Copyright (C) 2014 Garth N. Wells
#
# This file is part of DOLFIN.
#
# DOLFIN is free software: you can redistribute it and/or modify
# it u... | MiroK/dolfin | demo/undocumented/elasticity/python/demo_elasticity.py | Python | gpl-3.0 | 4,428 | [
"VTK"
] | 5192ef8c2b2b81bfc3970c2970c90239f07c2010e4f9a95ce7aa22a018456934 |
"""
Functional composition of loaders.
"""
from collections import defaultdict
from typing import (
Any,
Callable,
Dict,
Iterable,
Optional,
)
from microcosm.config.model import Configuration
from microcosm.metadata import Metadata
from microcosm.typing import Loader, SecondaryLoader
def merge(c... | globality-corp/microcosm | microcosm/loaders/compose.py | Python | apache-2.0 | 4,167 | [
"VisIt"
] | 5fcbd22e1f5627a9012a41eba82e70de79ced343b9af52eea1525ece81899afd |
# Author: Travis Oliphant 2001
# Author: Nathan Woods 2013 (nquad &c)
from __future__ import division, print_function, absolute_import
import sys
import warnings
from functools import partial
from . import _quadpack
import numpy
from numpy import Inf
__all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain',
... | efiring/scipy | scipy/integrate/quadpack.py | Python | bsd-3-clause | 30,820 | [
"Gaussian"
] | 214a1dca8ac570c3712142291bff4b736a26bda0f17739784364f2ad234b14ee |
__author__ = 'sulantha'
from Utils.PipelineLogger import PipelineLogger
from Utils.DbUtils import DbUtils
import Config.PipelineConfig as pc
from datetime import datetime
import itertools
class ADNI_T1_Fmri_Helper:
def __init__(self):
self.DBClient = DbUtils()
self.MatchDBClient = DbUtils(database... | sulantha2006/Processing_Pipeline | Pipelines/ADNI_T1/ADNI_T1_Fmri_Helper.py | Python | apache-2.0 | 8,586 | [
"VisIt"
] | 1b50b15f9d1bcbc5af68e1ba80eb30fd1cb2253a89d77ce48367a89b81c29ce6 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines convenience types for type hinting purposes.
Type hinting is new to pymatgen, so this module is subject to
change until best practices are established.
"""
from pathlib import Path
from typing import U... | vorwerkc/pymatgen | pymatgen/util/typing.py | Python | mit | 1,069 | [
"pymatgen"
] | 6446ee57774d471fe73098dafef1afd4ad3da0b385fef834eebebae455f6da74 |
# pysam versioning information
__version__ = "0.7.5"
__samtools_version__ = "0.1.19"
__tabix_version__ = "0.2.6"
| parlar/calls2xls | external/CrossMap/usr/lib64/python2.7/site-packages/pysam/version.py | Python | mit | 116 | [
"pysam"
] | f1b3b4ec334fb5051fb6259e26a586ac020616ca060c0c84c849f0cf97bae52e |
# coding: utf-8
# In[1]:
import numpy as np
import tensorflow as tf
import logging
logging.basicConfig(format='%(asctime)s %(message)s')
import pylab as plt
import cmocean
from scipy.spatial import cKDTree
from ionotomo.tomography.pipeline import Pipeline
from ionotomo.settings import TFSettings
from timeit import d... | Joshuaalbert/IonoTomo | src/ionotomo/notebooks/deep_smoothing/smoothing.py.py | Python | apache-2.0 | 25,827 | [
"Gaussian"
] | 60ce2b1ff58e63ae990dd1dbaf8e052726852cc3c58adf811484c0d63af8cdc3 |
#!/usr/bin/env python
'''
Phillip Kuznetsov
2017
'''
from __future__ import print_function
import os, sys
os.environ['GLOG_minloglevel'] = '2' # suprress Caffe verbose prints
import re
import settings
sys.path.insert(0, settings.caffe_root)
import caffe
import numpy as np
from numpy.linalg import norm
import scipy.... | philkuz/ppgn | sampling_multiple.py | Python | mit | 12,561 | [
"NEURON"
] | 65b46ef12ca27586be0fd9d788dbbfe62e22f15515246e8b407533601ae53eac |
import os
# for travis
os.environ["MPLCONFIGDIR"] = "."
try:
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
pass
from setuptools import setup, find_packages
# from mpld3
def get_version(f):
"""Get the version info from the mpld3 package without importing it"""
import ast
... | kidaa/crystal-1 | setup.py | Python | mit | 1,625 | [
"CRYSTAL"
] | 262c91279d0040a6d3939945a6f4a5154fb775c35c161e5c985e5ed3df118ebf |
"""Validate dependencies."""
from __future__ import annotations
import ast
from pathlib import Path
from homeassistant.requirements import DISCOVERY_INTEGRATIONS
from homeassistant.setup import BASE_PLATFORMS
from .model import Integration
class ImportCollector(ast.NodeVisitor):
"""Collect all integrations ref... | kennedyshead/home-assistant | script/hassfest/dependencies.py | Python | apache-2.0 | 8,270 | [
"VisIt"
] | 25b9148f0fad25c5b5e0090aa593a3fd24701cf95dbf58532d9bb1e6eb093152 |
# -*- coding: utf-8 -*-
"""
Subraph centrality and communicability betweenness.
"""
# Copyright (C) 2011 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
from networkx.utils import *
__au... | sserrot/champion_relationships | venv/Lib/site-packages/networkx/algorithms/centrality/subgraph_alg.py | Python | mit | 9,486 | [
"Desmond"
] | 8e4ca253327b0c62ee08295446d2c49684e559ee988c6203a1e480f934758ecf |
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import os, sys
from optparse import OptionParser
from zeroinstall import _
from zeroinstall.injector import requirements
from zeroinstall.injector.policy import Policy
from zeroinstall.injector.config import load_co... | timdiels/zeroinstall | zeroinstall/0launch-gui/main.py | Python | lgpl-2.1 | 5,141 | [
"VisIt"
] | 4bd875c8efb1aa711e1beb8376341dacd75dae451f2970029d3fb9a8e8fd7b94 |
################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publis... | AndreasHeger/gnucash-utils | Experiment.py | Python | mit | 37,648 | [
"Galaxy"
] | 250f00abe5eedf8e9370ef79c76d783d1e9bdd7ee0e75b559b250b6ffad53a5e |
import pytest
from qcengine.programs.tests.standard_suite_contracts import (
contractual_hf,
contractual_mp2,
contractual_mp2p5,
contractual_mp3,
contractual_lccd,
contractual_lccsd,
contractual_ccsd,
contractual_ccsd_prt_pr,
contractual_olccd,
contractual_current,
query_has_... | jturney/psi4 | tests/pytests/standard_suite_runner.py | Python | lgpl-3.0 | 10,400 | [
"Psi4"
] | 9fb024065f08b1cf394fdf00124443957e211141ea83312d379864c44060ea06 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) Nelen & Schuurmans. GPL licensed, see LICENSE.rst.
import argparse
import h5py
import logging
import os
import sys
import numpy as np
from openradar import config
from openradar import utils
logger = logging.getLogger(__name__)
RAIN_THRESHOLD = dict(
nhb=500,
... | nens/openradar | openradar/scripts/clutter.py | Python | gpl-3.0 | 3,130 | [
"ASE"
] | fd97b6445a2444a2b00f4c59b4064560772b70d4a0c5aa2c89223d9f6e4183ef |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | mbookman/dsub | test/integration/e2e_io_tasks.py | Python | apache-2.0 | 2,900 | [
"BWA"
] | ef784a120f7d6e4171e74ff735d09dd3e8589aa27fe63302307d52aa49fabe2c |
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import os
import pytest
import ... | pgmillon/ansible | test/units/galaxy/test_collection_install.py | Python | gpl-3.0 | 30,592 | [
"Galaxy"
] | 177eec5759d07bff55507ef828b56a60590e1879d87f6517bb1bf910c80d1515 |
# Lint as: python3
# Copyright 2018 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 ... | tensorflow/lingvo | lingvo/core/base_input_generator.py | Python | apache-2.0 | 82,821 | [
"MOE"
] | a78c188cd6cf3c79790d296ec2faa09222828c103266bdc49917441d233c0b70 |
# Chapter 2 Training Machine Learning Algorithms for Classification
import numpy as np
class Perceptron(object):
"""Perceptron classifier.
Parameters
------------
eta : float
Learning rate (between 0.0 and 1.0)
n_iter : int
Passes over the training dataset.
... | wei-Z/Python-Machine-Learning | self_practice/Chapter 2 Training Machine Learning Algorithms for Classification.py | Python | mit | 11,509 | [
"NEURON"
] | 220c8da740a06b37c3fe4ad85f8fa7419544c621cb69767d02979c8e783b6d11 |
import bitcoin
import os
import pytest
from ethereum import tester, utils, abi
import serpent
from rlp.utils import decode_hex, encode_hex
from ethereum.utils import safe_ord
from ethereum.slogging import set_level
# customize VM log output to your needs
# hint: use 'py.test' with the '-s' option to dump logs to the c... | ethermarket/pyethereum | ethereum/tests/test_contracts.py | Python | mit | 35,925 | [
"MOOSE"
] | abfffef276707bbc39d99484eb5c134e384da009bc651369cc10343bd1316c81 |
#!/usr/bin/env python
'''
GAEUnit: Google App Engine Unit Test Framework
Usage:
1. Put gaeunit.py into your application directory. Modify 'app.yaml' by
adding the following mapping below the 'handlers:' section:
- url: /test.*
script: gaeunit.py
2. Write your own test cases by extending unittest.TestCas... | calvinchengx/O-Kay-Blog-wih-Kay-0.10.0 | kay/ext/testutils/gaeunit.py | Python | bsd-3-clause | 19,022 | [
"VisIt"
] | 90ad7d44210245709954803fc5994de99537d51afddd9c2dea9a924d221686da |
# -*- coding: utf-8 -*-
"""
Acceptance tests for Video.
"""
from __future__ import absolute_import
import os
from unittest import skipIf
from ddt import data, ddt, unpack
from mock import patch
from six.moves import range
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from commo... | jolyonb/edx-platform | common/test/acceptance/tests/video/test_video_module.py | Python | agpl-3.0 | 48,984 | [
"VisIt"
] | e79aed10b7d337abb1b6065413214f423651ca739c33e481709ec9c9d708eafe |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2006-2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## 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 Fou... | tiagocardosos/stoq | stoqlib/database/testsuite.py | Python | gpl-2.0 | 8,990 | [
"VisIt"
] | c6e6c406068849352acb8668a8195ff9462749fc4ec02d1ec6bccdb466faea17 |
#! /usr/bin/env python3
import argparse
from os import path
from pycparser import parse_file, c_ast, c_generator
from pycparser.c_ast import Constant
BASEDIR = path.dirname(path.abspath(__file__))
# CFFI cannot parse enum value that are not just number (e.g.
# `GODOT_BUTTON_MASK_LEFT = 1 << (GODOT_BUTTON_LEFT - 1)... | razvanc-r/godot-python | tools/generate_gdnative_cffidefs.py | Python | mit | 2,576 | [
"VisIt"
] | a48dab510887147c7789671c074caa5a3cfcc05cd0904320485c660716baa910 |
import vtk
reader = vtk.vtkXMLImageDataReader ()
reader.SetFileName('machoireInf.vti')
reader.Update()
img = reader.GetOutput()
print img
print img.GetSpacing()
print img.GetNumberOfCells()
#celldata = img.GetCellData()
celldata = img.GetPointData()
scalars = celldata.GetScalars()
print celldata
f = open('out.bin'... | rboman/progs | classes/sph/sandbox/vti2bin.py | Python | apache-2.0 | 506 | [
"VTK"
] | e4d1f0ba698687256a88428096536a0dd2fce4e3d2d79a31d50e043aeade14ea |
#!/usr/bin/env python
import sys
import pysam
import os
import cPickle as pickle
import gzip
def get_rRNA_reads(fileInName, fileOutName):
'''
This script filters out the ambiguous read alignment to refine the rRNA read.
'''
bamFile = pysam.Samfile(fileInName, 'rb')
readIDs = set()
for each... | ratschlab/RiboDiff | tools/pipeline/identify_rRNA/get_rRNA_reads.py | Python | gpl-3.0 | 1,453 | [
"pysam"
] | bd41ed3728abb0b4c9d90433c97b1b4c7e82519bcd79c7cc6458f29011299552 |
# This file is part of Androguard.
#
# Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com>
# 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://... | androguard/androguard | androguard/decompiler/dad/basic_blocks.py | Python | apache-2.0 | 10,954 | [
"VisIt"
] | 14e627a028f70b95c77d4feb3f6f930f64dbaec34ffc68f005acf404ee305dc0 |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Computes the log-likelihood of a single- or multi-epoch velocity distribution for an intrinsic Gaussian velocity distribution including the effect of binary orbital motions and Gaussian measure... | MichielCottaar/velbin | setup.py | Python | bsd-2-clause | 686 | [
"Gaussian"
] | a7093a16590635db77729e490df67ec71718e3f1c95f8dff00cd722ef3f226a6 |
# Copyright (C) 2020 Atsushi Togo
# All rights reserved.
#
# This file is part of phono3py.
#
# 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
# noti... | atztogo/phono3py | phono3py/phonon/func.py | Python | bsd-3-clause | 3,233 | [
"Gaussian",
"phonopy"
] | 2af01dda63f558400ffecd578185dde79e05f7b20e98eb9e1d5436be4691ec9a |
# Module containg various objects to be used as priors.
# These return the ln-prior-probability
import numpy as np
import scipy.stats
__all__ = ["prior_transform",
"Prior", "TopHat", "Normal", "ClippedNormal",
"LogNormal", "LogUniform", "Beta"]
def prior_transform(self, unit_coords, priors, pri... | joshspeagle/dynesty | priors.py | Python | mit | 8,999 | [
"Gaussian"
] | 91ce8894bf0c1d4c42e0a53ccca69c18c094f428f16736f8d8fad09aa7ddc0d4 |
#!/usr/bin/env python3
""" Django views for the KidsTasks app. """
import datetime
# pylint: disable=E0401
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect, render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth.decorators import ... | jima80525/KidTasks | tasks/views.py | Python | mit | 6,095 | [
"exciting"
] | 5bd3e3fe7d7b745f9b0d26a00b3f3bbf0b8c5b7b836981d6816a6c7a45468d20 |
# TODO: ugh:
import sys, pprint, os
sys.path.insert(1, '..')
sys.path.insert(1, '.')
sys.path.insert(1, os.path.join("..", "py"))
import h2o, h2o_util
import os
import argparse
import time
import json
import requests
#################
# Config is below
#################
parser = argparse.ArgumentParser(
descrip... | bikash/h2o-dev | py/testdir_multi_jvm/test_rest_api.py | Python | apache-2.0 | 51,164 | [
"Gaussian"
] | 380d03695cf2afe57bb0754f37d25314b3d85da1b6bafc7e38cc729d1a9b6fe2 |
from .models import Session
import utils
class Tracking(object):
"""The default tracking middleware logs all successful responses as a 'visit' variable with
the URL path as its value."""
def process_response(self, request, response):
# filter out heartbeat messages
if request.path.starts... | ResearchSoftwareInstitute/MyHPOM | hs_tracking/middleware.py | Python | bsd-3-clause | 1,470 | [
"VisIt"
] | 6b766bfd8548bc06f2bb6115a89d80511ad6dbec2f6f2ed2f256965ac5bd67d1 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/e2-openwbif | plugin/controllers/views/web/timerdelete.py | Python | gpl-2.0 | 5,184 | [
"VisIt"
] | 030193ea3170debdb193b9e3f02b51f7cc16c367e9599576de3250b645ca4550 |
import os
import numpy as np
from scipy import io as sio
import SimpleITK as sitk
def loadimg(file, target_resolution):
if file.endswith('.mat'):
filecont = sio.loadmat(file)
img = filecont['img']
for z in range(img.shape[-1]): # Flip the image upside down
img[:, :, z] = np.fl... | RivuletStudio/rivuletpy | rivuletpy/utils/io.py | Python | bsd-3-clause | 5,620 | [
"VTK"
] | 046123320f391b498b221084a6e09e66d7265966b9155084de25c615b648dc7a |
# -*- coding: utf-8 -*-
import requests
import copy
from typing import List, Tuple, Dict
from pyproj import Proj
from pyproj import transform
import numpy as np
import tempfile
from shapely.geometry import Polygon, MultiPolygon, box, Point
from shapely.ops import cascaded_union
from shapely.prepared import prep
import... | felixmatt/shyft | shyft/repository/service/gis_region_model_repository.py | Python | lgpl-3.0 | 44,542 | [
"Bowtie",
"NetCDF"
] | fc4a5d160a31795f58916f216e92061782f2668c97641f9d6ea1d0aafb66a06a |
items = [
{
"type": "Big kitchen knife",
"label": "Big Kitchen Knife",
"slot": "weapon",
"weapon": {
"damage": 1,
"attack_time": 0.500000,
"reloading_time": 0.000000,
"melee": True,
"motion_class": "1hmelee",
},
"durability": "10:15",
"base_price": 30... | lumidify/fahrenheit451 | graphics/item_specs.py | Python | gpl-2.0 | 53,526 | [
"BLAST"
] | 07e41ec65d643dc31d709e5e58c15c2cdd196c427719ee77c4c16efe6027bda2 |
# 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 th... | hammerlab/isovar | isovar/main.py | Python | apache-2.0 | 6,725 | [
"pysam"
] | e52bb35e337d180a0c3ff90ec249511ec5cd35c001ea971ceb41e76b5b972a6c |
# -----------------------------------------------------------------------------
#
# Copyright (C) 2021 CERN & University of Surrey for the benefit of the
# BioDynaMo collaboration. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance w... | BioDynaMo/biodynamo | src/core/visualization/paraview/generate_pv_state.py | Python | apache-2.0 | 5,104 | [
"ParaView"
] | 4dba6256cf8efe9de84745aa586add8ec514810235c7f6b25a9c646eaabb89b6 |
"""
A script to automate installation of tool repositories from a Galaxy Tool Shed
into an instance of Galaxy.
Galaxy instance details and the installed tools need to be provided in YAML
format in a separate file; see ``tool_list.yaml.sample`` for a sample of
such file.
When installing tools, this script expects any ... | AAFC-MBB/galaxy-cloudman-playbook | roles/galaxyprojectdotorg.tools/files/install_tool_shed_tools.py | Python | mit | 22,439 | [
"Galaxy"
] | 071548ed6d7e648987181c4324bc1dd98ed5158f92640f79cc486d2a7142a46f |
from collections import defaultdict
from . import sanitized as conf
language = conf.LANGUAGE.upper()[:2]
POKEMON = defaultdict(lambda: '?', {
0: '--',
1: 'Bulbasaur',
2: 'Ivysaur',
3: 'Venusaur',
4: 'Charmander',
5: 'Charmeleon',
6: 'Charizard',
7: 'Squirtle',
8: 'Wartortle',
... | sebast1219/Monocle | monocle/names.py | Python | mit | 114,482 | [
"BLAST"
] | 387f421457aa79d221d7383b7e14946ffffcbd882edc5ebab0e3163b2f8a2052 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or ... | hlzz/dotfiles | graphics/VTK-7.0.0/Imaging/Core/Testing/Python/TestAllLogic.py | Python | bsd-3-clause | 3,485 | [
"VTK"
] | bd4e8a374b8739740b6f8c53887ad518bff1f6f4e7fec95b5fc213896b735255 |
# -*- coding: utf-8 -*-
# Copyright 2017 Novo Nordisk Foundation Center for Biosustainability,
# Technical University of Denmark.
#
# 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... | opencobra/memote | src/memote/suite/results/result_manager.py | Python | apache-2.0 | 2,784 | [
"VisIt"
] | c886292f62615044a521ad4cb6ee84d2f0df03087e473759300def2671ba7dd2 |
# -*- coding: utf-8 -*-
# Copyright 2015-2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from odoo import models, fields
from odoo.addons.connector.unit.mapper import (mapping,
)
from ..unit.backend_adapter import Care... | laslabs/odoo-connector-carepoint | connector_carepoint/models/fdb_pem_moe.py | Python | agpl-3.0 | 2,569 | [
"MOE"
] | 9998d06ffb2eaa8a35139f3ecf3755b482067e6a7a1759527a984aa5792ce7c6 |
# Copyright (C) 2001-2006 Quantum ESPRESSO group
# This file is distributed under the terms of the
# GNU General Public License. See the file `License'
# in the root directory of the present distribution,
# or http://www.gnu.org/copyleft/gpl.txt .
#
# Author: Filippo Spiga (spiga.filippo@gmail.com)
# Date: June 14, 201... | fspiga/phiGEMM | scripts/remPhigemmSymbs.py | Python | gpl-2.0 | 806 | [
"Quantum ESPRESSO"
] | 4065ea5503c17039a21dc37fcccab13d92c3caf344ed2a9dcb6c0a8d2147bc51 |
# -*- coding: utf-8 -*-
# Copyright 2015 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | huntxu/fuel-web | nailgun/nailgun/utils/ceph.py | Python | apache-2.0 | 5,296 | [
"Firefly"
] | a71d62931d0cfcadc769b78b22e0571cc3997b344154e7e0d92c0fe281d9367f |
# -*- coding: utf-8 -*-
"""Code for representing the VCF header part
The VCF header class structure is modeled after HTSJDK
"""
import json
import pprint
import warnings
from . import exceptions
from .compat import OrderedDict
from .exceptions import (
DuplicateHeaderLineWarning,
FieldInfoNotFound,
Field... | bihealth/vcfpy | vcfpy/header.py | Python | mit | 34,495 | [
"ADF"
] | 7c3a890b1c4a207666ab9542d780b4e50fa9104855628dbbaffb74d570a8a343 |
import unittest
from test.support import (verbose, refcount_test, run_unittest,
strip_python_stderr, cpython_only, start_threads,
temp_dir, requires_type_collecting)
from test.support.script_helper import assert_python_ok, make_script
import sys
import time
import gc... | yotchang4s/cafebabepy | src/main/python/test/test_gc.py | Python | bsd-3-clause | 34,127 | [
"VisIt"
] | 8088e28e57f4f23c546abbaacc6a4d2e92d7b3c63df6a9a1a053ec4566b8b971 |
# 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... | odejesush/tensorflow | tensorflow/python/ops/gradients_impl.py | Python | apache-2.0 | 36,416 | [
"VisIt"
] | 21e0e29e1734fd81b13e2112d21b60092a43b81d73770a8c63d31a2bab2a78e6 |
# Copyright (C) 2012-2016
# Max Planck Institute for Polymer Research
# Copyright (C) 2008-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 the GNU Gen... | kkreis/espressopp | src/integrator/LBInitPeriodicForce.py | Python | gpl-3.0 | 2,633 | [
"ESPResSo"
] | 1309eacfdcda1f4576565a936fd7b3f8777778e5f2d33bd3024910e6240fc60d |
import os
from setuptools import setup
setup(
name="SIDR",
version="0.0.2a2",
author="Duncan Murdock",
author_email="me@duncanmurdock.name",
description=("Sequence Idenification using Decision tRees; a tool to classify DNA reads using machine learning models."),
license="MIT",
keywords="co... | damurdock/SIDR | setup.py | Python | mit | 950 | [
"Biopython",
"pysam"
] | 10306b983200e8efa6eac28cd1e390fa6cb5dace60418c55816cffe1bdb7203a |
# -*- coding: utf-8 -*-
"""
========================================================================
Transforming positions and velocities to and from a Galactocentric frame
========================================================================
This document shows a few examples of how to use and customize the
`~ast... | mhvk/astropy | examples/coordinates/plot_galactocentric-frame.py | Python | bsd-3-clause | 8,064 | [
"Galaxy"
] | 7d07e9230f76ee36663c2024524fd28189642e54fbe0163eb1463297a11b12e4 |
#!/usr/bin/env python
# Collect quality parsimonious SNPs from vcf files
# and output alignment files in fasta format.
import argparse
import multiprocessing
import os
import queue
import shutil
import sys
import time
from collections import OrderedDict
from datetime import datetime
import pandas
import vcf
def ge... | galaxyproject/tools-iuc | tools/vsnp/vsnp_get_snps.py | Python | mit | 24,521 | [
"Galaxy"
] | e7fc3e36708a669ab7d068fb7faa698737e752b2726f445443e1c0f38109905b |
# Author: Travis Oliphant 2001
# Author: Nathan Woods 2013 (nquad &c)
import sys
import warnings
from functools import partial
from . import _quadpack
import numpy
from numpy import Inf
__all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain',
'IntegrationWarning']
error = _quadpack.error
class ... | zerothi/scipy | scipy/integrate/_quadpack_py.py | Python | bsd-3-clause | 37,351 | [
"Gaussian"
] | e065c3bc8f88ab0ba99b5c2578c02f58bf716f0f3aed01f9661b2c899a500160 |
from covariance import CovarianceMatrix
from dolfin import *
from scipy.sparse import csc_matrix
from scipy.sparse.linalg import factorized, aslinearoperator, splu, eigsh
from time import time
import numpy as np
__all__ = ['KLE']
class KLE:
"""
Class for generating eigenmodes of the Karhunen-Lo\`{e}ve
expansion... | arvindks/kle | kle.py | Python | gpl-3.0 | 6,555 | [
"Gaussian"
] | f59cb78fa5de162d2f3195270b2351f58adbec43090694ceee7564fd4893ea0d |
'''python server logic for coordinate daemon
.. This software is released under an MIT/X11 open source license.
Copyright 2012-2015 Diffeo, Inc.
'''
from __future__ import absolute_import, division, print_function
import collections
import glob
import hashlib
import logging
import math
import os
import random
impo... | diffeo/coordinate | coordinate/job_server.py | Python | mit | 53,634 | [
"VisIt"
] | cea1567ce1c2a5684c4056179b5545c02581bf2d34b9bb32774c9b50042db2a1 |
import six
from abc import abstractmethod
from collections import defaultdict
from itertools import chain
import numpy as np
import inspect
import pandas as pd
import matplotlib.pyplot as plt
from psyplot.docstring import docstrings, safe_modulo, dedent
from psyplot.data import InteractiveList, open_dataset
from psyplo... | Chilipp/psy-simple | psy_simple/base.py | Python | gpl-2.0 | 33,362 | [
"NetCDF"
] | 963f0524e696510048723527dbf74f2b2e814fa0262ac554e1d991da069b03ab |
# Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | tensorflow/probability | tensorflow_probability/python/distributions/inverse_gaussian.py | Python | apache-2.0 | 14,977 | [
"Gaussian"
] | 4dd5754aeadff39ac71d834e8dd5bae1d9b33a8391865590b7e847d0206d83a2 |
import os
import sys
import transaction
import pysword.books
from sqlalchemy import engine_from_config
from pyramid.paster import (
get_appsettings,
setup_logging,
)
from pyramid.scripts.common import parse_vars
from ..models import (
DBSession,
Base,
TTitle,
TPresenter,
TBibleBook,... | tanj/SermonLog | sermonlog/scripts/initializedb.py | Python | gpl-2.0 | 11,323 | [
"Brian"
] | 5f9ed4ecc1ff49464f8ba3656377b2defd07540ad5e36831647a6c8b67d53d9e |
import os
import sys
import numpy as np
import scipy.io
from treegp.gp import GP
from treegp.distributions import Gaussian
from datasets import *
from optparse import OptionParser
def test_predict(dataset_name, model_name, sgp=None, n=None, tag=None):
sgp = trained_gp(dataset_name, model_name, n=n, tag=tag) if... | davmre/treegp | experiments/code/prediction.py | Python | gpl-3.0 | 3,924 | [
"Gaussian"
] | 883a04ff88ccae5fedeed5e2067fd92aa18fd1231fcb1490b8ee743ba72bcb8f |
#! /usr/bin/python
from subprocess import Popen, PIPE
from distutils.core import setup, Extension
version = Popen(["git", "describe", "--tags"], stdout=PIPE).communicate()[0]\
.strip().decode("utf8")
ext_modules = [Extension("curve25519._curve25519",
["python-src/curve25519/curve25... | thoughtpolice/hs-nacl | src/cbits/curve25519-donna/setup.py | Python | bsd-3-clause | 1,473 | [
"Brian"
] | e070ea3675636a48211a301d1d119ee421107bcd7ffc056bb23031475925263b |
''' Tests for netcdf '''
from __future__ import division, print_function, absolute_import
import os
import shutil
import tempfile
import warnings
from contextlib import contextmanager
from glob import glob
from io import BytesIO
from os.path import join as pjoin, dirname
import numpy as np
from numpy.testing import (... | DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/io/tests/test_netcdf.py | Python | mit | 16,409 | [
"NetCDF"
] | 9a5094eb6602fd1af2573d47e07eb0daeef980009aa5b39079e77eff0d87b960 |
#!/usr/bin/env python
"""
In bayesloop, each new data study is handled by an instance of a ``Study``-class. In this way, all data, the inference
results and the appropriate post-processing routines are stored in one object that can be accessed conveniently or
stored in a file. Apart from the basic ``Study`` class, ther... | christophmark/bayesloop | bayesloop/core.py | Python | mit | 141,343 | [
"Gaussian"
] | 17b73ff80250486bb7214b46b14e0231057068db3ff59d988795f98dccd9315b |
"""Functions to plot M/EEG data on topo (one axes per channel)
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eri... | effigies/mne-python | mne/viz/topo.py | Python | bsd-3-clause | 19,466 | [
"Gaussian"
] | 99461d21cea062b3bc4d5e94b12b9bc8e103d0ef4cb3d4ab5645ec4ac3ef5d51 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | retrography/scancode-toolkit | src/textcode/analysis.py | Python | apache-2.0 | 19,529 | [
"VisIt"
] | 8f92416fc16c9579798cdbcb99737e864e6f081b57348ba1cb8a52136bc9cc89 |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Interfaces to assorted Freesurfer utility programs.
Change directory to provide relative paths for doctests
>>> import os
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
>>> d... | sgiavasis/nipype | nipype/interfaces/freesurfer/utils.py | Python | bsd-3-clause | 124,380 | [
"Gaussian",
"VTK"
] | b093f59d059a2472ef20115ada07593100e07e28617d186ec10ce4cf753f2ad4 |
# $Id$
# importing this module shouldn't directly cause other large imports
# do large imports in the init() hook so that you can call back to the
# ModuleManager progress handler methods.
"""vtk_kit package driver file.
This performs all initialisation necessary to use VTK from DeVIDE. Makes
sure that all VTK clas... | nagyistoce/devide | module_kits/vtk_kit/__init__.py | Python | bsd-3-clause | 3,965 | [
"VTK"
] | a392c41eb7b9ede4c58950d044ae96a79446ea4cb3d7e07e77066d8219568ee9 |
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | yasharmaster/scancode-toolkit | tests/commoncode/test_paths.py | Python | apache-2.0 | 11,711 | [
"VisIt"
] | 02ef0ea1a0b91e33bac4dd6758d541805ddda79ec3dd0ff9a9ec86fdc9cbd63b |
import random
import uuid
from math import gcd
import numpy as np
from ._population import Population
from pychemia import Composition, Structure, pcm_log
from pychemia.analysis import StructureAnalysis, StructureChanger, StructureMatch
from pychemia.analysis.splitting import SplitMatch
from pychemia.utils.mathematics ... | MaterialsDiscovery/PyChemia | pychemia/population/relaxstructures.py | Python | mit | 19,699 | [
"CRYSTAL"
] | 0a4e4a1e6ac7a496f5b5e883f8ceb4acab9048e8a067d4cc1462d241af428150 |
# 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... | aselle/tensorflow | tensorflow/python/training/learning_rate_decay.py | Python | apache-2.0 | 37,563 | [
"Gaussian"
] | af9ec7afea2b31e00d57e065c39b4d2e1eaaea3d9c9ae1b78aa1a52a42fb21c4 |
"""
Wrap C++ STL containers
"""
#import warnings
from .typehandlers.base import ForwardWrapperBase, ReverseWrapperBase, \
Parameter, ReturnValue, param_type_matcher, return_type_matcher, \
TypeConfigurationError, NotSupportedError
from pybindgen.typehandlers import codesink
from pybindgen.pytypeobject import... | gjcarneiro/pybindgen | pybindgen/container.py | Python | lgpl-2.1 | 34,296 | [
"VisIt"
] | 7e836f8d260579e76cd72a8c96ea39642668694bf16e56e924d8e623cd1c2264 |
"""
Filename: server.py
Author: Brian Soe
Description: Activates server for Flask application.
"""
from dev import app, routes
import os
import sys
port = int(os.environ.get('PORT', 5000))
try:
app.run(host=sys.argv[1], port=port, debug=True)
except:
app.run(port=port, debug=True) | bsoe003/MWCH_Website | server.py | Python | mit | 291 | [
"Brian"
] | f132873220aaa44ee3ebc44c51bdf13e4f38cf370d8bcae4261c58c5ff28b3be |
import logging
import numpy as np
import astropy.constants as const
import astropy.units as au
def powersph_error(power,
tsys, nfeeds, tobs, xarclen, yarclen, fwhm, nu_min, nu_max, dnu, nu0, k, cosmo):
"""
Get instrument sensitivity in power spectrum, provided a set of instrument parameters
Require... | tonyyli/imapper2 | errorbars.py | Python | mit | 9,641 | [
"Gaussian"
] | 7f58d064e01d003f1291f1ccfa678b6027b87f9f22048a0ffb396550230fe89b |
#!/usr/bin/env python
import argparse
import os
import pysam
import sys
from collections import defaultdict
from sklearn.metrics import roc_auc_score
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import f1_score
def... | pavanvidem/BlockClust | scripts/blockclust.py | Python | gpl-3.0 | 35,039 | [
"pysam"
] | 595b85638187ea171f30ba4f06d0af272b072ce98c0989a492ef45a46b6da05c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.