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
# # cmdline.py # # Copyright (C) 2016 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program ...
bcl/lorax
src/pylorax/cmdline.py
Python
gpl-2.0
19,823
[ "Brian" ]
d678b5e6245d8ee2cf012ece786539eb9ed93fc04667b887adcc56e7705fbf44
"""Base URL settings for the Study Buffalo website.""" from django.conf import settings from django.urls import include, path 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 from django.contrib.s...
studybuffalo/studybuffalo
config/urls.py
Python
gpl-3.0
3,687
[ "VisIt" ]
f1fd392a58e0409d778ebb6fb3baa3f111b63b72a4e137b1786e853e1e308ea2
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
jensreeder/scikit-bio
skbio/io/tests/test_base.py
Python
bsd-3-clause
14,509
[ "scikit-bio" ]
eedae62aeb624b20965c1e7849b206c08540ab32f616de777e8a5aa1394d55b3
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import os import numpy as np import matplotlib.pyplot as plt """ Performs a composite analysis of ekf log analysis meta data for all .ulg.csv files in the specified directory Generates and saves histogram plots for the meta data in population_data.pdf Gen...
krbeverx/Firmware
Tools/ecl_ekf/batch_process_metadata_ekf.py
Python
bsd-3-clause
31,696
[ "Gaussian" ]
08f13c1ef42be8c7bb7ed6dc9e1c1162eb48f79622d2aad36a9e66cf59f8294c
# -*- coding: ISO-8859-1 -*- # # Copyright (C) 2011 Michael Schindler <m-schindler@users.sourceforge.net> # # This file is part of PyX (http://pyx.sourceforge.net/). # # PyX 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...
mjg/PyX
pyx/metapost/mp_path.py
Python
gpl-2.0
18,083
[ "Gaussian" ]
4d809e4d839b9a2948b22f5028ef4ab8610b51cce440624c2468afc24c78c53b
#!/usr/bin/env python #import argparse #from glob import glob from os.path import join as jp from os.path import abspath import os import sys import argparse parser = argparse.ArgumentParser() parser.add_argument('-s', "--variants", help="List of joint (raw) variant (.vcf) files", required=True) parser.add_argument('...
shendri4/devil_wgs
GATK_variantFilters.py
Python
apache-2.0
5,154
[ "BWA" ]
eea007a54fb81c8b4e3875780e01690d47fda5dd6ddd71bd9b6e374ee06aea74
import unittest from hamcrest import * from nose.tools import nottest from test.features import BrowserTest class test_create_pages(BrowserTest): def test_about_page(self): self.browser.visit("http://0.0.0.0:8000/high-volume-services/" "by-transactions-per-year/descending") ...
gds-attic/transactions-explorer
test/features/test_create_pages.py
Python
mit
1,356
[ "VisIt" ]
5182ce1759d7f919cbfac306e3a9020a3aec1a5036699d62d0a1d96c6296224e
from pubnub import Pubnub from functools import wraps from .base_request import BaseRequest from .models.config import Config from .models.device import Device # TODO: https://github.com/resin-io/resin-sdk/pull/277/files class Logs(object): """ This class implements functions that allow processing logs from ...
nghiant2710/resin-sdk-python
resin/logs.py
Python
mit
3,779
[ "VisIt" ]
a78e915761c883bc14f64a71ed7e129242b5472abe9ff11af9cde816e50e1c82
""" The classes in this module enable random access to a variety of file formats (BAM, bigWig, bigBed, BED) using a uniform syntax, and allow you to compute coverage across many features in parallel or just a single feature. Using classes in the :mod:`metaseq.integration` and :mod:`metaseq.minibrowser` modules, you ca...
daler/metaseq
metaseq/_genomic_signal.py
Python
mit
9,644
[ "pysam" ]
aeb3da6ce9f3ce6943e526b2ac56c6a86169f641e72927f60c62d9219fff30ff
# Copyright 2001 by Jeffrey Chang. 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. """ Maximum Entropy code. Uses Improved Iterative Scaling: XXX ref # XXX need to define term...
bryback/quickseq
genescript/Bio/MaxEntropy.py
Python
mit
10,899
[ "Biopython" ]
a32065aacf50b17e9d0c91e22321a1f87df4432852d11627741c4b7f871933cb
# -*- coding: utf-8 -*- r""" =================================== Background information on filtering =================================== Here we give some background information on filtering in general, and how it is done in MNE-Python in particular. Recommended reading for practical applications of digital filter des...
mne-tools/mne-tools.github.io
0.16/_downloads/plot_background_filtering.py
Python
bsd-3-clause
44,325
[ "Gaussian" ]
2ea1249aef9b0a96b880a047c90bc8a3557f26fbf1ef0e51e3015390c0a41238
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/tests/machines/test_forms.py
Python
gpl-3.0
3,523
[ "Brian" ]
01db04a0b58eeec6294390c6bbccd0b5ca098c8ee13abbbaeb9a80c484b3b2f3
import sys, os sys.path.insert(1, os.path.join("..","..")) import h2o from tests import pyunit_utils def offsets_and_distributions(): # cars cars = h2o.upload_file(pyunit_utils.locate("smalldata/junit/cars_20mpg.csv")) cars = cars[cars["economy_20mpg"].isna() == 0] cars["economy_20mpg"] = cars["economy_20mpg...
pchmieli/h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_offsets_and_distributions_deeplearning.py
Python
apache-2.0
1,783
[ "Gaussian" ]
cd5b9b9119b87cc148103755b862488aba7928057e5dbeb741e1d61c8357bc5e
#. Common crypto state and structure import copy from mailpile.i18n import gettext as _ from mailpile.i18n import ngettext as _n class KeyLookupError(ValueError): def __init__(self, message, missing): ValueError.__init__(self, message) self.missing = missing # Crypto state is a strange beast, i...
laborautonomo/Mailpile
mailpile/crypto/state.py
Python
apache-2.0
4,794
[ "exciting" ]
8477739f20842c166416a9d281f88b4959796faba9adda8e802b4526be25087f
# -*- coding: utf-8 -*- # # connect_test_base.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 Licen...
sdiazpier/nest-simulator
testsuite/pytests/connect_test_base.py
Python
gpl-2.0
21,066
[ "NEURON" ]
fb9059a5967e03eb26220fcc57837bedbdec3f85f6bebca364e2352d8cbccf96
from mpp.models import SQLTestCase class test_lasj(SQLTestCase): """ @optimizer_mode on @tags ORCA Test Left Anti Semi Join """ sql_dir = 'sql/' ans_dir = 'expected/' out_dir = 'output/'
lintzc/gpdb
src/test/tinc/tincrepo/query/joins/lasj/test_lasj.py
Python
apache-2.0
220
[ "ORCA" ]
bcd2eba3d2b9cae49dd291850cca59e17a5321517fb9eacfe8ad2d4f850d5384
# Copyright (C) 2018 Henrique Pereira Coutada Miranda, Alejandro Molina Sanchez # All rights reserved. # # This file is part of yambopy # import os import re from math import sqrt __all__ = ['PhIn'] class PhIn(object): """ A class to generate an manipulate quantum espresso input files for ph.x """ def...
henriquemiranda/yambo-py
qepy/ph.py
Python
bsd-3-clause
2,535
[ "Quantum ESPRESSO" ]
302a949e6b36cf9472599e06bc0a8d5319b3648ae64320c90271ed027b521e83
""" Params Module ============= Calculate the governing scales and determine the appropriate simulation model This module calculates the governing non-dimensional parameters defined in papers by Socolofsky and Adams (2002, 2005) and Socolofsky et al. (2011) and uses this information to recommend the appropriate simu...
socolofs/tamoc
tamoc/params.py
Python
mit
13,233
[ "NetCDF" ]
3db28ceb181fb6ba676b34fc5fea03a1e5577f5e415007f2bd432b7af454aed5
# Copyright 2014, 2015 The ODL development group # # This file is part of ODL. # # ODL 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. ...
bgris/ODL_bgris
odl/test/trafos/fourier_test.py
Python
gpl-3.0
31,209
[ "Gaussian" ]
d2cd29b71d12716681cae6ff6fa5f6c6b6556a406b9a10cb88338df3b0e1940b
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jturney/psi4
psi4/driver/p4util/text.py
Python
lgpl-3.0
8,400
[ "Psi4" ]
6dbc67fe79f7c3b4264de751039b688680c43d1899db648e39328b46f061a60b
__author__ = 'amarch' # -*- coding: utf-8 -*- from utils import strutils as infoutils import itertools from scipy.integrate import * from RotationCurve import * from Galaxy import * from utils import strutils as infoutils import itertools import copy class RotationCurveHandler(): def __init__(self, galaxyname...
Amarchuk/2FInstability
core/RotationCurveHandler.py
Python
gpl-3.0
6,574
[ "Galaxy" ]
2f54d8395e569b36fda94171ff89f3a55211213ce10ffc9e08956e6548ab2950
# -*- coding: utf-8 -*- import numpy as np from ..state import State from .move import Move __all__ = ["MHMove"] class MHMove(Move): r"""A general Metropolis-Hastings proposal Concrete implementations can be made by providing a ``proposal_function`` argument that implements the proposal as described b...
joezuntz/emcee
src/emcee/moves/mh.py
Python
mit
2,393
[ "Gaussian" ]
5fec6c38aac5b84b94a7ad00acd16afb449ca28aaabfc43fe27f121cd1e1e6b8
#!/usr/bin/env python3 # vim:ts=4:sw=4:ai:et:si:sts=4 # Based on a script # (c) 2006 Hermann Vosseler <Ichthyostega@web.de> # This code is free software and may be used under the # terms and conditions of the GPL version 2 # Modifications and rewrite # (c) 2017 Gavin Hurlbut <gjhurlbu@gmail.com> import sys import o...
Beirdo/video-render-flow-scripts
proxychange.py
Python
mit
7,417
[ "VisIt" ]
ac2f116b975f60de19c6ed1fd3a91f06219a236154c619c6cb44d243f01e87a3
#!/usr/bin/python # -*- coding: iso-8859-1 -*- # LysKOM Protocol A version 10 client interface for Python # $Id: komwalk.py,v 1.2 2009/02/03 07:22:14 forsberg Exp $ # (C) 1999 Kent Engström. Released under GPL. import kom # The Class class Walker: # The connection has to be a subclass of CachedConnection def...
kent-engstrom/python-lyskom
komwalk.py
Python
gpl-2.0
2,052
[ "VisIt" ]
bd51127b4cfcdc0ae3c1ce3f264dbfd399f7384adee9302dfe637d35e9eb27b8
#!/usr/bin/env python3 # import needed classes, random to scramble the dices, time to add waiting time when the dice's are rolled. import random import time # Created Array of dice's number equals one side of the dice. So 1-6 is the first dice, 7-12 second and so on. dices = {1: "Ladders", 2: "Submarine", 3: "Questio...
Rinik/story-teller
story-teller.py
Python
mit
2,943
[ "Octopus" ]
5d04b9c7edd28fa494a078ac03f682a4add39a3bc43df4decf97fa14067dd805
# (c) Crown Owned Copyright, 2016. Dstl. import os import unittest from splinter import Browser class Test404Page (unittest.TestCase): def setUp(self): self.browser = Browser('phantomjs') def test_404_page_appears(self): url = "http://%s/nonsense-doesnt-exist" % os.environ['LIGHTHOUSE_HOST'...
dstl/lighthouse
acceptancetests/tests/acc_test_404.py
Python
mit
736
[ "VisIt" ]
0b959a35c3a3f15a58d0ec9a44b3c439911cc3c11e74c6e9fcf4c2fa91017d03
#!/usr/bin/env python # -*- coding: utf-8 -*- import rdkit from rdkit.Chem import AllChem from rdkit import DataStructs __license__ = "X11" METADATA = { "id": "method_rdkit_fcfc8_tanimoto", "representation": "fcfc8", "similarity": "tanimoto" } def _compute_fingerprint(molecule): return AllChem.GetM...
skodapetr/lbvs-environment
methods/fcfc/fcfc8_tanimoto.py
Python
mit
1,383
[ "RDKit" ]
ad85acfb51376c3a3b02449076cd52d386fb8da663420b5b9ef7536a073b1a4f
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-proxy-init.py # Author : Adrian Casajus ######################################################################## __RCSID__ = "$Id$" import sys import DIRAC from DIRAC.Core.Base import Script c...
andresailer/DIRAC
FrameworkSystem/scripts/dirac-myproxy-upload.py
Python
gpl-3.0
1,541
[ "DIRAC" ]
e0597fec3737388c94b6c1851d9f6e5cd18c6adf8f49c280ce79dc4155ff2fbe
import sys import pygame from pygame.locals import * from thecure import set_engine from thecure.levels import get_levels from thecure.resources import get_font_filename from thecure.signals import Signal from thecure.sprites import Player from thecure.timer import Timer from thecure.ui import GameUI class Camera(o...
chipx86/the-cure
thecure/engine.py
Python
mit
6,783
[ "CRYSTAL" ]
31e358f9d26dc09a48553a8854dab7b3d09b65adf362527f24eee231093b078f
#!/usr/bin/env python2.7 #Ryan G. Coleman, Brian K. Shoichet Lab #implements atom color table, 2 parts, 1 part is color to int mapping # other part is rules for mapping sybyl atoms to colors # defaults are encoded and writable so users can edit them import string, sys import operator class ColorTable(object): '''i...
ryancoleman/mol2db2
atom_color_table.py
Python
gpl-2.0
5,597
[ "Brian" ]
a1fc42810d39a11959b26aab22eaabc61253a4d7d430c5010249e526a0e960c2
import requests from sqlalchemy.orm.exc import NoResultFound from imapclient import IMAPClient from inbox.models import Namespace from inbox.models.backends.gmail import GmailAccount from inbox.models.backends.gmail import GmailAuthCredentials from inbox.models.backends.gmail import g_token_manager from inbox.config i...
wakermahmud/sync-engine
inbox/auth/gmail.py
Python
agpl-3.0
8,441
[ "VisIt" ]
8e979341803a5a858c8b496bac50f713d2f84eb090d9fd2689190d2d0911fa75
# Copyright 2013-2017, Brian May # # This file is part of python-alogger. # # python-alogger 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 ver...
Karaage-Cluster/python-alogger
alogger/tests/test_torque.py
Python
gpl-3.0
1,660
[ "Brian" ]
f02839fbdecce79831f1ada44f9888271b885cc4a2286294d34d73a0f144dbc4
#!/usr/bin/env python # coding: utf-8 from pathlib import Path import numpy as np from PTMCMCSampler import PTMCMCSampler # ## Define the likelihood and posterior # # Functions must read in parameter vector and output log-likelihood or log-prior. # Usually easiest to use a class if you need to store some other dat...
jellis18/PTMCMCSampler
examples/simple.py
Python
mit
2,798
[ "Gaussian" ]
fc753ebe0edae7e857d8896c38b140a4e6d2136a49c031df603418ba16d06831
"""Tornado handlers for the live notebook view. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed...
WillisXChen/django-oscar
oscar/lib/python2.7/site-packages/IPython/html/notebook/handlers.py
Python
bsd-3-clause
3,360
[ "Brian" ]
9bdd527437b85785dc9cdafdbe1070f56aa66e12dd8f10281f270ed7e512236a
####################################################################################### # Python-code: SAINT pre-processing from MaxQuant "Samples Report" output # Author: Brent Kuenzi ####################################################################################### # This program reads in a raw MaxQuant "Sam...
bornea/APOSTL
SAINT_preprocessing/toolshed_version/SAINT_preprocessing_mq_pep.py
Python
gpl-2.0
10,604
[ "Galaxy" ]
1f4e2dbce99366ffce28f929b1ca6db64e1add27ebdef93cdfde6f3e5311a19e
''' Created on 22.04.2017 @author: Mr. Jones ''' class ReplacementVisitor(): def visit(self, node, target, replacement): method = 'visit_%s' % node.__class__.__name__ return getattr(self, method, self.generic_visit)(node,target,replacement) def generic_visit(self, node,target,replace...
mrj0n3s/jimplify
Jimplify/jimplify/visitors/replacementvisitor.py
Python
mit
13,076
[ "VisIt" ]
2ab25aeb3b818dde7d7ca9ba38bd45af9308eaf04c5f0be1b678996c2e36ec5c
import matplotlib.pyplot as plt import numpy as np def plot(): # Make plot with vertical (default) colorbar fig = plt.figure() ax = fig.add_subplot(111) np.random.seed(123) data = np.clip(np.random.randn(250, 250), -1, 1) cax = ax.imshow(data, interpolation="nearest") ax.set_title("Gauss...
nschloe/matplotlib2tikz
tests/test_noise.py
Python
mit
704
[ "Gaussian" ]
ad943c199d9e5d35db956e955e884ba1eb9db6b90e5155f5ea85203ac18056bd
""" This is a procedural interface to the matplotlib object-oriented plotting library. The following plotting commands are provided; the majority have MATLAB |reg| [*]_ analogs and similar arguments. .. |reg| unicode:: 0xAE _Plotting commands acorr - plot the autocorrelation function annotate - annotate som...
SpaceKatt/CSPLN
apps/scaffolding/mac/web2py/web2py.app/Contents/Resources/lib/python2.7/matplotlib/pylab.py
Python
gpl-3.0
11,742
[ "Gaussian" ]
249961bf83d930212b0682f7a907caac573f9014a925741cf4324f3788c77d60
def freq0_carrier_calculation(freq_desired, fxosc=26.0, debug=False): """ Calculates the FREQ0, FREQ1, and FREQ2 24 bit word for main carrier frequency of the CC430. :param freq_desired: Frequency in MHz that is desired to tune to (Integer or float) :param fxosc: CC430 High Frequency crystal frequency ...
kb1lqc/Faraday-Software
faraday/proxyio/cc430radioconfig.py
Python
gpl-3.0
3,365
[ "CRYSTAL" ]
d9767d50588bcf238f538ca5d57bf7d0464143a15336cdec0c17410f587ecf64
#!/usr/bin/env python # -*- coding: utf-8 -*- # TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry # and reaction kinetics. # Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels # <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be> # Center ...
molmod/tamkin
tamkin/examples/011_ethyl_ethene_lot/geotab.py
Python
gpl-3.0
4,532
[ "Gaussian" ]
f363989393e9f4ed1d55292205796b7580b0fff7762d36f2cc71da11d52f0f94
""" Loss functions and their derivatives - Loss functions calculate overall loss - Loss derivatives calculate loss per output neuron as required by the backpropagation # y is the observed output for the training example # a is the predicted output """ import numpy as np def clip(x): epsilon = 1e-11 re...
anamayasullerey/test_net
src/start/loss_functions.py
Python
mit
943
[ "NEURON" ]
114fac0f9ad56c884f70feaf01e840e390643dac2d6d15ce005504b5f80ec6c2
from .bernoulli import Bernoulli from .exponential import Exponential from .gaussian import Gaussian, HeteroscedasticGaussian from .gamma import Gamma from .poisson import Poisson from .student_t import StudentT from .likelihood import Likelihood from .mixed_noise import MixedNoise from .binomial import Binomial from ....
befelix/GPy
GPy/likelihoods/__init__.py
Python
bsd-3-clause
380
[ "Gaussian" ]
441be4950bd4b3e10f4040b90ae555506389bead09bce5575b18bec98f49e335
""" @package medpy.itkvtk All classes/applications/scripts in this package make use of some ITK and/or VTK function or depend on functionality that uses them. The appropriate Python binding have to be installed. Please access sub-packages directly to avoid dependency clashes for if only ITK or only VTk bindings are av...
kleinfeld/medpy
medpy/itkvtk/__init__.py
Python
gpl-3.0
496
[ "VTK" ]
265ac7a86ecbcde45289a733a25a24a9b067500e2fad4da5c847e2ce6f68271a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements representations of slabs and surfaces, as well as algorithms for generating them. If you use this module, please consider citing the following work:: R. Tran, Z. Xu, B. Radhakris...
mbkumar/pymatgen
pymatgen/core/surface.py
Python
mit
87,929
[ "pymatgen" ]
5d8205c3a1dfa1b23e3786ccdf2465adcc4dae88bf9969ca0821541975571c5b
#!/usr/bin/env python import os import glob from setuptools import setup, find_packages module_dir = os.path.dirname(os.path.abspath(__file__)) if __name__ == "__main__": setup( name='GASP', version='0.1', description='Genetic algorithm for structure and phase prediction', long_d...
henniggroup/GASP-python
setup.py
Python
mit
1,398
[ "pymatgen" ]
5c01abf5f0e23c9479d43b906c4e4abc559588fceef22861252409b1e7127c90
# 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 ...
amgowano/oppia
core/domain/email_manager_test.py
Python
apache-2.0
71,267
[ "VisIt" ]
981f8fc1791c53030405b0e1290f7ba5ecb23faf82528b60d73f086d211d8a2a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals from scipy.constants import N_A from pymatgen.core.periodic_table import Element from pymatgen.core.units import Charge, Time from pymatgen.analysis.reaction_...
gpetretto/pymatgen
pymatgen/apps/battery/conversion_battery.py
Python
mit
20,899
[ "pymatgen" ]
97441b6a36f89bf27420ed6c95d9678ff57f41ddfcb47088d4eef0d54ddde3a9
''' MPI script for running a leave-one-out cross validation of interpolated temperature normals and daily temperatures using the optimal variogram and station bandwidth parameters set in steps 21-23. Must be run using mpiexec or mpirun. ''' from mpi4py import MPI from twx.db import StationSerialDataDb, STN_ID, MASK, ...
jaredwo/topowx
scripts/step24_mpi_xval_interp.py
Python
gpl-3.0
6,107
[ "NetCDF" ]
b68e0f3ef2dd4b35997fc1941f5b219dca46197b6d0c0ee5a4c9158ed784b5be
''' Author: Chandan Dwivedi Date: 04/02/2019 function to claculate amount of water stored in platform0 ''' import heapq def WaterStoredInPlatform(height): height=height.tolist() m = len(height) if m == 0: return 0 n = len(height[0]) if n == 0: return 0 ...
Jargon4072/DS-ALGO_implementations
python/ml_test/waterStored.py
Python
gpl-3.0
3,574
[ "VisIt" ]
cc65c73d53ea99f2cb0aa84acc7b88667b71e0e37e76f20a1152ff9b53f2d0d0
##In the game, Monopoly, the standard board is set up in the following way: ## ##GO A1 CC1 A2 T1 R1 B1 CH1 B2 B3 JAIL ##H2 C1 ##T2 U1 ##H1 C2 ##CH3 C3 ##R4 ...
feliposz/project-euler-solutions
python/euler84.py
Python
mit
7,297
[ "VisIt" ]
1f83c8da3513d37ae05fe5e5525f9b253c5c33ff7beb25caabcb710c3394a42c
''' Random field generation using rft1d.random.Generator1D Notes: -- Using Generator1D is faster than rft1d.randn1d for iterative generation. -- When FWHM gets large (2FWHM>nNodes), the data should be padded using the *pad* keyword. ''' import numpy as np from matplotlib import pyplot from spm1d import rft1d #(0...
0todd0000/spm1d
spm1d/rft1d/examples/random_fields_2.py
Python
gpl-3.0
909
[ "Gaussian" ]
557e8ab4bb97cc43ae1c90e7ebcae948fd4b716467b1d54fefad7283388cb187
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (C) 2013 Yahoo! Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.or...
ntt-sic/cinder
cinder/volume/flows/base.py
Python
apache-2.0
2,230
[ "VisIt" ]
38742d43e947a1f38a42ccbf59a932ee44e3b6021045abae0d753ff4b75afbe2
# author: oskar.blom@gmail.com # # Make sure your gevent version is >= 1.0 import gevent from gevent.wsgi import WSGIServer from gevent.queue import Queue from flask import Flask, Response import time # SSE "protocol" is described here: http://mzl.la/UPFyxY class ServerSentEvent(object): def __init__(self, dat...
otger/PubSubTest
tests/webtests/sse_flask_test.py
Python
lgpl-3.0
2,392
[ "VisIt" ]
ebf25f1c1fcfea9e4ea89dfa710bd1f813461b5f36ea49958c3555ea701ede6e
#!/usr/bin/env python # -*- coding: utf-8 -*- #al_blast.py #01/2014 __author__ = 'Igor Rodrigues da Costa' __contact__ = 'igor.bioinfo@gmail.com' ''' This program will check if ALs are unique and present in the genomes of compared species. Blast+ required. todo: melhorar documentação, adicionar .format as strings, m...
igorrcosta/alfie
al_blast.py
Python
gpl-2.0
13,513
[ "BLAST" ]
0c7c3742b6e3e313cde3f5bc6449c4393e3a067a6ad6a7a3441d8f887fad1b8d
from __future__ import absolute_import import datetime import pytest import six import unittest from datetime import timedelta from sentry_relay.consts import SPAN_STATUS_CODE_TO_NAME, SPAN_STATUS_NAME_TO_CODE from django.utils import timezone from freezegun import freeze_time from sentry import eventstore from sent...
beeftornado/sentry
tests/sentry/api/test_event_search.py
Python
bsd-3-clause
121,532
[ "VisIt" ]
7b4138d59ba662ccafdb167c76f542ac01dae0e6b7dbfcfff3ffb89253bf29a8
# -*- coding: utf-8 -*- """ Bok choy acceptance tests for problems in the LMS See also old lettuce tests in lms/djangoapps/courseware/features/problems.feature """ from textwrap import dedent from ..helpers import UniqueCourseTest from ...pages.studio.auto_auth import AutoAuthPage from ...pages.lms.courseware import ...
kursitet/edx-platform
common/test/acceptance/tests/lms/test_lms_problems.py
Python
agpl-3.0
16,119
[ "VisIt" ]
7b58e0be68d0a174bd1ac0f57f50e6cae9422c3d4fb79c3416e9577667fea9b9
from __future__ import with_statement import hashlib import os import posixpath import stat import re from fnmatch import filter as fnfilter from fabric.state import output, connections, env from fabric.utils import warn from fabric.context_managers import settings from six import string_types def _format_local(loc...
pashinin/fabric
fabric/sftp.py
Python
bsd-2-clause
11,657
[ "VisIt" ]
e3bb39601360acdf9e74e4c439824bb70f8a4c712aa15f47685a3791a92be8b8
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
google/loaner
loaner/web_app/backend/models/tag_model.py
Python
apache-2.0
7,606
[ "Amber" ]
03c5748b321e5de2654b1576cbdb738fb9799fbe535bd343cb6cddb7de02f714
from django.core.validators import MinValueValidator, MaxValueValidator from django.db import models from django.db.models.deletion import PROTECT from django.utils.safestring import mark_safe from edc_base.model_managers import HistoricalRecords from edc_base.model_validators import datetime_not_future from ..managers...
botswana-harvard/ambition-subject
ambition_subject/models/lumbar_puncture_csf.py
Python
gpl-3.0
5,605
[ "VisIt" ]
1cf3cb23601fbb957fbc163361d781be6570695ad9aaf158280becec43209f03
#!/usr/bin/env python3 # coding=utf-8 """ ahuman.py is to showcase agps3.py, a Python 2.7-3.5 GPSD interface Defaults host='127.0.0.1', port=2947, gpsd_protocol='json' Toggle Lat/Lon form with '0', '1', '2', '3' for RAW, DDD, DMM, DMS Toggle units with '0', 'm', 'i', 'n', for 'raw', Metric, Imperial, Nautical Togg...
wadda/gps3
examples/ahuman.py
Python
mit
13,753
[ "MOE" ]
66a1857f4174f98c1e5154b100633075f35a786d31804e426cd7c51552c4463d
# Copyright 2020 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...
xzturn/tensorflow
tensorflow/python/keras/preprocessing/image_pipeline.py
Python
apache-2.0
13,671
[ "Gaussian" ]
967633660215d8642ec72b44d9e698139f5132988f2005db284901faf12156ff
# ## Copyright (c) 2013, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np import itertools, logging from ..kern import Kern from ..core.parameterization.variational import NormalPrior from ..core.parameterization import Param from paramz import ObsAr from ....
SheffieldML/GPy
GPy/models/mrd.py
Python
bsd-3-clause
15,224
[ "Gaussian" ]
71eaef7e3689e90a0a08412cef91d7e26aa58d297c90d4ef5c960f07c2268451
from setuptools import setup import empiriciSN setup( name="empiriciSN", version='1.0.1', author="Tom Holoien", author_email="tholoien@gmail.com", url="https://github.com/tholoien/empiriciSN", packages=["empiriciSN"], description="Generate realistic parameters for a SN given host galaxy ob...
tholoien/empiriciSN
setup.py
Python
mit
872
[ "Galaxy" ]
6d9e2627a91bd7d0ab24ad2757e779f66e3a0ad037f4305c7c8d944a2cc961c5
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004, 2005 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # ...
aYukiSekiguchi/ACCESS-Chromium
third_party/mesa/MesaLib/src/mapi/glapi/gen/glX_proto_send.py
Python
bsd-3-clause
30,592
[ "Brian" ]
edd58bffdbeea004ba44a8aae64ec00ba3c30c953aebfcf48595f5f58cb22e0f
#!/usr/bin/env python ## \file tools.py # \brief file i/o functions # \author T. Lukaczyk, F. Palacios # \version 6.1.0 "Falcon" # # The current SU2 release has been coordinated by the # SU2 International Developers Society <www.su2devsociety.org> # with selected contributions from the open-source community. # # Th...
drewkett/SU2
SU2_PY/SU2/io/tools.py
Python
lgpl-2.1
47,417
[ "ParaView" ]
c2ae780cfde629900af565ecbec82a6cf4c5c520f7f34d47644e2207d0109b7e
# 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...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/scripts/apps/gnome-window-properties/script.py
Python
gpl-3.0
1,804
[ "ORCA" ]
68217451cb0eadc24d5e087995c6ff9fc73ca4239fedf78870a20203ec8bd04a
# # Copyright (C) 2013-2018 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...
hmenke/espresso
samples/lj-demo.py
Python
gpl-3.0
20,085
[ "ESPResSo", "Mayavi" ]
beb7611a3fddfa8ece3bb6b8be074f293b88a8c39c3041573f3e72715b91b16b
try: paraview.simple except: from paraview.simple import * from paraview import coprocessing #-------------------------------------------------------------- # Code generated from cpstate.py to create the CoProcessor. # ----------------------- CoProcessor definition ----------------------- def CreateCoProcessor()...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/Examples/Catalyst/MPISubCommunicatorExample/SampleScripts/feslicescript.py
Python
gpl-3.0
3,246
[ "ParaView" ]
952e471d00f9f22ea63498b7cbce04494d855b77d12b51da2f14c32e2e7e9315
""" Support for Google - Calendar Event Devices. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/google/ NOTE TO OTHER DEVELOPERS: IF YOU ADD MORE SCOPES TO THE OAUTH THAN JUST CALENDAR THEN USERS WILL NEED TO DELETE THEIR TOKEN_FILE. THEY WILL LOSE THEI...
PetePriority/home-assistant
homeassistant/components/google/__init__.py
Python
apache-2.0
9,843
[ "VisIt" ]
960397dae10c95502b2b7fe3f0bb70d22e6538d280a65620b0aab898ef4e6df4
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Filters ======= Filter bank construction ------------------------ .. autosummary:: :toctree: generated/ dct mel chroma constant_q Miscellaneous ------------- .. autosummary:: :toctree: generated/ constant_q_lengths cq_to_chroma wi...
craffel/librosa
librosa/filters.py
Python
isc
20,966
[ "Gaussian" ]
3d0f8c1493d7ce7302a15ad0be4eff1b3875ac9f995525b088238820b5bf215c
""" ====================================================================== A demo of structured Ward hierarchical clustering on an image of coins ====================================================================== Compute the segmentation of a 2D image with Ward hierarchical clustering. The clustering is spatially ...
chrsrds/scikit-learn
examples/cluster/plot_coin_ward_segmentation.py
Python
bsd-3-clause
2,639
[ "Gaussian" ]
5c72f971b6124a633df07e10e2e4c5521fa37ce3e29803fd9d193798539a45cd
""" As this module has an hard dependency against mininet and on the availability of some commands, perform the import at the top-level in order to make the relevant checks once, at import time. Furthermore, all these classes will be import anyway at some point when instantiating a Fibbing lab ... """ try: import m...
Fibbing/FibbingNode
fibbingnode/misc/mininetlib/__init__.py
Python
gpl-2.0
1,588
[ "VisIt" ]
97f02cf649782cebe035f43c440e64d599515b476244ad89ddac767d31c39b95
''' libChEBIpy (c) University of Manchester 2015 libChEBIpy is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' from ._base_object import BaseObject class Formula(BaseObject): '''Class representing a ChEBI formula.''' ...
libChEBI/libChEBIpy
libchebipy/_formula.py
Python
mit
594
[ "VisIt" ]
5b9066a0607d7bf225ccbb84f5ca7691740f44c88a57b69856b760051f390d10
""" # Notes: - This simulation seeks to emulate the COBAHH benchmark simulations of (Brette et al. 2007) using the Brian2 simulator for speed benchmark comparison to DynaSim. However, this simulation includes CLOCK-DRIVEN synapses, for direct comparison to DynaSim's clock-driven architecture. The synaptic connec...
asoplata/dynasim-benchmark-brette-2007
output/Brian2/brian2_benchmark_COBAHH_clocksyn_hidens_0008/brian2_benchmark_COBAHH_clocksyn_hidens_0008.py
Python
gpl-3.0
3,769
[ "Brian" ]
d7539eb5716d26b2f723b7976ac1a831d601f1036049677448956db29c675ec2
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Copyright (c) 2010, Enthought, Inc. # License: BSD Style. # Standard library imports. import unittest import numpy as np # Local imports. from mayavi.core.null_engine import NullEngine # Enthought library imports from mayavi.filters.threshold import Thresh...
dmsurti/mayavi
mayavi/tests/test_threshold_filter.py
Python
bsd-3-clause
4,079
[ "Mayavi" ]
eb12210fbab5baa0f613c506e12be2a0a0e85ffab42a0c6d4ca289d1b28701e0
# This file is part of wger Workout Manager. # # wger Workout Manager 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 the License, or # (at your option) any later version. # # wger W...
petervanderdoes/wger
wger/exercises/tests/test_equipment.py
Python
agpl-3.0
6,269
[ "VisIt" ]
fa9a65fe7809142710b59978c8f821de1e8b44fe10fb201a80737b877391517e
import unittest from ctree.jit import * from ctree import CONFIG from fixtures.sample_asts import * import ctypes from ctree.transformations import PyBasicConversions class TestTranslator(LazySpecializedFunction): def args_to_subconfig(self, args): return {'arg_typesig': tuple(type(get_ctype(a)) for a in ...
ucb-sejits/ctree
test/test_jit.py
Python
bsd-2-clause
4,254
[ "VisIt" ]
9eb72aceef528035414c45d3afb463b6680cb4107d55c32ae8d2436d396c4869
# Copyright 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 requ...
asgard-lab/neutron
neutron/tests/unit/agent/linux/test_ip_lib.py
Python
apache-2.0
57,832
[ "Brian" ]
1deae8a23f6007c319f121493a8c4666bba572595caab242cca9e675ce4d0be3
######################################################################## # # (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 by # the Free Software ...
gfonk/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
24,500
[ "Galaxy" ]
e2ed52bb0d5e2e238214a59314b1f29402e10456f9671f6ae13b944cf857106e
# -*- coding: utf-8 -*- # Copyright 2014-2015 VPAC # # Karaage documentation build configuration file, created by # sphinx-quickstart on Thu Jan 16 14:28:57 2014. # # 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 ...
Karaage-Cluster/karaage-debian
docs/user/conf.orig.py
Python
gpl-3.0
8,786
[ "Brian" ]
ad2cea9e8f1703d29e1975c75218d103d3ee4ddd70a948f6df0e527720b708f2
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """cclib: parsers and algorithms for computational chemistry cclib is a Python library that provides parsers for computat...
berquist/cclib
setup.py
Python
bsd-3-clause
2,036
[ "cclib" ]
d4b273c806de568ad97e281010d76e673d4276ff643f7e7a44fdba69d6387dbf
# -*- 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.contrib.auth.decorators import login_required ...
andresgz/invite2app
config/urls.py
Python
bsd-3-clause
1,274
[ "VisIt" ]
98d30b20502d6436ce7edd654c45cef47296884f313195596e3e33d18446f9fb
#!/usr/bin/env python3 import os import argparse import sys from time import sleep import subprocess import myPersonalFunctions parser = argparse.ArgumentParser(description="This is my aawsem project headquarter") parser.add_argument("--dec25", help="Run code on Dec 25", action="store_true", default=False) parser.add_...
luwei0917/awsemmd_script
archive/aawsem.py
Python
mit
24,212
[ "PyMOL" ]
110bde21b3061e9f116184457445f083795dec9a9c2afa85feaa6e1d7028f020
# 2015-03-23 LLB remove 1s wait time between snapshots import corr, adc5g, httplib import matplotlib.pyplot as plt import numpy as np import scipy.optimize import sys, time r2 = corr.katcp_wrapper.FpgaClient('r2dbe-1') r2.wait_connected() if len(sys.argv) == 2: rpt = int(sys.argv[1]) else: rpt = 30 def gaus...
sao-eht/lmtscripts
2017/corestats.py
Python
mit
1,243
[ "Gaussian" ]
1b8413724f56c4733f9ca1f55568255e5edb2f2fe4decb27fed57427d049c083
"""Main entry point for distributed next-gen sequencing pipelines. Handles running the full pipeline based on instructions """ from __future__ import print_function from collections import defaultdict import copy import os import sys import resource import tempfile from bcbio import log, heterogeneity, hla, structura...
biocyberman/bcbio-nextgen
bcbio/pipeline/main.py
Python
mit
23,807
[ "Bowtie" ]
56b75480ca968c02de37ac13d5b41dc1ded1d77f41fd43a87c4f54cb1e9638a0
# Copyright (c) 2003-2007 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # 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 ...
mattjmorrison/Pylint
checkers/exceptions.py
Python
gpl-2.0
8,086
[ "VisIt" ]
c46b9a58e38c296b29c18b7d86bb246066690cf295fb92b83d9220033cf4372b
# -*- coding: utf-8 -*- # # complex.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, or # (...
magnastrazh/NEUCOGAR
nest/serotonin/research/C/nest-2.10.0/extras/ConnPlotter/examples/complex.py
Python
gpl-2.0
5,485
[ "Gaussian" ]
2f79615d31c7ba9955e07d982556ba337a76e1ed5f5a1353b2d4092a63979b2e
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
lgarren/spack
var/spack/repos/builtin/packages/r-deseq2/package.py
Python
lgpl-2.1
2,539
[ "Bioconductor" ]
5145c0f37d044d1d96b4458bc5c2f7f211a1fc545f3fffa990c651deb467fa02
######################################################################### ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2013 Upinder S. Bhalla. and NCBS ## It is made available under the terms of the ## GNU Lesser General Public License version 2...
BhallaLab/moose-examples
snippets/reacDiffSpinyNeuron.py
Python
gpl-2.0
10,697
[ "MOOSE", "NEURON" ]
550946be09e9b352215b2a045b622958eb37ed21079c4bcab71c15a554720133
""" core implementation of testing process: init, session, runtest loop. """ import functools import os import sys import _pytest import _pytest._code import py import pytest try: from collections import MutableMapping as MappingMixin except ImportError: from UserDict import DictMixin as MappingMixin from _py...
vicky2135/lucious
oscar/lib/python2.7/site-packages/_pytest/main.py
Python
bsd-3-clause
27,754
[ "VisIt" ]
00248f2ae35411fa0ef72c6a911cb512fdc543cfb011d8d41ad91728a434c543
################################################################# # # CoreCodex - Online Assessment Tool of Programming Challenges # Copyright 2011 Core S2 - Software Solutions - See License.txt for info # # This source file is developed and maintained by: # + Jeremy Bridon jbridon@cores2.com # # File: lib/Users.py # I...
nint22/CoreCodex
corecodex/lib/Users.py
Python
mit
14,618
[ "VisIt" ]
7009724748ea3ad5fed7b17d65ad08fea8b75051e50313710d0398024cac0043
#!/usr/bin/python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
caioserra/apiAdwords
examples/adspygoogle/adwords/v201309/misc/use_oauth2.py
Python
apache-2.0
5,056
[ "VisIt" ]
6751e895191bbfaac20620fbc190bf7bb8b3bc9712e0c87f25ebd93b9e94b382
#!/usr/bin/env python import os, sys, argparse, string, re import networkx as nx SINGLE_INDEX=1 PGRAPH=nx.DiGraph() def process_hog(inputdir, fasta_ext): protdict={} for hog in os.listdir(inputdir): if hog.endswith(fasta_ext): hog_to_open = inputdir + '/' + hog #hog name trims off the extension hog_n...
tsackton/ratite-genomics
03_homology/02_hmm/process_hmm_output.py
Python
gpl-3.0
7,506
[ "Biopython" ]
6cd3819fca217f1ed271e27407ad28431fdf07583a737ea930e598ea18242a3f
#!/usr/bin/env python3 #pylint: disable=missing-docstring #* 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 ...
nuclear-wizard/moose
python/chigger/tests/field_data/plot_current_field_data.py
Python
lgpl-2.1
1,144
[ "MOOSE" ]
ba06c587548d5b448b4f331f92f5cc0403ea8cac4e9be6918491d77699cfcca6
# (C) British Crown Copyright 2010 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
jkettleb/iris
lib/iris/io/__init__.py
Python
lgpl-3.0
13,525
[ "NetCDF" ]
cd859eeeab25f4b710b8c58ec9f208c330432fd88e3894917c85d88229ed99ee
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
liuwenf/moose
python/chigger/tests/colorbar/exodus_colorbar.py
Python
lgpl-2.1
1,236
[ "MOOSE" ]
fbc0524ca3aea611f0dfb616d8d98cf483546beb567a5ddaff96639a0ef53cb0
""" Single page performance tests for Studio. """ from bok_choy.web_app_test import with_cache from nose.plugins.attrib import attr from ..tests.helpers import AcceptanceTest from common.test.acceptance.pages.studio.auto_auth import AutoAuthPage from common.test.acceptance.pages.studio.overview import CourseOutlinePa...
caesar2164/edx-platform
common/test/acceptance/performance/test_studio_performance.py
Python
agpl-3.0
3,386
[ "VisIt" ]
7201ba899f30aaf694d9c8cc81cab88a1aa450317dce308b03a21fbd5629d005
""" :mod: DMSRequestOperationsBase ==================== Just a collector of common functions """ from DIRAC import S_OK, S_ERROR from DIRAC.RequestManagementSystem.Client.Operation import Operation from DIRAC.RequestManagementSystem.Client.File import File from DIRAC.Resources.Storage.StorageElement import S...
DIRACGrid/DIRAC
src/DIRAC/DataManagementSystem/Agent/RequestOperations/DMSRequestOperationsBase.py
Python
gpl-3.0
4,190
[ "DIRAC" ]
c7acb341383ee0286a367f8b64d79e19230f46aab6428ce2e4531e6ffdd3f583
"""Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
conversationai/wikidetox
wikiconv/ingest_revisions/ingester_test.py
Python
apache-2.0
3,721
[ "TINKER" ]
295209570f3d415aa4b4be3e34a3bb70a4acc7007c5463d0aa8a105a3e8f70ae
# pylint: disable=C0111 # pylint: disable=W0621 from lettuce import world, step from nose.tools import assert_true, assert_equal # pylint: disable=E0611 from terrain.steps import reload_the_page from selenium.common.exceptions import StaleElementReferenceException ############### ACTIONS #################### @step(...
jswope00/GAI
cms/djangoapps/contentstore/features/checklists.py
Python
agpl-3.0
4,660
[ "VisIt" ]
72c96445ec0e8d8bdab53ba6ba1645c3f5ed9d06cbc1036f38de38a4278714af