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 |
|---|---|---|---|---|---|---|---|
""" Graph is a class providing layouts for the complete plot images including
titles multiple plots and a legend
The DIRAC Graphs package is derived from the GraphTool plotting package of the
CMS/Phedex Project by ... <to be added>
"""
__RCSID__ = "$Id$"
from matplotlib.backends.backend_agg import Fi... | Sbalbp/DIRAC | Core/Utilities/Graphs/Graph.py | Python | gpl-3.0 | 12,204 | [
"DIRAC"
] | 28c5302a83df9db9c460ccaad59b79f2ca3881364603cdd2226522eadb4438ab |
import numpy as np
# Although reimporting * is not generally recommended
# we have to do it here so that it has all the mathematical
# functions ready to use when evaluating the equations.
# An alternative is to check for all the maths functions, such
# as exp, log, trigonometric etc.. and convert them to sympy
from s... | etyephe/pygom | pygom/model/_model_verification.py | Python | gpl-2.0 | 4,740 | [
"Avogadro"
] | aba3027b9c0c18dd6005aeb17e46dfd7c22a8a23a29ed28400966b0fe9eb9c27 |
#!/usr/bin/env python
#
# @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
#... | kannon92/psi4 | psi4/share/psi4/scripts/setenv.py | Python | gpl-2.0 | 11,565 | [
"Psi4"
] | f3288e9aad0c5ac04cb8899274ee0a043b4a8e0dcae39fa00729d7c75da6fde3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Muammar El Khatib"
__copyright__ = "Copyright 2014, Muammar El Khatib"
__credits__ = [""]
__license__ = "GPL"
__version__ = "3"
__maintainer__ = "Muammar El Khatib"
__email__ = "muammarelkhatib@gmail.com"
__status__ = "Development"
"""
"""
This is a python... | muammar/huckel | huckel.py | Python | gpl-3.0 | 5,344 | [
"Molpro"
] | 8a073706b37a845d0012a092893e69ef2180cb19a4623c9c16c973512a669c77 |
"""Code for the B{0desktop} command."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
from zeroinstall import _, logger
import sys
from optparse import OptionParser
import logging
def main(command_args):
"""Implements the... | rammstein/0install | zeroinstall/gtkui/desktop.py | Python | lgpl-2.1 | 2,191 | [
"VisIt"
] | c3927014040172ad619082a30bad16685cfd63dd97fcdfa045c414fae6a232cf |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Adios(AutotoolsPackage):
"""The Adaptable IO System (ADIOS) provides a simple,
flexibl... | iulian787/spack | var/spack/repos/builtin/packages/adios/package.py | Python | lgpl-2.1 | 7,134 | [
"NetCDF"
] | 1a576b0a16d730f293c202a8d0fe83c62deb7263a2a2584ea18275fddcac4f56 |
import numpy as np
import numpy.ma as ma
import fitsio
import types
import os
from os.path import exists
import csv
#from ellimaskfunc_easy import ElliMaskFunc
#from ellimaskfunc import ElliMaskFunc
#from bkgdfunc import BkgdFunc
#from casgm import casgm
from flagfunc import GetFlag, isset, SetFlag
#from outmaskfunc_e... | vvinuv/pymorph | pymorph/pymorphutils.py | Python | gpl-2.0 | 28,046 | [
"Galaxy",
"Gaussian"
] | d03cb1a5dd8204b7361b8f61a14de0edce1fddf7af02f3bf4aec052a3a04733b |
'''
This program is for convert BLAT's result into standard SAM.
Thus it must be run after finished filtering
'''
import re
from optparse import OptionParser
from selected_the_multiply_mapped_reads_of_the_same_genomic_position import complement_sequence
CIGAR_parser = re.compile(r'([0-9]+[M|I|D|N|S|H|P])')
H_parser ... | claudejrogers/RNASEQR | convert_blat_resulted_sam_to_standard_sam.py | Python | gpl-3.0 | 2,502 | [
"BWA",
"Bowtie"
] | 644f7c2371894711cf74e5f4de3e020363e5bd8d05a5dbada78606a033b9a659 |
# -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from openedx.core.djangoapps.content.course_structures.models import CourseStructure
class CoursewareConfig(AppConfig):
name = 'courseware'
ve... | Learningtribes/edx-platform | lms/djangoapps/courseware/apps.py | Python | agpl-3.0 | 730 | [
"VisIt"
] | 4adf7cd2ada3cb3e05c4ce672980e0175a511c63139dd597d47f43582f774110 |
# -*- coding: utf-8 -*-
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
if __name__ == '__main__':
print """\
You are using the wrong setup.py script! This setup.py defines a
Setup class used to hold the atomic data needed for a specific atom.
For building the GPAW c... | robwarm/gpaw-symm | gpaw/setup.py | Python | gpl-3.0 | 49,672 | [
"ASE",
"GPAW"
] | 38f35e0f25c4c66a8df36f9fe92c9cc7d63935989da6de0347e24361d5063c05 |
"""
17 nov. 2014
"""
from __future__ import print_function
from builtins import next
from itertools import combinations
from bisect import bisect_right as bisect
from pysam import Samfile
from pytadbit.mapping.restriction_enzymes import map_re_sites
from shutil import copyfileobj
from warnings import warn
import os
fr... | 3DGenomes/tadbit | _pytadbit/parsers/sam_parser.py | Python | gpl-3.0 | 20,106 | [
"Bowtie",
"pysam"
] | 5d9344cd3f99aac2ee6c2879ae6a5a7d3677b7e205c03cd02001d2f91112d8d2 |
###############################################################################
# ilastik: interactive learning and segmentation toolkit
#
# Copyright (C) 2011-2014, the ilastik developers
# <team@ilastik.org>
#
# This program is free software; you can redistribute it and/or
# mod... | ilastikdev/ilastik | ilastik/applets/thresholdTwoLevels/thresholdTwoLevelsGui.py | Python | gpl-3.0 | 18,150 | [
"Gaussian"
] | e849d25bdca8ffd3916e9792c13680b57ef31dbd35674104cb880a14d405e39c |
# Orca
#
# Copyright 2004-2009 Sun Microsystems Inc.
# Copyright 2010-2011 The Orca Team
# Copyright 2012 Igalia, S.L.
#
# 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... | chrys87/orca-beep | src/orca/orca.py | Python | lgpl-2.1 | 26,521 | [
"ORCA"
] | 142b60eb2a9df8f7295a250f31356049c51b48c90187efcd93c3e635ce73916d |
# Copyright 2003 by Bartek Wilczynski. 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.
"""Parsing AlignACE output files
"""
from Bio.motifs import Motif, Instances
from Bio.Alp... | zjuchenyuan/BioWeb | Lib/Bio/motifs/alignace.py | Python | mit | 1,943 | [
"Biopython"
] | d5e5e2874840b2df32fe886629380e41008697a661f1d1757b87b60ee6f14a1a |
"""
Plot and save key steps in pulses.py for visualizing the alorithm.
"""
import glob
import numpy as np
from scipy import stats
from matplotlib import rcParams, gridspec, ticker
import matplotlib.pyplot as plt
try:
from matplotlib.colors import colorConverter as cc
except ImportError:
import matp... | tillraab/thunderfish | thunderfish/pulseplots.py | Python | gpl-3.0 | 38,137 | [
"Gaussian"
] | 6ecef95c5e289c4d70b2738c38e5298f7c3600822c9afc8173c64b8a87811da0 |
import unittest
from unittest import mock
from unittest.mock import patch, PropertyMock
from Firefly.const import (IS_DARK, IS_LIGHT, IS_MODE, IS_NOT_MODE, IS_NOT_TIME_RANGE, IS_TIME_RANGE)
from Firefly.util.conditions import check_conditions
class TestCheckConditions(unittest.TestCase):
@patch('Firefly.core.core... | Firefly-Automation/Firefly | tests/test_conditions.py | Python | apache-2.0 | 5,828 | [
"Firefly"
] | 64d9a780d252c039833e79ee4c04e425288395a92c8dfd1bc1c59fadf5d372ae |
import numpy as np
import scipy.stats #Note no longe resi 0 but resi 1
import ALA3, experiment_loader
import mdtraj
ff = "amber96"
prior = "maxent"
bayesian_bootstrap_run_list = [0,1]
regularization_strength = ALA3.regularization_strength_dict[prior][ff]
predictions, measurements, uncertainties = experiment_loader.... | kyleabeauchamp/EnsemblePaper | code/info_graphic/plot_gaussian_measurement.py | Python | gpl-3.0 | 793 | [
"MDTraj"
] | 32b049b1bb272366904cbe4813c30824cfcd5262a76251f5c37ef37fe83ade96 |
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from datetime import date, timedelta
from workalendar.core import WesternCalendar, ChristianMixin
from workalendar.core import SUN, MON, TUE, WED, THU, FRI, SAT
class UnitedStates(Wes... | sayoun/workalendar | workalendar/usa/core.py | Python | mit | 11,640 | [
"COLUMBUS"
] | 289e9bbdbbbe6678bbf091740de4272c3a0530ff84d35807e7af510d268b5d55 |
#
# co_cos_manager.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
# (at your option) a... | kperun/nestml | pynestml/cocos/co_cos_manager.py | Python | gpl-2.0 | 17,026 | [
"NEURON"
] | f6eb1276a2f730135c1d1eb452a4cb4586f26566ee8c0389b6f91d977a2c8173 |
#!/usr/bin/env python
# Script to print out a list of atoms within a defined radius
# of an atom/bond midpoint in a Tinker trajectory.
# DOES NOT TAKE PBC INTO ACCOUNT
# Requirements: MDTraj, numpy, argparse
import mdtraj as md
import numpy as np
import sys,argparse
### Argparser ###
def parse():
parser = argpa... | rtb1c13/scripts | Fields/restrain_list.py | Python | gpl-2.0 | 5,442 | [
"MDTraj",
"TINKER"
] | 6d584f6652f2fecd57f7f5f959c55fa1da8c9b2122236ee1f9fa5a6c97f498f5 |
from smashbox.utilities import *
# utilities to create and process self-describing hashfiles
# a hashfile encodes its content checksum in its name
# the name of a hashfile may be specified using a template string (filemask) where {md5} string represents the content checksum
# for example: "test_{md5}.dat"
# hashfi... | cernbox/smashbox | python/smashbox/utilities/hash_files.py | Python | agpl-3.0 | 8,734 | [
"Gaussian"
] | b72991469fefb15aeb83a273ce78ce701b317912a912a8e5aff34d38d475ce8f |
# -*- coding: utf-8 -*-
""" Incident Reporting System - Model
@author: Sahana Taiwan Team
@author: Fran Boon
"""
module = "irs"
if deployment_settings.has_module(module):
# ---------------------------------------------------------------------
# List of Incident Categories
# NB It is important th... | ptressel/sahana-eden-madpub | models/06_irs.py | Python | mit | 18,889 | [
"VisIt"
] | da0c91b42bc6341ceff70aa818d9af4ac006bc00a9ded2247d35383de02d76a5 |
"""
test for secure opendap support
"""
import tempfile
import os
import os.path as op
import shutil
from unittest import TestCase
import re
import pytest
from pyesgf.logon import LogonManager, DAP_CONFIG_MARKER
from pyesgf.search import SearchConnection
try:
from myproxy.client import MyProxyClient
_has_myp... | bird-house/esgf-pyclient | pyesgf/test/test_opendap.py | Python | bsd-3-clause | 4,236 | [
"NetCDF"
] | 905ef490890fd8aa8a079f8be737ffedd20974bb47ac33af78d40ad33c0d5e8d |
#!/usr/bin/env python
#
# $File: PyOperator.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute... | BoPeng/simuPOP | docs/PyOperator.py | Python | gpl-2.0 | 2,258 | [
"VisIt"
] | 1fbe989e65828be1076115f350648e8973d9b167be5288d1a030ed61933547f6 |
# -*- coding: utf-8 -*-
# AwesomeTTS text-to-speech add-on for Anki
# Copyright (C) 2010-Present Anki AwesomeTTS Development Team
#
# 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 versi... | AwesomeTTS/awesometts-anki-addon | awesometts/service/forvo.py | Python | gpl-3.0 | 22,887 | [
"BWA"
] | ce6c4770c74340cfed7562099221169f8f447747726950ce5e68644ef750d920 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements an interface to the VAMPIRE code for atomistic
simulations of magnetic materials.
This module depends on a compiled vampire executable available in the path.
Please download at https... | fraricci/pymatgen | pymatgen/command_line/vampire_caller.py | Python | mit | 14,662 | [
"pymatgen"
] | 5dfee7c9ed4c339194d55777e4fb9d3be9d624ae9619470fcb383ed7e161b820 |
import numpy as np
import constants
class Neuron(object):
def __init__(self, upstreamSynapseLayer,
actThres=constants.ACT_THRES, bias=constants.BIAS):
'''Constructs a Neuron
Args:
upstreamSynapseLayer (Synapse list):
Adjacent Synapse Layer... | OrangeApple3/neural-network-ocr | neuron.py | Python | mit | 1,923 | [
"NEURON"
] | 7019ebbc5892df3a87d4ee5170228968c2c25dbe654427218f9d5aca8f22d9d6 |
#! /usr/bin/env python
"""Generate C code from an ASDL description."""
# TO DO
# handle fields that have a type but no name
import os, sys
import asdl
TABSIZE = 8
MAX_COL = 80
def get_c_type(name):
"""Return a string for the C name of the type.
This function special cases the default types provided by asd... | jlspyaozhongkai/Uter | third_party_backup/Python-2.7.9/Parser/asdl_c.py | Python | gpl-3.0 | 41,413 | [
"VisIt"
] | f24047bd15b38d780c527cea4817839661168fc48cecba486549fda30aa5c883 |
# Copyright(c) 2009, Gentoo Foundation
#
# Copyright 2010 Brian Dolbec <brian.dolbec@gmail.com>
# Copyright(c) 2010, Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# $Header: $
"""Analyse Base Module class to hold common module operation functions
"""
from __future__ import pri... | djanderson/equery | pym/gentoolkit/analyse/base.py | Python | gpl-2.0 | 3,534 | [
"Brian"
] | 67ddda297ca2cb93620e8b62962c93d3a94d8cb513b5f25002b4457f20e0cda3 |
# Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | tensorflow/probability | tensorflow_probability/python/distributions/mvn_diag.py | Python | apache-2.0 | 11,079 | [
"Gaussian"
] | 50d9ac4cb04e9c0d06ceb18f6cf6264f2fa44336e1f86a8c94a71d90396fd170 |
"""
Tools for the instructor dashboard
"""
import dateutil
import json
from django.conf import settings
from django.contrib.auth.models import User
from django.http import HttpResponseBadRequest
from django.utils.timezone import utc
from django.utils.translation import ugettext as _
from courseware.models import Stud... | jbassen/edx-platform | lms/djangoapps/instructor/views/tools.py | Python | agpl-3.0 | 9,869 | [
"VisIt"
] | fff4e861ca9aa2b1cd91e8e9e1a2b673aa3be7f9d3ce2ac474070dff069cf8c9 |
from __future__ import division
from builtins import range
import numpy as np
np.seterr(divide='ignore') # these warnings are usually harmless for this code
np.random.seed(0)
from matplotlib import pyplot as plt
import matplotlib
import os
matplotlib.rcParams['font.size'] = 8
import pyhsmm
from pyhsmm.util.text impor... | mattjj/pyhsmm | examples/hmm.py | Python | mit | 3,066 | [
"Gaussian"
] | ae1c2ebab0d3c68d944b0633b4245cd472e36328f7a4f7255137e2fbc7d9af45 |
import ternary
import numpy as np
import pandas as pd
from functions import *
import sys
from functools import reduce
from sklearn.manifold import *
from sklearn.cluster import *
from pylab import *
import _pickle as cPickle
from skimage.filters import gaussian
#########################################################... | gviejo/ThalamusPhysio | python/main_test_final_visu.py | Python | gpl-3.0 | 14,309 | [
"Gaussian"
] | eb59fadf0c9c2dddfd1a08810c105bf852c8050854e1a7d3e3247b72118d0522 |
import itertools
import math
from ..ssa import objtypes
from . import visitor
from .stringescape import escapeString
# Explicitly cast parameters to the desired type in order to avoid potential issues with overloaded methods
ALWAYS_CAST_PARAMS = 1
class VariableDeclarator(object):
def __init__(self, typename, i... | Storyyeller/Krakatau | Krakatau/java/ast.py | Python | gpl-3.0 | 30,005 | [
"VisIt"
] | c4605cd4098dbb9fce8290d9b64c019266735934c70b86e6e66235ec6e29fe89 |
#
# Copyright (C) 2013,2014 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... | rbardak/espresso | testsuite/python/particle.py | Python | gpl-3.0 | 5,607 | [
"ESPResSo"
] | a4f62cbfacc9235b20e50656f2f85bea0cee046d5dbfbf716e636d8a68bef406 |
# Copyright: Damien Elmes <anki@ichi2.net>
# -*- coding: utf-8 -*-
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
from aqt.qt import *
import aqt.forms
from aqt import appVersion
from aqt.utils import openLink
def show(parent):
dialog = QDialog(parent)
abt = aqt.forms.about.Ui_... | Arthaey/anki | aqt/about.py | Python | agpl-3.0 | 2,834 | [
"VisIt"
] | 2a724c784f3dbc4abdc2ea392b8f80fcb710da34924b091b34f52ee047460b88 |
import json
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas import (
DataFrame,
Index,
Series,
json_normalize,
)
import pandas._testing as tm
from pandas.io.json._normalize import nested_to_record
@pytest.fixture
def deep_nested():
# deeply nested data
... | dsm054/pandas | pandas/tests/io/json/test_normalize.py | Python | bsd-3-clause | 29,170 | [
"COLUMBUS"
] | 414088468b427fe0338b40b84ddc5ba67f26c121c6885f8b70501890515010cd |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# settings - [insert a few words of module description on this line]
# Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of ... | heromod/migrid | mig/shared/settings.py | Python | gpl-2.0 | 16,390 | [
"Brian"
] | 082a16f9ade298c2f7ae7a2365831977fc6a5c7a88bb70b2fa8c9b1964d5ecc5 |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2008, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License versi... | racemidev/WMI_cmd | pysamba/rpc/rpc_request.py | Python | gpl-2.0 | 1,737 | [
"VisIt"
] | e78ced0ea2c5f6de7597045f486049690194a8c323066c3733169a872f14b01b |
"""Class for Urban Canopy Model."""
from __future__ import division
try:
range = xrange
except NameError:
pass
from math import sqrt, pow
import copy
class UCMDef(object):
"""Definition of Urban Canopy - Building Energy Model Class
Args:
bldHeight: Average building height (m).
bldDe... | chriswmackey/UWG_Python | uwg/UCMDef.py | Python | gpl-3.0 | 14,002 | [
"EPW"
] | bdb5bab81418f0e74164fcbd5d7fe8b5a206b91035881a57c99731fa85abcdc3 |
""" FileManager (add doc here)
"""
import os
import six
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.DataManagementSystem.DB.FileCatalogComponents.FileManager.FileManagerBase import FileManagerBase
from DIRAC.Core.Utilities.List import stringListToString, intListToString, breakListIntoChunks
from DIRAC.Core.Uti... | DIRACGrid/DIRAC | src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/FileManager/FileManager.py | Python | gpl-3.0 | 35,727 | [
"DIRAC"
] | 7589ab882bada566a996c4f90924f3cb3813d63d65c075150fbcc98d95d3c6fa |
# coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | google-research/google-research | norml/policies_test.py | Python | apache-2.0 | 6,848 | [
"Gaussian"
] | c69b08f08794d1a7294158601f6876a4fb4a4369c29539e8e52d81b44b412add |
import urllib3
from matplotlib import use
use('agg')
#fetch GFS data and plot at ENA
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import netCDF4
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter
import numpy as np
from siphon.catalog import TDSCatalog
from siphon.ncss import NCSS
from d... | EVS-ATMOS/ACE-ENA-EVA | code/ena_tools.py | Python | bsd-3-clause | 33,459 | [
"NetCDF"
] | f54664ed29749f3c685b5f626c3cfac09de44e6669c2167d6c7a3fb47f166fe1 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, absolute_import
from datetime import timedelta, datetime
import pytest
from flexget.manager import Session
from flexget.components.tvmaze.api_tvmaze import (
APITVMaze,
TVMazeLookup,
TVMazeSeries,
TVMazeEpisodes,
)
lookup_ser... | gazpachoking/Flexget | flexget/tests/test_tvmaze.py | Python | mit | 22,046 | [
"Firefly"
] | 4a93112769c5d0eae473753746759bb96f2d54e1ab5245a5a34e2a9faf5c6464 |
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetTempDir
VTK_TEMP_DIR = vtkGetTempDir()
contr = vtk.vtkMultiProcessController.GetGlobalController()
if not contr:
nranks = 1
rank = 0
else:
nranks = contr.GetNumberOfProcesses()
rank = contr.GetLocalProcessId()
def Get... | timkrentz/SunTracker | IMU/VTK-6.2.0/Filters/Parallel/Testing/Python/testTransmit.py | Python | mit | 3,935 | [
"VTK"
] | 77a549ee2849dfbf1ae44d212e97d86370fb615139c50b2cdf857e1aba77f29e |
# (C) British Crown Copyright 2010 - 2016, 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... | SusanJL/iris | lib/iris/tests/__init__.py | Python | gpl-3.0 | 34,468 | [
"NetCDF"
] | 5af4f243aa6aaefb117221dc0981fedc0273eb9fb152db4cbfdea1beaf212659 |
#######################################################################
#
#
# Next Event Renderer for Dreambox/Enigma-2
# Coded by Vali (c)2010
# Support: www.dreambox-tools.info
#
#
# This plugin is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 3.0 Unported License.
# To view ... | trunca/enigma2 | lib/python/Components/Renderer/ODNextEvent.py | Python | gpl-2.0 | 1,743 | [
"VisIt"
] | fb6a0f92fc132323ec4a82b55aacb9d3895980fd31995d9850216087d1ade631 |
"""
Default Django settings. Override these with settings in the module pointed to
by the DJANGO_SETTINGS_MODULE environment variable.
"""
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
def gettext_noop(s):
return s
####... | mdworks2016/work_development | Python/20_Third_Certification/venv/lib/python3.7/site-packages/django/conf/global_settings.py | Python | apache-2.0 | 22,054 | [
"VisIt"
] | c5a62f2a088a9f016f175afd79359b6053f75e29cb10484ee0f1cb6bca4294cc |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
from django.utils.translation import activ... | shoopio/shoop | shuup_tests/browser/front/test_coupon.py | Python | agpl-3.0 | 6,830 | [
"VisIt"
] | d8ad7d7ea38b6abab2afacb1c7c439ff411e1b9545e16aeb62d7461c5a8e4199 |
# -*- coding:utf-8 -*-
# Copyright (c) 2015, Galaxy Authors. All Rights Reserved
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Author: wangtaize@baidu.com
import os
import subprocess
import sys
import time
import logging
LOG = logging.getLogger("console")
USE_... | fxsjy/galaxy | console/backend/src/common/shell.py | Python | bsd-3-clause | 2,137 | [
"Galaxy"
] | 45749e66da979cef3d544abf49db39f7bb2fedc5e9db5aaba3d6a56df53e2d67 |
#!/usr/bin/python
import os, sys # low level handling, such as command line stuff
import string # string methods available
import re # regular expressions
import getopt # comand line argument handling
from low import * # custom functions, written by myself
import anydbm # index databases (file ... | lotharwissler/bioinformatics | python/kegg/kegg-extractor.py | Python | mit | 3,775 | [
"Biopython"
] | c7e0b0ee76f73ab5c5b2bd7016b33f1eba5a00961682c9460af213119b44a2b3 |
'''
Calculates mean temperature differences between two following days.
Name
====
Daily temperature change
Theme information
=================
The map shows the change in average daily temperature (in C) during previous 24-hour period at 7 a.m. (8 a.m. in summer time) for given date.
Maps for ... | kmunve/pysenorge | pysenorge/themes/temperature_gradient_daily.py | Python | gpl-3.0 | 6,709 | [
"NetCDF"
] | 2c8a64c16cadb8d3c41e1f72ddc9b3be4c6f639c0821286cd86ee34f6f3d002c |
"""Add visit table
Revision ID: 44ef82f9b572
Revises: 486cb2b8cb8f
Create Date: 2014-10-28 02:34:33.824605
"""
# revision identifiers, used by Alembic.
revision = '44ef82f9b572'
down_revision = '486cb2b8cb8f'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'visits',
... | jlutz777/FreeStore | alembic/versions/44ef82f9b572_add_visit_table.py | Python | mit | 619 | [
"VisIt"
] | a9028ff06a0a4a7f1ea21a697890eb9f1f2214a287b02a8df9401e2831014324 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RScater(RPackage):
"""Single-Cell Analysis Toolkit for Gene Expression Data in R
A... | LLNL/spack | var/spack/repos/builtin/packages/r-scater/package.py | Python | lgpl-2.1 | 3,669 | [
"Bioconductor"
] | 580ce629e64e513b60cff1224a5b01c130b467623fb394bcfcf8fa984582b8de |
#
# Copyright (c) 2019 Intel Corporation
#
# 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... | NervanaSystems/coach | rl_coach/agents/soft_actor_critic_agent.py | Python | apache-2.0 | 15,670 | [
"Gaussian"
] | 4d0aa1d3e1d482bd3247225465845b47d4dc85a38746cbb4db7dfab014558698 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from astropy.nddata import NDData, NDSlicingMixin
from astropy.nddata.nduncertainty import NDUncertainty, StdDevUncertainty
from astropy import units as u
# Just add the Mix... | bsipocz/astropy | astropy/nddata/mixins/tests/test_ndslicing.py | Python | bsd-3-clause | 4,922 | [
"Brian"
] | 69871f974706d6dd8dab1da1c8087980d00a1a89c649c139b114cad38c56ca1a |
'''Examples: scikits.statsmodels.GLM
Note: uncomment plt.show() to display graphs
'''
import numpy as np
import scikits.statsmodels as sm
from scipy import stats
from matplotlib import pyplot as plt
### Example for using GLM on binomial response data
### the input response vector in this case is N by 2 (success, fail... | matthew-brett/draft-statsmodels | scikits/statsmodels/examples/example_glm.py | Python | bsd-3-clause | 5,525 | [
"Gaussian"
] | 14abe81c5bee6d3fb24d2c3147303307c2b61d410f3aaa1bd477cd58d5958c22 |
# coding: utf-8
from __future__ import unicode_literals, division
from monty.os.path import zpath
"""
This module implements specific error handlers for VASP runs. These handlers
tries to detect common errors in vasp runs and attempt to fix them on the fly
by modifying the input files.
"""
__author__ = "Shyue Ping ... | davidwaroquiers/custodian | custodian/vasp/handlers.py | Python | mit | 41,409 | [
"VASP",
"pymatgen"
] | 6d453c813303c6afd92ab59ad4d216da5b7f236a9dc1041cda04383b6e75ca3c |
r"""
:mod:`~matplotlib.mathtext` is a module for parsing a subset of the
TeX math syntax and drawing them to a matplotlib backend.
For a tutorial of its usage see :ref:`mathtext-tutorial`. This
document is primarily concerned with implementation details.
The module uses pyparsing_ to parse the TeX expression.
.. _p... | yuanagain/seniorthesis | venv/lib/python2.7/site-packages/matplotlib/mathtext.py | Python | mit | 116,795 | [
"Bowtie"
] | 9f715e0826c9109ac054ac92a4f7b075988b29203608b34e3995c0153b0d4ed0 |
# -*- coding: utf-8 -*-
"""
/***************************************************************************
MeshNetCDF
A QGIS plugin
Create Gmsh mesh from NetCDF (.nc) file where the z-coordinate is a metric for the mesh size.
-------------------
begi... | janhui/test_engine | release/mesh_netcdf/__init__.py | Python | lgpl-2.1 | 1,639 | [
"NetCDF"
] | 175eabffdd65e579b426528e2f9cdc6112925bad55b1b17d46c62cb0ce30c589 |
# LIBTBX_PRE_DISPATCHER_INCLUDE_SH export PHENIX_GUI_ENVIRONMENT=1
from __future__ import annotations
import collections
import copy
import json
import sys
import iotbx.phil
from cctbx import sgtbx
from dxtbx.model import MultiAxisGoniometer
from rstbx.cftbx.coordinate_frame_helpers import align_reference_frame
fro... | dials/dials | command_line/align_crystal.py | Python | bsd-3-clause | 14,505 | [
"CRYSTAL"
] | 9622b5ce5a8aab8937c5e8a7f590806d2dca2854fa86cd91276b5ae890ca4649 |
"""
Contains a model for the visual pathway with support for color
including a version of the GCAL model with color support.
Please note that it will be able to remove most redundancies to the
non-color EarlyVisionModel and ModelGCALColor as soon as a more
modular system is implemented.
This file allows the results ... | ioam/topographica | topo/submodel/color.py | Python | bsd-3-clause | 23,943 | [
"Gaussian"
] | fcbca6f01103003140773772184c498874b4a8c28f4781bd3e10537895175cca |
# sql/compiler.py
# Copyright (C) 2005-2013 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
"""Base SQL and DDL compiler implementations.
Classes provided include:
:class:`.com... | gujiawen/flask_web | venv/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py | Python | mit | 95,678 | [
"VisIt"
] | fed24d4e8d6a54ec93021a8f10e24993d76dd010af1b609ca0c36003814e0b41 |
"""
gamp.py: Main GAMP solver
"""
from __future__ import division
# Import general packages
import numpy as np
import time
# Import other subpackages
import vampyre.estim as estim
import vampyre.trans as trans
import vampyre.common as common
# Import methods and classes from the same vampyre sub-package
from vampyr... | GAMPTeam/vampyre | vampyre/solver/gamp.py | Python | mit | 9,607 | [
"Gaussian"
] | 28b9bfbc38f197ed72da00cb2aa87353dd5ff9b04017c3ee38bd00ba5fec4d9a |
# $HeadURL$
"""
Collection of DIRAC useful operating system related modules
by default on Error they return None
"""
__RCSID__ = "$Id$"
import os
import multiprocessing
import DIRAC
from DIRAC.Core.Utilities.Subprocess import shellCall
from DIRAC.Core.Utilities import List
import distutils.spawn
DEBUG = 0
de... | vmendez/DIRAC | Core/Utilities/Os.py | Python | gpl-3.0 | 6,002 | [
"DIRAC"
] | 092850c3f0bf2d4412f551321f6009824c5c21dd7ef02d5925c11150651b0710 |
# Copyright 2004 by Harry Zuzan. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""
Classes for accessing the information in Affymetrix cel files.
Functions:
read Read a ... | bryback/quickseq | genescript/Bio/Affy/CelFile.py | Python | mit | 1,929 | [
"Biopython"
] | b02e4fcb01f57905c0977b8a8e2d5be8c56891228c12fac9f3c1f6d4353e9a9a |
r"""OS routines for NT or Posix depending on what system we're on.
This exports:
- all functions from posix, nt or ce, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix', 'nt' or 'ce'.
- os.curdir is a string representing the current directory ('.' or ':')
- os.pardir... | IronLanguages/ironpython3 | Src/StdLib/Lib/os.py | Python | apache-2.0 | 34,052 | [
"VisIt"
] | bf1af56c876170be7a9d3f276ea1ca05f0459bbf56b92ba3b4aeaf4daa1af5a2 |
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 25 18:51:54 2016
@author: Sebastian Bitzer (sebastian.bitzer@tu-dresden.de)
"""
from __future__ import print_function, division
import math
import numpy as np
from numpy.linalg import slogdet, solve, cholesky, inv, LinAlgError
from scipy.stats import norm
from warnings ... | sbitzer/pyEPABC | pyEPABC/EPABC.py | Python | bsd-3-clause | 21,946 | [
"Gaussian"
] | 07c24542bd4b942905d8025a857b06356c1a20351a2677e0d53b5a1425880aad |
# #
# Copyright 2009-2016 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (... | Caylo/easybuild-framework | easybuild/tools/filetools.py | Python | gpl-2.0 | 49,278 | [
"NetCDF"
] | 3dfd8d2387a9ea515f77329fa245f7a2cb672091e25a6ac4bdd9e52088288338 |
"""
Support code for the freedesktop.org basedir spec.
This module provides functions for locating configuration files.
@see: U{http://freedesktop.org/wiki/Standards/basedir-spec}
@var home: The value of $HOME (or '/' if not set). If we're running as root and
$HOME isn't owned by root, then this will be root's home ... | rammstein/0install | zeroinstall/support/basedir.py | Python | lgpl-2.1 | 5,882 | [
"VisIt"
] | 404779d91cf143296e9fd492dd2069c1cf39a2b16d79404be4317687ff1e0bc7 |
from __future__ import print_function, absolute_import
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(__f... | matk86/pymatgen | pymatgen/io/tests/test_adf.py | Python | mit | 10,190 | [
"ADF",
"pymatgen"
] | 294f8c1cd811f8794c5f9ff9c5277ad42ab080900e32b7fc4a065c4df7e64b2f |
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import course_location
from problems_setup import PROBLEM_DICT
from nose.tools import assert_in
@step(u'I am viewing a course with multiple sections')
def view_course_multiple_sections(step):
cr... | ahmadiga/min_edx | lms/djangoapps/courseware/features/navigation.py | Python | agpl-3.0 | 5,605 | [
"VisIt"
] | b888b1e540f312271ac3e8e3d295b77a52dd668226365ae98fefea6928ed4a85 |
import logging
import hashlib
import random
import re
from validate_email import validate_email
from askomics.libaskomics.ParamManager import ParamManager
from askomics.libaskomics.rdfdb.SparqlQueryAuth import SparqlQueryAuth
from askomics.libaskomics.rdfdb.QueryLauncher import QueryLauncher
from askomics.libaskomics.G... | askomics/askomics | askomics/libaskomics/LocalAuth.py | Python | agpl-3.0 | 14,996 | [
"Galaxy"
] | a42bfcc37b6234711b15779bc8486d88323d7c45ecd9efd3ac158d3550c312c4 |
"""Tests for locators.
.. codeauthor:: Tomas Krizek <tomas.krizek1@tul.cz>
"""
from gm_base.geomop_util import Position
def test_position():
assert (Position(1, 1) == Position(1, 1)) is True
assert (Position(1, 1) < Position(1, 1)) is False
assert (Position(1, 1) <= Position(1, 1)) is True
assert (P... | GeoMop/GeoMop | testing/gm_base/geomop_util/test_locators.py | Python | gpl-3.0 | 803 | [
"VTK"
] | 4d1cc9e2d4824dc983e1540a1ca019339997c49a0f1a732e73feb584f3e4aa20 |
"""
@brief test log(time=1s)
"""
import unittest
import inspect
import ast
from pyquickhelper.loghelper import fLOG
from pysqllike.translation.node_visitor_translator import CodeNodeVisitor
from pysqllike.translation.translation_class import TranslateClass
from pysqllike.translation.translation_to_python import Tr... | sdpython/pysqllike | _unittests/ut_code/test_code.py | Python | mit | 2,617 | [
"VisIt"
] | f9ec4569c4d525bdd0ede65a0ede3785ecede4084bb7ecb79006eee79a63eab1 |
"""
===========================================
Sparse coding with a precomputed dictionary
===========================================
Transform a signal as a sparse combination of Ricker wavelets. This example
visually compares different sparse coding methods using the
:class:`~sklearn.decomposition.SparseCoder` est... | sergeyf/scikit-learn | examples/decomposition/plot_sparse_coding.py | Python | bsd-3-clause | 4,234 | [
"Gaussian"
] | a8ea00500517455c83822798d56d697c211064f75eaf55f6b94bd1ac907f2f5f |
"""
Parallel Files
~~~~~~~~~~~~~~
The VTK library supports parallel file formats. Reading meshes broken up into
several files is natively supported by VTK and PyVista.
"""
# sphinx_gallery_thumbnail_number = 1
import pyvista as pv
from pyvista import examples
import os
################################################... | akaszynski/vtkInterface | examples/00-load/read-parallel.py | Python | mit | 1,836 | [
"VTK"
] | 93a885ef896e6738eb5c8c52d45ccdb9462484594cac9c44e4a83930c257cd02 |
import json
def stage_from(stage_row):
stage_classes = all_stages()
cls = list(c for c in stage_classes if c.stage_name() == stage_row['stage'])
if len(cls) > 0:
return cls[0](stage_row)
else:
raise 'unknown stage'
def all_stages():
return [
Introduction,
Questio... | alepulver/my-thesis | results-tables/stages.py | Python | mit | 6,627 | [
"VisIt"
] | b713da8cd05c065da423e1bc07e332ce3e52a9d58f789ef28cad63f55b5fa54e |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#from __future__ import unicode_literals
#
'''
SASMOL: Copyright (C) 2011 Joseph E. Curtis, Ph.D.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU ... | StevenCHowell/zazmol | src/python/dcd_io.py | Python | gpl-3.0 | 9,775 | [
"CHARMM",
"VMD"
] | 2297ad43bad2c886b35c7a18b1a060264a983e3d8c84db3c0b343b5c02ded05f |
##############################################################################
# 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-affy/package.py | Python | lgpl-2.1 | 2,095 | [
"Bioconductor"
] | 12c19a6080f3fe97c764bb55f3be227ca95a8dff4e712ec92dac4dd657d961d3 |
# -*- coding: ISO-8859-15 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk>
#
# Authors :
# Dominic Lowe <d.lowe@rl.ac.uk>
#
# Contact email: d.lowe@rl.ac.uk
# =======================... | luca76/QGIS | python/ext-libs/owslib/coverage/wcs100.py | Python | gpl-2.0 | 18,552 | [
"NetCDF"
] | b54b12b3f647fdc3d1e1dcd60456134cde10686bbb3024a1da9f0b6cc5f7af3f |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
# Copyright (C) 2019
# Max Planck Computing and Data Facility
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: ... | espressopp/espressopp | src/storage/DomainDecomposition.py | Python | gpl-3.0 | 4,467 | [
"ESPResSo"
] | f73e6326bdda226c0e2cd6683195b2f2970a1c61795d20f2cff3f87be190088a |
# Copyright (C) 2012, 2015 David Maxwell
#
# This file is part of PISM.
#
# PISM 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.
#
# PI... | talbrecht/pism_pik07 | site-packages/PISM/logging.py | Python | gpl-3.0 | 6,614 | [
"NetCDF"
] | 35223b52979f4d8781cfa2a261614c5a6bc351c2a0cf9c7046af502fd6dbdb08 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kratman/psi4public | psi4/share/psi4/databases/A24alt.py | Python | gpl-2.0 | 29,793 | [
"Psi4"
] | 49717445ddf1b4d79b431ff55bb5f9e7e757953731912f770977c37073c0ce3e |
import pytest
from capybara.exceptions import ModalNotFound
@pytest.mark.requires("modals")
class TestAcceptConfirm:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/with_js")
def test_accepts_the_confirm(self, session):
with session.accept_confirm():
... | elliterate/capybara.py | capybara/tests/session/test_accept_confirm.py | Python | mit | 1,414 | [
"VisIt"
] | b76ca1b828c339cd25a00c0f883903ae9f55a9751315fbb1d87a421bb9eac471 |
# Orca
#
# Copyright 2010 Joanmarie Diggs.
#
# 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 library i... | chrys87/orca-beep | src/orca/scripts/apps/soffice/script_utilities.py | Python | lgpl-2.1 | 22,259 | [
"ORCA"
] | 74a2932386bbf71c051efa2d1d618a6570ef07f65d7c7211b301e62d266baeff |
# Copyright (C) 2012,2013,2016
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms... | kkreis/espressopp | src/interaction/__init__.py | Python | gpl-3.0 | 4,235 | [
"ESPResSo"
] | 04e47e06159eb8a526f8c58dfab716108cbd0b68641e5007dea16445b9d19410 |
#!/usr/bin/env python
#
# Simple script to iterate over the -m 8 results from a
# BLAST and spits out the number of hits at each base of the
# query database.
#
# Peter Skewes-Cox
# February 3, 2009
# *** modified by Charles Chiu, Feburary 8, 2013 to only include bases from the actual BLAST match to the genome ***
# SU... | yesimon/surpi | mapPerfectBLASTtoGenome.py | Python | bsd-2-clause | 1,292 | [
"BLAST"
] | 93b55e36782e3bacdec789bc35d908a3ceecda9f5492d21b7dcdaafdfb9c5f7d |
# Orca
#
# Copyright 2004-2009 Sun Microsystems Inc.
# Copyright 2010 Joanmarie Diggs
#
# 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 op... | GNOME/orca | src/orca/scripts/default.py | Python | lgpl-2.1 | 175,803 | [
"ORCA"
] | 6bd4481d1e4885a04b8d3db676189b9d53510454e6492d2c2ddd391d8f57b6c4 |
"""Unrolls neighbor loops and InputElementZeroOffset nodes in a StencilModel.
The second stage in stencil kernel processing, after
stencil_python_front_end and before stencil_convert. This stage is
done once per call because the dimensions of the input are needed.
"""
from stencil_model import *
from stencil_grid imp... | richardxia/asp-multilevel-debug | specializers/stencil/stencil_unroll_neighbor_iter.py | Python | bsd-3-clause | 3,821 | [
"VisIt"
] | 447dd5f2809ef5a6c26fd08ec752599896f2b0c3345528fd82007f0f12a086f9 |
__author__ = 'andreasveit'
__version__ = '1.3'
# Interface for evaluating with the COCO-Text dataset.
# COCO-Text is a large dataset designed for text detection and recognition.
# This is a Python API that assists in evaluating text detection and recognition results
# on COCO-Text. The format of the COCO-Text... | NehaTelhan/CompVisionFinalProj | coco_evaluation.py | Python | mit | 13,162 | [
"VisIt"
] | 02448774d31203434eceea0f5744023ca2b2da5fa493c025c445ba8547a1baba |
#!/usr/bin/env python
########################################################################
# File : dirac-configuration-cli
# Author : Adria Casajus
########################################################################
"""
Command line interface to DIRAC Configuration Server
"""
from __future__ import absolute... | ic-hep/DIRAC | src/DIRAC/ConfigurationSystem/scripts/dirac_configuration_cli.py | Python | gpl-3.0 | 715 | [
"DIRAC"
] | 21b5dd78c296cb4b02c962083d8d144e1f2c348160e8fc9b04d51aa04a42ff43 |
"""
Test textbook page
"""
from uuid import uuid4
from regression.tests.studio.studio_base_test import StudioBaseTestClass
from regression.pages.studio.login_studio import StudioLogin
from regression.pages.studio.studio_textbooks import TextbookPageExtended
from regression.tests.helpers import LoginHelper, get_course... | raeeschachar/edx-e2e-mirror | regression/tests/studio/test_studio_textbooks.py | Python | agpl-3.0 | 3,119 | [
"VisIt"
] | de16ff40769c463141185ad51fdf2cd1a8da075a49ed9b1ef1420c52d44051c8 |
# -*- coding: utf-8 -*-
'''
param_file.py
'''
import numpy as np
import logging
from .log import LOG_NAME
from .write import write_param_file
from .share import NcGlobals, SECSPERDAY, MAX_NC_CHARS
from .pycompat import iteritems, pyrange, pyzip
from . import plots
import os
from datetime import date
# ---------------... | jhamman/RVIC | rvic/core/param_file.py | Python | gpl-3.0 | 20,500 | [
"NetCDF"
] | 84722bfc1bf587923d51f7a6667e00635567c9f9fcce9c545e35c0e7630bf244 |
from __future__ import print_function, division, absolute_import
import imgaug as ia
import imgaug.augmenters as iaa
def main():
aug = iaa.Cutout(fill_mode=["gaussian", "constant"], cval=(0, 255),
fill_per_channel=0.5)
image = ia.data.quokka()
images_aug = aug(images=[image] * 16)
... | aleju/ImageAugmenter | checks/check_cutout.py | Python | mit | 413 | [
"Gaussian"
] | ba0c44bc19b0c1bdfe90eee1cf132686ae7395579a33fa549dbf9ebaf3746545 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/test/test_0003_na2_nao.py | Python | apache-2.0 | 2,170 | [
"PySCF",
"SIESTA"
] | e32689602db0868d859445ab3f288bb961cd357e8eed1369a005ab8411b61647 |
from xml.etree.ElementTree import fromstring
# HTML = """
# <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
# <tr valign="top">
# <th>Tests</th>
# <th>Failures</th>
# <th>Success Rate</th>
# <th>Average Time</th>
# <th>Min Time</th>
# <th>Max Time</th>
# </tr>... | PourroyJean/performance_modelisation | script/data visualisation/getHtml.py | Python | gpl-3.0 | 32,087 | [
"Jaguar"
] | 109441ca3b6a617b96158870f3776dacd88a1be882d15c625964b60e5c79106a |
"""Guess the MIME type of a file.
This module defines two useful functions:
guess_type(url, strict=1) -- guess the MIME type and encoding of a URL.
guess_extension(type, strict=1) -- guess the extension for a given MIME type.
It also contains the following, for tuning the behavior:
Data:
knownfiles -- list of fil... | remybaranx/qtaste | tools/jython/lib/Lib/mimetypes.py | Python | gpl-3.0 | 14,498 | [
"NetCDF"
] | c3456cb3a5a16e2f7d1cfb9aff4b4fd3e297ec211ee4459aa7cd12b23fc59fd5 |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/cc/test/test_eom_gccsd.py | Python | apache-2.0 | 13,208 | [
"PySCF"
] | 66f3dfcd7244aba90f574394f00bd73db26ca67f68d2e836f6d35baa87595047 |
from django.contrib.auth.decorators import login_required
from django.http import Http404, HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.template.response import TemplateResponse
from django.urls import reverse
from DjangoTaskManager.task.forms impo... | MaxwellCoriell/DjangoTaskManager | DjangoTaskManager/task/views.py | Python | mit | 5,124 | [
"VisIt"
] | fce9c8ebf1911b97d4a1f3ef77d8f9bf6e24e345a74736516368e4125acedb6f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.