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 |
|---|---|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
"""
kay.utils.forms
~~~~~~~~~~~~~~~~
This module implements a sophisticated form validation and rendering
system that is based on diva with concepts from django newforms and
wtforms incorporated.
It can validate nested structures and works in both ways. It can also
... | gmist/kay-ru | kay/utils/forms/__init__.py | Python | bsd-3-clause | 70,343 | [
"VisIt"
] | 1f749b01726ee99d2ec39af9b7e2b6a67e487fe6552a75ee057b9ef168e6bfb7 |
# NOTE: This example uses the next generation Twilio helper library - for more
# information on how to download and install this version, visit
# https://www.twilio.com/docs/libraries/python
import os
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
# To set up environmenta... | TwilioDevEd/api-snippets | notifications/rest/notifications/send-notification/send-notification.7.x.py | Python | mit | 639 | [
"VisIt"
] | 7959470a583d9158256911d3e0c296fe6fc4ec3be84267f6e6cd690e45be3659 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes and methods used to describe deformations and
strains, including applying those deformations to structure objects and
generating deformed structure sets for further calculation... | mbkumar/pymatgen | pymatgen/analysis/elasticity/strain.py | Python | mit | 8,848 | [
"pymatgen"
] | 30761370a91d59302fbe1a2a6d58bdd3b202c3a4aac829294a58228746479fdb |
#
# imputil.py: import utilities
#
### docco needed here and in Docs/ ...
# note: avoid importing non-builtin modules
import imp ### not available in JPython?
import sys
import strop
import __builtin__
# for the DirectoryImporter
import struct
import marshal
__all__ = ["ImportManager","Importer... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.1/Lib/imputil.py | Python | mit | 24,977 | [
"BLAST"
] | 771b9a6e6cbc6985e9c36c1f77a8a441e80dc24de92a874e022278ea304a4516 |
# Copyright 2017 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... | davidzchen/tensorflow | tensorflow/python/tpu/device_assignment.py | Python | apache-2.0 | 20,745 | [
"VisIt"
] | b5389640981e1241a8b6f09043edb903dd02aa9d7bb87aceb699ca5a73ad04d0 |
#!/usr/bin/env python
#functions.py
'''This class will simply hold a bunch of generic functions which may need to be called by spectrum or photometry. Many of these can be used as line profiles.'''
import numpy as np
def gaussian(x, p):
A = p[0]
x0 = p[1]
sigma = p[2]
return A * np.exp(-(x - x0)**2 /... | iancze/Pysplotter | functions.py | Python | mit | 813 | [
"Gaussian"
] | 36c76e0183e265ab31e14c53b47985e8087e4a57ddbb193c3b116bb278820c0d |
'''
development-py (c) University of Manchester 2017
development-py is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
import sys
import libsbml
def merge(filenames, out_filename='merge.xml'):
'''Merge models (from SBML f... | neilswainston/development-py | synbiochemdev/fba/merge.py | Python | mit | 3,928 | [
"VisIt"
] | fc527116e6c6814e40e1e3e027ee1c772a49e4127a8ada46e4c03fd9fa9c3449 |
""" ProxyDB class is a front-end to the ProxyDB MySQL database.
Database contains the following tables:
* ProxyDB_Requests -- a delegation requests storage table for a given proxy Chain
* ProxyDB_CleanProxies -- table for storing proxies in "clean" form, ie without
the presence of DIRAC and VOMS ext... | yujikato/DIRAC | src/DIRAC/FrameworkSystem/DB/ProxyDB.py | Python | gpl-3.0 | 56,536 | [
"DIRAC"
] | fae1e2c724df739deccba4297454ec53efe76f3d09e7bac2fc4833061cf6e546 |
# -*- coding: utf-8 -*-
from .base import FunctionalTestCase
from .pages import game
class BuyShareTests(FunctionalTestCase):
def test_player_can_buy_shares_from_company_ipo(self):
self.story('Start a game with a player and a company')
game_uuid = self.create_game()
self.create_player(game_... | XeryusTC/18xx-accountant | accountant/functional_tests/test_shares.py | Python | mit | 40,388 | [
"Amber"
] | 0e0c3a0bcb16ffa5eca8a74c9930b8377117b15537528ed7505f6504fb3a404e |
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 30 15:34:39 2016
@author: charlesgulian
"""
import os
curr_dir = os.getcwd()
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import pysex
import sex_stats
import fits_tools
import scipy.stats as spst
#import sex_config
#import do_config
# Image decon... | CharlesGulian/Deconv | Main1.py | Python | gpl-3.0 | 9,035 | [
"Gaussian"
] | fab8b9ae816310adcbf80fd3c101881289256811acaf4bd1d22852bd986038ad |
#!/usr/bin/python
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import gyp
import gyp.common
import json
generator_wants_static_library_dependencies_adjusted = False
generator_default_var... | dtebbs/gyp | pylib/gyp/generator/dump_dependency_json.py | Python | bsd-3-clause | 2,053 | [
"VisIt"
] | 6e51d398aebd89e36ade82917221a558cd816e91bb617ac2130c404379e62e8d |
import numpy as np
ROMSVARS = dict(his = dict( axes = ['ocean_time',
's_rho',
'eta_rho',
'xi_rho'] ,
variables = ['zeta',
... | rsoutelino/pyromsgui | lib.py | Python | mit | 4,005 | [
"NetCDF"
] | 5df7a88593c8f0a7e302871fbe6eeee0261365606406bac099b992044aba5c55 |
import logging
import re
import subprocess
import os
import sys
import traceback
import time
import json
import copy
import itertools
import random
import numpy as np
import pandas as pd
import math
import base64
import urllib3
import hashlib
from io import BytesIO
from datetime import datetime, timedelta
from threadi... | PanDAWMS/panda-bigmon-core | core/views.py | Python | apache-2.0 | 506,263 | [
"VisIt"
] | bd96e3b0152f161e447fa8a3cb69a05bd455f0c1a18d24447c22158e1a6582f2 |
# -*- coding:iso-8859-10 -*-
__docformat__ = 'reStructuredtext'
'''
netCDF input/output classes.
netCDF fil standard for seNorge
===============================
Grid data for seNorge.no (og kloner) skal lagres I netCDF fil format.
Filer lagres med NETCDF3_CLASSIC flag, men med netCDF4 bibli... | kmunve/pysenorge | pysenorge/io/nc.py | Python | gpl-3.0 | 16,977 | [
"NetCDF"
] | 31d4851288d7b92af83bf666e4f4b79ac7ef858d5c167fd7f23c5d10921bc946 |
"""
Parses the command-line arguments and runs a command.
"""
import argparse
import json
import subprocess
import sys
import time
import dns.resolver
import requests
from . import Package
from . import __version__ as quilt3_version
from . import api, session
from .backends import get_package_registry
from .session ... | quiltdata/quilt-compiler | api/python/quilt3/main.py | Python | apache-2.0 | 16,377 | [
"VisIt"
] | 9bee7e6e9dfb14c66d9cd5776ef269f5d0e8b24c86f3ce8384e21bfea7e5d337 |
# Copyright (C) 2004-2008 Paul Cochrane
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distribut... | paultcochrane/pyvisi | examples/ballPlot.py | Python | gpl-2.0 | 3,313 | [
"VTK"
] | aa13447efadb05b70d62d80e261b4cf70d241bb4a03d88ac4d59e514d9241481 |
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os
class UninstallingAndReinstallingRepositories( ShedTwillTestCase ):
'''Test uninstalling and reinstalling a basic repository.'''
def test_0000_initiate_users( self ):
"""Create necessary user accounts."""
self.logout()
... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/tool_shed/functional/test_1200_uninstall_and_reinstall_basic_repository.py | Python | gpl-3.0 | 9,029 | [
"Galaxy"
] | 8b9f5e6beb4e2ba937e467f549ca069bf50b406ab4b5df30bd109330051a71c1 |
##############################################################################
# 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-rbgl/package.py | Python | lgpl-2.1 | 1,740 | [
"Bioconductor"
] | c783c9e3f3c5a182a55b214a2445fcca7dad29b8a77fd4a5d00cb9d53e67c3dd |
# Input examples:
# --server 'services.ands.org.au/sandbox'
# --search_string bom,meteorology (optional - can be delimited by comma)
# --data_source_key 'www.ala.org.au','aimsmest' (can be delimited by comma)
# --sort_by_tag 'originatingSource'
#
# For each datasource, runs:
# https://services.ands.org.au/sandbox/or... | eggsinonebasket/scripts-as-required | python/FindStringInORCA.py | Python | gpl-2.0 | 28,820 | [
"ORCA"
] | cec182fa6b3ff041ca95f2e013a4298f61332e788a27fc8e799137f5f824b270 |
#!/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... | abgworrall/kubernetes | cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py | Python | apache-2.0 | 47,752 | [
"CDK"
] | ec66e8361de8bae09e25a23f01ab7dde6ba347ab42b96e33ff7a7a0c5948bb98 |
""" ConfigurationData module is the base for cfg files management
"""
import os.path
import zlib
import zipfile
import thread
import time
import DIRAC
from DIRAC.Core.Utilities.File import mkDir
from DIRAC.Core.Utilities import List, Time
from DIRAC.Core.Utilities.ReturnValues import S_OK, S_ERROR
from DIRAC.Core.Uti... | arrabito/DIRAC | ConfigurationSystem/private/ConfigurationData.py | Python | gpl-3.0 | 13,427 | [
"DIRAC"
] | 616b6f823bf4c252a3476cb77b4a3a590fca00fa3e9ee063cbae4b5fb4f7c8c1 |
#-------------------------------------------------------------------------------
# Copyright (c) 2013 Edward Kent.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0
# which accompanies this distribution, and is available at
# http://ww... | edkent/cloud-copasi | cloud_copasi/web_interface/email/email_tools.py | Python | gpl-3.0 | 3,480 | [
"COPASI",
"VisIt"
] | 18a65ac5e450eb4cc0218a3bce1afaa798bbd98c2a6d868f2346650cbe30cd3c |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/example/automl/autoxgboost/AutoXGBoostRegressor.py | Python | apache-2.0 | 7,589 | [
"ORCA"
] | 6c76828de8f8a856c03d6fcc7cdb531b4acffa10e626c338e6868ffb8b5bee0b |
import json
import os.path
import time
import sys
import logging
import logging.handlers
from datetime import datetime, timedelta
import django.db as ddb
from django.db import transaction
import qmpy
from . import queue
from . import resources as rsc
import qmpy.utils.daemon as daemon
import qmpy.analysis.vasp.calcul... | wolverton-research-group/qmpy | qmpy/computing/manager.py | Python | mit | 5,698 | [
"VASP"
] | c9458c81c3e974ff6cd59238f6a953dbb9a1aa196e1abfefdc5ea6e3c4c64b58 |
# -*- coding: utf-8 -*-
"""
Acceptance tests for CMS Video Module.
"""
from nose.plugins.attrib import attr
from unittest import skipIf
from ...pages.studio.auto_auth import AutoAuthPage
from ...pages.studio.overview import CourseOutlinePage
from ...pages.studio.video.video import VideoComponentPage
from ...fixtures.c... | epam-mooc/edx-platform | common/test/acceptance/tests/video/test_studio_video_module.py | Python | agpl-3.0 | 9,793 | [
"VisIt"
] | 165d656de04a848bd94e3ba061c088f40c8735fe98dc2d0f3de97343a81e21c8 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
#
# Copyright (C) 2013 Google Inc.
# Changes to this file are licensed under the same terms as the original file
# (the Python Software Foundation License).
from __future__ import with_statement
import threadi... | Insanityandme/dotfiles | vim/bundle/YouCompleteMe/python/ycm/unsafe_thread_pool_executor.py | Python | unlicense | 3,958 | [
"Brian"
] | c3c0c75bb1635658faf278ee42babd787ed23834a17b3353c849c669c5f2ebfb |
# This file is part of pyrasite.
#
# pyrasite 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.
#
# pyrasite is distributed in the hope t... | lmacken/pyrasite | pyrasite/main.py | Python | gpl-3.0 | 5,778 | [
"VisIt"
] | 26db6b17da098f582124ebfb7a7478f9c9890ba8d33a9788d416f8bba253b185 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: noise.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
from .base import ImageAugmentor
import numpy as np
import cv2
__all__ = ['JpegNoise', 'GaussianNoise', 'SaltPepperNoise']
class JpegNoise(ImageAugmentor):
""" Random Jpeg noise. """
def __init__(self, q... | haamoon/tensorpack | tensorpack/dataflow/imgaug/noise.py | Python | apache-2.0 | 2,273 | [
"Gaussian"
] | 6a781786c0638f3ecdca1d1e891f6af2aee2fc8da4ac2af531a53377d725a5db |
"""
Authors: Damien Irving (irving.damien@gmail.com)
Copyright 2015 CSIRO
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 l... | taerwin/cwsl-mas | cwsl/vt_modules/vt_vertical_agg.py | Python | apache-2.0 | 3,339 | [
"NetCDF"
] | 34308fb77401b369f643f9cab86f8730b2176b476f05f7ff5cb66cf9a33038db |
# Tools/paths finder resolves external paths from settings and/or environment
# variables
import os
import sys
import json
from wqflask import app
# Use the standard logger here to avoid a circular dependency
import logging
logger = logging.getLogger(__name__)
OVERRIDES = {}
def app_set(command_id, value):
""... | genenetwork/genenetwork2 | wqflask/utility/tools.py | Python | agpl-3.0 | 9,850 | [
"Cytoscape"
] | d12445190bccee85c8c377adafa739a18deeb10ac94a540ef628986408691510 |
# Copyright 2013 Google Inc. All Rights Reserved.
"""Run a web flow for oauth2.
"""
import os
import socket
import webbrowser
from oauth2client import client
from oauth2client import tools
from googlecloudsdk.core import log
from googlecloudsdk.core import config
try:
# pylint:disable=g-import-not-at-top
fro... | harshilasu/LinkurApp | y/google-cloud-sdk/lib/googlecloudsdk/core/credentials/flow.py | Python | gpl-3.0 | 4,959 | [
"VisIt"
] | a20ad3f293fee569733a224ef17310c63c8218f1a9e111455bf128fdaf6a9e31 |
#!/usr/bin/env python
# ----------------------------------------------------------------------
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
# http://lammps.sandia.gov, Sandia National Laboratories
# Steve Plimpton, sjplimp@sandia.gov
# -----------------------------------------------------------... | quang-ha/lammps | examples/COUPLE/lammps_vasp/vasp_wrap.py | Python | gpl-2.0 | 8,059 | [
"LAMMPS",
"VASP"
] | 38d9316b01f89db6ddcb805ffb74f867de2207dc3b73925cfea29ddcd2909d03 |
# Standard Python imports.
#import os
#import sys
#import logging
import sys
sys.path.insert(0, 'libs')
sys.path.insert(0, 'libs/reportlab.zip')
#import webapp2;
from flask import Flask
from flask import render_template
from flask import request
from flask import jsonify
from app import *
from urls imp... | bbondy/brianbondy.gae | main.py | Python | mit | 1,594 | [
"Brian"
] | 7f14e63ddec4d41a7e4379cbdc8b5d92e6dca17c73f6a5fac432d80c74eac4b4 |
import numpy as np
from sklearn.base import BaseEstimator
from sklearn.metrics import pairwise_kernels
class NadarayaWatson(BaseEstimator):
"""Nadaraya-Watson Kernel Regression
This is basically a gaussian-weighted moving average of points
Parameters
----------
kernel : string
kernel is ... | astroML/astroML | astroML/linear_model/kernel_regression.py | Python | bsd-2-clause | 1,568 | [
"Gaussian"
] | a4acfa788c6b91e0161f2f77204a14226c564d4c6a88d31b03b97cd3013deb14 |
import os
import unittest
import logging
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
from slicer.util import VTKObservationMixin
#
# StenosisMeasurement2D
#
class StenosisMeasurement2D(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/... | vmtk/SlicerExtension-VMTK | StenosisMeasurement2D/StenosisMeasurement2D.py | Python | apache-2.0 | 31,166 | [
"VTK"
] | cc2470c650654d6dc43fb318b3405e4c3ce59f12ad0999bb17d792ed554cf130 |
#!/usr/bin/env python
__author__ = 'Duane Edgington'
__copyright__ = '2013'
__license__ = 'GPL v3'
__contact__ = 'duane at mbari.org'
__doc__ = '''
Master loader for all CANON activities in September 2011 and beyound
Mike McCann and Duane Edgington and Reiko
MBARI 15 August 2013
@var __date__: Date of last s... | google-code-export/stoqs | loaders/CANON/loadCANON_september2011_testing_duane.py | Python | gpl-3.0 | 6,263 | [
"NetCDF"
] | a08d4f5b442172ece8ad216ec71d05206eab294be87fa8917ee10d2a258a8b67 |
#######################################################
#
# Setup CNN, dCNN, and FC layers
# Code adapted from:
# https://github.com/tensorflow/models/blob/master/real_nvp/real_nvp_utils.py
# https://github.com/machrisaa/tensorflow-vgg
# And from Tensorflow CIFAR10 example.
#
#######################################... | pseudotensor/temporal_autoencoder | layers.py | Python | gpl-3.0 | 4,489 | [
"Gaussian"
] | c44ad91a0279bc6e7ab961d3c9743809550e0116227a833de7cb20d95e62680f |
# -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation t... | sampsyo/beets | beetsplug/discogs.py | Python | mit | 25,853 | [
"VisIt"
] | 515654f415a628679cc78f2e3a0b672e6c8fbe0f5b2098f95e050cbefd02b99c |
import math
import numpy
from six import moves
from chainer import cuda
from chainer import cudnn
from chainer import function
from chainer.utils import conv
from chainer.utils import type_check
if cudnn.available:
from chainer.cudnn import libcudnn
_fwd_pref = libcudnn.cudnnConvolutionFwdPreference[
... | woodshop/chainer | chainer/functions/convolution_2d.py | Python | mit | 11,871 | [
"Gaussian"
] | e9c73a8495e1c67d1e2cb8a6079cc63cdacfeabcc9793931268fb8398de1ad8a |
from django.conf import settings
from django.contrib.sites.models import Site
from django.contrib.auth.models import User, Group
from script.models import *
from eav.models import Attribute
def init_structures():
if 'django.contrib.sites' in settings.INSTALLED_APPS:
site_id = getattr(settings, 'SITE_ID', 5... | unicefuganda/edtrac | edtrac_project/rapidsms_edtrac/education/init_scripts.py | Python | bsd-3-clause | 13,963 | [
"VisIt"
] | 6054da0a092a2bab6a4adbd1f19298ad1b413f8c51120411995e29786e972825 |
# coding=utf-8
"""
Tests for wham_rad.
"""
import logging
import unittest
import os
import numpy as np
from md_utils.lammps import find_atom_data
from md_utils.lammps_dist import atom_distances, main
from md_utils.md_common import (InvalidDataError, diff_lines, capture_stderr, capture_stdout, silent_remove)
__author... | cmayes/md_utils | tests/test_lammps_dist.py | Python | bsd-3-clause | 8,055 | [
"LAMMPS"
] | 74f7eab50f0ac4df5b6765e72b24172101bcdfa3bb8fb70543a33a31ab5a10db |
import numpy as np
from mdtraj.testing import eq
from sklearn.base import clone
from msmbuilder.cluster import LandmarkAgglomerative
from sklearn.metrics import adjusted_rand_score
random = np.random.RandomState(2)
def test_1():
x = [random.randn(10,2), random.randn(10,2)]
n_clusters = 2
model1 = Lan... | rmcgibbo/msmbuilder | msmbuilder/tests/test_agglomerative.py | Python | lgpl-2.1 | 1,789 | [
"MDTraj"
] | eba32aeae4dd578cff34ede1449575e5e31a568453342f3016a6cec8f4bd11c2 |
#!/usr/bin/python3
# http://gitorious.org/pyosc/devel/commits/python3, 13-02-08 accessed
"""
This module contains an OpenSoundControl implementation (in Pure Python), based
(somewhat) on the good old 'SimpleOSC' implementation by Daniel Holth & Clinton
McChesney.
This implementation is intended to still be 'simple' ... | brianhouse/housepy | lib/OSC.py | Python | mit | 90,221 | [
"VisIt"
] | ee66caac9631b6ccf02eedcc1c22ce952a50960a3d44081c9794d0cd4daaf628 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | juanchopanza/NeuroM | neurom/io/datawrapper.py | Python | bsd-3-clause | 11,091 | [
"NEURON"
] | cfbc81a1a7f610d873de66631fc2894d869bf19b0c16b64ed43d4f6db34c2aee |
"""
=============================================
Deterministic Tracking with EuDX on ODF Peaks
=============================================
In this example we do deterministic fiber tracking on fields of ODF peaks. EuDX
[Garyfallidis12]_ will be used for this.
This example requires importing example `reconst_csa.p... | samuelstjean/dipy | doc/examples/tracking_eudx_odf.py | Python | bsd-3-clause | 2,857 | [
"VTK"
] | 291cc9d716f055327b595e3320eb8cb9800bb0a35d243c27ca3a375ebf79cdaa |
"""
This Service provides functionality to access and modify the
InstalledComponentsDB database
"""
__RCSID__ = "$Id$"
import types
from DIRAC.FrameworkSystem.DB.InstalledComponentsDB \
import InstalledComponentsDB, Component, Host, InstalledComponent
from DIRAC.Core.DISET.RequestHandler import RequestHandler
f... | coberger/DIRAC | FrameworkSystem/Service/ComponentMonitoringHandler.py | Python | gpl-3.0 | 12,607 | [
"DIRAC"
] | fff10985825de6ede1c8f49d1dbedefca4756f13d419b72f5fc4464d1e6c27e0 |
""" VirtualMachineHandler provides remote access to VirtualMachineDB
The following methods are available in the Service interface:
- insertInstance
- declareInstanceSubmitted
- declareInstanceRunning
- instanceIDHeartBeat
- declareInstanceHalting
- getInstancesByStatus
- declareInstanc... | xianghuzhao/VMDIRAC | VMDIRAC/WorkloadManagementSystem/Service/VirtualMachineManagerHandler.py | Python | gpl-3.0 | 18,501 | [
"DIRAC"
] | d9560b998e3555ffdc0f7fc67910c51f4de0db89eb0f16c2bbf2b83b5083c15f |
"""
===========================
RevAssets
===========================
Makes possible for python web apps to work with hashed static assets
generated by other tools like Gulp or Webpack.
It does so by reading the manifest generated by the revision tool.
"""
import json
import io
__version__ = '1.0.3'
class AssetN... | jpscaletti/rev-assets | rev_assets/__init__.py | Python | bsd-3-clause | 1,570 | [
"GULP"
] | 94345dc1bad02fb21e22817181728b30006a1006a1fb28aaf757097ce2a6fffc |
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
import numpy as np
def gaussian_filter(data, sigma):
"""
Drop-in replacement for scipy.ndimage.gaussian_filter.
(note: results are only approximately equal to t... | ghisvail/vispy | vispy/util/filter.py | Python | bsd-3-clause | 1,375 | [
"Gaussian"
] | 5e9de328417ba20ca68ff247cff7323f48f4a02d7afbb2ca5305dac159a35890 |
# Copyright (C) 2017 The Dagger Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | ronshapiro/dagger | util/maven/workspace_parser.py | Python | apache-2.0 | 1,192 | [
"VisIt"
] | 3a72223a6dbc814a52e2bcf97127db1adbc06f2ba0080df251a226d4571801b4 |
#!/usr/bin/python
"""
Copyright 2017 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of th... | druss316/G-Harvestor | cleanupDaily.py | Python | gpl-3.0 | 4,832 | [
"Galaxy"
] | eedbbd9068b813c5ced9bf4c61063042232477f29abbb46d45b62b0a3061d733 |
#!/usr/bin/env python
import unittest
import pidtest
from rdkit.sping.PS import pidPS
class TestCase(unittest.TestCase):
def test_all(self):
canvas = pidPS.PSCanvas(name="testallps.ps", size=(400, 500))
pidtest.drawStrings(canvas)
canvas.flush()
canvas.clear() # resets the canvas
pidtest.draw... | ptosco/rdkit | rdkit/sping/tests/testallps.py | Python | bsd-3-clause | 967 | [
"RDKit"
] | 21754d1ab6e11f03550af3f3596f1aaa464a67685c7dca4adaa5b264a4efc399 |
#!/usr/bin/python
#
# Author: Steven C. Howell
# Purpose: methods for calculating DNA dihedral angles and generating plots
# Created: 22 September 2014
#
# $Id: dna_dihedral.py 3658 2017-05-18 15:52:36Z curtisj $
#
# 000000011111111112222222222333333333344444444445555555555666666666677777777778
# 345678901234567890123... | madscatt/zazzie_1.5 | trunk/sassie/calculate/sascalc/dna_dihedral.py | Python | gpl-3.0 | 43,536 | [
"Mayavi"
] | 3a708b7d28c1afc257dac76c6d8589751c41d6036a1505e2f9e62584fb5b593d |
#!/usr/bin/python
# ==========================================================================
#
# Copyright NumFOCUS
#
# 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... | LucasGandel/ITK | Utilities/Maintenance/UpdateCopyrightStatementsInITK.py | Python | apache-2.0 | 6,837 | [
"VTK"
] | e6346d68adafc6867278e994582d25c1949ef7ac15367727d9ac2395f3c28aa1 |
""" VOMS2CSSyncronizer is a helper class containing the logic for synchronization
of the VOMS user data with the DIRAC Registry
"""
__RCSID__ = "$Id$"
from collections import defaultdict
from DIRAC import S_OK, S_ERROR, gLogger, gConfig
from DIRAC.Core.Security.VOMSService import VOMSService
from DIRAC.Core.Uti... | arrabito/DIRAC | ConfigurationSystem/Client/VOMS2CSSynchronizer.py | Python | gpl-3.0 | 17,841 | [
"DIRAC"
] | c395a50834d7c26a06dc35de1c67c5528ed4247a53f25bc6b734c2bde1084051 |
from xml.dom import minidom
from xml.etree import ElementTree as ET
from Visitor.EWS2ErebusVisitor import StripNamespaceVisitor
from Visitor.ToStringVisitor import *
from erebusconv import *
def _log(str):
import sys
print >>sys.stderr, '>> (utils) %s' % str
def parse_report(xml):
"""Parse a REPORT xml st... | orbekk/erebus | EDAV/utils.py | Python | gpl-2.0 | 2,214 | [
"VisIt"
] | 5d4011825fff0c87f488592a8c036a595d978eed929f4750b344703e8bc26eb2 |
"""
Fire and forget nblasting
ffnblast.py is part of Catbot (https://github.com/flyconnectome/catbot)
Copyright (C) 2017 Philipp Schlegel
Call from shell or using subprocess.Popen('python ffnblast <skid> <channel>')
Will post results in slack channel and upload a webGL file containg the first 3 hit... | flyconnectome/catbot | ffnblast.py | Python | gpl-3.0 | 9,092 | [
"NEURON"
] | cb0c4a323c185a35962d344234f160c51b9346d04639592080efc74b46214b9b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""This module provides functions and classes related to Task objects."""
from __future__ import division, print_function, unicode_literals, absolute_import
import os
import time
import datetime
import shutil
i... | czhengsci/pymatgen | pymatgen/io/abinit/tasks.py | Python | mit | 181,638 | [
"ABINIT",
"NetCDF",
"Wannier90",
"pymatgen"
] | caea33793aa0df43dfa408209d036bb753f1aaeef5e904e7a4d9bc2cf5a82031 |
from collections import defaultdict, Counter
from dark.utils import median
from dark.filter import ReadSetFilter, TitleFilter
from dark.intervals import ReadIntervals
def titleCounts(readsAlignments):
"""
Count the number of times each title in a readsAlignments instance is
matched. This is useful for ra... | terrycojones/dark-matter | dark/titles.py | Python | mit | 20,236 | [
"BLAST"
] | 3d049f5857c22c5264b3d900e0b1b268bcd940b7cd2f99aa373b637b15eaebd7 |
#!/usr/bin/env python
# encoding: utf-8
"""
api.py
Created by Brian Whitman on 2010-06-16.
Copyright (c) 2010 The Echo Nest Corporation. All rights reserved.
"""
from __future__ import with_statement
import web
import fp
import re
try:
import json
except ImportError:
import simplejson as json
# Very simple... | alexonea/3rdyrp | server/solr/API/api.py | Python | mit | 2,313 | [
"Brian"
] | ba1a0d458daffc9289d757626ae3db287f0266294d6fd706a5b3f42542b46e7d |
"""Utility functions for printing version information."""
import importlib
import locale
import os
import platform
import struct
import subprocess
import sys
def get_sys_info():
"""Returns system information as a dict"""
blob = []
# get full commit hash
commit = None
if os.path.isdir(".git") and... | shoyer/xarray | xarray/util/print_versions.py | Python | apache-2.0 | 5,036 | [
"NetCDF"
] | 0898be45e50c6c2805ea29df9a63c6d0493f61a3cc1d5913ac668614587589fb |
#! /bin/python3
# $Id$
# -----------------------------------------------------------------------------
# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
#
# CppAD is distributed under multiple licenses. This distribution is under
# the terms of the
# Eclipse Public Lice... | kaskr/CppAD | bin/reduce_index.py | Python | epl-1.0 | 5,230 | [
"VisIt"
] | 6e970a67cb1851b0f284b279faf6627403c1da3df3fa280e2aef36ce09d0f746 |
# -*- coding: utf-8 -*-
"""
Copyright 2015 by Johannes Leugering (jleugeri@uos.de)
This file is part of the adaptive LN Neurons package.
The adaptive LN Neurons package 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... | jleugeri/nengo-adaptiveLN-models | nengo_adaptiveLN_models/neurons.py | Python | gpl-3.0 | 8,006 | [
"NEURON"
] | 579201a9977b26ef14c56329a66927d64d94986f4e2c7dfc48f352f084a52d8f |
# Read term.py files
# TODO: - add Ewald term
#import imp
from edge import modprod, srt2
from concat_term import FFconcat
# Basic term types
from bonds import SplineBond
from torsions import SplineTorsion
from angles import SplineAngle
from pairs import SplinePair
from pbonds import PolyBond, PolyUB
from ptorsions i... | frobnitzem/forcesolve | cg_topol/read_term.py | Python | gpl-3.0 | 11,507 | [
"CHARMM"
] | b8c7a3509359c9687681ea25a5e64c0acfaeba86f37c837b0a1a6ec122fb6c41 |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | theochem/horton | horton/gbasis/test/test_gobasis.py | Python | gpl-3.0 | 26,331 | [
"Gaussian"
] | 195884f78d13963d681ea8e11662e7a10f52ebb84788995163a2a03ece85099f |
########################################################################
# File : DownloadInputData.py
# Author : Stuart Paterson
########################################################################
""" The Download Input Data module wraps around the Replica Management
components to provide access to datas... | arrabito/DIRAC | WorkloadManagementSystem/Client/DownloadInputData.py | Python | gpl-3.0 | 14,580 | [
"DIRAC"
] | 3b94027d8e6d2d00677e224e655f3775fb7ea18a64110d0b7f81e3808b501bc8 |
#!/usr/bin/env python3
from os.path import splitext
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from pysam import AlignmentFile
from MrBam.anno import anno
class SingleMetavarHelpFormatter(RawDescriptionHelpFormatter):
def _format_action_invocation(self, action):
if not action.option_... | ylxdzsw/MrBam | MrBam/main.py | Python | mit | 3,266 | [
"pysam"
] | af15dbe4d4819e22a24c991bc48d961d6f55f9f8b16d2e2b9f6e6d48304e44bc |
import subprocess
import time
import sys
import argparse
import os
import shutil
import shlex
from threading import Timer
import pickle
import functools
import traceback
try:
from pkg_resources import resource_filename
except ImportError as e:
print('WARNING: {}'.format(e))
def parseArguments(version):
p... | B-UMMI/INNUca | modules/utils.py | Python | gpl-3.0 | 57,781 | [
"Bowtie"
] | 60475c8a9ea7ee451b6d0c013d4cdbb0305ebf6e3f1bbb2e273eeed1e6ed3a63 |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dosewidget_QtDesign.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fr... | mgotz/EBT_evaluation | ebttools/gui/dosewidget_ui_qt4.py | Python | mit | 36,066 | [
"Gaussian"
] | dcf731a6643743020c4ca43de25c77cbbe4fbf39444f3068134d8f19684c69d4 |
# doc:slow-example
"""
======================================================
Permutation t-test on toy data with spatial clustering
======================================================
Following the illustrative example of Ridgway et al. 2012,
this demonstrates some basic ideas behind both the "hat"
variance adjust... | Odingod/mne-python | examples/stats/plot_cluster_methods_tutorial.py | Python | bsd-3-clause | 8,399 | [
"Gaussian"
] | 7ea4308b96f7eb41c93b4f0dba8b29b474dfee2c5167f6c07d2270856ada0c6f |
# -*- coding: utf-8 -*-
#
# brette_gerstner_fig_2c.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 ... | tillschumann/nest-simulator | pynest/examples/brette_gerstner_fig_2c.py | Python | gpl-2.0 | 2,560 | [
"NEURON"
] | 92d58b602d70ad6c8cfcfb57a812158071d6213cc7d50d5be3cbc6237d3d63d7 |
#
# Author: Henrique Pereira Coutada Miranda
# Run a Silicon groundstate calculation using Quantum Espresso
#
from __future__ import print_function, division
import sys
import argparse
from qepy import *
from schedulerpy import *
from math import sqrt
kpoints = [6,6,1]
kpoints_nscf = [6,6,1]
kpoints_double = [24,... | alexmoratalla/yambopy | tutorial/bn/gs_bn.py | Python | bsd-3-clause | 9,283 | [
"CRYSTAL",
"Quantum ESPRESSO"
] | 2e0efc8363b5c8722b59b14402c22bef3fea0324288d45e5d5e264c90de07600 |
###########################################################################
#
# 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... | zenoss/ZenPacks.turner.CiscoMDS | setup.py | Python | gpl-2.0 | 3,268 | [
"VisIt"
] | 9399bbab57b2ceffa5b073b9d66ea9739dc3132a079cc3fc822ed14ea338cda2 |
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | jkettleb/iris | lib/iris/tests/test_io_init.py | Python | lgpl-3.0 | 5,586 | [
"NetCDF"
] | 30096b9a937416ddd5df907a3a4c118146ac5f4cdf69493ae419615508598d41 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | angstwad/ansible | lib/ansible/constants.py | Python | gpl-3.0 | 23,779 | [
"Galaxy",
"MOOSE"
] | ceed132e3a94b9414429d229df6d4f615c9d4e3f18c5fb162efb305b24ab996d |
#@Author: Kyle Mede, kylemede@astron.s.u-tokyo.ac.jp or kylemede@gmail.com
from __future__ import absolute_import
from __future__ import print_function
import numpy as np
from scipy import stats
#from astropy import constants as const
import sys
##########################################################################... | kylemede/ExoSOFT | examples/priors.py | Python | gpl-3.0 | 15,770 | [
"Gaussian"
] | c79be08ba692ab20365789ba8c0f51ea92639463cc0c2c2beab2137a5d28f90f |
# Date: August 2017
# Author: Kutay B. Sezginel
"""
Reading and analyzing Lammps .xyz trajectory files
"""
from .trajectory import Trajectory
| kbsezginel/tee_mof | thermof/trajectory/__init__.py | Python | mit | 142 | [
"LAMMPS"
] | 1d81941f592643cae53da9fb9a558cd70b918af3406be571f104e7237ef8a4fd |
import asyncio
class ListenerRegister(object):
def __init__(self):
self._register = {}
self._catch_alls = set()
self._observers = {}
def add_listener(self, event, listener):
event = event.upper()
listeners = self._register.get(event, set())
listeners.add(listene... | kashifrazzaqui/again | again/events.py | Python | mit | 3,242 | [
"BLAST"
] | c1cb799700136ab7e4d11070a60efdd7ab13f6cd37eb4b3f2409d85de2520208 |
# This file is part of Merlin.
# Merlin is the Copyright (C)2008,2009,2010 of Robin K. Hansen, Elliot Rosemarine, Andreas Jacobsen.
# Individual portions may be copyright by individual contributors, and
# are included in this collective work with permission of the copyright
# owners.
# This program is free software; ... | d7415/merlin | Hooks/ships/afford.py | Python | gpl-2.0 | 3,951 | [
"CRYSTAL"
] | b768af0713315a4d22aac6943acdc82138d043b11eee1f786153421e11d2eaef |
# -*- coding: utf-8 -*-
from __future__ import division, print_function
from collections import OrderedDict, defaultdict
from contextlib import contextmanager
import six
import re
import os
from pandas.api.types import is_scalar, is_integer
import numpy as np
import pandas as pd
import h5py
def partition(start, stop... | mirnylab/cooler | cooler/util.py | Python | bsd-3-clause | 24,268 | [
"Biopython"
] | 6c878d10d766b8138319b90cab7c81b824947f8c20ea5b03f56dc2658d03a9e3 |
'''@package docstring
@author: Jyh-Miin Lin (Jimmy), Cambridge University
@address: jyhmiinlin@gmail.com
Created on 2013/1/21
================================================================================
This file is part of pynufft.
pynufft is free software: you can redistribute it and/or modify
it u... | jyhmiinlin/cineFSE | CsTransform/pynufftback.py | Python | gpl-3.0 | 37,803 | [
"Mayavi"
] | a345e6526536bce3cc920e92e3d9fe376285fb4e8c97732a42b47e47cc4926bf |
"""Test windspharm computations against reference solutions."""
# Copyright (c) 2012-2018 Andrew Dawson
#
# 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 withou... | ajdawson/windspharm | windspharm/tests/test_solution.py | Python | mit | 15,658 | [
"Gaussian"
] | 044c72b80a7a1b325604a13684dc3d1d435e3fc4312d52ebdad1f99e2099be3f |
# 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 RGenomicalignments(RPackage):
"""Representation and manipulation of short genomic alignmen... | rspavel/spack | var/spack/repos/builtin/packages/r-genomicalignments/package.py | Python | lgpl-2.1 | 2,735 | [
"Bioconductor"
] | a427a664b3fa45137d3f1b7cc646c34c6ae1964d010a9e1babfd19368d34f3b2 |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2018 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any pers... | est77/appleseed | sandbox/share/aspaths2json.py | Python | mit | 7,930 | [
"VisIt"
] | a9526b14013d43fc94ae88e9e553ee1637d4bc7ed3b4c8ff3071c9a58eb01b9c |
#!/usr/bin/env python2
###############################################################################
# ------------------------- Description ---------------------------------------
###############################################################################
# This script is designed to create a mask of stagnation... | stevenjoelbrey/PMFutures | Python/make_era_interim_met_masks.py | Python | mit | 21,174 | [
"NetCDF"
] | cff02b51418eaaedaee204c3f9bb39abc994e4ecec39bbf4f6196acbf8faccc6 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.contrib import admin, messages
from django.contrib.auth.models import User
try:
from django.contrib.sites.models import get_current_site
except ImportError:
from django.contrib.sites.shortcuts import get_current_site
f... | Proper-Job/django-mobile-app-distribution | django_mobile_app_distribution/admin.py | Python | mit | 6,091 | [
"VisIt"
] | f094e0d221b1ee640b66b26daeab330f25920b7bb234168348b0163a09bf23ad |
"""
Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1.
AUTHORS
The original version of this software, called LMFIT, was written in FORTRAN
as part of the MINPACK-1 package by XXX.
Craig Markwardt converted the FORTRAN code to IDL. The information for ... | keflavich/gaussfitter | gaussfitter/mpfit/mpfit.py | Python | bsd-3-clause | 96,542 | [
"Gaussian"
] | 077379f2230004edfd3a1650740e1390b9709249742c67db578ae5cb9716e254 |
from math import sqrt
from ase import Atom, Atoms
from ase.neb import NEB
from ase.constraints import FixAtoms
from ase.vibrations import Vibrations
from ase.visualize import view
from ase.calculators.emt import EMT
from ase.optimize import QuasiNewton, BFGS
# Distance between Cu atoms on a (100) surface:
d = 3.6 / sq... | grhawk/ASE | tools/ase/test/Ag-Cu100.py | Python | gpl-2.0 | 1,654 | [
"ASE"
] | 109e2a25002b06a849c465a86ba532dc3e83cfd2fd93c8720cb56d84b585a005 |
'''
Created on Jan 19, 2014
@author: rch
'''
from mayavi.core.api import PipelineBase
from traits.api import HasTraits, Instance, on_trait_change, \
Property, DelegatesTo, cached_property, \
Int, Bool, Float, WeakRef
from traitsui.api import \
View, Item, RangeEditor
import numpy as np
class FaceView(H... | simvisage/oricreate | oricreate/view/face_view.py | Python | gpl-3.0 | 3,837 | [
"Mayavi"
] | d124b750229ff244f165038b0977c88cdec7e9800f87ae92935a6eddfe2ba82c |
#!/usr/bin/env python
#
# @file generate-extensions-summary.py
# @brief Create a page summarizing libSBML L3 extensions for Java
# @author Michael Hucka
#
# Usage:
# generate-extensions-summary.py PATH-TO-PACKAGE-SUMMARY.html > file.html
#
# where
# PATH-TO-PACKAGE-SUMMARY.html is the path to "package-summary... | TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/docs/src/utilities/generate-extensions-summary.py | Python | bsd-3-clause | 5,605 | [
"VisIt"
] | cd3633c178110196524926931b97dd3aa80be311e5687f3a8d3dbeec195fc912 |
import os
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.models import User
from django.contrib.sessions.middleware import SessionMiddleware
from django.contrib.messages.middleware import MessageMiddleware
from django.contrib.sites.models import Site
from django.core impo... | anushbmx/kitsune | kitsune/users/tests/test_views.py | Python | bsd-3-clause | 16,078 | [
"VisIt"
] | fe3f7fc2676a0574e2574f85632e410ad49ab846c82d49064efd5d86de334f36 |
# Custom GPAW setup for Sisu (Cray XC40)
import os
# compiler and linker
compiler = './gcc.py'
mpicompiler = './gcc.py'
mpilinker = 'cc'
extra_compile_args = ['-std=c99', '-O3', '-fopenmp-simd']
# libraries
libraries = ['z']
# libxc
library_dirs += [os.environ['LIBXCDIR'] + '/lib']
include_dirs += [os.environ['LIBXC... | mlouhivu/build-recipes | gpaw/setup/customize-sisu.py | Python | mit | 611 | [
"GPAW"
] | 778b13f52d931cff42a917da6f43a49600f7f24883c8cdf7360eb95b7cd9f204 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/MooseDocs/test/integrity/test_spec_files.py | Python | lgpl-2.1 | 2,555 | [
"MOOSE"
] | d80546659931786e68e95338c3e84a3a4d5c0436f6514bf42ca1752f1d0fd8e5 |
############################################################
# $HeadURL$
############################################################
"""
DIRAC.WorkloadManagementSystem.Service package
"""
__RCSID__ = "$Id$"
| Sbalbp/DIRAC | WorkloadManagementSystem/Service/__init__.py | Python | gpl-3.0 | 213 | [
"DIRAC"
] | 6051152260a1981beada9e877929c5f7a326ba727e8b267bc81d37b320e9fd1f |
# ################################################################
#
# Active Particles on Curved Spaces (APCS)
#
# Author: Silke Henkes
#
# ICSMB, Department of Physics
# University of Aberdeen
#
# Author: Rastko Sknepnek
#
# Division of Physics
# School of Engineering, Physics and Math... | sknepneklab/SAMoS | FormerAnalysis/nematic_analysis.py | Python | gpl-3.0 | 23,784 | [
"VTK"
] | 98be2a64c686948592b26bafce967972ae33990286a95115f1b1b1947c3487c0 |
# TeamLogger
# Copyright (C) 2018 Maxence PAPILLON
#
# 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 your option) any later version.
#
# This program i... | mpapillon/django-teamlogger | src/nouvelles/__init__.py | Python | gpl-3.0 | 1,236 | [
"Brian"
] | 33e3555ac01507af48e3ee63aaf64c3f79ee312887b5b374b65a93951422c7bd |
# 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 PyPymatgen(PythonPackage):
"""Python Materials Genomics is a robust materials analysis cod... | iulian787/spack | var/spack/repos/builtin/packages/py-pymatgen/package.py | Python | lgpl-2.1 | 1,650 | [
"pymatgen"
] | 8f3c39c471c7a66e53e1f54d4d72c8ce136d62c5b7180e8165fa7969cd1bf47d |
# -*- coding: utf-8 -*-
#
# gap_junctions_two_neurons.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 t... | mdjurfeldt/nest-simulator | pynest/examples/gap_junctions_two_neurons.py | Python | gpl-2.0 | 2,741 | [
"NEURON"
] | e66235bc7b4ce5d478a121f643e85bf91401860e283e73d0a969576d7ab762b5 |
""" JobMonitoringHandler is the implementation of the JobMonitoring service
in the DISET framework
The following methods are available in the Service interface
"""
from __future__ import print_function
__RCSID__ = "$Id$"
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.DISET.RequestHandler import RequestHandl... | petricm/DIRAC | WorkloadManagementSystem/Service/JobMonitoringHandler.py | Python | gpl-3.0 | 20,478 | [
"DIRAC"
] | b4e6161bb13d9fd3a49f9ea4940ac3562fa77d5938037fe74b91f3855e96a5d7 |
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 12 11:34:40 2015
@author: dongyu
"""
import os
import sys
import numpy as np
import subprocess
import shutil
import math
from netCDF4 import Dataset, num2date
from datetime import datetime, timedelta
from urllib2 import HTTPError
import utm
import matplotlib.pyplot as pl... | UT-CWE/Hyospy | Hyospy_ensemble/oilspill_wrapper.py | Python | mit | 30,053 | [
"NetCDF"
] | 5b44b8c72e917338a73975cbacaf88c3fd66da3410dbbfa4d77f860fb1b0342e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.