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 |
|---|---|---|---|---|---|---|---|
"""Models that support pickling.
NOTE: This module is much more free to change than many other modules
in CleverHans. CleverHans is very conservative about changes to any
code that affects the output of benchmark tests (attacks, evaluation
methods, etc.). This module provides *models* not *benchmarks* and
thus is free... | openai/cleverhans | cleverhans/picklable_model.py | Python | mit | 26,268 | [
"Gaussian"
] | 1bae646c1ad02a13762b9094680f3837a9eb1d3d93101f3bad0b14fd064f3cb3 |
from Sire.IO import *
from Sire.Mol import *
from Sire.CAS import *
from Sire.System import *
from Sire.Move import *
from Sire.MM import *
from Sire.FF import *
from Sire.Units import *
from Sire.Vol import *
from Sire.Maths import *
from Sire.Base import *
from Sire.Qt import *
import os,re,sys
import shutil
from ... | michellab/SireUnitTests | unittests/SireIO/test_amber.py | Python | gpl-3.0 | 3,877 | [
"Amber"
] | 82d4df0967cdad5d2ccaab104340d575519693380417639422c4e1b64fd0fcda |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google/ldif | ldif/model/hparams.py | Python | apache-2.0 | 20,616 | [
"Gaussian"
] | ca25cadeec6279068e4b99e78c62035193202501e3defbcece98a5173b807fe3 |
# Copyright 2019 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.
import common
import json
import logging
import os
import shutil
import subprocess
import tempfile
import time
import urllib2
# Maximum amount of time to b... | endlessm/chromium-browser | build/fuchsia/amber_repo.py | Python | bsd-3-clause | 5,767 | [
"Amber"
] | 8d337ac2aa62e61f221ef756a38c9e3db594b6768045adaefe94728f3f3b9228 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | laosiaudi/tensorflow | tensorflow/contrib/distributions/python/ops/distribution.py | Python | apache-2.0 | 33,964 | [
"Gaussian"
] | ace38fd2255ea71ad3e9ae3636786087e68d0f6217c1b255d90c474a659312d0 |
"""Call HLA alleles with assembly methods implemented in bwakit.
https://github.com/lh3/bwa/blob/master/README-alt.md#hla-typing
https://github.com/lh3/bwa/tree/master/bwakit
"""
import csv
import glob
import os
import toolz as tz
from bcbio import utils
from bcbio.distributed.transaction import file_transaction
fro... | mjafin/bcbio-nextgen | bcbio/hla/bwakit.py | Python | mit | 4,025 | [
"BWA"
] | a5d2354151fe7df75c6117b9b66eed1ed13669e6f043e180ccb05bf0072ea0bf |
import numpy as np
import netCDF4
import os
import re
import calendar
import datetime as dt
import logging
logger = logging.getLogger(__name__)
from hyo2.soundspeed import __version__ as ssp_version
from hyo2.soundspeed import __doc__ as ssp_name
from hyo2.soundspeed.formats.writers.abstract import AbstractWriter
fro... | hydroffice/hyo_soundspeed | hyo2/soundspeed/formats/writers/ncei.py | Python | lgpl-2.1 | 17,269 | [
"NetCDF"
] | 8d2c3e8faa5a4082a931317b369d14cf05edbfc3c83c21b452cb1ca92774ebd9 |
#!/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... | BradErz/kops | vendor/k8s.io/kubernetes/hack/verify-flags-underscore.py | Python | apache-2.0 | 9,726 | [
"VisIt"
] | c5062d41ebac469ebea528999743f5c833e048c0334314416b6d21fad808e1b8 |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com
# 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 Softwa... | bhdouglass/agui | agui/backends/pyside/widgets/slider.py | Python | gpl-3.0 | 1,292 | [
"Brian"
] | ac9fa7f7df2d3635db769402a2894a50b21a63bf5a88683580b06724c989f2f9 |
#!/usr/bin/env python
# Copyright (c) 2012-2013 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implement... | yb-kim/gemV | util/cpt_upgrader.py | Python | bsd-3-clause | 13,812 | [
"VisIt"
] | 510591d7f13b50336323fac601764fd599cbbdd5d11fd9b498c2adca85d88ad7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Author: Thomas Beucher
Module: RBFN
Description: We find here functions which allow to compute a RBFN regression
'''
import random
import numpy as np
from Utils.CartesianProduct import cartesian
from Regression import regression
class rbfn(regression):
def ... | osigaud/ArmModelPython | Control/Regression/RBFN.py | Python | gpl-2.0 | 6,854 | [
"Gaussian"
] | 493ef47b6a7ab064c54c6ce1ce54c3983b4111b63068cab884d06c27a0f7055b |
import sys, os, re, types, HTMLParser, urllib2
import parser, db, data, constants
def _rune_cost(generator, filter_data, record, *args):
cost = 0
for rune_type in xrange(0, 4):
for i in xrange(0, getattr(record, 'rune_cost_%d' % (rune_type + 1))):
cost |= 1 << (rune_type * 2 + i)
retu... | fallenoak/simc | dbc_extract/dbc/generator.py | Python | gpl-3.0 | 174,548 | [
"BLAST",
"CRYSTAL"
] | 1d1e650d2d8d9279ecd7877e133aad5262744f8a76c958b5c5ea7d976780194f |
# This module handles input and application of Amber parameter files.
#
# Written by Konrad Hinsen
# last revision: 1999-9-13
#
_undocumented = 1
from MMTK import Units
from Scientific.IO.FortranFormat import FortranFormat, FortranLine
from Scientific.IO.TextFile import TextFile
from Scientific.DictWithDefault import... | fxia22/ASM_xf | PythonD/site_python/MMTK/ForceFields/Amber/AmberData.py | Python | gpl-2.0 | 12,133 | [
"Amber"
] | d35edeb3a2baaa4554af0ecfc13afe30df3e08a13c14d424c743621defda1fca |
#
# This file is part of Bakefile (http://bakefile.org)
#
# Copyright (C) 2008-2013 Vaclav Slavik
#
# 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... | vslavik/bakefile | src/bkl/vartypes.py | Python | mit | 11,649 | [
"VisIt"
] | fb4c3bfa8402e7d3679709bd0cc4c5126d95f2b294908049f354665425852c5e |
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 31 14:28:07 2013
@author: david
"""
'''SpecRGB is a wee program written for the analysis of vegetation properties
in RGB aerial photography.. This was originally witten for the detection of
archaeological cropamrks, but there will be other uses.
It will accept RGB imag... | dav-stott/phd-thesis | specrgb.py | Python | mit | 23,871 | [
"Gaussian"
] | 2c7feabe524267fd51b77a5450215f890aa90b7f255529770059e223f9f7289d |
#! /usr/bin/env python
from __future__ import print_function
from openturns import *
TESTPREAMBLE()
RandomGenerator.SetSeed(0)
try:
# Multivariate case
coll2 = DistributionCollection(0)
coll2.add(Dirac(1))
coll2.add(Dirac(2))
coll2.add(Bernoulli(0.7))
coll2.add(Uniform(3.0, 4.0))
d2 = Com... | aurelieladier/openturns | python/test/t_ConditionalDistribution_std.py | Python | lgpl-3.0 | 6,612 | [
"DIRAC"
] | eb27690191ecfc360d5913b26aae2bdbf12f5de992efdc8ff45b28400ad7dcc3 |
#!/usr/bin/env python
#
# Copyright 2019 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.
"""Deploys Fuchsia packages to an Amber repository in a Fuchsia
build output directory."""
import amber_repo
import argparse
import ... | endlessm/chromium-browser | build/fuchsia/deploy_to_amber_repo.py | Python | bsd-3-clause | 2,614 | [
"Amber"
] | cf96352fc22f1ff044465befaf05b07930fab92b35a1928b949de004f7e2dd2b |
#
# 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/metashadernode.py | Python | mit | 8,211 | [
"VisIt"
] | 59756a01258917cfe8904794c7f16542509e1401a5bcb355e7bd6f92e6d477d8 |
###
# Copyright 2008-2011 Diamond Light Source Ltd.
# This file is part of Diffcalc.
#
# Diffcalc 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 late... | DiamondLightSource/diffcalc | test/diffcalc/gdasupport/scannable/test_simulation.py | Python | gpl-3.0 | 3,003 | [
"Gaussian"
] | 1f07dd543c0abbde6c0942cdfc35d1f75ef2ac2c77c1250e2a920018cd3b978f |
import argparse
import sys
import logging
import os
import os.path
import logging
import errno
import shutil
import pysam
def check_file_exists(file):
if not os.path.exists(file):
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), file)
DEBUG=False
NotDEBUG=not DEBUG
parser = argparse.ArgumentPar... | shengqh/ngsperl | lib/Count/smallRNATotalCount.py | Python | apache-2.0 | 2,096 | [
"pysam"
] | 78a64a89db15a55cf5691b0f4daf9d9f82eddcee3b6fe2bc587810385171e2c5 |
#!/usr/bin/python
"""Test of Orca's support for mouseovers."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(KeyComboAction("Down"))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyPressAction(0, None, "KP_I... | pvagner/orca | test/keystrokes/firefox/mouseover_javascript_alert.py | Python | lgpl-2.1 | 1,300 | [
"ORCA"
] | eb145cae5f2eeb80388483433d37710c63183b1bf2b78193dc2dda9948e28b5d |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkRectilinearSynchronizedTemplates(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manage... | chrisidefix/devide | modules/vtk_basic/vtkRectilinearSynchronizedTemplates.py | Python | bsd-3-clause | 532 | [
"VTK"
] | 779c961eb390e2971cb873429f9ab1d64e18cf50d5662533d994bbf0b73629ee |
#!/usr/bin/python
import os, sys
try:
import pygtk
import gtk
import gtk.glade
import gobject
except:
pass
import ConfigParser
import commands
import time
class setup:
def __init__(self):
self.ARGV = {}
self.GUI = "YES"
self.IP = "localhost"
self.sPref... | CuonDeveloper/cuon | cuon_client/setup.py | Python | gpl-3.0 | 45,472 | [
"VTK"
] | f431a1cdd9456a9bc968bda991ee1751fe9a2c25eb184777fbf6787f818210a4 |
#!/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/grad/casci.py | Python | apache-2.0 | 14,386 | [
"PySCF"
] | be04c8e19cc606aff358380e6d1803e554bd932940d656c99657575e54b86dce |
import salome
import sys
import numpy
from salome.geom import geomtools
def latticeMeshPoints(geompy, Cavity):
'''
This function returns lattice points inside the geometry
'''
bbox = geompy.BoundingBox( Cavity )
lx = int( bbox[1] - bbox[0] )
ly = int( bbox[3] - bbox[2] )
pointLis... | efogliatto/multiphaseLB | tools/SALOME/latticeMesh.py | Python | gpl-3.0 | 5,648 | [
"VTK"
] | 417e37f22d34be0fa7386f1ef15e971325b3b2e2df1444a5e5c42c574be9b3db |
# -*- coding:utf-8 -*-
import logging
logger = logging.getLogger(__name__)
import ast
import re
import os.path
import tempfile
import shutil
import hashlib
import stat
from prestring.python import PythonModule
from functools import partial
from collections import namedtuple
from io import StringIO
from kamo.expr import... | podhmo/kamo | kamo/__init__.py | Python | mit | 22,218 | [
"VisIt"
] | 0a98ba13f6686e9138560a8173aad3bda1d4a21a651bec81a5bd3872b154b287 |
"""Utilities used in the Kadenze Academy Course on Deep Learning w/ Tensorflow.
Creative Applications of Deep Learning w/ Tensorflow.
Kadenze, Inc.
Parag K. Mital
Copyright Parag K. Mital, June 2016.
"""
from __future__ import print_function
import matplotlib.pyplot as plt
import tensorflow as tf
import urllib
import... | pkmital/CADL | session-1/libs/utils.py | Python | apache-2.0 | 7,785 | [
"Gaussian"
] | e90b30dcaaee6f51be7ea250e22af82da26b341b83d4bc415ee5790e542f7c9f |
"""
========================
Random Number Generation
========================
==================== =========================================================
Utility functions
==============================================================================
random Uniformly distributed values of a given sha... | mbayon/TFG-MachineLearning | venv/lib/python3.6/site-packages/numpy/random/__init__.py | Python | mit | 5,492 | [
"Gaussian"
] | b8591fd9c5d89dac9d06f4768c72b3e621f56a9e931c30c7e1de3ee7abf30940 |
import contextlib
import warnings
import numpy as np
import pandas as pd
import pytest
from xarray import (
Dataset,
SerializationWarning,
Variable,
coding,
conventions,
open_dataset,
)
from xarray.backends.common import WritableCFDataStore
from xarray.backends.memory import InMemoryDataStore
... | shoyer/xarray | xarray/tests/test_conventions.py | Python | apache-2.0 | 13,082 | [
"NetCDF"
] | 402753d01af5b87c773d37b999cc1bfd5d2d48a9c5bb6a9c6871e9b399bbff2a |
# sql/elements.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Core SQL expression elements, including :class:`.ClauseElement`,
:class:`.ColumnEle... | jessekl/flixr | venv/lib/python2.7/site-packages/sqlalchemy/sql/elements.py | Python | mit | 117,708 | [
"VisIt"
] | 75686cae430ac4d4e3d82dceb97cd70c49e089f9d9aedaba6d5d003af975d81b |
import os
import numpy as np
import pytest
import time
import psi4
@pytest.mark.quick
def test_triplet_speedup():
a = np.random.rand(10000, 10)
b = np.random.rand(10, 10000)
c = np.random.rand(10000, 10)
A = psi4.core.Matrix.from_array(a)
B = psi4.core.Matrix.from_array(b)
C = psi4.core.Matr... | lothian/psi4 | tests/pytests/test_triplet.py | Python | lgpl-3.0 | 2,929 | [
"Psi4"
] | b5802a861fb3a5a347eaa12fac85d680372ddc25f6afcdc2602824cf7dc8c0ac |
"""Support for package tracking sensors from 17track.net."""
from __future__ import annotations
from datetime import timedelta
import logging
from py17track import Client as SeventeenTrackClient
from py17track.errors import SeventeenTrackError
import voluptuous as vol
from homeassistant.components.sensor import PLAT... | mezz64/home-assistant | homeassistant/components/seventeentrack/sensor.py | Python | apache-2.0 | 11,089 | [
"VisIt"
] | e99915b34900f9ac3f495bd418f028eb96cc13078d2e1cc01f5a988c2406618a |
# Copyright (c) 2006-2013 Regents of the University of Minnesota.
# For licensing terms, see the file LICENSE.
import datetime
import os
import sys
import time
import conf
import g
from grax.user import User
from item.util.item_type import Item_Type
from item.util.watcher_parts_base import Watcher_Parts_Base
from ut... | lbouma/Cyclopath | pyserver/item/util/watcher_parts_map_edit.py | Python | apache-2.0 | 5,817 | [
"VisIt"
] | af7c10942411ae44f8e7f1647c9aa5414866b67ca8baf6b8ba03d69e4b8b0cc6 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""test_blast.py
Test generation of BLAST command-lines, and availability of dependencies.
This test suite is intended to be run from the repository root using:
pytest -v
(c) The James Hutton Institute 2017-2019
Author: Leighton Pritchard
Contact:
leighton.pritchard@h... | widdowquinn/find_differential_primers | tests/test_blast.py | Python | mit | 4,511 | [
"BLAST"
] | 362cc746ce13862d831994ff72ce94969fdd0f4482faa9e4718415c2d91f6f09 |
from setuptools import setup
setup(name='quant3p',
version='0.1',
description='Tools to do 3\' RNA-seq quantification',
url='http://github.com/ctlab/quant3p',
author='Alexey Sergushichev',
author_email='alserg@rain.ifmo.ru',
license='Apache2',
packages=['quant3p'],
insta... | ctlab/quant3p | setup.py | Python | apache-2.0 | 682 | [
"HTSeq",
"pysam"
] | 20fb6af57f29e262d6bdcf6d1ddde82ea82a50e3cecb725b1471eaeb514b4467 |
'''
build a database from a set of fasta files listed in
a source_list file
sanitise the sequences and headers
convert headers to: lcl|<dbname>_<seqoffset> <original_header>
store sequences as 80 bases per line
make an index file where all index records have the same
length as the first record
'''
import subproces... | robertvi/rjv | seqdb.py | Python | gpl-2.0 | 11,219 | [
"BLAST"
] | 90d12e25536839b1d1997bff9cb6696e6fd3134322da2f5304c5030367cf5c4b |
#
# CCLib_proxy Interface Library for High-Level operations
# Copyright (c) 2014 Ioannis Charalampidis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | jimmyw/CC2510Lib | Python/cclib/ccdebugger.py | Python | gpl-3.0 | 21,780 | [
"cclib"
] | cec50a24fda009305aff00bfbb869fcf2f50590c0cee3ed0fc2a26c59b09dc5d |
# Copyright 2001 by Tarjei Mikkelsen. All rights reserved.
# Copyright 2007 by Michiel de Hoon. 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.
"""
This module provides code to... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/KEGG/Enzyme/__init__.py | Python | gpl-2.0 | 11,577 | [
"Biopython"
] | 016665d971bf7c38370e2b9f7d12a0a33087c0017c60a065fe43272b235a2305 |
# -*- coding: utf-8 -*-
#
# Copyright (C) University College London, 2007-2012, all rights reserved.
#
# This file is part of HemeLB and is provided to you under the terms of
# the GNU LGPL. Please see LICENSE in the top level directory for full
# details.
#
from copy import copy
from vtk import vtkPlaneSource
impo... | jenshnielsen/hemelb | Tools/setuptool/HemeLbSetupTool/Model/Iolets.py | Python | lgpl-3.0 | 4,242 | [
"VTK"
] | ba5b9ee419a22444d28f78024b6904b662fb536f57c7a15511514fb222c2ddba |
#!/usr/bin/env python
import os
import re
import sys
import numpy as np
from chrom import *
from ..util import util as u
from ..util.elements import ELEMENTS
au2ang = 0.529177249
#
# GAMESS US output file
#
class Gamess(Chrom):
'''A class to parse GAMESS US td logfiles.'''
def __init__(self, outfile):
... | dpadula85/ExSPy | stable/QM_parser/parser/gamess.py | Python | gpl-3.0 | 3,672 | [
"GAMESS",
"Q-Chem"
] | 919a1d9d1551d4fce20fc0783db9676a943f9df6d81e9a1739950b6207ff4dd9 |
# -*- coding: utf-8 -*-
"""
Acceptance tests for CMS Video Module.
"""
from __future__ import absolute_import
import os
from unittest import skipIf
from bok_choy.promise import EmptyPromise
from mock import patch
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.ac... | ESOedX/edx-platform | common/test/acceptance/tests/video/test_studio_video_module.py | Python | agpl-3.0 | 11,917 | [
"VisIt"
] | e48a9f1cc9cb55a141fc412bd90ecdd57c555f179304eff3c8d0732d80dee4d8 |
########################################################################
# $HeadURL$
########################################################################
""" Proxy Renewal agent is the key element of the Proxy Repository
which maintains the user proxies alive
"""
__RCSID__ = "$Id$"
from DIRAC.Core.Base.Agen... | sposs/DIRAC | FrameworkSystem/Agent/MyProxyRenewalAgent.py | Python | gpl-3.0 | 3,005 | [
"DIRAC"
] | 4e2c2701f368f530ca8bbb24d11a783a160e04fdfedf97d3702ff977842fdc76 |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | psci2195/espresso-ffans | maintainer/benchmarks/lj.py | Python | gpl-3.0 | 7,869 | [
"ESPResSo"
] | 7ecc154341f8b7625ef71213e52f00197538a523223a3fcad48f6aa4d4419d44 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRenderer(ren1)
renWin.SetSize(300, 300)
iren = vtk.vtkRenderWindowInteractor... | hlzz/dotfiles | graphics/VTK-7.0.0/Rendering/Volume/Testing/Python/gaussian.py | Python | bsd-3-clause | 5,689 | [
"VTK"
] | 4b6ca842595bcb71e647abafd87f0e7f437d8d3e7a852dfa73f7e051c04b4556 |
"""
Binomial Posterior
------------------
Figure 5.9
The solid line in the left panel shows the posterior pdf p(b|k, N) described by
eq. 5.71, for k = 4 and N = 10. The dashed line shows a Gaussian approximation
described in Section 3.3.3. The right panel shows the corresponding cumulative
distributions. A value of 0.... | nhuntwalker/astroML | book_figures/chapter5/fig_posterior_binomial.py | Python | bsd-2-clause | 2,399 | [
"Gaussian"
] | a89e80b130dc21fa08d5d9328cd80cbaa842b7649161690138103def6578b4ba |
"""
Parses an XML feed into a Python representation. You should probably use L{iface_cache.iface_cache} rather than the functions here.
"""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from zeroinstall import _, logger
import os
import errno
from zeroinstall i... | timdiels/0install | zeroinstall/injector/reader.py | Python | lgpl-2.1 | 9,961 | [
"VisIt"
] | 70a8a8caf57db1b63466a932902684845b43114b0751b36d2836fe2facdf998f |
##############################################################################
# Copyright (c) 2017 Mark Olesen, OpenCFD Ltd.
#
# This file was authored by Mark Olesen <mark.olesen@esi-group.com>
# and is released as part of spack under the LGPL license.
# LLNL-CODE-647188
#
# For details, see https://github.com/spack/... | skosukhin/spack | var/spack/repos/builtin/packages/openfoam-com/package.py | Python | lgpl-2.1 | 29,537 | [
"ParaView"
] | 97484de52e304c0e193217e1c101b0e82ffb092c50d4b72263b9fb2dfc5f4807 |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
General linear models
--------------------
"""
from __future__ import absolute_import
import numpy as np
from . import family
from .regression import WLSModel
from nipy.externals.six import Iterator... | alexis-roche/nipy | nipy/algorithms/statistics/models/glm.py | Python | bsd-3-clause | 2,712 | [
"Gaussian"
] | 4ed6e6699a2aad1f8ba700072a8f72569b4b3d8769e758bf67ed29424498900e |
# -*- coding: utf-8 -*-
from ZIBMolPy.internals import InternalArray, Converter
import numpy as np
from os import path
from glob import glob
import traceback
from ZIBMolPy.node import Node
from ZIBMolPy import utils
import time
from ZIBMolPy.constants import BOLTZMANN, AVOGADRO
# needed to eval pool-desc.txt
import d... | CMD-at-ZIB/ZIBMolPy | ZIBMolPy_package/ZIBMolPy/pool.py | Python | lgpl-3.0 | 7,015 | [
"Avogadro"
] | 023ffcd10ac201dbb07cf729b45a061d23a93812c1666ad7a51188e3ff2a5539 |
#
# Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Honeybee.
#
# Copyright (c) 2013-2020, Mostapha Sadeghipour Roudsari <mostapha@ladybug.tools>
# Honeybee is free software; you can redistribute it and/or modify
# it under the terms of the GNU G... | mostaphaRoudsari/Honeybee | src/Honeybee_Lookup Daylighting Folder.py | Python | gpl-3.0 | 10,354 | [
"EPW"
] | d3a746467b693f0e7c231a33c0451c1f355d02f6ced120007b298de932103b6a |
#!/usr/bin/python
# SWiM - a semi-Lagrangian, semi-implicit shallow water model in
# Cartesian coordiates
# Copyright (C) 2008-2012 Christian Lerrahn
#
# 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 Founda... | jsfan/swim | scripts/swimplot.nio.py | Python | gpl-3.0 | 6,696 | [
"NetCDF"
] | 4e805eb3fd30eed6c84417cc68e511290919640670fe93e4c64ae81768269d2b |
from builtins import range
import numpy as np
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N
examples, where each example x[i] has shape (d_1, ..., d_k). We will
reshape each ... | halimacc/CS231n-assignments | assignment2/cs231n/layers.py | Python | unlicense | 25,347 | [
"NEURON"
] | fc4656a7c1b612548ed47f34f87873ddbbdc43d642d3a96b4050c02e49dc8071 |
from LOTlib.Miscellaneous import random, weighted_sample
from LOTlib.DataAndObjects import FunctionData, sample_sets_of_objects, make_all_objects
from Primitives import word_to_number
ALPHA = 0.75 # the probability of uttering something true
# ========================================================================... | ebigelow/LOTlib | LOTlib/Examples/Number/Model/Data.py | Python | gpl-3.0 | 2,421 | [
"exciting"
] | 5c7f4fe0bf5344ba6c265e24d3c255dd6c30ef1af6b85b4cc4a3a59082ccd182 |
#!/usr/bin/env python
from __future__ import print_function
import argparse
import os
import sys
import glob
import shlex
import shutil
import datetime
import time
import random
from subprocess import check_call, check_output, CalledProcessError, Popen, STDOUT, PIPE
import socket
try:
from urllib.parse import urlpa... | SANBI-SA/tools-sanbi-uwc | tools/build_ctb_gene/build_ctb_gene.py | Python | gpl-3.0 | 6,407 | [
"Galaxy"
] | eb44676a8f548348312f8da14698f7b8bdf96fa52c6b770462403eeb48bbfb65 |
from lettuce import *
from survey.features.page_objects.batches import BatchListPage, AddBatchPage
from survey.models.surveys import Survey
from survey.features.page_objects.surveys import SurveyListPage, AddSurveyPage, EditSurveyPage
@step(u'And I visit surveys listing page')
def and_i_visit_surveys_listing_page(st... | unicefuganda/uSurvey | survey/features/survey_steps.py | Python | bsd-3-clause | 5,224 | [
"VisIt"
] | 120adc585d9ab7f5d45a827b62a47b564b8249b83e9d343372338a1a25db65b6 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/preparation/preparer.py | Python | agpl-3.0 | 68,053 | [
"Galaxy"
] | 82006fe90bd5728c97629e551fc8b77f7e74214751c79b002dc842289c101c35 |
import test.support
# Skip tests if _multiprocessing wasn't built.
test.support.import_module('_multiprocessing')
# Skip tests if sem_open implementation is broken.
test.support.import_module('multiprocessing.synchronize')
# import threading after _multiprocessing to raise a more relevant error
# message: "No module n... | yotchang4s/cafebabepy | src/main/python/test/test_concurrent_futures.py | Python | bsd-3-clause | 27,089 | [
"Brian"
] | 71b45d12734080c6975ee58dd12cfabb77f102b69a6d2db51053f9a9a5770506 |
from io import BytesIO
from threading import Lock
import contextlib
import itertools
import os.path
import pickle
import shutil
import tempfile
import unittest
import sys
import numpy as np
import pandas as pd
import xarray as xr
from xarray import Dataset, open_dataset, open_mfdataset, backends, save_mfdataset
from ... | drewokane/xray | xarray/test/test_backends.py | Python | apache-2.0 | 43,981 | [
"NetCDF"
] | 52c01dc7355ff2d490ff8c1e0540a73f62d595defddaae7f8eb550bef816e265 |
#!/usr/bin/env python2
#
# Copyright (C) 2013-2018
# Max Planck Institute for Polymer Research
#
# 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, eith... | kkreis/espressopp | testsuite/AdResS/RDFatomistic/test_RDFatomistic.py | Python | gpl-3.0 | 8,264 | [
"ESPResSo"
] | cdd84de045840218ab2610b292e885f6150215f77ccb9cc312b16edf3247ef01 |
# -*- coding: utf-8 -*-
# kchannel.py ---
#
# Filename: kchannel.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Wed Jun 4 12:30:31 2014 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# This pr... | dharmasam9/moose-core | tests/python/mus/kchannel.py | Python | gpl-3.0 | 5,844 | [
"MOOSE",
"NEURON"
] | 7bca602f204896e191d2123b1a2dadb477442e19a78e24e91b6959518d6a50c3 |
# -*- coding: utf-8 -*-
"""Various Statistical Tests
Warning: Work in progress
TODO
* how easy is it to attach a test that is a class to a result instance,
for example CompareCox as a method compare_cox(self, other) ?
Author: josef-pktd
License: BSD
"""
import numpy as np
from scipy import stats
import scikits.s... | wesm/statsmodels | scikits/statsmodels/sandbox/stats/diagnostic.py | Python | bsd-3-clause | 39,272 | [
"ADF"
] | 23263841c89ac3a2f3b7349c6729ac6188a93f9ef0b63b4dff49f0aebc167c6e |
"""A notebook manager that uses Azure blob storage.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distrib... | noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/html/services/notebooks/azurenbmanager.py | Python | apache-2.0 | 5,554 | [
"Brian"
] | 4574c864ba7b7443bacd847c8699338e3234270c05de3cd142477ff7ab44d23c |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides input and output mechanisms
for the xr file format, which is a modified CSSR
file format and, for example, used in GULP.
In particular, the module makes it easy
to remove shell positio... | gmatteo/pymatgen | pymatgen/io/xr.py | Python | mit | 6,232 | [
"GULP",
"pymatgen"
] | ef2edeecd324da86c63ba647a714a918aa7723f0528aac91c41a8162476bb97a |
from Orange.core import Distribution
from Orange.core import DiscDistribution as Discrete
from Orange.core import ContDistribution as Continuous
from Orange.core import GaussianDistribution as Gaussian
from Orange.core import DomainDistributions as Domain
| yzl0083/orange | Orange/statistics/distribution.py | Python | gpl-3.0 | 257 | [
"Gaussian"
] | 76fac887ce49f11cc5998d4c1d58de51fa3d6389893b84eb57470fb296b5bcac |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import absolute_import, divis... | mganeva/mantid | Framework/PythonInterface/test/python/plugins/algorithms/ConvertWANDSCDtoQTest.py | Python | gpl-3.0 | 7,162 | [
"Gaussian"
] | 0bedbe58bca54394c992d0d24e36934da439f2d6b4dfc2f08c01daea6d2bd667 |
from pymatgen.io.adf import AdfKey, AdfTask, AdfOutput, AdfInput
from pymatgen.core.structure import Molecule
import unittest
import os
from os.path import join
__author__ = 'Xin Chen, chenxin13@mails.tsinghua.edu.cn'
test_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..",
'test... | gVallverdu/pymatgen | pymatgen/io/tests/test_adf.py | Python | mit | 10,135 | [
"ADF",
"pymatgen"
] | e9e3395c724bd055015303380be580c831faff36c98f4e2bb9bfc19afe328014 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-apigee-connect | tests/unit/gapic/apigeeconnect_v1/test_connection_service.py | Python | apache-2.0 | 61,692 | [
"Octopus"
] | 329e0919c1d14926b4c3e0c9f9d860053d636aac3fe6dae0e5fad902618ef9c2 |
from ladybug.legend import Legend, LegendParameters
from ladybug.graphic import GraphicContainer
from ladybug.epw import EPW
from ladybug.psychchart import PsychrometricChart
from ladybug_geometry.geometry2d.pointvector import Point2D
from ladybug_geometry.geometry2d.line import LineSegment2D
from ladybug_geometry.geo... | ladybug-analysis-tools/ladybug-core | tests/psychchart_test.py | Python | gpl-3.0 | 5,890 | [
"EPW"
] | bc667713f613ae4e0e77176f004ada5d9d8dda09fe9de95fb17c1ca19e61271c |
"""
A prototype implementation of Use Case 9
"""
import xarray as xr
import os
import matplotlib.pyplot as plt
import numpy as np
# This is just a prototype, hence the hard coded paths
CLOUD_ECV_PATH = '/home/ccitbx/cci_data/cloud/2008/'
AEROSOL_ECV_PATH = '/home/ccitbx/cci_data/aerosol/2008_monthly/'
def read_dat... | CCI-Tools/sandbox | notebooks/Janis/UC9.py | Python | gpl-3.0 | 2,897 | [
"NetCDF"
] | b926fae98a938ffa4973228fd567aed864ba786cbb9f253d202558cc83ed5e95 |
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from zeroinstall import _, gobject
from zeroinstall.support import tasks
from zeroinstall.injector import handler, download
version = '1.15'
class GUIHandler(handler.Handler):
dl_callbacks = None # Download -> [ c... | dsqmoore/0install | zeroinstall/0launch-gui/gui.py | Python | lgpl-2.1 | 2,898 | [
"VisIt"
] | d050f59dd20c32a422bdff68cf1a33117f2ef43bc51b6bafbad937ebc42c28d3 |
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as publishe... | eljost/pysisyphus | pysisyphus/peakdetect.py | Python | gpl-3.0 | 34,833 | [
"TINKER"
] | 89cd71620bf994bf2f118d9f24123e513e3ab582bd5a2f7f0e96d2686fee19ee |
import espressopp
from espressopp import Int3D, Real3D
from espressopp.tools import decomp
from espressopp.tools import lattice
import random
import sys
print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
print "+ Due to a recent change in the design of ESPResSo++ the Parallel Tem... | fedepad/espressopp | examples/parallel_tempering/parallel_tempering.py | Python | gpl-3.0 | 3,269 | [
"ESPResSo"
] | c7d992e571cd2d8213e1b0a6c368acd8c9f0850006d3f5d5bff44b616a533b5b |
"""
This migration script adds the following new tables for supporting Galaxy forms:
1) form_definition_current
2) form_definition
3) form_values
4) request_type
5) request
6) sample
7) sample_state
8) sample_event
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.exc import *
from migrate impor... | volpino/Yeps-EURAC | lib/galaxy/model/migrate/versions/0008_galaxy_forms.py | Python | mit | 8,243 | [
"Galaxy"
] | c1cd5bdfce2c6ea94e1daa069d61c5747a642d8733891e105ed43132f2bcf941 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 3 16:27:19 2018
@author: binggu
"""
import numpy as np
#! program to illustrate the colored Gaussian Noise generator CGAUSS
#! The routine must be initialized with CGAUS0 and calls a flat distribution
#! random number generator available with mo... | binghongcha08/pyQMD | scitools/noise.py | Python | gpl-3.0 | 3,612 | [
"Gaussian"
] | bd996f8fafff54a4383cf669f8f5a9ea3990620130e2bcc7c7219488721b04b4 |
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesse... | FedoraScientific/salome-kernel | bin/virtual_salome.py | Python | lgpl-2.1 | 15,861 | [
"ParaView"
] | f87d95387d3bde73fe3c1c55479f3eb3c661dceb9ee2e5deb3fc669db96424d6 |
""" This file contains the methods for accessing the Messages Stored in the LoggingDB;
getMessagesByDate()
getMessagesBySite()
getMessagesByUser()
getMessagesByFixedText()
getMessagesByGroup()
getMessagesBySiteNode()
getMessages()
getCountMessages()
getGroupedMessages()
getGroups... | chaen/DIRAC | FrameworkSystem/Client/LoggerClient.py | Python | gpl-3.0 | 9,298 | [
"DIRAC"
] | d13d22a211adc6daaf748bd6259394fb891f241b22bd06699495d26995e7cb68 |
"""
Module responsible for translating reference sequence data into GA4GH native
objects.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import hashlib
import json
import random
import pysam
import ga4gh.datamodel as datamodel
import ga4gh.protocol a... | macieksmuga/server | ga4gh/datamodel/references.py | Python | apache-2.0 | 17,525 | [
"pysam"
] | fb061f7c04ee92621c3fcbd2dc7f8fd057c4ecbbfde83289b0e3fcb6d1281521 |
import yt
from yt import derived_field
import numpy as np
import matplotlib.pyplot as plt
from galaxy_analysis import Galaxy
import glob
import sys, os
#
# As Copied from stack overflow with some minor renaming edits:
#
import matplotlib.colors as mpl_colors
class MidpointNormalize(mpl_colors.Normalize):
"""
... | aemerick/galaxy_analysis | plot/plot_stars_projection.py | Python | mit | 9,208 | [
"Galaxy"
] | 58cb377fd5e0c600d48ca71d8dd283c753cb6a770a8e9b6de25df1f90629807b |
from graphql import parse
from graphql.language import visit, Visitor, ParallelVisitor
from ..fixtures import big_schema_sdl # noqa: F401
class DummyVisitor(Visitor):
@staticmethod
def enter(*args):
pass
@staticmethod
def leave(*args):
pass
def test_visit_all_ast_nodes(benchmark, ... | graphql-python/graphql-core | tests/benchmarks/test_visit.py | Python | mit | 744 | [
"VisIt"
] | 91135d287c1592636d4e3acbf0236953f35fb7469a94cc04a2af9d376d586f81 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kannon92/psi4 | psi4/driver/qcdb/orca.py | Python | gpl-2.0 | 13,133 | [
"ORCA",
"Psi4"
] | b29892f7579999f87a24ad1f80d46272fc7f92a0e46b39178ef3033e93d49085 |
"""Messages provide a temporary message that will disappear after a few seconds.
Reference
^^^^^^^^^
https://ant.design/components/message/
"""
import flask
from flask_socketio import emit
import eventlet
from bowtie._component import pack
from bowtie._utils import func_name
def _message(status, content):
"""S... | jwkvam/bowtie | bowtie/feedback/message.py | Python | mit | 1,538 | [
"Bowtie"
] | 778e457edf850e38da23475a0294a4836cae21fbd87bce79ffea42be675284c3 |
def parsearguments():
import argparse,sys
epilog = """============================== Alea jacta est =============================="""
parser = argparse.ArgumentParser(epilog=epilog,formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('INFNAME',help="Path to the xam or fastx file... | tdido/tstk | tstk/collapse.py | Python | mit | 2,042 | [
"pysam"
] | 8bcf7c54cb18281504562e5a95f27e262dc171cd64fdcc5a6a684580e03e3754 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Martin Hawlisch, Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2011 Michiel D. Nauta
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | SNoiraud/gramps | gramps/plugins/importer/importvcard.py | Python | gpl-2.0 | 23,188 | [
"Brian"
] | 4a2fcb81b563c87edca65953337b47ecaf121e4dac6c638fc8cf387b6da06f2b |
# -*- coding: utf-8 -*-
"""Model unit tests."""
import datetime as dt
import pytest
from octopus.models import User, Role
from .factories import UserFactory
@pytest.mark.usefixtures('db')
class TestUser:
def test_get_by_id(self):
user = User('foo', 'foo@bar.com')
user.save()
retrieved = User.get_by_i... | quaintm/octopus | tests/test_models.py | Python | bsd-3-clause | 1,544 | [
"Octopus"
] | bd55b72edd53608f1ae5439619bdd3ac10173c9e388309479884968830803c9c |
#
# 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 us... | charlesccychen/incubator-beam | sdks/python/apache_beam/runners/dataflow/dataflow_runner.py | Python | apache-2.0 | 53,855 | [
"VisIt"
] | 137c60503f6b445336afba21f4153aadd0a9b4ff34fc164a412e0b12db024851 |
#!/usr/bin/env python
#
# Appcelerator Titanium Module Packager
#
#
import os, subprocess, sys, glob, string
import zipfile
from datetime import date
cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
os.chdir(cwd)
required_module_keys = ['architectures', 'name','version','moduleid','descripti... | eventhero/TiZebraPrint | iphone/build.py | Python | mit | 8,522 | [
"VisIt"
] | 0575597218d7f4359f269cdefcc4f631d73ae97973580920da824b42a54ed61f |
"""
Testing the MlabSceneModel
"""
import unittest
import numpy as np
from traits.api import HasTraits, Instance
from mayavi.tools.mlab_scene_model import MlabSceneModel
from mayavi import mlab
from .test_mlab_integration import TestMlabNullEngine
####################################################################... | dmsurti/mayavi | mayavi/tests/test_mlab_scene_model.py | Python | bsd-3-clause | 1,439 | [
"Mayavi"
] | ced98e337fbd0e13e10d30eafb7661d1af686702aca7275211f6489720bc8be0 |
####################################################
# Visualization functions
###############################################
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def visualize_distr(V):
"""
Shows the distribuition of voltages
"""
Vdist = V.res... | h-mayorquin/Neural_Pattern_Doursat | visualization_functions.py | Python | gpl-2.0 | 3,370 | [
"NEURON"
] | f2d4f2500f260a8449fc22584bb8c401f7c3ae56e92f759ab1de490142b51bee |
""" TaskQueueDB class is a front-end to the task queues db
"""
__RCSID__ = "$Id"
import types
import random
from DIRAC import gConfig, gLogger, S_OK, S_ERROR
from DIRAC.WorkloadManagementSystem.private.SharesCorrector import SharesCorrector
from DIRAC.WorkloadManagementSystem.private.Queues import maxCPUSegments
fro... | vmendez/DIRAC | WorkloadManagementSystem/DB/TaskQueueDB.py | Python | gpl-3.0 | 52,914 | [
"DIRAC"
] | bec833b4618922f3b1ce34c41b76b9db9841f3d3fe5fba4f4818cb427b978ba8 |
"""
Multi-resolution ECC - useful if the videos have wide-angle (fisheye) lense distortion.
NOTE: running ecc_homo_spacetime() on the same inputs results in the same output
images (so, if saving .PNG files with the same parameters,
they should be the same).
The saved output frames:
R, B (--> purple) channe... | alexsusu/video-diff | Python/ecc_homo_spacetime.py | Python | bsd-3-clause | 152,940 | [
"Gaussian"
] | 20d4195f7e15a9f73c720905833fcf0a25e720bb06d8d9fa09da76616b7dad10 |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Pedro Tabacof
# tabacof at gmail dot com
# April 2016
#
# Bayesian uncertainty in MNIST classification
#
# Based on the MNIST Lasagne example
# https://github.com/Lasagne/Lasagne/blob/master/examples/mnist.py
from __future__ import print_function
import numpy as np
im... | tabacof/bayesian-nn-uncertainty | uncertainty.py | Python | mit | 8,619 | [
"Gaussian"
] | a160ef2ba59f679b2e6233737f3bd84b6d9f87585db4dffdfd2d3dea3ad93efb |
import argparse
import os
import sys
try:
from urllib.parse import urlparse # Python 3
except ImportError:
from urlparse import urlparse # Python 2
from . import Sensorml2Iso
_EPILOG = """
"""
SOS_URLS = [
'http://sos.aoos.org/sos/sos/kvp',
'http://sos.cencoos.org/sos/sos/kvp',
'http://data.gco... | ioos/sensorml2iso | sensorml2iso/command_line.py | Python | mit | 5,079 | [
"NetCDF"
] | 935ebbad3da61f055a1f8bc2ba12e7d544fb7bea58ad1a7ca8ea53ca7a2c6446 |
# Copyright (c) 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | cyx1231st/nova | nova/tests/unit/compute/test_resource_tracker.py | Python | apache-2.0 | 59,869 | [
"exciting"
] | 5f056d0b741f5bd01c0664700bcbbf9cf0e4fc186e27d0d1919543335a80a9fd |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2009 Nick Hall
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Tim G L Lyons
#
# This program is ... | arunkgupta/gramps | gramps/plugins/textreport/indivcomplete.py | Python | gpl-2.0 | 32,956 | [
"Brian"
] | 6c70a268b06e82d43ea1266e972c5757bc01d17c4d36e24953681f79c6f0e612 |
#
# @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
#... | lothian/psi4 | psi4/driver/endorsed_plugins.py | Python | lgpl-3.0 | 1,608 | [
"Psi4"
] | d3e1a7fa8ceff539f8f78be2e10dc532dcd139a67959c302f51929aa8fb2733d |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import logging
import os
import unittest
from monty.serialization import loadfn
from pymatgen.core.structure import Molecule
from pymatgen.io.qchem.inputs import QCInput
from pymatgen.util.testing import PymatgenTest
__aut... | vorwerkc/pymatgen | pymatgen/io/qchem/tests/test_inputs.py | Python | mit | 30,405 | [
"pymatgen"
] | 85f29fdee02fb543436fca1275eac67999c34db15ccb61bd1b3753c01ac4fd5b |
import py
import pytest
import tox
import os
import sys
from py.builtin import _isbytes, _istext, print_
from fnmatch import fnmatch
import time
from .config import parseconfig
from .venv import VirtualEnv
from .session import Action
from .result import ResultLog
def pytest_configure():
if 'TOXENV' in os.environ:... | vicky2135/lucious | oscar/lib/python2.7/site-packages/tox/_pytestplugin.py | Python | bsd-3-clause | 10,280 | [
"VisIt"
] | 6025fdf8496ac02822ffa94a10f956f4418f0210732e3ce0d5c4d7d6aec28559 |
# Orca
#
# Copyright 2014 Igalia, S.L.
#
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# 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 o... | pvagner/orca | src/orca/scripts/apps/Thunderbird/spellcheck.py | Python | lgpl-2.1 | 3,072 | [
"ORCA"
] | 8a5b0d542ec069eab074cc6cf5d1f8c756645596c5833a830f6f9df0dd9a0480 |
# -*- coding: utf-8 -*-
import os
import config
import time
if config.mode == "LSF":
import sys_LSF as manager
elif config.mode == "LOCAL":
import sys_single as manager
else:
import sys_OTHER as manager
def change_environment(env):
if len(env) > 0:
for var, val in env.iteritems():
... | HudsonAlpha/aRNAPipe | lib/vcrparser.py | Python | mit | 14,142 | [
"HTSeq"
] | 596293820aad355e936bb99c64ca4f15ad6a03e9a9c1ecd9aea77041a16a01b1 |
# -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2014-2017 CERN.
#
# INSPIRE 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 ... | rikirenz/inspire-next | inspirehep/modules/search/walkers/elasticsearch.py | Python | gpl-3.0 | 7,918 | [
"VisIt"
] | 7c645339ae2f1dbf9cd881283f60f5b9cf47a0aa016d8eb8246efe508ded6116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.