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 |
|---|---|---|---|---|---|---|---|
## This file is part of Invenio.
## Copyright (C) 2011, 2012, 2013 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later versio... | Panos512/invenio | modules/webauthorlist/lib/authorlist_engine.py | Python | gpl-2.0 | 35,102 | [
"VisIt"
] | 3a7eb1da568644c56d5fd10e1a78911366df3e47967d73a139ff7395fd2a0b12 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/tools/pdb.py | Python | gpl-3.0 | 9,549 | [
"CRYSTAL",
"ESPResSo",
"LAMMPS"
] | 22c864eb96422753f25f70e2fee8575b0ac793afa91bb83f0ab8234eaf73e8ce |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the PyMVPA package for the
# copyright and license terms.
#
### ### ### ### ###... | mwaskom/moss | moss/external/mvpasurf.py | Python | bsd-3-clause | 72,543 | [
"VisIt"
] | b960a78d25337be2329e2ec124071c57103978f29c02a39d24a7e5c0d4e74d01 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | aselle/tensorflow | tensorflow/contrib/autograph/pyct/compiler.py | Python | apache-2.0 | 4,938 | [
"VisIt"
] | 3b6f43bb4ab059a714995613dc379c507ada6ede0bfe99cd665cd875ec11ceb4 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | t794104/ansible | lib/ansible/modules/network/avi/avi_cloud.py | Python | gpl-3.0 | 11,640 | [
"VisIt"
] | 3e984041925d6cf5b9c360a5957ed24f1929d159dd0ae42f51c28dd67b5ccfad |
#pylint: disable=C0111
#pylint: disable=W0621
from lettuce import world
import time
import json
import re
import platform
from textwrap import dedent
from urllib import quote_plus
from selenium.common.exceptions import (
WebDriverException, TimeoutException,
StaleElementReferenceException)
from selenium.webdri... | abo-abo/edx-platform | common/djangoapps/terrain/ui_helpers.py | Python | agpl-3.0 | 19,081 | [
"VisIt"
] | 4f93df06dc30890ab3e0e6fa912e4f714172169953c0ad61cc5e2bdc7f2a2c9a |
# startstop.py ---
#
# Filename: startstop.py
# Description:
# Author:Subhasis Ray
# Maintainer:
# Created: Sun Jul 1 13:42:28 2012 (+0530)
# Version:
# Last-Updated: Sun Jul 1 14:41:34 2012 (+0530)
# By: subha
# Update #: 62
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:... | BhallaLab/moose | moose-examples/snippets/startstop.py | Python | gpl-3.0 | 3,692 | [
"MOOSE"
] | e6c8cc6abe208749f008b483131bce023242682c258e20906f4ea20701565cf0 |
"""
A module with examples which combine more generators together.
"""
from .generators.noise import ColoredNoise, PulseGenerator, SineOscillator
from .generators.operators import Product
import scipy.signal as signal
def coloredGatedNoise(
colored_noise_exponent=2.0,
colored_noise_high_pass=128,
... | gpenazzi/sona | src/sona/macros.py | Python | bsd-3-clause | 1,301 | [
"Gaussian"
] | f3cd0f2796b892c9a9f9e7b2289a2a073f9b0dac0d0ba8def651138f449ede97 |
import nesoni
from nesoni import io, bio, grace, config, sam, samshrimp, consensus, working_directory
import os, sys, subprocess, array, datetime, socket, bisect, random, itertools
FILTER_HELP = """\
Usage:
nesoni samfilter: working_dir [options]
"""
class Depth(object):
def __init__(self, size):
... | Victorian-Bioinformatics-Consortium/nesoni | nesoni/samconsensus.py | Python | gpl-2.0 | 59,043 | [
"Biopython"
] | c5121945a649c58e337e07901fa8c49af98c09889ea5444d6a994af571d11e7d |
# -*- coding: utf-8
# pylint: disable=line-too-long
import os
import numpy
import anvio
import anvio.db as db
import anvio.tables as t
import anvio.fastalib as u
import anvio.utils as utils
import anvio.terminal as terminal
import anvio.constants as constants
import anvio.filesnpaths as filesnpaths
import anvio.genec... | meren/anvio | anvio/tables/genecalls.py | Python | gpl-3.0 | 39,739 | [
"BLAST"
] | 3133088793106855dbf4a0341d77d7317cd7fe2bf4b7465da217a7d52dbbb785 |
#!/usr/bin/env python
# encoding: utf-8
# === IMPORTANT ====
# NOTE: In order to support non-ASCII file names,
# your system's locale MUST be set to 'utf-8'
# CAVEAT: DOESN'T work with proxy, the underlying reason being
# the 'requests' package used for http communication doesn't seem
# to work ... | krizex/bypy | bypy.py | Python | mit | 115,970 | [
"VisIt"
] | fed064e0d1f08512fac8521940158ec39a37e5e7e68c00d08a5cb9b32a2680a8 |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
A simple example to run MCSCF with background charges.
'''
import numpy
from pyscf import gto, scf, mcscf, qmmm
mol = gto.M(atom='''
C 1.1879 -0.3829 0.0000
C 0.0000 0.5526 0.0000
O -1.1867 -0.2472 0.0000
H -1.9237 0... | gkc1000/pyscf | examples/qmmm/02-mcscf.py | Python | apache-2.0 | 1,352 | [
"PySCF"
] | 41cc5040712b4e4be7e4a7f4c66208181fae5284a60bcff438d01cbc4fd9d20a |
"""
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.
Written (W) 2013 Heiko Strathmann
"""
from kameleon_mcmc.distribution.Distr... | karlnapf/kameleon-mcmc | kameleon_mcmc/gp/mcmc/PseudoMarginalHyperparameterDistribution.py | Python | bsd-2-clause | 2,679 | [
"Gaussian"
] | e5d2b1961d0c65c44b37c0089591488703bc46ab7020a3e52432f4905f585660 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/ui/firsttimewizard.py | Python | gpl-2.0 | 15,203 | [
"Brian"
] | c4a257c2026c4682e2564855bc3c7a29a5c663580dd1542526b1edc91e7c6748 |
#!/usr/bin/env python
# This example demonstrates the subsampling of a structured grid.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Read some structured data.
pl3d = vtk.vtkMultiBlockPLOT3DReader()
pl3d.SetXYZFileName(VTK_DATA_ROOT + "/Data/combxyz.bin")
pl3d.Set... | hlzz/dotfiles | graphics/VTK-7.0.0/Examples/VisualizationAlgorithms/Python/SubsampleGrid.py | Python | bsd-3-clause | 2,382 | [
"VTK"
] | ffdbf6641b3fc6394064ff716a466f6329c96e7ec3342564c63839c65783e333 |
# Author: Lars Buitinck <L.J.Buitinck@uva.nl>
# License: 3-clause BSD.
import numbers
import numpy as np
import scipy.sparse as sp
from . import _hashing
from ..base import BaseEstimator, TransformerMixin
def _iteritems(d):
"""Like d.iteritems, but accepts any collections.Mapping."""
return d.iteritems() i... | florian-f/sklearn | sklearn/feature_extraction/hashing.py | Python | bsd-3-clause | 5,492 | [
"Gaussian"
] | dad9dddb892c00cc7e13d6f1c019a13a47a20c5fc47e5d9954fed2f563d92100 |
#!/usr/bin/env python
#pylint: disable=missing-docstring
####################################################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simu... | Chuban/moose | python/MooseDocs/tests/refs/test_refs.py | Python | lgpl-2.1 | 1,852 | [
"MOOSE"
] | bb9c38adf741cf3c052746207349d7bfd9d243184b82a6e5c5d678f896831280 |
import lan
import collect_id as ci
import collect_array as ca
import collect_array_rewrite as car
class Rewriter(object):
def rewrite_array_ref(self, ast):
naref = car.NormArrayRef(ast)
naref.visit(ast)
def rewrite_to_baseform(self, ast, functionname='FunctionName'):
""" Rewrites a f... | dikujepsen/OpenTran | v2.0/framework/Matmul/rewriter.py | Python | mit | 2,402 | [
"VisIt"
] | 6b64f1f2d237e65649ab18da93fdd0a596aa2d3fb4326557d20663b692bff798 |
from paraview import servermanager
import sys
import math
import os
import os.path
from paraview import smtesting
smtesting.ProcessCommandLineArguments()
# Connect to the "builtin"
#(in-process) ParaView server ...
#=================================
servermanager.Connect()
# Create an Exodus reader to load our data... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/ProgrammableFilter.py | Python | gpl-3.0 | 4,677 | [
"ParaView"
] | dda5bcf06a430a7bd98f7657f6ac7edd8b312499856897d6ab6eafa3ecb1a384 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | test/test_provider_notification_subscriptions_api.py | Python | apache-2.0 | 10,605 | [
"VisIt"
] | 5f5f70e45088015d27f18fe2d734ce84ac07a3667e941d84ec3168bb0ce330ca |
"""Molecular Dynamics."""
import warnings
import numpy as np
from ase.optimize.optimize import Dynamics
from ase.data import atomic_masses
from ase.md.logger import MDLogger
class MolecularDynamics(Dynamics):
"""Base-class for all MD classes."""
def __init__(self, atoms, timestep, trajectory, logfile=None,
... | grhawk/ASE | tools/ase/md/md.py | Python | gpl-2.0 | 1,300 | [
"ASE"
] | e0d59ff48ae55cf5dcd6eee5431a6f8b41fdc26a5dcd83d7f0c12f98469950d6 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import os
from io import open
from setuptools import setup, find_packages
with open("README.rst") as f:
long_desc = f.read()
ind = long_desc.find("\n")
long_desc = long_desc[ind + 1:]
setup(
... | davidwaroquiers/custodian | setup.py | Python | mit | 1,896 | [
"NWChem",
"VASP",
"pymatgen"
] | dbc5638e08177b2bd4942719c40ae7cc09ccdb655c7e1d6f5408c62d6729fc3a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import z2pack
"""
Bismuth example
"""
if not os.path.exists('./results'):
os.makedirs('./results')
# creating the System object
# the command (mpirun ...) will have to be replaced
Bi = z2pack.fp.System(
input_files=[
'input/Bi_nscf.files', 'inp... | Z2PackDev/Z2Pack | examples/fp/abinit/Bi/Bi.py | Python | gpl-3.0 | 867 | [
"ABINIT",
"Wannier90"
] | 0a1a23d942f2bf2330e03634e09a0fc9203acb0147a61c00677c8024516c224d |
# file xpath/core.py
#
# Copyright 2010 Emory University General Library
#
# 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
... | emory-libraries/eulcore-history | src/eulcore/xpath/core.py | Python | apache-2.0 | 5,945 | [
"exciting"
] | c8494758c5eba81ee99d398d20bf8ac7baabdebbedbd093bfbcd994ce26edcb9 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides objects describing the basic parameters of the
pseudopotentials used in Abinit, and a parser to instantiate pseudopotential objects..
"""
import abc
import collections
import logging
im... | gmatteo/pymatgen | pymatgen/io/abinit/pseudos.py | Python | mit | 65,306 | [
"ABINIT",
"pymatgen"
] | edba071d88a623847795f1a4f8e1a090d4d1ffba22c7e2e8ed853ac71688b787 |
#!/usr/bin/env python3
"""
parse_blast.py
This script is called internally from 1.3-finalize_assignments.py to allow the parsing
to be parallelized on the cluster.
Usage: parse_blast.py --jmotif MOTIF --nterm OPT --chunk NUM [options]
Options:
--jmotif TGGGG
--nterm OPT
--chunk NUM
--noFallBack... | scharch/zap | annotate/parse_blast.py | Python | gpl-3.0 | 16,247 | [
"BLAST",
"Biopython"
] | 051bd598ffd1d38ca5cec447b552119f79b430d57c3ad2ac256c6bdf4990a9ca |
# coding: utf-8
"""
Low-level objects providing an abstraction for the objects involved in the calculation.
"""
from __future__ import unicode_literals, division, print_function
import collections
import abc
import six
import numpy as np
import pymatgen.core.units as units
from pprint import pformat
from monty.design... | rousseab/pymatgen | pymatgen/io/abinitio/abiobjects.py | Python | mit | 42,855 | [
"ABINIT",
"CRYSTAL",
"Gaussian",
"pymatgen"
] | 1d6017bb8a40ce95752c42b586fb414f9da802b89c3a13fe3e9f52a0edfed8cb |
#Calculate vertical integrals of area mean, annual mean specific humidity for whole atmosphere and levels above 100hPa (strat wv)
#Could set a threshold to determine spin-up end, e.g. require changes of less than 1% seems plausible. Need more data to confirm this is appropriate however
from netCDF4 import Dataset
impo... | sit23/Isca | src/extra/python/scripts/general_spinup_fn.py | Python | gpl-3.0 | 5,984 | [
"NetCDF"
] | 4d09ad34aca6763a5abea5f75872cedbc6d17dcf5a5c730f257a2422ef9081de |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | scripts/benchmark.py | Python | lgpl-2.1 | 12,410 | [
"MOOSE"
] | efad5a55247238db7df16d1a7e1ef72a8a621e1956f08429637752b935f1c76a |
#!/usr/bin/env python
# coding: utf-8
import unittest
from ratebeer import RateBeer
from ratebeer import rb_exceptions
class TestBeer(unittest.TestCase):
def is_float(self, s):
''' Checks whether a string represents a float '''
try:
float(s)
return True
except Valu... | OrganicIrradiation/ratebeer | test.py | Python | unlicense | 10,039 | [
"Amber"
] | c94c17f9b6700365b779c8ec8c32eb9f55ce446b3242c217e9248beeb901bc15 |
#!/usr/bin/python3
# Copyright 2011-2015 Francisco Pina Martins <f.pinamartins@gmail.com>
# This file is part of 4Pipe4.
# 4Pipe4 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... | StuntsPT/4Pipe4 | 4Pipe4.py | Python | gpl-3.0 | 20,247 | [
"BLAST"
] | add5f9a119153c8c04f36abf765055b8e11b700dfca1d598fae22b7e6016cc5b |
from __future__ import print_function
import numpy as np
import scipy.linalg
import pickle
import pdb, sys, time, collections
try:
from .ProgressBar import progressbar
progressbar_imported = True
except:
print( '\nProblem importing ProgressBar - skipping' )
print( '(perhaps ipython not installed?)\n' )
... | tomevans/pyhm | pyhm/Utils.py | Python | gpl-2.0 | 22,085 | [
"Gaussian"
] | 90a1a2a9c0b37887978507ce56b0471f7f56afda617058bd529e29c15b24c08d |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-ids | scripts/fixup_ids_v1_keywords.py | Python | apache-2.0 | 6,149 | [
"VisIt"
] | 6f60fb3bbb19c559345af3dbea66c801c28ae75bb65fd7e0fbbbfa0f927f061c |
# Copyright 2021 DeepMind Technologies Limited
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | deepmind/deepmind-research | density_functional_approximation_dm21/setup.py | Python | apache-2.0 | 1,772 | [
"PySCF"
] | c43466d7132f1d65082db65a6cf421e60e4fc918e9559902448f3a44f9d6db10 |
# Author: Travis Oliphant, 2002
#
# Further updates and enhancements by many SciPy developers.
#
from __future__ import division, print_function, absolute_import
import math
import warnings
import numpy as np
from numpy import (isscalar, r_, log, sum, around, unique, asarray,
zeros, arange, sort, ... | witcxc/scipy | scipy/stats/morestats.py | Python | bsd-3-clause | 78,561 | [
"Gaussian"
] | b3d094e6385004f83828b01045979dfff89fe4325f9f39078d92075d683a18bb |
"""Annotated computation graph management."""
import logging
from collections import OrderedDict
from itertools import chain
import numpy
import theano
from picklable_itertools.extras import equizip
from theano import Variable
from theano.gof import graph
from theano.sandbox.rng_mrg import MRG_RandomStreams
from thean... | nke001/attention-lvcsr | libs/blocks/blocks/graph.py | Python | mit | 24,047 | [
"Gaussian"
] | 5c6800d397ca9b7f111ffa5878cd5dc8a433a6d974514096e335987571ae641e |
# -*- coding:utf-8 mode:python; tab-width:4; indent-tabs-mode:nil; py-indent-offset:4 -*-
import sys
import struct
import argparse
import os
try:
import cPickle as pickle
except ImportError:
import pickle
#http://svn.assembla.com/svn/Zori/branches/DZori/python/nw_movecs.py
#nw_movecs.py:
# extract mo coeffici... | mattbernst/polyhartree | chemnw/movecs.py | Python | gpl-3.0 | 25,632 | [
"Brian",
"NWChem"
] | 9875e80ef66ece7a9929fcf92fb19844f5a78eb72b9321d98420cd1f977ac322 |
# encoding: utf-8
"""
System command aliases.
Authors:
* Fernando Perez
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License.
#
# The full license is in the file... | lmregus/Portfolio | python/design_patterns/env/lib/python3.7/site-packages/IPython/core/alias.py | Python | mit | 10,046 | [
"Brian"
] | ec8b5451897cf26c4c524e8592dcca761d84a819ced763bb9293fa9d11689ce9 |
import os
import testtools
from tvrenamer.services import trakt_service
from tvrenamer.tests import base
def disabled():
return not os.environ.get('TEST_TRAKT_CLIENT_ID') or not os.environ.get(
'TEST_TRAKT_CLIENT_SECRET')
class TraktServiceTest(base.BaseTest):
def setUp(self):
super(Trakt... | shad7/tvrenamer | tvrenamer/tests/services/test_trakt.py | Python | mit | 3,964 | [
"Firefly"
] | fa3d7c6c126900f09e80acae5157099a59427a6d6898390c42a7dcf0c234ec0f |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
from datetime import datetime, timezone
import faulthandler
i... | mne-tools/mne-python | doc/conf.py | Python | bsd-3-clause | 57,058 | [
"VTK"
] | 5df23b48905cb3600489bf3c0724d125b94d63f86762d58f92e872f7dfd1fe8d |
import os
import time
from collections import OrderedDict
from io import BytesIO
from translate.storage import po, poheader, poxliff
def test_parseheaderstring():
"""test for the header parsing function"""
source = r"""item1: one
item2: two:two
this item must get ignored because there is no colon sign in it
... | translate/translate | translate/storage/test_poheader.py | Python | gpl-2.0 | 11,322 | [
"MOE"
] | fb92f8279c336eb41771f5b1a704ea603bf9613b6dfd52f2a319f3e4161c42b9 |
#!/usr/bin/env python
#
# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>
# Chris Houseknecht, <house@redhat.com>
#
# 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 Public License as published by
# the Free ... | prutseltje/ansible | contrib/inventory/azure_rm.py | Python | gpl-3.0 | 38,050 | [
"Galaxy"
] | 77edd6ddb354b39046485a16eaacda491ef292ba10f6ab94e5fb8aed95595e04 |
"""
=================================
Gaussian Mixture Model Ellipsoids
=================================
Plot the confidence ellipsoids of a mixture of two gaussians with EM
and variational dirichlet process.
Both models have access to five components with which to fit the
data. Note that the EM model will necessari... | loli/sklearn-ensembletrees | examples/mixture/plot_gmm.py | Python | bsd-3-clause | 2,817 | [
"Gaussian"
] | a06984efa3d03519ee16801d8716ea4d41f1b5e2966755a489ee6396e68b5ca6 |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
unsmuggle_url,
)
from ..compat import (
compat_parse_qs,
compat_urlparse,
)
class SenateISVPIE(InfoExtractor):
_COMM_MAP = [
["ag", "76440", "http://ag... | apllicationCOM/youtube-dl-api-server | youtube_dl_server/youtube_dl/extractor/senateisvp.py | Python | unlicense | 6,075 | [
"EPW"
] | 0353f37ef375357e7dd53c51223598f6f646ccc490b0fae241d90420fc93bd5c |
#! /usr/bin/env python
# cube2xyz
# Extracts data from gaussian type .cube files and presents it as "x,y,z,measured_value"
# It can print output to terminal, file, or produce a plot directly with Mathplotlib.
# Cube file syntax:
# - 1st and 2nd lines are comment/free text
# - 3rd line: Total no. of atoms, and x,y... | julenl/molecular_modeling_scripts | cube2xyz/cube2xyz-v0.1.py | Python | gpl-3.0 | 7,876 | [
"Gaussian"
] | 2ebaa51e99e46117b61265ff61902c81fb1461329e5c308fce57c66fa8bd84e2 |
"""Unit-tests for `tree.visitors`
"""
from py2c import tree
from py2c.tree import visitors
from py2c.tests import Test, data_driven_test
from nose.tools import assert_equal
# TEST:: Add non-node fields
# =============================================================================
# Helper classes
# ==============... | pradyunsg/Py2C | py2c/tree/tests/test_visitors.py | Python | bsd-3-clause | 5,659 | [
"VisIt"
] | 6aad3ff0dedc1480e3c6a808b7e72c179086d8baffc24b06f16bbe2c5a3c925a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from optparse import OptionParser
import os
import sys
import pickle
import numpy as np
from ASE.Units import Convert
from gpaw.utilities.singleatom import SingleAtom
from gpaw.utilities.molecule import molecules, Molecule
from gpaw.utilities import locked
from gpaw.paw... | qsnake/gpaw | scripts/moleculetest.py | Python | gpl-3.0 | 5,276 | [
"ASE",
"GPAW"
] | 183a0e107cf1b711e3b980b749ca23468f3d3d52fd2c39b4493e13cfe3f6a309 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/themestab.py | Python | gpl-2.0 | 10,856 | [
"Brian"
] | 67c947ec6abf246dc9c8bf9d5543c66361838f344d145c66c4c5999c7b50cd66 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import traceback
import re
from omero_version import omero_version
from django.core.validators import validate_email
from webclient.webclient_gateway import OmeroWebGateway
logger = logging.getLogger(__name__)
def upgradeCheck():
# upgrade check:
... | emilroz/openmicroscopy | components/tools/OmeroWeb/omeroweb/webadmin/webadmin_utils.py | Python | gpl-2.0 | 4,420 | [
"VisIt"
] | df1aaefc6b0ff9b512cc8c82f03283da54e791a8e5cda8c50d50999ada6648fe |
import os
from django.test import TransactionTestCase
from django.contrib.auth.models import Group
from django.core.exceptions import ValidationError
from hs_core.testing import MockIRODSTestCaseMixin
from hs_core import hydroshare
from hs_core.models import ResourceFile
from hs_core.views.utils import move_or_rename... | hydroshare/hydroshare | hs_file_types/tests/test_fileset.py | Python | bsd-3-clause | 91,140 | [
"NetCDF"
] | a51503ce1784a162ef79f1f264758b9085a1fa3737afca4f5535ec6a94b8f887 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | beernarrd/gramps | gramps/plugins/gramplet/leak.py | Python | gpl-2.0 | 5,998 | [
"Brian"
] | 26ce35e9e665039d857f4b9e2239aca09cd4a47579ea99fb5fe33ac388be253b |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Wang Yong
#
# Author: Wang Yong <lazycat.manatee@gmail.com>
# Maintainer: Wang Yong <lazycat.manatee@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under t... | liuhuan520/deepin-ui | dtk/ui/draw.py | Python | gpl-3.0 | 20,976 | [
"Gaussian"
] | db695cbf4a4e5edf468fce95f4ebeb9e682e636f5c1dfa34f688cebce01f74a7 |
from octopus.server.orientdb.orientdb_shell_mananger import OrientDBShellManager
from octopus.shell.octopus_shell import OctopusShellConnection
import time
DEFAULT_HOST = 'localhost'
DEFAULT_PORT = '2480'
DEFAULT_DATABASE_NAME = 'octopusDB'
class PythonShellInterface:
def __init__(self):
self._initializ... | fabsx00/bjoern | python/octopus-tools/octopus/server/python_shell_interface.py | Python | gpl-3.0 | 3,746 | [
"Octopus"
] | c277629f9e3df05e8f8d8e3fdf7bec35fca3fcf031f299ee93e4234b6aea171c |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundati... | andrebellafronte/stoq | stoqlib/gui/test/test_cardpaymentmethodeditor.py | Python | gpl-2.0 | 14,949 | [
"VisIt"
] | df2ca04f1d12d0bcaa6181970f0cabda69b10d770f3a2799c8497a26feeff52f |
from widgets import WallOfTextWidget
from grammar import capitalizeFirst, NumberWord
from level import countItems
def convertMacGuffin( mob ):
if mob.scheduledAction:
mob.scheduledAction.cancel()
mob.noSchedule = True
mob.tile.leaves()
player = mob.context.player
item = mob.context.macGuffi... | svk/harmless7drl | plot.py | Python | mit | 16,641 | [
"exciting"
] | 5e24c48eb0ba9785f604b67194252f675759c34a49ce4bcaa65841f9bf0d40ca |
""" TransformationAgent processes transformations found in the transformation database.
The following options can be set for the TransformationAgent.
.. literalinclude:: ../ConfigTemplate.cfg
:start-after: ##BEGIN TransformationAgent
:end-before: ##END
:dedent: 2
:caption: TransformationAgent options
"""
imp... | DIRACGrid/DIRAC | src/DIRAC/TransformationSystem/Agent/TransformationAgent.py | Python | gpl-3.0 | 32,971 | [
"DIRAC"
] | 51e3b219a59a898d3d325287e01a107af5e79cbc8a05aa3cd183fa56a1c7a111 |
"""This script generates Slicer Interfaces based on the CLI modules XML. CLI
modules are selected from the hardcoded list below and generated code is placed
in the cli_modules.py file (and imported in __init__.py). For this to work
correctly you must have your CLI executabes in $PATH"""
import xml.dom.minidom
import s... | mick-d/nipype_source | nipype/interfaces/slicer/generate_classes.py | Python | bsd-3-clause | 19,242 | [
"VTK"
] | a48c74a56b9e14b36f37b32953c823b9d686ff0191a15ab926d878370112f6bc |
#!/usr/bin/python
# Copyright (C) 2009 Johann C. Rocholl <johann@rocholl.net>
#
# 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 ... | jcrocholl/nicerpasswords | english_passwords.py | Python | mit | 30,176 | [
"xTB"
] | 336620307331150ec397be314a86841cbcb0397d79c2cb0321b849bf9eb16b9a |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/pbc/gto/cell.py | Python | apache-2.0 | 63,377 | [
"ASE",
"CRYSTAL",
"Gaussian",
"PySCF"
] | 77ce762ff636d84f7b2c17c79b106b63a2ae6bae26ef6a729ae6a98c96003104 |
# ============================================================================
#
# 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/core/conf.py | Python | gpl-2.0 | 5,086 | [
"VisIt"
] | aae058570a20f060658c377915b77dfa5c4c46a112da6771187bb326a7b1b220 |
import abc
from ispyb.interface.dataarea import DataArea
class IF(DataArea):
"""Core provides methods to store and retrieve data in the core tables."""
@abc.abstractmethod
def get_sample_params(self):
pass
@abc.abstractmethod
def upsert_sample(self, values):
pass
@abc.abstr... | DiamondLightSource/ispyb-api | src/ispyb/interface/core.py | Python | apache-2.0 | 2,080 | [
"VisIt"
] | 8ac8f7c4c89c9a0dcf03889e70d0d45ecac3039b54ca8e2e4ca322fc997461c6 |
#!/usr/bin/python
"""
Copyright 2012 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of th... | clreinki/GalaxyHarvester | myResources.py | Python | agpl-3.0 | 2,805 | [
"Galaxy"
] | 292a3d387a9f998f477e14537f4a13e437e3dcfc8885319d91007fcd92a55cd0 |
import unittest
import mock
from state_machine_crawler import transition, StateMachineCrawler, DeclarationError, TransitionError, \
State as BaseState, WebView, UnreachableStateError, NonExistentStateError, MultipleStatesError, StateCollection
from state_machine_crawler.state_machine_crawler import _create_state_... | gurunars/state_machine_crawler | tests/state_tests.py | Python | apache-2.0 | 9,740 | [
"VisIt"
] | 582c5e0c292c3cb28b985c8065d8866c0af40d096e08003d2da6f3fd11e1f8e1 |
from mps.templatetags.custom_filters import (
has_group,
is_group_viewer,
is_group_editor,
is_group_admin
)
from django.shortcuts import redirect, get_object_or_404
from django.contrib.auth.decorators import login_required, user_passes_test
from django.utils.decorators import method_decorator
from djang... | UPDDI/mps-database-server | mps/mixins.py | Python | mit | 33,450 | [
"VisIt"
] | 57b32768ccc1d48d6b4acc1e0aa5ad05a5d6d0de58e9fa2400b933022221b411 |
#!/usr/bin/env python
# ---------------------------------------------------------------------------
# Licensing Information: You are free to use or extend these projects for
# education or reserach purposes provided that (1) you retain this notice
# and (2) you provide clear attribution to UC Berkeley, including a li... | ChenTangMark/Control_MKZ | control_ws/src/path_follower/nodes/state_estimation/ekf.py | Python | bsd-3-clause | 4,244 | [
"Gaussian"
] | 7bcfda8e10b0fa3f01eab7e92fae116cc857b9d576c05384fe81709de18b5dd7 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | mfherbst/spack | var/spack/repos/builtin/packages/r-genie3/package.py | Python | lgpl-2.1 | 1,696 | [
"Bioconductor"
] | 88f76fcf9c625d9096eb944c81b5f6300cbebc103995b2c9559d7ddc807ee0d2 |
import sympy
from sympy.core import Symbol, Wild, S
from sympy.functions import DiracDelta, Heaviside
from sympy.solvers import solve
#from sympy.integrals import Integral
def change_mul(node,x):
"""change_mul(node,x)
Rearranges the operands of a product, bringing to front any simple
DiracDelta expr... | fperez/sympy | sympy/integrals/deltafunctions.py | Python | bsd-3-clause | 4,495 | [
"DIRAC"
] | 71c52594ed077fd26069454aa00cbb3cd2ee5871291127fd9c2c86670ff33f25 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2004-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Contribution 2009 by Brad Crittenden <brad [AT] bradcrittenden.net>
# Copyright (C) 2008 Benny Malengier
# Copyright (C) 2010 Jakim Friant
#
# This program is free... | beernarrd/gramps | gramps/gui/plug/export/_exportassistant.py | Python | gpl-2.0 | 24,601 | [
"Brian"
] | ebf679664284b5968a6111bbb82330e7fc0d7958bd5d77db181c4ef1d4a49135 |
import os
from generic import obj
from simulation import Simulation,SimulationInput,SimulationAnalyzer
# PLEASE READ THIS
#
# depending on what you want to do with a simulation
# you will have to implement different functions below
# here are a few use cases and the functions required
# details abou... | habanero-rice/hcpp | test/performance-regression/full-apps/qmcpack/nexus/library/template_simulation.py | Python | bsd-3-clause | 11,670 | [
"QMCPACK"
] | 3831d8b42e9255f9c2c28ecbcba4c73072bba97a710d54646448534f19c14eab |
"""
image_filt.py
Module containing image processing filters that could be useful for
transforming the image before airway detection
Created on Mon Nov 21 15:09:07 2011
@author: Benjamin Irving
"""
import scipy.ndimage as nd
import numpy as np
import dicom
import pickle
import matplotlib.pyplot as plt
# -*- codin... | benjaminirving/Mesh-Silhouette-Projection | image2D/imagefilt2D_module.py | Python | bsd-3-clause | 4,315 | [
"Gaussian"
] | 4ca06c388368b0347a13408f58217289c0889f3dc07e833bda9604ca81e8538d |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# graph.py
#
# This file is part of the NNGT project to generate and analyze
# neuronal networks and their activity.
# Copyright (C) 2015-2019 Tanguy Fardet
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | Silmathoron/NNGT | nngt/core/graph.py | Python | gpl-3.0 | 61,996 | [
"Gaussian"
] | e587092929d3438c6e0eae5db5b0e5b98f960444071a36dffe447b9eadba8161 |
#
# Copyright 2015 VTT Technical Research Center of Finland
#
# 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 applicabl... | ollitapa/MMP-TracerApi | Tests/LocalTest2/localTopLevelScriptTest.py | Python | apache-2.0 | 4,955 | [
"VTK"
] | ce36f99a4610d74ee42368c0c6eb812616c9881a6c93d94e0157153932441468 |
import os
import os.path as osp
import shutil
from ogb.utils import smiles2graph
from ogb.utils.torch_util import replace_numpy_with_torchtensor
from ogb.utils.url import decide_download, download_url, extract_zip
import pandas as pd
import numpy as np
from tqdm import tqdm
import torch
from torch_geometric.data impor... | snap-stanford/ogb | ogb/lsc/pcqm4m_pyg.py | Python | mit | 4,511 | [
"RDKit"
] | c975d10224a9be8e459bba63510e66b12f9737da55224d453b03b518aff25ea5 |
config = {
# environment this app is running on: localhost, testing, production
'environment': "localhost",
# webapp2 sessions
'webapp2_extras.sessions': {'secret_key': 'gs5tJE$5n6jsfrg'},
# webapp2 authentication
'webapp2_extras.auth': {'user_model': 'boilerplate.models.User',
'cookie_name':... | rchaber/publishbay | config/production.py | Python | lgpl-3.0 | 3,908 | [
"VisIt"
] | a7c93f47b8fafcf92de821cf8af14f1c2941cc8891bf8133e4a36adebb18c188 |
'''apport package hook for cups
(c) 2009 Canonical Ltd.
Author: Brian Murray <brian@ubuntu.com>
'''
from apport.hookutils import *
def add_info(report):
attach_hardware(report)
attach_printing(report)
| Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/apport/package-hooks/source_cups.py | Python | gpl-3.0 | 212 | [
"Brian"
] | 4a197c361a8984fb5b670f9fe07e5caa4a89b3ad8a7437b6f73f04f538871d31 |
# An example of embedding CEF browser in wxPython on Linux.
# Important:
# On Linux importing the cefpython module must be
# the very first in your application. This is because CEF makes
# a global tcmalloc hook for memory allocation/deallocation.
# See Issue 73 that is to provide CEF builds with tcmalloc ... | RazorFlow/metarefresh_braces | braces-cefpython/myapp.py | Python | mit | 21,093 | [
"VisIt"
] | d5554c50062c881e8a03094fc565a72cc51e41b6d238ba60d05b02af2bc2c88c |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# ---------------------... | Jorge-C/bipy | skbio/maths/stats/tests/test_test.py | Python | bsd-3-clause | 45,519 | [
"scikit-bio"
] | c038fbc8ed57c678f53a9ca17a60fe0ad3ccba8f1c6c43b9571e635e6d7013e2 |
from octopus.shelltool.PipeTool import PipeTool
from pygraphviz import AGraph
class GraphvizTool(PipeTool):
def __init__(self, description):
PipeTool.__init__(self, description)
self.lines = []
# @Override
def processLine(self, line):
ENDMARKER = '//###'
if l... | octopus-platform/bjoern | python/octopus-tools/octopus/shelltool/GraphvizTool.py | Python | gpl-3.0 | 1,135 | [
"Octopus"
] | 139c39557a645658d48379307533354855df8f0d59a3726c47644854f65a100f |
#####################################################################
# File: ReqManagerHandler.py
########################################################################
"""
:mod: ReqManagerHandler
.. module: ReqManagerHandler
:synopsis: Implementation of the RequestDB service in the DISET framework
"""
__RCSID__... | andresailer/DIRAC | RequestManagementSystem/Service/ReqManagerHandler.py | Python | gpl-3.0 | 12,494 | [
"DIRAC"
] | 708fc5836afa90db4c8eabb72f7a15238d4898d85863e2987854f572f4ed4fcc |
from __future__ import print_function
from __future__ import division
from builtins import map
from builtins import str
from builtins import range
from past.utils import old_div
from builtins import object
from future.utils import with_metaclass
__author__ = 'wittawat'
from abc import ABCMeta, abstractmethod
import ma... | wittawatj/interpretable-test | freqopttest/data.py | Python | mit | 16,602 | [
"Gaussian"
] | 2e2ae7e7b020d67ec005c52dc232564a3f29f78304c94e535c3c65aac484cbc0 |
# -*- coding: utf-8 -*-
#
# INDRA documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 23 16:42:17 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | sorgerlab/belpy | doc/conf.py | Python | mit | 11,114 | [
"Pybel"
] | 07770122e8d65979496d9e92dc1c8d48b1d0cce7642ea5782146c6213d17b973 |
#!/usr/bin/env python
# coding=UTF-8
from cgi import escape
import errno
import sys
import os
import re
import random
import datetime
import itertools
import time
import traceback
import dateutil.parser as dateparser
from tempfile import NamedTemporaryFile
from optparse import OptionParser
from common import tidy_stri... | henare/parlparse | pyscraper/sp/parse-official-reports-new.py | Python | agpl-3.0 | 38,585 | [
"Brian"
] | 4713cd3b579ae559f1db8980bb9172ac4d2341dbd16af4b55babc04f316c2250 |
"""Memory module for Kanerva Machines.
Functions of the module always take inputs with shape:
[seq_length, batch_size, ...]
Examples:
# Initialisation
memory = KanervaMemory(code_size=100, memory_size=32)
prior_memory = memory.get_prior_state(batch_size)
# Update memory posterior
posterior... | deepmind/dynamic-kanerva-machines | memory.py | Python | apache-2.0 | 12,766 | [
"Gaussian"
] | 7eb404ca2e02e9ffefed9583f37f26482a5220f09ca1f2808cb7f6aa7694f0b7 |
# $HeadURL$
"""
DIRAC Wrapper to execute python and system commands with a wrapper, that might
set a timeout.
3 FUNCTIONS are provided:
- shellCall( iTimeOut, cmdSeq, callbackFunction = None, env = None ):
it uses subprocess.Popen class with "shell = True".
If cmdSeq is a string, it specifies the... | miloszz/DIRAC | Core/Utilities/Subprocess.py | Python | gpl-3.0 | 20,847 | [
"DIRAC"
] | 037e72e33bfe300f07272160d46a0cc68510150b0c6110b2aaabb88f24d1829f |
# Copyright (c) 2015-2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2017 Łukasz Rogalski <rogalski.91@gmail.com>
# Copyright (c) 2018 ssolanki <sushobhitsolanki@gmail.com>
# Copyright (c) 2018 Ville Skyttä <ville.skytta@iki.fi>
# Copyright (c) 2019-2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
# Copyrig... | ruchee/vimrc | vimfiles/bundle/vim-python/submodules/pylint/pylint/pyreverse/inspector.py | Python | mit | 12,248 | [
"VisIt"
] | e3c0590cc98c2e1e1343f1e72180cce7626852ed0c29e3e80e24913d4f20be6b |
#! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author: ljw
phones = {"1107": "OPPO 1107",
"15 Plus": "魅族 15 Plus",
"15": "魅族 15",
"1501-A02": "360奇酷 F4",
"1503-A01": "360奇酷 N4",
"1505-A01": "360奇酷 N4S",
"1505-A02": "360 N4S",
"1515-A01": "360奇酷 Q5"... | openatx/uiautomator2 | uiautomator2/ext/info/conf.py | Python | mit | 28,515 | [
"Galaxy"
] | ea6d977ca3ff719bc2dd9874052ed545b8a73b955756064e1db41bb9111365d6 |
#!/usr/bin/env python
## @package sct_register_straight_spinalcord_to_template
#
# Estimate deformation field between straightened spinal cord and template.
#
#
#
# USAGE
# ---------------------------------------------------------------------------------------
# TODO
#
# INPUT
# ---------------------------------------... | 3324fr/spinalcordtoolbox | dev/sct_register_straight_spinalcord_to_template.py | Python | mit | 16,038 | [
"Gaussian"
] | 5f871a994be16cf7382c04d919d7131f488afc81227211cdb4fc40c44a5554d3 |
# Inviwo Python script
import inviwopy
from inviwopy import qt as inviwoqt
import math
import time
import ivw.regression
import ivw.camera
steps = 50
network = inviwopy.app.network;
m = ivw.regression.Measurements()
for g in range(0,2):
isGauss = g == 0;
network.ImageLowPass.gaussian.value = isGauss
na... | Sparkier/inviwo | modules/basegl/tests/regression/img_lowpass/script.py | Python | bsd-2-clause | 828 | [
"Gaussian"
] | 83d5e9ed4d19dabf4d0cb7f821add79664120eb4b8fcda26df9a773a9bea4138 |
## TODO header
import vtk
from numpy import pi
debug = True
def VTK_smoothing(the_smoother, the_mapper, iterations, relaxation_factor):
# Standard way to perform mesh smoothing via relaxation in VTK.
# I'm pretty sure this is a direct replication of what mrMesh was
# doing before.
if debug: pr... | andregouws/mrMeshPy | mp_VTKProcessing.py | Python | mit | 4,997 | [
"VTK"
] | 3ab90d32b9dcf46e8f88deda978c2d89b569901519b97ea67a3d72dcad5f1d2b |
# Lint as: python3
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | tensorflow/docs | tools/tensorflow_docs/api_generator/signature.py | Python | apache-2.0 | 20,889 | [
"VisIt"
] | b307709ba93ceb69b69360dc2e0e1611d4ecac719369a13681638172fe1b7c24 |
#!/usr/bin/env python
description = """
Author: Hunter Cameron
Date: Aug 17, 2015
Description:
Small utility for manipulating a phylogenetic tree. It is possible to
keep (or remove) nodes based on a list supplied as a file or using a
regular expression to match tree node names. There is also the option
to rename nod... | hunter-cameron/Bioinformatics | python/prune_phylo_tree.py | Python | mit | 6,283 | [
"Biopython"
] | 2849e13c8dc55a33e563e9a7552350b8960c2d24c553eb2d4628beeb85e8b0d0 |
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | CraigHarris/gpdb | src/test/tinc/tinctest/test/test_core.py | Python | apache-2.0 | 33,537 | [
"ORCA"
] | 4c1785c693b4bf0ffc85de34dbd0bdceed8dce1088f799b4d791a0ce89086241 |
"""
KeepNote
General rich text editor that saves to HTML
"""
#
# KeepNote
# Copyright (c) 2008-2011 Matt Rasmussen
# Author: Matt Rasmussen <rasmus@alum.mit.edu>
#
# 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
... | brotchie/keepnote | keepnote/gui/richtext/__init__.py | Python | gpl-2.0 | 52,519 | [
"VisIt"
] | a3fdd70a83f78ffcb84dab5f793ea540a76ff72d92d38d0e4db144b42e195e16 |
# -*- coding: utf-8 -*-
# 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 Apach... | lym/allura-git | Allura/allura/lib/helpers.py | Python | apache-2.0 | 40,588 | [
"VisIt"
] | 6fb9e3d024017359ec488c67d8e62a014e0eee99cc9973948144ec9fbe3c9f71 |
#!/usr/bin/env python
#
# Wrapper script for starting the biopet-validateannotation JAR package
#
# This script is written for use with the Conda package manager and is copied
# from the peptide-shaker wrapper. Only the parameters are changed.
# (https://github.com/bioconda/bioconda-recipes/blob/master/recipes/peptide-... | zachcp/bioconda-recipes | recipes/biopet-validateannotation/biopet-validateannotation.py | Python | mit | 3,387 | [
"Bioconda"
] | 6e89955e6351387aaca6e4dbe608629c35da1fd8045608e3238424cda401e502 |
########################################################################
# $HeadURL: $
# File : JobWrapper.py
# Author : Stuart Paterson
########################################################################
""" The Job Wrapper Class is instantiated with arguments tailored for running
a particular job. The JobW... | sposs/DIRAC | WorkloadManagementSystem/JobWrapper/JobWrapper.py | Python | gpl-3.0 | 61,773 | [
"DIRAC"
] | b9e9869f33800005b62a019940df51864bb226ec17b5b4c7d3d7269ac289700c |
# 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... | bygloam/yapf | yapf/yapflib/split_penalty.py | Python | apache-2.0 | 14,617 | [
"VisIt"
] | b84d5ab6ed731479d4fc878420eec737f45a3360d9d5e72d07d3db0d2cd83ef1 |
#!/usr/bin/env python3
import ev3dev.ev3 as ev3
import time
def main():
print("--------------------------------------------")
print(" Buttons with LEDs")
print("--------------------------------------------")
ev3.Sound.speak("Buttons with L E Dees").wait()
# Opening LED dance (to show the LED synt... | Rosebotics/cwc-projects | lego-ev3/sandbox/Dave/digital_inputs/01_buttons_with_leds.py | Python | gpl-3.0 | 1,882 | [
"Amber"
] | 42c6abf4c43e7b3604aca32a578c35615f67e62480dfd2d96f82bc5a50c29e3c |
# -*- coding: utf-8 -*-
import datetime
import hashlib
import json
import os
import stat
from copy import deepcopy
from django.conf import settings
from django.core.files.storage import default_storage as storage
from django.core import mail
from django.core.management import call_command
from django.core.urlresolvers... | robhudson/zamboni | mkt/webapps/tests/test_tasks.py | Python | bsd-3-clause | 28,513 | [
"exciting"
] | 905efb6f0e80242c18c03f6740e2a94d57914a04674206e7d2200bf07a858bf4 |
# -*- coding: utf-8 -*-
'''
Unit tests for contacts viewer
@author: Laurent GAY
@organization: sd-libre.fr
@contact: info@sd-libre.fr
@copyright: 2015 sd-libre.fr
@license: This file is part of Lucterios.
Lucterios is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Li... | Lucterios2/contacts | lucterios/contacts/tests_contacts.py | Python | gpl-3.0 | 67,038 | [
"Dalton"
] | ec150114b490bb4fa6fe2b3d5b3157a746ccbde6194d166a6ae19bf1d58d82be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.