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 |
|---|---|---|---|---|---|---|---|
"""
=======================================
Signal processing (:mod:`scipy.signal`)
=======================================
Convolution
===========
.. autosummary::
:toctree: generated/
convolve -- N-dimensional convolution.
correlate -- N-dimensional correlation.
fftconvolve --... | DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/signal/__init__.py | Python | mit | 12,187 | [
"Gaussian"
] | ce68325603a675be795fb22285998c612add6330694510ff2ccfedbf17ba0343 |
# encoding: utf-8
"""
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
from __future__ import print_function
import os
import datetime
import numpy as np
# Need to adjust the date a bit due to ... | mandli/surge-examples | ike/setrun.py | Python | mit | 23,410 | [
"NetCDF"
] | 74f099627b5d837080fd85114785d2534a0308d3388c0b004d7322d189dcc787 |
# pylint: disable=C0111
# pylint: disable=W0621
import os
from lettuce import world, step
from nose.tools import assert_true, assert_in # pylint: disable=no-name-in-module
from django.conf import settings
from student.roles import CourseStaffRole, CourseInstructorRole, GlobalStaff
from student.models import get_user... | nanolearning/edx-platform | cms/djangoapps/contentstore/features/common.py | Python | agpl-3.0 | 13,058 | [
"VisIt"
] | 54b566321917d0530fa6927a0cf32c768fd80c45d1f36a27dac75d52692a231b |
import copy
import logging
import os.path
import re
from spitfire.compiler.ast import *
from spitfire.compiler.analyzer import *
from spitfire.compiler.visitor import print_tree
from spitfire.compiler.walker import flatten_tree
import __builtin__
builtin_names = vars(__builtin__)
class _BaseAnalyzer(object):
def _... | infin8/spitfire | spitfire/compiler/optimizer.py | Python | bsd-3-clause | 32,284 | [
"VisIt"
] | cb822d14d09643510356d3ca1505a22dc2487b1ceb3c936e7387a461096cac51 |
"""Test markdown and text widgets."""
# pylint: disable=redefined-outer-name,unused-argument,invalid-name
import time
import pytest
from bowtie import App
from bowtie.html import Markdown
from bowtie.control import Textbox
from bowtie.tests.utils import reset_uuid, server_check
reset_uuid()
mark = Markdown(
''... | jwkvam/bowtie | bowtie/tests/test_editor.py | Python | mit | 1,599 | [
"Bowtie"
] | 74426e8be1a8acf36051e0a24f472054f0a0def1c8de65ec418a6a433a76d00b |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Nick Hall
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of t... | beernarrd/gramps | gramps/gui/displaystate.py | Python | gpl-2.0 | 22,045 | [
"Brian"
] | 31bf44aedd8c2f09bb232095e0279fb3d35158edbb64fe1f1a76e26513d3c391 |
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock,
# Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern
# University.
#
# This file is part of Crunchberry Pie.
#
# Crunchberry Pie is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | brianboyer/newsmixer | pie/quips/templatetags/quips.py | Python | gpl-3.0 | 2,797 | [
"Brian"
] | da862740545ef303bca9714fcac0afacbe6e4c32e3a9da703e97c104d6917c2e |
from collections import namedtuple
from pysb import Monomer
from indra.sources.indra_db_rest.api import get_statements_by_hash
from indra.statements import *
from indra.assemblers.english.assembler import _assemble_agent_str, \
SentenceBuilder
from indra.assemblers.pysb.assembler import parse_identifiers_url
from ... | johnbachman/indra | indra/explanation/reporting.py | Python | bsd-2-clause | 11,309 | [
"Pybel"
] | 0cd2c18add3d44a6f30b4158450d7c502a73fb9a62a66b850471500783499abd |
# -*- coding:utf-8 mode:python; tab-width:4; indent-tabs-mode:nil; py-indent-offset:4 -*-
import sys
import argparse
import os
import glob
import stat
import pprint
try:
from ..sharedutilities import Utility
except ValueError:
if __package__ is None:
sys.path.append(os.path.dirname(os.path.dirname(os.pa... | mattbernst/polyhartree | chemnw/qacheck.py | Python | gpl-3.0 | 14,526 | [
"NWChem"
] | 220d670313732e610263c2ed0320de2420e509a8957f650c5fca067fe54b42cb |
#!/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/result_group/result_group.py | Python | lgpl-2.1 | 788 | [
"MOOSE"
] | d9894139555db18feb7958f1e560ea7d79e7f6fcce65fee461a0f6e0d4ea79f0 |
#!/usr/bin/env python3
# Project : From geodynamic to Seismic observations in the Earth's inner core
# Author : Marine Lasbleis
# Seismic properties of material as function of ka (adimensional frequency): P and S wave velocity and attenuation.
# Please refer to Calvet and Margerin 2008 (figures 3 and 4)
from __future... | MarineLasbleis/GrowYourIC | GrowYourIC/mineral_phys.py | Python | mit | 3,176 | [
"CRYSTAL"
] | 52ecd728e952684e89014ee1faedd32eee65f25244c52bf3aabed8dac5cd5adf |
# Copyright (c) 2009-2021 The Regents of the University of Michigan
# This file is part of the HOOMD-blue project, released under the BSD 3-Clause
# License.
"""Molecular Dynamics.
Perform Molecular Dynamics simulations with HOOMD-blue.
"""
from hoomd.md import angle
from hoomd.md import bond
from hoomd.md import co... | joaander/hoomd-blue | hoomd/md/__init__.py | Python | bsd-3-clause | 779 | [
"HOOMD-blue"
] | 74b2732d778f22767723d2f6c4f4c296571be4d62e06e6edf533dfae2b128968 |
# -*- coding: utf-8 -*-
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
# Copyright: (C) 2001 Centro de Pesquisas Renato Archer
# Homepage: http://www.softwarepublico.gov.br
# Contact: invesalius@cti.gov... | paulojamorim/invesalius3 | invesalius/data/viewer_slice.py | Python | gpl-2.0 | 61,062 | [
"VTK"
] | 95b7307ad1dfeae26039b60a029be0f70f55f2176d156b6aa90cb65d0f18ee1e |
"Helper to quickly build instruction's semantic side effects"
import inspect
import ast
import re
import miasm2.expression.expression as m2_expr
from miasm2.ir.ir import irbloc
class MiasmTransformer(ast.NodeTransformer):
"""AST visitor translating DSL to Miasm expression
memX[Y] -> ExprMem(Y, X)
... | kod3r/miasm | miasm2/core/sembuilder.py | Python | gpl-2.0 | 10,921 | [
"VisIt"
] | 3ccc66533b574ea6a08cda90fce3eaaad29c20b9447127c883a1e02631e0cdcd |
import tornado.ioloop
import tornado.web
import string
import random
"""
This script redirects all requests to a SMB server (Redirect to SMB)
Developed by Brian Wallace @botnet_hutner
"""
class RedirectAll(tornado.web.RequestHandler):
def get(self):
self.set_status(302, "Found")
self.redirect("fi... | CylanceSPEAR/SMBTrap | smbtrap/redirect_server.py | Python | mit | 1,559 | [
"Brian"
] | a54a0adf925c459558510a56aa146357a1af2d94fd03eeb6dccd1ef1fbe1a5e1 |
"""
visualization of netCDF data
"""
from matplotlib import pyplot as plt
from matplotlib import colors
# from matplotlib.patches import Polygon
import matplotlib.patches as mpatches
import cartopy.feature as cfeature
import cartopy.crs as ccrs
from cartopy.util import add_cyclic_point
# from flyingpigeon.nc_statisti... | bird-house/flyingpigeon | flyingpigeon/plt_ncdata.py | Python | apache-2.0 | 29,740 | [
"NetCDF"
] | 8dcaf53a5cb9b66336184eebb1f959edf4eb6b942fef9a3dce06b1aa3c9d5992 |
import random
import getopt
import sys
import errno
import base64
optlist, args = getopt.getopt(sys.argv[1:], '?c:w:dhob6ks:X:N:', ["help"])
if len(args) > 0:
sys.stderr.write("%s: Error: Unexpected command line argument '%s'.\n" % (sys.argv[0], args[0]))
sys.exit(errno.EINVAL);
FMT_DEC = 0
... | mearns/winbin | rand.py | Python | gpl-3.0 | 4,077 | [
"Brian"
] | 4adc36339942b5f833f717a98fe943a12a8f22e2c03c91ac1aba30884aa885e6 |
from openpiv.lib import replace_nans
import numpy as np
from scipy.signal import convolve
"""The openpiv.filters module contains some filtering/smoothing routines."""
__licence_ = """
Copyright (C) 2011 www.openpiv.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GN... | OpenPIV/openpiv-python | openpiv/filters.py | Python | gpl-3.0 | 4,760 | [
"Gaussian"
] | c36044bbfc4a6946f6607dbb117e9df8229d26a37ee51e1d2413fe451f0e3de2 |
# Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
import sys
from . import sigtools
from ._upfirdn import _UpFIRDn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
from scipy import f... | Gillu13/scipy | scipy/signal/signaltools.py | Python | bsd-3-clause | 96,375 | [
"Gaussian"
] | 425f07aafe9db6b9f713961ff78c124dde2fb0bbc83c761f7bb1b9677ff32ea9 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
"""
Colour ℓ2-TV Denoising
======================
This example demonstrates the use of class :class:`.tvl2.TVL2Den... | alphacsc/alphacsc | alphacsc/other/sporco/examples/scripts/tv/tvl2den_clr.py | Python | bsd-3-clause | 2,725 | [
"Gaussian"
] | 4beb2d5a68f1b52a164704d05878433c3c1ca205f6f32fa3bbf3b794b709bf69 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views import defaults as default_views
from django.views.generic import TemplateView
urlpat... | 9XD/9XD | config/urls.py | Python | mit | 1,977 | [
"VisIt"
] | c0e46e262f3b277da33c476fb7222bd0a2d2aadf52c0fb9513aa83bcb0e28c85 |
#!/usr/bin/env python 3
from accessoryFunctions.accessoryFunctions import MetadataObject
from geneseekr.geneseekr import GeneSeekr
from geneseekr.blast import BLAST
import multiprocessing
from glob import glob
from time import time
import pytest
import os
test_path = os.path.abspath(os.path.dirname(__file__))
__autho... | OLC-Bioinformatics/pythonGeneSeekr | tests/test_tblastn.py | Python | mit | 7,491 | [
"BLAST"
] | 5536105adb271ab712502cf8c20f1520c494346943f2616e5c994bc6ffe9aca6 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | pcm17/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/graph_io.py | Python | apache-2.0 | 33,733 | [
"VisIt"
] | 48e0f72941dba7155cf2dfc28e5e50575f0f29108402bb58e6a89657d4a29f9a |
"""
This is the boilerplate default configuration file.
Changes and additions to settings should be done in the config module
located in the application root rather than this config.
"""
config = {
# webapp2 sessions
'webapp2_extras.sessions': {'secret_key': '_PUT_KEY_HERE_YOUR_SECRET_KEY_'},
# webapp2 au... | shupelneker/gae_new_structure | boilerplate/config.py | Python | lgpl-3.0 | 4,639 | [
"VisIt"
] | 053de85e9564a0fabcc0406dcd83fe15297bbcdd8f6751b1e316ed587d598022 |
""" DRMAA2 Python language binding.
This is the public interface to be used by applications.
For further information, please visit drmaa.org.
"""
from enum import Enum
from collections import namedtuple
from abc import ABCMeta, abstractmethod
# Implementation-independent constants
HOME_DIR = "$DRMAA2_HOME_... | troeger/drmaa2-python | drmaa2/__init__.py | Python | apache-2.0 | 24,787 | [
"VisIt"
] | f2ba5fdeb045c8fc9cfec8eee423aef0d23ff7c43538aabca4597127358d02ee |
# Jython Database Specification API 2.0
#
# $Id: sptest.py,v 1.3 2001/12/29 07:16:55 bzimmer Exp $
#
# Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com>
from zxtest import zxCoreTestCase
class OracleSPTest(zxCoreTestCase):
def setUp(self):
zxCoreTestCase.setUp(self)
c = self.cursor()
try:
try:
c.... | ai-ku/langvis | jython-2.1/Lib/test/zxjdbc/sptest.py | Python | mit | 6,218 | [
"Brian"
] | 0a2e1a15adad49097d53534c48a08b87e6363fc40301ca79c2eae963d727cfd9 |
from bs_utils.utils import *
import re
BAM_MATCH = 0
BAM_INS = 1
BAM_DEL = 2
BAM_SOFTCLIP = 4
CIGAR_OPS = {'M' : BAM_MATCH, 'I' : BAM_INS, 'D' : BAM_DEL, 'S' : BAM_SOFTCLIP}
def N_MIS(r,g):
mismatches = 0
if len(r)==len(g):
for i in xrange(len(r)):
if r[i] != g[i] and r[i] != "N" and g[... | BioInfoTools/BSVF | bin/BSseeker2/bs_align/bs_align_utils.py | Python | lgpl-3.0 | 13,956 | [
"Bowtie"
] | f5b96b370c54f5bc1219ca21ee164ab609ff6898c4eb40424e0199220337a744 |
from __future__ import division, print_function
import logging
import theano
import numpy
import cPickle
from theano import tensor
from collections import OrderedDict
from blocks.graph import ComputationGraph
from blocks.filter import VariableFilter
from blocks.bricks.base import application, _Brick, Brick, lazy
fro... | Philip-Bachman/Sequential-Generation | BlocksModels.py | Python | mit | 107,039 | [
"Gaussian"
] | 3d4be2a0b3bcce7ff60ad7fca947a40abe9cc6d8bc135e6a270383c94a8244f0 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | lavalamp/test-infra | hack/verify_boilerplate.py | Python | apache-2.0 | 6,981 | [
"VisIt"
] | c7d747e099db5519842d530dbfad5e8272650f3f82b97547ca938ae3179ff9cb |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Perform DNA-DNA alignment using BLAST, NUCMER and BLAT. Keep the interface the
same and does parallelization both in core and on grid.
"""
import os.path as op
import sys
import shutil
import logging
from maize.utils.cbook import depends
from maize.apps.base import s... | orionzhou/robin | apps/align.py | Python | gpl-2.0 | 12,128 | [
"BLAST"
] | ab216df9b2df022f0eaff7024dd3b845103f3dcaa45aeebe8ebcba4b280dcc63 |
# -*- coding: utf-8 -*-
# ***********************************************************************
# Copyright (C) 2016 - 2017 Oscar Gerardo Lazo Arjona *
# 2017 Benjamin Brecht *
# <oscar.lazoarjona@physics.ox.ac.uk> *
... | oscarlazoarjona/quantum_memories | quantum_memories/misc.py | Python | gpl-3.0 | 47,012 | [
"Gaussian",
"ORCA"
] | 985a3280e559f5365932f89e127fe62794ea78972155034e35602fd7fedab7b3 |
########################################################################
# File: FileCatalogProxyClient.py
########################################################################
""" File catalog client for the File Catalog proxy service """
from DIRAC.Core.Base.Client import Client
class FileCatalogProxyClient(obje... | DIRACGrid/DIRAC | src/DIRAC/Resources/Catalog/FileCatalogProxyClient.py | Python | gpl-3.0 | 1,328 | [
"DIRAC"
] | 8db9c4c8f35ce22896bb9c15b059405eefe6fac871671cbe67ec6a6128bb1ebb |
# Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved.
#!@@PYTHON@@
#------------------------------------------------------------------------
# Copyright (c) 1998 by Total Control Software
# All Rights Reserved
#-----------------------------------------------------... | shotgunmm/cloudband-dev | test/fcgi/fcgi.py | Python | gpl-2.0 | 15,059 | [
"TINKER"
] | 3537dc85d10e8ce7b5a2b5441d24f7aee4dfba8a65b750167fbec43e3d12b04f |
# -*- coding: utf-8 -*-
"""
Created on Fri May 06 14:54:11 2016
@author: Alexander Weaver
"""
"""
Performs an affine (fully connected) operation on its input
An affine layer with out_dim neurons takes a data array of size Nx(in_dim), x
and returns a linearly transformed Nx(out_dim) data array
The transformation resul... | alexweav/Learny-McLearnface | LearnyMcLearnface/Layers/AffineLayer.py | Python | mit | 1,928 | [
"Gaussian"
] | cf5250a552474eb2e7e0e0e467cfc2214f3e41c94acb535c26229452f76fca57 |
# pylint: disable=missing-docstring
from lettuce import world, step
from lettuce.django import django_url
import time
@step('I register for the course "([^"]*)"$')
def i_register_for_the_course(_step, course):
url = django_url('courses/%s/about' % world.scenario_dict['COURSE'].id.to_deprecated_string())
worl... | solashirai/edx-platform | lms/djangoapps/courseware/features/registration.py | Python | agpl-3.0 | 2,318 | [
"VisIt"
] | ec03fdf281d12a0cb6776c10c8e5045a63d718dabb851d6e8f795ced3b4b25eb |
"""Creates various plots for Balrog validation testing.
To run: $python ms_plotter.py base_path_to_catalogs output_directory realization tile
Example: $python ms_plotter.py /data/des71.a/data/kuropat/des2247-4414_sof/y3v02/ /Users/mspletts/BalValPlots/ all DES2247-4414
Relies on ms_matcher. User may need to replace ... | sweverett/Balrog-GalSim | plots/ms_plotter.py | Python | mit | 106,291 | [
"Galaxy"
] | 49e6079b5cd19d5be226fcb61acf7ddfca17d6404f26d1b827359102ff2c0d94 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RZlibbioc(RPackage):
"""An R packaged zlib-1.2.5.
This package uses the source cod... | rspavel/spack | var/spack/repos/builtin/packages/r-zlibbioc/package.py | Python | lgpl-2.1 | 1,083 | [
"Bioconductor"
] | bef5fb86a2485915e090173a8608cec1f4985d4347fefe9ab1ad0d079c5a67b6 |
currencies=['CHF', 'EUR', 'USD', 'GBP']
descriptions=[
("Cafe", 2.0),
("Pizza Margherita", 15.0),
("Pizza Napoli", 17.0),
("Hamburger", 10.0),
("Flight to Toronto", 1500.0),
("Flight to New York", 1300.0),
("Flight to Pistoia", 500.0),
("Flight to Lugano", 400.0),
("Flight to Tokyo"... | adunicorn/prototypes | apps/Loader/app/generate_random_transactions.py | Python | gpl-2.0 | 2,148 | [
"CASINO"
] | d74c4d9462c87bfd7dfd1b83bd3a5402f02f2eb53e5930f3f3c329e62c9a0838 |
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | jbedorf/tensorflow | tensorflow/python/tpu/tensor_tracer.py | Python | apache-2.0 | 63,384 | [
"VisIt"
] | 79cfa1fd4349da9f0be1ed7bdac25163a3285f8eff6d7b60f6190f4c79523702 |
"""This module contains the "Viz" objects
These objects represent the backend of all the visualizations that
Superset can render.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
import hashlib
import l... | massgov/incubator-superset | superset/viz.py | Python | apache-2.0 | 54,564 | [
"VisIt"
] | 6743072fcccf82afba3024be947a8569e9467ec1cab15a5d48ffb7f86d4aff5b |
#!/usr/bin/env/ python -W ignore
# -*- coding: utf-8 -*-
"""
Gaussian Mixture Model for clustering types of Twitter accts by
using python scikit-learn (sklearn) GaussianMixture class.
(gmm)
refr: https://brilliant.org/wiki/gaussian-mixture-model/
libr: http://scikit-learn.org/stable/modules/generated/sklearn.mixture.G... | zafargilani/stcs | lib/clustering/gmm.py | Python | gpl-3.0 | 2,963 | [
"Gaussian"
] | 0256e6c4f5e2827b7fbc46e79d9fb4febc759922eaf70ba2ccb1b3786024363b |
#-------------------------------------------------------------------------------
# Cloud-COPASI
# Copyright (c) 2013 Edward Kent.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0
# which accompanies this distribution, and is available... | edkent/cloud-copasi | cloud_copasi/web_interface/views.py | Python | gpl-3.0 | 7,944 | [
"COPASI"
] | 1aef8505cba003752ef57d6180536e79d0e15b014809109a8677b691a032ac7c |
#!/usr/bin/env python
########################################################################
# $HeadURL$
########################################################################
""" Enable using one or more Storage Elements
"""
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.Core.Base import Script
read = True
write = Tr... | calancha/DIRAC | DataManagementSystem/scripts/dirac-admin-allow-se.py | Python | gpl-3.0 | 7,121 | [
"DIRAC"
] | ed4c1aa5080a8ac39d292e1a63dc12838d3025a796abb3af0bcb7e3998ed3b94 |
#!/usr/bin/env python
# File created on 21 Mar 2012
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso", "Jai Ram Rideout"]
__license__ = "GPL"
__version__ = "1.8.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporas... | wasade/qiime | qiime/workflow/pick_open_reference_otus.py | Python | gpl-2.0 | 47,980 | [
"BLAST"
] | 1a0db617ff31eca6ec1bed23bb6c9e13585bb7ed774c78654a3d6a70625979a6 |
# Copyright (C) 2010-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | mkuron/espresso | samples/visualization_mmm2d.py | Python | gpl-3.0 | 2,549 | [
"ESPResSo"
] | 9b283c82fa320329781c7a9eb108610745fbe301088752f8d7aeec8f4bcad9fc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Mesh Preview Generator.
Examples
--------
$ ./script/gen_mesh_prev.py meshes/2d/
"""
from __future__ import print_function
from __future__ import absolute_import
from argparse import ArgumentParser, RawDescriptionHelpFormatter
import sys
sys.path.append('.')
import os... | vlukes/sfepy | script/gen_mesh_prev.py | Python | bsd-3-clause | 3,477 | [
"VTK"
] | 47840c549655b692d05d911872c0fa88d173ebb20ad6fdcb3b5ee9f2b9fc7ac7 |
# -*- coding: utf-8 -*-
# Copyright 2007-2022 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at y... | jat255/hyperspy | hyperspy/io_plugins/netcdf.py | Python | gpl-3.0 | 6,700 | [
"NetCDF"
] | 063882373fba44701cf29d35cac0b74b4551a69f7616787fd52508105dcc9f53 |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2000-2008 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
# Copyright (C) 2008 Robert Cheramy <robert@cheramy.net>
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you ca... | sam-m888/gprime | gprime/plugins/export/exportpkg.py | Python | gpl-2.0 | 7,280 | [
"Brian"
] | cbef2eda0d1e45a1872926f7ddb0b51031b93687fc8e8e632f471cb3dcaa062c |
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | pivotal-energy-solutions/django-company-registration | setup.py | Python | apache-2.0 | 8,396 | [
"VisIt"
] | 77e9a8dae680e43a7305fcbcbdcabba1c12ec5b5eeb4ea9f71bcd1405fad885e |
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | shakamunyi/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/gaussian_conjugate_posteriors_test.py | Python | apache-2.0 | 4,289 | [
"Gaussian"
] | 54caf013d3618fd39089dfa190dff950fd7e5fa3b9c9cd597e6c7023db64e1da |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 OpenStack Foundation
# 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.a... | ntt-sic/nova | nova/tests/compute/test_resource_tracker.py | Python | apache-2.0 | 38,724 | [
"exciting"
] | 570c2f3449a5739e84331366a51d27f43edbbc3f9a8de13d99191a889dd58803 |
from ase import Atom, Atoms
from ase.calculators.lj import LennardJones
from ase.constraints import FixBondLength
dimer = Atoms([Atom('X', (0, 0, 0)),
Atom('X', (0, 0, 1))],
calculator=LennardJones(),
constraint=FixBondLength(0, 1))
print(dimer.get_forces())
print(dimer.posit... | suttond/MODOI | ase/test/dimer.py | Python | lgpl-3.0 | 554 | [
"ASE"
] | 17a5b9295f404e2c508da23732d87d92e8fa6a5414afdfe80b97fe20432cac1a |
# Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# _generate_pyx.py to generate the docstrings for the ufuncs in
# scipy.special at the C level... | matthew-brett/scipy | scipy/special/_add_newdocs.py | Python | bsd-3-clause | 242,325 | [
"Gaussian"
] | 69a3fb0398a75b17d6092644e4d7c6229ead948c36b30a005c939345f475365c |
# *******************************************
# Copyright 2010-2013, Anthony Hand
#
# File version 2013.09.25 (September 25, 2013)
# Updates:
# - Corrected a bug in detectTierIphone(). A 'self' reference had been forgotten.
#
# File version 2013.07.13 (July 13, 2013)
# Updates:
# - Added suppor... | alsocollective/ewings_rally | application/rally_for_the_cure/mobileesp/mdetect.py | Python | gpl-2.0 | 32,695 | [
"Galaxy"
] | 989b93c91132ee769ed6f41059e4319a6c9970cf2ce7223f94b25389abba6c16 |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from urlparse import urljoin
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth import logout, authen... | 10clouds/edx-platform | common/djangoapps/student/views.py | Python | agpl-3.0 | 103,142 | [
"VisIt"
] | 46f9aef9490581965376e449f2d7b5769ca87a64c5a99a273375c1d5f0461505 |
#!/usr/bin/env python
from __future__ import print_function
from builtins import input
import sys
import numpy
import pmagpy.pmag as pmag
def main():
"""
NAME
incfish.py
DESCRIPTION
calculates fisher parameters from inc only data
INPUT FORMAT
takes inc data
SYNTAX
in... | Caoimhinmg/PmagPy | programs/incfish.py | Python | bsd-3-clause | 1,761 | [
"Gaussian"
] | 68ef1ef85d2ee0575781b0ee8a6cdd370c0c288f8122ef9f92ecab65abedb9c6 |
# TODO list for this module:
# - define and implement type coercion when types are not matching
# - What types do we use, Python types? special types so that we can mark out
# 8-bit, 16-bit, etc. numeric types? How can we then make sure that
# operations work the same when run in Python and in the assembled version... | Jokymon/hpcs | annotators.py | Python | gpl-3.0 | 6,616 | [
"VisIt"
] | 8bbfbb2eb9722f2ee2e7272c2739298b2a0257794c43bc609eb333e832386176 |
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
SIZE_RANGES = ... | alexlo03/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 118,054 | [
"VisIt"
] | 23d3acadd2c7b4483875c3d541a480642c8e4bfe3fe4380f696836d78de65f3a |
"""Unit test for util.py"""
import pysal
from pysal.common import *
import pysal.weights
import numpy as np
from scipy import sparse, float32
from scipy.spatial import KDTree
import os
import gc
class Testutil(unittest.TestCase):
def setUp(self):
self.w = pysal.rook_from_shapefile(
pysal.examp... | AlanZatarain/pysal | pysal/weights/tests/test_util.py | Python | bsd-3-clause | 7,386 | [
"COLUMBUS"
] | 48786cd9e41f606fb73250c7a16b2631f543a76cbd2260fb08598eb98ef99362 |
from ..log_utils import logger
try:
from ._ffi_xcursors import ffi
except ImportError:
raise ImportError("No module named libqtile.core._ffi_xcursors, be sure to run `./scripts/ffibuild`")
# Stolen from samurai-x
# (Don't know where to put it, so I'll put it here)
# XCB cursors doesn't want to be themed, lib... | flacjacket/qtile | libqtile/core/xcursors.py | Python | mit | 4,799 | [
"FLEUR"
] | 1ca781b130ddaef4ab142cbbaa020c8842788ed0f4afbb81817870040f790235 |
"""ETL pipeline for project 'eurominder'
"""
from __future__ import absolute_import
from builtins import zip
from builtins import range
from os import path
import luigi
import pandas as pd
from sqlalchemy.orm.exc import NoResultFound
import sqlalchemy as sa
import pygeoj
from . import models
from ozelot import clien... | trycs/ozelot | examples/eurominder/eurominder/pipeline.py | Python | mit | 32,131 | [
"NetCDF"
] | 7d2ecaf88923cc70654d4973ca48caf630abe6daa7b788eb67bfa09b034d626e |
from collections import OrderedDict
import logging
import os
import simtk.unit as units
from intermol.utils import which, run_subprocess
from intermol.gromacs.gromacs_parser import load, save
GMX_PATH = ''
logger = logging.getLogger('InterMolLog')
def binaries(gmxpath, gmxsuff):
"""Locate the paths to the bes... | ctk3b/InterMol | intermol/gromacs/__init__.py | Python | mit | 5,739 | [
"Gromacs"
] | 8a1bdcc37519d4a75e21be8fa1b7b2c5f1a7bfd9042ce1e7e3a4de049f5d6e66 |
#!/usr/bin/env python
"""
Add files to an existing transformation
Usage:
dirac-transformation-add-files TransID <LFN | fileContainingLFNs>
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import os
import DIRAC
from DIRAC.Core.Base ... | yujikato/DIRAC | src/DIRAC/TransformationSystem/scripts/dirac_transformation_add_files.py | Python | gpl-3.0 | 1,568 | [
"DIRAC"
] | 4a1366d512dc3fd78f51474c0683e8e71fb2534054ecd64de878e3e1d7c28831 |
import os
import datetime
from zipfile import ZipFile
from billy.scrape.votes import VoteScraper, Vote
class NCVoteScraper(VoteScraper):
jurisdiction = 'nc'
def scrape(self, chamber, session):
# Unfortunately, you now have to request access to FTP.
# This method of retrieving votes needs to b... | showerst/openstates | openstates/nc/votes.py | Python | gpl-3.0 | 4,963 | [
"Brian"
] | 40e4abd69b40aa96046bb80613d1bda44110ba7cf92de2c90ca8ff4492b48e90 |
#!/usr/bin/env python
#============================================================================
# P Y I B E X
# File : test_thickPaving.py
# Author : Benoit Desrochers
# Copyright : Benoit Desrochers
# License : See the LICENSE file
# Created : Dec 28, 2015
#====... | benEnsta/pyIbex | pyibex/tests/test_thickPaving.py | Python | lgpl-3.0 | 3,335 | [
"VisIt"
] | c8f1c617d9c34ee3c6c216bd9681ca18d5a984962e53dced2a1fb60e81d7f50a |
"""
Find Black Hole apparent horizons in an axisymmetric spacetime.
===============================================================
Black holes are usually described by their *horizon* enclosing the singularity.
Locating any horizon in a general (typically numerically generated) spacetime
can be very hard - see Thornb... | IanHawke/findhorizon | findhorizon/findhorizon.py | Python | unlicense | 30,220 | [
"Mayavi"
] | 3769a1031f6daa3f62c01015ec738ddd5333bce44d88e5ed03fb30762954093a |
# 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: UnreliableHandicapper.py,v 1.9 2003/02/09 17:52:13 zooko Exp $"
# pyutil modules
from pyutil.humanre... | zooko/egtp_new | egtp/UnreliableHandicapper.py | Python | lgpl-2.1 | 1,753 | [
"VisIt"
] | 8d8765970e71335ab0be2e6c58858a7c6e462fec55cd1bae7720c23a2e1626e2 |
# A replacement for the wrapper for the CCP4 program MTZDUMP using CCTBX
# to access the file directly.
from __future__ import annotations
import copy
import os
from iotbx import mtz
class Mtzdump:
"""A class to give the same functionality as the wrapper for the CCP4
MTZDUMP program."""
def __init__(... | xia2/xia2 | src/xia2/Modules/Mtzdump.py | Python | bsd-3-clause | 3,626 | [
"CRYSTAL"
] | 904cad10cb6f1ac06780fb54ac721f140f346b7026f07838fa8426b2abb5b574 |
# Copyright (c) 2013-2015 Unidata.
# Distributed under the terms of the MIT License.
# SPDX-License-Identifier: MIT
from __future__ import print_function
import logging
log = logging.getLogger("siphon.metadata")
log.setLevel(logging.WARNING)
class _SimpleTypes(object):
def __init__(self):
self._valid ... | MoonRaker/siphon | siphon/metadata.py | Python | mit | 25,906 | [
"NetCDF"
] | 19c9c61515b4b75a26aba4018fd5502d06973b323b7b22622745903f0a4fb830 |
#!/usr/bin/env python
import numpy
from pyscf import gto
from pyscf import scf
from pyscf import mcscf
def run(b, mo0=None, dm0=None):
mol = gto.Mole()
mol.build(
verbose = 5,
output = 'o2rhf-%3.2f.out' % b,
atom = [
['O', (0, 0, b/2)],
['O', (0, 0, -b/2)],],
... | gkc1000/pyscf | examples/mcscf/61-rcas_vs_ucas/o2-scan.py | Python | apache-2.0 | 2,483 | [
"PySCF"
] | 2928fce54765420403292c8d3dea5173063309cb292a156067e1a54e1e35233e |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the LMS Instructor Dashboard.
"""
import time
from flaky import flaky
from nose.plugins.attrib import attr
from bok_choy.promise import EmptyPromise
from ..helpers import UniqueCourseTest, get_modal_alert, EventsTestMixin
from ...pages.common.logout import LogoutPage
... | nanolearningllc/edx-platform-cypress | common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py | Python | agpl-3.0 | 29,511 | [
"VisIt"
] | 23990943ce56745041d949c339ef118472ed431a79664cb77490fa50c7037ba2 |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Eric Martin <eric@ericmart.in>
# License: BSD 3 clause
from itertools import chain, combina... | anurag313/scikit-learn | sklearn/preprocessing/data.py | Python | bsd-3-clause | 57,350 | [
"Gaussian"
] | 38723d19c89d42178dd66f0d12788b81851cc395d9e80e05e51ba2f0c457572f |
#!/usr/bin/env python3
__author__ = 'Sushain K. Cherivirala, Kevin Brubeck Unhammer'
__copyright__ = 'Copyright 2014--2021, Sushain K. Cherivirala, Kevin Brubeck Unhammer'
__credits__ = ['Sushain K. Cherivirala', 'Kevin Brubeck Unhammer', 'Jonathan North Washington', 'Shardul Chiplunkar', 'Daniel Swanson']
__license__... | goavki/bootstrap | main.py | Python | gpl-3.0 | 19,576 | [
"VisIt"
] | 15aaff12d9e4743df2347a3dc6dac6af7227516fd56793ece45791f1e9174a06 |
# -*- coding: latin-1 -*-
import os
from random import randrange
print "Bienvenue au Casino LOL"
reponse_ok=False
argent=0
reponse=raw_input("Voulez vous jouer une partie ? Taper O pour Oui N pour Non. ")
while reponse_ok == False :
reponse_traiter= reponse.lower()
if reponse_traiter=="o":
print "la p... | Jaypeto/Kzino | casino.py | Python | gpl-2.0 | 2,970 | [
"CASINO"
] | 7e1a9f0c8a2de93a58d19f7a23b82df034f7c7efced373cc0804e5c53f5bdf9a |
"""
Acceptance tests for Studio related to the acid xblock.
"""
from bok_choy.web_app_test import WebAppTest
from ...pages.studio.auto_auth import AutoAuthPage
from ...pages.studio.overview import CourseOutlinePage
from ...pages.xblock.acid import AcidView
from ...fixtures.course import CourseFixture, XBlockFixtureDes... | ahmadiga/min_edx | common/test/acceptance/tests/studio/test_studio_acid_xblock.py | Python | agpl-3.0 | 6,909 | [
"VisIt"
] | a65e72a9726da64205eb1aa9ac59df09a6fa9f684ffdca90da08ac91f4989ed3 |
__author__ = 'twisa'
from bcd.entity import ENTITIES, Entity
from bcd.calibration import GaussianCalibrator, StudentTCalibrator
from bcd.discounter import SimpleDiscounter
from bcd.bcdpricer import BCDPricer
from numpy import array, arange
from math import ceil
from datetime import datetime
def get_no_of_periods(del... | neotrinity/cqf | bcd/__init__.py | Python | mit | 1,754 | [
"Gaussian"
] | 295e5ef164ee3bd15f5b69e3ef34cf9e7140bf6ab3c93ae81291f6ee9da86c0d |
# Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this ... | olivernina/idropout | layer.py | Python | mit | 63,500 | [
"Gaussian",
"NEURON"
] | 304846502acabcbc8f0ace2b2c05d12e7eee60ffff38dacd654519730e5df8df |
import abc
import time
from copy import copy
from typing import List, Set
import rdkit.rdBase as rkrb
import rdkit.RDLogger as rkl
from minedatabase.pickaxe import Pickaxe
logger = rkl.logger()
logger.setLevel(rkl.ERROR)
rkrb.DisableLog("rdApp.error")
class Filter(metaclass=abc.ABCMeta):
"""Abstract base clas... | JamesJeffryes/MINE-Database | minedatabase/filters/base_filter.py | Python | mit | 10,813 | [
"RDKit"
] | 84a92383c525055a12845752d16654e8d74fb10cbe2418559e39d1c38576fb28 |
"""
Routines analyzing dependencies (class and module) in Python source.
"""
import os
import sys
import ast
import time
import __builtin__
import cPickle
import networkx as nx
from openmdao.util.fileutil import find_files, get_module_path, find_module
#from openmdao.util.log import logger
# This is a dict containi... | HyperloopTeam/FullOpenMDAO | lib/python2.7/site-packages/openmdao.util-0.13.0-py2.7.egg/openmdao/util/dep.py | Python | gpl-2.0 | 18,429 | [
"VisIt"
] | 6c058b4544c092bce6f43e70fb3d6dd92833a8d780d5f4d00e3b4d9f76e7842c |
#
# mainTab
#
tab = self.notebook.mainTab
tab.settings['Program'] = 'abinit'
tab.settings['Output file name'] = 'BaTiO3.out'
#
# SettingsTab
#
tab = self.notebook.settingsTab
tab.settings['Eckart flag'] = False
tab.settings['Neutral Born charges'] = False
tab.settings['Sigma value'] = 5
tab.settings['Mass definition'] ... | JohnKendrick/PDielec | Examples/AbInit/BaTiO3/script.py | Python | mit | 1,921 | [
"ABINIT"
] | c99d6a0b4d61680edb1dbb517e66a2e9d86fc4aa33084afe6a24d08c2dc61c06 |
import numpy as np
from ase.lattice import bulk
from ase.optimize import BFGS
from ase.io import PickleTrajectory
from ase.constraints import StrainFilter
from gpaw import GPAW, PW
co = bulk('Co')
co.set_initial_magnetic_moments([1.6, 1.6])
co.calc = GPAW(mode=PW(700),
xc='PBE',
kpts=(... | robwarm/gpaw-symm | gpaw/test/big/stress/co.py | Python | gpl-3.0 | 716 | [
"ASE",
"GPAW"
] | ec09010fff0404aca5bdb758075b1a07a5b1b04f643d49848f751aa4bea8fb96 |
# Copyright (C) 2013 Oskar Maier
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in ... | lfrdm/medpy | medpy/io/save.py | Python | gpl-3.0 | 12,228 | [
"VTK"
] | 7349216bbaf053232af26c6aae7f67db7ceb6096ed6e9052406eef680c7f5cdb |
from __future__ import print_function
import pylab as plt
import numpy as np
from astrometry.util.plotutils import dimshow
from legacypipe.survey import get_rgb, tim_get_resamp
from legacypipe.coadds import quick_coadds
def fitblobs_plots_2(blobs, refstars, ps):
plt.clf()
dimshow(blobs>=0, vmin=0, vmax=1)
... | legacysurvey/pipeline | py/legacypipe/runbrick_plots.py | Python | gpl-2.0 | 19,237 | [
"Galaxy"
] | 54cbe85b7e70aeb140b4b8e466bde371633e898799a53ed9964a3023ec95760e |
# This script is part of pymaid (http://www.github.com/schlegelp/pymaid).
# Copyright (C) 2017 Philipp Schlegel
#
# 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 3 of ... | schlegelp/pymaid | pymaid/tiles.py | Python | gpl-3.0 | 42,031 | [
"NEURON"
] | 818e450d39eb03dc93bd402d1ad31ef124277c0fa66fce0c4ec5f16d9df469d7 |
import os
import re
import subprocess
from setuptools import setup, find_packages
MAJOR = 0
MINOR = 6
MICRO = 0
IS_RELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
# When installation takes place inside a READTHEDOCS build
# we need to set zip_safe = False
on_rtd = os.environ.get('READTHEDOCS') == 'Tru... | simphony/simphony-mayavi | setup.py | Python | bsd-2-clause | 3,661 | [
"Mayavi"
] | e83d9811f18dd99ebff41922b67bea78fa8a10760bcbff542bcb871a5d86f065 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | e-gob/plataforma-kioscos-autoatencion | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_hardwaresecuritymodulegroup.py | Python | bsd-3-clause | 3,496 | [
"VisIt"
] | 84629025350653d6308960e03fb7b4a56f3f2ef07698c788190238c2fbe98a5f |
# -*- coding: utf-8 -*=
import math
import numpy as np
import director.vtkAll as vtk
from director.debugVis import DebugData
class RaySensor(object):
"""Ray sensor."""
def __init__(self, num_rays=16, radius=40, min_angle=-45, max_angle=45):
"""Constructs a RaySensor.
Args:
num_... | anassinator/dqn-obstacle-avoidance | sensor.py | Python | mit | 4,329 | [
"VTK"
] | ae1982f2ed2ef80bc6fb710f371e7d922fb0974bb31f8155f37f35dea88337d6 |
## INFO ########################################################################
## ##
## Python and Cython Syntax Highlighters ##
## ===================================== ... | evhub/python | src/common.py | Python | gpl-3.0 | 33,936 | [
"VisIt"
] | 80fe691b83222ef88a69b6dbf1a8a69eff8cb1b0212c9ddfeab6405f8574ae5f |
# function.py ---
#
# Filename: function.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Tue Sep 9 17:59:50 2014 (+0530)
# Version:
# Last-Updated: Sun Dec 20 00:02:50 2015 (-0500)
# By: subha
# Update #: 4
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
... | BhallaLab/moose-examples | snippets/function.py | Python | gpl-2.0 | 6,612 | [
"MOOSE"
] | e2a98e300e14699f7e30e4a3634e3cb8888e6a599dc4c90b221bd891b88e9890 |
#
# Copyright 2013 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | morrisonwudi/zipline | tests/test_perf_tracking.py | Python | apache-2.0 | 77,177 | [
"COLUMBUS"
] | 1238fda0403af318a84524d0fef2c1f439ff06e61308e4a7027425dca69f4f87 |
#Python script using youtube API for liking video
#!/usr/bin/python
import httplib2
import os
import sys
from apiclient.discovery import build
from apiclient.errors import HttpError
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from oauth2client.tools import argparser, ... | dasdhrub95/cmn-198-youtube | yt_api_like_video_ex.py | Python | mit | 3,049 | [
"VisIt"
] | 54883ee9e830909232431c71af6fdff4a4076b9e4bda8d9518bcf046807d99e1 |
####################Drug Half-life Prediction ############################
#Author:Mengyuan Zhu, Binghe Wang
#Email: mzhu7@gsu.edu
#Department of Chemistry
#Georgia State University
#Usage: python t_half.py filename
##########################################################################
import numpy
from sklearn.ex... | MengyuanZhu/PK_predict | t_half.py | Python | gpl-2.0 | 1,391 | [
"Pybel"
] | 859de57bdf68847e081b1fd90543c4f86091be53a53dd2eab6b13523ba0900b8 |
"""Utilities to assist with commerce tasks."""
import json
import logging
from urllib.parse import urlencode, urljoin
import requests
import waffle
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.utils.translation import ugettext as _
from o... | eduNEXT/edunext-platform | lms/djangoapps/commerce/utils.py | Python | agpl-3.0 | 15,601 | [
"VisIt"
] | ba883a1514a312d2f83dc808a25adccb0b45edb98a971c231adaf69bcb3555a1 |
import hashlib
import json
from sys import version_info
IS_PY3 = version_info[0] >= 3
if IS_PY3:
from urllib.parse import quote
else:
from urllib import quote as _quote
def quote(x):
if isinstance(x, unicode):
x = x.encode('utf8')
return _quote(x)
import requests
from fds.auth.common import Commo... | XiaoMi/galaxy-fds-sdk-python | fds/galaxy_fds_client.py | Python | apache-2.0 | 71,610 | [
"Galaxy"
] | 2b73778835f5c8d01582ce3a6d7bf39e833ffdeed8dc6484dc39d0779d89f305 |
"""Functions for converting to and from xarray objects
"""
from collections import Counter
import numpy as np
import pandas as pd
from .coding.times import CFDatetimeCoder, CFTimedeltaCoder
from .conventions import decode_cf
from .core import duck_array_ops
from .core.dataarray import DataArray
from .core.dtypes impo... | pydata/xarray | xarray/convert.py | Python | apache-2.0 | 9,642 | [
"NetCDF"
] | 8266b7879c197fed89f38d6e60481873239eb8126c01b83f9f465280fefd7896 |
# this program corresponds to special.py
### Means test is not done yet
# E Means test is giving error (E)
# F Means test is failing (F)
# EF Means test is giving error and Failing
#! Means test is segfaulting
# 8 Means test runs forever
### test_besselpoly
### test_mathieu_a
### test_mathieu_even_coef
##... | nvoron23/scipy | scipy/special/tests/test_basic.py | Python | bsd-3-clause | 121,709 | [
"Elk"
] | 7795bbf4e992beed3e6293f9a9c7f05eea229b7350cdaa01c890014015de43bb |
from EXOSIMS.Prototypes.BackgroundSources import BackgroundSources
import os, inspect
import numpy as np
import astropy.units as u
from scipy.interpolate import griddata
class GalaxiesFaintStars(BackgroundSources):
"""
GalaxiesFaintStars class
This class calculates the total number background sources... | dsavransky/EXOSIMS | EXOSIMS/BackgroundSources/GalaxiesFaintStars.py | Python | bsd-3-clause | 2,881 | [
"Galaxy"
] | b70ad0072126fe18df03d1e3ce5caabdc20c601029475c9deb5baaf82f9f2c32 |
# 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... | mkuron/espresso | testsuite/scripts/tutorials/test_04-lattice_boltzmann_part1.py | Python | gpl-3.0 | 1,197 | [
"ESPResSo"
] | e4a4e976a5724f21c01f62c66a9b6b2681f7dcdfcf8fb4df03c6f788aeabe2b7 |
"""
1D Kriging
==========
An example of 1D kriging with PyKrige
"""
import os
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
# Data taken from https://blog.dominodatalab.com/fitting-gaussian-process-models-python/
X, y = np.array([[-5.01, 1.06], [-4.90, 0.92], [-4.82, 0.35], [-4.69, 0.4... | rth/PyKrige | examples/kriging_1D.py | Python | bsd-3-clause | 2,650 | [
"Gaussian"
] | 50dd27a701567599e7d3999fabc884b5ff57dc2b56088c5bfd03f00cba859db8 |
def block(ch):
'''
Return the Unicode block name for ch, or None if ch has no block.
>>> block(u'a')
'Basic Latin'
>>> block(unichr(0x0b80))
'Tamil'
>>> block(unichr(0xe0080))
'''
assert isinstance(ch, unicode) and len(ch) == 1, repr(ch)
cp = ord(ch)
for start, end, name in _blocks:
if st... | grantdelozier/TopoCluster | scripts/UnicodeBlocks.py | Python | apache-2.0 | 6,596 | [
"FEFF"
] | a0edb5697595fa1dd151eec50e139c260090d87b585d2bafed3dddf3e5a8229a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.