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 (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... | junghans/espressopp | src/analysis/IntraChainDistSq.py | Python | gpl-3.0 | 1,969 | [
"ESPResSo"
] | fae810f9d257a3f9b8a32912d42f877373cbb060b7023bed28e532c209eee8ac |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Brian Coca <bcoca@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
module: systemd
autho... | nitzmahone/ansible | lib/ansible/modules/systemd.py | Python | gpl-3.0 | 23,112 | [
"Brian"
] | a62490cad245633b12730cc8d3284cdc454c491ec90280221d0729da8db06330 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes and methods used to describe deformations and
strains, including applying those deformations to structure objects and
generating deformed structure sets for further calculations.
"""
import co... | materialsproject/pymatgen | pymatgen/analysis/elasticity/strain.py | Python | mit | 8,734 | [
"pymatgen"
] | cb5805fc31e9f4c1fa390c7ed80c501f7531aef07a746a6be834801f12d9fda9 |
# Copyright 1999-2000 by Jeffrey Chang. 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.
"""Record classes to hold BLAST output.
Classes:
Blast Holds all the inform... | bryback/quickseq | genescript/Bio/Blast/Record.py | Python | mit | 14,376 | [
"BLAST",
"Biopython"
] | 39277a716351b79e25fbfde346564ab3f485fe0e4e17467803662b403ec7e2be |
import sys
from pathlib import Path
import neurom
from neurom import load_morphology
from neurom.view import plotly_impl
import mock
from numpy.testing import assert_allclose
SWC_PATH = Path(__file__).parent.parent / 'data/swc'
MORPH_FILENAME = SWC_PATH / 'Neuron.swc'
m = load_morphology(MORPH_FILENAME)
def _reloa... | BlueBrain/NeuroM | tests/view/test_plotly_impl.py | Python | bsd-3-clause | 1,558 | [
"NEURON"
] | 2fa8cb286f7c0e26ae19edd8b2727eb542ac17476eedfbc86f369a43274f80cf |
"""test_correctilluminationcalculate.py - test the CorrectIlluminationCalculate module
CellProfiler is distributed under the GNU General Public License.
See the accompanying file LICENSE for details.
Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2015 Broad Institute
All rights reser... | LeeKamentsky/CellProfiler | cellprofiler/modules/tests/test_correctilluminationcalculate.py | Python | gpl-2.0 | 63,437 | [
"Gaussian"
] | 2d3a1e47f075896bb468f75487d0a66f1179e07ef1ad191d9d19c10dd212caac |
import six
import chainer
import chainer.functions as F
from chainer.functions.loss.vae import gaussian_kl_divergence
import chainer.links as L
class VAE(chainer.Chain):
"""Variational AutoEncoder"""
def __init__(self, n_in, n_latent, n_h):
super(VAE, self).__init__(
# encoder
... | benob/chainer | examples/vae/net.py | Python | mit | 2,076 | [
"Gaussian"
] | 620ca5f6f6d19fc4f88df2dc9c6f6d8c7b5b0879fe132a0e483229b1305cde22 |
# Copyright 2011-2015 Free Software Foundation, Inc.
#
# This is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This prog... | armoredsoftware/protocol | measurer/gdb-7.9/gdb/contrib/excheck.py | Python | bsd-3-clause | 11,670 | [
"VisIt"
] | 83a9c674673e79aa1d9bdd0199e6fac3c49b6ff8834e11ecbc64bb66198d8ed4 |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | sasha-gitg/python-aiplatform | tests/unit/gapic/aiplatform_v1beta1/test_index_endpoint_service.py | Python | apache-2.0 | 113,731 | [
"Octopus"
] | 8addb944732d5d71c388eb38750a117e1a4d799d45eb4b59dd6b60cad9942d57 |
from . import base
from grow.common import sdk_utils
from protorpc import messages
from xtermcolor import colorize
import os
import re
import shlex
import subprocess
import sys
class Config(messages.Message):
build_task = messages.StringField(1, default='build')
run_task = messages.StringField(2, default='')... | denmojo/pygrow | grow/preprocessors/gulp.py | Python | mit | 1,161 | [
"GULP"
] | 4bc13f47bb50fa5fab883f59fa4b082ef44e5fc051368bf7d68f03e0c72414ac |
"""
Convert Delft3D output (NetCDF) file to a set of vtk files
Usage:
d3d_to_vtk <file> [--scale_z=<sz>]
Options:
--scale_z=<sz> scale z of all grid points due to some instabilities in ParaView [default: 10]
"""
import logging
import docopt
import sources
logging.basicConfig(level=logging.DEBUG)
logger = logg... | openearth/vtkanim | vtkanim/d3d_to_vtk.py | Python | gpl-3.0 | 453 | [
"NetCDF",
"ParaView",
"VTK"
] | eb13ccb5eb0968d42ce616eca932f65d9cf54bc6d09129ad8af6bbc8008ea567 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# qooxdoo - the new era of web development
#
# http://qooxdoo.org
#
# Copyright:
# 2006-2013 1&1 Internet AG, Germany, http://www.1und1.de
#
# License:
# LGPL: http://www.gnu.org/li... | sebastienhupin/qxrad | qooxdoo/tool/pylib/ecmascript/transform/check/check_globals.py | Python | lgpl-3.0 | 2,132 | [
"VisIt"
] | 1ce4d20fc059f311a2621a8684c053f69071bea1ecc63644361cbdcfc6b9eb71 |
# $Id$
#
# Copyright (C) 2001-2008 greg Landrum and Rational Discovery LLC
# All Rights Reserved
#
""" unit testing code for composite models
"""
import unittest
import cPickle
from rdkit.ML.Composite import Composite
from rdkit.ML.DecTree.DecTree import DecTreeNode as Node
from rdkit import RDConfig
class... | rdkit/rdkit-orig | rdkit/ML/Composite/UnitTestComposite.py | Python | bsd-3-clause | 5,980 | [
"RDKit"
] | 78742594293e794cb4b62be55a47e4972858d2789929bdea377a2ca873356352 |
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 21 12:08:08 2015
@author: noore
"""
import os, re, csv
import pandas as pd
import matplotlib
import seaborn as sns
from colorsys import hls_to_rgb
from cycler import cycler
import numpy as np
import matplotlib.pyplot as plt
from collections import OrderedDict
import defin... | liebermeister/flux-enzyme-cost-minimization | scripts/definitions.py | Python | gpl-2.0 | 18,294 | [
"Avogadro"
] | b6708069f73a23bebb6db84638ca9b531bf957fa222233e545db20d587a67df3 |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | anilmuthineni/tensorflow | tensorflow/python/ops/gradients_impl.py | Python | apache-2.0 | 35,591 | [
"VisIt"
] | a826df85f837e69ac069b1fced0175c5b955baffb9abc74416b9641e9bcce615 |
from mushroom_rl.core import Serializable
from mushroom_rl.utils.table import Table
import numpy as np
def to_parameter(x):
if isinstance(x, Parameter):
return x
else:
return Parameter(x)
class Parameter(Serializable):
"""
This class implements function to manage parameters, such as ... | carloderamo/mushroom | mushroom_rl/utils/parameters.py | Python | mit | 4,314 | [
"VisIt"
] | 0879719095f8bd34c07aa32b607baf79aed0f70004e6707d03be600ea8cdc9ae |
import fileinput
import sys
import re
import os
import HTSeq
def replaceAll(file, searchExp, replaceExp):
"""
Replace an expression in a file
"""
for line in fileinput.input(file, inplace=1):
if searchExp in line:
line = line.replace(searchExp, replaceExp)
sys.stdout.write(... | frankosan/pypers | apply_patches.py | Python | gpl-3.0 | 687 | [
"HTSeq"
] | 74042aa210c44a9b0f3f78512b51fb23561b1dadd9a2585a5ff4cd0073ad0143 |
"""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" into bui... | Reinis/openbabel | test/testsym.py | Python | gpl-2.0 | 15,030 | [
"RDKit"
] | cb95cb89016f3c4adde2cabb8de0e1b1c369e307fa06f85f6519ccddc998f3a3 |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, date
from lxml import etree
import time
from openerp import api
from openerp import SUPERUSER_ID
from openerp import tools
from openerp.osv import fields, osv
from openerp.tools.translate ... | vileopratama/vitech | src/addons/project/project.py | Python | mit | 53,636 | [
"VisIt"
] | eb6552dce52da4474e365c4edf1869a989cc50a6b52d70e5f49869ce324fb68b |
"""
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import numpy
from cctbx.array_family import flex
from cctbx import miller
from cctbx import crystal
class DenzoXfile:
"""
Reference:
http://www.hkl-xray.com/sites/defau... | keitaroyam/yamtbx | yamtbx/dataproc/hkl2000/xfile.py | Python | bsd-3-clause | 4,175 | [
"CRYSTAL"
] | 61830d9fdab6a002676168884d5d9c2a4877d5aad971c15949908424c553a36c |
# -*- coding: utf-8 -*-
r"""
Linear elasticity with given displacements.
Find :math:`\ul{u}` such that:
.. math::
\int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u})
= 0
\;, \quad \forall \ul{v} \;,
where
.. math::
D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\delta_{il} \delta_{jk}) +
\lambda \ \d... | lokik/sfepy | examples/linear_elasticity/linear_elastic.py | Python | bsd-3-clause | 2,486 | [
"VTK"
] | 3d9ea8609544c073890e7c557d3bf8c011d82579c80b962c5996aafdf23c721e |
# Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
Definitions of coordinates and other dimensional metadata.
"""
from abc import ABCMeta, abstractmethod
from collections i... | rcomer/iris | lib/iris/coords.py | Python | lgpl-3.0 | 100,378 | [
"NetCDF"
] | 3542e4e61de829c81088172c55d406d0002eb7ce14c4d7a4eea22552d35cb408 |
"""Example of interfacing with scipy solvers.
This example solves the problem
-Laplacian(x) = b
where b is a gaussian peak at the origin.
"""
import numpy as np
import scipy.sparse.linalg as scipy_solvers
import odl
# Create discrete space, a square from [-1, 1] x [-1, 1] with (11 x 11) points
space = odl.unif... | kohr-h/odl | examples/solvers/scipy_solvers.py | Python | mpl-2.0 | 1,338 | [
"Gaussian"
] | adbf0746ddb0e62713455520a0e5a615118b0377ff32536beafd5742271755dd |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
from __future__ import with_statement
import logging
import threading
import time
try:
from collections import namedtuple
except ImportError:
from concurrent.futures._compat import namedtuple
__author__ = 'B... | schmeichelinho/buildroot-weio-v2 | weio/fs-overlay/usr/lib/python2.7/site-packages/concurrent/futures/_base.py | Python | gpl-2.0 | 19,642 | [
"Brian"
] | caeb126d29477b4590c699d78339e6911bc6940f0389bb6cd482a096aeea9643 |
# -*- coding: UTF-8 -*-
'''
Модуль реализует набор базовых типов, представляющих разные виды нечетких
подмножеств.
'''
from .common import ACCURACY
from .domain import RationalRange, IntegerRange
##from .algebra import SubsetAlgebra, NumbersAlgebra
import pylab as p
import math
class Subset(object)... | sejros/FuzzyCalcPy | fuzzycalc/subset.py | Python | gpl-3.0 | 18,953 | [
"Gaussian"
] | 38c8965c33ec16b1c37853a3a7c361f4d4cfe0656ac8e29eb32058c57b99e48b |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import numpy as np
import sisl
from sisl.physics.spin import Spin
from ..plot import entry_point
from .bands import Ban... | zerothi/sisl | sisl/viz/plots/fatbands.py | Python | mpl-2.0 | 18,164 | [
"SIESTA"
] | f89228e07a05b28654bfb73861cff09635060e54b387ab8f680f48aab3a6ebd7 |
#!/usr/bin/env python3
import logging
import os
import pathlib
import numpy as np
import pytest
from pysisyphus.calculators.ORCA import ORCA
from pysisyphus.constants import ANG2BOHR
from pysisyphus.Geometry import Geometry
from pysisyphus.irc.GonzalesSchlegel import GonzalesSchlegel
from pysisyphus.irc.DampedVelocit... | eljost/pysisyphus | tests_staging/irc_sn2_ftransfer/test_sn2_ftransfer_irc.py | Python | gpl-3.0 | 2,520 | [
"ORCA"
] | 4abdc25acb573907fd682496e08debacb37161bf890057e216926abd348bf362 |
"""
@name: Modules/Housing/Security/_test/test_security.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2016-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Nov 1, 2016
@summary: Test
Passed all 13 tests - DBK - 2018-02-13
"""
__updated__ = '2020-02-02... | DBrianKimmel/PyHouse | Project/src/Modules/House/Security/_test/test_security.py | Python | mit | 2,816 | [
"Brian"
] | 5c4ac6f3a16f519d272842a2b2eca1468152b68c4ad0cf109fc87d27eabebad5 |
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library ... | FedoraScientific/salome-hexablock | doc/pyplots/test_make_pipe.py | Python | lgpl-2.1 | 1,366 | [
"VTK"
] | 20126f03fb9a75863374effb2638b370f8409b954257135634826b055600ac65 |
#########################################################################################
# SLURM.py
# 10.11.2014
# Author: A.T.
#########################################################################################
""" SLURM.py is a DIRAC independent class representing SLURM batch system.
SLURM objects are use... | yujikato/DIRAC | src/DIRAC/Resources/Computing/BatchSystems/SLURM.py | Python | gpl-3.0 | 6,735 | [
"DIRAC"
] | 6a532158a3d0be1a8ea218dbb2e791ac990e3061f2274a12df9e9c646bf476cb |
# Copyright 2018 Google Inc.
#
# 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 writin... | google/svcca | cca_core.py | Python | apache-2.0 | 16,148 | [
"NEURON"
] | 0ea1f39a5a5ee44226e65e269113a4e2ed6d6a640d812cd5a5fa1eb7a0312c71 |
from ddapp import asynctaskqueue as atq
from ddapp import segmentation
from ddapp import visualization as vis
import ddapp.objectmodel as om
from ddapp import propertyset
from ddapp import pointpicker
from ddapp import planplayback
from ddapp.timercallback import TimerCallback
from ddapp.simpletimer import SimpleTimer
... | gizatt/director | src/python/ddapp/tasks/robottasks.py | Python | bsd-3-clause | 40,748 | [
"VTK"
] | e1c6af4431db1cd1987d426d1d8276dd7d0b69ee55df04b258d33f91240bb835 |
# jhbuild - a tool to ease building collections of source packages
# Copyright (C) 2008 Igalia S.L., John Carr, Frederic Peters
#
# waterfall.py: custom waterfall display
#
# 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
# ... | ahmeier/jhbuild | jhbuild/buildbot/status/web/waterfall.py | Python | gpl-2.0 | 20,632 | [
"Brian",
"VisIt"
] | 05034ee7c6cc4997885ef3f11c0680dea518ee5f0c8b1ab2d4507900f140251d |
# 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
#
# Unless required by applica... | karllessard/tensorflow | tensorflow/python/autograph/pyct/static_analysis/reaching_fndefs.py | Python | apache-2.0 | 5,429 | [
"VisIt"
] | f83ea9f43b41986a0f18c3e0768ecbfd5717a20be6517af63221c5cdcbecddff |
"""Deep Dream using the Inception v5 network.
Creative Applications of Deep Learning w/ Tensorflow.
Kadenze, Inc.
Copyright Parag K. Mital, June 2016.
"""
import os
import numpy as np
import tensorflow as tf
from scipy.ndimage.filters import gaussian_filter
from skimage.transform import resize
from scipy.misc import i... | pkmital/CADL | session-5/libs/deepdream.py | Python | apache-2.0 | 14,815 | [
"Gaussian",
"NEURON"
] | 90695525667b795ea6a53a6f64413945c6c01a80f767746e910f0dfd73363a06 |
import os
import deepchem as dc
import numpy as np
def load_gaussian_cdf_data():
"""Load example with numbers sampled from Gaussian normal distribution.
Each feature and task is a column of values that is sampled
from a normal distribution of mean 0, stdev 1."""
current_dir = os.path.dirname(os.path.abs... | peastman/deepchem | deepchem/trans/tests/test_power.py | Python | mit | 3,314 | [
"Gaussian"
] | d2413411e2e81fdc6461754ad0078d99cc3a2729045ed8c9a6c13e1878773e64 |
import networkx as nx
import pybel.constants as pc
from indra.assemblers.pybel import assembler as pa
from indra.databases import hgnc_client
from indra.statements import *
from pybel.dsl import abundance, activity, bioprocess, complex_abundance, hgvs, pmod, protein, reaction
def id(gene_name):
return hgnc_clien... | pvtodorov/indra | indra/tests/test_pybel_assembler.py | Python | bsd-2-clause | 19,310 | [
"Pybel"
] | 83b6cd3d18c2bb3eb652ee89c79f9a642b2df7dde308bfb9dccf306f5f16ccca |
import os
import sys
from os.path import expanduser
SEPARATOR = " @ "
ENV_SSH_USER = os.getenv('AWS_FUZZ_USER')
ENV_KEY_PATH = os.getenv('AWS_FUZZ_KEY_PATH')
ENV_USE_PRIVATE_IP = os.getenv('AWS_FUZZ_PRIVATE_IP')
ENV_USE_SSM = os.getenv('AWS_FUZZ_SSM') # use AWS Secure Session Manager instead of ssh
ENV_USE_PUBLIC_DNS... | pmazurek/aws-fuzzy-finder | aws_fuzzy_finder/settings.py | Python | mit | 2,400 | [
"VisIt"
] | e9455cb3bdfdb0310d288017bd41fe33b552541867cd6fb26008b35a9782bea3 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/auxiliary/base.py | Python | gpl-2.0 | 18,784 | [
"MDAnalysis"
] | 70cf220d0f85bdeb3e9b75b1c8fa30f4ed96830b620ea1b1a9235436eea4399d |
########################################################################
# File : ResourcesDefaults.py
# Author : Ricardo Graciani
########################################################################
"""
Some Helper class to access Default options for Different Resources (CEs, SEs, Catalags,...)
"""
from __futur... | ic-hep/DIRAC | src/DIRAC/ConfigurationSystem/Client/Helpers/ResourcesDefaults.py | Python | gpl-3.0 | 3,443 | [
"DIRAC"
] | 7ba066f55ae8ce044ba4ab8f0295ed95dfe70578e65bcd82b0c3cbc0cf26b05a |
from __future__ import print_function
import os
import numpy as np
import subprocess
# flopy imports
from ..modflow.mfdisu import ModflowDisU
from .util_array import read1d, Util2d
from ..export.shapefile_utils import shp2recarray
from ..mbase import which
try:
import shapefile
except:
raise Exception('Error ... | bdestombe/flopy-1 | flopy/utils/gridgen.py | Python | bsd-3-clause | 40,297 | [
"VTK"
] | f8c31862bba82212542a07bfd7d0246e05adfa195ca216d50af21d90a8754f2a |
# Copyright (c) 2013 Huan Do, http://huan.do
import ast
from collections import deque
class VariableFinder(ast.NodeVisitor):
def __init__(self, env):
self.env = env
self.visit_queue = deque()
self._conditional_stack = []
self._global = False
def visit(self, node):
"""... | huan/Underscore | underscore/variable_finder.py | Python | mit | 4,915 | [
"VisIt"
] | 07b6e17767c51b7bb1dfe077979044b42967186cc177fc2be369b57baa305d0a |
#
# @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/procrouting/__init__.py | Python | lgpl-3.0 | 1,133 | [
"Psi4"
] | 7a49b3d25de9e79390a7a0827826374fec0d302db0670b7b1b770f16e63736ce |
# Copyright (C) 2013, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import argparse
import os
import sys
import logging
from os.path import join, dirname, abspath
import zeroinstall.injector.config
from zeroinstall import SafeException
from repo import archives
def main(argv):
pa... | 0install/0repo | repo/cmd/__init__.py | Python | lgpl-2.1 | 3,768 | [
"VisIt"
] | 8eabb005c1e9d225bc720c6b157c1f0263e6e8aa2aae1c64528beca9cfe17f69 |
#
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2011 Red Hat, Inc.
# This file is part of python-fedora
#
# python-fedora 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 Li... | nirik/python-fedora | fedora/wsgi/csrf.py | Python | gpl-2.0 | 13,006 | [
"VisIt"
] | fdfcc82ab007225f1a56799a56dd7d6f58ff3422ff1d4bad0a168f380c247235 |
#!/usr/bin/env python
# Copyright 2018 Informatics Matters Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | InformaticsMatters/pipelines | src/python/pipelines/docking/obabel_prepare_pdb.py | Python | apache-2.0 | 2,778 | [
"Open Babel"
] | 66afc1845eccb08aa96c91b60ef131337075401be084945fce5f563c3c284bef |
from copy import deepcopy
from random import choice
from flask import render_template
from flask_ask import statement, question, session
from . import alexa, db
from .utils.recipes import find_recipes, all_recipes
from .dialog import reply, recipe_card
from .models import User
#####
#
# Helpers for long-term sessio... | oOo0oOo/FoodWorld | app/views.py | Python | mit | 13,070 | [
"exciting"
] | 3ca0e12e368bc9b56cc482b21ddb214fea71caa22700ba85e3bcc2a2322930a0 |
#!/usr/bin/env python
# AlGDock Pipeline script to actually run BPMF calculations
import glob
import numpy as np
import os
from os.path import abspath, basename, dirname, exists, getsize, \
isdir, isfile, join
import tarfile
def nonzero(path):
return (isfile(path) and getsize(path)>0) or \
(isdir(path))... | CCBatIIT/AlGDock | Pipeline/run_AlGDock.py | Python | mit | 35,605 | [
"Amber",
"CRYSTAL",
"NAMD"
] | 350bf77678d73e6cca8c1391f723dc7b765a989f2ade8293d0c5efbe6f958b1b |
"""
Acceptance tests for studio related to the outline page.
"""
import json
from datetime import datetime, timedelta
import itertools
from pytz import UTC
from bok_choy.promise import EmptyPromise
from nose.plugins.attrib import attr
from ...pages.studio.settings_advanced import AdvancedSettingsPage
from ...pages.stu... | ampax/edx-platform | common/test/acceptance/tests/studio/test_studio_outline.py | Python | agpl-3.0 | 81,678 | [
"VisIt"
] | d28ad69fc05e01914d0caa8865e03ac0f56a86dae1e1ab72e897513949657d29 |
# TODO: linkify bug numbers in task descriptions
import os, json, re, glob
import sys
from wsgiref.simple_server import make_server
import mimetypes
from cgi import parse_qs, escape
from siteinfo import load_data, find_screenshot, get_test_steps_as_strings
import redis
redisDB = redis.from_url(os.environ.get("REDIS_... | hallvors/mobilewebcompat | wsgi.py | Python | mpl-2.0 | 15,424 | [
"VisIt"
] | 7a98eb636c1eedcc4cf2ebe2f0c3feb418f8e8ed5ebd7e9311874b492c9b19d8 |
from distutils.core import setup
import os
def version():
setupDir = os.path.dirname(os.path.realpath(__file__))
versionFile = open(os.path.join(setupDir, 'mingle', 'VERSION'))
return versionFile.read().strip()
setup(
name='mingle',
version=version(),
author='Joel Boyd, Ben Woodcroft, Donova... | dparks1134/mingle | setup.py | Python | gpl-3.0 | 793 | [
"BLAST",
"Biopython"
] | b8d433e49c7fe1cb73228b0ed12531f2104e6c4efc0ba9984c1d374a8037b031 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pybel
def smi2mol(smiles):
"""
read smiles string , retrun 3d mol file content.
:param smiles:
:return:
"""
mol = pybel.readstring("smi", smiles)
mol.make3D()
return mol.write("mol")
| a358003542/expython | expython/chem/babelit.py | Python | mit | 288 | [
"Pybel"
] | d0a6be277c3a649d868b385eb9316060f7d10c59a11d1d9cacf4ab4a221984d2 |
#!/usr/bin/python
# ------------------------------------------------------------------
# BSOF/I - Block structured factorization and inversion codes
# for CPU+GPU platforms
# Copyright (c) 2013, Sergiy Gogolenko
# e-mail: sgogolenko@ucdavis.edu
# ------------------------------------------------------------------... | SGo-Go/BSOFI | bench/dirac_bench.py | Python | gpl-2.0 | 3,529 | [
"DIRAC"
] | d4a4d25da115adda6c65cb09128a29f2efa2a50276ca400722f5c903cced73dc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Volume/Testing/Python/TestFixedPointRayCasterLinearCropped.py | Python | gpl-3.0 | 2,104 | [
"VTK"
] | 6ab4fe6c6d0f784106cd459f1a7f45b2478701ef953e599f0b1d6c9037bf16ce |
""" Example of ExecutorMindHandler implementation
"""
from __future__ import print_function
import time
import random
from DIRAC import S_OK, gLogger
from DIRAC.Core.Utilities import DEncode
from DIRAC.Core.Base.ExecutorMindHandler import ExecutorMindHandler
random.seed()
class PingPongMindHandler(ExecutorMindHandl... | fstagni/DIRAC | docs/source/DeveloperGuide/AddingNewComponents/DevelopingExecutors/PingPongMindHandler.py | Python | gpl-3.0 | 2,878 | [
"DIRAC"
] | a86d7328c53dddac5cb0c4491f9061e514e78695f28593d63063a287e2159bde |
# -*- coding: utf-8 -*-
"""Module containing the nc2map Maps class
Basic control class for the nc2map module, governing multiple CbarManager
instances, multiple EvaluatorBase instances and multiple MapBase and
LinePlot instances."""
import glob
import logging
import pickle
from copy import copy, deepcopy
from collecti... | Chilipp/nc2map | _maps.py | Python | gpl-2.0 | 62,613 | [
"NetCDF"
] | 23848e90eaab31308c66ee74a0aa727735cfd6ba1d74029e7d41f3510503220d |
''' EmailAction
This action writes all the necessary data to a cache file ( cache.db ) that
will be used later by the EmailAgent in order to send the emails for each site.
'''
import os
import sqlite3
from DIRAC import S_ERROR, S_OK
from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction import BaseActio... | Andrew-McNab-UK/DIRAC | ResourceStatusSystem/PolicySystem/Actions/EmailAction.py | Python | gpl-3.0 | 3,347 | [
"DIRAC"
] | f732575aecbd3713974cd69062430d2e475d61cb30085a2ec584ab3de7bbbc81 |
########################################################################
# $HeadURL $
# File: TracedTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2012/08/08 15:21:32
########################################################################
""" :mod: TracedTests
=======================
.. module: ... | Sbalbp/DIRAC | Core/Utilities/test/TracedTests.py | Python | gpl-3.0 | 2,744 | [
"DIRAC"
] | 4220bab64d97c1cf6abd8d5556048736bfc49d84a7966e15b6932b722d28f148 |
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Implements commands for running and interacting with Fuchsia on devices."""
from __future__ import print_function
import amber_repo
import boot_data
imp... | youtube/cobalt | build/fuchsia/device_target.py | Python | bsd-3-clause | 10,010 | [
"Amber"
] | 7fcf7eb5cb890ae686a93c10cca6b67e59ddcc124bb2a5d2eebb61d7a4290742 |
import pyspeckit
from pyspeckit.spectrum.readers import read_class
from pyspeckit import cubes
import numpy as np
from astropy import wcs
from astropy import coordinates
from astropy import units as u
from astropy import constants
try:
from .progressbar import ProgressBar
except:
from astropy.utils.console impo... | adamginsburg/APEX_CMZ_H2CO | shfi_otf_pipeline/make_apex_cubes.py | Python | bsd-3-clause | 136,320 | [
"Gaussian"
] | 74d3a6d6c218aa29657a9ccbd0471ec9bf9388bbb9d3d40f2a2069758fa47cde |
# Author: Idan Gutman
# Modified by jkaberg, https://github.com/jkaberg for SceneAccess
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickRage.
#
# SickRage 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 Sof... | whitepyro/debian_server_setup | sickbeard/providers/hdtorrents.py | Python | gpl-3.0 | 13,199 | [
"VisIt"
] | 3edaeb94f8d92c841228b7d6a8cb87eae749f7bbc21c15918dd4a4ea74aded37 |
# -*- coding: utf-8 -*-
from django.test import TestCase
from website.models import Bucketlist, BucketlistItem, UserProfile
from django.contrib.auth.models import User
class BucketListTestCase(TestCase):
def setUp(self):
self.title = "Before I turn 80"
user = User.objects.create_user(
... | andela-osule/django-bucketlist-application | bucketlist/website/tests/test_models.py | Python | gpl-2.0 | 2,916 | [
"VisIt"
] | 75886e793a056bc61379251332a4726e4cfca390f87ec59eef91f83e030083b4 |
# ------------------------------------------------------------
# MC911 - Compiler construction laboratory.
# IC - UNICAMP
#
# RA094139 - Marcelo Mingatos de Toledo
# RA093175 - Victor Fernando Pompeo Barbosa
#
# lya_codegen.py
# Lya Decorated AST Code Generator
#
# ------------------------------------------------------... | MC911-MV-1s2016/lya-compiler-python | lyacompiler/lya_codegen.py | Python | bsd-3-clause | 25,472 | [
"VisIt"
] | e7390bd668a7ec4cbaa1fdf023e90b6d9e46437086702f8710c86b3c72de3468 |
from pathlib import Path
import unittest
import unittest.mock as mock
from rt1.rtprocess import RTprocess
from rt1.rtresults import RTresults
from rt1.rtfits import MultiFits
import warnings
warnings.simplefilter("ignore")
# use "test_0_---" "test_1_---" to ensure test-order
class TestRTfits(unittest.TestCase)... | TUW-GEO/rt1 | tests/test_parallel_processing.py | Python | apache-2.0 | 12,780 | [
"NetCDF"
] | 0573e2c505a1a145c8d2d4e0fc4039de2b03a8977d1d2547781db4bba8422000 |
from __future__ import absolute_import
import glob, mmap, os, struct
from bup import _helpers
from bup.helpers import log, mmap_read
MIDX_VERSION = 4
extract_bits = _helpers.extract_bits
_total_searches = 0
_total_steps = 0
class PackMidx:
"""Wrapper which contains data from multiple index files.
Multipl... | ToxicFrog/bup | lib/bup/midx.py | Python | lgpl-2.1 | 4,297 | [
"exciting"
] | c5431211eef07cc7d5d73cfdf07a73867deafad0202d48b0a4915ad603d8423a |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | shaneknapp/spark | python/pyspark/pandas/plot/core.py | Python | apache-2.0 | 41,560 | [
"Gaussian"
] | 5c41540e4beebf2721e1942ee21fc88217ca6856ca309a2459eb05a42e23ffd8 |
#! /usr/bin/env python
from Email import *
from Job import *
import subprocess
from os import listdir, walk
from os.path import isfile, join, getmtime
import re
import sys
from shutil import move
from collections import deque
import cPickle as pickle
PICKLE_PATH = "/opt/octoqueue/pickle/octoqueue.pickle"
QUEUE_PATH =... | nseifert/octowolf_queue | octoqueue/Queuer.py | Python | mit | 3,520 | [
"Gaussian"
] | 78357b4ff0c109e35af6fb34e0317c52b16d382718b4502d29793da81527cdf4 |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | anderspitman/scikit-bio | skbio/stats/ordination/tests/test_util.py | Python | bsd-3-clause | 2,214 | [
"scikit-bio"
] | 3b2ec4d433b71a7916bf14b53102bdba4a7ba68789ad8fbe927bc5bc3d2d4db1 |
__author__ = "Mario Lukas"
__copyright__ = "Copyright 2017"
__license__ = "GPL v2"
__maintainer__ = "Mario Lukas"
__email__ = "info@mariolukas.de"
import math
import logging
import numpy as np
import scipy.ndimage
import scipy
import cv2
from fabscan.FSConfig import ConfigInterface
from fabscan.FSSettings import Setti... | mariolukas/FabScanPi-Server | src/fabscan/scanner/laserscanner/FSImageProcessor.py | Python | gpl-2.0 | 21,487 | [
"Gaussian"
] | fbb0718d63d029493aa9e7b8e8ea06c2b0154392b7d595b1d343c1107ec39cba |
"""Solid objects are used by the segment module. A solid has a position, and
orientation (defined by a rotation matrix). This module also contains the
class definition for stadium objects, which are used to construct
StadiumSolid solids. The Solid class has two subclasses: the StadiumSolid and
Semiellipsoid classes.
"... | chrisdembia/yeadon | yeadon/solid.py | Python | bsd-3-clause | 25,424 | [
"Mayavi"
] | 7b21a301339733f92cd07f9fcf0d60e22ad072c8a57ea70ff09d805fdccc5b89 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create a rendering window and renderer
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
renWin.StereoCapableWindowOn()
iren = vtk.vtkRende... | hlzz/dotfiles | graphics/VTK-7.0.0/IO/EnSight/Testing/Python/EnSightTensorsInversionBin.py | Python | bsd-3-clause | 1,592 | [
"VTK"
] | 197cd32cf1b5a13225f38465e4fe84cf3a29e50ec05183e60fc0944f474a829b |
from __future__ import (division as _, print_function as _,
absolute_import as _, unicode_literals as _)
import numpy as np
import scipy as sp
from .degrade_spec import degrade_spec
from scipy import interp
from scipy import ndimage
__all__ = ['convolve_spec']
def convolve_spec(Ahr, lamhr, filters, f... | jlustigy/coronagraph | coronagraph/convolve_spec.py | Python | mit | 3,041 | [
"Gaussian"
] | 95d1ef428454a31e35ef0a5a33228ad09b00a5fa7b24978c34bbb897714da7d9 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Autocompletion config for YouCompleteMe in Chromium.
#
# USAGE:
#
# 1. Install YCM [https://github.com/Valloric/YouCompleteMe]
# (Googlers s... | scheib/chromium | tools/vim/chromium.ycm_extra_conf.py | Python | bsd-3-clause | 12,726 | [
"VisIt"
] | d9a527cc7c7c4f9316ddc47483e71f93c07e29828e9290ee43f7b5a018a52acf |
from datetime import datetime
import numpy as np
from netcdf import netcdf as nc
import logging
from linketurbidity import instrument as linke
from noaadem import instrument as dem
from helpers import short
import os
class Cache(object):
def __init__(self, filenames, tile_cut={}, read_only=False):
self._... | gersolar/solar_radiation_model | models/cache.py | Python | mit | 5,500 | [
"NetCDF"
] | bb73b72bf5cc2f64eb646373ba8154be544ab94b5a86ca2881511dbad81ec48a |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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 ... | sem-geologist/hyperspy | hyperspy/models/edsmodel.py | Python | gpl-3.0 | 35,363 | [
"Gaussian"
] | 854e00a8c180cbaad40afb9ea0b35db1d02d6d7ef3ed4728710d6393a8d8658b |
# -*- coding: utf-8 -*-
"""Test sequences for graphiness.
"""
# Copyright (C) 2004-2019 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import heapq
import networkx as nx
__author__ = "\n".join(['Aric Hagberg... | sserrot/champion_relationships | venv/Lib/site-packages/networkx/algorithms/graphical.py | Python | mit | 13,029 | [
"Brian"
] | 39ed33bc8a99ae7cbdd4fcd4ccbf745e7571b09888e92810c6fbe7cc0a17e909 |
# -*- coding: utf-8 -*-
# Copyright 2016-2021 The pyXem developers
#
# This file is part of pyXem.
#
# pyXem 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 optio... | pycrystem/pycrystem | pyxem/signals/indexation_results.py | Python | gpl-3.0 | 9,375 | [
"CRYSTAL"
] | 60fa15ae69ce9b62cda57474c874c6ba8017e697d57e6278d7444b665cbff712 |
import numpy, os
import matplotlib.pyplot as plt
from labutil.plugins.pwscf import run_qe_pwscf, PWscf_inparam, parse_qe_pwscf_output
from labutil.objects import Struc, Dir, ase2struc, Kpoints, PseudoPotential
from ase.spacegroup import crystal
from ase.io import write
from ase.build import bulk
def make_struc(alat):... | bkoz37/labutil | samples/lab3_samples/Fe_sample.py | Python | mit | 4,650 | [
"ASE",
"CRYSTAL"
] | b68a8ed57a5634ae84e842b0b4394b676c2e3b4ff5d02fde545ef7a83e9999ec |
from setuptools import setup, find_packages
setup(
name='tst',
version="0.14.0",
description='TST Simple Test Runner',
url='http://github.com/daltonserey/tst',
author='Dalton Serey',
author_email='daltonserey@gmail.com',
maintainer='Dalton Serey',
maintainer_email='daltonserey@gmail.com... | daltonserey/tst | setup.py | Python | agpl-3.0 | 717 | [
"Dalton"
] | 63a472743a1d4039ff3ba4e0570dda77a827169aeacd8fbada347eac8b674132 |
"""
docstring needed
:copyright: Copyright 2010-2017 by the NineML Python team, see AUTHORS.
:license: BSD-3, see LICENSE for details.
"""
from past.builtins import basestring
from nineml.exceptions import NineMLUsageError, NineMLDimensionError
from nineml.abstraction.expressions.utils import is_valid_lhs_target
from ... | INCF/lib9ML | nineml/abstraction/componentclass/visitors/validators/general.py | Python | bsd-3-clause | 15,659 | [
"VisIt"
] | 9f6cd0feaf008ed54f2f1915c2395385c94a367aeb6b8bf84ae36aaf0623cdc3 |
#!/usr/bin/env python
# Copyright 2013 National Renewable Energy Laboratory, Golden CO, USA
# This file is part of NREL MatDB.
#
# NREL MatDB 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... | ssullivangh/nrelmat | web/TestMako/testmako/xyzToSmol.py | Python | gpl-3.0 | 44,701 | [
"Jmol"
] | dbc7a39b080810083894dc9c6968e0ec640b1625f8b78b25dbf3d8631a347a33 |
#!/usr/bin/env python -i
# preceeding line should have path for Python on your machine
# vizplotgui_pymol.py
# Purpose: viz running LAMMPS simulation via PyMol with plot and GUI
# Syntax: vizplotgui_pymol.py in.lammps Nfreq compute-ID
# in.lammps = LAMMPS input script
# Nfreq = plot data point and v... | Dixon3/lammps | python/examples/vizplotgui_pymol.py | Python | gpl-2.0 | 4,489 | [
"LAMMPS",
"PyMOL"
] | 2573c4cb25321bac1712850818d78994886a1a6e350c88b0e3d351de97783e72 |
#!/usr/bin/env python
########################################################################
# File : dirac-admin-proxy-upload.py
# Author : Adrian Casajus
########################################################################
"""
Upload proxy.
Example:
$ dirac-admin-proxy-upload
"""
import sys
from DIRAC.C... | DIRACGrid/DIRAC | src/DIRAC/FrameworkSystem/scripts/dirac_admin_proxy_upload.py | Python | gpl-3.0 | 716 | [
"DIRAC"
] | 696bb39b54c55f4dcd578fa52f8a7d6202f1c273597f23127f5bdd1bced6db07 |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2007-2008 Matthew Perry
Copyright (C) 2008-2010 Borys Jurgiel
/***************************************************************************
* *
* This program is free software; you can redistribute it ... | bstroebl/QGIS | python/plugins/plugin_installer/installer_gui.py | Python | gpl-2.0 | 42,256 | [
"VisIt"
] | ce557d95bf4c21286ff8d60ca1b4db6416239319c5e24d4766dadc52cc95ddb0 |
"""Handle extraction of final files from processing pipelines into storage.
"""
import datetime
import os
import six
import toolz as tz
from bcbio import log, utils
from bcbio.upload import shared, filesystem, galaxy, s3, irods
from bcbio.pipeline import run_info
from bcbio.variation import vcfutils
import bcbio.pipe... | a113n/bcbio-nextgen | bcbio/upload/__init__.py | Python | mit | 38,400 | [
"Galaxy"
] | cd1d93025dc782cbf42a12c6366b2a5b046d2ae8e8db7e6a54daaad3139d7464 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2005-2007 Carabos Coop. V. All rights reserved
# Copyright (C) 2008-2017 Vicent Mas. 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... | ankostis/ViTables | vitables/docbrowser/browsergui.py | Python | gpl-3.0 | 14,862 | [
"VisIt"
] | 293e93448b501ba6bd2c86dafa7834dbb0f3607ff069625f905ecd82c1185543 |
# This file is part of BHMM (Bayesian Hidden Markov Models).
#
# Copyright (c) 2016 Frank Noe (Freie Universitaet Berlin)
# and John D. Chodera (Memorial Sloan-Kettering Cancer Center, New York)
#
# BHMM is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public Licen... | jchodera/bhmm | bhmm/estimators/maximum_likelihood.py | Python | lgpl-3.0 | 18,891 | [
"Gaussian"
] | a98893efb6d6b4e5b7ec02aa6eaefdeba35f9638e91b5ed3ccc293bfa9990bc2 |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Joan Puigcerver <joapuipe@prhlt.upv.es>
#
# 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 witho... | jpuigcerver/htk2kaldi | htk2kaldi.py | Python | mit | 15,982 | [
"Gaussian"
] | f41f425afe7320b0b0578eecac16969eeceefd64c9590bd9b5666bb957f14474 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import sys
import os
import importlib
import subprocess
import funannotate
from pkg_resources import get_distribution
global package_name
global __version__
packag... | nextgenusfs/funannotate | funannotate/funannotate.py | Python | bsd-2-clause | 34,108 | [
"BLAST"
] | 0062c7627e1a829aaf025f1dfe6470cedc4a3e998693714dc08ef55f2e77990a |
# encoding: utf-8
'''
OCTANT is a toolkit for working with ocean models on a C-Grid
Octant (Ocean C-grid model seTup and Analysis Toolkit) is based on the
python/numpy/matplotlib scientific python suite. NetCDF I/O is based on the
NetCDF4-python package. The toolkit contains general modeling tools for dealing
with ar... | kthyng/octant | octant/__init__.py | Python | bsd-3-clause | 937 | [
"NetCDF"
] | 77a03c1742ffc5c67df2b9b70c1a88b927b6136cd9fd3039072033abd2383072 |
'''
The settings for OSMC are handled by the OSMC Settings Addon (OSA).
In order to more easily accomodate future changes and enhancements, each OSMC settings bundle (module) is a separate addon.
The module can take the form of an xbmc service, an xbmc script, or an xbmc module, but it must be installed into the u... | ojengwa/osmc | package/mediacenter-addon-osmc/src/script.module.osmcsetting.pi/resources/osmc/OSMCSetting.py | Python | gpl-2.0 | 31,987 | [
"VisIt"
] | 7b837cfc1193793f8a818a23e3d3e76ba028c238aba2cc81909903cdc7559dd6 |
"""
Tests for discussion pages
"""
import datetime
from pytz import UTC
from uuid import uuid4
from nose.plugins.attrib import attr
from .helpers import BaseDiscussionTestCase
from ..helpers import UniqueCourseTest
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.courseware import CoursewarePage
from... | hamzehd/edx-platform | common/test/acceptance/tests/discussion/test_discussion.py | Python | agpl-3.0 | 46,777 | [
"VisIt"
] | db2c8bc3663fb749ca174945e9aae7c6de9286cf8c1e9dc8a28e3d0beb4758ab |
# Ground Temperature Calculator
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015, Anton Szilasi with help from Chris Mackey <ajszilasi@gmail.com>
# Ladybug is free software; you can redistribute it and/or mod... | samuto/ladybug | src/Ladybug_Import Ground Temp.py | Python | gpl-3.0 | 23,919 | [
"EPW"
] | c6c155e56a200dec7c10eddd73f1b50f8c50eaf808adf4a887b9f51c97689fec |
#-------------------------------------------------------------------------------
# Name: Hamilton
# Purpose:
#
# Author: winxos
#
# Created: 30/01/2012
# Copyright: (c) wzx 2012
# Licence: free
#-------------------------------------------------------------------------------
#!/usr/bin/env python
... | winxos/python | hamilton.py | Python | mit | 1,228 | [
"VisIt"
] | 31ebd11557e0a568088b00f53823138c77cdc9f454b835f9a110c79da1401592 |
#!/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/esr/uks.py | Python | apache-2.0 | 6,901 | [
"PySCF"
] | 613db58372f4876e8bede46362c5168f0abb6421594cda7738df283aae5cfa11 |
# -*- coding: utf-8 -*-
# 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 Apach... | apache/incubator-allura | Allura/allura/lib/helpers.py | Python | apache-2.0 | 38,038 | [
"VisIt"
] | bba6eeec80e9d63cc9b24c75bee1f66b1a1e8ffc59aed621f2339f642b210fe6 |
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# LICENSE
#
# Copyright (c) 2010-2017, GEM Foundation, G. Weatherill, M. Pagani,
# D. Monelli.
#
# The Hazard Modeller's Toolkit is free software: you can redistribute
# it and/or modify it under the terms of the GNU Affero General Public
# License ... | gem/oq-hazardlib | openquake/hmtk/seismicity/utils.py | Python | agpl-3.0 | 21,990 | [
"Gaussian"
] | 36764635470ef2c083104777a47f14066b84479d95273055b51b973ecef75fc4 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from qa_feedback.views import homepage
urlpatterns = [
... | milin/django-qa | config/urls.py | Python | bsd-3-clause | 1,418 | [
"VisIt"
] | 540d464d1e69658a8de807d0f62b2aeff20878e15ac5bc71a295d9050a30c51f |
r"""
=====================================================================
The Johnson-Lindenstrauss bound for embedding with random projections
=====================================================================
The `Johnson-Lindenstrauss lemma`_ states that any high dimensional
dataset can be randomly projected i... | RPGOne/Skynet | scikit-learn-0.18.1/examples/plot_johnson_lindenstrauss_bound.py | Python | bsd-3-clause | 7,474 | [
"Gaussian"
] | 27c0cbe9208a67017ea976d1bdbef669116726946a9fff768ce7345d4b3bf854 |
"""Functions to plot epochs data."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Jaakko Leppakangas <jaeilepp@student.jyu.fi>
# ... | larsoner/mne-python | mne/viz/epochs.py | Python | bsd-3-clause | 43,523 | [
"Gaussian"
] | 03a7bca89eff9735875a6716bf87ec0eab425e52c257259ca7186c9f3258f447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.