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 |
|---|---|---|---|---|---|---|---|
"""
Migration script to add the cleanup_event* tables.
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
import sys, logging
from galaxy.model.custom_types import *
from sqlalchemy.exc import *
import datetime
now = datetime.datetime.utcnow
log = logging.ge... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/model/migrate/versions/0105_add_cleanup_event_table.py | Python | gpl-3.0 | 6,015 | [
"Galaxy"
] | 08eed784f0e4acd93fb9b6201c856163bcdc4725f07df9b2bdaa9b46251f6a9c |
# Copyright (C) 2007, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import os, subprocess, tempfile
from zeroinstall import SafeException
from logging import info, warn
from support import unpack_tarball
class SCM:
def __init__(self, root_dir, options):
self.options = options
se... | 0install/0release | scm.py | Python | lgpl-2.1 | 6,517 | [
"VisIt"
] | dfff801e727f292a1a3036161700a39db6297244d0bab4859aaf0c1d4433fae5 |
# ----------------------------------------------------------------------------
# Copyright (c) 2014--, burrito development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ---------------------------------------------------... | ssorgatem/burrito | burrito/util.py | Python | bsd-3-clause | 31,476 | [
"BLAST"
] | f80f5f67d614eba3be116c2c7a8ad2f54c1e2fae1ba8054544129d5030a1bcc9 |
# 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 required by applica... | aam-at/tensorflow | tensorflow/python/ops/gradients_util.py | Python | apache-2.0 | 40,282 | [
"VisIt"
] | f088e7db9134439fcdf16c16b37dcca3f3aa91589ca54da3ab5c5df0421d25ad |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | neilhan/tensorflow | tensorflow/contrib/factorization/python/ops/gmm.py | Python | apache-2.0 | 7,521 | [
"Gaussian"
] | c63b2de54613dc01f7c9a4f19fd3756427afe473f94f8bbc2336407f94142a21 |
""" Main class for doing consistency checks, between files in:
- File Catalog
- TransformationSystem
Should be extended to include the Storage (in DIRAC)
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import os
import time
import... | yujikato/DIRAC | src/DIRAC/DataManagementSystem/Client/ConsistencyInspector.py | Python | gpl-3.0 | 28,520 | [
"DIRAC"
] | 3d9617b2fa596905c035d4d221a40bb17bd9c8d4669b2f7cc0871eb868c4d87d |
"""Polynomial factorization routines in characteristic zero. """
from sympy.polys.galoistools import (
gf_from_int_poly, gf_to_int_poly,
gf_degree, gf_from_dict,
gf_lshift, gf_add_mul, gf_mul,
gf_div, gf_rem,
gf_gcd, gf_gcdex,
gf_sqf_p,
gf_factor_sqf, gf_factor)
from sympy.polys.densebasic... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/sympy/polys/factortools.py | Python | agpl-3.0 | 32,721 | [
"Gaussian"
] | f550c3714d85c6b2d96cc7dd157d4582be6aad628d8d71dc9d506067fe00eff5 |
"""A module containing convenient methods for general machine learning"""
from __future__ import print_function
from builtins import object
__author__ = 'wittawat'
import autograd.numpy as np
import time
class ContextTimer(object):
"""
A class used to time an executation of a code snippet.
Use it with w... | wittawatj/interpretable-test | freqopttest/util.py | Python | mit | 5,510 | [
"Gaussian"
] | 6ea2cc8fc08f6e2b8d2f0633336b9ec06a72df73f6113007841da1c1223e33d1 |
import numpy as np
from numba import vectorize, float32, float64
from math import exp
def hist2d(x, y, nbins=30, norm=False, rx=0.08):
''' Computes the 2D histogram of the data and the x,y coordinates
of the middle of the bins. OPTIONS; nbins (number of bins), norm,
rx (range in x as % of the min/max, pre... | M1kol4j/helita | helita/utils/utilsmath.py | Python | bsd-3-clause | 23,032 | [
"Gaussian"
] | 0c09fd39878bc463c212bd2c5a7eb7a755a93cdec8b7c882be6865a801d038fd |
# $Id$
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
Template for a plugin
======================
You can use this file to write plugins that conform to the plugin API.
Names that are supposed to b... | pslacerda/GromacsWrapper | gromacs/analysis/plugins/template_plugin.py | Python | gpl-3.0 | 7,235 | [
"Gromacs"
] | 8d8909121f876a7d8bd6f54ca1354f7902fc05ec84c63415018e3343db88a14b |
#!/usr/bin/env python
# Copyright 2014-2020 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... | sunqm/pyscf | pyscf/pbc/tdscf/uks.py | Python | apache-2.0 | 1,608 | [
"PySCF"
] | 5b60785a6dd8905439f32ad1e6efd8eb00e6a685eadb48d48667965ee683fc0a |
# Copyright 2013 by Zheng Ruan (zruan1991@gmail.com).
# 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.
"""Code for Codon Alphabet.
CodonAlphabet class is inherited from Alphabet... | zjuchenyuan/BioWeb | Lib/Bio/codonalign/codonalphabet.py | Python | mit | 2,100 | [
"Biopython"
] | 1f310d89e20af243d2112849ad25874ad014aca76de9b10be77433e141a11034 |
#########################################################
# YAM(BO)PY(THON) Library
#
# Generation of Yambo input files using python
#
# Authors: A Molina-Sanchez, HPC Miranda
#
# January 2016
#########################################################
# Bethe-Salpeter spectra calculations at given times
# of a Real-... | henriquemiranda/yambopy | scripts/realtime/rt-bse.py | Python | bsd-3-clause | 4,146 | [
"Yambo"
] | 4c2ebec02fb921f8c4a8d608b96a4fbfa600939c9335f75ce4c3f627dc16369c |
# -*- coding:utf-8 -*-
## src/chat_control.py
##
## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com>
## Copyright (C) 2006-2017 Yann Leboulanger <asterix AT lagaule.org>
## Copyright (C) 2006-2008 Jean-Marie Traissard <jim AT lapin.org>
## Nikos Kouremenos <kourem AT gmail.com>
## ... | jabber-at/gajim | src/chat_control.py | Python | gpl-3.0 | 144,734 | [
"VisIt"
] | 4d00427ba86765daf7933bf90b1971a8ac6edd2570fb8e5f0e2143b9331b864c |
from random import randint
from time import sleep
from lettuce import *
from rapidsms.contrib.locations.models import Location
from survey.features.page_objects.question import BatchQuestionsListPage, AddQuestionPage, ListAllQuestionsPage, CreateNewQuestionPage, CreateNewSubQuestionPage, EditQuestionPage
from survey.mo... | antsmc2/mics | survey/features/Question-steps.py | Python | bsd-3-clause | 21,831 | [
"VisIt"
] | 4a2e335a508fdf338376cf435e2fbd69bc505fedea04f9f45e9676be4f936c46 |
import os
import click
from cli.form import CLIFormWrapper
from errors import MissingCredentialsError
from medicover import Medicover
VISIT_PREFERENCE_PARAMS_DATA = (
('time_from', 'Not before hour? FORMAT: HH:MM e.g. 12:00'),
('time_to', 'Not after hour? FORMAT: HH:MM e.g. 12:00'),
('date_from', 'Not b... | jakubkbak/medicover-cli | medicover/main.py | Python | mit | 1,524 | [
"VisIt"
] | 8f28e541f70858572e43c4557d3f9a1ace3ae73c9561d0b5062c381272c20783 |
"""moose_to_neuron.py:
Convert moose model to NEURON.
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2015, Dilawar Singh and NCBS Bangalore"
__credits__ = ["NCBS Bangalore"]
__license__ = "GNU GPL"
__version__ = "1.0.0"
__maintainer__ = "Dilawar Sin... | BhallaLab/benchmarks | moose_nrn_equivalence_testing/comparision_with_simple_HH_model_additional_mechanism/moose_to_neuron.py | Python | gpl-2.0 | 6,581 | [
"MOOSE",
"NEURON"
] | f1bf485d12b663ff1f876e7587537f713efa5f8d0a6161791453ea656a0ea65e |
# -*- coding: utf-8 -*-
#
# Calls tracer after every successful transaction.
# Also supplies the 'tracer' command.
#
# Copyright (C) 2015 Jakub Kadlčík
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Pu... | jsilhan/dnf-plugins-extras | plugins/tracer.py | Python | gpl-2.0 | 3,649 | [
"VisIt"
] | c6e8b55032683887c8ce3e20515a530198201eb2fcf1190d7155850889ca65f9 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
import numpy as np
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.lattice import Lattice
from pymatgen.core.structure import Structure
from pymatgen.symmetry.analy... | mbkumar/pymatgen | pymatgen/symmetry/tests/test_kpath_lm.py | Python | mit | 7,626 | [
"pymatgen"
] | bc2db52c5fa7b435f20441eb163e2f69d83862c5664c4d031289416aca623209 |
#* 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/lgpl-2.1.html
import os
i... | nuclear-wizard/moose | python/peacock/Input/BlockInfo.py | Python | lgpl-2.1 | 14,068 | [
"MOOSE"
] | f27e6bd6a9034b9a1622f18cebdc4a4c65fac255b87008ad0447b862f39c5348 |
# Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
import os
from subprocess import call, Popen
import random
import re
import tempfile
import flask
import numpy as np
import werkzeug.exceptions
from .forms import ImageClassificationModelForm
from .job import I... | Lucaszw/DIGITS | digits/model/images/classification/views.py | Python | bsd-3-clause | 39,839 | [
"NEURON"
] | 6fe504d03e8618e03e8edb1da3d8aac30e233fdd1e84d80ba783a0cbf69aa972 |
''' EmailAction
This action writes all the necessary data to a cache file ( cache.db ) that
will be used later by the EmailAgent in order to send the emails for each site.
'''
__RCSID__ = '$Id$'
import os
import sqlite3
from DIRAC import S_ERROR, S_OK
from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAct... | andresailer/DIRAC | ResourceStatusSystem/PolicySystem/Actions/EmailAction.py | Python | gpl-3.0 | 3,602 | [
"DIRAC"
] | 347a7932616bffaf473c214f5ebf5649959dbc162dca952c127cb439e6f82e28 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | to266/hyperspy | hyperspy/_components/voigt.py | Python | gpl-3.0 | 7,618 | [
"Gaussian"
] | 19b14b2275f3c1361a06c710450ef614eab37444993af4b0d582978b5991062f |
"""
Functions to run curve shifting techniques on lightcurves produced by sim.multidraw.
We define the class runresults that "holds" results obtained by curve shifting techniques (saved into pickles).
"""
#import pycs.gen.lc
import pycs.sim.draw
import pycs.gen.util
import pycs.gen.lc
import numpy as np
import os
impo... | COSMOGRAIL/PyCS | pycs/sim/run.py | Python | gpl-3.0 | 17,656 | [
"CASINO"
] | 0db8a59358ae87d530b02b8503845a82f833d311f8acb2bae8b101bf18673816 |
import unittest
from mjhmc.samplers.markov_jump_hmc import ContinuousTimeHMC, HMCBase, MarkovJumpHMC, HMC, ControlHMC
from mjhmc.misc.distributions import TestGaussian, Gaussian
import numpy as np
from mjhmc.misc.utils import overrides
n_seed = 1
eps = .05
class TestControl(unittest.TestCase):
"""
Serves as t... | rueberger/MJHMC | mjhmc/tests/test_continuous_samplers.py | Python | gpl-2.0 | 3,727 | [
"Gaussian"
] | 169f814c78e1b2b274914541d1eb33c417f7c81846156ab534ac2dd0c29a263f |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import unittest2 as unittest
import json
import os
from monty.json import MontyDecoder
from pymatgen.analysis.defects.dilute_solution_model import *
import random
try:... | aykol/pymatgen | pymatgen/analysis/defects/tests/test_dilute_solution_model.py | Python | mit | 4,733 | [
"pymatgen"
] | 82b6a4e0a2425d62ce1f6d6c3a0a30d0d9501954411a5e38797876caf106dc30 |
#!/usr/bin/env python2
desc="""Scan alignments (SAM/BAM) for structural variants.
Detection of deletions, duplications and inversions from paired reads is implemented.
In addition, deletions and duplications are detected from deviations from mean depth
of coverage.
By default, the program dumps reads of interest and ... | lpryszcz/bin | bam2sv.py | Python | gpl-3.0 | 25,590 | [
"pysam"
] | 64d7f7d5f214adce4186e73bf7202ba142682e5e309a2e60d48a92d7a9949a36 |
# -*- coding: utf-8 -*-
import os
import sqlite3
import sys
try:
from StringIO import StringIO
except ImportError:
from io import StringIO # New stdlib location in 3.0
from gpn.tests import _unittest as unittest
from gpn.tests.common import MkdtempTestCase
from gpn.node import Node
from gpn.connector import... | shawnbrown/gpn | gpn/tests/test_node.py | Python | mit | 19,713 | [
"COLUMBUS"
] | 729574ccf7b1a68a3d38eeff4d19e49f2c2b0eb0d281f1cc00fb2a47220304e3 |
# -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import include, url
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import ensure_csrf_cookie
from django.views.generic import TemplateView
from django.urls import reverse_lazy
from rest_framewor... | catmaid/CATMAID | django/applications/catmaid/urls.py | Python | gpl-3.0 | 41,647 | [
"NEURON"
] | 9bedfa82be5eeeb50d709286d95b7447e526f5b3dc6214297f6930e1ba5363c0 |
import numpy as np
import scipy
import scipy.stats as stats
from scipy.misc import factorial
class Distribution(object):
def dim(self):
raise NotImplementedError('abstract base class')
def predict(self, cond=None):
raise NotImplementedError('abstract base class')
def sample(self, cond=N... | davmre/treegp | distributions.py | Python | gpl-3.0 | 8,292 | [
"Gaussian"
] | b749f3c0f3b8b5c03a526a77d780c1028390bf53b40dc3e7243c6afc7a305eac |
#!/usr/bin/env python
import sys
for i in range(0, len(sys.argv)):
if sys.argv[i] == '-A' and i < len(sys.argv)-1:
sys.path = sys.path + [sys.argv[i+1]]
import vtk
from vtk.util.misc import vtkRegressionTestImage, vtkGetDataRoot
# create planes
# Create the RenderWindow, Renderer
#
ren = vtk.vtkRenderer... | sgh/vtk | Graphics/Testing/Python/streamSurface2.py | Python | bsd-3-clause | 2,307 | [
"VTK"
] | ac89606bd6e54c898a8f116d6756553f9d621393fce5e635fb4892ddcaea5878 |
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accom... | raycoll/s2n | tests/integration/s2n_test_constants.py | Python | apache-2.0 | 22,191 | [
"Octopus"
] | f3eb5f057ec7f460b4fd7d6f8ca96d44e4999a053677ef55c5278b024fdd3a8c |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2008-2012 Wolfgang Rohdewald <wolfgang@rohdewald.de>
kajongg 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... | ospalh/kajongg-fork | src/util.py | Python | gpl-2.0 | 14,387 | [
"FEFF"
] | bcd7a201ccdc496714fda536d77866c45c9b1201f0b5481589faae1a8aa26c56 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | andysim/psi4 | psi4/driver/driver_nbody.py | Python | gpl-2.0 | 19,208 | [
"Psi4"
] | 4adf7c885632a0c5bd8d83e9d2ea827a54daa25907df2976d4aed625dbd16519 |
# -*- coding: utf-8 -*-
import lettuce
import journal
@lettuce.step("I am not logged in")
def i_am_not_logged_in(step):
with journal.app.test_client() as client:
lettuce.world.client = client
@lettuce.step("I am logged in")
def i_am_logged_in(step):
with journal.app.test_client() as client:
... | jonathansiebert/learning_journal | features/steps.py | Python | mit | 1,049 | [
"VisIt"
] | 3bea94d7f9a42cd48ba0048d6610770949234afd3e0fc891697f6e8f1f58fdc4 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2007 Async Open Source
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or... | tiagocardosos/stoq | stoqlib/importers/csvimporter.py | Python | gpl-2.0 | 5,393 | [
"VisIt"
] | 6629d240d16d0ecbff549ae6b273bae2d21ed4d48ef81ffa0d1861cd81d95853 |
#!/usr/bin/env python
########################################################################
# File : dirac-info
# Author : Andrei Tsaregorodtsev
########################################################################
"""
Report info about local DIRAC installation
"""
__RCSID__ = "$Id$"
import os
import DIR... | arrabito/DIRAC | Core/scripts/dirac-info.py | Python | gpl-3.0 | 2,553 | [
"DIRAC"
] | 449489a8bd811654b3bf1b29b98f5d2a984fe2e69d6ba8b21dc282e53f4f41f6 |
#!/usr/bin/env python
import vtk
def main():
fileName = get_program_parameters()
colors = vtk.vtkNamedColors()
# Set the furniture colors.
colors.SetColor("Furniture", [204, 204, 153, 255])
scalarRange = [0.0, 0.0]
maxTime = 0
aren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow(... | lorensen/VTKExamples | src/Python/Visualization/Kitchen.py | Python | apache-2.0 | 11,425 | [
"VTK"
] | c65ac60e38776c1f05185e90e109842d2d54e9ca3226c6979ba3c32e51ed231b |
# finite-difference implementation of the diffusion equation with first-order
# explicit time discretization
#
# We are solving phi_t = k phi_xx
#
# We run at several resolutions and compute the error. This uses a
# cell-centered finite-difference grid
#
# M. Zingale (2013-04-07)
from __future__ import print_function... | zingale/hydro_examples | diffusion/diffusion_explicit.py | Python | bsd-3-clause | 6,767 | [
"Gaussian"
] | a9eec0659af17c2c578a6d34caecb0f5e5e2a0d5e92501fbdd49526a623a3c03 |
"""
Creating Occupancy grid using LIDAR sensor
Includes error defined below
"""
# TODO Stopping condition
# TODO Increase cell size of resultant map
# TODO Set botL = botW = 60 and edit move_bot() to move to centroid of unvisited cells
from numpy import array, add, subtract
from os import listdir
from PIL import Imag... | AKS1996/VOCOWA | SLAM_Lidar_BW_withError.py | Python | mit | 6,243 | [
"Gaussian"
] | 8df18678cc524602df295824d22dca81c5e794b4b7eaefebc3b8b666dfdaf9e3 |
#!/usr/bin/env python
# coding=utf-8
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import redis
# 初始化数据库连接:
engine = create_engine('mysql://root:root@localhost:3306/crystal?charset=utf8')
# 创建DBSession类型:
DBSession = sessionmaker(bind=engine)
| x-hansong/Crystal | model/db_config.py | Python | mit | 300 | [
"CRYSTAL"
] | 9274e79d1f1a2aed82d5700174e1e0a304eb5dec95813128483005e1d780767c |
#!/usr/bin/env python
import numpy as np
from ase.io import write
from gpaw.io.tar import Reader
from gpaw.tddft import TDDFT
from gpaw.tddft.fourier import DensityFourierTransform
from gpaw.tddft.units import aufrequency_to_eV, autime_to_attosec
# -------------------------------------------------------------------
... | qsnake/gpaw | tools/extract_ftd.py | Python | gpl-3.0 | 3,448 | [
"ASE",
"GPAW"
] | 2b169e69ce9956bc72f8ef3695882fe2568004a1a841c3338d5d71060bc45f7f |
from .lpi_filter import inverse, wiener, LPIFilter2D
from ._gaussian import gaussian
from .edges import (sobel, hsobel, vsobel, sobel_h, sobel_v,
scharr, hscharr, vscharr, scharr_h, scharr_v,
prewitt, hprewitt, vprewitt, prewitt_h, prewitt_v,
roberts, roberts_... | WarrenWeckesser/scikits-image | skimage/filters/__init__.py | Python | bsd-3-clause | 2,594 | [
"Gaussian"
] | 2f4dbf8b9040aa16c545794c51c1820d4acb76781cf4f73bba9d63bbc1773391 |
''' file name : boundingrect.py
Description : This sample shows how to find the bounding rectangle and minimum enclosing circle of a contour
This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/shapedescriptors/bounding_rects_circles/bounding_rects_circles.html
Level : Beginner
Be... | asrob-uc3m/rpc_rpi | src/python/opencv_python_tutorials/Official_Tutorial_Python_Codes/3_imgproc/boundingrect.py | Python | gpl-3.0 | 1,723 | [
"VisIt"
] | 576c3ac65c09aa04b157ec1134ca4e50d514855e8d0477abfc81c072d6dc35e5 |
"""
TornadoClient is equivalent of the RPCClient but in HTTPS.
Usage of TornadoClient is the same as RPCClient, you can instantiate TornadoClient with
complete url (https://host:port/System/Component) or just "System/Component". Like RPCClient
you can use all method defined in your service, your call will be au... | yujikato/DIRAC | src/DIRAC/Core/Tornado/Client/TornadoClient.py | Python | gpl-3.0 | 3,089 | [
"DIRAC"
] | 8aeb011a15019753d8b003ed24a59d9f6f2104b8d089e4943adf81093b5e8a7f |
from tethys_sdk.base import TethysAppBase, url_map_maker
from tethys_sdk.handoff import HandoffHandler
from tethys_sdk.jobs import CondorJobTemplate
from tethys_sdk.compute import get_scheduler
class NetcdfToGsshaInput(TethysAppBase):
"""
Tethys app class for NetCDF to GSSHA Input.
"""
name = 'Conver... | CI-WATER/tethysapp-netcdf_to_gssha | tethysapp/netcdf_to_gssha/app.py | Python | bsd-2-clause | 2,921 | [
"NetCDF"
] | f9eed8922d80f28f513bc72cecbbdc14c8a925ca173c6392ed1a3044a89a320b |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2010 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
import os, uuid
from copy import deepcopy
from datetime import datetime
... | AmrnotAmr/zato | code/zato-cli/src/zato/cli/create_server.py | Python | gpl-3.0 | 12,381 | [
"VisIt"
] | 288f418d8b375c1e6a330f8ff6f5dce8777ac2a942ddb5d0649bf167f4e3d32f |
# -*- coding: utf-8 -*-
# Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
#
# Authors: Aric Hagberg (hagberg@lanl.gov)
# Dan Schult (dschult@colgate.edu)
# Ben Edward... | jfinkels/networkx | networkx/generators/geometric.py | Python | bsd-3-clause | 16,745 | [
"Gaussian"
] | d205ee12bc7474c63c94c11d84777c33a036fed236f64ebb425ec0422304d6be |
# -*- coding: utf-8 -*-
"""
This Python module contains configurations(aka settings) of the application.
Updated since version 1.1:
1. Added path to paraview script template file.
Updated since version 1.2 (OpenWarp - Add Logging Functionality):
1. Added support for logging.
"""
__author__ = "ca... | NREL/OpenWARP | source/openwarpgui/openwarp/settings.py | Python | apache-2.0 | 3,165 | [
"ParaView",
"VTK"
] | 90f2bf9058b6c27dd81c2cf35beae4e7fb2a95bff9b78e6294ea567afcc4f727 |
# -*- coding: utf-8 -*-
'''
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a fre... | BackupTheBerlios/cuon-svn | cuon_client/Cuon.py | Python | gpl-3.0 | 83,624 | [
"VTK"
] | 0ca5b9b6d59bb7b20cafedf510c0fd68b8de681760f7696cfdcabe51da746d4d |
# Copyright 2000-2004 Brad Chapman.
# Copyright 2001 Iddo Friedberg.
# Copyright 2007-2016 by Peter Cock.
# 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.
"""Classes for generic ... | zjuchenyuan/BioWeb | Lib/Bio/Align/Generic.py | Python | mit | 17,878 | [
"BLAST",
"BioPerl",
"Biopython"
] | d435d23eb2b6244ccd080579e50d075faf9e1d14b9eead2bceceeb06d3781afd |
import json
import re
# See http://js.cytoscape.org/#style/node-body
ALLOWED_NODE_SHAPES = ['rectangle', 'roundrectangle', 'ellipse', 'triangle',
'pentagon', 'hexagon', 'heptagon', 'octagon', 'star',
'diamond', 'vee', 'rhomboid']
ALLOWED_NODE_BORDER_STYLES = ['solid', 'do... | Murali-group/GraphSpace | applications/graphs/json_validator.py | Python | gpl-2.0 | 15,367 | [
"Cytoscape"
] | 96b29a7b7944c466b392db5d5322892e74a1aa72696dacf00e47075d08ec4a66 |
############################################################################
##
## Copyright (C) 2006-2010 University of Utah. All rights reserved.
##
## This file is part of VisTrails.
##
## This file may be used under the terms of the GNU General Public
## License version 2.0 as published by the Free Software Foundat... | VisTrails/vistrails-contrib-legacy | vtksnl/vtkhandler.py | Python | bsd-3-clause | 10,922 | [
"VTK"
] | d5a22de7a68abad56cb2bfbd9fda68d02ff6354ba2866ecc508f802182f3adbb |
""" UserProfileDB class is a front-end to the User Profile Database
"""
__RCSID__ = "$Id$"
import types
import os
import sys
import hashlib
from DIRAC import S_OK, S_ERROR, gLogger, gConfig
from DIRAC.Core.Utilities import Time
from DIRAC.ConfigurationSystem.Client.Helpers import Registry
from DIRAC.Core.Base.DB im... | andresailer/DIRAC | FrameworkSystem/DB/UserProfileDB.py | Python | gpl-3.0 | 27,546 | [
"DIRAC"
] | e9d26550ad89d0da947d006cccef5c6e5c02509c04afe080f3b8869d5acebf6f |
"""
# Majic
# Copyright (C) 2014 CEH
#
# 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 pr... | NERC-CEH/jules-jasmin | majic/joj/utils/email_messages.py | Python | gpl-2.0 | 4,850 | [
"VisIt"
] | 6aed037982b2b928791ddacb2d0c8f6dc8add915d0a1954c1d31681fc40eb94c |
"""Classes for use with Quantum ESPRESSO
Representation of a spectrum and more
"""
import re
import os
import copy as cp
import numpy as np
from string import digits
import asetk.atomistic.fundamental as fu
import asetk.atomistic.constants as atc
from . import cube
#class Dispersion(object):
# """Holds k-points... | ltalirz/asetk | asetk/format/qe.py | Python | mit | 13,800 | [
"ASE",
"Gaussian",
"Quantum ESPRESSO"
] | ccc5c828202b8388ac309da6f0fb553c9e4171149aeea6687138b3a56f83dc32 |
# Copyright (C) 2012,2013,2016
# 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... | fedepad/espressopp | src/tools/velocities.py | Python | gpl-3.0 | 1,736 | [
"ESPResSo",
"Gaussian"
] | 992f9b88286e27c34cf9a1174dd687a463a3fa822087587d0fc2c034b61a9869 |
import vtk, os, sys
from vtk.test import Testing
ss = vtk.vtkSphereSource() #make mesh to test with
af = vtk.vtkElevationFilter() #add some attributes
af.SetInputConnection(ss.GetOutputPort())
ef = vtk.vtkExtractEdges() #make lines to test
ef.SetInputConnection(af.GetOutputPort())
gf = vtk.vtkGlyph3D() #... | timkrentz/SunTracker | IMU/VTK-6.2.0/IO/GeoJSON/Testing/Python/TestGeoJSONWriter.py | Python | mit | 1,470 | [
"VTK"
] | f97693172beffde8a1c71a3862fc047d83577a2ac66ea3c88098c7e316fcc3b8 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import shutil
import sys
from spack import *
class Mfem(Package, CudaPackage, ROCmPackage):
"""Free, ligh... | LLNL/spack | var/spack/repos/builtin/packages/mfem/package.py | Python | lgpl-2.1 | 39,670 | [
"NetCDF"
] | 3a5659672becbf5b337270c74b50aff351cfe54431b0d805f42a8a4ff7222a64 |
# python
# EVE-Central.com Contribtastic
# Copyright (C) 2005-2010 Yann Ramin
#
# 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 o... | theatrus/contribtastic | python/src/evec_upload/main.py | Python | gpl-2.0 | 9,305 | [
"VisIt"
] | 708ff0c31dc8fd84b53a96fb4e98c4cdcdd26b9e61c018cc1d79822f53304869 |
#!/usr/bin/env python
"""
Script that emulates the behaviour of a shell to edit the CS config.
"""
import sys
from DIRAC.Core.Base import Script
Script.parseCommandLine()
from DIRAC.ConfigurationSystem.Client.CSShellCLI import CSShellCLI
# Invariants:
# * root does not end with "/" or root is "/"
# * root starts w... | Andrew-McNab-UK/DIRAC | ConfigurationSystem/scripts/dirac-configuration-shell.py | Python | gpl-3.0 | 432 | [
"DIRAC"
] | cfe044fcb000b80b5cf7578ab33b6ca59c1228604fb12c77eae3108b5badaa01 |
# -*- coding: utf-8 -*-
"""
pint.util
~~~~~~~~~
Miscellaneous functions for pint.
:copyright: 2016 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import division, unicode_literals, print_function, absolute_import
from decimal impor... | EternityForest/KaithemAutomation | kaithem/src/thirdparty/pint/util.py | Python | gpl-3.0 | 23,567 | [
"Gaussian"
] | 4833ea8506ebd1c08c408de2d7f4d04459d329f54ab10064066cfc234169b2c1 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/deviceinfo.py | Python | gpl-2.0 | 9,021 | [
"VisIt"
] | 7395c291b178c357e674f886c09830dc8d303ae019feb9e10d6bb90ab0fb1e34 |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | config/carver_mpi.py | Python | gpl-3.0 | 1,456 | [
"CRYSTAL",
"VASP"
] | 867e9cde5b6ef4c74b89d6199f83dd71d97a4083f18aa28ca2ce5e55df123a69 |
# -*- coding: utf-8 -*-
#
# CampbellSiegert.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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... | tammoippen/nest-simulator | pynest/examples/CampbellSiegert.py | Python | gpl-2.0 | 7,544 | [
"NEURON"
] | 22f764aa759afce7be0c2776f4056ccc6b404a7ce183ed8f720138bdd44777c2 |
# coding=utf-8
# qingfanyi - Chinese to English translation tool
# Copyright (C) 2016 Rohan McGovern <rohan@mcgovern.id.au>
#
# 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 ... | rohanpm/qingfanyi | qingfanyi/atspi.py | Python | gpl-3.0 | 1,863 | [
"VisIt"
] | 3929c1b527a66917cd3adbeeb96d2bcda35d476d1b64175f8773ff2344c78d27 |
# -*- coding: utf-8 -*-
#
# lin_rate_ipn_network.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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 Li... | apeyser/nest-simulator | pynest/examples/lin_rate_ipn_network.py | Python | gpl-2.0 | 4,759 | [
"Gaussian",
"NEURON"
] | e89eaa2543e1f75f1638ade6019aa094c5da7f0ef0aacf42492f218a199e49e5 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Abinit Post Process Application
author: Martin Alexandre
last edited: May 2013
"""
import sys,os
#Gui
import gui.open_graph as OpenGraph
#Utility
import utility.write as Write
import utility.canvas as Canvas
from matplotlib.backends.backend_qt4agg import Navigatio... | jmbeuken/abinit | scripts/post_processing/appa/gui/graph.py | Python | gpl-3.0 | 12,464 | [
"ABINIT"
] | ff1380d4759cbb49e5ec48cf6b37e6ac59b035efad1b79fca13a18e2a1f9e1ea |
#!/Users/seb/Work/code/ParaView/build/bin/pvpython
import sys
from vtk import vtkMetaImageReader, vtkProgrammableFilter, vtkUnsignedCharArray, vtkJPEGWriter, vtkPNGWriter
basePath = '/Users/seb/Work/projects/NE-Phase2/'
reader = vtkMetaImageReader()
reader.SetFileName("/Users/seb/Work/projects/NE-Phase2/Patient05.mh... | Kitware/cinema | scripts/probe_data/medical_vtk_python-FIXME.py | Python | bsd-3-clause | 2,200 | [
"ParaView",
"VTK"
] | ae8402bc2046f6a964ff67dc33e80cd772a7b34037aca07d44cc2303f1451e79 |
#!/usr/bin/env python
#
# Copyright (C) 2015, the ximpol team.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU GengReral Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# T... | lucabaldini/ximpol | ximpol/test/test_spline.py | Python | gpl-3.0 | 6,545 | [
"Gaussian"
] | 833a58eb92b77fd0497bf48aa34b96cf6bc667b072c91c8734965f45de09995a |
import doctest
def test_symmetry():
"""
DocTests (pychemia.crystal.symmetry) :
"""
import pychemia
if pychemia.HAS_SPGLIB:
import pychemia.crystal
dt = doctest.testmod(pychemia.crystal.symmetry, verbose=True)
assert dt.failed == 0
def test_lattice(... | MaterialsDiscovery/PyChemia | tests/test_1_doctest_crystal.py | Python | mit | 575 | [
"CRYSTAL"
] | 4073414871e2b839f5c9f3dd4cf1d1724e30f36f52bf3599a8b2abe5b2890a37 |
#pylint: disable=C0111
#pylint: disable=W0621
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
#pylint: disable=W0401
# Disable the "Unused import %s from wildcard import" warning
#pylint: disable=W0614
# Disable the "unused argument" warning because lettuce... | TsinghuaX/edx-platform | common/djangoapps/terrain/steps.py | Python | agpl-3.0 | 6,516 | [
"VisIt"
] | 4bf4d6003a2c9fd22d0f73ef804f53de33c52340fd01d91d823830f6c254019e |
#!/usr/bin/python
"""
Copyright 2017 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... | druss316/G-Harvestor | html/getResources.py | Python | gpl-3.0 | 16,603 | [
"Galaxy"
] | d80be1cd175e426696479391c3f81b5f59452987c59791c9592e9ed04a02fd9e |
from setuptools import setup, find_packages
setup(name = 'coevo',
version = '0.2.0',
description = 'library for comparing coevolution identifying methods',
url = 'in progress',
author = 'Aram Avila-Herrera',
author_email = 'Aram.Avila-Herrera@ucsf.edu',
license = 'GPL',
... | aavilahe/coevo_analysis_pypackage | setup.py | Python | gpl-3.0 | 831 | [
"Biopython"
] | 4bcf2513c8111d79088e77267d88a84a57381d70a13511741dc6f4cb251501e0 |
# creates: fcc100.png fcc110.png bcc100.png fcc111.png bcc110.png bcc111.png hcp0001.png fcc111o.png fcc211o.png bcc110o.png bcc111o.png hcp0001o.png ontop-site.png hollow-site.png fcc-site.png hcp-site.png bridge-site.png diamond100.png diamond111.png hcp10m10.png
from ase import Atoms
from ase.io import write
from a... | askhl/ase | doc/ase/surface.py | Python | gpl-2.0 | 1,866 | [
"ASE"
] | 9f53169683321f2cc8845a05f26d0e39bb3a7f0a6ef8fbd73b63eecd6da06569 |
# -*-python-*-
#
# Copyright (C) 1999-2013 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html.
#
# For more information, visit h... | marcellodesales/svnedge-console | svn-server/lib/viewvc/accept.py | Python | agpl-3.0 | 7,744 | [
"VisIt"
] | ed67f3986b044f3f9afe3799260ec0004957b974eb922bc91749da4e1beca0a7 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkSelectionLink(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.... | nagyistoce/devide | modules/vtk_basic/vtkSelectionLink.py | Python | bsd-3-clause | 474 | [
"VTK"
] | 33efc7bc7f7c5465deaec97889efc6a06138f3feba196916f7e58dc7e4f0f0d0 |
import numpy as np
from math import sqrt
from ase import Atom, Atoms
from ase.optimize import QuasiNewton, FIRE
from ase.constraints import FixAtoms
from ase.neb import NEB
from ase.io import write, PickleTrajectory
from ase.calculators.emt import ASAP
# Distance between Cu atoms on a (100) surface:
d = 2.74
h1 = d * ... | grhawk/ASE | tools/ase/examples/Pt_island.py | Python | gpl-2.0 | 2,208 | [
"ASE"
] | 7cae4702016db74368d5a18cb30678e25042b9193155677b34da5179fb9901e7 |
import json
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from coalib.bears.requirements.NpmRequirement import NpmRequirement
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.Result import Result
from coala_utils.param_conversion impor... | sounak98/coala-bears | bears/coffee_script/CoffeeLintBear.py | Python | agpl-3.0 | 15,288 | [
"VisIt"
] | 0f8e27856f867ee6c31c48699dfb4b3a15e47708aa3ef1898bd7f5b5c83b0bd7 |
# Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this ... | phecy/Deep-Neural-Network-Ranking-Dropout | train-ranknet/layer.py | Python | gpl-3.0 | 66,218 | [
"Gaussian",
"NEURON"
] | 4f48973302bf122e14478c144c8b0796814ad029b8d57988e84c16be54200978 |
# -*- coding: UTF-8 -*-
"""
living
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"""
__version__ = '4.0'
content = {
'living_section': ['Living', 'My life', 'Family', 'Home', 'Kids',
],
'living_headline': ['<#food_headline#>'],
'food_headline':[
... | LettError/filibuster | Lib/filibuster/content/living.py | Python | mit | 2,015 | [
"ESPResSo"
] | 3c8949d5be7d54d5a7068c5c3f13327fa568026343aaae3ad2eed3d5c8a3c84a |
# -*- coding: utf-8 -*-
import os
import re
import uuid
import urllib
import logging
import hashlib
import calendar
import datetime
import urlparse
import subprocess
import unicodedata
from HTMLParser import HTMLParser
from collections import OrderedDict
import pytz
import blinker
from flask import request
from dulwic... | AndrewSallans/osf.io | website/project/model.py | Python | apache-2.0 | 91,883 | [
"VisIt"
] | 67eee369bf114609c08c74001181954773183772c648ef90396d391fbb84f17f |
# -*- coding: utf-8 -*-
"""
Functions which model peaks and decorator to allow those functions
to be translated and scaled and have the bounds of their parameters
respected.
Unless otherwise noted, the formulation of how each function is
written is taken from DiMarco & Bombi 2001 J Chrom A
Example:
t = np.linspac... | molliewebb/aston | aston/peaks/PeakModels.py | Python | gpl-3.0 | 7,849 | [
"Gaussian"
] | 27972f11599adb407617b93e3bcaa4210f321e1bd34c3029250a3cc23a9dfdf4 |
"""Pylint plugin for checking quote type on strings."""
from __future__ import absolute_import
import tokenize
from pylint.__pkginfo__ import numversion as pylint_version
from pylint.checkers import BaseTokenChecker
from pylint.interfaces import IAstroidChecker, ITokenChecker
CONFIG_OPTS = ('single', 'double')
SMAR... | endlessm/chromium-browser | third_party/chromite/third_party/pylint-quotes/pylint_quotes/checker.py | Python | bsd-3-clause | 14,978 | [
"VisIt"
] | 45a9eb969887daee134b37a82f9a720a594f2191998e2091240ab94bb472d38d |
# -*- coding: utf-8 -*-
#########################################################################
## This program is part of 'MOOSE', the
## Messaging Object Oriented Simulation Environment.
## Copyright (C) 2014 Upinder S. Bhalla. and NCBS
## It is made available under the terms of the
## GNU Lesser General ... | dilawar/moose-core | tests/core/test_Xreacs4.py | Python | gpl-3.0 | 3,342 | [
"MOOSE"
] | 0681460b5984f7b579e590cd6cb5bb712a3745c9aebba3ff4616374114571b7c |
# Copyright (C) 2010-2021 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_circular_couette.py | Python | gpl-3.0 | 6,742 | [
"ESPResSo"
] | f8faff72809c331223318f2abcc49617041a3bb29ce0205d7c2b86a7572e4bbe |
#!/usr/bin/env python2
# Try to determine how much RAM is currently being used per program.
# Note per _program_, not per process. So for example this script
# will report RAM used by all httpd process together. In detail it reports:
# sum(private RAM for program processes) + sum(Shared RAM for program processes)
# Th... | philwo/pysk | tools/ps_mem.py | Python | apache-2.0 | 12,468 | [
"Brian"
] | f8e85213c59e83d3d290551784d1918c25265644a43c6bb5e728ab63fc7f7ccf |
import glob
import pickle
from collections import deque
from itertools import product
import cv2
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from moviepy.editor import VideoFileClip
from natsort import natsorted
from sklearn.linear_model import ElasticNet
... | jingzhehu/udacity_sdcnd | term1/P4_advanced_lane_lines/P4_advanced_lane_finding.py | Python | apache-2.0 | 27,866 | [
"Gaussian"
] | 11c85154639317128aad374411711f6d7f267019464530b691a4aea29c042fe9 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | shenyushun/cookiecutter-simple-django-cn | {{cookiecutter.project_slug}}/config/urls.py | Python | mit | 1,166 | [
"VisIt"
] | 40e6bbcb4c3dbc51609bc32248080e8e615e88e870540cf99fc17786e9a42e83 |
########################################################################
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2011/12/14 15:07:01
########################################################################
""" :mod: PfnTestCase
=======================
.. module: PfnTestCase
:synopsis: test case f... | andresailer/DIRAC | Core/Utilities/test/Test_Pfn.py | Python | gpl-3.0 | 5,256 | [
"DIRAC"
] | eb2d9a3ac4ed369e872f63bd997ec7254ee6feb4bfc3f88414635ad53f0c3b8a |
import re
import numpy as np
import pandas as pd
import mdtraj as md
import simtk.unit as u
import simtk.openmm.app.element as element
baseline = 0.32 * u.angstrom ** 3
elemental_coefficients = dict(C=1.51, H=0.17, O=0.57, N=1.05, S=2.99, P=2.48, F=0.22, Cl=2.16, Br=3.29, I=5.45)
elemental_coefficients = {key:val * u.... | jchodera/LiquidBenchmark | src/polarizability.py | Python | gpl-2.0 | 2,695 | [
"Dalton",
"MDTraj",
"OpenMM"
] | eb7302673c9f7b6cf4d8e5ae4433dfc6a3b961c80c07488c3774c7546e9f181e |
#Copyright 2009 Erik Tollerud
#
# 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 i... | eteq/pymodelfit | pymodelfit/multifitgui.py | Python | apache-2.0 | 11,844 | [
"Mayavi"
] | fd164fde264df48cbe4f0eb152c5deb65c5762f4cbf4b2da03bd075549f61db1 |
# Copyright (c) 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | kimjaejoong/nova | nova/tests/unit/compute/test_resource_tracker.py | Python | apache-2.0 | 59,398 | [
"exciting"
] | ebacdec1b72ead60f2692bbf16477087ec0a11ab808320add719f8968c861809 |
from pylab import plot,grid,title,subplot,xlabel,ylabel,text,subplots_adjust,fill_between,mean,connect,show
import shogun as sg
import util
util.set_title('PRC example')
util.DISTANCE=0.5
subplots_adjust(hspace=0.3)
pos = util.get_realdata(True)
neg = util.get_realdata(False)
features=util.get_realfeatures(pos, neg)
... | shogun-toolbox/shogun | examples/undocumented/python/graphical/prc.py | Python | bsd-3-clause | 1,418 | [
"Gaussian"
] | 0d16314c8349e349e3a71d04fcf4f782c13964edfe523b87e6e831aa6eed4bdc |
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models, tools
class ResCityItCode(models.Model):
#
# First...
# FIXME: URL in class description is no more useful...
#
# Visit:
# https://www.agenziaentrate.gov.it/wps/content/Nsilib/Nsi/
# ... | OCA/l10n-italy | l10n_it_fiscalcode/model/res_city_it_code.py | Python | agpl-3.0 | 3,137 | [
"VisIt"
] | 1cd8c761bc097c15918087362746e9458e3465a77d1b18ce07630cdd1202de2f |
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
exec(open('nanoget/version.py').read())
setup(
name='nanoget',
version=__version__,
description='F... | wdecoster/nanoget | setup.py | Python | gpl-3.0 | 1,470 | [
"Biopython",
"pysam"
] | bcc733ef9dbb996f09ab884bee43626bd3fe0ed5ea1e442ab3e297af329c8949 |
"""
FEZ basic types
"""
from __future__ import print_function
from xnb_parse.xna_types.xna_primitive import Enum
class FaceOrientation(Enum):
__slots__ = ()
enum_values = dict(enumerate(['Left', 'Down', 'Back', 'Right', 'Top', 'Front']))
class LevelNodeType(Enum):
__slots__ = ()
enum_values = dict... | fesh0r/xnb_parse | xnb_parse/xna_types/fez/fez_basic.py | Python | mit | 3,464 | [
"CRYSTAL"
] | fdd41b3177a89be2259f74052a16abbcae42f9e0b44a937337628add4d1fc6d6 |
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
SIZE_RANGES = ... | JimCircadian/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 117,167 | [
"VisIt"
] | e6f788843f83fa16291f4ba1cc55ec6c8c4bb893778ace25098b5a7a6ac1f1de |
from parsimonious.grammar import Grammar
from parsimonious.nodes import NodeVisitor
class EntryParser(NodeVisitor):
def __init__(self, grammar, text):
self.entry = {}
ast = Grammar(grammar).parse(text)
self.visit(ast)
def visit_name(self, n, vc):
self.entry['name'] = ... | codeyash/plugins | PyPlugins/PhpParser/py/try.py | Python | apache-2.0 | 796 | [
"VisIt"
] | adad29f92eddad38ac909cb3fb8d886d32b9e035b11a51971e00d3c2cbf36706 |
"""Mayavi/traits GUI for converting data from KIT systems"""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD (3-clause)
import os
import numpy as np
from scipy.linalg import inv
from threading import Thread
from ..externals.six.moves import queue
from ..io.meas_info import _read_dig_points... | cmoutard/mne-python | mne/gui/_kit2fiff_gui.py | Python | bsd-3-clause | 20,684 | [
"Mayavi"
] | a4c9972176a064bcebae34defe614042db55f525f4dc0d961c4e0b3e4aa0a1ea |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.