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 |
|---|---|---|---|---|---|---|---|
import os, sys
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
from CIP.logic.SlicerUtil import SlicerUtil
from CIP.ui import MIPViewerWidget
#
# CIP_MIPViewer
#
class CIP_MIPViewer(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available... | acil-bwh/SlicerCIP | Scripted/CIP_MIPViewer/CIP_MIPViewer.py | Python | bsd-3-clause | 2,847 | [
"VTK"
] | b5331c72df789e24d085436b2d5056ba3e41e6c08ba78502dad441f9681a4c4a |
# Version: 0.17
"""The Versioneer - like a rocketeer, but for versions.
The Versioneer
==============
* like a rocketeer, but for versions!
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and pypy
* [![Latest Version]
(http... | pelson/conda-build | versioneer.py | Python | bsd-3-clause | 68,591 | [
"Brian"
] | c528ddc8e3102908958198ec8ea28fa0c785755d33a50582a6bb094be4eb5586 |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | gkc1000/pyscf | pyscf/ccn/util.py | Python | apache-2.0 | 12,608 | [
"PySCF"
] | c26aefe4fcb30e8d89393c94529bc8ca057d39e6269eaf5b2b08088d8a6fe343 |
""" Utilities for WMS
"""
import io
import os
import sys
import json
from DIRAC import gConfig, gLogger, S_OK
from DIRAC.Core.Utilities.File import mkDir
def createJobWrapper( jobID, jobParams, resourceParams, optimizerParams,
extraOptions = '',
defaultWrapperLocation = '... | Andrew-McNab-UK/DIRAC | WorkloadManagementSystem/Utilities/Utils.py | Python | gpl-3.0 | 5,011 | [
"DIRAC"
] | 1d3928cae601bcbcdbebcc792be179f52c82bb48ab7736b9a303dc397c853de9 |
#!/usr/bin/python
# Robert Lindner
# Autonomous Gaussian Decomposition
# Standard Libs
import time
# Standard Third Party
import numpy as np
from scipy.interpolate import interp1d
# from scipy.optimize import leastsq, minimize
from lmfit import minimize as lmfit_minimize
from lmfit import Parameters
# import matplo... | gausspy/gausspy | gausspy/AGD_decomposer.py | Python | mit | 42,195 | [
"Gaussian"
] | c3fcece4a179f1451a632a57a1529379409ce721955d46425d643e7497c2a173 |
#####################################################################
# $HeadURL $
# File: ReqManagerHandler.py
########################################################################
"""
:mod: ReqManagerHandler
.. module: ReqManagerHandler
:synopsis: Implementation of the RequestDB service in the DISET framework
... | rajanandakumar/DIRAC | RequestManagementSystem/Service/ReqManagerHandler.py | Python | gpl-3.0 | 10,573 | [
"DIRAC"
] | 3f5701181fa5a6402000c6509ec8d0b8583a49492dd83ffca64683023b14e9c9 |
"""
Parser
~~~~~~~
Extension to ast that allow ast -> ipython nodebook code generation.
:copyright: Copyright 2016 by Ralph Goestenmeier
Based on the work of Armin Ronacher
https://github.com/andreif/codegen
:license: BSD.
"""
import os
import inspect
import ast
... | ipython-toolbox/nbconvert | pyparser.py | Python | mit | 27,283 | [
"VisIt"
] | 4e985c48a901dd3745820a07cb7c440ac3f4228ccd5b1742f38ab18f42b91ebf |
from ambition_rando.tests import AmbitionTestCaseMixin
from ambition_visit_schedule import DAY1
from django.test import TestCase, tag
from django.test.utils import override_settings
from edc_appointment.models import Appointment
from edc_base.utils import get_utcnow
from edc_metadata.tests import CrfTestHelper
from edc... | botswana-harvard/ambition-subject | ambition_subject/tests/test_natural_keys.py | Python | gpl-3.0 | 2,569 | [
"VisIt"
] | c9432c856ce661ec37ff658647366feaa11a471710c71031317867c4bef02388 |
import io
from subprocess import Popen, PIPE
import sys
import signal
from vcfkit import vk
from vcfkit.utils import *
from vcfkit.utils.blastn import blast
from Bio.Seq import Seq
from Bio.Restriction import AllEnzymes, CommOnly, RestrictionBatch
from clint.textui import colored, puts_err
signal.signal(signal.SIGINT, ... | AndersenLab/vcf-toolbox | vcfkit/utils/primer3.py | Python | mit | 6,564 | [
"BLAST"
] | 643728f3d95ff3a4f01dfb7b2a6fb91f43590f46dae2a6a735fed10af8cec3c4 |
#####################################################################
# Ryuretic: A Modular Framework for RYU #
# !/ryu/ryu/app/Ryuretic/Ryuretic_Intf.py #
# Authors: #
# Jacob Cox (jcox70@gatech.edu) ... | Ryuretic/RAP | ryu/ryu/app/Ryuretic/Ryuretic_Intf.py | Python | apache-2.0 | 30,518 | [
"VisIt"
] | 17a49a271857d605e557c51b23882630f3b6ad315953c89adb3d1f65df9a55a6 |
# -*- coding: utf-8 -*-
import os
import sys
import pickle
import matplotlib
matplotlib.use('Agg')
import numpy as np
from ase.data import atomic_numbers, atomic_names
from ase.atoms import string2symbols
from ase.data.molecules import rest
from ase.data.g2_1 import data as molecule_data
from gpaw.testing.atomizatio... | ajylee/gpaw-rtxs | doc/setups/make_setup_pages.py | Python | gpl-3.0 | 6,573 | [
"ASE",
"GPAW"
] | 63a2e35a05311b0ea40ab15ab27e9a050f36e7b18079ecd3fa474d57138cbcff |
import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
_srng = RandomStreams()
def log_loss(y, t, eps=1e-15):
"""
cross entropy loss, summed over classes, mean over batches
"""
y = T.clip(y, eps, 1 - eps... | yejingxin/kaggle-ndsb | nn_plankton.py | Python | mit | 16,516 | [
"Gaussian"
] | f4fa8a373fc823f8f5b15dddbce014877a6b184e8c0d22e6d62620e8b9eeb395 |
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''The 'grit build' tool along with integration for this tool with the
SCons build system.
'''
import codecs
import filecmp
import... | danakj/chromium | tools/grit/grit/tool/build.py | Python | bsd-3-clause | 20,563 | [
"xTB"
] | 69122c6b5fd8e176ade10d3e4050ead56b62a41052706dd412fe0150d785f2cb |
"""
To know more or get code samples, please visit my website:
https://morvanzhou.github.io/tutorials/
Or search: 莫烦Python
Thank you for supporting!
"""
# please note, all tutorial code are running under python3.5.
# If you use the version like python2.7, please modify the code accordingly
# 2 - Installation
"""
---... | tencrance/cool-config | ml_keras_learn/tutorials/kerasTUT/2-installation.py | Python | mit | 826 | [
"VisIt"
] | 5bc194de436235eee0da9602c92b47e4a0595d1856959aa998e6cd1f363224a2 |
# -----------------------------------------------------------------------
#
# < pyetree_user.py >
#
# -----------------------------------------------------------------------
# -----------------------------------------------------------------------
#
# File Name : pyetree_user.py
#
# Author... | josefgrosch/Pyetree | pyetree/PyetreeUser.py | Python | apache-2.0 | 28,629 | [
"MOOSE"
] | cf7b7cfd87279fb788a9f479ae878a7bb474fa80c0157d12f73c1a05d3e0a4f4 |
""" ExpandImports replaces imports by their full paths. """
from pythran.passmanager import Transformation
from pythran.utils import path_to_attr, path_to_node
from pythran.conversion import mangle
from pythran.syntax import PythranSyntaxError
from pythran.analyses import Ancestors
import gast as ast
class ExpandIm... | serge-sans-paille/pythran | pythran/transformations/expand_imports.py | Python | bsd-3-clause | 5,402 | [
"VisIt"
] | 07031366dba990678a6a1d61b230e98672be338402d58972f4d27768d74dde26 |
__all__ = [
'ExtractTopography',
]
__displayname__ = 'Subsetting'
import numpy as np
import vtk
from vtk.numpy_interface import dataset_adapter as dsa
import pyvista as pv
from .. import interface
from ..base import FilterBase
# NOTE: internal import - from scipy.spatial import cKDTree
######################... | banesullivan/ParaViewGeophysics | PVGeo/grids/subset.py | Python | bsd-3-clause | 8,722 | [
"ParaView",
"VTK"
] | 5b911f644eee8b70f4461d45265d66cc9ca9981fc6930cae66722fc052fb3f83 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/interaction/FENE.py | Python | gpl-3.0 | 4,457 | [
"ESPResSo"
] | b22c3743f1fb1d00219d3c9b073eb32b44006a7feaae9893a21e489b1712f7fa |
""" DowntimePolicy module
"""
from DIRAC import S_OK
from DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase import PolicyBase
class DowntimePolicy(PolicyBase):
"""The DowntimePolicy checks for downtimes, scheduled or ongoing, depending on the command parameters."""
@staticmethod
def _evaluate(commandRes... | DIRACGrid/DIRAC | src/DIRAC/ResourceStatusSystem/Policy/DowntimePolicy.py | Python | gpl-3.0 | 1,513 | [
"DIRAC"
] | 65001826c4f5ecd21263050f1f7807ec3a7ca684b6936450197548345ed315c1 |
# coding: utf8
"""Streamlink extracts streams from various services.
The main compontent of Streamlink is a command-line utility that
launches the streams in a video player.
An API is also provided that allows direct access to stream data.
Full documentation is available at https://streamlink.github.io.
"""
import ... | mmetak/streamlink | src/streamlink/__init__.py | Python | bsd-2-clause | 2,437 | [
"Brian"
] | 2b67c6188e312ec61a1608a4a14014e4b5423b6d5b6f23f6d404734e86a9f048 |
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import re
import socket
import sys
import time
import xml.etree.ElementTree
from ..compat import (
compat_cookiejar,
compat_http_client,
compat_urllib_error,
compat_urllib_parse_urlp... | fluks/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 38,144 | [
"VisIt"
] | 649975b64f3f62a66562873ced03948408cf7612be00eff17b25017133f49315 |
from recorder.bots import (
AccessFailedException,
InvalidPageNameException,
LoginFailedException,
)
from recorder.bots import RequestsConnector
from .parsers import (
extract_login_info,
extract_streaming_url,
check_login_error,
check_on_air_page
)
class BasePage(object):
pages = {
... | chwnam/almond-recorder | recorder/bots/mbc/pages.py | Python | mit | 2,533 | [
"VisIt"
] | 0d46390bdfacb13b2c5ca28dbffc4bccd42a60df51e341a83f2d9f6063eaa967 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
from os.path import getmtime, exists
import time
import types
import __builtin__
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheetah.Version import MinComp... | johm/infoshopkeeper | inventoryserver/CategoryEditTemplate.py | Python | gpl-2.0 | 6,731 | [
"VisIt"
] | d5fd4586694e158c1ae62ec4949516170ec4022a40dec07c1f617c99a111d486 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model
#
# Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada,
# Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez,
# Stefanie Pes... | openstreams/wflow | wflow/pcrglobwb/routing.py | Python | gpl-3.0 | 110,347 | [
"NetCDF"
] | 8e16f6b1e386cb285ae49e119713a51dd9f92c1d32e033ed6be527f911d95c58 |
#!/usr/bin/python
"""
Michael DeHaan <mdehaan@fedoraproject.org>, 2008
This software may be freely redistributed under the terms of the GNU
general public license.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass ... | ssalevan/cobbler | fedora_epel_push.py | Python | gpl-2.0 | 4,027 | [
"VisIt"
] | 660f424bdcbc8b503e4a3e9e732ece99243e6099dfcb2656685fdb82189bb01b |
# -*- coding: utf-8 -*-
"""
Visit https://pypi.python.org/pypi/django-split-settings
for more information.
"""
import io
from setuptools import setup
from split_settings import __version__
INSTALL_REQUIRES = ['Django>=1.5', ]
TESTS_REQUIRE = [
'six',
'pytest',
'pytest-env',
]
SETUP_REQUIRES = [
'p... | Charnelx/django-split-settings | setup.py | Python | bsd-3-clause | 2,122 | [
"VisIt"
] | f1a17fe4c3c5dd9db83e11c8f6cef427ad8b4fde2ee614d4d6cc8d3222dd9f45 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ProcessPoolExecutor.
The follow diagram and text describe the data-flow through the system::
|==================== In-process ====================|== Out-of-process ==|
+----------+ +-----... | joergdietrich/astropy | astropy/utils/compat/futures/process.py | Python | bsd-3-clause | 14,632 | [
"Brian"
] | c3110d4ecf23d41a94f6c4d39f29a085d7b904f3d9f4407b7413dda785e6aa90 |
# #
# Copyright 2013-2017 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (... | damianam/easybuild-framework | test/framework/options.py | Python | gpl-2.0 | 136,475 | [
"NetCDF"
] | c447f4f0841751624fbe490d110a5eb9a8d9e37cdb4aeea54e58f0912dbb01c8 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# this demonstrates appending data to generate an implicit model
lineX = vtk.vtkLineSource()
lineX.SetPoint1(-2.0,0.0,0.0)
lineX.SetPoint2(2.0,0.0,0.0)
lineX.Update()
lineY = vtk.vtkL... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Hybrid/Testing/Python/appendImplicitModel.py | Python | gpl-3.0 | 2,296 | [
"VTK"
] | b7b1dddd1b70847e4a44b312165a4d08e8df68d0f6c61f18f6bd20721b104552 |
import sys
import csv
from collections import namedtuple
from pysam import Samfile
Exon = namedtuple('Exon', 'name, chrom, start, end')
uniqSeqs = set([])
class Exon(object):
def __init__(self, chrom, start, end):
self.chrom = chrom
self.start = start
self.end = end
self.name = se... | likit/gimme | sandbox/pileup.py | Python | gpl-3.0 | 1,481 | [
"pysam"
] | a15995bbc592919ee358d2320bd13fe775c337bedd8586ad14ba0bb9235d30ba |
# Copyright (c) 2014, the GREAT3 executive committee (http://www.great3challenge.info/?q=contacts)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following conditions are met:
#
# 1. Redistributions of source code must retain... | lsst-dm/great3-public | metrics/g3metrics.py | Python | bsd-3-clause | 36,553 | [
"Galaxy"
] | a983ff19ddf532a7baf44e5c5b902d574e9985ec749f7137208ef36780af7e64 |
# Copyright 2017 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... | drpngx/tensorflow | tensorflow/contrib/data/python/kernel_tests/sql_dataset_op_test.py | Python | apache-2.0 | 25,425 | [
"MOE"
] | 983a1281c1dda3f8f59a656ba3cc2b6306cdb33226390cb8c6363afc52de7fff |
#!/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/MooseDocs/test/commands/test_check.py | Python | lgpl-2.1 | 5,506 | [
"MOOSE"
] | 96382216c0a364bae3fd0fd31c4f31b1a9c1263b2acb1afc7c696072d85a349b |
#!/usr/bin/env python
# Copyright (C) 2011-2012 CRS4.
#
# This file is part of Seal.
#
# Seal is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | QwertyManiac/seal-cdh4 | tests/run_py_unit_tests.py | Python | gpl-3.0 | 2,776 | [
"BWA"
] | 45bf8be77ce3b1c09f67ca9e9b64eafa56fe1298ab7eca578e64677781b9a808 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/coordinates/XDR.py | Python | gpl-2.0 | 10,744 | [
"Gromacs",
"MDAnalysis"
] | ee33eb293eeedb256f8048d1ec51f72dc15310bd6a833a222c62185e0b97ff55 |
#-------------------------------------------------------------------------------
# rbtlib: user.py
#
# User management.
#-------------------------------------------------------------------------------
# The MIT License (MIT)
# Copyright (c) 2016 Brian Minard
#
# Permission is hereby granted, free of charge, to any pers... | bminard/rbtlib | rbtlib/user.py | Python | mit | 2,124 | [
"Brian"
] | cc2e1ace6f4c7e084faf428347dd006f4c6e912b2619cb2ca0b73e436c6c97d3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Logistic function
=========================================================
Shown in the plot is how the logistic regression would, in this
synthetic dataset, classify values as either 0 or 1,
i.e. class one or tw... | lesteve/scikit-learn | examples/linear_model/plot_logistic.py | Python | bsd-3-clause | 1,571 | [
"Gaussian"
] | 4350831d85f60d0cb4385f9cdcf122e3646ea5c15f0a8f0421f2db9d5f62be8f |
#
# 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 n... | MBoustani/climate | ocw/dataset_processor.py | Python | apache-2.0 | 54,894 | [
"NetCDF"
] | fca930409b12a51a1e73b668e6fef04e64c3d8f56d40a90f27ec93cc49d2f9a4 |
# coding: utf8
from __future__ import unicode_literals
NOUNS_IRREG = {
"aa": ("aa",),
"abatis": ("abatis",),
"abattis": ("abattis",),
"abax": ("abax",),
"abcès": ("abcès",),
"abc": ("abc",),
"abducens": ("abducens",),
"abies": ("abies",),
"aboteaux": ("aboteau",),
... | recognai/spaCy | spacy/lang/fr/lemmatizer/_nouns_irreg.py | Python | mit | 242,338 | [
"COLUMBUS",
"FLEUR"
] | 43620f330ce287b1f94c76eb6d82534f5feef5fed88cd34a1644edc536ea3f95 |
# Copyright 2013 Mark Dickinson
#
# 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,... | mdickinson/refcycle | refcycle/test/test_directed_graph.py | Python | apache-2.0 | 10,632 | [
"VisIt"
] | 09c91fc16d7de3b2cbffd32ae17377052c4fc9e206ff1eaa4d6943a2246d3af7 |
import re
from urllib import parse, request
import xml.dom.minidom
from xml.etree import ElementTree
from .. import servertime
from ._exc import NoResult, ParsingError
SCHEME = 'https'
NETLOC = 'fumbbl.com'
PATH = '/xml:matches'
PARAMS = ''
FRAGMENT = ''
def geturl(*, match_id=None, coach_id=None, team_id=None,
... | FUMBBLPlus/fumbbl | fumbbl/datasource/xml_matches.py | Python | mit | 11,111 | [
"VisIt"
] | 8514309821c201b6432f1eaf82a784637368a6308d4a6ae0e5d370cdf4ae53a9 |
"""Guess the MIME type of a file.
This module defines two useful functions:
guess_type(url, strict=1) -- guess the MIME type and encoding of a URL.
guess_extension(type, strict=1) -- guess the extension for a given MIME type.
It also contains the following, for tuning the behavior:
Data:
knownfiles -- list of fil... | eBay/restcommander | play-1.2.4/python/Lib/mimetypes.py | Python | apache-2.0 | 18,777 | [
"NetCDF"
] | d51fffd85c571af777f1947b35b8b394dc534e2e9e83839f18bea07a84a67bd2 |
# -*- coding: utf-8 -*-
import ast
import base64
import csv
import functools
import glob
import itertools
import jinja2
import logging
import operator
import datetime
import hashlib
import os
import re
import simplejson
import sys
import time
import urllib2
import zlib
from xml.etree import ElementTree
from cStringIO ... | fdvarela/odoo8 | addons/web/controllers/main.py | Python | agpl-3.0 | 66,253 | [
"VisIt"
] | f722f4f9ec96a22ea96045478703b3a81e46445522a22b6d86d2a65cff61dae5 |
# Bookmark plugin for Exaile media player
# Copyright (C) 2009-2011 Brian Parma
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later... | sjohannes/exaile | plugins/bookmarks/__init__.py | Python | gpl-2.0 | 11,787 | [
"Brian"
] | e718a0c8ec5cefc54b622d8ad471097f0cbff1ab7344a4fbff4632d295e2a39d |
from scripts.db_shell import *
from galaxy.util.bunch import Bunch
from galaxy.security import GalaxyRBACAgent
from sqlalchemy.orm import sessionmaker
from sqlalchemy import *
import argparse
bunch = Bunch( **globals() )
engine = create_engine('postgres://galaxy:galaxy@localhost:5432/galaxy')
bunch.session = sessionmak... | erasche/docker-galaxy-stable | galaxy/create_galaxy_user.py | Python | mit | 1,819 | [
"Galaxy"
] | 0af6676cdc74f9b7c1d10dcc91903a4d4b92a223a017737e919935532f213c9a |
# This file is part of PyEMMA.
#
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER)
#
# PyEMMA is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either vers... | marscher/PyEMMA | pyemma/coordinates/clustering/tests/test_cluster.py | Python | lgpl-3.0 | 6,791 | [
"Gaussian"
] | 2dd9a4f51c2aeced1d84bc2a2585f901977b1efdd7b827a5a933cf6fc68b2925 |
# Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | rjschof/gem5 | src/python/m5/SimObject.py | Python | bsd-3-clause | 57,534 | [
"VisIt"
] | 287f5fac0eec40b9be3ae631f34c4586decc3c89e6cf691db5010146ac843009 |
#!/usr/bin/python
# Copyright (C) 2012,2013,2014,2015,2016 The ESPResSo project
# Copyright (C) 2011 Olaf Lenz
# Copyright 2008 Marcus D. Hanwell <marcus@cryos.org>
#
# 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 ... | KonradBreitsprecher/espresso | maintainer/git2changelog.py | Python | gpl-3.0 | 4,734 | [
"ESPResSo"
] | 36c276ac52ebb4f56a794b7c551709fd0fade7adc296d1f36b437a584a632844 |
"""
Manager and Serializer for Library Folders.
"""
import galaxy.web
from galaxy import exceptions
from galaxy.model import orm
import logging
log = logging.getLogger( __name__ )
# =============================================================================
class FolderManager( object ):
"""
Interface/ser... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/managers/folders.py | Python | gpl-3.0 | 8,796 | [
"Galaxy"
] | f8c4eacea1b7b9a073b76aa828b907b49bdc2d198f0d808bf6927cecdad1a04e |
#!/usr/bin/env python
"""
Process space telescope visits
2022 version with associations defined in the database in `assoc_table`
"""
import os
import glob
import numpy as np
from . import db
def s3_object_path(dataset, product='raw', ext='fits', base_path='hst/public/'):
"""
S3 path for an HST ``dataset``
... | gbrammer/grizli | grizli/aws/visit_processor.py | Python | mit | 47,443 | [
"VisIt"
] | eaac96bf348a87c966c2b8e79e47468d9b26d1251329bf7d8a1d2e74ea04c73d |
# -------------------------------------------------------------------------
# Name: Waterdemand modules
# Purpose:
#
# Author: PB, YS, MS, JdB
#
# Created: 15/07/2016
# Copyright: (c) PB 2016
# -------------------------------------------------------------------------
from cwatm.management_modules imp... | CWatM/CWatM | cwatm/hydrological_modules/water_demand/industry.py | Python | gpl-3.0 | 4,689 | [
"NetCDF"
] | 70a6c8193a56ef392c169bbc28cdd40b7151bbf0f3490b96c5490da61034de51 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-shell | tests/unit/gapic/shell_v1/test_cloud_shell_service.py | Python | apache-2.0 | 79,645 | [
"Octopus"
] | 47de0ee014daf8801b294935926c0e8d98bb7509168aa8114c36e4c05da45b7c |
import numpy as np
from mpi4py import MPI
import h5py
from dedalus import public as de
from dedalus.extras import flow_tools
import time
import argparse
import dedalus_plots as dp
import taufit
import matplotlib.pyplot as plt
from subprocess import call
def forcing(solver):
# if using dealiasing, it's impo... | jedman/dedalus-leakylid | dedalus_tausim_mpi.py | Python | gpl-2.0 | 10,296 | [
"Gaussian"
] | bcfc03763bdf6b1c5331f8694f034f87849884431d37e6105efd63351c869062 |
#### defines
cmd.bg_color('white')
cmd.set('sphere_transparency','0.3')
cmd.set("ray_orthoscopic", "on")
cmd.set("ignore_case", "0")
cmd.set("max_threads", "1") # parallelization is done externally
cmd.set_color("pred" ,[0.55, 0.00, 0.00])
cmd.set_color("pgreen",[0.00, 0.35, 0.00])
cmd.set_color("pblue" ,[0.00, 0.00... | propairs/propairs | bin/pm_complex.py | Python | gpl-2.0 | 8,449 | [
"Gaussian"
] | e7da3d225aeeedfa73ddd07323e211148a23a114931ef51c209157b027aa3c4e |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2004-2007 Donald N. Allingham
# Copyright (C) 2010 Brian G. Matherly
# Copyright (C) 2014 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | SNoiraud/gramps | gramps/gen/display/name.py | Python | gpl-2.0 | 45,922 | [
"Brian"
] | edd78d8c064c0dc3843e6c4540f8f5249a9898b1683e3c228d05947990ea630d |
#!/usr/bin/env python
import vtk
def get_program_parameters():
import argparse
description = 'Read a .stl file.'
epilogue = ''''''
parser = argparse.ArgumentParser(description=description, epilog=epilogue,
formatter_class=argparse.RawDescriptionHelpFormatter)
... | lorensen/VTKExamples | src/Python/IO/ReadSTL.py | Python | apache-2.0 | 1,242 | [
"VTK"
] | 9de9fc308cabdb75338f853ae33146178fe00a43902a388a19c3f03f64df8bda |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkStructuredPointsWriter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkStructuredPointsWriter.py | Python | bsd-3-clause | 516 | [
"VTK"
] | 9e7701f113318c2feb945128715f17551af8d37f89d6e726f494fb2358e2c8e0 |
from __future__ import absolute_import
import wx
from wx.lib.pubsub import pub
import matplotlib
from matplotlib.figure import Figure
from matplotlib.widgets import AxesWidget
try:
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
except IOError:
# on some linux installations this import needs to ... | Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/magic/view/phot_panel.py | Python | mit | 32,477 | [
"Gaussian"
] | b1b20ae4aff3dffa1dc142cb70621dcf6148fa35e32711eef3dcfcbc0c13eeaf |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
An interface to the excellent spglib library by Atsushi Togo
(http://spglib.sourceforge.net/) for pymatgen.
v1.0 - Now works with both ordered and disorde... | sonium0/pymatgen | pymatgen/symmetry/analyzer.py | Python | mit | 53,665 | [
"CRYSTAL",
"pymatgen"
] | eba9ceabefab8196afb8669f38c8f8cb14d786f5222455b0c69d170ff416c60f |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
import frappe.utils
from frappe.utils import cstr, flt, getdate, comma_and, cint
from frappe import _
from frappe.model.mapper import g... | rohitwaghchaure/digitales_erpnext | erpnext/selling/doctype/sales_order/sales_order.py | Python | agpl-3.0 | 19,541 | [
"VisIt"
] | 3050439266ba4970df2cbb5eadd3a75805b6b486dc882f8225db283df2085b79 |
#!/usr/bin/python
import httplib
import httplib2
import os
import random
import sys
import time
from apiclient.discovery import build
from apiclient.errors import HttpError
from apiclient.http import MediaFileUpload
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from oau... | pratikone/videoVenom | uploadvideo.py | Python | gpl-3.0 | 7,227 | [
"VisIt"
] | cdca7f8b118a5d05a8fd7bd56e303a896ade3f2b8661a4ccc1fd12b261338f44 |
# ----------
#
# In this exercise, you will add in code that decides whether a perceptron will fire based
# on the threshold. Your code will go in lines 32 and 34.
#
# ----------
import numpy as np
class Perceptron:
"""
This class models an artificial neuron with step activation function.
"""
def __i... | ZhukovGreen/UMLND | Lectures/perceptron.py | Python | gpl-3.0 | 1,631 | [
"NEURON"
] | 8a1bb9e562a4dbbc30c24fea0c6e5424f98e84ee2726803d2f42bf379f1dfc30 |
from __future__ import print_function
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.session import Session
from bokeh.models.widgets import (
VBox, Icon,
Button, Toggle, Dropdown,
CheckboxGroup, RadioGroup,
CheckboxButtonGroup, RadioButtonGroup,
)
document = Document... | rothnic/bokeh | examples/glyphs/buttons_server.py | Python | bsd-3-clause | 2,886 | [
"VisIt"
] | e389768f65ac5cb896a9d97faadc6bdaafa98c7525432770639dac13f8ed91c7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import numpy as np
from vasp.poscar_list import PoscarList
from phonopy.file_IO import parse_FORCE_CONSTANTS, write_FORCE_CONSTANTS
from phonopy.harmonic.force_const... | yuzie007/ph_analysis | ph_analysis/fc/fc_averager.py | Python | mit | 1,889 | [
"VASP",
"phonopy"
] | 42dd280c7cef253523a110a2157f9d9e4813a3a51a8729ea3dcb4600e31bd65b |
# Version: 0.18
"""The Versioneer - like a rocketeer, but for versions.
The Versioneer
==============
* like a rocketeer, but for versions!
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy
* [![Latest Version]
... | MOLSSI-BSE/basis_set_exchange | versioneer.py | Python | bsd-3-clause | 68,612 | [
"Brian"
] | 9f73ea625d0887c6e539dd7507cc0170992778bbd9c7a79d9f0488d4c651e981 |
"""
Acceptance tests for Content Libraries in Studio
"""
from ddt import ddt, data
from .base_studio_test import StudioLibraryTest
from ...fixtures.course import XBlockFixtureDesc
from ...pages.studio.auto_auth import AutoAuthPage
from ...pages.studio.utils import add_component
from ...pages.studio.library import Libr... | mtlchun/edx | common/test/acceptance/tests/studio/test_studio_library.py | Python | agpl-3.0 | 20,190 | [
"VisIt"
] | b4092ba75b2c673204c1483b898862f74fb64e52a927f7b099352a1353a4e17d |
import random
import numpy as np
from Neurons.Neurons import Sigmoid
from Neurons.exceptions import LayerError
def set_rand_weights():
return random.random()
def set_rand_bias():
return random.random()
class NeuronLayer:
def __init__(self, number=None, learning_rate=0.5):
self.number = numb... | juanpablos/CC5114-Projects | Class 02/src/Neurons/NeuronLayer.py | Python | mit | 3,329 | [
"NEURON"
] | 3174adb699aead77e40b9084341e6fa05d26610dcb145d67507db2e25863d941 |
import random
from rdkit import Chem
from rdkit.Chem.rdDistGeom import EmbedMolecule
class StereoEnumerationOptions(object):
"""
- tryEmbedding: if set the process attempts to generate a standard RDKit distance geometry
conformation for the stereisomer. If this fails, we assume that the stereo... | bp-kelley/rdkit | rdkit/Chem/EnumerateStereoisomers.py | Python | bsd-3-clause | 13,729 | [
"RDKit"
] | 7a316dda811080d40a9f49ca081bd20b58a187c968b41ab34a88d3a8953cd209 |
# 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
# d... | openstack/rally | tests/unit/test_test_ddt.py | Python | apache-2.0 | 1,479 | [
"VisIt"
] | 1ea5f49d98f999eb0f511c8def13904c3a117715856898599177523e4037560b |
# Copyright (c) 2016, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | wizmer/NeuroM | neurom/io/neurolucida.py | Python | bsd-3-clause | 9,996 | [
"NEURON"
] | b84b609d69cbb7ef40434b95095a0b80e612932738d561fcecf8ab59e053b7db |
#!/usr/bin/env python3
import sys
import os
import time
#variables for alphabetic characters
_a = 65
_z = 90
_A = 97
_Z = 122
#variables for accessing word_analysis list
WORDCOUNT = 0
LINENUMBERS = 1
IWORDINTEXT = 2
ICHARONLINE = 3
ICHARINTEXT = 4
#variables for user input options in text_step and word_step func... | KTRosenberg/Text-Analyzer-and-Step-through-Viewer | old_summer_2016/Text_Analyzer_Step_through_Viewer_main_2_2_char_at_a_time_question_mark.py | Python | mit | 48,324 | [
"VisIt"
] | 47990e25ca0976c646650bbc79b6767ad89160cb9a18748e7f66f8f420af2e83 |
#!/usr/bin/env python
# * **************************************************************** **
#
# File: hl_parser.py
# Desc: high-level language parsing for the token assembler
# Note:
#
# Author: Brian Danilko, Likeable Software (brian@likeablesoftware.com)
#
# Copyright 2006, 2014, 2016, 2017 Microbric Pty Ltd.
#
#... | Bdanilko/EdPy | src/lib/hl_parser.py | Python | gpl-2.0 | 14,952 | [
"Brian"
] | 0af5652fff23e1768e0d46b713fb66d1b41f1a77aac74bddef7da6d00879c987 |
#: Okay
class C:
def __init__(*args, **kwargs):
pass
#: N805:4:11
class C:
@decorator(
'a')
def m(cls, k='w'): # noqa: N805
pass
#: N805
class Foo(object):
def good(self, ads):
pass
def bad(ads, self):
pass
#: Okay
class Foo(object):
def __new__(cls):
... | flintwork/pep8-naming | testsuite/N805.py | Python | mit | 2,154 | [
"exciting"
] | 983016d9a4ba18a8616bec88006439eadc7588d1073a3323abf148c7fdaa038b |
"""
Tests BSE manip functions
"""
import os
import copy
import pytest
from basis_set_exchange import api, curate, manip, readers, sort
from .common_testvars import bs_names_sample, diffuse_augmentation_test_data_dir, steep_augmentation_test_data_dir, truhlar_test_data_dir, rmfree_test_data_dir
def _list_subdirs(pat... | MOLSSI-BSE/basis_set_exchange | basis_set_exchange/tests/test_manip.py | Python | bsd-3-clause | 5,001 | [
"NWChem"
] | 7f337b73ad5f256910e63695f37f5719cd2e91dd755ab19f883af205d659b001 |
'''
* Author: Lukasz Jachym
* Date: 9/14/13
* Time: 5:40 PM
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/.
'''
from collections import namedtuple
from brandi... | b1r3k/recruitment-challanges | data-hacking/src/task1/classifier/channel.py | Python | mit | 1,678 | [
"VisIt"
] | d78d6902826391e33d069c81b295af5d376fca42d6f16a12c239d107cf502272 |
import logging
import hashlib
import random
import re
from validate_email import validate_email
from askomics.libaskomics.ParamManager import ParamManager
from askomics.libaskomics.rdfdb.SparqlQueryAuth import SparqlQueryAuth
from askomics.libaskomics.rdfdb.QueryLauncher import QueryLauncher
from askomics.libaskomics.G... | ofilangi/askomics | askomics/libaskomics/Security.py | Python | agpl-3.0 | 14,012 | [
"Galaxy"
] | 61637f99b78b68d625c3fa1d6b2e666387a994ae13e5b334a494f73a279081f9 |
#!/usr/bin/env python
# Use 'distribute', a fork of 'setuptools'.
# This seems to be the recommended tool until 'distutils2' is completed.
# See: http://pypi.python.org/pypi/distribute
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
# Find the version from the package metadata.... | fictorial/pygameui | setup.py | Python | mit | 2,145 | [
"Brian"
] | cbf1b106239186573553597c306221920ac3e566f140a1ece601676227a4d43e |
#
# 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 | src/commoncode/testcase.py | Python | apache-2.0 | 14,662 | [
"VisIt"
] | a419baf410c2bad9fd1f510ff92b43d16ef11bf21b4c3e8b331b33ea95780be1 |
import numpy as np
from os import path
from mayavi.core.lut_manager import LUTManager
from cmmlib import cmm
from cmmlib.inout import load_mesh
from cmmlib.vis.weights import show_many_weights
experiments = [
('meshes/armadillo_61372.obj', [3, 7], 20.),
('meshes/elk.off', [3, 7], 20.),
]
results = []
for f... | tneumann/cmm | reproduce_fig8_segmentation.py | Python | gpl-2.0 | 1,594 | [
"Elk",
"Mayavi"
] | 586077dd3f69bf739cf87298e7eca9d251afd5b429b618804bf8cd3686295b7e |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | pkreissl/espresso | testsuite/scripts/tutorials/test_constant_pH__ideal.py | Python | gpl-3.0 | 1,722 | [
"ESPResSo"
] | 83978d680894db964f3677be1418ff5c36205c9187f929491ab9b757e71a6e39 |
# -*- coding: utf8 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part o... | skycucumber/Messaging-Gateway | webapp/venv/lib/python2.7/site-packages/zmq/tests/test_message.py | Python | gpl-2.0 | 12,281 | [
"Brian"
] | a99f60b37f4531fa5ca9bdaa403e477587aefe0cb2006e2ae60241705187fe20 |
# Copyright 2017 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... | Xeralux/tensorflow | tensorflow/contrib/py2tf/converters/name_scopes.py | Python | apache-2.0 | 1,831 | [
"VisIt"
] | efb53a08d4481b21da81dd1d9cf0c7d782d3d91e9272c11e047d6c75dbb42533 |
"""
Tools for different procedure estimations
"""
__author__ = "Luc Anselin luc.anselin@asu.edu, \
Pedro V. Amaral pedro.amaral@asu.edu, \
David C. Folch david.folch@asu.edu, \
Daniel Arribas-Bel darribas@asu.edu,\
Levi Wolf levi.john.wolf@gmail.com"
import numpy as np
from scipy impor... | lixun910/pysal | pysal/model/spreg/utils.py | Python | bsd-3-clause | 19,809 | [
"COLUMBUS"
] | 8226a7fedb2f4d5799d0f18ff0d407a4415a6dbd729f052b054c26add014431b |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2012 Andrew Starr-Bochicchio <a.starr.b@gmail.com>
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the... | dkavraal/typecatcher | typecatcher/html_preview.py | Python | gpl-3.0 | 5,738 | [
"Galaxy"
] | 01b563e9557c710b7b6f8d9e09f26dc1247b74e2ed5427399c8849f477d5f176 |
import unittest
import mdtraj as md
import numpy as np
from mastermsm.trajectory import traj_lib, traj
from mastermsm.msm import msm, msm_lib
from test.download_data import download_test_data
import os, pickle
# thermal energy (kJ/mol)
beta = 1./(8.314e-3*300)
class TestMSMLib(unittest.TestCase):
def test_esort(s... | daviddesancho/MasterMSM | mastermsm/test/test_msm.py | Python | gpl-2.0 | 22,250 | [
"MDTraj"
] | dd38b8865090d3552020e0f713ff701eb4439b51e12ef16095408aa14dd494c2 |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | SamStudio8/scikit-bio | skbio/util/_testing.py | Python | bsd-3-clause | 11,867 | [
"scikit-bio"
] | ceeb496faf8abf57f1116ab8617d812ee957766ef768309f22e4e17ffcf9f34e |
import getopt, os, sys, math
import numpy as np
from scipy.optimize import minimize
from matplotlib import pyplot as plt
def print_help():
print " This code analyzes pore structure of an MD structure in Gromacs format."
print " Usage:"
print " -f <input.gro> # input structure file, in .gro format"
prin... | kulasinski/porosity-tools | libs_porosity.py | Python | gpl-3.0 | 12,537 | [
"Gromacs"
] | 4f1274bc0f475fbe29906670027e7e330f7df425024214caa0a77a9954ee9c98 |
#!/usr/bin/env python3
import os
import argparse
import h5py
import sys
def main():
args = get_arguments()
print('\nLooking for fast5 files in: ' + args.dir, file=sys.stderr)
fast5_files = find_all_fast5s(args.dir)
print(' Found ' + int_to_str(len(fast5_files)) + ' reads\n', file=sys.stderr)
if... | rrwick/Fast5-to-Fastq | fast5_integrity_check.py | Python | gpl-3.0 | 2,305 | [
"VisIt"
] | ee13e904bf60dce679685ed20283dd4e16b59d2a69c0a3b5d2fe79608f45c2a5 |
from django.conf.urls import url
from pixelpuncher.location import views
urlpatterns = [
url(r'^visit/(?P<location_id>[\w.@+-]+)/$', views.visit_location, name="visit"),
url(r'^visit/home$', views.visit_home, name="home"),
url(r'^visit/(?P<location_id>[\w.@+-]+)/purchase/(?P<locationitem_id>[\w.@+-]+)$', ... | ej2/pixelpuncher | pixelpuncher/location/urls.py | Python | bsd-3-clause | 581 | [
"VisIt"
] | d29560240191324f8bcc3cf4ca4d197d2e2fe32c62c523b77aa0238939853971 |
# Copyright (c) 2016,2017,2018,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Contains a collection of generally useful calculation tools."""
import functools
from operator import itemgetter
import warnings
import numpy as np
from numpy.core... | Unidata/MetPy | src/metpy/calc/tools.py | Python | bsd-3-clause | 56,749 | [
"Brian"
] | 18392e2e54beca842d2375cc1bbc90a0ee17f6c034f68fc6943edaae95c1dcff |
# coding=utf-8
import etcd
import logging
from octopus import constant
from octopus import err
from octopus.util import tools
log = logging.getLogger(constant.LOGGER_NAME)
def watch(ec, service_name, timeout=None):
"""
用来监听服务的配置改变
:param ec:
:param service_name:
:param timeout:
:type ec: etc... | ideascf/octopus | proto/config_proto.py | Python | mit | 843 | [
"Octopus"
] | 94d2b465442ad0e507e3e6340dcd5bc64661efa48043c6a8b26a83668f2eef91 |
#!/usr/bin/env python
"""
LPU output visualization.
"""
import collections
from collections import OrderedDict
import itertools
import os
import matplotlib
from matplotlib import cm
from matplotlib.colors import Normalize
import matplotlib.pyplot as plt
plt.ioff() # interactive mode can interfere with frame updates
... | AdamRTomkins/libSpineML2NK | libSpineML2NK/utils/visualizer.py | Python | gpl-3.0 | 29,845 | [
"NEURON"
] | b17c9015d8ccce01b1f3df58d311b96e99d492c1ebc225cc1498505776b0a76c |
# 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... | airbnb/superset | superset/viz.py | Python | apache-2.0 | 104,323 | [
"VisIt"
] | 0519bd3260a6f355b2386c8cfe0a42e785c5a8d0fbd16e0421b3348f9127eea3 |
from bok_choy.page_object import PageObject, PageLoadError, unguarded
from bok_choy.promise import BrokenPromise, EmptyPromise
from .course_page import CoursePage
from ..common.paging import PaginatedUIMixin
from ...tests.helpers import disable_animations
from selenium.webdriver.common.action_chains import ActionChains... | solashirai/edx-platform | common/test/acceptance/pages/lms/edxnotes.py | Python | agpl-3.0 | 20,608 | [
"VisIt"
] | 0251eb36eb9dc26003256e92d34033142ed5144d98dbd176a25f75bfe47d467b |
# basic dependencies
import os
import sys
import subprocess
from glob import glob
import math
# main dependencies: numpy, nibabel, ants
import numpy
import nibabel
import ants
# nighresjava and nighres functions
import nighresjava
from ..io import load_volume, save_volume
from ..utils import _output_dir_4saving, _fna... | nighres/nighres | nighres/registration/embedded_antspy.py | Python | apache-2.0 | 69,805 | [
"Brian"
] | 0fa2a3c94b01be3668584bb15b99617d4685277fc7240d218f60c8e226e07772 |
# Copyright 2001 by Jeffrey Chang. 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.
"""Maximum Entropy code.
Uses Improved Iterative Scaling.
"""
# TODO Define terminology
from... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/MaxEntropy.py | Python | gpl-2.0 | 10,435 | [
"Biopython"
] | 8b9000acfb975df72bbd5bc567077c8da6b0d2e11cabb56d2ab6db5bdddbe65f |
########################################################################
# $HeadURL $
# File: RequestTaskTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/03/27 15:59:24
########################################################################
""" :mod: RequestTaskTests
=======================
.. m... | sposs/DIRAC | RequestManagementSystem/test/RequestTaskTests.py | Python | gpl-3.0 | 2,540 | [
"DIRAC"
] | ea875194c728ccfcdbc8b39ff992929af4b3498afe448825a1173fc157d85a93 |
#!/usr/bin/env python
'''
CCSD(T) does not have the interface to the geometry optimizer berny_solver.
You need to define a function to compute CCSD(T) total energy and gradients
then use "as_pyscf_method" to pass them to berny_solver.
See also examples/geomopt/02-as_pyscf_method.py
'''
from pyscf import gto
from py... | gkc1000/pyscf | examples/geomopt/13-ccsd_t.py | Python | apache-2.0 | 1,272 | [
"PySCF"
] | 08643a08bd569b1d06e0e7c452f060b27007f7a41b8ea02a3fd572b0982f4483 |
"""Python-social-auth pipeline functions.
For more info visit http://python-social-auth.readthedocs.org/en/latest/pipeline.html.
"""
from django.contrib.auth import get_user_model
User = get_user_model()
# pylint: disable=unused-argument
# The function parameters must be named exactly as they are below.
# Do not c... | edx/auth-backends | auth_backends/pipeline.py | Python | agpl-3.0 | 1,289 | [
"VisIt"
] | 245d7527311b9a4a63e25775591884730a40d49ecc2c3bd975c2a260602161c7 |
##############################################################################
# Copyright (c) 2013-2017, 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... | skosukhin/spack | var/spack/repos/builtin/packages/py-griddataformats/package.py | Python | lgpl-2.1 | 1,916 | [
"MDAnalysis"
] | e5ae3234b69780abd40bbe8948e7bc8d12e8e8ab7984c5cbceb76828cca6b68b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.