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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Demonstrate automatic resampling of textures (i.e., OpenGL only handles
# power of two texture maps. This examples exercise's vtk's automatic
# power of two resampling).
#
# get the... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/resampledTexture.py | Python | gpl-3.0 | 1,614 | [
"VTK"
] | 8e96935890b75bfc8e847cd28034914074f9c982ef4d99be2e2f4ff658e34cc6 |
import datetime
import time
import threading
import socket
import Queue
from PyQt4 import *
import sys
import ip
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import hashlib
class PeerClient (threading.Thread):
def __init__(self, host, port, app, connection_list,my_host,my_por... | gulcegunal/dagitik | proje/peer.py | Python | gpl-2.0 | 6,271 | [
"Gaussian"
] | 6556ca35c140c2a208d00e4bc55db2dfd3379c8316efed8e50f491833992dda6 |
#!/usr/bin/env python
########################################################################
#
# (C) 2013, James Cammarata <jcammarata@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 ... | kisoku/ansible | lib/ansible/galaxy/api.py | Python | gpl-3.0 | 6,626 | [
"Galaxy"
] | 2a909ed017e601b940613bf00aebca71587d615fbc3096006d19c568e5f35299 |
import os
from functools import wraps
import urllib2
from django.core.servers.basehttp import AdminMediaHandler
from django.core.handlers.wsgi import WSGIHandler
DEFAULT_LIVE_SERVER_PROTOCOL = "http"
DEFAULT_LIVE_SERVER_PORT = 8000
DEFAULT_LIVE_SERVER_ADDRESS = '0.0.0.0'
DEFAULT_URL_ROOT_SERVER_ADDRESS = 'localhost'
... | Almad/django-sane-testing | djangosanetesting/utils.py | Python | bsd-3-clause | 5,915 | [
"VisIt"
] | 53a06a2b29d06af5ffeb0f87f445506f820ace7318b5de7916c94b018ab55b37 |
#
# atactk: ATAC-seq toolkit
#
# Copyright 2015 Stephen Parker
#
# Licensed under Version 3 of the GPL or any later version
#
"""
Code for making quantitative observations about ATAC-seq experiments.
"""
import collections
import functools
import multiprocessing
import signal
import atactk.data
import atactk.metric... | ParkerLab/atactk | atactk/metrics/cut.py | Python | gpl-3.0 | 8,977 | [
"pysam"
] | 132be9094fec3c60542e41081961543a8fd6dd436172b42e8101935a5795b4e8 |
#!/usr/bin/env python
__author__ = 'Mike McCann'
__copyright__ = '2011'
__license__ = 'GPL v3'
__contact__ = 'mccann at mbari.org'
__doc__ = '''
Master loader for all CANON activities in June 2011
Mike McCann
MBARI 22 April 2012
@var __date__: Date of last svn commit
@undocumented: __doc__ parser
@status: pro... | duane-edgington/stoqs | stoqs/loaders/CANON/loadCANON_june2011.py | Python | gpl-3.0 | 5,323 | [
"NetCDF"
] | 7a603709957ea31c7528cbaa040dfefebc021070e809241f2e3d075ad46544e7 |
from os.path import exists, join
import shutil
import tempfile
import time
from lwr.managers.queued import QueueManager
from lwr.managers.stateful import StatefulManagerProxy
from lwr.tools.authorization import get_authorizer
from .test_utils import TestDependencyManager
from galaxy.util.bunch import Bunch
from galax... | jmchilton/lwr | test/persistence_test.py | Python | apache-2.0 | 1,526 | [
"Galaxy"
] | 682e5bdd6de7b202f25af51f54ef429c910fef7c9a081e1aa4e5e08d4eb17202 |
# -*- coding: utf-8 -*-
#
# This file is part of couchapp released under the Apache 2 license.
# See the NOTICE for more information.
from __future__ import with_statement
import base64
import logging
import mimetypes
import os
import os.path
import re
import urlparse
import webbrowser
from copy import copy
from ite... | couchapp/couchapp | couchapp/localdoc.py | Python | apache-2.0 | 18,812 | [
"VisIt"
] | a264636432c82d972f401d0ccbfa907351455d06ae4c60d7275897e42bde1cf3 |
#-----------------------------------------------------------------------------
# Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part of this software.
#-----... | IsCoolEntertainment/debpkg_python-pyzmq | zmq/tests/test_imports.py | Python | lgpl-3.0 | 2,285 | [
"Brian"
] | 554ad0306f7e931b88361b4e673b394b6c5a3fca6c0ab15c321c2a8b11865e0b |
#!/usr/bin/env python
#pylint: disable=missing-docstring
####################################################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simu... | yipenggao/moose | python/MooseDocs/tests/media/slider/test_slider.py | Python | lgpl-2.1 | 1,777 | [
"MOOSE"
] | 5802a652c25d9a0b85222ce89e61c35aa88fd31d193a11e342c364eb6ecfda52 |
import numpy as np
import scipy.stats as stats
arcsec2rad = (np.pi/(180.*3600.))
__all__ = ['cart2pol','pol2cart','expsinc','box','sersic_area']
def cart2pol(x,y):
"""
Convert a set of x,y Cartesian coordinates. Why isn't this in numpy or scipy already?
Inputs:
x,y: Arrays or lists of ... | jspilker/visilens | visilens/utils.py | Python | mit | 2,813 | [
"Gaussian"
] | 872d74da9839fe26b3533c4f9462a48cb5d543545acc95ffe5ab3c356c86f3df |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#from __future__ import unicode_literals
#
# SASMOL: Copyright (C) 2011 Joseph E. Curtis, Ph.D.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU G... | StevenCHowell/zazmol | src/python/view.py | Python | gpl-3.0 | 4,017 | [
"NAMD",
"PyMOL",
"VMD"
] | f1dc5b34feae42650be4b976adcb6eab399f6da53d62f72cbcf7db7cc92782a9 |
""" A module that provides VPython like capabilities. For more
details about VPython, refer the official website.
VPython : http://www.vpython.org/index.html
The API is based on VPython, but instead of using OpenGL and other C
libraries, this is based completly on TVTK, and Traits and Numpy.
All of the demos are also... | dmsurti/mayavi | tvtk/tools/visual.py | Python | bsd-3-clause | 85,027 | [
"VTK"
] | 2fde2f5ee13389efe3a211756c38ff8179134185e87bd175d28d3c2639fd1e6f |
# It doesn't make sense to Flake8 this file: it's loads demo data
# flake8: noqa
from functools import partial
from django.contrib.auth.models import User, Group
from SpiffWorkflow import specs
from digiapproval_project.apps.digiapproval import models
from digiapproval_project.apps.digiapproval.taskforms import *
... | tsujamin/digi-approval | src/digiapproval_project/digiapproval_project/apps/digiapproval/test_data.py | Python | gpl-3.0 | 29,843 | [
"VisIt"
] | 36e38c09b755327d1fa0a8d7ffa21916f3c49c07b0920481475136f3f2022f4d |
#
# Brian C. Lane <bcl@redhat.com>
#
# Copyright 2015 Red Hat, Inc.
#
# 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 Public License v.2. This program is distributed in the hope that it
# will be useful,... | bcl/anaconda | pyanaconda/pwpolicy.py | Python | gpl-2.0 | 4,777 | [
"Brian"
] | 01e7760fd936b701fd2988252a398f81dc4ae1aa85bb5a6e59d6bbb4aba567ef |
from argparse import ArgumentParser
from datetime import timedelta as delta
from glob import glob
from os import path
import numpy as np
import pytest
from parcels import AdvectionRK4, AdvectionAnalytical
from parcels import FieldSet
from parcels import JITParticle
from parcels import ParticleFile
from parcels import... | OceanPARCELS/parcels | parcels/examples/example_nemo_curvilinear.py | Python | mit | 4,599 | [
"ORCA"
] | 301af9e27dda08659f6b1e2d5ed782bfe1b9422b338bb9670894237ad91daaf9 |
# -*- 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>
# Loïc Séguin-C. <loicseguin@gmail.com>
# Da... | cmtm/networkx | networkx/algorithms/shortest_paths/weighted.py | Python | bsd-3-clause | 62,991 | [
"VisIt"
] | cfd2cc52324dce3162eff1d2959bd029ca09747ad4d76b0fb107ed4949db2ea1 |
from paraview.simple import *
import tonic
from tonic import paraview as pv
dataset_destination_path = '/Users/seb/spherical'
# Initial ParaView scene setup
Cone(Center=[2,4,8])
Show()
view = Render()
view.CameraFocalPoint = [2,4,8]
view.CameraPosition = [2,4,0]
view.CenterOfRotation = [2,4,8]
view.CameraViewUp = [0... | Kitware/tonic-data-generator | scripts/tests/off-center-rotation.py | Python | bsd-3-clause | 762 | [
"ParaView"
] | 945066b7b0c20dc44c1831656453d753d0723a6994626a751d83886f068b7184 |
import numpy as np
from nexus import generate_structure
from qharv.inspect import axes_pos
tmat72 = {
'c2c':np.array([[2,1,0],[1,2,0],[0,0,1]]),
'cmca4':np.array([[3,3,0],[-1,2,1],[2,-1,1]]),
'cmca12':np.array([[2,1,-1],[-1,1,0],[2,1,1]]),
'i41amd':np.array([[2,-2,1],[2,3,0],[-2,1,1]])
}
rwsc_tmat72 = {
'i41amd':np.a... | Paul-St-Young/solid_hydrogen | nexus_obj/opt_database.py | Python | mit | 7,039 | [
"ASE"
] | 8718666ce6fadbea9511df1eed6346537ad8620b8ee63e68a1019109d1ff38e4 |
from typing import Any, DefaultDict, Dict, List, Set, Tuple, TypeVar, Text, \
Union, Optional, Sequence, AbstractSet, Pattern, AnyStr, Callable, Iterable
from typing.re import Match
from zerver.lib.str_utils import NonBinaryStr
from django.db import models
from django.db.models.query import QuerySet, F
from django... | Galexrt/zulip | zerver/models.py | Python | apache-2.0 | 81,784 | [
"VisIt"
] | c0a68ee4ac5bc15482ff03b6b68b0ca5a2f31e05612a6fcb55f5fcdb10a522a7 |
import os
import falcon
import vincent
import json
import random
import pandas
import db
import jinja2
import pycountry
from geoip import geolite2
from vincent import values
from jinja2 import Environment, PackageLoader
TOPO_DATA = "world-countries.topo.json"
LIVE_DATA = "world.json"
class TopoDataR... | keypusher/originate | origin.py | Python | mit | 4,848 | [
"VisIt"
] | 980d794c6a6dbeb45d92b60aac34856e4f78198c99fbc6505586a675151c2b9d |
# -*- coding: utf-8 -*-
"""
Python 2.7
Thomas Dunwell, University of Oxford, 2016.
Homology_Group_Frequence_Counting.py
"""
#This script was used in the following paper:
#cite the following paper
#Dunwell TL, Paps J, Holland PWH. Novel and divergent genes in the evolution of placental mammals. Proc Biol Sci... | DrDunwell/Novel-and-divergent-genes-in-the-evolution-of-placental-mammals | Homology_Group_Frequency_Counting.py | Python | lgpl-3.0 | 3,959 | [
"BLAST"
] | bc10af704eb7d9eeb50976a646fdfb90acd1e3d21a45c402fd50062343aa9f9c |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Simple volume rendering example.
reader = vtk.vtkSLCReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/sphere.slc")
# Create transfer functions for opacity and color
opacityTransfe... | sumedhasingla/VTK | Rendering/Volume/Testing/Python/VolumeOutlineSourceClipped.py | Python | bsd-3-clause | 3,976 | [
"VTK"
] | 277b5f2faffaeea6fc3d472654a9ab0c73bfca88368422f92c579c5702c964f7 |
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
if sys.version_info < (3, 0):
input = raw_input
class Person(object):
def __init__(self, name):
self.name = name
def visit(self, warehouse):
print("This is {0}.".format(self.name))
self.deposit(warehouse)
... | xmnlab/minilab | ia/agents/pyro_agents/person.py | Python | gpl-3.0 | 871 | [
"VisIt"
] | b895d58571140f315ce7237bde4b87217a9aa06d9635c017f1258b8bb81d1966 |
#!/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/dft/gen_xcfun_param.py | Python | apache-2.0 | 5,001 | [
"PySCF"
] | bfffe1bc5d8e5c190ea68dc0247b2bd6b16381a7ce6d49e5c921be56d0205219 |
#!/usr/bin/env python3
"""Advent of Code 2015, Day 9: All in a Single Night"""
from collections import defaultdict, deque, namedtuple
import pytest
def parse_input(text):
"""Parse a list of destinations and weights
Returns a list of tuples (source, dest, weight).
Edges in this graph are undirected.
... | robjwells/adventofcode-solutions | 2015/python/2015-09.py | Python | mit | 6,228 | [
"VisIt"
] | dad2d972a07ea9067f357db353ed2d4e82265eb607560803ca4a3bd11198d923 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module implements classes (called Fitters) which combine optimization
algorithms (typically from `scipy.optimize`) with statistic functions to perform
fitting. Fitters are implemented as callable classes. In addition to the data
to fit, the ``__c... | pllim/astropy | astropy/modeling/fitting.py | Python | bsd-3-clause | 72,087 | [
"Gaussian"
] | 888d3afe6e2163ca0358471c4f37d2c3a445eb2336a61ba3440d12ed34d6e4d1 |
def syntheruption(meany, stdevy):
import random
# create synthetic eruptions
# enter a mean in minutes and a standard deviation in minutes
# output is a multidimensional array of:
# min window, max window, mean, actual
# time is in units from start time 0
# outpu... | glennon/GeyserSynth | syntheruptmodule.py | Python | mit | 2,748 | [
"TINKER"
] | c0a2f39ce67cda0447dececc51e4b2dbe9ea3a25e427d68b7b1e6c8c4d2a82f4 |
########################################################################
#
# (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... | deltreey/ansible | lib/ansible/galaxy/role.py | Python | gpl-3.0 | 11,848 | [
"Brian",
"Galaxy"
] | 8e93cb0166930f4116df6e27c1014b1b18f9a8d0a94c87410db4115de95e539d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functional tests using WebTest."""
import datetime as dt
import httplib as http
import logging
import unittest
import markupsafe
import mock
import pytest
from nose.tools import * # noqa: F403
import re
from django.utils import timezone
from addons.wiki.utils import t... | pattisdr/osf.io | tests/test_webtests.py | Python | apache-2.0 | 50,761 | [
"VisIt"
] | 998fadf88d1e7bbade5bf8b07e852f36478d49f233d4aba3eeaa633a4cb101b6 |
"""
@created_at 2014-07-15
@author Exequiel Fuentes <efulet@gmail.com>
@author Brian Keith <briankeithn@gmail.com>
"""
# Se recomienda seguir los siguientes estandares:
# 1. Para codificacion: PEP 8 - Style Guide for Python Code (http://legacy.python.org/dev/peps/pep-0008/)
# 2. Para documentacion: PEP 257 - Docst... | efulet/pca | pca/main.py | Python | mit | 3,043 | [
"Brian"
] | e810da3eae06c0ccbf4ffa90545fc0a63d0ba88809a09575678a3eeced1186a7 |
# -*- coding: utf-8 -*-
"""The check functions."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
#
# License: BSD (3-clause)
from builtins import input # no-op here but facilitates testing
from difflib import get_close_matches
from distutils.version import LooseVersion
import operator
import os
import o... | olafhauk/mne-python | mne/utils/check.py | Python | bsd-3-clause | 26,330 | [
"Mayavi"
] | 267812d60796bc4bffb972c0f3d04dafeb117354bb82e32e4db926b2f160021d |
from __future__ import print_function
from builtins import range
import sys, os
sys.path.insert(1,"../../../")
import h2o
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from tests import pyunit_utils
try: # redirect python output
from StringIO import StringIO # for python 3
except ImportError:
... | mathemage/h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_4959_model_error.py | Python | apache-2.0 | 2,730 | [
"Gaussian"
] | 12439abe6b6e2da840dc979f6330fdbd71097f6eac15dfa3828a08d8397ac1d1 |
# creates: Pt.png paw_note.pdf
import os
import numpy as np
import matplotlib
#matplotlib.use('Agg')
import pylab as plt
from gpaw.atom.all_electron import AllElectron
ae = AllElectron('Pt')
ae.run()
fig = plt.figure(figsize=(7, 4), dpi=80)
fig.subplots_adjust(left=0.05, bottom=0.11, right=0.85, top=0.95)
for n, l, ... | robwarm/gpaw-symm | doc/documentation/paw_note/make_paw_note.py | Python | gpl-3.0 | 1,308 | [
"GPAW"
] | c9edad413ea43b1dd8971fc55e44e2c7d2a040802ba6d7c31eb7037dd880f8cb |
# Copyright (c) 2014-2016 Google, Inc.
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""Check Python 2 code for Python 2/3 source-compatible issues."""
from __future__ import absolute_import, print_function
import re... | bgris/ODL_bgris | lib/python3.5/site-packages/pylint/checkers/python3.py | Python | gpl-3.0 | 25,080 | [
"VisIt"
] | c2f919bfbf6e48c2917f1dbe278ababe24eb2c8072097cbf83a7cbf13a3efd87 |
"""
=========================
Bayesian Ridge Regression
=========================
Computes a Bayesian Ridge Regression on a synthetic dataset.
See :ref:`bayesian_ridge_regression` for more information on the regressor.
Compared to the OLS (ordinary least squares) estimator, the coefficient
weights are slightly shift... | RPGOne/Skynet | scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/examples/linear_model/plot_bayesian_ridge.py | Python | bsd-3-clause | 2,588 | [
"Gaussian"
] | e29666285d5b0a89ca3ea411804c5e629788e9257bfc2d9f868fb35403bc5f52 |
from re import match
from random import random, choice
from flask import jsonify, request, url_for
from flask.ext.mail import Message
from sqlalchemy.orm.exc import NoResultFound
from streamScript.webAPI import app, mail, db
from streamScript.webAPI.auth.models import APIKey
from streamScript.webAPI.places import place... | lnhubbell/tweetTrack | streamScript/webAPI/views.py | Python | mit | 2,118 | [
"VisIt"
] | b17309f8f204a22ba7d544d1aac46a34cd8874312b4b3e8704683b7396eb1fc8 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | linzhaoming/origin | vendor/k8s.io/kubernetes/hack/boilerplate/boilerplate.py | Python | apache-2.0 | 7,305 | [
"VisIt"
] | ff40f94551a5415c577d3ddca4dd1a3ba8b8f7110d58f547a667b98503b863ec |
#
# This source file is part of the FabSim software toolkit, which is distributed under the BSD 3-Clause license.
# Please refer to LICENSE for detailed information regarding the licensing.
#
# IBI.py is an implementation of the Iterative Boltzmann Inversion procedure in Python.
import os, sys, math
import numpy as ... | djgroen/FabSim | python/IBI.py | Python | lgpl-3.0 | 24,501 | [
"LAMMPS"
] | 536a20e44589c37c4e2ba096f82743667e65d19a77f66847620793874540cc96 |
#!/usr/bin/env python
########################################################################
# File : tornado-start-CS
# Author : Louis MARTIN
########################################################################
# Just run this script to start Tornado and CS service
# Use dirac.cfg (or other cfg given in the co... | ic-hep/DIRAC | src/DIRAC/Core/Tornado/scripts/tornado_start_CS.py | Python | gpl-3.0 | 2,403 | [
"DIRAC"
] | 1f0077629af6078fcd450106ba59fce28d4a59a4326da9fb70632302d97a23e7 |
from ase.utils import rotate, irotate
def test(xyz):
a = rotate(xyz)
ixyz = '%sx,%sy,%sz' % irotate(a)
a2 = rotate(ixyz)
#print xyz
#print ixyz
#print np.around(a-a2, 5)
assert abs(a-a2).max() < 1e-10
test('155x,43y,190z')
test('55x,90y,190z')
test('180x,-90y,45z')
test('-180y')
test('40z,... | freephys/python_ase | ase/test/rotate.py | Python | gpl-3.0 | 326 | [
"ASE"
] | e572f384d6516f2b27bf04bc8bc0837b34da90d0c8e879e09f68774a1f8307ac |
import numpy as np
from pylab import *
from gpaw.test import equal
output = True
############################# H2O ############################
filename = 'H2O'
data = loadtxt(filename+'-td'+'.dat')
be_t = data[:,0]
f_t = data[:,1]
data = loadtxt(filename+'-dos'+'.dat')
be_d = data[:,0]
f_d = data[:,1]
if output... | robwarm/gpaw-symm | gpaw/test/big/pes/PES_plot.py | Python | gpl-3.0 | 3,166 | [
"GPAW"
] | 7f261d6b6597fd672e7396b71455b383af6360750bd6570cc69279809c496ef9 |
# -*- coding: utf-8 -*-
"""
========================================================================
Transforming positions and velocities to and from a Galactocentric frame
========================================================================
This document shows a few examples of how to use and customize the
`~ast... | bsipocz/astropy | examples/coordinates/plot_galactocentric-frame.py | Python | bsd-3-clause | 8,006 | [
"Galaxy"
] | 4cc48754070010c8109d4cd80648a363617a4e1103a29743e3e6c6cb23ad12f6 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# This example demonstrates the use of multiline 2D text using
# vtkTextMappers. It shows several justifications as well as single-line
# and multiple-line text inputs.
#
# First we ... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/FreeType/Testing/Python/multiLineText.py | Python | gpl-3.0 | 6,797 | [
"VTK"
] | dc297f18e8ab6637f4e8b818f770790579462ad315355cae5f68e105f1d4b45d |
from gaussfitter import gaussfit
import numpy as np
from util import utils
import matplotlib.pyplot as plt
import sys
def aperture(startpx,startpy,radius=3):
r = radius
length = 2*r
height = length
allx = xrange(startpx-int(np.ceil(length/2.0)),startpx+int(np.floor(length/2.0))+1)
ally = xrange(st... | bmazin/ARCONS-pipeline | examples/Pal2012-nltt/sky_rms.py | Python | gpl-2.0 | 1,592 | [
"Gaussian"
] | 23dd3c787c176e3e5401caecccae8c0f94567c670d7283b4aaf44f3c2b5321cc |
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | chipaca/snapcraft | snapcraft/storeapi/constants.py | Python | gpl-3.0 | 1,942 | [
"VisIt"
] | 1ed162f98079f6bf8edc85399b5d24ecf618a82144222f8fee24b430b651ea6f |
# This file is part of cclib (http://cclib.sf.net), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2006, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. You shou... | Clyde-fare/cclib_bak | src/cclib/bridge/cclib2openbabel.py | Python | lgpl-2.1 | 1,531 | [
"Open Babel",
"cclib"
] | d339969a2d66a7a7655a4de0cd11d8113c11cc8b2a7cc05b58974c3e0c51562a |
""" ElasticDB is a base class used to connect an Elasticsearch database and manages queries.
"""
__RCSID__ = "$Id$"
from DIRAC import gLogger
from DIRAC.Core.Utilities.ElasticSearchDB import ElasticSearchDB
from DIRAC.ConfigurationSystem.Client.Utilities import getElasticDBParameters
class ElasticDB(ElasticSearchDB... | andresailer/DIRAC | Core/Base/ElasticDB.py | Python | gpl-3.0 | 3,610 | [
"DIRAC"
] | af1da6025283f34bc90ac691420bc6374a76ce2824f23278538188ea7d78d961 |
# -*- coding: utf-8 -*-
"""
slice3.py - plot 3D data on a uniform tensor-product grid as a set of
three adjustable xy, yz, and xz plots
Copyright (c) 2013 Greg von Winckel
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and ... | NicovincX2/Python-3.5 | Algèbre/Algèbre linéaire/Algèbre multilinéaire/slice3.py | Python | gpl-3.0 | 7,017 | [
"Gaussian"
] | 26c4f9070aac6bc95a5a0c391fe47406db8fac62ec78f7af11b87e8980c7e161 |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | nicememory/pie | pyglet/pyglet/graphics/__init__.py | Python | apache-2.0 | 26,789 | [
"VisIt"
] | cebc2ae503defd316fd4884264f8a19ef9a41d1bbff36344c8ce5004b0c1d6a3 |
import superimport
import numpy as np
import matplotlib.pyplot as plt
import os
figdir = "../figures"
def save_fig(fname): plt.savefig(os.path.join(figdir, fname))
from mpl_toolkits.mplot3d import axes3d
from scipy.stats import multivariate_normal
Gs = ["Full", "Diag", "Spherical"]
mu = [0, 0]
Covs = {'Full': [[2,... | probml/pyprobml | scripts/gauss_plot_2d.py | Python | mit | 1,266 | [
"Gaussian"
] | 93f0499fddb062256df5be1b4de2ab0338fd41799757f92ce09dc8a14572ccb5 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an... | TwoD/ansible | v2/ansible/utils/color.py | Python | gpl-3.0 | 2,391 | [
"Brian"
] | 9eff90cfa1e377cb50cd6c270cc2befcabbdf85b6bcd48c3c6d62b52ce659140 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Corinne Maufrais
# Institut Pasteur, Centre d'informatique pour les biologistes
# corinne.maufrais@pasteur.fr
#
# version 2.1
import os
import sys
class Taxon(object):
def __init__(self, name=None, rank=''):
"""
t = Taxon(name)
Creates a ... | C3BI-pasteur-fr/taxo_pack | src/rankoptimizerlib.py | Python | gpl-3.0 | 28,800 | [
"BLAST"
] | 2a53a609400910a7cd52dfa6286d7d7be58a87a68c87b835c339a58bd5b80202 |
import py.test
import json
import time
import shutil
import os
import csv
import common
try:
import oursql
from seqlab.subcommands import place, metadata
def test_placefile(tmpdir):
tmpdir.mkdir('source')
filepath = tmpdir.join('source/279.22708_G02_014.ab1')
filepath.ensure(dir=Fal... | madhadron/seqlabd | test/test_subcommands.py | Python | gpl-3.0 | 8,368 | [
"BLAST"
] | be7bebfefa0caeba52b5692b33f673006eb7322b38a7a2f9e6ee714ec4445822 |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2016 Haggi Krey, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of... | haggi/appleseed-maya | module/scripts/appleseed_maya/renderer.py | Python | mit | 25,756 | [
"VisIt"
] | d177785417e7eb2f7d6ace11d7e130906910a00d84025034dd5f0e98bf4420d6 |
"""Trajectory module with viewmol support."""
from math import sqrt
import numpy as np
from ase import Angstrom, Atoms, Atom, Hartree, PickleTrajectory
from ase.io import filetype as ase_filetype
from ase.parallel import paropen
from ase.io.gpawtext import read_gpaw_text
from gpaw.cluster import Cluster
import gpaw... | qsnake/gpaw | gpaw/utilities/viewmol.py | Python | gpl-3.0 | 8,313 | [
"ASE",
"GPAW"
] | e69488c2557f6dfc9a84f8afb7362b203fa89c90d906b81e7fe760d583bc3d94 |
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | antgonza/qp-shotgun | qp_shogun/sortmerna/tests/test_sortmerna.py | Python | bsd-3-clause | 8,198 | [
"BLAST"
] | 9783dd1159daa5745bde4bc826977e3086f474722f89764e03a363746bad94ca |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the main LMS Dashboard (aka, Student Dashboard).
"""
import datetime
import pytest
from common.test.acceptance.fixtures.course import CourseFixture
from common.test.acceptance.pages.common.auto_auth import AutoAuthPage
from common.test.acceptance.pages.lms.dashboard im... | ahmedaljazzar/edx-platform | common/test/acceptance/tests/lms/test_lms_dashboard.py | Python | agpl-3.0 | 16,817 | [
"VisIt"
] | b1ff097810e5eb36076476a2c659be92459cdf90e5d7668fa0afba387666dcfe |
#
# Brian Tanner took this agent from the rl-competition code at http://rl-competition.googlecode.com/
#
# Copyright (C) 2007, Mark Lee
#
# 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... | chaostrigger/rl-library | projects/agents/randomAgentPython/src/RandomAgent.py | Python | apache-2.0 | 2,498 | [
"Brian"
] | ea551238573a7d3a98be97013adc33a1ec466dfd7e925809ecbff3773ae38723 |
"""Kraken - traverser module.
Classes:
Traverser - Base Traverser.
"""
from kraken.core.objects.scene_item import SceneItem
from kraken.core.objects.object_3d import Object3D
from kraken.core.objects.components.component import Component
from kraken.core.objects.attributes.attribute_group import AttributeGroup
from ... | goshow-jp/Kraken | Python/kraken/core/traverser.py | Python | bsd-3-clause | 8,025 | [
"VisIt"
] | dd0a483d3989f624c3c3f4b51b3dc92fff56cec9aff58c8a4f039cc2c7b69389 |
#
# Copyright (C) 2011 EADS France, Fabrice Desclaux <fabrice.desclaux@eads.net>
#
# 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 late... | kexplo/miasm | miasm2/expression/expression.py | Python | gpl-2.0 | 38,466 | [
"VisIt"
] | f5007054aac470abfc25718015d4aa5a3335b60e08ba497cfc69053d71512ed3 |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | maxsocl/django | django/conf/global_settings.py | Python | bsd-3-clause | 22,631 | [
"VisIt"
] | c1ccc3c03fd6084df037c721e978bcccef9a369b7728c73c3e3a5c6f8b285a13 |
# encoding: utf-8
"""IPython plugins.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2010-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as p... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/core/plugin.py | Python | lgpl-3.0 | 1,603 | [
"Brian"
] | 9f8112853910d0a5e32a57a9fe421674ed4b6fa2a4605cee2746f7e406ebf5cb |
import sys
from django.core.management.base import BaseCommand, CommandError
from django.core.management.color import color_style
from bcpp_interview.models import (
PotentialSubject, LINKED_ONLY, NOT_LINKED,
INITIATED, INITIATED_T1, DEFAULTER)
"""
referred never linked (IDI and/or FGD if possible)
referred,... | botswana-harvard/bcpp-interview | bcpp_interview/management/commands/update_categories.py | Python | gpl-3.0 | 1,492 | [
"VisIt"
] | a38149663d13d07c3837c70f7d6d2ab00a1d139ab62de50ad89ecc5eef730485 |
#!/usr/local/bin/env python
"""
Test replicaexchange.py facility.
TODO
* Create a few simulation objects on simple systems (e.g. harmonic oscillators?) and run multiple tests on each object?
"""
# =============================================================================================
# GLOBAL IMPORTS
# =====... | choderalab/openmmtools | openmmtools/tests/test_sampling.py | Python | mit | 93,717 | [
"NetCDF",
"OpenMM"
] | 9bf162d46831e680218bdfd5b4a45ca3a65015defb8502e00e6520639dfef3d7 |
# -*- coding: utf-8 -*-
#
# geonav_transform documentation build configuration file, created by
# sphinx-quickstart on Tue Mar 7 15:42:59 2017.
#
# 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 fi... | RockRaidersInc/ROS-Main | geonav_transform/doc/conf.py | Python | gpl-3.0 | 8,792 | [
"Brian"
] | d297193bdb2838b446a15ea4fb43ab06aa7f68641e9a0647ecad079efabe4423 |
#
# 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/data/test_ray_dataset.py | Python | apache-2.0 | 1,184 | [
"ORCA"
] | aa79939c8cfae2f040689499bf7095f3d892db463203773cc7cf3772a45a7c2b |
# -*- 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/pes_see.py | Python | gpl-3.0 | 5,287 | [
"Gaussian"
] | 9b26914fe460de54357ca314f413a365ae1ce9815afb84aeac4385c029fa4671 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
# NACCESS interface adapted from Bio/PDB/DSSP.py
import os, sys, tempfile
from Bio.PDB.PD... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/PDB/NACCESS.py | Python | gpl-2.0 | 6,755 | [
"Biopython"
] | f3b62438452a8f18108f87944375f8cf67f25a194a791f40f06e47a834f9e720 |
#!/usr/bin/env python
import sys
import unittest
import vtk
from PyQt5 import QtWidgets
from peacock.ExodusViewer.plugins.MediaControlPlugin import main
from peacock.utils import Testing
class TestMediaControlPlugin(Testing.PeacockImageTestCase):
"""
Testing for MeshControl widget.
"""
qapp = QtWidget... | backmari/moose | python/peacock/tests/exodus_tab/test_MediaControlPlugin.py | Python | lgpl-2.1 | 12,420 | [
"VTK"
] | 011b0aad4042666710da51778104700b2f545c01b0e584c4a4b8a0c52c9f56f8 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import logging
import numpy as np
import itertools
from itertools import chain
from scipy.spatial import ConvexHull
from pymatgen.analysis.pourbaix.entry impor... | xhqu1981/pymatgen | pymatgen/analysis/pourbaix/maker.py | Python | mit | 17,124 | [
"pymatgen"
] | 78154bc71c77f688f3e1937e7bef06fa9375baef84490edf974d58ce87e0bee3 |
# Copyright (C) 2007, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import os, sys
from zeroinstall import SafeException
from zeroinstall.injector import reader, model
release_uri = 'http://0install.net/2007/interfaces/0release.xml'
umask = os.umask(0)
os.umask(umask)
def init_rele... | gfxmonk/0release | setup.py | Python | lgpl-2.1 | 2,551 | [
"VisIt"
] | 93b6712bc7cdf18103a805f5e566dd8a205e60182ad4fdccdbe0048f48b8348c |
""" TransformationAgent processes transformations found in the transformation database.
"""
import time, Queue, os, datetime, pickle
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base.AgentModule import AgentModule
from DIRA... | Sbalbp/DIRAC | TransformationSystem/Agent/TransformationAgent.py | Python | gpl-3.0 | 29,963 | [
"DIRAC"
] | ce622e42e88cfcbbbfdeec4b368acd353725b1e5f5ca104f33410afddb64fb54 |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
import time
from selenium.common.exception... | shoopio/shoop | shuup_tests/browser/admin/test_tour.py | Python | agpl-3.0 | 10,828 | [
"VisIt"
] | f11e90f0a645fbbee66a5d41615c508a189b64f1bd0c4d208358c70ecdbbc42f |
import ase.io
from gpaw import GPAW
atoms = ase.io.read('alpra_Mg.CONTCAR')
atoms.pbc = True
atoms.calc = GPAW(xc='vdW-DF',
width=0.1)
ncpus = 8
| robwarm/gpaw-symm | gpaw/test/big/scf/trouble/a5.py | Python | gpl-3.0 | 163 | [
"ASE",
"GPAW"
] | d45fa6cf032d3b6d3e3418b24828892d9576206540df0c856c323e84fced2d7f |
# -*- coding: utf-8 -*-
"""
Model classes for the chemical batches and multiple batches that are used to hold datasets in ChemBio Hub
"""
from django.db import models, connection
from django.contrib.auth.models import User
try:
# django >= 1.7
from django.apps import apps
get_model = apps.get_model
except... | thesgc/chembiohub_ws | cbh_chembl_model_extension/models.py | Python | gpl-3.0 | 23,546 | [
"Pybel",
"RDKit"
] | 20944411cf56b093ce2631d6c67a890555cf55ae9c7250835b1323571c6daec5 |
#!/usr/bin/python
# 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.
#
# Ansible is distributed... | kernow/ansible-modules-core | cloud/amazon/ec2_elb_lb.py | Python | gpl-3.0 | 52,562 | [
"Dalton"
] | 2e9cc5ddccca6168df9a44a4cddef6175e2c774ae3823d0dc5a3fbd43e575697 |
# coding: utf-8
from __future__ import unicode_literals, division, print_function
import os
import datetime
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.abinit import events
_test_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..",
'test_files', "abinit")
... | aykol/pymatgen | pymatgen/io/abinit/tests/test_events.py | Python | mit | 2,991 | [
"ABINIT",
"pymatgen"
] | 6ff6ec78dfebb3f8d0f80d3356d49eb287abd82284bfc20f537780aede500d40 |
# Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap 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.... | Karaage-Cluster/python-tldap | tldap/django/middleware.py | Python | gpl-3.0 | 1,759 | [
"Brian"
] | 8aa256de2acc8d08a0601711685c628109d66d341917eacdc85ab8162f9d3a14 |
from rllab.core.serializable import Serializable
from sandbox.rocky.tf.spaces.box import Box
from rllab.exploration_strategies.base import ExplorationStrategy
import numpy as np
class GaussianStrategy(ExplorationStrategy, Serializable):
"""
This strategy adds Gaussian noise to the action taken by the determin... | brain-research/mirage-rl-qprop | sandbox/rocky/tf/exploration_strategies/gaussian_strategy.py | Python | mit | 1,129 | [
"Gaussian"
] | 05b05aecbee76f94d9a689e750590dfd1e2577b92657173d5958292dbf4d2c77 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/esutil/GammaVariate.py | Python | gpl-3.0 | 1,452 | [
"ESPResSo"
] | 6d399323cacc74e069140bab5f2f400f24554002a6b4c7a092750ea95ce8086d |
#!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions ar... | jeremyh/agdc | src/modis_ingester/__init__.py | Python | bsd-3-clause | 9,114 | [
"NetCDF"
] | 7f5dd57c58806f272bfd0e87518164469d52ed3d1b9ad62986c7334b6e632054 |
""" A Generalized Linear Integrate and Fire (GLIF) neuron modeling package.
Use this code to run the GLIF models available in the Allen Cell Types Atlas.
See :doc:`glif_models` for more details.
"""
| wvangeit/AllenSDK | allensdk/model/glif/__init__.py | Python | gpl-3.0 | 200 | [
"NEURON"
] | bcb7f255d22fb3eb3ea2044572e4d46d510f8e4000131cca4333b33898818957 |
"""
Fit Multiple Data Sets
======================
Fitting multiple (simulated) Gaussian data sets simultaneously.
All minimizers require the residual array to be one-dimensional. Therefore, in
the ``objective`` we need to ```flatten``` the array before returning it.
TODO: this should be using the Model interface / b... | Spinmob/spinmob | lm_fitter_concept.py | Python | gpl-3.0 | 1,534 | [
"Gaussian"
] | bf97fd9cd3b0f7c33c28826e254767f7dd3fccfc5551fd257044061fddf15ff0 |
########################################################################
# $HeadURL $
# File: Request.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2012/07/16 13:43:45
########################################################################
"""
:mod: Request
.. module: Request
:synopsis: request implementation... | rajanandakumar/DIRAC | RequestManagementSystem/Client/Request.py | Python | gpl-3.0 | 18,589 | [
"DIRAC"
] | a09afddb7a7f51212de6436ab84fcee1ebe9307a2c34a08efd2681ed519569c4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: (c) 2018, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | Jorge-Rodriguez/ansible | lib/ansible/modules/network/f5/bigip_asm_policy_server_technology.py | Python | gpl-3.0 | 14,103 | [
"ASE",
"Galaxy"
] | 96d68287ce215d90d906b869b23944b9553edf004ab1d6aa401e1dfa042547f2 |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | bolkedebruin/airflow | airflow/settings.py | Python | apache-2.0 | 23,741 | [
"VisIt"
] | 3a78174c4259d20451f0aae013492f612b7885a6afaa09c33957a36ba9c14055 |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/pbc/dft/test/test_gen_grid.py | Python | apache-2.0 | 3,967 | [
"PySCF"
] | 5b83cde3970a5d9926bffeff4dd78a2ebf7fb0cd656d277cd71fdda44cc824a1 |
#!/usr/bin/python
# Copyright (c) 2011 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.
"""
This module is a simple qa tool that installs extensions and tests whether the
browser crashes while visiting a list of urls.
Usag... | meego-tablet-ux/meego-app-browser | chrome/test/functional/extensions.py | Python | bsd-3-clause | 6,264 | [
"VisIt"
] | 3f2e58795cb24dabed199ab403416a113d7fa3836b0b2dd892896fdeb28008e5 |
# Copyright 2014 The Oppia 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 applicable ... | oppia/oppia | core/domain/email_manager_test.py | Python | apache-2.0 | 278,880 | [
"VisIt"
] | e036fa43f2abe189726941932dfa9223d851354cb259b02c21a5241495b0b6a8 |
# Orca
#
# Copyright 2006-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/scripts/apps/rhythmbox/formatting.py | Python | gpl-3.0 | 1,742 | [
"ORCA"
] | b8f81311b9f18a0a2bbe7bb08549017bf869b453b39967632efd6fb93359b35d |
import subprocess, os
#import shutil
from subprocess import PIPE
import sys
class Fido(object):
def __init__(self, args):
#print args,"args!!!"
infile = args[1]
outfile = args[0]
targetdecoy=args[2]
options = self.parseOptions(args[3:])
#print "so ... | wohllab/milkyway_proteomics | galaxy_milkyway_files/tools/wohl-proteomics/fido/fido.py | Python | mit | 2,743 | [
"Galaxy"
] | 33d078dceecb10d6ef85696cf787e2ccffcf130d7d3922f066ee3ff991187701 |
import util
from collections import deque
import sys
import random
parent = dict()
rank = dict()
graph = None
N = 0
def make_set(vertice):
parent[vertice] = vertice
rank[vertice] = 0
def find(vertice):
if parent[vertice] != vertice:
parent[vertice] = find(parent[vertice])
return parent[vertic... | gamwang/NPTSP | code/NPTSPalg.py | Python | mit | 16,817 | [
"VisIt"
] | c478acca3bf15d88e6fb85b7cb04aa40f1f047a47154312d642294c0604286d4 |
from lib.typecheck import *
import lib.const as C
import lib.visit as v
from ...meta.template import Template
from ...meta.clazz import Clazz
from ...meta.method import Method
from ...meta.field import Field
from ...meta.statement import Statement, to_statements
from ...meta.expression import Expression
sys_conf = {
... | plum-umd/pasket | pasket/rewrite/android/system.py | Python | mit | 1,675 | [
"VisIt"
] | b27908313325519b64d74cc2ea802b343e762063c20eadabbef36925e7cccd4e |
# (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 | v1/ansible/runner/lookup_plugins/url.py | Python | gpl-3.0 | 1,588 | [
"Brian"
] | 0bfd3eea16202fa1544c8eb68d5a21820365a593a002751c1e7adf7eeef79e25 |
# $Id$
#
# Copyright (C) 2003-2013 Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
from __future__ import print_function
i... | rvianello/rdkit | rdkit/DataStructs/TopNContainer.py | Python | bsd-3-clause | 2,074 | [
"RDKit"
] | 493d69d59d1a1f9e9ed31ce321fb61777ea40da2fe4ab05945b022814e1891f1 |
#phidget.py
#! /usr/bin/python
"""Copyright 2011 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
"""
__author__="Adam Stelmack"
__version__="2.1.8"
__date__ ="14-Jan-2011 2:29:14 PM"
#B... | maniot/ruche | scripts/weight/getrawphidget.py | Python | gpl-2.0 | 7,402 | [
"VisIt"
] | 88ca2df7e421ff00deef48c0aea9e49351e52b73288af1c773e99cd59fa4c7b8 |
"""
(This script is independent from lfc_dfc_copy)
This script is used to migrate the content of the LFC DB to the DFC DB when used with Stored procedure and Foreign keys.
It won't work with the other schema. It is the central component of the migration.
* Please read the doc of each method in this script, there are... | fstagni/DIRAC | DataManagementSystem/Utilities/lfc_dfc_db_copy.py | Python | gpl-3.0 | 40,908 | [
"DIRAC"
] | ba81ef653de56e2f66252aa18eae4ee41509282d5864e7ea50e246a6d10cef9c |
"""Class for demonstrating the ASE-calculator interface."""
import numpy as np
class Calculator:
"""ASE calculator.
A calculator should store a copy of the atoms object used for the
last calculation. When one of the *get_potential_energy*,
*get_forces*, or *get_stress* methods is called, the calcula... | grhawk/ASE | tools/ase/calculators/interface.py | Python | gpl-2.0 | 4,737 | [
"ASE"
] | 6f4b5cf4643c83f021916e9590d72768182cf9a044884f3f4f9e735fee25a7da |
# Copyright (C) 2008 CAMd
# Please see the accompanying LICENSE file for further information.
from __future__ import division
import numpy as np
from gpaw.utilities.blas import gemm
def reshape(a_x, shape):
"""Get an ndarray of size shape from a_x buffer."""
return a_x.ravel()[:np.prod(shape)].reshape(shap... | robwarm/gpaw-symm | gpaw/hs_operators.py | Python | gpl-3.0 | 21,570 | [
"GPAW"
] | 731d5f9a8473fae978082d5cdc4df49499bd9db036f7e1db19df0c99606c69e3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.