text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# coding=utf-8
from splinter import Browser
import unittest
from google.appengine.ext import testbed
browser = Browser()
class StaticPagesTest(unittest.TestCase):
def setUp(self):
global browser
self.tb = testbed.Testbed()
self.tb.activate()
self.tb.init_memcache_stub()
def t... | iandouglas/flask-gae-skeleton | tests/integration/static/test_social_google_plus.py | Python | mit | 720 | [
"VisIt"
] | e101ce31f55aff106cbc42100f66d4307d3d3ab404a8a50f4ec3195ca11b2de6 |
# -*- coding: utf-8 -*-
"""
This file contains the Qudi logic which controls all pulsed measurements.
Qudi 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 ... | childresslab/MicrocavityExp1 | logic/pulsed_measurement_logic.py | Python | gpl-3.0 | 55,754 | [
"Gaussian"
] | 67b2f375896abe5270e8c0e8134c5f8061cf6a274af963150431091f9aa93488 |
#
#
# This source file is part of ELINA (ETH LIbrary for Numerical Analysis).
# ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich
# This software is distributed under GNU Lesser General Public License Version 3.0.
# For more information, see the ELINA project website at:
# http://elina.ethz.ch
#... | eth-srl/OptOctagon | python_interface/fppoly.py | Python | apache-2.0 | 36,322 | [
"NEURON"
] | eb20508c70f61b9343370cac848425e3787d28d0c451167bf95a79b641d44324 |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Accuracy of DFT analytical nuclear gradients may be affected by the treatments
of numerical integration. Dense grids or the response of grids can be used to
improve accuracy of DFT nuclear gradients results.
'''
from pyscf import gto, dft
mol... | gkc1000/pyscf | examples/grad/02-dft_grad.py | Python | apache-2.0 | 1,854 | [
"PySCF"
] | b6264328ae8d32b81684e1a1286526f9b5eaf86c6f1d92ab4ea042d2e601833f |
import binascii
from glob import glob
import inspect
from importlib import import_module
import mimetypes
import os
import os.path as op
from aston.cache import cache
# File types from http://en.wikipedia.org/wiki/Mass_spectrometry_data_format
# and http://www.amdis.net/What_is_AMDIS/AMDIS_Detailed/amdis_detailed.ht... | bovee/Aston | aston/tracefile/mime.py | Python | bsd-3-clause | 4,241 | [
"NetCDF"
] | 6fd4dc421e556abae67a257806c405bf2af6727704e01818885da8e6b9fbc029 |
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import gtk
from dialog import Template
from zeroinstall.gtkui import help_box
from zeroinstall.injector.model import network_levels
from zeroinstall.injector import trust, gpg
from freshness import freshness_levels, F... | pombredanne/zero-install | zeroinstall/0launch-gui/preferences.py | Python | lgpl-2.1 | 6,702 | [
"VisIt"
] | 45c3227552c02409ee82f3fddb565d6f998cc4ae4957937c194684d5ff91f2e5 |
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Utilities for handling, displaying and exporting Phylo trees.
Third-party libraries ... | blab/nextflu | augur/src/bio_draw.py | Python | agpl-3.0 | 10,239 | [
"Biopython"
] | c7ee338c3fe4fc5b246def6c2a854d2a887a2ab56bcb2a519dcaac7152cf889a |
""" IPython extension module for Pylada. """
from IPython.core.magic import magics_class, line_magic, Magics
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to
# make it e... | pylada/pylada-light | src/pylada/ipython/magics.py | Python | gpl-3.0 | 5,467 | [
"CRYSTAL",
"VASP"
] | a26a06f775af73c72d1ce6892e029f3f2cbd872de450bea566c2d079e6d4d78d |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
__author__ = 'Brian Quinlan (brian@sweetapp.com)'
import collections
import logging
import threading
import time
FIRST_COMPLETED = 'FIRST_COMPLETED'
FIRST_EXCEPTION = 'FIRST_EXCEPTION'
ALL_COMPLETED = 'ALL_COMPLETED... | kenshay/ImageScript | Script_Runner/PYTHON/Lib/concurrent/futures/_base.py | Python | gpl-3.0 | 21,346 | [
"Brian"
] | 8c0de63bd0498a5761b5cde144754431cb5eb3473fdade818c15b8282032d236 |
from django.db import models
from django.db.models.deletion import PROTECT
from edc_base.model_fields.custom_fields import OtherCharField
from edc_base.model_managers import HistoricalRecords
from edc_base.model_mixins import BaseUuidModel
from edc_base.model_validators import date_not_future
from ..managers import Cur... | botswana-harvard/ambition-subject | ambition_subject/models/week4.py | Python | gpl-3.0 | 2,896 | [
"VisIt"
] | 87e6fc5796bd197b04bed0749e281cc64d593d583bd10ebb636fd8618624d472 |
"""Functions to draw a caffe NetParameter protobuffer.
"""
from caffe.proto import caffe_pb2
from google.protobuf import text_format
import pydot
import os
import sys
# Internal layer and blob styles.
LAYER_STYLE = {'shape': 'record', 'fillcolor': '#6495ED',
'style': 'filled'}
NEURON_LAYER_STYLE = {'shape': ... | feidie/caffe_windows | python/caffe/drawnet.py | Python | bsd-2-clause | 2,717 | [
"NEURON"
] | f0384bcb14136a3d78c38367a74b5a444681ce18873224e70c9583348a705114 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | browseinfo/odoo_saas3_nicolas | addons/project/project.py | Python | agpl-3.0 | 69,698 | [
"VisIt"
] | 7ead25c1c4785e52c060231f2263cbd3a3fc40b902816ab280bb72e95efda360 |
# Copyright (C) 2020 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... | espressomd/espresso | testsuite/scripts/samples/test_dancing.py | Python | gpl-3.0 | 2,183 | [
"ESPResSo"
] | 5f5bf1215fd3deb5b4fe8f62353963b188956749402524240de1281505191a0d |
__author__ = 'stonerri'
'''
This code acts as the application's primary controller, and provides links to the following:
'''
import tornado.escape
import tornado.ioloop
import tornado.options
import tornado.web
import tornado.websocket
import tornado.autoreload
from redis import Redis
from rq import Queue
imp... | richstoner/tornado-application-framework | app/app.py | Python | mit | 8,728 | [
"VisIt"
] | 96e818272b110ee32dbe89d7cb562d10e801de33f4c0c1495b6b6a95d9078225 |
import numpy as np
import glob, pickle
import os,inspect,sys
try:
libpath=os.environ['SESNPATH']
except KeyError:
print "must set environmental variable SESNPATH"
sys.exit()
cmd_folder = os.path.realpath(libpath+"/SESNCFAlib")
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder)
cmd_fo... | fedhere/SESNCfAlib | testcode.py | Python | mit | 1,769 | [
"Galaxy"
] | 72acdcd56c93574eb0f31b5ce2c21e5fb83ae1715d14899ed79d9c7d2e4f5263 |
"""
A simple test of stills refinement using fake data.
Only the crystal is perturbed while the beam and detector are known.
"""
from __future__ import annotations
def test(args=[]):
# Python and cctbx imports
from math import pi
from cctbx.sgtbx import space_group, space_group_symbols
# Symmetry ... | dials/dials | tests/algorithms/refinement/test_stills_refinement.py | Python | bsd-3-clause | 7,750 | [
"CRYSTAL"
] | 4a465e1d46dd350b5bc16f910192ef0c9193d256f1179d546de647f2e6f51c96 |
import ast
from .base import BaseAnalyzer, Result, DeprecatedCodeVisitor
DESCRIPTION = """
``{name}`` function has been deprecated in Django 1.3 and will be removed in
1.5.
"""
class GenericViewsVisitor(DeprecatedCodeVisitor):
interesting = {
'django.views.generic.simple': ['direct_to_template', 'redi... | beni55/djangolint | project/lint/analyzers/generic_views.py | Python | isc | 2,232 | [
"VisIt"
] | 9a8e9e544ab07acaf5a7595d23f18354b13040a016b2bd042d3cdabead86e4d7 |
import logging
import shutil
from dipy.core.gradients import gradient_table
from dipy.io.gradients import read_bvals_bvecs
from dipy.io.image import load_nifti, save_nifti
from dipy.denoise.nlmeans import nlmeans
from dipy.denoise.localpca import localpca, mppca
from dipy.denoise.gibbs import gibbs_removal
from dipy.... | FrancoisRheaultUS/dipy | dipy/workflows/denoise.py | Python | bsd-3-clause | 11,981 | [
"Gaussian"
] | 1091ff5877f99ed492766ccdf37d272f8e14de716c16f06a6ddadb2711f67476 |
""" DIRAC File Catalog components
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
| yujikato/DIRAC | src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/__init__.py | Python | gpl-3.0 | 147 | [
"DIRAC"
] | 9256c03eecfccff47fafe55b5db887b4be774da743b80c527289fff75e6423b8 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
from eight.puzzle import Puzzle
class TestPuzzle(unittest.TestCase):
def test_str(self):
puzzle = [[2, 3, 1], [5, 4, 6], [0, 8, 7]]
expected = "2 3 1\n5 4 6\n0 8 7"
ep = Puzzle(puzzle)
... | ymyzk/8puzzle | tests/puzzle.py | Python | mit | 1,929 | [
"EPW"
] | 864c18fba849c38d1500f28291e45f700e395479e906aa024cc5455fe8f35e0c |
import src
class RipInReality(src.items.Item):
"""
ingame item that teleports the character to a dungeon or within a dungeon
"""
type = "RipInReality"
def __init__(self,rootRip=None,treasure=None):
"""
configuration of the superclass
"""
super().__init__(... | MarxMustermann/OfMiceAndMechs | src/itemFolder/dungeon/ripInReality.py | Python | gpl-3.0 | 14,308 | [
"CRYSTAL"
] | 3dabd19e74c59f3f82ff4fbd0545b52e7ad113599ccb69d1f135f216ab2414ee |
"""
This file is part of the private API. Please do not refer to any variables defined here directly as they will be
removed on future versions without warning.
"""
# This will eventually be replaced with a call at torchvision.datasets.info("imagenet").categories
_IMAGENET_CATEGORIES = [
"tench",
"goldfish",
... | pytorch/vision | torchvision/prototype/models/_meta.py | Python | bsd-3-clause | 28,875 | [
"ESPResSo",
"Jaguar"
] | 7eaa5e401b1ff441186e602943c4342cac8cf7f505c238ab7882399b00dbc096 |
import operator
from ..node import NodeVisitor
from ..parser import parse
class Compiler(NodeVisitor):
"""Compiler backend that evaluates conditional expressions
to give static output"""
def compile(self, tree, expr_data, data_cls_getter=None, **kwargs):
"""Compile a raw AST into a form with con... | youtube/cobalt | third_party/web_platform_tests/tools/wptrunner/wptrunner/wptmanifest/backends/static.py | Python | bsd-3-clause | 6,445 | [
"VisIt"
] | f49b5fa6845b399b1c0035664e0346d759e987e89f41c7d7deb0a1458e121c75 |
# Copyright Yair Benita Y.Benita@pharm.uu.nl
# Biopython (http://biopython.org) license applies
"""Calculate isoelectric points of polypeptides using methods of Bjellqvist.
pK values and the methos are taken from:
* Bjellqvist, B.,Hughes, G.J., Pasquali, Ch., Paquet, N., Ravier, F., Sanchez,
J.-Ch., Frutiger, S. & H... | bryback/quickseq | genescript/Bio/SeqUtils/IsoelectricPoint.py | Python | mit | 4,308 | [
"Biopython"
] | 518f73bbd90929ad75511f127969f79d574685f607579ef78ad76056873d2e96 |
# -*- coding: utf-8 -*-
# Copyright (C) 2008-2020 Samuele Carcagno <sam.carcagno@gmail.com>
# This file is part of pychoacoustics
# pychoacoustics 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, ... | sam81/pychoacoustics | pychoacoustics/control_window.py | Python | gpl-3.0 | 367,405 | [
"Gaussian"
] | edf48f0259b95d9e59b6574a14e8a03a5c4bf7fef87d1a7188374e64f03c26dd |
from __future__ import print_function, division
import collections
from sympy.core.add import Add
from sympy.core.basic import Basic, Atom
from sympy.core.expr import Expr
from sympy.core.function import count_ops
from sympy.core.logic import fuzzy_and
from sympy.core.power import Pow
from sympy.core.symbol import Sym... | antepsis/anteplahmacun | sympy/matrices/matrices.py | Python | bsd-3-clause | 143,503 | [
"DIRAC",
"Gaussian"
] | 5397a768908a22ad75207769964808803190eef5e617fbe70e6a0c210284ca30 |
"""
===============
:mod:`mutators`
===============
.. Copyright 2012 Aaron Garrett
.. Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, i... | aarongarrett/inspyred | inspyred/ec/variators/mutators.py | Python | mit | 10,212 | [
"Gaussian"
] | b1dbf49b8336b3e528961186069053bf511a43490f25e5753ae6b719b2b7dc1f |
# Orca
#
# Copyright 2005-2009 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/pyshared/orca/scripts/apps/gdmlogin/__init__.py | Python | gpl-3.0 | 844 | [
"ORCA"
] | cf4d1e383a774fc5848e2a34df09c02078d276f843f77c9de96b84aa92f6e22c |
#!/usr/bin/env python3
# -*- coding=utf-8 -*-
"""
crycvg
Read a CRYSTAL output file and plot convergence data.
"""
__author__ = "Germain Vallverdu"
__email__ = "germain.vallverdu@univ-pau.fr"
__licence__ = "GPL"
import sys
import matplotlib.pyplot as plt
from crystalio import CrystalOutfile
def crycvg(filename):
... | gVallverdu/myScripts | CRYSTAL/crycvg.py | Python | gpl-2.0 | 3,322 | [
"CRYSTAL"
] | c9b7e91aac0d2432843b3f2fe149e5d292f02f97c75200a4416d4bdc4e8aa7da |
import ocl as cam
import camvtk
import time
import vtk
import math
import datetime
def main():
myscreen = camvtk.VTKScreen()
focal = cam.Point(50, 0, 0)
r = 300
theta = (float(45)/360)*2*math.pi
fi=45
campos = cam.Point( r*math.sin(theta)*math.cos(fi), r*math.sin(theta)*math.sin... | AlanZatarain/opencamlib | scripts/kdtree_debug_1.py | Python | gpl-3.0 | 3,679 | [
"VTK"
] | 9e59caee87333a950d3d85d8da69d6895e4e9dd523d59017ff98973df8d9c5d1 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | mikehulluk/morphforge | src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py | Python | bsd-2-clause | 3,618 | [
"NEURON"
] | b900f1bd2ff9b31e68a378e6876eef3a779e8e0dd535cb2ca4bdfdb986f58975 |
# -*- coding: utf-8 -*-
#
# Copyright © 2013-2015 Michael Rabbitt, Roberto Alsina and others.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limita... | schettino72/nikola | nikola/plugins/compile/markdown/mdx_podcast.py | Python | mit | 3,697 | [
"Brian"
] | 7356f91a317338652ff3dbeeeb9031d3ab88907c6f359a89dcae183371c77154 |
from pylab import *
import pyfits
from PyAstronomy import pyasl
import scipy
from scipy import interpolate
from scipy import ndimage
from scipy import signal
import pickle
from matplotlib.backends.backend_pdf import PdfPages
import os
#from pyevolve import G1DList
#from pyevolve import GSimpleGA
from multiprocessing i... | rabrahm/ceres | utils/FastRotators/spfr.py | Python | mit | 18,831 | [
"Gaussian"
] | fdd6d345d3447564ca78ec7611dd0cc0969b82b454e979b418fc3fe16dd3eacd |
#!/usr/bin/env python
""" toggle between two images by pressing "t"
The basic idea is to load two images (they can be different shapes) and plot
them to the same axes with hold "on". Then, toggle the visible property of
them using keypress event handling
If you want two images with different shapes to be plotted wit... | bundgus/python-playground | matplotlib-playground/examples/pylab_examples/toggle_images.py | Python | mit | 1,371 | [
"exciting"
] | 9e274543c30ade4fe5f5894fb38d0610136f4f3cfadbcb8a7f944f00c9f44ddc |
# 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... | markovmodel/PyEMMA | pyemma/msm/models/msm.py | Python | lgpl-3.0 | 45,779 | [
"VisIt"
] | d4f3528be16a37259361da9e3b5c479e6d526def124a0384f172435e48fd6976 |
"""
typed_ast.ast3
~~~
The `ast3` module helps Python applications to process trees of the Python
abstract syntax grammar. The abstract syntax itself might change with
each Python release; this module helps to find out programmatically what
the current grammar looks like and allows modificatio... | TeamSPoon/logicmoo_workspace | packs_web/butterfly/lib/python3.7/site-packages/typed_ast/ast3.py | Python | mit | 13,761 | [
"VisIt"
] | d856ffd135249f19833f30573d87b55e41a124bd49c5e476ccb8af5882374ea2 |
#!/usr/bin/python
import os, sys # low level handling, such as command line stuff
import string # string methods available
import re # regular expressions
import getopt # comand line argument handling
from low import * # custom functions, written by myself
# =================================================... | lotharwissler/bioinformatics | python/blast/parse_blast_annotate.py | Python | mit | 6,837 | [
"BLAST"
] | 09122b32ee2ca89fc40737d3a68c8e14809b209660c565d59f297b06dd180161 |
# -*- coding: utf-8 -*-
"""
Acceptance tests for Video.
"""
import json
import requests
from .helpers import UniqueCourseTest
from ..pages.lms.video import VideoPage
from ..pages.lms.tab_nav import TabNavPage
from ..pages.lms.course_nav import CourseNavPage
from ..pages.lms.auto_auth import AutoAuthPage
from ..pages.... | hkawasaki/kawasaki-aio8-1 | common/test/acceptance/tests/test_video_module.py | Python | agpl-3.0 | 29,804 | [
"VisIt"
] | 880973c80c0a69d0fb27b179c9dbcb0d5ac1e6fd2ab1491b669c643c4609791d |
#! /usr/bin/env python
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base64 encoding of a zip file, this zip file contains
# a fully functional basic pytest script.
#
# Pyt... | joergdietrich/astropy | astropy/extern/pytest.py | Python | bsd-3-clause | 265,800 | [
"VMD"
] | 47f2d4f09bf8dddf1a8b38cf27b267552ff2ff4f58dee05815fc23ca16e1fe00 |
#!/usr/bin/env python
"""
grid
This module handles general model grid information, whether from ROMS or
other models; however, it is mostly geared towards ROMS
Written by Brian Powell on 10/09/13
Copyright (c)2010--2021 University of Hawaii under the MIT-License.
**Examples**
>>> grid = seapy.model.as... | powellb/seapy | seapy/model/grid.py | Python | mit | 30,616 | [
"Brian",
"NetCDF"
] | 13a26cf3f1e8f4a898ade7b1c8a609111349cb8559220ccd12cc509404217c29 |
"""
##########################################################################
#
# QGIS-meshing plugins.
#
# Copyright (C) 2012-2013 Imperial College London and others.
#
# Please see the AUTHORS file in the main source directory for a
# full list of copyright holders.
#
# Dr Adam S. Candy, adam.candy@imp... | adamcandy/QGIS-Meshing | plugins/rasterise_polygons/rasterisepolygons.py | Python | lgpl-2.1 | 18,093 | [
"NetCDF"
] | 8c9ab977dfccc87c99066ed4d92170eb1a94365b01277b6a10a9002638019783 |
#
# Copyright (C) 2000 greg Landrum
#
""" unit testing code for trees and decision trees (not learning/xvalidation) """
from __future__ import print_function
import unittest
from rdkit.ML.DecTree import TreeUtils
from rdkit.ML.DecTree.DecTree import DecTreeNode as Node
class TestTreeUtils(unittest.TestCase):
d... | rvianello/rdkit | rdkit/ML/DecTree/UnitTestTreeUtils.py | Python | bsd-3-clause | 1,358 | [
"RDKit"
] | 8a7c5a4b60c91ef601d13527f1a66bb7b3aa6e436eb209014a9f0f3237fab33e |
"""Structural variation detection for split and paired reads using lumpy.
Uses lumpyexpress for lumpy integration and samblaster for read preparation:
https://github.com/GregoryFaust/samblaster
https://github.com/arq5x/lumpy-sv
"""
import contextlib
import os
import sys
import shutil
import vcf
from bcbio import uti... | guillermo-carrasco/bcbio-nextgen | bcbio/structural/lumpy.py | Python | mit | 9,297 | [
"BWA"
] | 8a9a707a65f03bf301ee1e11e195fa39454e25dcaff078bf4d8f765478173e01 |
import Avogadro
import unittest
from numpy import *
class TestPrimitiveList(unittest.TestCase):
def setUp(self):
self.molecule = Avogadro.molecules.addMolecule()
self.list = Avogadro.PrimitiveList()
def test_constructors(self):
qlist = []
for i in range(10):
atom = self.molecule.addAtom()
... | rcplane/periodicdisplay | reference/avogadro/libavogadro/src/python/unittest/primitivelist.py | Python | gpl-2.0 | 2,973 | [
"Avogadro"
] | b50f7f3c50053d966a2ed1e987865dad164f2721f0951dc0dfed169fe185be71 |
"""
This module contain solvers for all kinds of equations:
- algebraic or transcendental, use solve()
- recurrence, use rsolve()
- differential, use dsolve()
- nonlinear (numerically), use nsolve()
(you will need a good starting point)
"""
from __future__ import print_function, division
f... | Curious72/sympy | sympy/solvers/solvers.py | Python | bsd-3-clause | 122,403 | [
"Gaussian"
] | affe9477efa9cbd2ddd1c8548024290d722e56eab750506f7dd2738d0e4e7023 |
fixes_by_sdss_objid = {
# WRONG REDSHIFT IN THE NSA, but good in SDSS
1237668367995568266: {"SPEC_Z": 0.21068, "TELNAME": "SDSS", "MASKNAME": "SDSS"},
# DON"T BELIEVE THIS NED REDSHIFT, RESET TO -1
1237667966962434538: {"SPEC_Z": -1, "ZQUALITY": -1},
# A SATELLITE WITH A BAD PETRORAD_R
123765173... | sagasurvey/saga | SAGA/objects/manual_fixes.py | Python | mit | 1,445 | [
"Galaxy"
] | 051de5185580a7b7900d40020f0976418b02261121d16c859472704aec36e8a3 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim: fenc=utf-8
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
#
"""
File name: list_ads.py
Author: dhilipsiva <dhilipsiva@gmail.com>
Date created: 2017-01-15
"""
DOMAINS = [
"0.r.msn.com",
"005.free-counter.co.uk",
"006.free-counter.co.uk",
... | dhilipsiva/hostscli | hostscli/websites/list_ads.py | Python | mit | 418,441 | [
"ADF",
"CASINO",
"ESPResSo",
"ORCA",
"VisIt"
] | dcc7ecab46005510129290a62bcae67233b783ec0f423ea719f076656d20ea17 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
########################################################################
# Solves problem 37 from projectEuler.net.
# Finds the sum of the eleven truncable primes.
# Copyright (C) 2010 Santiago Alessandri
#
# This program is free software: you can redistribute it... | salessandri/programming-contests | project-euler/problem037.py | Python | gpl-3.0 | 1,571 | [
"VisIt"
] | d424692f291076e15953f7103ab352642ea4ffb6807de3a40b64f55f80336f16 |
"""Random variable generators.
integers
--------
uniform within range
sequences
---------
pick random element
pick random sample
generate random permutation
distributions on the real line:
------------------------------
unif... | kleientertainment/ds_mod_tools | pkg/win32/Python27/Lib/random.py | Python | mit | 33,109 | [
"Gaussian"
] | 52ea4e154ca2da27b9ac4661e74a1d5df225128ea00112129a8732ac3ecc38d6 |
#!/usr/bin/env python
from ase.visualize.vtk import requirevtk, probe_vtk_kilobyte
requirevtk()
vtk_kilobyte = probe_vtk_kilobyte(1024)
import numpy as np
import sys, unittest, gc
from ase.test import CustomTestCase, CustomTextTestRunner
from ase.utils.memory import MemoryStatistics, MemorySingleton, shapeopt
from... | freephys/python_ase | ase/test/vtk_data.py | Python | gpl-3.0 | 19,240 | [
"ASE",
"VTK"
] | 81b4b74c3a1d82ad7d41d1fd6bf2f4957c8288f3c1b84f3b88853db41666e0dd |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to
# submit large numbers of jobs on supercomputers. It provides a python interface to physical input,
# ... | pylada/pylada-light | src/pylada/espresso/structure_handling.py | Python | gpl-3.0 | 9,912 | [
"CRYSTAL",
"ESPResSo",
"VASP"
] | 79c9e69c00ce2a9c257987d56a4f912ee844a97cc0ed91bb3a2777053e9a8f3b |
class NodeVisitor:
def visit(self, node, *args):
try:
return getattr(self, 'visit_' + node.__class__.__name__)(node, *args)
except AttributeError:
pass
for child in node.iter_child_nodes():
self.visit(child, *args)
| nnabeyang/MY_jinja2 | MY_jinja2/visitor.py | Python | bsd-3-clause | 247 | [
"VisIt"
] | ce24cb4275fec658294c00725bf12d8c6971faf566b89bb4a16c52e14e814c54 |
# foobar:~/dont_mind_the_map USER$ cat readme.txt
# Don't mind the map
# ==================
# After the trauma of Dr. Boolean's lab, the rabbits are eager to get back to their normal lives in a well-connected community, where they can visit each other frequently. Fortunately, the rabbits learned something about engin... | Ervii/brain-marathon | foobar-google/mind_the_map/dont4_mind_the_map.py | Python | apache-2.0 | 9,977 | [
"VisIt"
] | e1df29927d935adac9af7b910bbae497498afa9fb6f84501b248f5fd4dc173a1 |
#!/usr/bin/env python
"""
Command-line utility for administrative tasks.
# For more information about this file, visit
# https://docs.djangoproject.com/en/2.1/ref/django-admin/
"""
import os
import sys
if __name__ == '__main__':
os.environ.setdefault(
'DJANGO_SETTINGS_MODULE',
'$safeprojectname$.... | Microsoft/PTVS | Python/Templates/Django/ProjectTemplates/Python/Web/StarterDjangoProject/manage.py | Python | apache-2.0 | 727 | [
"VisIt"
] | be5d21031369e8ffa1b844b4d43b1075e5310642bf0e00b9afa333680502f901 |
"""
An example of plotting scatter points with Mayavi's core API.
This script creates a bunch of random points with random scalar data
and then shows these as a "scatter" plot of points. The script
illustrates how to
1. create a dataset easily using tvtk and numpy,
2. use a created dataset in Mayavi and visualize... | dmsurti/mayavi | examples/mayavi/advanced_visualization/scatter_plot.py | Python | bsd-3-clause | 1,841 | [
"Mayavi"
] | 596bf37e049f08212923e3f6cc1da213ef6545466efef715438cc34dd2352f64 |
#!/usr/bin/env
"""
UP_Winds_NARR_model_prep.py
Retrieve NARR winds for two locations:
Upstream Shumagin Islands - 54.5N 161W
Downstream Shumagin Islands - 55.5N 158.5W
Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs
Provide U, V (calculations for along,across are availab... | shaunwbell/FOCI_Analysis | ReanalysisRetreival_orig/UnimakPass/UP_Winds_NARR_model_prep.py | Python | mit | 11,783 | [
"NetCDF"
] | 5d9ba6d4404ae7e3a8277f037ac7c596b2e327e18cbc3009580216e042303440 |
"""
Tool for handling UnTRIM data specific to the SUNTANS model
M.Rayson
Stanford University
March 2014
"""
from sunpy import Grid, Spatial
import numpy as np
import matplotlib.pyplot as plt
import pdb
# Dictionary containing the suntans-untrim equivalent grid variables
untrim_gridvars = {\
'xp':'Mesh2_node_x',... | UT-CWE/Hyospy | Hyospy_ensemble/lib/SUNTANS/UNTRIM/untrim_tools.py | Python | mit | 14,915 | [
"NetCDF"
] | b1e76e441fbc846d9e1bf854968deb22da29d743b1030fa5aad61a01de4937ff |
""" JobLoggingDB class is a front-end to the Job Logging Database.
The following methods are provided
addLoggingRecord()
getJobLoggingInfo()
getWMSTimeStamps()
"""
import time
from types import StringTypes, IntType, LongType
from DIRAC import gLogger, S_OK, S_ERROR
from ... | calancha/DIRAC | WorkloadManagementSystem/DB/JobLoggingDB.py | Python | gpl-3.0 | 5,939 | [
"DIRAC"
] | 1d7c45fe57e06fc18bb597f1b83e1686df1c21cdf80e028acb101c3cfa9baa5e |
# Copyright 2004-2017 Tom Rothamel <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, m... | kfcpaladin/sze-the-game | renpy/display/transition.py | Python | mit | 32,997 | [
"VisIt"
] | c20204517f93aa89817c1fda2a1116d679fc9c4e9de6c7ea5db6b59d859f7df5 |
# { -1, -1}: On entry to PDLASRT parameter number 9 had an illegal value
# works with 'sl_default': (2, 2, 32)
from ase.lattice.surface import fcc100, add_adsorbate
from gpaw import GPAW, ConvergenceError
from gpaw.mpi import world
assert world.size == 4
slab = fcc100('Cu', size=(2, 2, 2))
add_adsorbate(sla... | ajylee/gpaw-rtxs | gpaw/test/parallel/scalapack_pdlasrt_hang.py | Python | gpl-3.0 | 627 | [
"ASE",
"GPAW"
] | af92c679edefc36c3d89b9352943a38bb2edfb893844b430126075b223464eec |
import random
from vtk import *
n = 10000
qinit = vtkQtInitialization()
pd = vtkPolyData()
pts = vtkPoints()
verts = vtkCellArray()
orient = vtkDoubleArray()
orient.SetName('orientation')
label = vtkStringArray()
label.SetName('label')
for i in range(n):
pts.InsertNextPoint(random.random(), random.random(), rando... | b3c/VTK-5.8 | Examples/Infovis/Python/labels.py | Python | bsd-3-clause | 1,403 | [
"VTK"
] | 0fe34a687ec4b7aa1416b8c1a026b729eda80eb493c825c1ebf10d40c549e6b8 |
## INFO ########################################################################
## ##
## Python and Cython Syntax Highlighters ##
## ===================================== ... | evhub/python | src/gloom.py | Python | gpl-3.0 | 9,037 | [
"VisIt"
] | 2d10429d0a54adf38826a4039195cd60d5d1b7c6ca7ffc8529fbbbf0c3609a59 |
""" This tests only need the ElasticJobParametersDB, and connects directly to it
"""
import time
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC import gLogger
from DIRAC.WorkloadManagementSystem.DB.ElasticJobParametersDB import ElasticJobParametersDB
# Add a time delay to allow ... | ic-hep/DIRAC | tests/Integration/WorkloadManagementSystem/Test_ElasticJobParametersDB.py | Python | gpl-3.0 | 5,329 | [
"DIRAC"
] | d384798762ca77a55d5cb4a3b2174fb4c9135111dae317877e6049ce00b5cd30 |
# This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
"""Extension to python-markdown to support LaTeX (rather than html) output.
Authored by Rufus Pollock: <h... | mvidalgarcia/indico | indico/util/mdx_latex.py | Python | mit | 24,440 | [
"Bowtie"
] | 1ef8fd6bf102edbb8b2acd4a685768cc61e9025f60f585750dd69387cd6a7948 |
"""A method for calculating seasonally-varying qfluxes, as described in Russell et al 1985 DOI:10.1016/0377-0265(85)90022-3"""
import numpy as np
import xarray
from xarray import ufuncs as xruf
import time
from scipy import stats
from mpl_toolkits.basemap import shiftgrid
import area_average as aav
import nc_file_... | sit23/Isca | src/extra/python/scripts/calculate_qflux/calculate_qflux.py | Python | gpl-3.0 | 16,618 | [
"NetCDF"
] | 3a33ac667716142b5cd228d5146f76982c92dc3d19d75b6a9b281e7472911a9a |
#
# Copyright (C) 2007, Mark Lee
#
#http://rl-glue-ext.googlecode.com/
#
# 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... | mguzdial3/MineCode | python-codec/src/rlglue/types.py | Python | apache-2.0 | 3,168 | [
"Brian"
] | bc677829ed62354d1460dfda30205aec4356600afc895b3b229968c3089d78aa |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import ast
import sys
import getopt
import shutil
import difflib
import keyword
import unparse
class Obfuscator(ast.NodeTransformer):
__current__ = bytearray('a');
def __init__(self, mapper):
self._level = 0;
self._attrs = [];
self._names = ma... | chenzhuoyu/PyCodeObfuscator | obfuscator.py | Python | mit | 8,392 | [
"VisIt"
] | 40fda4fe5bf891613f98d7233c5e1ad4df076ea0da18b0adff1331c19d96741b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright notice
# ----------------
#
# Copyright (C) 2013-2014 Daniel Jung
# Contact: djungbremen@gmail.com
#
# 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
# Softwa... | proggy/tb | sc/dist.py | Python | gpl-2.0 | 32,944 | [
"Gaussian"
] | 995f6ba9c53f446611a5cc0365bb48351633ee8c274f90801029d509ded4ad30 |
"""
Module containing the CanonicalGaussian object
and some helper functions.
@author: scj robertson
@since: 22/05/2016
"""
import numpy as np
import numbers
class CanonicalGaussian:
'''
Class for representing a multivariate Gaussian distribution,
given a partitioned precision matrix and information vect... | scjrobertson/xRange | tracking/canonical_gaussian.py | Python | gpl-3.0 | 10,114 | [
"Gaussian"
] | 53e1a1210f632292e3d781315063639d39d3bf13edd22ebda30d0679d1826a71 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-2011 Async Open Source
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public License
## as published by the Free Software Foundation; either version 2
## of the Licens... | tiagocardosos/stoq | setup.py | Python | gpl-2.0 | 6,324 | [
"VisIt"
] | 496895121f6e8c944530e05cd6e6522ec71885b146cc72d8b03778fa1d5a2102 |
import functools
import numpy as np
import tensorflow as tf
from tensorflow.contrib.distributions import Normal
from tensorflow.contrib.distributions.python.ops.kullback_leibler import kl as _kl
from cell import AIRCell
from evaluation import gradient_summaries
from ops import Loss, make_moving_average
from prior impo... | akosiorek/attend_infer_repeat | attend_infer_repeat/model.py | Python | gpl-3.0 | 18,641 | [
"Gaussian"
] | e520826062c4a172504bc1adf937a15ebcc4d4ea11ba19e36931a8c14088cd62 |
#! /usr/bin/env python
import sys
import os
import numpy as np
from osgeo import gdal
from pygeotools.lib import iolib,timelib
#wget -r ftp://sidads.colorado.edu/pub/DATASETS/nsidc0710_landsat8_golive_ice_velocity_v1/p046_r027/*nc
#parallel 'gdal_translate NETCDF:"{}":vv_masked {.}_vv_masked.tif' ::: *nc
#parallel '.... | dshean/vmap | vmap/golive_proc.py | Python | mit | 1,250 | [
"NetCDF"
] | e62638925763a44a088f0505950d13f0cffd8191ea1194bc71e9635864a847e9 |
#!/usr/bin/env python
__author__ = 'Mike McCann,Duane Edgington,Reiko Michisaki'
__copyright__ = '2015'
__license__ = 'GPL v3'
__contact__ = 'duane at mbari.org'
__doc__ = '''
Master loader for all CANON off season activities in 2015
Mike McCann, Duane Edgington, Danelle Cline
MBARI 4 August 2015
@var __date... | josephmfaulkner/stoqs | stoqs/loaders/CANON/loadCANON_os2015.py | Python | gpl-3.0 | 16,006 | [
"NetCDF"
] | 9a44762281403c15f3253e43e1f4611ef05b444c0b67b919c8291c7fd67a0e2d |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the main LMS Dashboard (aka, Student Dashboard).
"""
from ..helpers import UniqueCourseTest
from ...fixtures.course import CourseFixture
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.dashboard import DashboardPage
class LmsDashboardPageTest(UniqueCo... | antonve/s4-project-mooc | common/test/acceptance/tests/lms/test_lms_dashboard.py | Python | agpl-3.0 | 3,725 | [
"VisIt"
] | 143803b676bb51061652881416601a90f8f2b15d33963628d8bc362f1fd91558 |
"""
Wrapper around pymc's GP module
"""
import os
os.environ['OMP_NUM_THREADS'] = "1"
import pymc.gp
import pymc.gp.GPutils
from pymc.gp.cov_funs import matern
from pymc.gp.cov_funs import gaussian
from pymc.gp.cov_funs import pow_exp
import numpy as np
#from scipy.interpolate import UnivariateSpline
#import matplo... | COSMOGRAIL/PyCS | pycs/play/gp/pymcgp.py | Python | gpl-3.0 | 1,331 | [
"Gaussian"
] | d54d2418033c52871b6cce7c47e2e2d8783d67abfd669e20084d70cc1380acb0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import time
from gzip import GzipFile
from cStringIO import StringIO
from datetime import datetime, timedelta
import logging
import msgpack
from tornado.concurrent import return_future
from ujson import loads, dumps
from octopus.model import Response
from sqlalchemy import or... | holmes-app/holmes-api | holmes/cache.py | Python | mit | 18,466 | [
"Octopus"
] | 1936cdd5193b2f9ab8f6abbd7be3a894fa68d496eed15e2716b940581a9543f7 |
left = [
'admiring',
'adoring',
'affectionate',
'agitated',
'amazing',
'angry',
'awesome',
'blissful',
'boring',
'brave',
'clever',
'cocky',
'compassionate',
'competent',
'condescending',
'confident',
'cranky',
'dazzling',
'determined',
'distracted',
'dreamy',
'eager',
'ecs... | homingbot/homingbot | homingbot/controller/names/list1.py | Python | mit | 29,904 | [
"Brian"
] | 28dd90692efa9ceca497117ca34554cc9aad9438824bcb21971cf97aabc0b9c8 |
"""
Ordinary Least Squares regression with regimes.
"""
__author__ = "Luc Anselin luc.anselin@asu.edu, Pedro V. Amaral pedro.amaral@asu.edu, Daniel Arribas-Bel darribas@asu.edu"
import regimes as REGI
import user_output as USER
import multiprocessing as mp
from ols import BaseOLS
from utils import set_warn, spbroadca... | TaylorOshan/pysal | pysal/spreg/ols_regimes.py | Python | bsd-3-clause | 25,402 | [
"COLUMBUS"
] | 1bcd3732170aaa8c526c1b4ce7ae0441c0365bae3312c059fa75da3c8e2497b2 |
#!/usr/bin/env python
# boards.txt python builder for esp8266/Arduino
# Copyright (C) 2017 community
# Permission is hereby granted, free of charge, to any person who buy it,
# use it, break it, fix it, trash it, change it, mail - upgrade it, charge
# it, point it, zoom it, press it, snap it, work it, quick - erase it... | hallard/Arduino | tools/boards.txt.py | Python | lgpl-2.1 | 64,166 | [
"CRYSTAL",
"ESPResSo"
] | f89c632658f27ee20d246ad4cb8a516aa0ccc9ddeedf20d5f8cf72006e6363a4 |
"""Handle extraction of final files from processing pipelines into storage.
"""
import datetime
import os
import six
import toolz as tz
from bcbio import log, utils
from bcbio.upload import shared, filesystem, galaxy, s3, irods
from bcbio.pipeline import run_info
from bcbio.variation import vcfutils
import bcbio.pipe... | chapmanb/bcbio-nextgen | bcbio/upload/__init__.py | Python | mit | 41,001 | [
"Galaxy"
] | 0e1f842c15f6eddd49d61eea612a9bac85ddb0ca5e002d07c851d66d7820617f |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/actionsbox.py | Python | gpl-2.0 | 1,932 | [
"VisIt"
] | 2312fd43a5f45b90278df43a70f5e1d47124d24fc5bfb41d726c8e7ae8f37378 |
#
# Copyright (C) 2013-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... | KaiSzuttor/espresso | samples/lj-demo.py | Python | gpl-3.0 | 20,852 | [
"ESPResSo",
"Mayavi"
] | 4e8d7316a9ac2335c481f1450c14b8a0878f4e7ede483e00cba4119e490e75a1 |
from __future__ import absolute_import, division, print_function
from operator import add
from itertools import chain
def inc(x):
return x + 1
def ishashable(x):
""" Is x hashable?
Example
-------
>>> ishashable(1)
True
>>> ishashable([1])
False
"""
try:
hash(x)
... | simudream/dask | dask/core.py | Python | bsd-3-clause | 10,816 | [
"VisIt"
] | 4ceee7f89440b03a35088d0896e0177adfbb5880e2c7d6e8a9e93a3c1f12285d |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
"""Grid transformers.
This module defines tools for doing interpolations/restrictions between
differentt uniform 3D grids.
"""
from __future__ import division
from math import pi
import numpy as np
from gpaw import debug
... | qsnake/gpaw | gpaw/transformers.py | Python | gpl-3.0 | 6,059 | [
"GPAW"
] | 32ca6c790d9278a91ab024676ac599cc2852f0e80559f5f352ceaae2f1551032 |
"""
DIRAC.Core.Utilities package
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
| yujikato/DIRAC | src/DIRAC/Core/Utilities/__init__.py | Python | gpl-3.0 | 149 | [
"DIRAC"
] | 52f0d4ab7b67d5048c1e161be0fa364dce1a8fbfc0aba889d0db6f74bfb59e47 |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google-research/graph-attribution | graph_attribution/graphnet_techniques.py | Python | apache-2.0 | 17,394 | [
"Gaussian"
] | e34e654ba3f7ea2be7f90f8af5a2f28418fcea83092119f705201367ab7dd9c6 |
#!/usr/bin/env python
"""
It is used to test the tornado web framework. This can be used:
-change of an underlying library such as ThreadPool
-change of the Tornado configuration (running more Tornado processes)
-Tornado scalability of a certain machine
"""
import time
import httplib
class Transaction(object):
de... | andresailer/DIRAC | tests/Performance/webserver/test_scripts/web.py | Python | gpl-3.0 | 933 | [
"DIRAC"
] | 51cf65ff3a0ca7eb2e216b5d01c1c8e08421aaefc337792cf4de12ff603fcb65 |
# encoding: utf-8
import unittest
from aces.modify import *
import numpy as np
from ase import Atoms
class testModify(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testget_cluster(self):
n = 4
dis = np.ones([n, n])
dis[0, 1] = 0
d... | vanceeasleaf/aces | aces/unittest/testModify.py | Python | gpl-2.0 | 1,745 | [
"ASE"
] | e736cd71b79b7ba3cc2a7b338e7a80c89ae40a48ebdc1847e583e92aa7ccd077 |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2011, 2012 Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License ... | zenoss/ZenPacks.zenoss.CloudStack | ZenPacks/zenoss/CloudStack/Pod.py | Python | gpl-2.0 | 1,759 | [
"VisIt"
] | a85a239b8789425a4c43c214634e33cc2b8baf1a3335ba8e5583504a88bf977c |
# coding: utf-8
# # Your first neural network
#
# In this project, you'll build your first neural network and use it to predict daily bike rental ridership. We've provided some of the code, but left the implementation of the neural network up to you (for the most part). After you've submitted this project, feel ... | tkurfurst/deep-learning | first-neural-network/dlnd-your-first-neural-network_r.py | Python | mit | 19,438 | [
"NEURON"
] | 0df0f492b2938b8a64fb6697efb6b6952ec299bfb47f2569d214bbfc08a4d6e5 |
import os
import discord
from .utils import checks
from discord.ext import commands
from cogs.utils.dataIO import dataIO
try:
import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
except:
spotipy = None
class Spotify:
def __init__(self, bot):
self.bot = bot
self.settings ... | babylonwanderer/Trek-Cogs | spotify/spotify.py | Python | gpl-3.0 | 3,544 | [
"VisIt"
] | f58035d5b992186d62a518064f2c377bde228173cf05def414eae3a4143cce2f |
import unittest
from test import support
from itertools import *
from weakref import proxy
import sys
import operator
import random
from functools import reduce
maxsize = support.MAX_Py_ssize_t
minsize = -maxsize-1
def lzip(*args):
return list(zip(*args))
def onearg(x):
'Test function of one argument'
ret... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-3.0/Lib/test/test_itertools.py | Python | mit | 53,778 | [
"GULP"
] | d1d1cf9c07af4a19a7efd7859c17f98fdbbaa0108f01ab13c4caf994e92cc04f |
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Lorenzo De Santis <lorenzo.de-santis@u-psud.fr>
#
# License: BSD (3-clause)
import sys
import os
import os.path as op
import shutil
i... | cmoutard/mne-python | mne/bem.py | Python | bsd-3-clause | 64,012 | [
"Mayavi"
] | d4e9254d37f63f45463509bd25164364abf10382bd2b37713fed7466d0df0ddb |
from scipy.misc import imread, imsave
from scipy.ndimage.filters import gaussian_filter
rings = imread('lena_rings.bmp')
imsave('gaussian.bmp', gaussian_filter(rings, 1.5))
| hmln/pds | parte2/q1.py | Python | mit | 175 | [
"Gaussian"
] | b1a628c4502a4eab22733b92b9f8f319cdf9124ea50d85a2d6758ed7a83bd06e |
# 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... | dmlc/tvm | vta/python/vta/top/graphpack.py | Python | apache-2.0 | 23,060 | [
"VisIt"
] | 8d32484881013871aa035a12468eaf8a4be5708eb71a8d8c8c490a778e4e82ed |
import numpy as np
import pyroms
from CGrid_TPXO8 import CGrid_TPXO8
def get_nc_CGrid_TPXO8(grdfile, name='TPXO8', \
xrange=(4350, 4550), yrange=(6600, 6900), missing_value=-9999):
"""
grd = get_nc_CGrid_TPXO8(grdfile)
Load Cgrid object for TPXO8 from netCDF file
"""
nc = ... | kshedstrom/pyroms | examples/make_tide/CGrid_TPXO8/get_nc_CGrid_TPXO8.py | Python | bsd-3-clause | 1,324 | [
"NetCDF"
] | 64b6f507f5fbf2c545502d90985c0631621607e13c8665ceda42f10357edcb88 |
'''phone1 = 'Samsung Galaxy S8 Smartphone, Android, 5.8", 4G LTE, SIM Free, 64GB'
print(phone1.replace(',',''))'''
'''def brand_search(phone):
result = []
phone_split = phone.split()
string_length = len(phone_split)
i=0
while i < string_length:
empty = []
phones = fon.getdevice(ph... | armenvod/phone_match | testing_plz.py | Python | mit | 1,251 | [
"Galaxy"
] | ef38343fa1b67be4de0bd5ec89caa600ce9bceb9e027df9b71ecd9a8e76ac2af |
# -*- 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 ... | MDAnalysis/mdanalysis | package/MDAnalysis/version.py | Python | gpl-2.0 | 2,709 | [
"MDAnalysis"
] | 5ab8acc209899a3506dd5d0cd7fcdd43a38365a95f09a825ac62d2a03f30937c |
# Natural Language Toolkit: Corpus Reader Utilities
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Steven Bird <sb@ldc.upenn.edu>
# Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
import os, sys, bisect, re
from itertools im... | hectormartinez/rougexstem | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/corpus/reader/util.py | Python | apache-2.0 | 32,150 | [
"VisIt"
] | 0bc526abebb1c8176a6a13d25b93ccdc37d3762ae8350f3f0cdb96478772d65a |
"""
This script demonstrates how to use moogli to carry out a simulation and
simultaneously update the visualizer. Also another viewer shows the compartment
rm values. The visualizers remain active while the simulation is running.
"""
try:
import moogli
except ImportError as e:
print( "[INFO ] Could not import... | BhallaLab/moose | moose-examples/moogli/purkinje_simulation_with_rm.py | Python | gpl-3.0 | 7,025 | [
"MOOSE",
"NEURON"
] | c1ead7cb6c32131f3c4d0f40a89084eafdb9225e464f851c7a7770560403ffae |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.