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 |
|---|---|---|---|---|---|---|---|
"""
Convert to and from Roman numerals
This program is part of "Dive Into Python", a free Python tutorial for
experienced programmers. Visit http://diveintopython.org/ for the
latest version.
This program is free software; you can redistribute it and/or modify
it under the terms of the Python 2.1.1 license, available... | TomConlin/dipper | dipper/utils/romanplus.py | Python | bsd-3-clause | 2,785 | [
"VisIt"
] | 4a5bdaba1b7d0dfcf101d2bcfd8c3049767346054ff6ea797de0687104a524c7 |
########################################################################
# $HeadURL$
########################################################################
"""
:mod: DataLoggingHandler
.. module: DataLoggingHandler
:synopsis: DataLoggingHandler is the implementation of the Data Logging
service in the DISET framew... | avedaee/DIRAC | DataManagementSystem/Service/DataLoggingHandler.py | Python | gpl-3.0 | 2,561 | [
"DIRAC"
] | 65037d046403acafe48b5e22b6fe3d81a29da0b2c99e205fe7855b7997688bf8 |
"""
A module to automate CIGALE. Currently works for a single galaxy.
It generates a configuration file and runs the standard pcigale
script. Requires pcigale already installed on the system.
"""
import numpy as np
import sys, os, glob, multiprocessing, warnings
from collections import OrderedDict
from astropy.table... | FRBs/DM | frb/galaxies/cigale.py | Python | bsd-3-clause | 16,473 | [
"Galaxy"
] | 125b01957b080658309490fb19b625d71d28ad0818eef008f3a1d346fd746ac6 |
# proxy module
from __future__ import absolute_import
from mayavi.filters.quadric_decimation import *
| enthought/etsproxy | enthought/mayavi/filters/quadric_decimation.py | Python | bsd-3-clause | 102 | [
"Mayavi"
] | 5541a5ac84a43ec1ea8b60176e9b3d89814436d9df17ff91697a7b95cf25053d |
"""
Actions manager for transcripts ajax calls.
+++++++++++++++++++++++++++++++++++++++++++
Module do not support rollback (pressing "Cancel" button in Studio)
All user changes are saved immediately.
"""
import copy
import os
import logging
import json
import requests
from django.http import HttpResponse, Http404
fro... | cognitiveclass/edx-platform | cms/djangoapps/contentstore/views/transcripts_ajax.py | Python | agpl-3.0 | 20,397 | [
"FEFF"
] | e3d57c02833fdd41b26919313fd6bec200c9bfa2359d4999cd1ac8caf9aa0a41 |
import pymol
from pymol import cmd, cgo
import numpy as np
def start():
pymol.finish_launching()
def draw_spheres(coords, model, frame, radius=0.5):
spheres=[]
for x in coords.reshape(coords.size/3,3):
spheres.extend([cgo.COLOR, 1.0, 0.0, 0.0])
spheres.extend([cgo.SPHERE, x[0], x[1], x[2],... | khs26/pele | pele/utils/pymolwrapper.py | Python | gpl-3.0 | 3,813 | [
"PyMOL"
] | ae035f601655f395bc071fed62da39b5da93cd1c7f5eb3cb8ba97c0a811678aa |
#!/usr/bin/env python
"""
Commands related to syncing copytext from Google Docs.
"""
import app_config
import os
from fabric.api import task
from oauth import get_document, get_credentials
from termcolor import colored
@task(default=True)
def update():
"""
Downloads a Google Doc as an Excel file.
"""
... | TylerFisher/birdseye | template/fabfile/text.py | Python | mit | 888 | [
"VisIt"
] | 5faf4fff3e9e030865fe9b3d50b30bfadb5d036696785f0799caa923f60ffc8c |
# basic post processing hooks
import re
import pandas
from snakemakelib.odo import cutadapt
from snakemakelib_oliver.odo import fastqc, bowtie2, htseq
__all__ = ['qc_fastqc_summary_hook',
'qc_cutadapt_post_processing_hook',
'qc_bowtie2_post_processing_hook',
'qc_htseq_post_processing_... | Oliver-Lab/snakemakelib-oliver | snakemakelib_oliver/workflows/qc/app/hooks.py | Python | mit | 1,635 | [
"HTSeq"
] | 36fd9bc437524626cd980bd1ab4a58c562e8bbf02124cd8c0f5d1ada5a3e1edd |
# Copyright(C) 2011, 2015, 2018 by
# Ben Edwards <bedwards@cs.unm.edu>
# Aric Hagberg <hagberg@lanl.gov>
# Konstantinos Karakatsanis <dinoskarakas@gmail.com>
# All rights reserved.
# BSD license.
#
# Authors: Ben Edwards (bedwards@cs.unm.edu)
# Aric Hagberg (hagberg@lanl.gov)
# Ko... | kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/networkx/generators/community.py | Python | gpl-3.0 | 19,874 | [
"Gaussian"
] | 6f823e1ef855e659b02becdcc352a3f6f38093ddc5e142968601dd0d730ef2f9 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# PYTHON_ARGCOMPLETE_OK
# Python module to manipulate 2D meshes for hydrodynamics purposes
# TODO: Change the following docstring as it is no more up to date
"""
This module contains utility function to manipulate, load, save and
convert surface mesh files used by the hydr... | LHEEA/meshmagick | meshmagick_cli.py | Python | gpl-3.0 | 46,540 | [
"ParaView",
"VTK"
] | 7b7b53bccecda537715ec4c06261a46f18278f9cefd50f10bcdfcfcd33f39990 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/test/bigdl/orca/learn/ray/pytorch/test_estimator_ray_dataset.py | Python | apache-2.0 | 2,640 | [
"ORCA"
] | 5e552f5e4fefed6be6da1b3207e15658d87af1bb93b8402421b2ec272dbd98a0 |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""The fsl module provides classes for interfacing with the `FSL
<http://www.fmrib.ox.ac.uk/fsl/index.html>`_ command line tools. This
was written to work with FSL version 4.1.4.
Change directory to p... | JohnGriffiths/nipype | nipype/interfaces/fsl/model.py | Python | bsd-3-clause | 88,382 | [
"Gaussian"
] | a12238ea9a44bc8b1d839fd33f927327bd7249145e9bdee3504aa83b429a288b |
"""BSSE: Basis Set Superposition Error module.
Defines a Setup-like class which has no properties that change anything,
except for an atomic basis set."""
import numpy as np
from ase.data import atomic_numbers
from gpaw.setup import BaseSetup
from gpaw.setup_data import SetupData
from gpaw.basis_data import Basis
fr... | robwarm/gpaw-symm | gpaw/lcao/bsse.py | Python | gpl-3.0 | 3,101 | [
"ASE",
"GPAW"
] | c2c93f3a55462fe1681b22dbf34ab59fe131163e22c4c23f8d82f5eee4b50755 |
# Copyright (c) 2016 Civic Knowledge. This file is licensed under the terms of the
# MIT License, included in this distribution as LICENSE.txt
""" Code generation for processing columns
"""
import ast
def file_loc():
"""Return file and line number"""
import sys
import inspect
try:
raise Exc... | CivicKnowledge/rowgenerators | rowgenerators/rowpipe/codegen.py | Python | mit | 18,422 | [
"VisIt"
] | edf834cf1fe60a14d0b983534306b09736826fe5494f2d873224e92832e27ab7 |
###########################################
# IMPORTS
###########################################
from perses.annihilation.lambda_protocol import LambdaProtocol
from nose.tools import raises
import os
running_on_github_actions = os.environ.get('GITHUB_ACTIONS', None) == 'true'
########################################... | choderalab/perses | perses/tests/test_lambda_protocol.py | Python | mit | 1,566 | [
"NAMD"
] | cb242389103305798b3f1ae0fa4d80bd9fb0cbfa357fc087af0bc84d3abf9c46 |
from _metadata import Metadata, MetadataException
from _template_metadata import TemplateMetadata
from _mtl_metadata import MTLMetadata
from _report_metadata import ReportMetadata
from _xml_metadata import XMLMetadata
from _ers_metadata import ERSMetadata
from _netcdf_metadata import NetCDFMetadata
from _jetcat_metadat... | alex-ip/geophys2netcdf | geophys2netcdf/metadata/__init__.py | Python | apache-2.0 | 1,121 | [
"NetCDF"
] | 02575e90fd8daaecee5f61bf2752618c3b6c2c2e36f13d2eded05e1bcd9d71ef |
#!/usr/bin/env python
########################################################################
# File : dirac-admin-get-pilot-logging-info.py
# Author : Stuart Paterson
########################################################################
"""
Retrieve logging info of a Grid pilot
"""
from __future__ import pr... | fstagni/DIRAC | Interfaces/scripts/dirac-admin-get-pilot-logging-info.py | Python | gpl-3.0 | 1,337 | [
"DIRAC"
] | 24ac1bdc82fb49d0a82bb88f59d259c60cf129af07ca1e02e6c710a2fc664970 |
import random
def do_me_a_unique_slug(model_cls, field):
"""
model_cls: A Django model to enforce uniqueness
field: The field that stores the unique name
"""
slug = do_me_a_slug()
while model_cls.objects.filter(**{'%s__iexact' % field: slug}).exists():
slug = do_me_a_slug()
return ... | praekelt/mc2 | mc2/controllers/base/namers.py | Python | bsd-2-clause | 1,993 | [
"Firefly"
] | 463f4116597022fa5b3801026c98ba59e97e1e0d9a62be76963b995bbe4ecf3d |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/fitting/explorer.py | Python | agpl-3.0 | 94,935 | [
"Galaxy"
] | 353442ce9eeb4f4634a132e5ad50649ec4c42ccd1dbb6fd1951c35eef6e96d9a |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import *
from . fixtures import *
import os
import email.iterators
from talon import quotations
import six
from six.moves import range
from six import StringIO
@patch.object(quotations, 'MAX_LINES_COUNT', 1)
def test_too_many_lines():
msg_bo... | mailgun/talon | tests/text_quotations_test.py | Python | apache-2.0 | 21,510 | [
"VisIt"
] | 6ab0235063b66376a36995e93d18baef8d48a3b3861daffc8cc7c2d70ba9d756 |
import numpy as np
from upho.analysis.mappings_modifier import MappingsModifier
class ElementWeightsCalculator(object):
"""Extract weights on elements from eigenvectors"""
def __init__(self, unitcell, primitive):
"""
Parameters
----------
unitcell : Phonopy Atoms object
... | yuzie007/ph_unfolder | upho/phonon/element_weights_calculator.py | Python | mit | 4,245 | [
"phonopy"
] | 36c41ba3889bab6b0016254da32f13870339389a44ed4ef5b2841437e85bdffe |
################################################################################
# Copyright (C) 2015 Hannu Hartikainen, Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Tests for the module bayespy.plot.
This file m... | dungvtdev/upsbayescpm | bayespy/tests/test_plot.py | Python | mit | 5,085 | [
"Gaussian"
] | 701d5ffa6e6ce6359d1a913959dfaaa8f8bb454129bddafc2caa848edb440a34 |
# -*- coding: utf-8 -*-
#
# Tax Calculator documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 9 17:06:10 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... | mcdeaton13/Tax-Calculator | docs/source/conf.py | Python | mit | 11,308 | [
"VisIt"
] | bd05eb33234bc1e965e49b9731d197374c0c8a5e6165e6a92918f36f70f4a91c |
# -*- coding: utf-8 -*-
# Copyright 2004-2018 Davide Alberani <da@erlug.linux.it>
# 2008-2018 H. Turgut Uyar <uyar@tekir.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | archerja/ilxr.py | imdb/parser/http/movieParser.py | Python | mit | 90,582 | [
"Brian"
] | 80c71c7aaed37370e5ba829d3ae287a15f442a7c140203b885245cbce4732417 |
"""@namespace IMP.pmi.metadata
Classes for attaching metadata to PMI objects.
"""
from __future__ import print_function, division
from IMP.pmi.tools import OrderedDict
import os
class Metadata(object):
"""Base class for all metadata"""
pass
class RootMetadata(Metadata):
"""Metadata that only makes sense... | shanot/imp | modules/pmi/pyext/src/metadata.py | Python | gpl-3.0 | 9,210 | [
"CRYSTAL"
] | 19f9e7bd298ba38b24161a5be91112d549c6e7b8558e1c2ae01a11da74382f12 |
# Copyright (C) 2010-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 v... | espressomd/espresso | testsuite/python/lb_streaming.py | Python | gpl-3.0 | 3,478 | [
"ESPResSo"
] | 60230cedcf7624b8c602dd65707577eebaeb268c73ae0535a9be7b69b3b6a185 |
# ============================================================================
#
# Copyright (C) 2007-2010 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... | kurtraschke/camelot | camelot/view/controls/navpane2.py | Python | gpl-2.0 | 7,756 | [
"VisIt"
] | 956d861615df70c072165afe72a90b4ec0ab3d3813b3a0fb1ba0de9afbcd39df |
"""
This module implements the functionality to take any Python expression as a
string and fix all numbers and other things before evaluating it,
thus
1/2
returns
Integer(1)/Integer(2)
We use the Python ast module for that, which is in python2.6 and later. It is
well documented at docs.python.org.
Some tips to und... | pernici/sympy | sympy/parsing/ast_parser.py | Python | bsd-3-clause | 3,517 | [
"VisIt"
] | 25eb57e4589d779546f21b932f25b52b9e31a0c7cf35396d87f92821071535b7 |
#!/usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
import cairo
import sys
import re
import gtk
## DataRange class
class DataRange:
## @var start
# start
## @var end
# end
## @var value
# value
def __init__(self, start = 0, end = ... | Gabrielcarvfer/NS3 | utils/grid.py | Python | gpl-2.0 | 54,401 | [
"FLEUR"
] | f07b6790a90f5c893a6cec5353aae07b6d074241ebbf1a4c58839ea9c62831e8 |
#!/usr/bin/env python
#
# Copyright (c) 2000 Autonomous Zone Industries
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
#
from DataTypes import UNIQUE_ID, ANY, ASCII_ARMORED_DATA, NON_NEGATIVE_INTEGER, MOD_VAL, INTEGER... | zooko/egtp | common/OurMessagesCommStrat.py | Python | agpl-3.0 | 1,686 | [
"VisIt"
] | 1078bbf4f9e9280825c046f5a1a93d458f416424a911ce64fc1cbab95583a313 |
# (C) British Crown Copyright 2010 - 2017, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any l... | zak-k/iris | lib/iris/tests/__init__.py | Python | gpl-3.0 | 43,664 | [
"NetCDF"
] | 7ea598e2e279a075e9b35926d7a98b6cb5f03ab8880aa78417abb9371958ccb5 |
from enthought.mayavi import mlab
def cutPlanes( volume, colormap='gist_ncar' ):
'''Display a 3D volume of scalars with two cut planes.
volume: a three dimensional array of scalars
'''
scalarField = mlab.pipeline.scalar_field( volume )
mlab.pipeline.image_plane_widget(scalarField,
... | chaubold/hytra | empryonic/plot.py | Python | mit | 815 | [
"Mayavi"
] | 79e49b8a3eed869cce3b5d1fc4ac06e52726aaf1d556d50cc791684111a2c5a1 |
import unittest
import tempfile
import os
import numpy as np
import caffe
def simple_net_file(num_output):
"""Make a simple net prototxt, based on test_net.cpp, returning the name
of the (temporary) file."""
f = tempfile.NamedTemporaryFile(delete=False)
f.write("""name: 'testnet' force_backward: tru... | gogartom/caffe-textmaps | python/caffe/test/test_net.py | Python | mit | 2,891 | [
"Gaussian"
] | 3b75859dd0752cc0ab4a0bee9ba791c5e51832bf05b1f8288631db5e2d330c18 |
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 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 ve... | labordoc/labordoc-next | modules/miscutil/lib/urlutils.py | Python | gpl-2.0 | 36,723 | [
"VisIt"
] | f821613cad1edfdb4b1b83bbd739d5815af303f082a1b6c35ecf473f4fe69c26 |
# (c) 2015, Brian Coca <bcoca@ansible.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 Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | krishnazure/ansible | lib/ansible/plugins/lookup/url.py | Python | gpl-3.0 | 2,024 | [
"Brian"
] | 07ffd78a33eff1f2b2fdf2271391515285084a565e840fdd968ef0ebb1c4e3ea |
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2012 Doug Blank
# Copyright (C) 2013 John Ralls <jralls@ceridwen.us>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the... | gramps-project/gramps | gramps/gen/const.py | Python | gpl-2.0 | 11,713 | [
"Brian"
] | b126fb55c1a5c158a9feeec3f5a6114ad2089df76c926ac6dadddfbcee35cd0d |
# coding: utf-8
# Copyright (c) Henniggroup.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals, \
absolute_import
"""
This script demonstrates the creation of ligand interfaces and
preoptimization screening of possible interfaces.
"""
from six.mo... | henniggroup/MPInterfaces | examples/ligand_interface.py | Python | mit | 7,593 | [
"Gaussian",
"VASP",
"pymatgen"
] | 3c4a7568cebef65bc8ce0b112d3baf9dc932c90d3dfd6623de4c04f3f5580024 |
#!/usr/bin/env python
# encoding: utf-8
import unittest
from nose.tools import assert_equal, assert_true, assert_false
from os.path import join, dirname, abspath
import datetime
from scrapers import caledonia
from scrapers import leaf
from scrapers import stgeorgeshall
from scrapers import fact
from scrapers import k... | paulfurley/liverpool-events-scrapers | tool/tests.py | Python | bsd-2-clause | 14,195 | [
"MOOSE"
] | 32b9f331d3a2bdb710eb8243d007d41f9259511fc18fa26ad361fb296cfff07e |
#!/usr/bin/env python
import os, sys, re
import argparse
from forcebalance.molecule import Molecule
from collections import defaultdict, OrderedDict
parser = argparse.ArgumentParser()
parser.add_argument('-bd', action="store_true", help='Label bond parameters')
parser.add_argument('-an', action="store_true", help='La... | hainm/open-forcefield-group | forcebalance/amber-intra/forcefield/highlight-amber.py | Python | gpl-2.0 | 6,409 | [
"Amber"
] | 21c611fb8caad1388f70d60c113406bf9de49ad0ad9d2553ea178aa2a158e716 |
../../../../../../share/pyshared/orca/scripts/toolkits/GAIL.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/GAIL.py | Python | gpl-3.0 | 62 | [
"ORCA"
] | 5e07f4a5a3b9b5f2d17c04cb622b80e19a73c8d827b0a815b5b9351c42dfdf1f |
from datetime import datetime
from projectp import db
from projectp.serializer import Serializer
def _epoch_to_datetime(epoch):
return datetime.fromtimestamp(float(epoch))
class Visit(db.Model, Serializer):
__tablename__ = 'visits'
id = db.Column(db.Integer, primary_key=True)
start_time = db.Colum... | Proj-P/project-p-api | projectp/visits/models.py | Python | mit | 1,274 | [
"VisIt"
] | cad382e96eed36e6dbbd9f5c0a40e3a9328104df5390aa639df2d70be3ffea05 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the LMS.
"""
from datetime import datetime, timedelta
from flaky import flaky
from textwrap import dedent
from unittest import skip
from nose.plugins.attrib import attr
import pytz
import urllib
from bok_choy.promise import EmptyPromise
from ..helpers import (
Uniqu... | Livit/Livit.Learn.EdX | common/test/acceptance/tests/lms/test_lms.py | Python | agpl-3.0 | 52,892 | [
"VisIt"
] | 4963198a81d715c6ddf20cf15c5cf8ce64a2d7a00d62d3f882a74d3dd13da52b |
# $Id$
#
# Copyright (C) 2003-2006 Rational Discovery LLC
# All Rights Reserved
#
import sys
from rdkit import six
class VLibNode(object):
""" base class for all virtual library nodes,
defines minimal required interface
"""
def __init__(self, *args, **kwargs):
self._children = []
self._parent... | rvianello/rdkit | rdkit/VLib/Node.py | Python | bsd-3-clause | 4,231 | [
"RDKit"
] | 075a7f2eae2e4202c80a770e428024b7b3816c36ac45bc744f4c3dda21e8e653 |
# -*- coding: utf-8 -*-
"""
iCSD testing suite
"""
import os
import numpy as np
import numpy.testing as nt
import quantities as pq
import scipy.integrate as si
from scipy.interpolate import interp1d
from elephant.current_source_density import icsd
import unittest
# patch quantities with the SI unit Siemens if it does... | INM-6/elephant | elephant/test/test_icsd.py | Python | bsd-3-clause | 40,049 | [
"Gaussian"
] | be1c9e398356cabbd3ed07746fee508e65ccd61ead40531c3e842ed76349ad3c |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides so-called "strategies" to determine the coordination environments of an atom in a structure.
Some strategies can favour larger or smaller environments. Some strategies uniquely identif... | dongsenfo/pymatgen | pymatgen/analysis/chemenv/coordination_environments/chemenv_strategies.py | Python | mit | 95,714 | [
"pymatgen"
] | cb54fa64efe93842b696d9f5feaf9876f9f4363d24830997f499ee460211f5d4 |
# safe_eval
# Copyrighted (C) Michael Spencer
#
# Source: http://code.activestate.com/recipes/364469/
import compiler
class Unsafe_Source_Error(Exception):
def __init__(self,error,descr = None,node = None):
self.error = error
self.descr = descr
self.node = node
self.lineno = getattr(node,"lineno",... | constantinius/YaaGame | kytten/safe_eval.py | Python | mit | 1,821 | [
"VisIt"
] | 5c78b54e0fd69e7b970d14bb298af32f1d2283042d8bb49a42d137837d1da098 |
###############################################################################
# #
# 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 ... | dparks1134/CompareM | comparem/aai_calculator.py | Python | gpl-3.0 | 18,604 | [
"BLAST"
] | 344aaf3b12bb62fceaea61fbc8ba34825007926a72ba3fc2e634c2ae5f572d18 |
#!/usr/bin/python
#Load matplotlib
import matplotlib.pyplot as plt
plt.style.use('ggplot')
#Loading the mnist data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
#Import tensor flow
import tensorflow as tf
sess = tf.InteractiveSession()
#Allo... | palanglois/augmentedReality | testTensorFlow/MNIST.py | Python | gpl-3.0 | 3,453 | [
"NEURON"
] | 2db4c6838d3b38aa89a02d387fd7549dbea4e8ce81670135edf3f5da7817c9dd |
#!python
# coding=utf-8
import os
import unittest
from pyaxiom.urn import IoosUrn
from pyaxiom.utils import urnify, dictify_urn
from pyaxiom.netcdf.sensors import TimeSeries
import logging
from pyaxiom import logger
logger.level = logging.INFO
logger.handlers = [logging.StreamHandler()]
class IoosUrnTests(unittest... | axiom-data-science/pyaxiom | pyaxiom/tests/test_urn.py | Python | mit | 15,973 | [
"NetCDF"
] | d962f8485a86bb57ef300c3b0dd5d06de941ded8c9d10ace7214b5d1af0c4f0c |
#!/usr/bin/env python
import argparse
from msmbuilder.io import backup
import mdtraj
import os
parser = argparse.ArgumentParser(prog='smooth_traj.py',
formatter_class=argparse.RawDescriptionHelpFormatter,
description='''version1''')
parser.add_argument(... | jeiros/Scripts | AnalysisMDTraj/smooth_traj.py | Python | mit | 2,194 | [
"MDTraj",
"NetCDF"
] | 5cd84852899bf095071d6172f72bcae87f3c95ed6e799c9f5fa9651ce6964c8a |
# Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""Unit tests for the `iris.analysis.stats.pearsonr` function."""
# Import iris tests first so that some things can be initial... | pp-mo/iris | lib/iris/tests/unit/analysis/stats/test_pearsonr.py | Python | lgpl-3.0 | 5,987 | [
"NetCDF"
] | 091d11ceb0fedc8d60c725ebdeae2da5ed5ed188e8da5caf25026bfcf2398529 |
# LOFAR IMAGING PIPELINE
#
# BBS Source Catalogue List
# Bart Scheers, 2011
# L.H.A.Scheers@... | kernsuite-debian/lofar | CEP/GSM/src/gsmutils.py | Python | gpl-3.0 | 48,239 | [
"Gaussian"
] | d44274e266f373a9015e1d888aede37507079523e88992ed7cf0a6e716244c98 |
# -*- coding: utf-8 -*-
#
# File: MusicRecruiting.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 2.0-beta10
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Gen... | uwosh/UWOshMusicRecruiting | content/__init__.py | Python | gpl-2.0 | 1,418 | [
"VisIt"
] | 869fadc0bfb1b58fa539656ba720a282c59f78a7d3d1003781608522bf9b938a |
"""
A module to automate CIGALE. Currently works for a single galaxy.
It generates a configuration file and runs the standard pcigale
script. Requires pcigale already installed on the system.
"""
import numpy as np
import sys, os, glob, multiprocessing, warnings
from collections import OrderedDict
from astropy.table... | FRBs/FRB | frb/galaxies/cigale.py | Python | bsd-3-clause | 17,194 | [
"Galaxy"
] | c4abe595273a7a2a47fa8292bf45721c674a3ff99a23d0605ecf16398e899756 |
"""
#;+
#; NAME:
#; igmguesses
#; Version 1.0
#;
#; PURPOSE:
#; Module for LineIDs and Initial guesses in IGM spectra with QT
#; Likely only useful for lowz-IGM
#; 14-Aug-2015 by JXP
#;-
#;------------------------------------------------------------------------------
"""
from __future__ import print_funct... | nhmc/xastropy | xastropy/xguis/igmguesses.py | Python | bsd-3-clause | 47,337 | [
"Gaussian"
] | b1f2050acdd44f4287a46cb4dc4c743039026b28417f3c2e5e8e5463f590d55c |
# -*- coding: utf-8 -*-
# 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 o... | googleapis/python-recaptcha-enterprise | scripts/fixup_keywords.py | Python | apache-2.0 | 6,239 | [
"VisIt"
] | 24b6aae75c7f912eb0f4ec0865d0a88b910b2903981c741dda0025290ccbf856 |
# -*- Mode: Python -*-
# vi:si:et:tw=4
"""
Capers - play at draughts
capers provides a visual interface to socalled checkers engines,
that search a given board for the 'best' move.
several drag and drop and point and click controls allow
tuning the behaviour of the program - select game types,
browse played games, e... | hungerburg/capers | share/capers.py | Python | gpl-2.0 | 86,514 | [
"TINKER"
] | aa35fe096dca00a5938fa46f0378443f407394af3f7ff39c1c6f5f470961071e |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# statpath - [insert a few words of module description on this line]
# Copyright (C) 2003-2011 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of ... | heromod/migrid | mig/shared/functionality/statpath.py | Python | gpl-2.0 | 5,631 | [
"Brian"
] | 56e8c78c7f4fca9c31112a7a1a427c2fa7a09175e92476cabe06cb4de0483dfb |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/topology/core.py | Python | gpl-2.0 | 1,924 | [
"MDAnalysis"
] | fb7d9def6cf3f67e86bd3dfde1c3480a6f79024ce224c81d12759511bd0ad295 |
"""
pyNEAT
Copyright (C) 2007-2008 Brian Greer
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in ... | liquidkarma/pyneat | pyNEAT/Species.py | Python | gpl-2.0 | 9,353 | [
"Brian",
"Gaussian"
] | e36c9da3dc25aae9bf3eac2432abaade529c13ebacc055ed2212095aa0020b63 |
# coding: utf-8
# # risklearning demo 2
#
# In the second risklearning demo, we consider multidimensional non-stationary Poisson processes with dependence structure given by a Gaussian copula.
# In[3]:
import risklearning.learning_frequency as rlf
reload(rlf)
# In[4]:
import pandas as pd
import numpy as np
imp... | munichpavel/risklearning | risklearning_demo_lowLevel.py | Python | mit | 10,292 | [
"Gaussian"
] | fcab6339e66a4e35a7e421f4db064e0b58e1f6935179b27fd7f715f5f1c47113 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import ctypes # type: ignore
import sys
from nixnet import errors
class PlatformUnsupportedError(errors.Error):
def __init__(self, platform):
message = '{0} is unsupported by this package.'.for... | epage/nixnet-python | nixnet/_lib.py | Python | mit | 1,898 | [
"VisIt"
] | 7b59ce6597f23d35158831571310447835d2ad60093680ad1dc9cb38f0dae321 |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2014-2016 bromix (plugin.video.youtube)
Copyright (C) 2016-2018 plugin.video.youtube
SPDX-License-Identifier: GPL-2.0-only
See LICENSES/GPL-2.0-only for more information.
"""
from six.moves import range
import re
import requests
from ....kodion.utils import... | jdf76/plugin.video.youtube | resources/lib/youtube_plugin/youtube/helper/signature/cipher.py | Python | gpl-2.0 | 8,937 | [
"ADF"
] | fd9a8d8700b67554d73dd59b479c7100d318b3c10cfb81e051f406ee85521923 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-dialogflow | tests/unit/gapic/dialogflow_v2beta1/test_documents.py | Python | apache-2.0 | 108,344 | [
"Octopus"
] | 0274060e24e9f82fd9096117c97b131629a63b4a7c2e35db2f755b96b75b7444 |
import graphviz as gv
from stargate import visit, value
from random import choice, seed
__author__ = 'Lai Tash'
class GraphBuilder(visit.Visitor):
arrow_colors = [
'black', 'green', 'red', '#770099', 'blue', 'magenta',
'#77aa00', '#007799', 'darkgreen'
]
styles = {
'Node': {
... | LaiTash/starschematic | stargate/exports/graphviz.py | Python | gpl-3.0 | 2,984 | [
"VisIt"
] | c81d3187719d565fab4ad7d2eaa61c69a2582770a7410b2ab1a34d33df5f21a6 |
#
# Copyright 2015 Universidad Complutense de Madrid
#
# This file is part of Numina
#
# Numina 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 ... | Pica4x6/numina | numina/constants.py | Python | gpl-3.0 | 930 | [
"Gaussian"
] | cec56c516e4432a9e2e59da2d7e14adfc19d0436c5e5c2ec640883306aa9c7c5 |
from __future__ import unicode_literals
import json
from tests import TestCase, with_settings, logged_in
from nose.tools import eq_
from catsnap import Client
from catsnap.table.image import Image
from catsnap.table.tag import Tag
from catsnap.table.image_tag import ImageTag
from catsnap.table.album import Album
from... | ErinCall/catsnap | tests/web/test_edit_image.py | Python | mit | 4,857 | [
"FLEUR"
] | 169bf785f2fb71291b0f58835e7d87762bc46b7c48d6bb56fc7b9582028b1723 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2022, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
from .plot import lorentzian, gaussian, Plot
| exa-analytics/exatomic | exatomic/plotter/__init__.py | Python | apache-2.0 | 183 | [
"Gaussian"
] | 980877b56e4dfd93a8046105e419c888b52b21ac4091be329d4e98d6ccbe7b7e |
""" This is a test of the chain
FileCatalogClient -> FileCatalogHandler -> FileCatalogDB
It supposes that the DB is present, and that the service is running
"""
# pylint: disable=invalid-name,wrong-import-position
from __future__ import print_function
from __future__ import absolute_import
from __future__ imp... | yujikato/DIRAC | tests/Integration/DataManagementSystem/Test_Client_DFC.py | Python | gpl-3.0 | 40,265 | [
"DIRAC"
] | 76534b1031a2d5ab863779e2003e982e9eacba787d207419be32104d57175614 |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattergl"
_path_str = "scattergl.marker"
_valid_props = {
"autocolorscale",
... | plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scattergl/_marker.py | Python | mit | 59,088 | [
"Bowtie"
] | 6e05345ee6fcd5f0c80b1746f9aac786ba48ba0e5119579e1fc0b56b8b31312f |
from ddsc.core.util import ProjectWalker, KindType
from ddsc.core.ddsapi import DataServiceAuth, DataServiceApi
from ddsc.core.fileuploader import FileUploader, FileUploadOperations, ParentData, ParallelChunkProcessor
from ddsc.core.parallel import TaskRunner
class UploadSettings(object):
"""
Settings used to... | Duke-GCB/DukeDSClient | ddsc/core/projectuploader.py | Python | mit | 22,522 | [
"VisIt"
] | 0b579311ba7ae419d2e23c9c1808789c1d1e5d3f962115156c88686075e0fc1e |
# any netcdf module level stuff goes here (after all it's the init file)
from __future__ import absolute_import
from .region_model_repository import RegionModelRepository, RegionConfigError
from .arome_data_repository import AromeDataRepository
from .arome_data_repository import AromeDataRepositoryError
from .geo_ts_r... | felixmatt/shyft | shyft/repository/netcdf/__init__.py | Python | lgpl-3.0 | 516 | [
"NetCDF"
] | cb61bdc27e0a376420d2be37ebdc9f4ba22c90d76ca2f6635b944b9ef8f38013 |
# Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 0.5s/hmm_crossvalidation_force_10_states.py | Python | mit | 27,327 | [
"Mayavi"
] | 4a1030edfcd1c7d769c99149c5747a25842a849a76060a5f12e2cbd860812ac3 |
"""
set of tools to deal with crispex data
"""
import numpy as np
import scipy.interpolate as interp
def write_buf(intensity, outfile, wave=None, stokes=False):
''' Writes crispex image and spectral cubes, for when the data is already
resident in memory. To be used when there is ample memory for all
... | M1kol4j/helita | helita/io/crispex.py | Python | bsd-3-clause | 7,675 | [
"NetCDF"
] | c402ab6cc862a77d3bee848c54a2b75a9fbab0d35ae8d87bec7b56ad55f12335 |
from nutils import testing, export
import os, tempfile, pathlib, treelog
import numpy
class mplfigure(testing.TestCase):
def setUp(self):
super().setUp()
self.outdir = pathlib.Path(self.enter_context(tempfile.TemporaryDirectory()))
self.enter_context(treelog.set(treelog.DataLog(str(self.outdir))))
@t... | joostvanzwieten/nutils | tests/test_export.py | Python | mit | 7,788 | [
"VTK"
] | ce9bfd75b005f50ca3246005e13383831035f4c6a12c2aea69f2b0620c9783fe |
# -*- coding: utf-8 -*-
import os
import socket
from dirac.lib.base import *
from DIRAC import gConfig, gLogger
from dirac.lib.diset import getRPCClient
from DIRAC.Core.Utilities.List import uniqueElements, fromChar
from dirac.lib.credentials import getUserDN, getUsername, getAvailableGroups
from dirac.lib.credentials... | DIRACGrid/DIRACWeb | dirac/controllers/info/general.py | Python | gpl-3.0 | 30,979 | [
"DIRAC"
] | 7823a65d0b35c18d76ae1e51dacbfebd7c77d6483e8c8b1ff5cf84ef82ab6b33 |
#! /usr/bin/env python2.7 -3
__doc__ = '''
extract.py
This script implements the "transposon phylogeny extraction scheme".
As input, it takes the result of a blast search for one or several
transposons against a single fly genome, and it writes for each one
a fasta file suitable for multiple alignment. The curr... | jpassaro/seq-align-prep | extract.py | Python | gpl-2.0 | 5,024 | [
"BLAST"
] | ddc046beac1be573aa428b7e1ffdb392e43ccb3170994b5d3a7b8e06e1ddd075 |
#-------------------------------------------------------------------------------
# rbtlib: __init__.py
#
# rbtlib module initialization.
#-------------------------------------------------------------------------------
# The MIT License (MIT)
# Copyright (c) 2016 Brian Minard
#
# Permission is hereby granted, free of c... | bminard/rbtlib | rbtlib/__init__.py | Python | mit | 1,653 | [
"Brian"
] | 95993c77901a99a8eeae81465461a6d7154ef2c7fcc665e0b518113ed860c597 |
import os
import numpy as np
import numpy.ma as ma
from pylru import lrudecorator
import rasterio
from ..rasterset import Raster
from .. import utils
REFERENCE_YEAR = 2000
class Hyde(object):
def __init__(self, year):
self._year = year
return
@property
def year(self):
return self._year
@proper... | ricardog/raster-project | projections/hpd/hyde.py | Python | apache-2.0 | 1,764 | [
"NetCDF"
] | 7ea853f9a92ad9eaaee58d252c7dbd3ebc78dd776b8024206bd7f5d9fe75f9c3 |
"""
This is the boilerplate default configuration file.
Changes and additions to settings should be done in the config module
located in the application root rather than this config.
"""
config = {
# webapp2 sessions
'webapp2_extras.sessions': {'secret_key': '_PUT_KEY_HERE_YOUR_SECRET_KEY_'},
# webapp2 au... | mats116/ElasticBigQuery | boilerplate/config.py | Python | lgpl-3.0 | 4,562 | [
"VisIt"
] | 4e1e273057c8680b53bf419e0e8366d2a13890a93deb055c231c8b9db34d5b1d |
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Descriptive metrics for Clovis.
When executed as a script, prints the amount of data attributed to Ads, and
shows a graph of the amount of data to downlo... | danakj/chromium | tools/android/loading/metrics.py | Python | bsd-3-clause | 7,135 | [
"VisIt"
] | 8043694fe5c5f7a1ccc8dc22d91c1334e0b8ec5fbddf937ebe0a6d319af51ee9 |
# Orca
#
# Copyright 2008-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... | ruibarreira/linuxtrail | usr/lib/python3/dist-packages/orca/tutorialgenerator.py | Python | gpl-3.0 | 30,742 | [
"ORCA"
] | 972024aef03bbcf07b3a5e76d30f6f1a4b7c7b37dc584ceac2d23f023e2d90df |
class Visitor(object):
def visit(target):
pass
class Iterator(object):
def __init__(self, root):
self.it = iter(list(root))
self.last_it = None
self.visitor = Visitor()
def __iter__(self):
return self
def next(self):
try:
item = next(self.it... | bhdz/Brace.Shell | implementation.1/modules/bracesh/base/text/iterate.py | Python | bsd-2-clause | 2,198 | [
"VisIt"
] | 95fa8c5f8be850772dbe5bf541a885bf3e721d6cf97cb87a6dd30a293d9252ba |
# -*- coding: utf-8 -*-
# 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... | sasha-gitg/python-aiplatform | tests/unit/gapic/aiplatform_v1beta1/test_prediction_service.py | Python | apache-2.0 | 54,222 | [
"Octopus"
] | aab6b3480579285e358ca7af8bdf758459fd2bae38b3bea6c8226804e241c476 |
# Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Bio.SearchIO parser for BLAST+ plain text output formats.
At the moment this is a wrap... | updownlife/multipleK | dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SearchIO/BlastIO/blast_text.py | Python | gpl-2.0 | 5,732 | [
"BLAST",
"Biopython"
] | ae82d2630cd62da81ea16941da5e4cf47e7dee1369c1e1c61af6016e04478f1c |
#!/usr/bin/env python
# THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) 2008-2016 NIWA
#
# 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 yo... | benfitzpatrick/cylc | lib/cylc/scheduler.py | Python | gpl-3.0 | 77,150 | [
"BLAST"
] | 21bfde3db42151b8448673031685314f0f39a54eb389942ff675d8c31b82394e |
# -*- coding: utf-8 -*-
import datetime
import os
import json
from unittest import TestCase
from ehb_client.requests.subject_request_handler import SubjectRequestHandler, \
Subject
from ehb_client.requests.external_system_request_handler import ExternalSystem, \
ExternalSystemRequestHandler
from ehb_client.re... | chop-dbhi/ehb-client | ehb_client/tests/integ_tests/cases/request/tests.py | Python | bsd-2-clause | 38,676 | [
"exciting"
] | f3aff7ed87d8f0ece63b2976807b661db71b89bf45a61ba2c69ecf9ff8915410 |
from argparse import ArgumentParser, FileType
from io import StringIO
from operator import attrgetter
from subprocess import run
import sys
from pysam import AlignmentFile
def parse_args():
parser = ArgumentParser(description="Find reads that map to a position.")
parser.add_argument("bam_file", type=FileType... | cfe-lab/MiCall | micall/utils/find_reads_in_sam.py | Python | agpl-3.0 | 1,200 | [
"pysam"
] | 52e1860eb5e33a5d44d54b64f46385f5ab8ce1ed0a2e044e0d0c19d179180e64 |
#!/usr/bin/env python
# Full license can be found in License.md
# Full author list can be found in .zenodo.json file
# DOI:10.5281/zenodo.1199703
# ----------------------------------------------------------------------------
"""General Instrument for loading pysat-written netCDF files.
Properties
----------
platform
... | rstoneback/pysat | pysat/instruments/pysat_netcdf.py | Python | bsd-3-clause | 9,543 | [
"NetCDF"
] | 73a66dc1b9ab50d83b0f2a933afc6bc41b7131c3d6c81627610ce5cc3fd1459a |
"""
@name: /home/briank/workspace/PyHouse/src/Modules/Core/_test/test_install.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2017-2017 by D. Brian Kimmel
@license: MIT License
@note: Created on May 5, 2017
@summary: Test
"""
__updated__ = '2017-05-05'
# Import system... | DBrianKimmel/PyHouse | Project/src/Modules/Core/_test/test_install.py | Python | mit | 1,550 | [
"Brian"
] | 3b9eee5ae1534f05ff061247315115fc2c1dce3ac4d786da4d87ebffaa185aa5 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-compute | tests/unit/gapic/compute_v1/test_instance_templates.py | Python | apache-2.0 | 127,769 | [
"Octopus"
] | ed41a8fc81eefafdce0aefb0c6dacc1e4f4f39e0c8c4aaed0bbcbca9b718c4a9 |
from __future__ import division
import numpy as np
from joblib import Parallel, delayed
from scipy.special import wofz
from scipy.optimize import curve_fit
from scipy.sparse import spdiags
from scipy.sparse import lil_matrix
from scipy.sparse.linalg import spsolve
from scipy.interpolate import interp1d
from scipy.s... | I2Cvb/prostate | scratch/metabolite_fitting.py | Python | mit | 15,001 | [
"Gaussian"
] | 10ea3cf2c3d14b2d0129f7dc8003c294d07df128b09d648b5ed9e5206b750cd4 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | e-gob/plataforma-kioscos-autoatencion | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_pool.py | Python | bsd-3-clause | 18,914 | [
"VisIt"
] | f7044542f96e72265c09b67a8c000c75b91f4365385b815961cc924ab294ed91 |
from splinter import Browser
import log, config, time
def run():
browser = Browser('firefox', profile=config.FIREFOX_PROFILE_PATH)
browser.visit('http://www.tf2outpost.com/trades')
buttonList = browser.find_by_css(".trade_bump")
listSize = len(buttonList)
log.logMessage("Bumping " + str(listSize) ... | salolivares/outpostAutoBump | outpostAutoBump/bump.py | Python | mit | 535 | [
"VisIt"
] | 444bb1e07362e44c2148123313e2a6de0459fc73439a3921ad04ebe3d9abfa5a |
########################################################################
# File : ProcessMonitor.py
# Author : Stuart Paterson
########################################################################
""" The Process Monitor utility allows to calculate cumulative CPU time and memory
for a given PID and it's proc... | vmendez/DIRAC | Core/Utilities/ProcessMonitor.py | Python | gpl-3.0 | 18,432 | [
"DIRAC"
] | 60b8a0f1b9e23aa4ba6dbbe672b861ddbf521e80ca71383cb55fdeae675f08e1 |
#
# This is a sample ccp1guirc file
############################## User Defaults ######################
#
# The following are default values that you can modify here, or with
# the Edit -> Options dialogue. Any updated values will be saved back
# to the file.
#
# You can also set the locations of the scripts to run ... | alexei-matveev/ccp1gui | scripts/ccp1guirc.py | Python | gpl-2.0 | 9,382 | [
"Dalton",
"GAMESS"
] | 17f1d437b40dff5b029620cbbbaf47a0a5a367d249a1a5f9db248da88a38340e |
"""
Author: Jon Ander Gomez Adrian (jon@dsic.upv.es, http://personales.upv.es/jon)
Version: 2.0
Date: October 2016
Universitat Politecnica de Valencia
Technical University of Valencia TU.VLC
"""
import sys
import numpy
from sklearn import metrics
class MyKernel:
"""
This class implements ... | jonandergomez/machine_learning_for_students | machine_learning/MyKernel.py | Python | mit | 1,767 | [
"Gaussian"
] | 7cf279f4ec652bc19037796dedcd4ef967acc44297d1bcc5d735fe51e29b6895 |
"""
KeepNote
Editor widget in main window
"""
#
# KeepNote
# Copyright (c) 2008-2009 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
# the Free Sof... | brotchie/keepnote | keepnote/gui/editor_text.py | Python | gpl-2.0 | 14,615 | [
"VisIt"
] | d236a9f832ba59c97bb8781e5e5b9673511f9693fda1ba3e5896034d7586d855 |
#
# 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... | espressomd/espresso | testsuite/python/nsquare.py | Python | gpl-3.0 | 2,977 | [
"ESPResSo"
] | 9f36d9351cb14cdb18f2f4ad9b4f566f268fbcc7543cacda1f6d13f681c12389 |
from moviepy.editor import VideoFileClip
from IPython.display import HTML
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
import math
import os
def grayscale(img):
"""Applies the Grayscale transform
This will return an image with only one color channel
but NO... | KyleARector/SelfDrivingCar | P1-FindingLaneLines/line_detection.py | Python | gpl-3.0 | 8,714 | [
"Gaussian"
] | 6922adc40b9d70195eed159bdee1a421a6334ba65ddb5f7513e69feb8f05d3e8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.