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 |
|---|---|---|---|---|---|---|---|
########################################################################
# $Id$
########################################################################
"""
Matcher class. It matches Agent Site capabilities to job requirements.
It also provides an XMLRPC interface to the Matcher
"""
__RCSID__ = "$Id$"
import time
fr... | sposs/DIRAC | WorkloadManagementSystem/Service/MatcherHandler.py | Python | gpl-3.0 | 23,052 | [
"DIRAC"
] | 704763f10b8b65bfe6b97525cf900e8771a042bf64e1d3901a73ea62a2bdddf9 |
# CIS312 Final Project
# Created by Seth Bagdanov 2/7/2017
# Calculates and displays a recipe based on the batch size
# Python v3.6
#
# REFERENCES -----
# PRICING: http://grocery.walmart.com/, https://www.dutchvalleyfoods.com/
# RECIPE: http://www.bettycrocker.com/recipes/ultimate-chocolate-chip-cookies/77c14e03-d8b0-4... | FPU-CIS-312/MiniProject2 | CIS312_Project2_Bagdanov.py | Python | mit | 8,727 | [
"VisIt"
] | 751b030a6a396c5a375b71aa79876730cb728653ad67cd74d413f0aa9e3929dd |
""" Example smearing script
This script:
* Reads in mc spectra from hdf5
* Smears spectra, default is to use weighted Gaussian method, but can
also use specify random Gaussian method via command line
* Smeared spectrum is saved to the same directory with ``_smeared``
added to the file name
Examples:
T... | drjeannewilson/echidna | echidna/scripts/dump_smeared.py | Python | mit | 2,313 | [
"Gaussian"
] | 19bba922a57d2c54cb83233549dda21c68f47075513446901acc66a9c9f06098 |
#!/usr/bin/env python3
#pylint: disable=missing-docstring
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
... | nuclear-wizard/moose | python/chigger/tests/exodus/labels/variable.py | Python | lgpl-2.1 | 749 | [
"MOOSE"
] | 6d9d7a224c2586fa6fc5bdf279f29c92e6ee6567efdf6fecb5eef5026706697e |
# -*- coding: utf-8 -*-
"""
==========================================================
Create a new coordinate class (for the Sagittarius stream)
==========================================================
This document describes in detail how to subclass and define a custom spherical
coordinate frame, as discussed in ... | AustereCuriosity/astropy | examples/coordinates/plot_sgr-coordinate-frame.py | Python | bsd-3-clause | 11,382 | [
"Galaxy"
] | 9a5d53960c3594af8ee30d03ac6a64a9a591b0c96d1ad4fd9098543aab0acd50 |
from __future__ import division, print_function
import numpy as np
from ase.lattice import bulk
from ase.calculators.lj import LennardJones
from ase.constraints import UnitCellFilter
from ase.optimize import MDMin
vol0 = 4 * 0.91615977036 # theoretical minimum
a0 = vol0**(1 / 3)
a = bulk('X', 'fcc', a=a0)
a.calc = L... | grhawk/ASE | tools/ase/test/stress.py | Python | gpl-2.0 | 1,914 | [
"ASE"
] | 582894ecd77dc3f4f7c6b99e1393132b171e87a04796356d97b6047d1d72bc18 |
import wx
from images import icon_add, icon_delete, icon_edit
from images import icon_main, icon_about
from images import icon_home, icon_help, \
icon_visit_site, icon_searches, \
icon_browser
from images import icon_default_layout
from images import icon_add, icon_delete, icon_edi... | jorgb/airs | gui/menuhelper.py | Python | gpl-2.0 | 11,126 | [
"VisIt"
] | 748ea58ada216d74d2cef0aadff5723989cd39872b14ecf6072315bf52ec452b |
from __future__ import absolute_import
from six.moves.urllib.parse import urlparse
from django.utils.translation import ugettext_lazy as _
from django import forms
from sentry import http
from sentry.web.helpers import render_to_response
from sentry.identity.pipeline import IdentityProviderPipeline
from sentry.identi... | mvaled/sentry | src/sentry/integrations/github_enterprise/integration.py | Python | bsd-3-clause | 15,330 | [
"VisIt"
] | 6c2983ca8e86df6549f5e9185a20ef4cc03c9a65fe6009e92b5aa98cca155121 |
#!/usr/bin/env python
"""Predicting poker hand's strength with artificial neural networks in Python"""
from __future__ import absolute_import, print_function
from argparse import ArgumentParser as Parser
import os
from numpy import copy
from pybrain.structure.modules import LinearLayer, SoftmaxLayer, TanhLayer
from p... | huntrar/PokerNet | train.py | Python | mit | 7,477 | [
"NEURON"
] | 50003458fb44330f75f6f2fddc7341e53482f82bd342bdfa328d1424f7933706 |
from django.contrib.auth.models import User, Group, Permission
from django.contrib.contenttypes.models import ContentType
from lettuce import step, world
from questionnaire.features.pages.extract import ExtractPage
from questionnaire.features.pages.home import HomePage
from questionnaire.features.pages.step_utils impor... | eJRF/ejrf | questionnaire/features/users_steps.py | Python | bsd-3-clause | 18,631 | [
"VisIt"
] | 1fb96ec8f7402a9beac654bdcc35fc94bb2f08c4e4f3bba68404b160b3fe6895 |
import numpy as N
import pyfits as PF
import pylab as P
# Note that the lamp spectrum can be in the raw, but would not be
# present in the frame that is used in the HST. Thus, this test is
# not entirely accurate.
climit = 67.
f3 = 'lb3y01c5q_rawtag_b.fits'
f6 = 'lb6d01giq_rawtag_b.fits'
d3 = PF.open(f3)[1].data
d6 ... | sniemi/SamPy | sandbox/src/LocalCountRatesFromRaw.py | Python | bsd-2-clause | 3,342 | [
"VisIt"
] | 354326535022d42b9001c89529b88a0fbe9b3a57d22ad76b31af7b80565a5920 |
######################################################
# RATUser.py
# ---------
# Author: Matt Mottram
# <m.mottram@qmul.ac.uk>
#
# Description:
# Ganga application for SNO+ user analysis/simulation.
#
# Runs RAT snapshots on the given backend via ratRunner.py
# Ships the code in the input sandbox, can eithe... | ganga-devs/ganga | ganga/GangaSNOplus/Lib/Applications/RATUser.py | Python | gpl-3.0 | 12,478 | [
"DIRAC"
] | ae03e2fd98a58eea9e3bfbf6b6a436126efd80bf7fad59b87ed4ae808ac095a1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2015 Matthew Stone <mstone5@mgh.harvard.edu>
# Distributed under terms of the MIT license.
"""
"""
# from svcf import SVFile
from collections import deque
from itertools import combinations
import networkx as nx
def is_smaller_chrom(chrA, chrB, le=True)... | talkowski-lab/Holmes | readpaircluster/svcf/rpc.py | Python | mit | 8,112 | [
"pysam"
] | ba6a09d3a1e1c68dd0f0b2a10efc91fa12ea6022cf30697534752c2a9bb694a0 |
from numpy import (
vstack, where, intersect1d, in1d, unique,
cross, abs, arccos, sign,
dot, array, cov, nan_to_num, inf, pi,
hstack, repeat, bincount, arange
)
from numpy.linalg import norm, solve
class Box2D:
def __init__(self, *args, **kwargs):
if len(args) <= 5:
self._comp... | BRAINSia/tract_querier | tract_querier/tract_math/tract_obb.py | Python | bsd-3-clause | 46,285 | [
"Mayavi"
] | a4d90cacbb26d7e1ed6a0adb721ec3156095c9b134321a9d534088cdb7aa61f3 |
"""
grdlandmask - Create a "wet-dry" mask grid from shoreline data base
"""
import xarray as xr
from pygmt.clib import Session
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import (
GMTTempFile,
build_arg_string,
fmt_docstring,
kwargs_to_strings,
use_alias,
)
@fmt_docstring
@use... | GenericMappingTools/gmt-python | pygmt/src/grdlandmask.py | Python | bsd-3-clause | 2,314 | [
"NetCDF"
] | bed11ac1148d4f0f1e185e190cf86afd32e887683be91ab564ed59b571e13b14 |
from utils import *
import qcelemental as qcel
import qcdb
def test_Molecule_BFS():
#! apply linear fragmentation algorithm to a water cluster
iceIh = """\
36
Crystal created from CIF file. Box size: 7.82000 7.82000 7.36000
O 2.606641 0.000000 3.220000
O 5... | jgonthier/psi4 | psi4/driver/qcdb/pytest/test_bfs.py | Python | lgpl-3.0 | 4,124 | [
"CRYSTAL"
] | c770d57d6d1124c091bdb2c6a219155e380752f124a18deeb244dbc114a1ae5e |
# Copyright (C) 2012,2013,2018
# 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 ... | niktre/espressopp | src/interaction/Potential.py | Python | gpl-3.0 | 3,873 | [
"ESPResSo"
] | be04170dcf7e48274420409dfc9602ccc9c621d32a2a0571eecadc7453a9be06 |
#!/usr/bin/env python
__RCSID__ = "$Id$"
# pylint: disable=wrong-import-position
import DIRAC
from DIRAC.Core.Base import Script
groupName = None
groupProperties = []
userNames = []
def setGroupName(arg):
global groupName
if groupName or not arg:
Script.showHelp()
DIRAC.exit(-1)
groupName = arg
de... | andresailer/DIRAC | Interfaces/scripts/dirac-admin-add-group.py | Python | gpl-3.0 | 2,614 | [
"DIRAC"
] | b407d139d2214e920259486fb0b752cfa87e029433cde51dd48b994c7d637c55 |
#!/usr/bin/env python3
#* 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/lgp... | harterj/moose | python/postprocessing/tests/test_combine_csv.py | Python | lgpl-2.1 | 6,106 | [
"MOOSE"
] | 2a7da56be9e2d566b7edbdbacccf2bbe748a89d81f8f6705c52ee4c9ac2f58bd |
# Copyright 2007 by Tiago Antao <tiagoantao@gmail.com>. 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.
"""
This module provides code to work with FDist.
See http://www.rubic.... | bryback/quickseq | genescript/Bio/PopGen/FDist/__init__.py | Python | mit | 2,714 | [
"Biopython"
] | 506b8e8e495d7b31b2b725f41ba23a3a1b8b13ffdac1bf6a2a5789618cd551ea |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | WhySoGeeky/DroidPot | venv/lib/python2.7/site-packages/django/conf/global_settings.py | Python | mit | 22,710 | [
"VisIt"
] | a6889ce8a6a0b873eec0ccc172fe4443c3cd05fd21738457d4a8430141ff4294 |
#!/usr/bin/env python
"""
"""
import vtk
def main():
colors = vtk.vtkNamedColors()
fileName, tissue = get_program_parameters()
tissueMap = CreateTissueMap()
colorLut = CreateFrogLut()
# Setup render window, renderer, and interactor.
rendererLeft = vtk.vtkRenderer()
rendererLeft.SetVie... | lorensen/VTKExamples | src/Python/Visualization/ViewFrogBoth.py | Python | apache-2.0 | 6,776 | [
"Gaussian",
"VTK"
] | c850b44e6bcf405ac5d97fc0c79749d1041cb0582c546e4ebbc365077f3b3896 |
import logging
import re
from urllib.parse import urlparse, urlunparse
from itertools import tee, filterfalse
from dateutil.parser import parse as parse_datetime
from bs4 import BeautifulSoup as Soup, Comment
from langdetect import detect
from tornado import httpclient
from tornado.httputil import HTTPHeaders
from t... | skrushinsky/torspider | torspider/scraper.py | Python | mit | 9,474 | [
"VisIt"
] | d73f1370efaf517cacdcdd366ad19bc162ccaf5c4dac4d72e17172d9eb1e6621 |
###############################################################################
# Python Script to Convert .ab1 to .fasta and .qual Using BioPython
###############################################################################
# Written by Mario Muscarella
# Last Update 25 Apr 2013
# Directions:
# use the following ... | mmuscarella/StarvationTraits | bin/ReadAB1.py | Python | gpl-3.0 | 753 | [
"Biopython"
] | c4c43aae8c435ead4b6a83a77c7c043f4bc8daeb7a440e333042d4f86fec79be |
################################
## Set diagnostics to True ##
## If you want display the ##
## Tracking process. ##
################################
diagnostics=False
#################################
## Import packages ##
#################################
import sys
import os
from tracke... | Josue-Martinez-Moreno/trackeddy | tests/test_savedata.py | Python | mit | 1,916 | [
"Gaussian"
] | aebeb41604235d609f1aa6abd711e9e402b6e141b2c63a466e73b79d83eed906 |
# This file is part of Korman.
#
# Korman 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.
#
# Korman is distributed i... | H-uru/korman | korman/exporter/etlight.py | Python | gpl-3.0 | 27,828 | [
"GULP"
] | 7d16c259c007c5deadbbfe36b8bda05396d0d14889b5c682d3eb4512dd88c6ba |
import logging
import random
import numpy as np
from ray.rllib.agents import with_common_config
from ray.rllib.agents.dreamer.dreamer_torch_policy import DreamerTorchPolicy
from ray.rllib.agents.trainer_template import build_trainer
from ray.rllib.execution.common import STEPS_SAMPLED_COUNTER, \
LEARNER_INFO, _ge... | richardliaw/ray | rllib/agents/dreamer/dreamer.py | Python | apache-2.0 | 8,885 | [
"Gaussian"
] | 09cd7eb574d184741815874c8835cb9cebc2a85178f2f52cc6687a3d27a4405c |
import filecmp
import json
import logging
import os
import re
from ast import literal_eval as make_tuple
from typing import List, Optional, Tuple, Set, Dict
import numpy as np
import pymc3 as pm
from . import io_consts
from .._version import __version__ as gcnvkernel_version
from ..models.fancy_model import Generaliz... | magicDGS/gatk | src/main/python/org/broadinstitute/hellbender/gcnvkernel/io/io_commons.py | Python | bsd-3-clause | 22,930 | [
"Gaussian"
] | 66ac1d8288883cbff7309aaf650061df4acf392d54d6ecfee84982aebcfdafe2 |
import json
class Element(object):
"""
Abstract class for Cytoscape.js graph element with common properties for nodes and edges
"""
def __init__(self, _id):
self.__metaclass__ = Element
self.group = 'nodes' # 'nodes' for a node, 'edges' for an edge
self.data = { # element da... | danielkupco/viewX-vscode | src/python/cytoscape_helper.py | Python | mit | 4,728 | [
"Cytoscape"
] | 854a912c41335f12132d358e3f2dd8e9b408ad91019121d62c88786d43570b64 |
# Copyright (c) 2020 PaddlePaddle 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 app... | luotao1/Paddle | python/paddle/fluid/dygraph/dygraph_to_static/assert_transformer.py | Python | apache-2.0 | 1,648 | [
"VisIt"
] | bfdbef8c9e2b10eb955712157596f7b15beeaa1ce83eb770b37adba5ed2be8a8 |
# Copyright 2014 the National Renewable Energy Laboratory
#
# 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 ... | NREL/OpenWARP | source/automated_test/Test1/mesh.py | Python | apache-2.0 | 35,411 | [
"ParaView",
"VTK"
] | a2eb4b47e648e6a17313c67b2f677d50f98fd70ecb9a88d146e1781c0b89d732 |
import os
import yaml
from yaml import CLoader as Loader, CDumper as Dumper
class MooseYaml(object):
"""
A utility to read the YAML data from MOOSE.
Args:
raw[str]: The raw yaml output from MOOSE.
"""
def __init__(self, raw):
raw = raw.split('**START YAML DATA**\n')[-1]
ra... | katyhuff/moose | python/utils/MooseYaml.py | Python | lgpl-2.1 | 2,205 | [
"MOOSE"
] | e83f5b14d28270245fa7c02d5ca2b43d994a9d65b1bba90607a6717867621e5a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import appointmentresponse
from .fhirdate import FHIRDate
class AppointmentResponseTests(unittest.TestCase):
def instantiate_fro... | all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_4_0_0/models/appointmentresponse_tests.py | Python | bsd-3-clause | 3,510 | [
"Brian"
] | 69a6b354953287256d43b8723c7275b725bda29c95fb3bb4f692c142adea8ed5 |
import numpy as np
from multiphenotype_utils import (get_continuous_features_as_matrix, add_id, remove_id_and_get_mat,
partition_dataframe_into_binary_and_continuous, divide_idxs_into_batches)
import pandas as pd
import tensorflow as tf
from dimreducer import DimReducer
from scipy.special import expit
from genera... | epierson9/multiphenotype_methods | variational_autoencoder.py | Python | mit | 14,324 | [
"Gaussian"
] | 598219599c177ea5765acdb9218f561f2325923ecf43a95c2583328490972d74 |
import tensorflow as tf # neural network for function approximation
import gym # environment
import numpy as np # matrix operation and math functions
from gym import wrappers
import gym_morph # customized environment for cart-pole
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import time
star... | GitYiheng/reinforcement_learning_test | test03_monte_carlo/t28_rlvps01_hn24_clr0p003.py | Python | mit | 7,660 | [
"NEURON"
] | dc9b6e6b66767ad2fd27a3f7f24b034358b5d45d12f128a864349793d1598148 |
import vigra
from vigra import graphs
from vigra import numpy
import pylab
# parameter
filepath = '12003.jpg' # input image path
sigmaGradMag = 2.0 # sigma Gaussian gradient
superpixelDiameter = 10 # super-pixel size
slicWeight = 10.0 # SLIC color - spatial weight
beta = 0.5 # node vs edge weig... | timoMa/vigra | vigranumpy/examples/graph_agglomerative_clustering.py | Python | mit | 2,297 | [
"Gaussian"
] | c696feaf37682d0c4b35b36c69836971508160b7c67c8f63a57f697bf03a105e |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" は、"field1=\'newvalue\'" のようなオプションです。"JOIN の結果を更新または削除することはできません。',
'# Houses Damaged': '損傷した家屋の数',
'# Houses Flooded': '浸水した家屋数',
'# People Needing Food': '食料が必要な人の数',
'# People at ... | flavour/porto | languages/ja.py | Python | mit | 410,121 | [
"VisIt"
] | 7acacaef90f427ea3e57a9447a1e8cae9d7cfac7cb6e70962656d3e26c38fcf9 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
"""Half-sphere exposure and coordination number calculation."""
import warnings
from math... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/PDB/HSExposure.py | Python | gpl-2.0 | 11,428 | [
"Biopython",
"PyMOL"
] | d3446257218095db2c96c38b2ef380afdc29e03082dd9c9a6c4ce7cccf5918d8 |
"""
NeuroTools.analysis
==================
A collection of analysis functions that may be used by NeuroTools.signals or other packages.
.. currentmodule:: NeuroTools.analysis
Classes
-------
.. autosummary::
TuningCurve
Functions
---------
.. autosummary::
:nosignatures:
ccf
crosscorrelate
make_ker... | meduz/NeuroTools | src/analysis.py | Python | gpl-2.0 | 17,761 | [
"Gaussian",
"NEURON"
] | d55aa2c538f3bc4024045ed5499d89ca3166c06546c08b24863704a6c27fb64f |
# -*- coding: utf-8 -*-
from DeviceTemplate import Ui_Form
import time, os, sys, gc
from PyQt4 import QtCore, QtGui
#from acq4.pyqtgraph.graphicsItems import ImageItem
import acq4.Manager
from acq4.util.imageAnalysis import *
from acq4.util.debug import *
import numpy as np
import acq4.pyqtgraph as pg
#import acq4.pyqt... | hiuwo/acq4 | acq4/devices/Scanner/DeviceGui.py | Python | mit | 20,043 | [
"Gaussian"
] | 744a01191f2a79fd81ba7d46962fe6ed8f8fff4639e9f4039a66f3d7c28ccbc4 |
""" StratusLabImage
Class used by DIRAC to control virtual machine instances on StratusLab
cloud infrastructures. This provides just the core interface methods for
DIRAC, the real work is done within the StratusLabClient class.
Author: Charles Loomis
"""
#DIRAC
from DIRAC import gLogger, S_ERROR
# VMD... | vmendez/VMDIRAC | WorkloadManagementSystem/Client/StratusLabImage.py | Python | gpl-3.0 | 5,501 | [
"DIRAC"
] | 0cf24aa3f6a734e2d5ffb486f7cb5b94f058c102e6846a40f793f73f30ab8beb |
from unittest import skipUnless
from bok_choy.web_app_test import WebAppTest
from acceptance_tests import PLATFORM_NAME, APPLICATION_NAME, SUPPORT_EMAIL, ENABLE_ERROR_PAGE_TESTS
from acceptance_tests.pages import ServerErrorPage, NotFoundErrorPage, AccessDeniedErrorPage, \
ServiceUnavailableErrorPage
@skipUnles... | Stanford-Online/edx-analytics-dashboard | acceptance_tests/test_error_pages.py | Python | agpl-3.0 | 1,164 | [
"VisIt"
] | 57bdc54f30abeed1f56c437bcf04d921a13a7459984742dda904b03c5660d593 |
# jasoncg
# 2015-02-22
#
# mlperceptron.py - A multilayer perceptron implementation in Python
#
# This implementation is designed for readability, not performance.
# Each layer in the perceptron is stored as a Perceptron instance. Each
# neuron is a seperate Neuron instance.
#
# Example:
# Generate a new random perc... | jasoncg/mlperceptronpy | mlperceptron.py | Python | mit | 9,427 | [
"NEURON"
] | d4626088a23ace9c5a8c49584ced40125403061b6569abd685fdced4a5bca956 |
def test_formula_transform():
"""
Check if variables can be added/multiplied/transformed.
The resulting expression can be plugged into a model.
"""
from mle import var
x = var('x', vector=True, observed=True)
a = var('a')
b = var('b')
a * x**2 + b
def test_const():
"""
Ch... | ibab/python-mle | tests/__init__.py | Python | mit | 2,593 | [
"Gaussian"
] | 6d57d9ab1a4dbce861173cbb2a951e3d32ed2808750ddc8fb70ea7f9a8b07c5e |
# -*- coding: utf-8 -*-
"""
Application setup script
To build package:
python3 setup.py sdist bdist_wheel clean
"""
# standard imports
import io
import os
# external imports
from setuptools import find_packages, setup
# application imports
from subsystem import __description__, __program__, __version__
def read(*... | brbsix/subsystem | setup.py | Python | gpl-3.0 | 1,916 | [
"Brian"
] | 82ff25f8b2bf422689dedccf9a27f8d35829660c28c2816726097437bc493914 |
# myapp/util/assets.py
from flask.ext.assets import Bundle, Environment
from app import app
bundles = {
'common_js': Bundle(
'../../node_modules/react/dist/react.min.js',
output='gen_files/bundle/common.js'
),
'hello_js': Bundle(
'gen_files/gulp/hello.js',
output='gen_files... | agentp/spark | assets.py | Python | mit | 400 | [
"GULP"
] | 4625a74eb98f22a7e924479657811f696b9120a2f79d9a0f08a40c3ae49e4725 |
__VERSION__="ete2-2.2rev1056"
# -*- coding: utf-8 -*-
# #START_LICENSE###########################################################
#
#
# This file is part of the Environment for Tree Exploration program
# (ETE). http://ete.cgenomics.org
#
# ETE is free software: you can redistribute it and/or modify it
# under the t... | csc8630Spring2014/Clusterizer | ete2/phylo/reconciliation.py | Python | mit | 6,041 | [
"VisIt"
] | 1f418d4286ce8cb71dd757824e1c8a25d5bb7cc8b3412437c2657056743ac290 |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
import random
def cv_carsGLM(ip,port):
# read in the dataset and construct training set (and validation set)
cars = h2o.import_file(path=h2o.locate("smalldata/junit/cars_20mpg.csv"))
# choose the type model-building exercise (multinomial class... | bospetersen/h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_cv_carsGLM.py | Python | apache-2.0 | 6,750 | [
"Gaussian"
] | 391ba7c4163ea2cc4ca1b4a48fb74f97fbcecae5c8d57f37e9bb8bac5130187b |
from __future__ import division
import numpy as np
import scipy as sp
from scipy import sparse
from .signals import smooth_volume
from .utils import image_to_matrix, matrix_to_image
def prewhiten_image_data(ts_img, mask_img, X, smooth_fwhm=5):
"""Estimate autocorrelation and transform data and design for OLS.
... | kastman/lyman | lyman/glm.py | Python | bsd-3-clause | 9,978 | [
"Gaussian"
] | 41a55cda91183e9a46123a3148277702142a93cfbb5a348bb054dc6bde32a5a2 |
#!/usr/bin/env python
# coding:utf-8
__version__ = '3.3.1'
__password__ = ''
__hostsdeny__ = ()
#__hostsdeny__ = ('.youtube.com', '.youku.com', ".googlevideo.com")
import os
import re
import time
import struct
import zlib
import base64
import logging
import urlparse
import httplib
import io
import st... | hexlism/xx_net | gae_proxy/server/gae/gae.py | Python | bsd-2-clause | 13,880 | [
"VisIt"
] | 107a0544a87a8c4f8c9391beb2b40ab68bba01b84492faa91837758f3311dfea |
"""
Augmenters that create weather effects.
List of augmenters:
* :class:`FastSnowyLandscape`
* :class:`CloudLayer`
* :class:`Clouds`
* :class:`Fog`
* :class:`SnowflakesLayer`
* :class:`Snowflakes`
* :class:`RainLayer`
* :class:`Rain`
"""
from __future__ import print_function, divisio... | aleju/ImageAugmenter | imgaug/augmenters/weather.py | Python | mit | 61,460 | [
"Gaussian"
] | adf87f010f21e79dc4213f505d8ccedee06871d695d1c25ef3f589a6b2decaf5 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ThreadPoolExecutor."""
from __future__ import with_statement
import atexit
import threading
import weakref
import sys
from concurrent.futures import _base
try:
import queue
except ImportError:
... | santegoeds/pythonfutures | concurrent/futures/thread.py | Python | bsd-2-clause | 4,795 | [
"Brian"
] | 7980c7794181399465fbc85685fc70457b348607d8abbe9548344736d44bbdb9 |
#!/usr/bin/env python
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
def expected_rsc01():
# these data were generated by Mathematica
data = [
[0.996808823, 0],
[0.989844967, 0.141863271],
[0.976194821, 0.284448102],
[0.953409148, 0.428342817],
... | Chuban/moose | modules/porous_flow/doc/tests/rogers_stallybrass_clements.py | Python | lgpl-2.1 | 2,336 | [
"MOOSE"
] | eb1b567e7a8afd80b0f8e097b36680ed79174461e3ceec29ab885f5fe2826487 |
"""
RDKit Utilities.
This file contains utilities that compute useful properties of
molecules. Some of these are simple cleanup utilities, and
others are more sophisticated functions that detect chemical
properties of molecules.
"""
import os
import logging
import itertools
import numpy as np
from io import StringIO
... | deepchem/deepchem | deepchem/utils/rdkit_utils.py | Python | mit | 21,198 | [
"OpenMM",
"RDKit"
] | 9cb25db8a1a1f4dba681607fccd8ae98286b2d0915ebcf1185b5c5465a39a79a |
from functools import partial
import os
import numpy as np
from sklearn.preprocessing import LabelEncoder
from .. import SDC, NuSDC, Features
data_dir = os.path.join(os.path.dirname(__file__), 'data')
################################################################################
# TODO: add *real* tests
def _ch... | dougalsutherland/py-sdm | sdm/tests/test_sdm.py | Python | bsd-3-clause | 1,555 | [
"Gaussian"
] | d32c15839b897a43370d7ad1948c20a5cf9f8f081b6341a9543b5bcb78e9528c |
# -*- coding: utf-8 -*-
# rdesignerProtos.py ---
#
# Filename: rdesignerProtos.py
# Description:
# Author: Subhasis Ray, Upi Bhalla
# Maintainer:
# Created: Tue May 7 12:11:22 2013 (+0530)
# Version:
# Last-Updated: Wed Dec 30 13:01:00 2015 (+0530)
# By: Upi
# URL:
# Keywords:
# Compatibility:
#
#
# Comment... | dharmasam9/moose-core | python/rdesigneur/rdesigneurProtos.py | Python | gpl-3.0 | 15,114 | [
"MOOSE",
"NEURON"
] | f04b2f9721765ecb07d4c73b3cbfa322b29942f77dda0c765f619ed7944690df |
import numpy as np
import scipy.stats #Note no longe resi 0 but resi 1
import ALA3, experiment_loader
import mdtraj
ff = "amber96"
prior = "maxent"
bayesian_bootstrap_run_list = [0,1]
regularization_strength = ALA3.regularization_strength_dict[prior][ff]
predictions, measurements, uncertainties = experiment_loader.... | kyleabeauchamp/EnsemblePaper | code/info_graphic/save_frames.py | Python | gpl-3.0 | 1,200 | [
"MDTraj"
] | 0c6099003d3b6d8e8616b89c060399c856c466c0ca63344736f447c80475df8d |
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2008-2009 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | arunkgupta/gramps | gramps/plugins/drawreport/calendarreport.py | Python | gpl-2.0 | 27,262 | [
"Brian"
] | b19c9a995868d1de2ad3f72061c3cc19adc0b93aadb2f012c926a35078c4a458 |
#! /usr/bin/env python2.7
'''blastextract.py
A script that automates the pipeline between blastn and extract.py. In the
future, this script may automate the role of mafft or some other multiple
alignment program; for now, you must manually run the multiple aligner of your
choice (we recommend ginsi, which ships ... | jpassaro/seq-align-prep | blastextract.py | Python | gpl-2.0 | 11,395 | [
"BLAST"
] | e1f635d9e6346ff01f0ce3d030edaa8daa50d6a460d784f65891ff6a98954ab4 |
from __future__ import division
import numpy as np
import networkx as nx
from pgmpy.models import BayesianModel
from pgmpy.factors.continuous import LinearGaussianCPD
from pgmpy.factors.continuous import JointGaussianDistribution
class LinearGaussianBayesianNetwork(BayesianModel):
"""
A Linear Gaussain Baye... | abinashpanda/pgmpy | pgmpy/models/LinearGaussianBayesianNetwork.py | Python | mit | 9,162 | [
"Gaussian"
] | 03842fc216a30e160181195f0d0d589f668ed281debbe0889f2c170ac645514e |
"""An interface for publishing rich data to frontends.
There are two components of the display system:
* Display formatters, which take a Python object and compute the
representation of the object in various formats (text, HTML, SVG, etc.).
* The display publisher that is used to send the representation data to the... | noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/core/displaypub.py | Python | apache-2.0 | 5,918 | [
"Brian"
] | 6be84973325239f791999df1b07b2d53ab1108acc3046858edc98a6a117b241c |
#!/usr/bin/env python
# coding: utf-8
# # Gradient Methods
#
#
# ## Top-down start
#
# * We will start with a top-down view, with a simple harmonic oscillator problem in one dimension as case.
#
# * Thereafter we continue with implementing the simplest possible steepest descent approach to our two-electron problem... | CompPhysics/ComputationalPhysics2 | doc/LectureNotes/_build/jupyter_execute/gradientmethods.py | Python | cc0-1.0 | 54,902 | [
"Gaussian"
] | cababc6abfc5f5578e91caf4966f13bd58e023fca9ce2ad7f19ead65468f17c1 |
import numpy as np
import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.pyplot as plt
from scipy.interpolate import interp1d
from matplotlib.widgets import Slider, Button, RadioButtons, CheckButtons
from matplotlib.lines import Line2D
from scipy.stats import spearmanr,pearsonr,kendalltau
from scipy.optimize imp... | giffordw/OSMOSreduce | testopt.py | Python | bsd-3-clause | 21,628 | [
"Galaxy"
] | b28a3dd6afcfdef96f9cacd2125aac0c812e4fafe7b4d98355af8af772ab4d86 |
import numpy as np
import netCDF4 as nc
from .base_grid import BaseGrid
class CiceGrid(BaseGrid):
def __init__(self, **kwargs):
self.type = 'Arakawa B'
self.full_name = 'CICE'
super(CiceGrid, self).__init__(**kwargs)
@classmethod
def fromfile(cls, h_grid_def, mask_file=None,
... | DoublePrecision/esmgrids | esmgrids/cice_grid.py | Python | apache-2.0 | 5,621 | [
"NetCDF"
] | efd038d03dd46f3e84a72193680c358123e98bb2dda8fba88b2b90ceb4c1b5e8 |
from google.appengine.ext import ndb
#
# NDB Models
#
# This class contains the NDB models for my TriviaGame project.
#
# Author: Brian Doherty
#
#
# Category Class
#
#class Category(ndb.Model):
#
# Question Class
#
#class Question(ndb.Model):
#
# User Properties Class
#
class UserProperty(ndb.Model):
userName = n... | bedoherty/TriviaGame | Web Backend/TriviaServer/ndbmodels.py | Python | mit | 612 | [
"Brian"
] | 5502964643f1c4bc4cd5db089b0474d80f339a4c53e75beb9cbf5dbe59f4cc5c |
"""fusioncatcher subcommand tests"""
# (c) 2015-2021 Wibowo Arindrarto <contact@arindrarto.dev>
import json
import pytest
from click.testing import CliRunner
from crimson.cli import main
from .utils import get_test_path, getattr_nested
@pytest.fixture(scope="module")
def fusioncatcher_fail():
runner = CliRunne... | bow/crimson | tests/test_fusioncatcher.py | Python | bsd-3-clause | 7,773 | [
"Bowtie"
] | a163375e9cad7d9465cd612d3ea8a06fb3ba161cb06c82b3e5f543a8f22b7144 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Huyuwei/tvm | python/tvm/hybrid/preprocessor.py | Python | apache-2.0 | 4,765 | [
"VisIt"
] | c990c494b08c5c7bfde86f3eadfbaef294caa25de13faebf732f786931e28d64 |
import os
from intermol.gromacs.gromacs_parser import load_gromacs
def load_top_opls(top_path, mol_name=None):
"""Load a gromacs .top file parameterized with OPLS types. """
if mol_name is not None:
with open(top_path) as top_file:
if mol_name not in top_file.read():
retur... | Jonestj1/foyer | foyer/utils/io.py | Python | mit | 722 | [
"Gromacs"
] | ffbce06c010b1cc39f4ae5ed592ec42e009757f75b79360ae13eb7d0e877e2a4 |
#!/usr/bin/python
"""Test of sayAll."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Add"))
sequence.append(utils.AssertPresentationAction(
"1. KP_Add to do a SayAll",
["SPEECH OUTPUT: 'Home'",
"... | pvagner/orca | test/keystrokes/firefox/say_all_enter_bug.py | Python | lgpl-2.1 | 4,023 | [
"ORCA"
] | e7a31529b6052ee257871dd85a53496231a4d479bcdf17092dcfddbca49aa529 |
tests = [("python", "testConstraints.py", {}), ]
longTests = []
if __name__ == '__main__':
import sys
from rdkit import TestRunner
failed, tests = TestRunner.RunScript('test_list.py', 0, 1)
sys.exit(len(failed))
| rvianello/rdkit | Code/ForceField/Wrap/test_list.py | Python | bsd-3-clause | 222 | [
"RDKit"
] | ffe68cd9711c73585d93c625763bc7cee89ad3a61bd0d4323abae283974b1c53 |
#!/usr/bin/env python
# This Python file uses the following encoding: utf-8
#
# Copyright (C) 2010-2018 Davide Andreoli <dave@gurumeditation.it>
#
# This file is part of EpyMC, an EFL based Media Center written in Python.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | DaveMDS/epymc | epymc/youtubedl.py | Python | gpl-3.0 | 7,519 | [
"VisIt"
] | 92a3174708f34b0b347ada6181cb6dadc476e7584a7b8481c2f468c783861e77 |
from __future__ import (absolute_import, division, print_function)
from mantid.api import (DataProcessorAlgorithm, mtd, AlgorithmFactory,
FileProperty, FileAction,
MultipleFileProperty, WorkspaceProperty,
PropertyMode, Progress)
from mantid.simple... | wdzhou/mantid | Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ConvertMultipleRunsToSingleCrystalMD.py | Python | gpl-3.0 | 9,652 | [
"CRYSTAL"
] | 9f59b76c6cd74660cb2f6952c918320cd35a637b477a1a6148230b52514d878a |
"""Using urllib3 ProxyManager and tor example."""
# author: James Campbell
# date: 2015 11 19
# Date Updated: 2 July 2019
import urllib3 # use with python 3 only
import argparse
from bs4 import BeautifulSoup
# terminal arguments parser globals - do not change
parser = argparse.ArgumentParser()
parser.add_argument('-o... | jamesacampbell/python-examples | urllib3_proxymanager-example.py | Python | mit | 1,467 | [
"VisIt"
] | a58ebf940a0dbe64a4100a9760b31833f3ca71d52df7d67fe84b1855ab287661 |
from collections import deque
from rdkit import Chem
import sys
import tensorflow as tf
import pickle
import os
import fnmatch
import numpy as np
from scipy.spatial.distance import pdist, squareform
import pandas as pd
from deepchem.feat.base_classes import Featurizer
from deepchem.feat.graph_features import atom_f... | Agent007/deepchem | deepchem/feat/adjacency_fingerprints.py | Python | mit | 4,624 | [
"RDKit"
] | d8064a76a780dbedba2bc76100cac83f643b69dbd3c215f82f130b96e68d4c47 |
#!/usr/bin/env python
#
# Restriction Analysis Libraries.
# Copyright (C) 2004. Frederic Sohm.
#
# 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.
#
""" Notes about the diverses class of the ... | asherkhb/coge | bin/last_wrapper/Bio/Restriction/Restriction.py | Python | bsd-2-clause | 83,257 | [
"Biopython"
] | feb45a1b91ecc78dd507b1d1026d46497d90f5e9602a442923d0cf1ada1ae102 |
#! /usr/bin/env python
#
# test_plotting.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, o... | gewaltig/cython-neuron | topology/pynest/tests/test_plotting.py | Python | gpl-2.0 | 4,046 | [
"Gaussian"
] | 2a50a97ea2d39dcc713c7614dfb6887b4b37440bb1f5176d0b8ec0e95022559c |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module containing classes to generate grain boundaries.
"""
import itertools
import logging
import warnings
from fractions import Fraction
from functools import reduce
from math import cos, floor, gcd
import numpy as np
... | materialsproject/pymatgen | pymatgen/analysis/gb/grain.py | Python | mit | 115,056 | [
"CRYSTAL",
"pymatgen"
] | e31859443feadf581627d246ce5ff7f63af4e8ab60911f8111f08044a9b8e0d2 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | EmreAtes/spack | var/spack/repos/builtin/packages/hic-pro/package.py | Python | lgpl-2.1 | 3,434 | [
"pysam"
] | 8c845f9c8a7f18661e6e87ed364cf1ab3523386a80c6c23f130d8eaa14c38947 |
# pylint: disable=invalid-name,too-many-lines
"""Density estimation functions for ArviZ."""
import warnings
import numpy as np
from scipy.fftpack import fft
from scipy.optimize import brentq
from scipy.signal import convolve, convolve2d, gaussian # pylint: disable=no-name-in-module
from scipy.sparse import coo_matrix... | arviz-devs/arviz | arviz/stats/density_utils.py | Python | apache-2.0 | 32,377 | [
"Gaussian"
] | aeb9cba9a2bdbe2e62b97dc0416fa17cc781ebea72960de523f7d79afc18e6ab |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8
import os
import sys
import json
import math
import numpy
import argparse
import itertools
import logging
from gff3 import (
feature_lambda,
coding_genes,
genes,
get_gff3_id,
feature_test_location,
get_rbs_from,
nice... | TAMU-CPT/galaxy-tools | tools/phage/phage_annotation_validator.py | Python | gpl-3.0 | 42,652 | [
"Galaxy"
] | c3c83c6bb89785213022836c84187549c8c501fa3cf26ceca8b50ceb5341c166 |
#!/usr/bin/env python
import ruamel.yaml
from flask_script import Manager, Shell, prompt_bool
from ludolatin import app
from app import db
from app import models
from app.models import User, Sentence, Quiz, Answer, Score, Topic, Product, Purchase, Comment, Activity
# output = dump(data, Dumper=Dumper)
manager = Mana... | merelinguist/ludolatin | manage.py | Python | mit | 5,300 | [
"VisIt"
] | c5436c3c42a7c5d253f8f59db4ac25842b80d1a6beeeb250bb4b196c407e1aea |
########################################################################
# File : PilotStatusAgent.py
# Author : Stuart Paterson
########################################################################
""" The Pilot Status Agent updates the status of the pilot jobs in the
PilotAgents database.
"""
__RCSID__ ... | arrabito/DIRAC | WorkloadManagementSystem/Agent/PilotStatusAgent.py | Python | gpl-3.0 | 12,171 | [
"DIRAC"
] | 190035e338bc9f5a8acc2c5dd3d475ec20e6c9413d172665b2daca6826cfd0fd |
from __future__ import absolute_import
from __future__ import print_function
try:
from unittest.mock import patch
except ImportError:
from mock import patch
import os
import tempfile
import shutil
from os.path import join as p
from rdflib.term import URIRef
from owmeta.data_trans.neuron_data import NeuronCSVDa... | openworm/PyOpenWorm | tests/NeuronCSVDataTranslatorTest.py | Python | mit | 5,099 | [
"NEURON"
] | f7ea465ff7bd9c7158c67a196d94eec36dd6d045aa599c263e329f3d6bddfd93 |
#!/usr/bin/python
###############################################################################
#
# This script outputs both the rotameric state as a function of time for
# time series plotting and rotamer distributions for error bar analysis
# of rotameric states per trajectory. This script is directly analogous to
... | cing/ChannelAnalysis | ChannelAnalysis/RotamerAnalysis/Statistics.py | Python | mit | 10,529 | [
"MDAnalysis"
] | 0649e2ecabe4c8b2435b56f8de6ce93f50df6c67e49fbd58a7d960f38024765d |
# Copyright (c) 2000 Autonomous Zone Industries
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
__revision__ = "$Id: ipaddresslib.py,v 1.10 2002/12/18 15:24:59 myers_carpenter Exp $"
"""
A library for determining the ... | zooko/egtp_new | egtp/ipaddresslib.py | Python | lgpl-2.1 | 14,029 | [
"VisIt"
] | 01aea13dc18507b681fe24c65c3916e1d6b27f2fc6cf22473720239cd4934f20 |
"""
Binary classes
"""
import data, logging, binascii
from galaxy.datatypes.metadata import MetadataElement
from galaxy.datatypes import metadata
from galaxy.datatypes.sniff import *
from urllib import urlencode, quote_plus
import zipfile, gzip
import os, subprocess, tempfile
log = logging.getLogger(__name__)
# Curr... | volpino/Yeps-EURAC | lib/galaxy/datatypes/binary.py | Python | mit | 9,097 | [
"Galaxy"
] | 6debbfa8de19c33b8c8358801148ded0893a189f81e266c20211d443d3eec3b9 |
# -*- coding: utf-8 -*-
"""
GUINEA PIG SKIN IMAGE ANALYSIS GESTATION ESTIMATION SUITE (GPS ImAGES)
Created on Wed Aug 17 09:16:22 2016
Last updated 8/17/2016
@author: Aaron Au
"""
import dicom
import glob as gb
import numpy as np
from math import *
import matplotlib.pyplot as plt
import pandas as pd
import scipy.ndi... | YipLab/GuineaPig | GPS_ImAGES.py | Python | gpl-3.0 | 21,660 | [
"Gaussian"
] | 0946ba59e010d83955716ae692c887338d552262c2edfe888b79d60fc955add7 |
from math import log
import numpy as np
import pytest
from scipy import optimize
from sklearn.multioutput import MultiOutputRegressor
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_greater
from sklearn.utils.tes... | betatim/BlackBox | skopt/tests/test_acquisition.py | Python | bsd-3-clause | 5,650 | [
"Gaussian"
] | 61217613a6b176d3ec699dc2a5dd628e268f8583b0ec07b62decd8f0cfb7a0de |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License... | sparkslabs/kamaelia_ | Sketches/MH/Video/YUV4MPEG.py | Python | apache-2.0 | 23,091 | [
"DIRAC"
] | 1eac47f85505db87c47eede3d9d1d6c4e153aca998653939a28343f3ece34af4 |
#!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
# ---------------------------------------------------------------------------
#
# Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
# Copyright (C) 2003 Mt. Hood Playing Card Co.
# Copyright (C) 2005-2009 Skomoroh
#
# This program is free software... | jimsize/PySolFC | pysollib/tk/tkstats.py | Python | gpl-3.0 | 40,666 | [
"CASINO"
] | cdd65bad2d3995e231db3d606437c596baa124f4913c44729eac1885fb99db95 |
"""
Create and put Requests to archive files.
**List of operations**
#. Optionally replicate files to SourceSE
#. ArchiveFiles: Create a tarball from input files, upload tarball to TarballSE
#. ReplicateAndRegister Tarball to TargetSE
#. Optionally: Add LFNs to an ArchiveSE
#. Optionally: Check for Tarball Migration... | yujikato/DIRAC | src/DIRAC/DataManagementSystem/scripts/dirac_dms_create_archive_request.py | Python | gpl-3.0 | 21,052 | [
"DIRAC"
] | 96751abfa6b42e66dd1efddd0cf04b8e92aae33e32459ad17f5860ca0e67e7a1 |
"""Base class for SOM and Neural Gas."""
import json
import logging
import time
import types
from collections import Counter, defaultdict
from typing import Callable, Dict, List, Optional, Tuple, TypeVar
import numpy as np
from tqdm import tqdm
from somber.components.utilities import shuffle, Scaler
from somber.compo... | stephantul/somber | somber/base.py | Python | mit | 19,473 | [
"NEURON"
] | 169dbd04dcd042390cddf31f56c167ec11913b5aea7b5cd2fb91546da1555018 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
=============================================================
Compare the effect of different scalers on data with outliers
=============================================================
Feature 0 (median income in a block) and feature 5 (number of households) of
the `... | vortex-ape/scikit-learn | examples/preprocessing/plot_all_scaling.py | Python | bsd-3-clause | 14,019 | [
"Gaussian"
] | 295b73f161fd2c84c297602cb17d3b9c18af53782e9112df499d6e72baf593a2 |
import cv2
import numpy as np
import sys
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.zeros((4... | HuimingCheng/AutoGrading | Test_code/differentVersion/v1.py | Python | mit | 20,872 | [
"Gaussian"
] | 3bb880271deccb220880508f04c9271c305478409da39988386b567dbd8e4c8f |
from setuptools import setup, find_packages
setup(name='pipeable',
version='1.0.3',
description='A utility for making Python scripts compatible with the | operator on the command line.',
author='Brian Budge',
author_email='budgebrian21@gmail.com',
url='https://github.com/budgebi/pipeable'... | budgebi/pipeable | setup.py | Python | mit | 520 | [
"Brian"
] | c587eb1094851ab6cc389feb8d821d991ce39d17823948eb2c8a79cbbc27a0db |
import decimal
import json
import networkx as nx
import re
from operator import itemgetter
from datetime import datetime, timedelta
from collections import defaultdict
from itertools import chain
from functools import partial
from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpRespon... | aschampion/CATMAID | django/applications/catmaid/control/skeleton.py | Python | gpl-3.0 | 71,881 | [
"NEURON"
] | c0acc1eaaf210f6a3d62d1b80726d26f3d4a557bb487c15b42c77777a66c8c01 |
"""
PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net)
Copyright (C) 2004-2015 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved,
Brett G. Olivier (bgoli@users.sourceforge.net)
Triple-J Group for Molecular Cell Physiology
Stellenbosch University, South Africa.
Permiss... | asttra/pysces | pysces/PyscesModelMap.py | Python | bsd-3-clause | 11,732 | [
"PySCeS"
] | 1031f7eaaa528e231082045a7862c400f6f9a47cdbc5dbe5a21fe9041df1043e |
# -*- coding: utf-8 -*-
"""ANTS Apply Transforms interface
Change directory to provide relative paths for doctests
>>> import os
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
>>> os.chdir(datadir)
"""
from __fu... | mick-d/nipype | nipype/interfaces/ants/resampling.py | Python | bsd-3-clause | 24,240 | [
"Gaussian"
] | dae0ea53939442b45a4ad13ab13dfca8807760e1d5c0d3124558c067053655d4 |
#!/usr/bin/python
#
# Copyright 2012 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 b... | nearlyfreeapps/python-googleadwords | examples/adspygoogle/adwords/v201109_1/basic_operations/add_text_ads.py | Python | apache-2.0 | 3,212 | [
"VisIt"
] | 6efb7eeb7247121a4ff7f9e4f1f1104c1ef44d04b99efba7134f5fe1ecf51bed |
import pytest
import sys
sys.path.append("../src/")
import cryspy
from cryspy.fromstr import fromstr as fs
import numpy as np
approxdelta = 0.00000001
def approx(x1, x2):
x1 = cryspy.numbers.Mixed(x1)
x2 = cryspy.numbers.Mixed(x2)
if isinstance(x1.value, float) or isinstance(x2.value, float):
retu... | tobias-froehlich/cryspy | tests/test_utils.py | Python | gpl-3.0 | 5,536 | [
"CRYSTAL"
] | e81c94a1a95434e98d44930102715bf44cff9a81f41ea101471654170fa2b412 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.