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 |
|---|---|---|---|---|---|---|---|
# (c) 2014, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | nrwahl2/ansible | lib/ansible/plugins/filter/mathstuff.py | Python | gpl-3.0 | 4,378 | [
"Brian"
] | e10d620055bb3b6c994b9e6140a358e1c699bfc202fba45bf9818019b9307113 |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/core/document/__init__.py | Python | gpl-2.0 | 2,903 | [
"VisIt"
] | 73e8ea903732b25d2a07c1b8fddd184d3b3b2d7e88639331db129e24f1198e24 |
# Version: 0.18-1
"""The Versioneer - like a rocketeer, but for versions.
The Versioneer
==============
* like a rocketeer, but for versions!
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy
* [![Latest Version... | ParallelSSH/ssh2-python | versioneer.py | Python | lgpl-2.1 | 69,737 | [
"Brian"
] | 2d9b44a43fc78c3218a471803ba5573d8ce4d3c77148111ee3f230355487bd7d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests/Examples for dThetaXZ
TODO
====
"""
# Fix Python 2.x
try:
input = raw_input
except NameError:
pass
import os, sys
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec
from sloth.inst.dthetaxz import (
dThetaXZ,
map... | maurov/xraysloth | examples/dthetaxz_tests.py | Python | bsd-3-clause | 14,078 | [
"CRYSTAL"
] | 2dd96e0ca4a17bfc45071944fb4fdf0b69c330254e259f81ff81ddff96e20fc1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2020 Daniel Schick
#
# 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 with... | dschick/udkm1Dsim | udkm1Dsim/simulations/xrays.py | Python | mit | 115,918 | [
"Gaussian"
] | 51e67da4ed314e66004cafd96429d17323ac2aee43e90bc80568489ff9f8b39f |
#!/bin/env python
# try importing the modules that do not come with Python by default
# check if it is installed by importing the modules
try:
from google.cloud import texttospeech
import PySimpleGUI as sg
import babel
#print('\nAll modules installed successfully, have fun! d^o^b')
except Exception as ... | Pyroseza/Random | Google TTS/tts_form.py | Python | mit | 19,932 | [
"CDK"
] | 804bdd31a93b0212a2fb0025c5fe6fd69a6a183a5197f4090eec9622600622f1 |
# (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... | jswanljung/iris | lib/iris/tests/integration/test_grib_load.py | Python | lgpl-3.0 | 8,778 | [
"Gaussian"
] | 648bf8416e1842e2471541e9597013fe825a36834e86db05648ef1a77d47f37d |
# Lint as: python2, python3
# Copyright 2018 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
#
... | tensorflow/tensorflow | tensorflow/tools/compatibility/tf_upgrade_v2.py | Python | apache-2.0 | 103,968 | [
"Gaussian",
"VisIt"
] | e816f1c820ad1148dd0e2e2b7ad27a6d3f02d3137a500df875569f81ba603f0a |
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html
# Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
#
# Copyright (2005) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
# certain rights in this software. This software is... | vanceeasleaf/aces | aces/libs/pizza/latgen.py | Python | gpl-2.0 | 3,391 | [
"LAMMPS",
"VASP"
] | 37f7b957250a2e053aa17b3385cf08a62329f0d2535f690866f28ef867a9f73c |
import numpy as np
from ase.optimize.optimize import Dynamics
from ase.optimize.fire import FIRE
from ase.units import kB
from ase.parallel import world
from ase.io.trajectory import PickleTrajectory
class BasinHopping(Dynamics):
"""Basin hopping algorythm.
After Wales and Doye, J. Phys. Chem. A, vol 101 (1... | JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/optimize/basin.py | Python | gpl-2.0 | 4,101 | [
"ASE",
"GPAW"
] | a72485d2bb87f5563db581b32e1117f4c491f278fcd465eec9a24a50e4bb137e |
# coding=utf-8
"""The main BERT model and related functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import copy
import json
import math
import re
import six
import tensorflow as tf
class BertConfig(object):
"""Configura... | FeiSun/BERT4Rec | modeling.py | Python | apache-2.0 | 40,615 | [
"Gaussian"
] | c1d2502dca88d2c78dc23517c1d5e23b8bdb523ce3c93d7385d108cfe83fe8c0 |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | tests/process/test_mpi.py | Python | gpl-3.0 | 5,949 | [
"CRYSTAL",
"VASP"
] | 8b4709478fd52465a6e6ce56427b9c575e156ad07ff38c52bcc89d07aedff439 |
# Copyright (c) 2014-2015 Brett Cannon <brett@python.org>
# Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015 Pavel Roskin <proski@gnu.org>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
... | arju88nair/projectCulminate | venv/lib/python3.5/site-packages/pylint/checkers/python3.py | Python | apache-2.0 | 38,460 | [
"VisIt"
] | 260d985e54adb6fd9567aad77bff40d2101d233e70a313a3f2459af62d783ad2 |
import numpy as np
from scipy.spatial import cKDTree
from .synthClustPrep import setSynthClust
from ..best_fit.obs_clust_prepare import dataProcess
from .. import update_progress
def main(clp, pd):
"""
Assign masses to the (decontaminated) observed cluster, and binary
probabilities (if binarity was estim... | asteca/ASteCA | packages/synth_clust/masses_binar_probs.py | Python | gpl-3.0 | 5,556 | [
"Gaussian"
] | 06138e5d3c5787eaed51fd72fa1ba2bd85c7b159a37c41d40838e110aae3a7ad |
#!/usr/bin/env python
"""
Vision demo configuration routines.
Notes
-----
Information regarding the cartridges and columns that own specific
neurons are not used during execution, but may be used for
examining the generated LPU graphs.
Genetic/neurotransmitter information included in the neuron data is artificial
an... | neurokernel/vision | examples/data/vision_configuration.py | Python | bsd-3-clause | 33,683 | [
"NEURON"
] | 707b1e675bb07a043a9f6c3cfeabe8339c9751b41b2c1ec70784ccf244371c8e |
# -*- coding: utf-8 -*-
# @Author: YangZhou
# @Date: 2016-09-05 19:22:06
# @Last Modified by: YangZhou
# @Last Modified time: 2017-06-18 22:36:31
import aces.tools as tl
from aces.runners.phonopy import runner as Runner
class runner(Runner):
def generate(self):
tl.cp('minimize/POSCAR', '.')
... | vanceeasleaf/aces | aces/runners/scf.py | Python | gpl-2.0 | 500 | [
"phonopy"
] | 0dbd4a9332baa06f355870713a3656c8fb5a9c706d02b491a4b276d3606ab50e |
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | google/expt-analysis | python/sequential_analysis_example.py | Python | apache-2.0 | 5,624 | [
"VisIt"
] | 731c9499efd5da23dd349b382710358d7a1226a47cf1a5b2d0ca700b4d61b963 |
r"""
===============
Gaussian Shells
===============
Toy likelihood model for stress testing multiple-ellipsoid method.
The problem is:
.. math::
\mathcal{L}(\theta) = \mathrm{circ}(\theta; c_1, r_1, w_1) +
\mathrm{circ}(\theta; c_2, r_2, w_2)
where
.. math::
\mathrm{circ}(\theta; ... | keflavich/nestle | examples/plot_shells.py | Python | mit | 3,872 | [
"Gaussian"
] | 0d4261b5dd7f78d81972b85bf1ed521dd312bcb6218326ec73b4fd0ba873ce4b |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2010 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program 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 F... | andrebellafronte/stoq | stoqlib/gui/dialogs/paymentflowhistorydialog.py | Python | gpl-2.0 | 8,070 | [
"VisIt"
] | ba4d76032d76c05c4d0b79d33be573a94d59ef0c4bf7b7ef24d4f2621c8c3fd1 |
import tensorflow as tf
import numpy as np
import autoencoder.Utils
class VariationalAutoencoder(object):
def __init__(self, n_input, n_hidden, optimizer = tf.train.AdamOptimizer()):
self.n_input = n_input
self.n_hidden = n_hidden
network_weights = self._initialize_weights()
self.... | plowman/python-mcparseface | models/autoencoder/autoencoder_models/VariationalAutoencoder.py | Python | apache-2.0 | 2,980 | [
"Gaussian"
] | 2513ae23722d66f011aaff4c4e41d260853a0b72d59f72b91b77ddb2b82d1975 |
## \file
## \ingroup tutorial_pyroot
## \notebook
## Example of function called when a mouse event occurs in a pad.
## When moving the mouse in the canvas, a second canvas shows the
## projection along X of the bin corresponding to the Y position
## of the mouse. The resulting histogram is fitted with a gaussian.
## A ... | veprbl/root | tutorials/pyroot/DynamicSlice.py | Python | lgpl-2.1 | 3,860 | [
"Gaussian"
] | b6266b4a6a085931926f23889288f89233878afb5427da3c17156dcaa8932484 |
"""
A collection of functions for analyzing tuning properties of the cells.
"""
import numpy as np
def resp_vs_attr(sims, attr, resp_type = "t_resp", rc=[0.0, 0.0], indices=None):
"""
returns the max response of every cell in
each simulation with respect to a given simulation
attribute (attr).
Pa... | miladh/lgn-simulator | tools/analysis/tuning_analysis.py | Python | gpl-3.0 | 2,629 | [
"NEURON"
] | 3fa11700d6a8669b63d3fca00d0aefacbc1d3c1c330bb3e507aab68b7ea292e4 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/analysis/VelocityAutocorrelation.py | Python | gpl-3.0 | 1,865 | [
"ESPResSo"
] | 6c3a948c0e53dfce25baf9a2f10a120a3255e72aadd3c72c11120dd369a640cf |
#!/usr/bin/env python -i
# preceding line should have path for Python on your machine
# split.py
# Purpose: similar to simple.py, but first the world communicator
# is split in two halves and LAMMPS is run only on one partition
# Syntax: split.py in.lammps
# in.lammps = LAMMPS input script
from __future__... | akohlmey/lammps | python/examples/split.py | Python | gpl-2.0 | 1,829 | [
"LAMMPS"
] | 5b285f2a56fd2416d718897e20a909f5edf202b6e4a664be7061a1c30d08d465 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2011 L Fiaschi, T Kroeger, M Nullmaier, C Sommer, C Straehle, U Koethe, FA Hamprecht.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following condit... | ilastik/ilastik-0.5 | scripts/PackagesItems.py | Python | bsd-2-clause | 25,297 | [
"VTK"
] | 50fce19cf3e89f934f049e795fbf390d9a78eff93b4676da0cdc85066cf0705c |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
from __future__ import absolute_import, print_function
"""
This module provides classes used to enumerate surface sites
and to find adsorption sites on slabs
"... | czhengsci/pymatgen | pymatgen/analysis/adsorption.py | Python | mit | 30,820 | [
"Jmol",
"pymatgen"
] | 002100887a9a7963adb0277de17e3096375ed0c67a69e2887a74f01d1447f1eb |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-dms-pfn-metadata
# Author : Stuart Paterson
########################################################################
"""
Retrieve metadata for a PFN given a valid DIRAC SE
"""
from __future__ ... | chaen/DIRAC | Interfaces/scripts/dirac-dms-pfn-metadata.py | Python | gpl-3.0 | 1,446 | [
"DIRAC"
] | 0b654296e70b7f869f0be228631aeea939dca458360c5d735016fdf94ab0c3a4 |
#!/usr/bin/env python3
#
# Reverse : Generate an indented asm code (pseudo-C) with colored syntax.
# Copyright (C) 2015 Joel
#
# 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... | d4nnyk/reverse | reverse/lib/generate_ast.py | Python | gpl-3.0 | 22,717 | [
"VisIt"
] | f49d289fe721ad733ff2c1f0626567323a93bfad73ef150b4933438c9e36f3b5 |
"""Util interpolation and distance calculation methods for gps_mapper."""
import cv2
import math
import numpy as np
from collections import namedtuple
EARTH_RADIUS = 6371.0088 # radius of Earth in km
ImageInfo = namedtuple('ImageInfo', 'linewidth, height, width')
Sigmas = namedtuple('Sigmas', 'sigma_x, sigma_y')
... | gtagency/buzzmobile | buzzmobile/process/gps_mapper/interpolate.py | Python | mit | 4,933 | [
"Gaussian"
] | c813f4f9e4f6e46a3ef45314217f255adcb1043a55bcfd5f697a431b29f3a616 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/core/test_group_traj_access.py | Python | gpl-2.0 | 16,491 | [
"Gromacs",
"MDAnalysis"
] | 9c89d194d9acaf3a961ee365fb2828a09261c87f8baa7b64009b666633064a46 |
# https://www.hackerrank.com/challenges/bon-appetit
# Anna and Brian ate n dishes, but anna didn't eat from the kth one
# because of an allergy, so that one doesn't go into tab splitting.
n, k = map(int, raw_input().split())
# The list of costs for the n dishes.
costs = map(int, raw_input().split())
# What Anna should ... | zubie7a/Algorithms | HackerRank/Algorithms/02_Implementation/07_Bon_Appetit.py | Python | mit | 690 | [
"Brian"
] | 3bd1167b43911e73c6a62ad182895a2d19723d3a301d7663404b0e45c6c4c389 |
from __future__ import absolute_import, division, print_function
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed w... | Kleptobismol/scikit-bio | skbio/io/_registry.py | Python | bsd-3-clause | 27,288 | [
"scikit-bio"
] | 25f46ab8c6d4ecc3373dfbe044566c23ce32b42ba678e12d613542d38c251885 |
# encoding: utf-8
import re
TLDS = [
"ac", "ad", "ae", "af", "ag", "ai", "al", "am", "an", "ao", "aq", "ar",
"as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg",
"bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv",
"bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "c... | shichao-an/python-twitter | twitter/twitter_utils.py | Python | apache-2.0 | 10,774 | [
"CASINO",
"MOE"
] | cdc05e53d8ce9bb3ab2ce7d4cd4c5c9ba730794a1ca0ceb31327944c15bc1106 |
import datetime as dt
import os
import re
import sys
import pytest
from click.testing import CliRunner
from freezegun import freeze_time
from khal.cli import main_ikhal, main_khal
from .utils import _get_ics_filepath, _get_text
class CustomCliRunner(CliRunner):
def __init__(self, config_file, db=None, calendar... | pimutils/khal | tests/cli_test.py | Python | mit | 29,697 | [
"VisIt"
] | 18f66a0184c805a884e3f6e19e61c172ca62ef558c6ec809edf7b2bb6192149a |
# ##########################################################################
#
# Example to submit Marlin job to ILCDirac, as an User job.
#
# To submit,
# python submarlin.py
#
# A. Miyamoto, 1-July-2019
#
# ###########################################################################
from DIRAC.Core.Base impor... | akiyamiyamoto/Tutorial | grid/ilcdirac/overlay/suboverlay.py | Python | gpl-3.0 | 6,857 | [
"DIRAC"
] | ec6aed651b599ec08ca5b74738519e740353eb5b7c25804acc000baf516e3a4c |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Module to test fitting routines
"""
import os.path
import pytest
import numpy as np
from numpy import linalg
from numpy.testing import assert_allclose, assert_almost_equal
from unittest import mock
from . import irafutil
from astropy.modeling import... | bsipocz/astropy | astropy/modeling/tests/test_fitters.py | Python | bsd-3-clause | 33,395 | [
"Gaussian"
] | b40cd26ebdaae06bd092211580e3c32bc8b0831569e23b573f51c8526cabf148 |
#! /usr/bin/python
#Guruprasad Ananda
#MAQ mapper for SOLiD colourspace-reads
import sys, os, zipfile, tempfile, subprocess
def stop_err( msg ):
sys.stderr.write( "%s\n" % msg )
sys.exit()
def __main__():
out_fname = sys.argv[1].strip()
out_f2 = open(sys.argv[2].strip(),'r+')
ref_fname = sys.ar... | dbcls/dbcls-galaxy | tools/solid_tools/maq_cs_wrapper.py | Python | mit | 12,119 | [
"Galaxy"
] | 4ade322fa2d7f6a79e76ad2a43318aaf0139abcdc5d808192b4c552a32c7bbab |
#!/usr/bin/env python
# coding: utf-8
# ---
# syncID: f059914f7cf74327908228e63e204d60
# title: "Introduction to NEON API in Python"
# description: "Use the NEON API in Python, via requests package and json package."
# dateCreated: 2020-04-24
# authors: Maxwell J. Burner
# contributors: Donal O'Leary
# estimatedTime: ... | NEONScience/NEON-Data-Skills | tutorials/Python/NEON-API-python/neon_api_01_introduction_requests_py/neon_api_01_introduction_requests_py.py | Python | agpl-3.0 | 13,632 | [
"VisIt"
] | c5813407c2f76b368c9ff00f5075294a8b1580b34a00127c2005bae95f29fa8f |
import time
import six
from kalliope.core.NeuronModule import NeuronModule, MissingParameterException
class Sleep(NeuronModule):
def __init__(self, **kwargs):
super(Sleep, self).__init__(**kwargs)
self.seconds = kwargs.get('seconds', None)
# check parameters
if self._is_paramete... | kalliope-project/kalliope | kalliope/neurons/sleep/sleep.py | Python | gpl-3.0 | 934 | [
"NEURON"
] | 611ccc366d0adbdc581aa85375ac5c66e31bf9fc0707d6ab530ec6385e0edc81 |
# -*- coding: utf-8 -*-
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2009 Mads Kiilerich <mads@kiilerich.com>
# Copyright (c) 2010 Daniel Harding <dharding@gmail.com>
# Copyright (c) 2011-2014, 2017 Google, Inc.
# Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com>
# Cop... | lucidmotifs/auto-aoc | .venv/lib/python3.5/site-packages/pylint/checkers/variables.py | Python | mit | 60,718 | [
"VisIt"
] | daa4151f62a016a67f0f5ca658b2de470a72adb51d663b7e64060463def31cc6 |
from asap3 import *
from ase.lattice.cubic import FaceCenteredCubic
from asap3.testtools import *
from numpy import *
import ase.data
def TestLists(nblist, fnb, name, count=None):
"Run the tests on a half and a full neighbor list."
print ""
if count:
print "Testing %s: Length of lists" % (name,)
... | auag92/n2dm | Asap-3.8.4/Test/NeighborList.py | Python | mit | 3,822 | [
"ASE"
] | e3758bfe38295ad6f7bb2f2a8ae67d56ff03be2e19c89ee4a88049467f05eaa6 |
from serverus.models import *
from django.http import HttpResponse, HttpResponseRedirect
from django.template.response import TemplateResponse
from django.template import RequestContext
from django.views.decorators.csrf import csrf_protect
from django.contrib.humanize.templatetags import humanize
from django.db.models ... | abevac/mitlocate-web | serverus/views.py | Python | mit | 31,956 | [
"VisIt"
] | 9962c331d566287530891fff67e4b858882067be664e423b8339700a07e18965 |
# -*- coding: utf-8 -*-
"""Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the Akvo RSR module.
For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
"""
from decimal import Decimal, Invalid... | akvo/akvo-rsr | akvo/rsr/models/project.py | Python | agpl-3.0 | 77,934 | [
"VisIt"
] | ce6344f8b7ed38abe2f97d62d789e101369df936fd18721b15e2c123174310ba |
# Copyright 2008-2014 Nokia Solutions and Networks
#
# 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... | ldtri0209/robotframework | src/robot/result/keywordremover.py | Python | apache-2.0 | 4,811 | [
"VisIt"
] | db0fd60a0a1b68fa03b9a40d81536bd8efc899d2cb0e7947c2264f21c96c2bef |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/ajax/boxinfo.py | Python | gpl-2.0 | 18,406 | [
"VisIt"
] | bce0ba3579e6eff578a1ed124b5f9a80192d1fd1a29f7fa18b0ae87d196fd548 |
"""
Test functions for models.GLM
"""
import os
import warnings
import numpy as np
from numpy.testing import (
assert_,
assert_allclose,
assert_almost_equal,
assert_array_less,
assert_equal,
assert_raises,
)
import pandas as pd
from pandas.testing import assert_series_equal
import pytest
from s... | bashtage/statsmodels | statsmodels/genmod/tests/test_glm.py | Python | bsd-3-clause | 100,877 | [
"Gaussian"
] | b1ed1200e4b1f8f8e03fb5f46adb43beb90261db8f4d3f808bbc29d54c718c68 |
import tensorflow as tf
def cross_matrices(tensor_a, a_inputs, tensor_b, b_inputs):
"""Tiles two tensors in perpendicular dimensions."""
expanded_a = tf.expand_dims(tensor_a, 1)
expanded_b = tf.expand_dims(tensor_b, 0)
tiled_a = tf.tile(expanded_a, tf.constant([1, b_inputs, 1]))
tiled_b = tf.tile(... | Kkari/bsc_thesis | svm.py | Python | apache-2.0 | 2,658 | [
"Gaussian"
] | cf5e3c51e5616898182bf5b1181abe1233754019cf6056bfdaf4bba62f596467 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## 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 Foundati... | tiagocardosos/stoq | stoq/gui/test/baseguitest.py | Python | gpl-2.0 | 3,342 | [
"VisIt"
] | 4479393b41fd6c62b719c994e0f2405fcf7886091e982faa8bcbc83b69434bb2 |
#!/usr/bin/env python
"""
compliance_checker/protocols/netcdf.py
Functions to assist in determining if the URL points to a netCDF file
"""
import requests
def is_netcdf(url):
"""
Returns True if the URL points to a valid local netCDF file
:param str url: Location of file on the file system
"""
... | ocefpaf/compliance-checker | compliance_checker/protocols/netcdf.py | Python | apache-2.0 | 2,160 | [
"NetCDF"
] | 2e6c8af36483875670ec18a227bdb3942aaa1cfd7918801fc07f72d2b30a780e |
"""
Instructor Dashboard Views
"""
import logging
import datetime
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
import uuid
import pytz
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST
from django.utils.translation imp... | polimediaupv/edx-platform | lms/djangoapps/instructor/views/instructor_dashboard.py | Python | agpl-3.0 | 26,692 | [
"VisIt"
] | 1ad397ebae59366cabb2d405891b5a8a4c9ea61db1e5dc8ada64410bd01faacb |
import openvoronoi as ovd
import ovdvtk
import time
import vtk
import datetime
import math
import random
import os
import sys
import pickle
import gzip
import ovdgenerators as gens
def drawLine(myscreen, pt1, pt2, lineColor):
myscreen.addActor(ovdvtk.Line(p1=(pt1.x, pt1.y, 0), p2=(pt2.x, pt2.y, 0), color=lineColo... | aewallin/openvoronoi | python_examples/issues/polygon_2015-02-09.py | Python | lgpl-2.1 | 4,948 | [
"VTK"
] | 75a12c56b780eae89d08e52422f359ccd9c52356fd66f128b9b21a56f95a6ede |
import ocl
import camvtk
import time
import vtk
import datetime
import math
def drawPoints(myscreen, clpoints, ccpoints):
c=camvtk.PointCloud( pointlist=clpoints, collist=ccpoints)
c.SetPoints()
myscreen.addActor(c )
def drawFiber(myscreen, f, fibercolor=camvtk.red):
inter = f.getInts()
for i in ... | tectronics/opencamlib | scripts/fiber_04_stl.py | Python | gpl-3.0 | 4,750 | [
"VTK"
] | 133a87bf179eca4407742c83a8adba243095d98162570c625a476fc1e5c35ed9 |
r"""
Tree representations (:mod:`skbio.tree`)
========================================
.. currentmodule:: skbio.tree
This module provides functionality for working with trees, including
phylogenetic trees and hierarchies, and prefix trees (i.e., tries).
Functionality is provided for constructing trees, for traversing... | wdwvt1/scikit-bio | skbio/tree/__init__.py | Python | bsd-3-clause | 7,519 | [
"scikit-bio"
] | 69ef0c914d05afdc7aef66e45c2b2d1d156ddef028034363e0b4c51de0bebc9d |
# -*- coding: utf-8 -*-
import os
from datetime import datetime
from testtools import TestCase
from . import makeprefs, dummykey, _temp_home
from shutil import copy
from mock import patch, Mock, MagicMock
from contextlib import nested
class CacheTest(TestCase):
def setUp(self):
super(CacheTest, self).set... | longaccess/longaccess-client | lacli/t/test_cache.py | Python | apache-2.0 | 8,661 | [
"ADF"
] | 74de09e2345b679edc9651da078b2b6f8b784662923404984256f66867e459e9 |
# Import the necessary modules.
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import scipy.optimize
import glob
import skimage.io
import skimage.morphology
import scipy.constants
# Define functions from Justin Bois
# Fit symmetric Gaussian to x, y, z data
def fit_gaussian(x, y, z):
"""
... | RPGroup-PBoC/gist_pboc_2017 | code/gaussian_trap_stiffness.py | Python | mit | 3,972 | [
"Gaussian"
] | 2ffc456480554145323fec2fa805564d88938157e2e5484d93b8a9495cb26c94 |
"""
==============================================================
Reading a .dip file form xfit and view with source space in 3D
==============================================================
Here the .dip file was generated with the mne_dipole_fit command.
Detailed unix command is :
$mne_dipole_fit --meas sample_a... | effigies/mne-python | examples/inverse/plot_dipole_fit_result.py | Python | bsd-3-clause | 2,770 | [
"Mayavi"
] | 89aa83983fd46d8b78e9e86ec9fc87ed93bd2e4e988ca745df59cfba1a43fc92 |
# $Id$
#
# Copyright (C) 2003-2008 greg Landrum and Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
"""unit testing code ... | rdkit/rdkit-orig | rdkit/ML/UnitTestScreenComposite.py | Python | bsd-3-clause | 9,996 | [
"RDKit"
] | 36288e80f86ec8b0d77b0b5a4794e9e1e8f80ad6483be732a1079522327c4ff4 |
# -*- mode: python; coding: utf-8 -*-
"""
FireLogger_ server-side support library for Python.
For usage see ``README.txt`` or visit the `github homepage`_.
.. _FireLogger: https://addons.mozilla.org/en-US/firefox/addon/11090
.. _github homepage: http://github.com/darwin/firepython
"""
__api_version__ = '1.0'
# ^--- c... | binaryage/firelogger.py | firepython/__init__.py | Python | bsd-3-clause | 414 | [
"VisIt"
] | d10f397dcf1ee5322ccd1f4eb4b95eef285d9248cde7bc4241c1d76b4e370dfa |
"""Stand-alone entry point for running Pulsar without a web server.
In its simplest form, this method will check the current directory for an
app.yml and run the corresponding configuration as a standalone applciation.
This makes sense when ``app.yml`` contains a ``message_queue_url`` option so
Pulsar is configured to... | natefoo/pulsar | pulsar/main.py | Python | apache-2.0 | 12,733 | [
"Galaxy"
] | c4fd4635cef64f148ec97afb8ce5cbf0f310eb8c0135e68e8bc503748d60bc73 |
#!/usr/bin/env python
import os, pickle, random, time
try:
os.remove('my_gp_module.pyc')
except OSError:
pass
import scipy as sp
from scipy.linalg import eigh
from my_gp_module import GaussianProcess
import matplotlib.pyplot as plt
# --------------------------------------------
# WHAT IT DOES:
# Given Ntest ... | marcocaccin/MarcoGP | alpha_trends.py | Python | apache-2.0 | 4,979 | [
"Gaussian"
] | 3d5c89e41624a30400499eec0b60dbe1da0583adb0d6d65556fc7f75cb71c73a |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | GirlsCodePy/girlscode-coursebuilder | modules/news/news.py | Python | gpl-3.0 | 19,825 | [
"VisIt"
] | a00e09eb550cc3a7c7c34b9754ec06679ccd663cb18f42a4425bc2eb066a5298 |
from ase import Atoms
from ase.calculators.emt import EMT
from ase.optimize import QuasiNewton
n2 = Atoms('N2', positions=[(0, 0, 0), (0, 0, 1.1)],
calculator=EMT())
QuasiNewton(n2).run(0.01)
print(n2.get_distance(0, 1), n2.get_potential_energy())
| suttond/MODOI | ase/test/n2.py | Python | lgpl-3.0 | 260 | [
"ASE"
] | a869e842e938fac3886dba4e690dee3c631bc07d2012cc1ec16e49e406872eb8 |
import os
import platform
import _thread as thread
import time
from subprocess import Popen
from .util import kill_pid
from pulsar.managers.base.directory import DirectoryBaseManager
from pulsar.managers import status
from logging import getLogger
log = getLogger(__name__)
JOB_FILE_SUBMITTED = "submitted"
JOB_FILE_P... | natefoo/pulsar | pulsar/managers/unqueued.py | Python | apache-2.0 | 8,600 | [
"Galaxy"
] | 87f6353e286a542b2421a6bd22ddce2a40b199a7c713e3abc818e79fd5cb2f64 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines standard transformations which transforms a structure into
another structure. Standard transformations operate in a structure-wide manner,
rather than site-specific manner.
All transformations should in... | vorwerkc/pymatgen | pymatgen/transformations/standard_transformations.py | Python | mit | 35,536 | [
"CRYSTAL",
"pymatgen"
] | 419bffca2f3eed2cf2f56ff44b67ce592d90169e5e543f0fffccfbf87a019b74 |
from __future__ import division
import warnings
import numpy as np
def monkhorst_pack(size):
"""Construct a uniform sampling of k-space of given size."""
if np.less_equal(size, 0).any():
raise ValueError('Illegal size: %s' % list(size))
kpts = np.indices(size).transpose((1, 2, 3, 0)).reshape((-1,... | grhawk/ASE | tools/ase/dft/kpoints.py | Python | gpl-2.0 | 11,540 | [
"ASE",
"CRYSTAL"
] | 8ef4d5273334dd101d4d3ce2a1576318b2c1994b3b96a5b7e9abc7d8205fc40e |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/integrator/Isokinetic.py | Python | gpl-3.0 | 1,750 | [
"ESPResSo"
] | f99fd0b9d65816427f8a5f20799da64ececb90ef88e03f52ce52400d6441a314 |
#
# Copyright 2011 - 2013 Brian R. D'Urso
#
# This file is part of Python Instrument Control System, also known as Pythics.
#
# Pythics 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 ... | LunarLanding/Pythics | doc/qwt.py | Python | gpl-3.0 | 1,365 | [
"Brian"
] | 9b4471a1f9c42758194acdaf98c515858c6ec3b2735ce7e81a66d341f7158560 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | JWDebelius/scikit-bio | skbio/alignment/_alignment.py | Python | bsd-3-clause | 67,569 | [
"scikit-bio"
] | 9b71966d23866cff938b28da6b368cba37ba295564ff53e8bfc2ceef22f4c91a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# www.genesilico.pl
#
#creates ranked 3D models of macromoleular complexes
#based on experimental restraints and a whole complex shape.
__author__ = "Joanna M. Kasprzak"
__copyright__ = "Copyright 2010, The PyRy3D Project"
__credits__ = ["Janusz Bujni... | mdobrychlop/pyry3d_chimera_extension | cluster_complexes.py | Python | gpl-3.0 | 20,280 | [
"Biopython"
] | 6191fb1d05e6408a10a933536c32af68cc35841a4b30bf161ae8f8b32c08705a |
#!/usr/bin/env python
"""
Populates the database with the current installations of components
This script assumes that the InstalledComponentsDB, the
ComponentMonitoring service and the Notification service are installed and running
"""
from __future__ import absolute_import
from __future__ import division
from __futu... | ic-hep/DIRAC | src/DIRAC/FrameworkSystem/scripts/dirac_populate_component_db.py | Python | gpl-3.0 | 8,229 | [
"DIRAC"
] | cc95f9aa94327be01fb8117faf1f752fa9d49835ef970c0f80d17343041da750 |
import numpy as np
def generate_visits(Nvisits=900, tspan=10, stat=False,
seasonscale=365./5):
'''
Use some very crude approximations for how visits will be spaced out:
- Survey starts at midnight, time = 0.0
- Can only observe at night, time > 0.75 | time < 0.25
- Exposures a... | RuthAngus/LSST-max | code/LSSToy.py | Python | mit | 1,472 | [
"Gaussian",
"VisIt"
] | ca0fb6f2bb9d4dd2df95434b5715327b061276beb4360b45cd2dee9f36abea34 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kannon92/psi4 | psi4/driver/qcdb/vecutil.py | Python | gpl-2.0 | 11,265 | [
"Psi4"
] | 820f3b880947a46f1c61817df9299d4ca6adb51dabf0096ff64f60f743a76abc |
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
from enum import Enum
import numpy as np
from sklearn import linear_model
from sklearn.metrics import log_loss
from collections import namedtuple
FitLayerData = namedtuple('FitLayerData',
['sublayer', 'train_x', 'train_y'... | kvoyager/GmdhPy | gmdhpy/neuron.py | Python | mit | 15,781 | [
"NEURON"
] | ddd6062192be2f75857f0698a3df9907d3ae11b3330a3cc614cb6d214158b339 |
#
# The OpenDiamond Platform for Interactive Search
#
# Copyright (c) 2011-2012 Carnegie Mellon University
# All rights reserved.
#
# This software is distributed under the terms of the Eclipse Public
# License, Version 1.0 which can be found in the file named LICENSE.
# ANY USE, REPRODUCTION OR DISTRIBUTION OF T... | cmusatyalab/opendiamond | opendiamond/protocol.py | Python | epl-1.0 | 3,805 | [
"BLAST"
] | f5817d8763b1d53aff6619888d590639246c637621a4b85450ba8f0c3c282e69 |
"""Bayesian Gaussian Mixture Models and
Dirichlet Process Gaussian Mixture Models"""
from __future__ import print_function
# Author: Alexandre Passos (alexandre.tp@gmail.com)
# Bertrand Thirion <bertrand.thirion@inria.fr>
#
# Based on mixture.py by:
# Ron Weiss <ronweiss@gmail.com>
# Fabian Ped... | ankurankan/scikit-learn | sklearn/mixture/dpgmm.py | Python | bsd-3-clause | 30,538 | [
"Gaussian"
] | 1390d004d7b6feb1058636baa31251211f19da9be25fd43a136f48fcdf2f76fc |
from __future__ import absolute_import
from . import tempdir as td
import os.path
import py.path
import pybol
import pytest
import numpy as np
import MDAnalysis as mda
from MDAnalysis.exceptions import NoDataError, SelectionError
from gromacs.utilities import in_dir
from ..analysis.ensemble import Ensemble, Ens... | Becksteinlab/MDPOW | mdpow/tests/test_ensemble.py | Python | gpl-3.0 | 6,424 | [
"Gromacs",
"MDAnalysis"
] | 949bda64fb5eb4e58060e45930a23b3a3051cc9e4b70bb053f57c30df5908f7f |
"""Test analytical calculation of gradients of the target function versus finite
difference calculations"""
from __future__ import annotations
def test(args=[]):
# Python and cctbx imports
import random
from math import pi
from cctbx.sgtbx import space_group, space_group_symbols
# We will set ... | dials/dials | tests/algorithms/refinement/test_finite_diffs.py | Python | bsd-3-clause | 9,921 | [
"CRYSTAL"
] | 582392a09f37c1da11476e0ab49f62ff717896ef13f1ba0917cf2aeec3e72f66 |
# Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | alexandrul-ci/robotframework | src/robot/output/console/dotted.py | Python | apache-2.0 | 3,228 | [
"VisIt"
] | 8b6c03d1f81051a58f4e7ee681377b797adaacb11608a78022d3837495536e85 |
# encoding: utf-8
"""
Tests for IPython.utils.traitlets.
Authors:
* Brian Granger
* Enthought, Inc. Some of the code in this file comes from enthought.traits
and is licensed under the BSD license. Also, many of the ideas also come
from enthought.traits even though our implementation is very different.
"""
#---... | alephu5/Soundbyte | environment/lib/python3.3/site-packages/IPython/utils/tests/test_traitlets.py | Python | gpl-3.0 | 29,996 | [
"Brian"
] | 804633b8769280e14293cdaa7d810be9ee27a39ccb6d26d90b1e98ae18ddf585 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkProgrammableGlyphFilter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkProgrammableGlyphFilter.py | Python | bsd-3-clause | 520 | [
"VTK"
] | ed03d7bf495ddcab40c9e1bf9055c74752a3e07bc97e83e0dff3eae133422ab6 |
"""Contains the Game class which is the Machine Mode that actually runs and
manages an the game in a pinball machine.
Note that in the Mission Pinball Framework, a distinction is made between a
*game* and a *machine*. A *game* refers to a game in progress, whereas a
*machine* is the physical pinball machine.
"""
# ga... | qcapen/mpf | mpf/modes/game/code/game.py | Python | mit | 20,544 | [
"Brian"
] | a634560e883ae214f835e2da1a30c60de99f0a7acb3337ccd0de51f562f09985 |
'''
Example script illustrating plotting of PLY data using Mayavi. Mayavi
is not a dependency of plyfile, but you will need to install it in order
to run this script. Failing to do so will immediately result in
ImportError.
'''
from argparse import ArgumentParser
import numpy
from mayavi import mlab
from plyfile ... | dranjan/python-plyfile | examples/plot.py | Python | gpl-3.0 | 1,239 | [
"Mayavi"
] | bba95fb4b7bb2a7dad24282c97322a68d78d83eba74a275529e595894c80a8e7 |
#
# 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 l... | KKleinbeck/Espresso-Personal | testsuite/python/particle.py | Python | gpl-3.0 | 5,092 | [
"ESPResSo"
] | d43c161c1e49a21dae40620954924a00823924356901d4c97e599645a6f0790b |
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import messages
from crystal_dashboard.api import policies as api
from crystal_dashboard.dashboards.crystal import common
from crystal_dashboard.das... | Crystal-SDS/dashboard | crystal_dashboard/dashboards/crystal/policies/access_control/forms.py | Python | gpl-3.0 | 6,503 | [
"CRYSTAL"
] | 20aa044c4109611615ac516b7a07dd7dd05fa3a5ec220608fa1d0782d5888ffc |
"""Test OpenBabel executables from Python
Note: Python bindings not used
On Windows or Linux, you can run these tests at the commandline
in the build folder with:
"C:\Program Files\CMake 2.6\bin\ctest.exe" -C CTestTestfile.cmake
-R pytest -VV
You could also "chdir"... | torcolvin/openbabel | test/testsmartssym.py | Python | gpl-2.0 | 4,251 | [
"Open Babel"
] | 331995a719ce4280e71c3e3d56a9b2dd24281a4994da4c8f6568773f74cc1d97 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
# !! This is the configuration of Nikola. !! #
# !! You should edit it to your liking. !! #
# ! Some settings can be different in different languages.
# ! A comment stating (translatable) is used to denote those.
# ! There are two ways to... | dongweiming/divingintoipynb_nikola | conf.py | Python | mit | 37,016 | [
"VisIt"
] | efe2779745e030962577a975889ec734f913068b405b9d14f6630f21f933a79b |
# -*- coding: utf-8 -*-
# This file is part of Invenio Demosite.
# Copyright (C) 2012, 2013 CERN.
#
# Invenio Demosite 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 ... | mvesper/invenio-demosite | invenio_demosite/testsuite/regression/test_workflows.py | Python | gpl-2.0 | 24,610 | [
"Galaxy"
] | 3d0809d722a852ef3555e9b7a73906bb5eb7e7805a14a40bee4349e0bbfe3d94 |
# encoding:utf-8
"""
:synopsis: views diplaying and processing main content post forms
This module contains views that allow adding, editing, and deleting main textual content.
"""
import datetime
import logging
import os
import os.path
import random
import sys
import tempfile
import time
from django.shortcuts import ... | PearsonIOKI/compose-forum | askbot/views/writers.py | Python | gpl-3.0 | 35,666 | [
"VisIt"
] | 81ba7a180f9f91966d1d0085edf1cdc1d705eb6ad82eb5ec6ec3fbea548344bf |
''' LogStatusAction
'''
__RCSID__ = '$Id$'
from DIRAC import S_ERROR
from DIRAC.ResourceStatusSystem.Client.ResourceStatusClient import ResourceStatusClient
from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction import BaseAction
class LogStatusAction(BaseAction):
'''
Action that registers on the da... | chaen/DIRAC | ResourceStatusSystem/PolicySystem/Actions/LogStatusAction.py | Python | gpl-3.0 | 2,480 | [
"DIRAC"
] | f70b7f36d542a400d3773272783467205086e34b49489c466f87c078dcd9d6eb |
########################################################################
# File : ComputingElement.py
# Author : Stuart Paterson, A.T.
########################################################################
""" The Computing Element class is a base class for all the various
types CEs. It serves several purpos... | chaen/DIRAC | Resources/Computing/ComputingElement.py | Python | gpl-3.0 | 19,132 | [
"DIRAC"
] | 80974408ea3db1c6ab39e8be09cf2d862d014ed3038f6b350fd34ae27656b672 |
"""
KeepNote
Editor widget in main window
"""
#
# KeepNote
# Copyright (c) 2008-2009 Matt Rasmussen
# Author: Matt Rasmussen <rasmus@mit.edu>
#
# 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... | gemagomez/keepnote | keepnote/gui/editor_text.py | Python | gpl-2.0 | 14,584 | [
"VisIt"
] | 5a7aa2625d316c735427c78e9d5fbd68c9dd906178f2f07001b096bcd233c756 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import pickle
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.periodic_table import Element, Specie, DummySpecie, get_el_sp
... | xhqu1981/pymatgen | pymatgen/core/tests/test_periodic_table.py | Python | mit | 11,711 | [
"pymatgen"
] | a00d8d0df99328b5d62f015516f030eddfc23c174aaf44985e3367b79a836618 |
#
# 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 l... | ohickey/espresso | samples/python/error_checking.py | Python | gpl-3.0 | 1,011 | [
"ESPResSo"
] | c666294267c2a696cc82984b5371b128d4f1f8140bc0d6e8ad000a1ec4a14745 |
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
import doctest
import unittest
from rdkit.Chem import inchi
from rdkit.TestRunner import redirect... | rvianello/rdkit | rdkit/Chem/MolKey/UnitTestMolKey.py | Python | bsd-3-clause | 5,286 | [
"RDKit"
] | bc03dfa456be96c5d155652e4553aba5944cf4ab4b2192cb9ddd52b871650bd7 |
#!/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/gto/test/test_ft_ao.py | Python | apache-2.0 | 6,757 | [
"PySCF"
] | 991c29eec1a9d626702edfcbf91a5d40af0f8bcfec3a9fc932b8dad799663146 |
"""
Example of a Gaussian distribution
----------------------------------
Figure 3.8.
This shows an example of a gaussian distribution with various parameters.
We'll generate the distribution using::
dist = scipy.stats.norm(...)
Where ... should be filled in with the desired distribution parameters
Once we have ... | gtrichards/PHYS_T480 | code/fig_gaussian_distribution.py | Python | mit | 2,433 | [
"Gaussian"
] | 732e471adfcae68d79a4e49f9dc79f6766bbcf7c53644610dbf552bbc42f9c41 |
# -*- coding: utf-8 -*-
{
'(Recipient)': '(Empfänger)',
"'Cancel' will indicate an asset log entry did not occur": "'Abbrechen' zeigt an, dass ein Asset Log Eintrag nicht eingetreten ist",
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group loc... | flavour/ifrc_qa | languages/de.py | Python | mit | 303,278 | [
"VisIt"
] | 1b7cdb264de06f904ad3952780f9afda2308ddcc1f2d22a767c6f2892f75d45a |
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
import scipy.ndimage as ndim
import scipy.misc as spm
import random,sys,time,os
import datetime
import multiprocessing as multi
import ctypes
import logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
#importing s... | rantonels/starless | tracer.py | Python | gpl-3.0 | 30,291 | [
"Gaussian"
] | efa683b271628c563dd2508d23d71692c2b62e5f324940a50cdce26f7b739608 |
# texttable - module for creating simple ASCII tables
# Copyright (C) 2003-2015 Gerome Fournier <jef(at)foutaise.org>
#
# 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.... | hanak/artshow-keeper | artshowkeeper/common/texttable.py | Python | gpl-3.0 | 20,175 | [
"Brian"
] | 2ac9ca232d5b7a2cbbb7816c5dc33e378308fb6d0b2aa75240e548e82d63b1df |
""" A viewer for mlab scene. Adds a button to open up the engine.
"""
# Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
# Standard library imports
from os.path import join
# Enthought library imports
from tvtk.tools.ivtk import IVTK
from t... | dmsurti/mayavi | mayavi/core/ui/mayavi_scene.py | Python | bsd-3-clause | 3,226 | [
"Mayavi"
] | 34087cddb57b42ebbc3c7c034e0e940443c0c55fa3ec3a8385812be2a321958c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.