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 |
|---|---|---|---|---|---|---|---|
# Copyright 2011 Rackspace
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# Copyright 2013 IBM Corp.
# 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
#
# ... | eharney/nova | nova/tests/network/test_manager.py | Python | apache-2.0 | 131,658 | [
"FEFF"
] | b4dd45f0f2f2bc2c1c2d9ae52bde3e37b34b41bd57a1b96690b101467c6402e5 |
import logging
import numpy as np
from neon.util.argparser import NeonArgparser
from neon.backends import gen_backend
from neon.initializers import Constant, Gaussian
from neon.layers import Conv, Pooling, GeneralizedCost, Affine
from neon.optimizers.optimizer import MultiOptimizer, GradientDescentMomentum
from neon.tr... | cs-chan/fuzzyDCN | prune_neon/mnist_cnn_fp.py | Python | bsd-3-clause | 2,803 | [
"Gaussian"
] | c740a84770011187164b8f7a9adfade8a277285d4962eba588fb7bb907d79cf3 |
from pyibex import *
from pyibex.paving import *
from pyibex.sepvisitor import *
from vibes import vibes
X0 = IntervalVector(2, [-5, 5])
sep = SepFwdBwd(Function("x[2]", "x[0]^2 + x[1]^2"), Interval(-oo, 4))
P = SepPaving(X0, sep, 0.1)
vibes.beginDrawing()
vibes.newFigure("test")
P.visit(SepToVibes("test"))
vibes.ne... | benEnsta/pyIbex | pyibex/examples/example_paving_transform.py | Python | lgpl-3.0 | 461 | [
"VisIt"
] | 67df21e90441de4b172db530a31e212a98bad99df360bf5517f083353dd2cbf8 |
"""
This file demonstrates a bokeh applet, which can be viewed directly
on a bokeh-server. See the README.md file in this directory for
instructions on running.
ROC Curve example
=================
This example is a ROC curve where the data is generated to show
AUC (Area Under the Curve). The threshold may be set, and... | brianray/bokeh_roc_slider | roc/main.py | Python | apache-2.0 | 6,563 | [
"Brian"
] | b0657ef2e88042adf17f5dc1038b1bbe1900fc0d4cf0adba5eb49f21676f347f |
import math
import numpy
from chainer import cuda
from chainer import function
from chainer.utils import array
from chainer.utils import type_check
class Bilinear(function.Function):
"""Bilinear function, an extension of Linear function.
``Bilinear`` function takes two input vectors and outputs one vector... | 1986ks/chainer | chainer/functions/connection/bilinear.py | Python | mit | 9,254 | [
"Gaussian"
] | e0694408f00c9c48b438a6f3cf2645e492b6fe56171c45754fec2af1aa753105 |
"""
init.py
Creates a network of 10000 principal neurons (PC)
To execute in Ipython
%run init.py
"""
import numpy as np
from scipy.stats import norm
from neuron import h, gui
from Cell_builder import BCbuilder, PCbuilder
np.random.seed(10)
h.load_file('stdrun.hoc') # need for h.tstop
h.tstop = 150 # in ms
h.... | JoseGuzman/NeuralNetworks | PFCNetwork/init.py | Python | gpl-2.0 | 3,783 | [
"NEURON"
] | 85e497a23d5ca7cd2bf982113599e29f4d2c89533e7455f768f8c8979cf31fd3 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | mistercrunch/panoramix | superset/viz.py | Python | apache-2.0 | 108,737 | [
"VisIt"
] | 04aa7e561bdd5a98de37d9fb1e6851cab9460425f89f5b83bed8a561978fda44 |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
import frappe.utils
from frappe.utils import cstr, flt, getdate, comma_and
from frappe import _
from frappe.model.mapper import get_m... | rohitwaghchaure/New_Theme_Erp | erpnext/selling/doctype/sales_order/sales_order.py | Python | agpl-3.0 | 14,091 | [
"VisIt"
] | 4b95f9bbe0bf30cbd4c59d83168dba39144da05fe8d6e2ef71f624dda5a54a4e |
##SETUP
import os
import sys
import posix
sys.path.append(os.path.join(posix.environ['HOME'], 'mlprojects', 'collab', 'python'))
sys.path.append(os.path.join(posix.environ['HOME'], 'mlprojects', 'mltools', 'python'))
sys.path.append(os.path.join(posix.environ['HOME'], 'mlprojects', 'swig', 'src'))
##ENDSETUP
import pd... | lawrennd/collab | python/collab.py | Python | bsd-3-clause | 56,623 | [
"Gaussian"
] | ffde184b36c62f09b364dc98fe29f21b1746fcc3957e0b4d17597279f5839b7d |
# Author: Travis Oliphant, 2002
#
# Further updates and enhancements by many SciPy developers.
#
from __future__ import division, print_function, absolute_import
import math
import warnings
from collections import namedtuple
import numpy as np
from numpy import (isscalar, r_, log, around, unique, asarray,
... | haudren/scipy | scipy/stats/morestats.py | Python | bsd-3-clause | 95,416 | [
"Gaussian"
] | 0da1496d4a793201e65a252f29b65744d09d8868904419b4e22966780451da34 |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | KaiSzuttor/espresso | testsuite/python/cellsystem.py | Python | gpl-3.0 | 1,784 | [
"ESPResSo"
] | bd4bf32ab6fe3c0bf3cd465b1b4bb48dc7e621a877d41a9baf96afe7d3a81979 |
"""
fitpack --- curve and surface fitting with splines
fitpack is based on a collection of Fortran routines DIERCKX
by P. Dierckx (see http://www.netlib.org/dierckx/) transformed
to double routines by Pearu Peterson.
"""
# Created by Pearu Peterson, June,August 2003
from __future__ import division, print_function, abs... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py | Python | agpl-3.0 | 55,068 | [
"Gaussian"
] | 1514d13cd96c683a6b64f0f999a0e4af86f61646e48a0ce29d9b69f8e84377cc |
#! /usr/bin/env python2
"""
I/O script to save and load the data coming with the MPI-Sintel low-level
computer vision benchmark.
For more details about the benchmark, please visit www.mpi-sintel.de
CHANGELOG:
v1.0 (2015/02/03): First release
Copyright (c) 2015 Jonas Wulff
Max Planck Institute for Intelligent System... | gengshan-y/VCN | utils/sintel_io.py | Python | mit | 6,685 | [
"VisIt"
] | 253febcd4acd920100df2048a4d2142faf6aa8d459fe821d36f879fd2ebcc622 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import os
import unittest
import pymatgen
from pymatgen.analysis.cost.cost import CostDBCSV, CostAnalyzer, CostDBElements
module_dir = os.path.join(os.path.dir... | matk86/pymatgen | pymatgen/analysis/cost/tests/test_cost.py | Python | mit | 1,610 | [
"pymatgen"
] | 9929f668a13f675b0a3d8bde9878145806992867887acaac6929e3619f28364b |
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import deepdish as dd
from SimPEG import Utils, Mesh
import tarfile
import os
def download_and_unzip_data(
url="https://storage.googleapis.com/simpeg/em_examples/tdem_inductivesource/tdem_inductivesource.tar"
):
"""
Download the data from... | geoscixyz/em_examples | em_examples/TDEMInductiveSource.py | Python | mit | 12,604 | [
"VMD"
] | 52113c07666ac32c4869a53ad8ecfd711aff270dac11f07b9ad7777433084ebf |
"""
Connection method classes for the neuron module
:copyright: Copyright 2006-2016 by the PyNN team, see AUTHORS.
:license: CeCILL, see LICENSE for details.
"""
from pyNN.neuron import simulator
from pyNN.connectors import AllToAllConnector, \
OneToOneConnector, \
... | anupkdas-nus/global_synapses | pyNN-dispackgaes/neuron/connectors.py | Python | gpl-3.0 | 1,008 | [
"NEURON"
] | 0002fc03f22f9d0707a56a24cd385eadd774d13664b427c97ec66043695f313d |
import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | evanbiederstedt/RRBSfun | trees/chrom_scripts/normal_chr17.py | Python | mit | 25,844 | [
"MCell"
] | 6fc4a61b55465705fa72d85d37dd02a4175545ee93ee4ece3d1842cb74a5f724 |
import enum
FGNodeType = enum.Enum('FGNodeType','component libraryfunction librarymethod input output assignment literal forward unknown')
class FGNode(object):
def __init__(self, nodeid, nodetype, ref=None, inputs=[]):
self.nodeid = nodeid
self.type = nodetype
self.ref = ref
sel... | mc-hammertimeseries/cs207project | pype/fgir.py | Python | mit | 4,578 | [
"VisIt"
] | f146abb702c8099d3170ea0f8deffb3a16c5de8694bddddd0c07a242c78aae32 |
##
# Copyright 2009-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | ULHPC/modules | easybuild/easybuild-easyblocks/easybuild/easyblocks/w/wps.py | Python | mit | 14,921 | [
"NetCDF"
] | 246de70728856be0545217b6d1a35f450a65de5b2537175ff4f89be2d7965688 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Simple volume rendering example.
reader = vtk.vtkSLCReader()
reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/sphere.slc")
reader.Update()
# Create transfer functions for opacity... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Volume/Testing/Python/TestLODProp3D.py | Python | gpl-3.0 | 2,484 | [
"VTK"
] | 74702d179bc43f41c3d648afd512176fce02e8431a4df51d7ba7640d46c9a806 |
'''Generates Python code from intermediate representation.
Uses byteplay (by Noam Raphael) for the low-level assembly of
Python bytecode
'''
from __future__ import absolute_import
from __future__ import with_statement
import byteplay as B
import itertools
from ..runtime.ctxsingleton import CtxSingleton
from ..... | matthagy/Jamenson | jamenson/compiler/codegen.py | Python | apache-2.0 | 20,492 | [
"VisIt"
] | 4876961189193816e1dcaf4cb37d2f73e5795fbfbd934f1cbf414eb00390bf86 |
#!/usr/bin/env python
#Processes uploads from the user.
# WARNING: Changes in this tool (particularly as related to parsing) may need
# to be reflected in galaxy.web.controllers.tool_runner and galaxy.tools
import urllib, sys, os, gzip, tempfile, shutil, re, gzip, zipfile, codecs, binascii
from galaxy import eggs
# n... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/tools/data_source/upload.py | Python | gpl-3.0 | 19,420 | [
"Galaxy"
] | c312f910701344752ed1d34d29028cf368a4642b60a20746eca77c3acfa43bde |
"""
Statistics (:mod:`skbio.stats`)
===============================
.. currentmodule:: skbio.stats
This package contains various statistical methods, including ordination
techniques and distance matrix-based statistics.
Subpackages
-----------
.. autosummary::
:toctree: generated/
distance
ordination
s... | Kleptobismol/scikit-bio | skbio/stats/__init__.py | Python | bsd-3-clause | 1,067 | [
"scikit-bio"
] | d1ede3f056c2e42dc6eb04643af37f921c61d1fc6dddd0c414da3905e95c8e26 |
# 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-research/computation-thru-dynamics | experimental/lfads_gmm/lfads.py | Python | apache-2.0 | 30,206 | [
"Gaussian"
] | 426fa67d7bf9fd3bfdf2d5741505e28fb50bcd42651ada6b08a72076098b129d |
##
# Copyright 2013 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://w... | torbjoernk/easybuild-easyblocks | easybuild/easyblocks/f/foldx.py | Python | gpl-2.0 | 3,026 | [
"FoldX"
] | 30244f91f9b959480a073a49238b9ffa1b9a8b6153efd70c069c7f301dbca188 |
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from scipy import ndimage
from scipy.interpolate import UnivariateSpline
from scipy.optimize import leastsq
import abel
#########################################################################
# circularize.py
#
# Image circularization by fol... | stggh/PyAbel | abel/tools/circularize.py | Python | mit | 12,563 | [
"Gaussian"
] | 1bb073d2fc69d41d1d174be077b4f819c300732b36f4b5d94eaa32e8ff03e541 |
from Bio.config.FormatRegistry import FormatObject, FormatGroup
search = FormatGroup(
name = "search",
multirecord = 0,
)
blast = FormatGroup(
name = "blast",
filter = "Bio.expressions.blast.ncbiblast.blast_filter",
multirecord = 0,
)
search.add(blast)
blastp = FormatGroup(
name = "blastp",
... | dbmi-pitt/DIKB-Micropublication | scripts/mp-scripts/Bio/formatdefs/search.py | Python | apache-2.0 | 2,747 | [
"BLAST"
] | b16f14164125ce6841a0a7650545a0c93a7e9cbf66470ee1a34fc028ee50ea40 |
"""Gaussian Mixture Model."""
# Author: Wei Xue <xuewei4d@gmail.com>
# Modified by Thierry Guillemot <thierry.guillemot.work@gmail.com>
# License: BSD 3 clause
import numpy as np
from scipy import linalg
from .base import BaseMixture, _check_shape
from ..externals.six.moves import zip
from ..utils import check_arra... | devanshdalal/scikit-learn | sklearn/mixture/gaussian_mixture.py | Python | bsd-3-clause | 27,504 | [
"Gaussian"
] | a7fe331ac5a44a7abee2c4e6f3ed1d117dc71056df93a5547e822c54ec5b171e |
# -*- coding: utf-8 -*-
"""
equip.analysis.graph.traversals
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DFS/BFS and some other utils
:copyright: (c) 2014 by Romain Gaucher (@rgaucher)
:license: Apache 2, see LICENSE for more details.
"""
from ...utils.log import logger
from .graphs import Edge
class EdgeVisitor(obje... | neuroo/equip | equip/analysis/graph/traversals.py | Python | apache-2.0 | 2,177 | [
"VisIt"
] | c47f56b27563968d5a6e2f2ada4f0756083faf39874e770b4ac16409d9130546 |
#!/usr/bin/env python
"check build refs"
#
# Copyright (C) 2011-2017 ABINIT Group (Yann Pouillon)
#
# This file is part of the ABINIT software package. For license information,
# please see the COPYING file in the top-level directory of the ABINIT source
# distribution.
#
from __future__ import unicode_literals, divisi... | jmbeuken/abinit | abichecks/scripts/check-build-refs.py | Python | gpl-3.0 | 3,422 | [
"ABINIT"
] | 8e839e7b978459ad1af3a37891a11aee98241407080ccee32c79278c06f5e199 |
# Copyright 2012, 2013 The GalSim developers:
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
#
# GalSim 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... | mardom/GalSim | examples/demo1.py | Python | gpl-3.0 | 5,788 | [
"Galaxy",
"Gaussian"
] | 8bf7b55d97e02913b681e18735e68cb19b0d7904aee9ddc9b1b3692c35a8b0ab |
"""
Test of the classical LM model for language modelling
"""
from groundhog.datasets import LMIterator
from groundhog.trainer.SGD_momentum import SGD as SGD_m
from groundhog.trainer.SGD import SGD
from groundhog.mainLoop import MainLoop
from groundhog.layers import MultiLayer, \
RecurrentMultiLayer, \
Re... | neozhangthe1/coverage_model | tutorials/DT_RNN_Tut_Ex_Skeleton.py | Python | bsd-3-clause | 15,621 | [
"Gaussian"
] | 1c0e7ea17903f185ae77aeb425fd670725614fc15e474ede0fa597956baebf1f |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-dlp | scripts/fixup_dlp_v2_keywords.py | Python | apache-2.0 | 8,539 | [
"VisIt"
] | fc2b5f548db36b3d6268b9b37940fcedaf8ea1b3e6b928f42dd6a84ab2cddf3d |
#!/usr/bin/env python
"""Parsers for blast, psi-blast and blat.
"""
from cogent.parse.record_finder import LabeledRecordFinder, \
DelimitedRecordFinder, never_ignore
from cogent.parse.record import RecordError
from string import strip, upper
__author__ = "Micah Hamady"
__copyright__ = "Copyright 2007-2012, The Cog... | sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/cogent/parse/blast.py | Python | mit | 17,304 | [
"BLAST"
] | 0632457edfb05e51400842c2e90fecd65885debdc8d8dae74851245f51bcd536 |
# Version: 0.15+dev
"""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, and pypy
* [![Latest Version]
(https... | pelson/conda-execute | versioneer.py | Python | bsd-3-clause | 71,912 | [
"Brian"
] | 5d6d67813c9154f8a74c119a20eeee61be22ee55697d10e16b8e6db28e15798f |
# this program corresponds to special.py
### Means test is not done yet
# E Means test is giving error (E)
# F Means test is failing (F)
# EF Means test is giving error and Failing
#! Means test is segfaulting
# 8 Means test runs forever
### test_besselpoly
### test_mathieu_a
### test_mathieu_even_coef
##... | ales-erjavec/scipy | scipy/special/tests/test_basic.py | Python | bsd-3-clause | 122,406 | [
"Elk"
] | 6184da1f9bc344c7da1e1af0e6ea6cf53d1636ac6c1a68218e66f0e8c0c09b2b |
from __future__ import print_function, division
from sympy.core import S, sympify, Dummy, Mod
from sympy.core.function import Function, ArgumentIndexError
from sympy.core.logic import fuzzy_and
from sympy.core.numbers import Integer, pi
from sympy.core.relational import Eq
from sympy.ntheory import sieve
from math i... | kaichogami/sympy | sympy/functions/combinatorial/factorials.py | Python | bsd-3-clause | 27,608 | [
"VisIt"
] | d8493ea81fe5d106ecdfce205355a295b0c078d996bc73619cebb31c1e70010c |
import sys
import os
from pytest import fixture
from pkg_resources import resource_filename
from nchelpers import CFDataset
from .helpers.nc_file_specs import create_fake_nc_dataset
@fixture
def cwd():
return os.getcwd()
@fixture
def raw_dataset(request, cwd):
"""Return a dataset, based on request param.
... | pacificclimate/nchelpers | tests/conftest.py | Python | gpl-3.0 | 2,435 | [
"NetCDF"
] | 967e70d16408e6b51a176df6741a16980297275be1e3a96739a8000a3ffc42e7 |
# compiler.py
# Copyright (C) 2005, 2006, 2007 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""SQL expression compilation routines and DDL implementations."""
import string, re
from sqlalchemy i... | santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/SQLAlchemy-0.4.0-py2.5.egg/sqlalchemy/sql/compiler.py | Python | bsd-3-clause | 42,982 | [
"VisIt"
] | da4781b5418243a8a9b7378f5297d8cac6a030aa2252e23b666203dde1e9fef9 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | amjames/psi4 | psi4/driver/qcdb/basislistother.py | Python | lgpl-3.0 | 23,222 | [
"Psi4"
] | 62b53ff21f2953f1165f7de13e6b1db5670452225cef47f7cfc5ac3353f57227 |
# -*- coding: utf-8 -*-
"""QGIS Unit tests for edit widgets.
.. note:: 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.
"""
__au... | drnextgis/QGIS | tests/src/python/test_qgsrelationeditwidget.py | Python | gpl-2.0 | 12,071 | [
"Galaxy"
] | 4b2edeb44945f1861b2be381cba74486cbd2d5282249eea4246c17901ea4b808 |
#!@pathexecpython@
'''
This python script accepts .csv data set, .bms configurations, and output directory then produces statistical analysis results from the processed data
'''
from optparse import OptionParser
import csv
import os,os.path,re,sys
import system
def countLines(files):
lines = []
for file in... | NIRALUser/RodentThickness | Applications/RodentThickness/run.py | Python | gpl-3.0 | 38,087 | [
"VTK"
] | 961f37a9add6689119a03cdc0ec7e904b3f221f135fb20945895249acd214bb7 |
'''
functions common to fel decks
'''
# import scipy.special as sf
# import scipy.integrate as integrate
# from numpy.polynomial.chebyshev import *
import os
import time
import numpy as np
from numpy import inf, complex128, complex64
from copy import copy, deepcopy
import ocelot
from ocelot import *
from ocelot.common... | iagapov/ocelot | utils/xfel_utils.py | Python | gpl-3.0 | 49,495 | [
"Gaussian"
] | d22d91446912b24cdc4f1dceb490dc4e026ede7bba9c7b19aa06dc5cbcacc1c5 |
# Copyright 2009-2012 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Unit tests for Bio.SeqIO.index(...) and index_db() functions."""
try:
import sqlite3... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_SeqIO_index.py | Python | gpl-2.0 | 26,849 | [
"Biopython"
] | c242beafdcae1f2f6987093241f6b19181154fccf2e8befec15da7ad60499f21 |
# -*- coding: utf-8 -*-
"""Fake data generator.
To use:
1. Install fake-factory.
pip install fake-factory
2. Create your OSF user account
3. Run the script, passing in your username (email).
::
python -m scripts.create_fakes --user fred@cos.io
This will create 3 fake public projects, each with 3 fake con... | monikagrabowska/osf.io | scripts/create_fakes.py | Python | apache-2.0 | 19,612 | [
"Galaxy"
] | 0cca487c4e5e17562436339a71f814720fb98f3897b2aecb21c28430ccd2e27d |
#!/usr/bin/env python
################################################################################
#
# pynex.py
#
# Usage: pynex.py preferences.in
#
# Contents of prefs file (see more detail below).
# seed - the base seedname of the CASTEP calculation.
# list - file containing the list of atom identifiers.
# tran... | HSINWEI/physics | python/pynex.py | Python | gpl-3.0 | 9,104 | [
"CASTEP",
"Gaussian"
] | 2625c7df8073bbd66ea5ebc1a9a9f1a7c93910e6425b620ef130abd09fb270c2 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'OutboundMessage.site'
db.add_column(u'nuntium_outboundmes... | TEDICpy/write-it | nuntium/migrations/0064_add_site_to_outbound_message.py | Python | gpl-3.0 | 23,595 | [
"VisIt"
] | b8d9556733f50d36eff8a7c956f4322d6100b0544d577388b2a87156615592aa |
import unittest
import os
import numpy as np
from pymicro.crystal.microstructure import Orientation, Microstructure
from pymicro.crystal.lattice import Symmetry, Lattice, CrystallinePhase, HklPlane, HklDirection, SlipSystem
from config import PYMICRO_EXAMPLES_DATA_DIR
class MicrostructureTests(unittest.TestCase):
... | heprom/pymicro | pymicro/crystal/tests/test_Microstructure.py | Python | mit | 18,793 | [
"CRYSTAL"
] | a0b67f8f8cdd8beeb1c399192696c33203c0c1923b42573d66d3b69dcf928fea |
""" TopErrorMessagesReporter produces a list with the most common errors
injected in the SystemLoggingDB and sends a notification to a mailing
list and specific users.
"""
__RCSID__ = "$Id$"
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base.AgentModule import AgentModule
from DIRAC.ConfigurationSystem.C... | andresailer/DIRAC | FrameworkSystem/Agent/TopErrorMessagesReporter.py | Python | gpl-3.0 | 5,339 | [
"DIRAC"
] | 80fe02373d20f613e14fa8a16af114ff51a4cd4ac4f559f8e0da982da47384c2 |
'Brian\'s mother: He\'s not the Messiah. He\'s a very naughty boy!'
| SeraphineThePanda/SL_PythonCourse | SL_PythonCourse/src/Strings/strings2.py | Python | gpl-3.0 | 69 | [
"Brian"
] | 2926d20c3d01bfc8f0366956189bf33a613002aeffb80e1d5d5f05a959d18ed6 |
# -*- coding: utf-8 -*-
#
# PyRabbit documentation build configuration file, created by
# sphinx-quickstart on Tue Sep 20 22:48:33 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | bkjones/pyrabbit | docs/conf.py | Python | bsd-3-clause | 7,103 | [
"Brian"
] | ae71b973aba8c44d0ebf8afcad75d4b72cf09248598d188667cc3eeecabbe6ee |
from pysimplesoap.server import SoapDispatcher, SOAPHandler
from ConfigurationServer import ConfigurationServer
import Constants
import random
#Van con valor por defecto xq son opcionales.
def triatgeDispatcher_logic(
ADT_A01=None,
ADT_A03=None,
ADT_A11=None,
ADT_A13=None,
ADT_A31=No... | GabrielReusRodriguez/DummySoapServer | TriatgeWS/TriatgeWS.py | Python | gpl-2.0 | 2,109 | [
"VisIt"
] | dbee4ca3019dbc8fd96d013911afcfec3ddd2f7a3b4e7ffe25d89882d588746a |
# Modified by Francois Malan, LUMC / TU Delft
# Copyright (c) Charl P. Botha, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.
from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor
import wx
import wx.lib.inspection
import vtk
# wxPython 2.8.8.1 wx.aui bugs severely on GTK. See:
# ht... | chrisidefix/devide | modules/viewers/MaskComBinarFrame.py | Python | bsd-3-clause | 12,958 | [
"VTK"
] | efde987bbcd73a12a24565ff6ac08ec407d1c4476e95f5a149780dd107b0bb3d |
""" Test functions for stats module
"""
from __future__ import division, print_function, absolute_import
import warnings
import re
import sys
import pickle
from numpy.testing import (TestCase, run_module_suite, assert_equal,
assert_array_equal, assert_almost_equal, assert_array_almost_equal,
assert_allclose,... | jlcarmic/producthunt_simulator | venv/lib/python2.7/site-packages/scipy/stats/tests/test_distributions.py | Python | mit | 93,053 | [
"Gaussian"
] | 579b6511b197bca18856248d5805abfe28f43813037da0423d63a4504e00e02a |
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | mlperf/training_results_v0.7 | Google/benchmarks/minigo/implementations/minigo-research-TF-tpu-v4-128/mcts.py | Python | apache-2.0 | 12,216 | [
"VisIt"
] | 9079b681026f25e1ff0c904ff235e93731651489961da5b722b88b6133401055 |
# Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | PAIR-code/saliency | saliency/tf1/blur_ig.py | Python | apache-2.0 | 2,565 | [
"Gaussian"
] | a9489feef38cb1379e82b2df2bd6062f8dc11a34a6f24e4627c7b15ade26e717 |
import re
import os
import logging
import copy
log = logging.getLogger(__name__)
from markdown.inlinepatterns import Pattern
from markdown.util import etree
from MooseCommonExtension import MooseCommonExtension
import MooseDocs
class MooseTextPatternBase(MooseCommonExtension, Pattern):
"""
Base class for pattern ... | joshua-cogliati-inl/moose | python/MooseDocs/extensions/MooseTextPatternBase.py | Python | lgpl-2.1 | 3,365 | [
"MOOSE"
] | 9621101276dae22af0fc975d5ed8dbc68ae1bb0ce9fb706616a4300a4a28ee61 |
import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | evanbiederstedt/RRBSfun | trees/chrom_scripts/normal_chr20.py | Python | mit | 25,844 | [
"MCell"
] | 50f8e3703c6888f0b8d6236b524145fd1d5ae85e2e79374c1c9259e98fadfa52 |
#
# Copyright 2008, 2009 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 t... | LunarLanding/Pythics | pythics/instruments/keithley_2000.py | Python | gpl-3.0 | 18,097 | [
"Brian"
] | 489ea0f4123a436e928421f22959cf762ef5160a7f3c9eccfbfbab203c76adb9 |
import ssl
import imp
import os
import tornado.web
import tornado.httpserver
import tornado.autoreload
import tornado.process
import signal
import sys
import DIRAC
from DIRAC import gLogger, gConfig
from WebAppDIRAC.Core.HandlerMgr import HandlerMgr
from WebAppDIRAC.Core.TemplateLoader import TemplateLoader
from WebA... | zmathe/WebAppDIRAC | Core/App.py | Python | gpl-3.0 | 7,763 | [
"DIRAC"
] | 2632aeb1f9112df62d66c330a68b42fb034aea26b810b9ba6cc5457c43368e67 |
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
########################################################... | ablifedev/ABLIRC | ABLIRC/bin/Clip-Seq/ABLIFE/reads_cluster.py | Python | mit | 11,649 | [
"HTSeq"
] | 47f960875ec984fb90c2ee806f80f9396fdd50ce2e4608b623f47b06f5e6c3c7 |
# coding=utf-8
# 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 app... | corona10/grumpy | grumpy-tools-src/grumpy_tools/compiler/block.py | Python | apache-2.0 | 12,111 | [
"VisIt"
] | dbeb4975808c7fb58929dd1970d7ecaf32213df866debeaf157219f5c0b35c47 |
import optparse
import os
import shutil
import galaxy.model # noqa
def generate_primary_file(output_file):
rval = ['<html><head><title>Galaxy Composite Dataset </title></head><p/>']
rval.append('<div>This composite dataset is composed of the following files:<p/><ul>')
rval.append('<li><a href="Rgenetics... | einon/galaxy-tools | plink2/bbf_to_pbed_converter.py | Python | gpl-3.0 | 1,381 | [
"Galaxy"
] | c3e82e0a0b7cdabb90e948428ce41cda6dfd979f18eede77cb864bb5fb67e61c |
import numpy as np
from ase.units import Hartree
from gpaw.poisson import PoissonSolver, FFTPoissonSolver
from gpaw.occupations import FermiDirac
from gpaw import parsize, parsize_bands, sl_default, sl_diagonalize, \
sl_inverse_cholesky, sl_lcao, buffer_size
class InputParameters(dict):
def __ini... | qsnake/gpaw | gpaw/parameters.py | Python | gpl-3.0 | 7,087 | [
"ASE",
"GPAW"
] | 5766737f141dec4a2cfb682168482d1ea7dce6e2b08bf37c8eacdb9c7d7025b2 |
# ancestor.py - generic DAG ancestor algorithm for mercurial
#
# Copyright 2006 Olivia Mackall <olivia@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import heapq
from .node i... | smmribeiro/intellij-community | plugins/hg4idea/testData/bin/mercurial/ancestor.py | Python | apache-2.0 | 12,806 | [
"VisIt"
] | aa9f4f34f8bee8e1a2bfddc7fef83fd7cecc8f3481b4b0e046958ef37c45fd40 |
# Copyright (C) 2015-2022: The University of Edinburgh
# Authors: Craig Warren and Antonis Giannopoulos
#
# This file is part of gprMax.
#
# gprMax 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 Foundatio... | gprMax/gprMax | tools/inputfile_old2new.py | Python | gpl-3.0 | 21,724 | [
"Bowtie"
] | f799dbf6db7dcd0697b9c6153adc4131626a2b89ce5a93c3071b21649567af34 |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
#
# 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 ... | sam-m888/gprime | gprime/plug/menu/_enumeratedlist.py | Python | gpl-2.0 | 5,086 | [
"Brian"
] | 093a17335759e805c902b9cadfe439ea9ea6ede146b63a42574b2a4d46d69723 |
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@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... | dpassante/ansible | lib/ansible/executor/module_common.py | Python | gpl-3.0 | 64,274 | [
"VisIt"
] | 53e971e374ea2f40f190114c24923d0b9e674ca74702d8d52cb180e3926d831b |
#/usr/bin/python
#
# Copyright 2013 Luke Hackett
# https://github.com/LukeHackett
#
# 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 ... | LukeHackett/python-pi-cookbook | traffic-lights-2/traffic_lights.py | Python | apache-2.0 | 2,946 | [
"Amber"
] | b3fb0688cd8524cda2983ce66d0de36635a1bbd06525031121b1f3ea607dd4d1 |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Script to generate the model card automatically.
"""
from datetime import date, datetime
from parlai.core.metrics im... | facebookresearch/ParlAI | parlai/scripts/generate_model_card.py | Python | mit | 60,325 | [
"VisIt"
] | 589d6c5fef6ccb343d49ee630018bb67c0043753743b7e6e6215ab9dc47ee594 |
# Orca
#
# Copyright 2014 Igalia, S.L.
#
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your o... | GNOME/orca | src/orca/scripts/apps/Thunderbird/spellcheck.py | Python | lgpl-2.1 | 3,279 | [
"ORCA"
] | 0a1789a518fc2648938b90afdc3a0af3115022378edf60925e88bd46b493eb92 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2001 David R. Hampton
# Copyright (C) 2001-2006 Donald N. Allingham
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | arunkgupta/gramps | gramps/gui/plug/quick/__init__.py | Python | gpl-2.0 | 1,346 | [
"Brian"
] | 17e5e72d9544467ad1726e388a88d3e3f6ca843e4aa15c130fa8b152a1e05fbb |
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2007-2014, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. ... | Clyde-fare/cclib | test/testCI.py | Python | lgpl-2.1 | 6,016 | [
"GAMESS",
"Gaussian",
"Jaguar",
"cclib"
] | 35d99d1e038914da96b2f528ee042efc5caabffbbdd5c837ca13c27649c57ef5 |
#!/usr/bin/env python
from moose import *
def traverseTree(node,prefix):
print prefix,node.path
# BUG HERE - instead of /comp_0 .. /comp_3 it prints /sched/cj/t2 .. t5
for i in node.children:
traverseTree(Neutral(i), prefix+' ')
def traverseHierarchy(node, prefix):
hierarchy = []
hierarchy.append(node)
whil... | BhallaLab/moose-thalamocortical | pymoose/TestPyMoose.py | Python | lgpl-2.1 | 998 | [
"MOOSE"
] | bb72389072cd6e3ffd0bff7dcb721b1d11fb05d0dd0f260b5e74e9db71ddf9f8 |
# Copyright 2012, 2013 The GalSim developers:
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
#
# GalSim 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... | mardom/GalSim | examples/demo4.py | Python | gpl-3.0 | 7,451 | [
"Galaxy"
] | 4a5b6adb6a23cb2d576a41524a2074c9596261d39c3c152bb19bfa473f4b8958 |
#!/usr/bin/env python
# Copyright 2014-2019 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/prop/rotational_gtensor/__init__.py | Python | apache-2.0 | 1,103 | [
"PySCF"
] | afbde216c56b059bbd7bc32481d5516a4f5094c3695c044d08661dd300c8b474 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import pytest
import responses
import six
from libsourcemap import Token
from mock import patch
from requests.exceptions import RequestException
from sentry import http
from sentry.lang.javascript.processor import (
discover_sourcemap, fetch_sourcem... | JamesMura/sentry | tests/sentry/lang/javascript/test_processor.py | Python | bsd-3-clause | 20,922 | [
"VisIt"
] | 1b0021301eb9d40d2cc0cb7113cfe80ce8f5c1e59e25f44b104564c089acc217 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Dbcsr(CMakePackage, CudaPackage, ROCmPackage):
"""Distributed Block Compressed Sparse Row ... | LLNL/spack | var/spack/repos/builtin/packages/dbcsr/package.py | Python | lgpl-2.1 | 5,305 | [
"CP2K"
] | 03e10922462b56ae4e3dcabcd45d2b5c2bb79e532724ae0f57f17d75f1988c94 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
#
# Copyright (C) 2015 Bitergia
#
# 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 ve... | sanacl/GrimoireELK | grimoire/elk/supybot.py | Python | gpl-3.0 | 3,066 | [
"Elk"
] | a6ea92a12492b5520efeaf0c6e29975a4b7558f5781ae97e9a29dd1b8caf27a0 |
try:
import requests
except ImportError:
message = ('Missing "requests", please install it using pip:\n'
'pip install requests')
raise ImportError(message)
try:
import json
except ImportError:
message = ('Missing "json", please install it using pip:\n'
'pip install jso... | armab/st2contrib | packs/octopusdeploy/actions/lib/actions.py | Python | apache-2.0 | 2,262 | [
"Octopus"
] | 6ed9af9b606b75ad7b22a13371614ca489e007796fb65c1a56a972347a074cc1 |
import cython
cython.declare(PyrexTypes=object, Naming=object, ExprNodes=object, Nodes=object,
Options=object, UtilNodes=object, ModuleNode=object,
LetNode=object, LetRefNode=object, TreeFragment=object,
TemplateTransform=object, EncodedString=object,
error=ob... | rguillebert/CythonCTypesBackend | Cython/Compiler/FlowControl.py | Python | apache-2.0 | 38,141 | [
"VisIt"
] | d1973401954ed3026297854a701aa7144fcba26b4afb1e113d18c291c6d1df13 |
#!/usr/bin/env python
"""Test of HGH pseudopotential implementation.
This is the canonical makes-sure-nothing-breaks test, which checks that the
numbers do not change from whatever they were before.
The test runs an HGH calculation on a misconfigured H2O molecule, such that
the forces are nonzero.
Energy is compared... | ajylee/gpaw-rtxs | gpaw/test/hgh_h2o.py | Python | gpl-3.0 | 2,951 | [
"ASE",
"GPAW"
] | a1230d46e1ab15ead78d0a5e619201712e5a1a2dc6c2f956bc79e65971ba0fde |
"""Analyze python import statements."""
from __future__ import annotations
import ast
import os
import re
import typing as t
from ..io import (
read_binary_file,
)
from ..util import (
display,
ApplicationError,
is_subdir,
)
from ..data import (
data_context,
)
from ..target import (
TestTa... | mattclay/ansible | test/lib/ansible_test/_internal/classification/python.py | Python | gpl-3.0 | 13,783 | [
"VisIt"
] | 364e2a1afa04b1fd6672fa343d1a1e0429642932d3a20775eadcdbf70857c82a |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2015 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any ... | Vertexwahn/appleseed | scripts/runtestsuite/runtestsuite.py | Python | mit | 18,810 | [
"VisIt"
] | 3ac7e3b2c6979084a3b0d160594ba3c171834982b49d52fc470033109d5f8be2 |
#
# The Python Imaging Library.
# $Id$
#
# standard filters
#
# History:
# 1995-11-27 fl Created
# 2002-06-08 fl Added rank and mode filters
# 2003-09-15 fl Fixed rank calculation in rank filter; added expand call
#
# Copyright (c) 1997-2003 by Secret Labs AB.
# Copyright (c) 1995-2002 by Fredrik Lundh.
#
# See t... | alanjw/GreenOpenERP-Win-X86 | python/Lib/site-packages/PIL/ImageFilter.py | Python | agpl-3.0 | 6,628 | [
"Gaussian"
] | 699dbc57f0ccf781a648391ab0d3ce7c48256bb1b682dcf7115f970efeb1be49 |
# -*- coding: utf-8 -*-
"""
Содержит в себе слои и синапсы. Запускается в текущем процессе.
"""
from openre.domain.base import DomainBase
from openre.vector import Vector
from openre.metadata import Metadata
from types import GeneratorType
from openre.data_types import types
from openre.layer import Layer, LayersVector... | openre/openre | openre/domain/local.py | Python | mit | 37,221 | [
"NEURON"
] | fac32236cd2a95942321acda93546169b979b2cf3663ef81cda348dd4dbed6f0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Lenovo, Inc.
#
# 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
# ... | halberom/ansible | lib/ansible/modules/network/lenovo/cnos_reload.py | Python | gpl-3.0 | 4,975 | [
"VisIt"
] | 4727aa1b29ac215df68716b08184ce0e15cdc2461009c02d517e0a9cef05a9ae |
#########################################################################################
#
# Script to populate the DIRAC FileCatalog with the information from the LFC
# FileCatalog using multiple LFC sources
#
# Author: A.Tsaregorodtsev
# Last Modified: 9.01.2012
#
###################################################... | fstagni/DIRAC | DataManagementSystem/Utilities/lfc_dfc_copy.py | Python | gpl-3.0 | 8,678 | [
"DIRAC",
"exciting"
] | 991d01444c57701426a4d851be39d7b7287c88b4c00607ef5f7676e4af500897 |
# $HeadURL$
import commands
import os
import time
import urllib2
import types
try: import simplejson as json
except ImportError: import json
try:
from hashlib import md5
except:
from md5 import md5
# DIRAC
from DIRAC import S_OK, S_ERROR, gLogger, gConfig, rootPath
from DIRAC.Core.Base.Age... | myco/VMDIRAC | WorkloadManagementSystem/Agent/VirtualMachineMonitorAgent.py | Python | gpl-3.0 | 15,013 | [
"DIRAC"
] | 6401f96a19cee2e622f9504a23f38e37449e397480573829d3a61305c4351194 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/magic/basics/catalogcoverage.py | Python | mit | 5,987 | [
"Galaxy"
] | d5332ddcb715bf47db77fe3ce8abaa919eead6834c4dca82cb779e954ff40439 |
# Copyright (c) 2015-2016 Cara Vinson <ceridwenv@gmail.com>
# Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
from __future__ import print_func... | arju88nair/projectCulminate | venv/lib/python3.5/site-packages/astroid/tests/unittest_transforms.py | Python | apache-2.0 | 8,098 | [
"VisIt"
] | 24c9dc262fdaa62ff8b0ba044ad56ee69c32cee4e58c7178da9dec1dcc50f70a |
# GromacsWrapper: xpm.py
# Copyright (c) 2012 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
:mod:`gromacs.fileformats.convert` --- converting entries of tables
============================================================... | PicoCentauri/GromacsWrapper | gromacs/fileformats/convert.py | Python | gpl-3.0 | 8,140 | [
"Gromacs"
] | a5f19f4071658dfbf69ce957c587fde5d927659d9c3c0e11810647fa2d3d3bcd |
# -*- coding: utf-8 -*-
r"""
Comparison of 1D-bent crystal analyzers
---------------------------------------
Files in ``\examples\withRaycing\06_AnalyzerBent1D``
Rowland circle based analyzers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This study compares simply bent and ground-bent spectrometers utilizing Bragg
and Laue cryst... | kklmn/xrt | examples/withRaycing/06_AnalyzerBent1D/__init__.py | Python | mit | 19,591 | [
"CRYSTAL"
] | df7c9e0fa74828101d0c3604c32fafbb45a40bcfc178e5d148c8ed923d144a6a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# miglib - a part of the MiG scripts
# Copyright (C) 2004-2010 MiG Core Developers lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# ... | heromod/migrid | user-projects/miginterface/miginterface.py | Python | gpl-2.0 | 21,261 | [
"Brian"
] | 0edb4e8c6724a241a69a3a47ea4c48b32115be760825a3220ee53bc6a01239b7 |
# ast.py
# Copyright (C) Mako developers
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Handles parsing of Python code.
Parsing to AST is done via _ast on Python > 2.5, otherwise the compiler
module is used.
"""
import sys
from StringIO ... | gabriel/shrub | lib/mako/pyparser.py | Python | mit | 15,783 | [
"VisIt"
] | 6b0ac8478f590dc67999d04b7a3b412c5c5ecb950a5d1e46fab6f01a8ddc317c |
import os
import aiohttp
import traceback
import sys
import re
import json
import time
import asyncio
import discord
import datetime
from utils import checks
from discord.ext import commands
from utils.dataIO import fileIO
from random import choice as randchoice
prefix = "b!"
description = ''
shard_id = 0
shard_count ... | JonnyBoy2000/RBrooklyn | shard_1.py | Python | gpl-3.0 | 11,670 | [
"CASINO"
] | 64255fd0d5d15c26d5de81d36c375f1c0ad0c9cf975c6da3dd1dbd3d982731c9 |
import numpy as np
from numpy import cos, sin, pi
from enthought.tvtk.api import tvtk
from enthought.mayavi.scripts import mayavi2
def aligned_points(grid, nz=1, period=1.0, maxshift=0.4):
try:
nx = grid["nx"]
ny = grid["ny"]
zshift = grid["zShift"]
Rxy = grid["Rxy"]
Zxy =... | boutproject/BOUT-2.0 | tools/pylib/boutdata/mayavi2.py | Python | gpl-3.0 | 3,079 | [
"Mayavi"
] | f8697664db92b7496c77e1322b5705daec7722d78a04e221e5964903cf7b729a |
#!/usr/bin/env python
########################################################################
# File : dirac-sys-sendmail
# Author : Matvey Sapunov
########################################################################
"""
Utility to send an e-mail using DIRAC notification service.
Arguments:
Formated text m... | DIRACGrid/DIRAC | src/DIRAC/FrameworkSystem/scripts/dirac_sys_sendmail.py | Python | gpl-3.0 | 2,494 | [
"DIRAC"
] | c0f6cfd8b14beb35be9a489fca6e3c98db19d9dad48a3810fd83c7b0546e2ce8 |
import exdir
import pytest
import os
import shutil
import h5py
import numpy as np
def create_many_objects(obj):
for i in range(2000):
group = obj.create_group("group{}".format(i))
data = np.zeros((10, 10, 10))
group.create_dataset("dataset{}".format(i), data=data)
def iterate_objects(obj... | CINPLA/expipe-dev | exdir/tests/test_benchmark_objects.py | Python | gpl-3.0 | 1,610 | [
"VisIt"
] | 5518ad8ebfea001a4d7d5f4ed64e72f4c66e2ea352aaf935e92309dd8a1b384f |
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this softwa... | timeyyy/PyUpdater | pyupdater/vendor/PyInstaller/hooks/hookutils.py | Python | bsd-2-clause | 22,893 | [
"VisIt"
] | d90ff8fb365c41d63da3536564c4c2d6f99f893ba28d76ce66f4e2661d369339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.