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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/python
# -*- coding: utf-8
# Copyright (C) 2010 - 2012, A. Murat Eren
#
# 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 lat... | jooolia/oligotyping | Oligotyping/utils/parsers.py | Python | gpl-2.0 | 23,979 | [
"BLAST"
] | 588ae9dd47044e38044d26eb14439604b8ef53be36b4be76c167e078e2b48a2a |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
"""Chain class, used in Structure objects."""
from Bio.PDB.Entity import Entity
__docfor... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/PDB/Chain.py | Python | gpl-2.0 | 4,035 | [
"Biopython"
] | cf09026171bcadca34bb9208851d038f141840027aab737944288f6ab750c9dd |
# Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap 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.... | brianmay/python-tldap-debian | tldap/methods/common.py | Python | gpl-3.0 | 4,413 | [
"Brian"
] | 88a194d37a7716f0e1c6038087c2dc35906050ea1d7b5b36f9d854e4b38896c4 |
import time, math, unicodedata
from zope.interface import implements
from twisted.internet import defer
from foolscap.api import fireEventually
import simplejson
from allmydata.mutable.common import NotWriteableError
from allmydata.mutable.filenode import MutableFileNode
from allmydata.unknown import UnknownNode, str... | drewp/tahoe-lafs | src/allmydata/dirnode.py | Python | gpl-2.0 | 38,853 | [
"VisIt"
] | 911d1fb4cb475b029772b9c80da232cb75b9f94a8ed82ecd2b021180d137c3e6 |
# Generated from MySQLParser.g4 by ANTLR 4.5.3
from antlr4 import *
class TableInfo:
table_name_to_alias = {}
table_alias_to_name = {}
on_conditions = []
@staticmethod
def reset():
TableInfo.table_name_to_alias = {}
TableInfo.table_alias_to_name = {}
TableInfo.on_conditions... | StefanLim0/mysql-er | sqlparser/antlr/MySQLParserVisitor.py | Python | mit | 7,488 | [
"VisIt"
] | 94eb41ec8a3609b7281a8318ddd492d6eece35015f61980e10a69d2867505ef0 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/tableview.py | Python | gpl-2.0 | 29,601 | [
"VisIt"
] | f18d11d970ac4baf218998bafef9cf9a9a89bcae0d44cb02dfb1d8d0ad592598 |
#============================================================================
# BALL - Example for a energy evaluations as it was used in Althaus
# et al. "A branch and cut algorithm for the optimal solution of the
# side-chain placement problem", 2000
#
# This example reads a PDB file and calculates a bonded energy... | tkemmer/ball | doc/examples/PYTHON/BALLView/energy_BV.py | Python | lgpl-2.1 | 2,138 | [
"Amber"
] | 80a1dfb59367dd3d66986054647ce95753081edc758523d11140fa6bb18d95af |
# -*- coding: utf-8 -*-
"""Package declaration for heroku_tools/settings.
Contains the CLI application settings (as distinct from the Heroku
application settings, which are in the config module.)
The settings themselves are loaded at the end of this module, and
are therefore available by importing settings.settings (... | lowks/heroku-tools | heroku_tools/settings/__init__.py | Python | mit | 4,047 | [
"BLAST"
] | 8087959f5e801141ac11a5cab01822ee33211a3e9b0d5aff68435fcff175d66f |
from __future__ import print_function, absolute_import, division
from future.builtins import *
from future import standard_library
standard_library.install_aliases()
# Copyright 2017 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with ... | Autodesk/molecular-design-toolkit | moldesign/models/pyscf.py | Python | apache-2.0 | 22,179 | [
"Molpro",
"PySCF"
] | 86e2500b4f5475a00f33bb1ab12f5d1e1a759d4be365f30dd92bd308406a56d4 |
# Autodetecting setup.py script for building the Python extensions
#
__version__ = "$Revision: 70850 $"
import sys, os, imp, re, optparse
from glob import glob
from platform import machine as platform_machine
from distutils import log
from distutils import sysconfig
from distutils import text_file
from distutils.err... | Lh4cKg/sl4a | python/src/setup.py | Python | apache-2.0 | 82,962 | [
"VisIt"
] | 801f040a652d30bba1495bff67754a665446b49391f71c0283d1edec4b78a760 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module contains the class describing the coordination geometries that can exist in a given structure. These
"model" coordination geometries are described in the following articles :
- Pure Appl. Chem... | gmatteo/pymatgen | pymatgen/analysis/chemenv/coordination_environments/coordination_geometries.py | Python | mit | 56,971 | [
"Jmol",
"pymatgen"
] | 4c24076357bad7f266ad84402b145097dc2ffc18b93e6b7a52141670e0dc4d35 |
# -*- coding: utf-8 -*-
#
# precise_spiking.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License... | weidel-p/nest-simulator | pynest/examples/precise_spiking.py | Python | gpl-2.0 | 5,092 | [
"NEURON"
] | 211791df98bb1e13c427d7976b7cc8372bdf6d1adb208a6e482315d0475dab84 |
#!/bin/env/python
import collections
import os
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sb
import pandas as pd
import pathlib as pl
# from . import files
from . import amm_results2 as res
# from . import amm_methods as ameth
# sb.set_context('poster')
# sb.set_con... | dblalock/bolt | experiments/python/amm_figs2.py | Python | mpl-2.0 | 41,039 | [
"Gaussian"
] | 14dbf2e3a286a344f5f2d49f29a0c657156ecf89d4a4b827e76bc61d7069694d |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | mfherbst/spack | var/spack/repos/builtin/packages/r-a4/package.py | Python | lgpl-2.1 | 1,848 | [
"Bioconductor"
] | 49b81c0f0b876e2a5706bba572e449a0a87d8acc418bc13aa3711a91b0e95aa8 |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | skosukhin/spack | var/spack/repos/builtin/packages/r-geoquery/package.py | Python | lgpl-2.1 | 2,093 | [
"Bioconductor"
] | fd34d56bac1923e7bd63f284909443f3379c4dfc2b02b20b77168d1d397c2d9b |
#!/usr/local/sci/bin/python
# PYTHON23
#
# Author: Kate Willett
# Created: 22 June 2015
# Last update: 15 Feb 2021
# Location: /home/h04/hadkw/HadISDH_Code/CLIMEXPLORER/PYTHON/
# GitHub: https://github.com/Kate-Willett/Climate_Explorer/tree/master/PYTHON/
# -----------------------
# CODE PURPOSE AND OUTPUT
# --------... | Kate-Willett/Climate_Explorer | PYTHON/PlotAnyMap.py | Python | cc0-1.0 | 33,032 | [
"NetCDF"
] | a23bf612de5f922893e548009e9bcb0f1ab744657063d310c6cb96fea10bb19a |
"""
This module contains code to conduct iterative HMMer searches in Goat. From a
starting HMM or MSA, a forward HMMer search is conducted, followed by reverse
BLAST to identify any positive hits. Positive hits are added to the HMM and the
HMMer search is conducted again. This process is iterated until no more hits
are... | chris-klinger/Goat | analyses/iterative_hmmer_blast.py | Python | gpl-3.0 | 343 | [
"BLAST"
] | d2742c810d229f4c982d559c56f6426650fbbcbc4960b4a6545b044d6c1969ab |
from django.core.urlresolvers import reverse
from django.db import models
from edc_base.audit_trail import AuditTrail
from edc_base.model.models import BaseUuidModel
from edc_export.models import ExportTrackingFieldsMixin
from edc_sync.models import SyncModelMixin
from lis.specimen.lab_aliquot.managers import AliquotM... | botswana-harvard/microbiome | microbiome/apps/mb_lab/models/aliquot.py | Python | gpl-2.0 | 2,996 | [
"VisIt"
] | 4804c58f5d899f3be51046654b31003cc6ae37ea8930bf3a39109066ad0a13aa |
# Copyright (C) 2012,2013,2016
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of ... | espressopp/espressopp | src/tools/info.py | Python | gpl-3.0 | 2,821 | [
"ESPResSo"
] | 76dbf716f61e106b8692dad4122025d3b33058129d51d315cd9c378887e3929b |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
This implements the method described in Tang et al. 2010 PNAS paper,
<http://www.pnas.org/content/107/1/472>
Angiosperm genome comparisons reveal early polyploidy in the monocot lineage
The main pipeline assumes starting with defined synteny blocks in .anchors
format... | tanghaibao/jcvi | jcvi/compara/pad.py | Python | bsd-2-clause | 9,149 | [
"BLAST"
] | cd32a8ddd18a25a6cb0d73da710e4949def877ad90c31c28cfb0609b51369b05 |
"""
Default Django settings. Override these with settings in the module pointed to
by the DJANGO_SETTINGS_MODULE environment variable.
"""
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
def gettext_noop(s):
return s
####... | frankvdp/django | django/conf/global_settings.py | Python | bsd-3-clause | 21,955 | [
"VisIt"
] | 88dd30e166c2439864e368c6787a77740d3b4660cc9987c60185970ba1d57f87 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pylid
from collections import Counter
da = pylid.PyLID(3)
da.total_ngrams = 276913871
da.lang = 'da'
da.ngrams = Counter({
u'er#': 5057266,
u'#de': 3325690,
u'en#': 3164079,
u'et#': 3077357,
u'for': 2560007,
u'#fo': 2199578,
u'de#': 1968... | dmort27/pylid | pylid/langs/da.py | Python | mit | 309,318 | [
"ADF",
"ASE",
"BWA",
"CDK",
"EPW",
"Elk",
"MOE",
"VMD",
"VTK",
"xTB"
] | 89d7577d7d94a151f654b4b9df086dcaaf18d2447fdaef69bcf4c25e756f660b |
# Author: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
#
# Copyright (C) 2011-2014 Murphy Lab
# Lane Center for Computational Biology
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | icaoberg/ricerca | setup.py | Python | gpl-3.0 | 2,023 | [
"VisIt"
] | c76b126929fcce71bccb1265852a51f976f9a375b06939edd092239c913b54dd |
# TODO: Determine which tests are valid for GLSAR, and under what conditions
# TODO: Fix issue with constant and GLS
# TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None
# TODO: GLS: default if sigma is none should be two-step GLS
# TODO: Check nesting when performing model based tests, lr, wald,... | wwf5067/statsmodels | statsmodels/regression/linear_model.py | Python | bsd-3-clause | 92,203 | [
"Gaussian"
] | 076110aa09b581b1d6d47c186e988ca8d8292a5e261cc8aca1aacbf3306b66d4 |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | xguse/scikit-bio | skbio/draw/_distributions.py | Python | bsd-3-clause | 30,987 | [
"scikit-bio"
] | acca8da01023d8a913ba5aa7fb836020b116adfab86c955a182dfbfc73b3cf3a |
# Be friendly
import random
from espresso.main import robot
HELLOS = [
"Well hello there!"
"Hello!",
"Hi there!",
"Hallo!"
]
@robot.respond(r'(?i)(hi)|(hello)|(howdy)|(hallo)')
def hello(res):
res.reply(res.msg.user, random.choice(HELLOS))
| ratchetrobotics/espresso | plugins/hello.py | Python | bsd-3-clause | 264 | [
"ESPResSo"
] | 309c5f1adea22853f49ebe86c24c3328a74272951955ce259c1f82568c085280 |
import logging
from kalliope.core import NeuronModule
from kalliope.core.NeuronModule import MissingParameterException
from kalliope.core.NotificationManager import NotificationManager
logging.basicConfig()
logger = logging.getLogger("kalliope")
class Signals(NeuronModule):
def __init__(self, **kwargs):
... | kalliope-project/kalliope | kalliope/neurons/signals/signals.py | Python | gpl-3.0 | 999 | [
"NEURON"
] | b3e26e5476a462c99c0068076ebbe4a8f45d657dde08c7f7edaf4189faeaf0aa |
'''
Sample script that visits a random profile from the quickmatch page,
and prints out most of the information in the profile.
'''
from pyokc import pyokc
u = pyokc.User()
p = u.quickmatch() # p is an instance of the Profile class
u.visit(p)
p.update_traits() # only necessary for if you want to fill in p.traits
pri... | tfmorris/pyokc | examples/profile.py | Python | mit | 1,159 | [
"VisIt"
] | 6e938ef55165989c26fae54928c57e85192e1e7edb23cfdd19f814cb3e4b244d |
""" Top-level module to build or re-build the JSON files for
FRB host galaxies"""
from pkg_resources import resource_filename
import os
import sys
import warnings
from IPython import embed
import numpy as np
import requests
import pandas
from astropy.coordinates import SkyCoord
from astropy import units
from astro... | FRBs/FRB | frb/builds/build_hosts.py | Python | bsd-3-clause | 17,619 | [
"Galaxy"
] | d5bcb57b9bb348bd000ba920593f34b76519ff7df3671a249a36a4cc2ee84bca |
'''
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... | melvon22/osmc | package/mediacenter-addon-osmc/src/script.module.osmcsetting.pi/resources/osmc/OSMCSetting.py | Python | gpl-2.0 | 31,988 | [
"VisIt"
] | 6942a23ed4d167ec180cac688d0eb94087d7cf140865322389b4786912ceaf0b |
import time
import warnings
import numpy as np
import tensorflow as tf
from stable_baselines.common import tf_util, OffPolicyRLModel, SetVerbosity, TensorboardWriter
from stable_baselines.common.vec_env import VecEnv
from stable_baselines.common.math_util import safe_mean, unscale_action, scale_action
from stable_bas... | hill-a/stable-baselines | stable_baselines/sac/sac.py | Python | mit | 30,431 | [
"Gaussian"
] | 74f210fe1ee424be07c8d5fb09f1be454ce25563fd8b9832a1125e8442411228 |
# coding=utf-8
# Copyright 2022 The Uncertainty Baselines Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | google/uncertainty-baselines | baselines/cifar/sngp.py | Python | apache-2.0 | 29,003 | [
"Gaussian"
] | 856aaf257e097015fba12ac265292e155a5be9a2edd73e1a21ce174269d4d1dc |
# coding: utf-8
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN 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 o... | NAMD/pypln.backend | tests/test_worker_extractor.py | Python | gpl-3.0 | 10,233 | [
"NAMD"
] | d384ce9acb971a7d786bddad3a945deceb4bc0fdee86a519112433dcf49e2d53 |
#!/usr/bin/env python
# This file is part of PRAW.
#
# PRAW 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.
#
# PRAW is distributed in... | x89/praw | praw/tests/__init__.py | Python | gpl-3.0 | 75,843 | [
"VisIt"
] | 7ca1cb2297ace6702339125e21167ca8158a3563d768993b6ea7f52231c1a1df |
""" 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,... | bkendzior/scipy | scipy/stats/tests/test_distributions.py | Python | bsd-3-clause | 111,178 | [
"Gaussian"
] | cb32e7532a79fdd5d6aa93e54c2f7990df048df98c124012d4695d6a8114ec9e |
# (c) 2014, Brian Coca, Josh Drake, et al
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
cache: jsonfi... | azaghal/ansible | test/support/integration/plugins/cache/jsonfile.py | Python | gpl-3.0 | 2,004 | [
"Brian"
] | f13768cdc3c54f61e7d77ec3c9ffd45cda2415b891ad4be7ad7383133d94df6a |
"""Bayesian Gaussian Mixture Model."""
# Author: Wei Xue <xuewei4d@gmail.com>
# Thierry Guillemot <thierry.guillemot.work@gmail.com>
# License: BSD 3 clause
import math
import numpy as np
from scipy.special import betaln, digamma, gammaln
from .base import BaseMixture, _check_shape
from .gaussian_mixture impo... | chrsrds/scikit-learn | sklearn/mixture/bayesian_mixture.py | Python | bsd-3-clause | 33,009 | [
"Gaussian"
] | e54297397d5427973da431c8f27eedc3f53b16ba6e924de70c1c2ae9d64d733c |
#!/usr/bin/env python
# Copyright 2014-2020 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... | sunqm/pyscf | pyscf/eph/rks.py | Python | apache-2.0 | 8,073 | [
"PySCF"
] | 7c602086c9720407cc94bc860689c6bdbd70f0b5e87e9f2a1a3b300294fb7972 |
#!/usr/bin/env python
# Copyright 2014-2020 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... | sunqm/pyscf | pyscf/cc/qcisd_t_slow.py | Python | apache-2.0 | 5,395 | [
"PySCF"
] | 4c1e71f8e07d4f5b691266a7e092a6f2b2ffb110de67bd74b827e13246ccf0c9 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
from textwrap import dedent
from uuid import uuid4 as uuid
from collections import deque
from ruffus import *
import subprocess
from threading import Thread
from optparse import OptionParser
import multiprocessing
from math import frexp
import os, sys
exe_p... | Vmakarova/parallelblast | parallelblastwithcheck.py | Python | apache-2.0 | 17,887 | [
"BLAST"
] | 9cc33bdedb07bfc9fb3dbbed69b83db752b753e6e96795984f86e76ced181085 |
# Lint as: python3
"""Statistical models based on Neural Networks."""
import dataclasses
from typing import Any, Callable
from epi_forecast_stat_mech.statistical_models import base
from epi_forecast_stat_mech.statistical_models import probability as stat_prob
from epi_forecast_stat_mech.statistical_models import tree_u... | HopkinsIDD/EpiForecastStatMech | epi_forecast_stat_mech/statistical_models/network_models.py | Python | apache-2.0 | 6,853 | [
"Gaussian"
] | 24e46c9df70d543f3bfef1128c4d8287f2835c2720ff6aa9a5aa89e24ba93452 |
#!/usr/bin/env python
import glob, os, os.path, shutil, socket, struct, tarfile, stat
import numpy, sys, presto, time, sigproc, sifting
import psr_utils as pu
institution = "NRAOCV"
base_tmp_dir = "/dev/shm/"
base_output_dir = "/home/sransom/results/GBT/drift"
#-------------------------------------------------------... | pscholz/presto | bin/GBT350_drift_search.py | Python | gpl-2.0 | 28,291 | [
"Gaussian"
] | adf64eb04a3623cad961d23289acbbcccd0a9396b380965df74b7e3691f71a22 |
import torch
from src.python.preprocess2 import *
from src.python.geneontology import *
from src.python.baselines import *
from src.python.dingo_utils import *
from src.python.dingo_net2 import *
from tqdm import tqdm
import itertools
# def get_metric(metric):
# cache = dict()
#
# def do_metric(seq1, s... | yotamfr/prot2vec | src/python/digo2.py | Python | mit | 11,505 | [
"BLAST"
] | bcd7130d6fc4bd34af3ae1a7ffda132ac797ea5739a78a6bde5eceeec34d6d8b |
# -*- coding: utf-8 -*-
"""
sphinx.pycode
~~~~~~~~~~~~~
Utilities parsing and analyzing Python code.
:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from os import path
from sphinx import package_dir
from sphinx.errors import PycodeErr... | waseem18/oh-mainline | vendor/packages/sphinx/sphinx/pycode/__init__.py | Python | agpl-3.0 | 13,014 | [
"VisIt"
] | c24756b145bd53162a6135c03d1c27b4f565010c0563b6354b3e8b60b1f28484 |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | TheTimmy/spack | var/spack/repos/builtin/packages/gromacs/package.py | Python | lgpl-2.1 | 3,856 | [
"Gromacs"
] | 6f6ae9d877fe1b59696b66f225fc3fc0c75381f1c799f8fd3b6dd3fe7760fd7a |
from paraview.simple import *
import ReaderSync
from math import *
import time
#execfile('/home/fbordeu/projects/PGD/ParaviewPXDMFReader/Python/ReaderSync.py')
sync = ReaderSync.ReaderSync()
nbdims = len(sync.maxs.keys())
offset = 2*pi/nbdims
for i in range(200):
for j in range(nbdims):
key = sync.maxs.keys()[j]... | aleygue/PxdmfSuite | ParaviewPXDMFReader/PGDTools/ParavieAnim.py | Python | bsd-3-clause | 575 | [
"ParaView"
] | ad0e039ebcc3c0c237e00af07465bac4fd7297b37365916b6f3ad3f246296c35 |
"""
Course Outline page in Studio.
"""
import datetime
from bok_choy.page_object import PageObject
from bok_choy.promise import EmptyPromise
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from .course_p... | shubhdev/openedx | common/test/acceptance/pages/studio/overview.py | Python | agpl-3.0 | 23,921 | [
"VisIt"
] | 17a69d128e3a6286667e1d8fcc5be1c6415657e4d350800b770e7744f7ebc649 |
from __future__ import division, print_function
from sklearn import mixture
from sklearn.neighbors import KernelDensity
from astroML.density_estimation import XDGMM
from mpl_toolkits.axes_grid1 import make_axes_locatable
from scipy.optimize import curve_fit
from astroML.plotting import hist
from matplotlib import cm
im... | astrofelipe/MP2015 | VPD.py | Python | mit | 9,762 | [
"Gaussian"
] | 8cc9b620cacb8f763cc5f6afb2d3fa4438b18e8d8fa8d2577261f9821d8ea69c |
#-*- coding:utf-8 -*-
"""
This file is part of exparser.
exparser 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.
exparser is distributed ... | lvanderlinden/exparser | exparser/TraceKit.py | Python | gpl-2.0 | 26,516 | [
"ASE"
] | d8e6b6dc1d5c0717e4f7461d6f428545f064472ce095a4194112c5f974c92159 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
from pathlib import Path
import json
import gzip
import numpy as np
import warnings
from shutil import copyfile, copyfileobj
from monty.tempfile import ScratchDir
import xml.etree.c... | gVallverdu/pymatgen | pymatgen/io/vasp/tests/test_outputs.py | Python | mit | 78,963 | [
"VASP",
"pymatgen"
] | 17cadd9c9ce949b070f9aa7df2d949bab823acf67a4c5f5ab857584bd8ef5ac2 |
#!/usr/bin/env python
# =============================================================================
# MODULE DOCSTRING
# =============================================================================
"""
Test force factories in forcefactories.py.
"""
# ==============================================================... | choderalab/openmmtools | openmmtools/tests/test_forcefactories.py | Python | mit | 7,983 | [
"MDTraj",
"OpenMM"
] | 13468eeef84838aa428c3cc4c67078cba4762ca8cbfe33941cffc168650bf2e7 |
# Copyright (c) 2017-2019 Uber Technologies, Inc.
# SPDX-License-Identifier: Apache-2.0
import torch
from torch.distributions import constraints
from pyro.contrib.gp.kernels.kernel import Kernel
from pyro.nn.module import PyroParam
class DotProduct(Kernel):
r"""
Base class for kernels which are functions of... | uber/pyro | pyro/contrib/gp/kernels/dot_product.py | Python | apache-2.0 | 2,648 | [
"Gaussian"
] | f8ce8758da6bc7b979df0e7369f368254b704894da51c0bf269f1e8d2089f3c3 |
"""
@name: Modules/House/Family/Insteon/_test/test_Insteon_Link.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2015-2020 by D. Brian Kimmel
@license: MIT License
@note: Created on Aug 16, 2015
@Summary:
"""
__updated__ = '2020-01-15'
# Import system type stuff
from twi... | DBrianKimmel/PyHouse | Project/src/Modules/House/Family/Insteon/_test/test_insteon_link.py | Python | mit | 1,520 | [
"Brian"
] | d3135ef9f86ef806ac7139fcfd55cec5028dc15be0a4d13cc05f0abbc0f52df1 |
'''
synbiochem (c) University of Manchester 2016
synbiochem is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
import sys
from Bio.Restriction.Restriction import RestrictionBatch
from Bio.Seq import Seq
from synbiochem.utils im... | neilswainston/development-py | synbiochemdev/design/digest.py | Python | mit | 1,303 | [
"VisIt"
] | 71ca4b4f6da3d88ad6c223ede754120aad360cbc925dd492665762e83f61ed09 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | rmcgibbo/psi4public | psi4/driver/qmmm.py | Python | lgpl-3.0 | 5,536 | [
"Psi4"
] | db0d606fe612491704f3bedbb5c1fcc065bb20fd1c85746bd97cf26c0f906b8e |
# coding: utf-8
from __future__ import unicode_literals, division
"""
Created on Jun 1, 2012
"""
__author__ = "Shyue Ping Ong, Stephen Dacek"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyue@mit.edu"
__date__ = "Jun 1, 2012"
import uni... | xhqu1981/custodian | custodian/vasp/tests/test_handlers.py | Python | mit | 22,701 | [
"VASP",
"pymatgen"
] | 461584f88c398475ba0cfd7077ec76e28eb33861f7ea37081fd1c393a9335e3d |
import glob
import os
import pandas as pd
import xarray as xr
import numpy as np
import numpy as np
import datetime as dt
import itertools
import yaml
import logging
import sys
from tqdm import tqdm
import tempfile
from . import apply_func
def parse_to_dataframe(list_or_dict_or_dataframe):
if type(list_or_dict_or_... | hendrikwout/pynacolada | pynacolada/archive.py | Python | gpl-3.0 | 86,666 | [
"NetCDF"
] | 8de8c84fd6a8c7fe0b99de80faefa17be20a788416bf789008b3e83c640e5b21 |
################################################################################
#
# esc_lib.py
#
# Library of electronic-structure related code.
#
################################################################################
#
# Copyright 2012 Kane O'Donnell
#
# This library is free software: you can redistribu... | HSINWEI/physics | python/esc_lib.old.py | Python | gpl-3.0 | 109,108 | [
"ABINIT",
"CASTEP",
"CRYSTAL",
"Elk",
"FHI-aims",
"Gaussian",
"NetCDF",
"VASP"
] | fe8ab5f51354f34ba619fd1d8e6a0845e8c66c67227169fa8d580fb7fd39884b |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
import random
def random_attack():
def attack(train, valid, x, y):
kwargs = {}
# randomly select parameters and their corresponding values
if random.randint(0,1): kwargs['mtries'] = random.randint(1,len(x))
if ... | kyoren/https-github.com-h2oai-h2o-3 | h2o-py/tests/testdir_algos/rf/pyunit_NOPASS_random_attack_medium.py | Python | apache-2.0 | 3,461 | [
"Gaussian"
] | 0db50eb36ee1585187da2682e1e40bb730c1055cbd514892c99a3826bdca3f71 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | yanchen036/tensorflow | tensorflow/contrib/autograph/converters/continue_statements.py | Python | apache-2.0 | 5,271 | [
"VisIt"
] | 7c19cdca3b7867f3a80efff77340380d3a70aa0d4f1c79a9a9fdf07d48c95062 |
"""
Ordered dictionary implementation.
"""
try:
from galaxy import eggs
eggs.require("six")
except ImportError:
# Allow code to operate outside Galaxy.
pass
from six.moves import UserDict
class odict(UserDict):
"""
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747
This dict... | ssorgatem/pulsar | galaxy/util/odict.py | Python | apache-2.0 | 2,222 | [
"Galaxy"
] | 24cf6d311fa4418562d5402e90c2f3d63d0ca073932c02e6be91c67e82cd017a |
"""
Transition Guide Python Example: TRANS_read_netCDF.py
- read netCDF file
- retrieve variable informations
Test_6h.csv
2.00;3.50;5.10;8.20
2.40;3.10;4.80;8.90
2.60;3.70;5.30;10.10
2.75;3.90;5.55;10.25
3.00;4.10;6.05;10.50
2018-08-28 kmf
"""
import numpy as np
import Ngl,Nio
print("")
#-- d... | KMFleischer/PyEarthScience | Transition_examples_NCL_to_PyNGL/read_data/test.py | Python | mit | 755 | [
"NetCDF"
] | aecf1c09ce9f44c45ee66a1cf8b97e5f185324e89e0b8065aa7f2a94945e48b8 |
"""Data Assimilation Effectiveness Quantification
Module of functions to evaluate the effectiveness of Data Assimilation
methods. Mainly the evaluation of effectiveness is done by computing the
KL-divergence between the analysis ensemble and the background ensemble along
with the data likelihood under the analysis ens... | hickmank/pyda | pyda/utilities/DA_quant.py | Python | apache-2.0 | 3,354 | [
"Gaussian"
] | cefd848a48a340e32e949b54945c1cf23ef8a3e2c2ad447adbd688a988992a81 |
# Copyright (C) 2012,2013,2016
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms... | kkreis/espressopp | src/tools/replicate.py | Python | gpl-3.0 | 2,830 | [
"ESPResSo"
] | 57d40aa52be85e2afae39783a824a44f6401b901ff7261dce812f32d6712c4c5 |
"""Minimal orthorhombic unitcells for bulk crystals"""
from ase import Atoms, view
from math import sqrt
binary_compounds = {
'LiF': (('Li', 1), ('F' , 1)),
'LiCl': (('Li', 1), ('Cl', 1)),
'NaF': (('Na', 1), ('F' , 1)),
'NaCl': (('Na', 1), ('Cl', 1)),
'TiC': (('Ti', 1), ('C' , 1)),
'VC... | qsnake/gpaw | scripts/solids.py | Python | gpl-3.0 | 7,113 | [
"ASE"
] | 8630239b82ace78915ae0eb3a3d09ef579097f545c6f5250ea7bf648847c096c |
"""
Test courseware search
"""
import os
import json
from nose.plugins.attrib import attr
from flaky import flaky
from ..helpers import UniqueCourseTest
from ...pages.common.logout import LogoutPage
from ...pages.studio.utils import add_html_component, click_css, type_in_codemirror
from ...pages.studio.auto_auth impo... | antonve/s4-project-mooc | common/test/acceptance/tests/lms/test_lms_courseware_search.py | Python | agpl-3.0 | 7,347 | [
"VisIt"
] | decb0b9a99581910f0d842947828e460d26e80fc6a0adb666972d932f8c59d39 |
#!/usr/bin/python
import Scientific.IO.NetCDF as nc
import numpy as np
import pylab as pl
import sys
if len(sys.argv) != 2 or '-h' in sys.argv or '--help' in sys.argv:
print "\nUsage:\tcompare.py <file.nc>\n"
print "Author:\tHannu Parviainen"
print "\thannu.p.parviainen@helsi... | dronir/EM | test/xrfip_em/compare.py | Python | gpl-3.0 | 1,776 | [
"NetCDF"
] | ee488edee1b2df115bcbaffbd624815a07d63d039431cc7f50241b7b475701a4 |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
from django.utils.translation import gettext_lazy as _
####################
# CORE #
####################
DEBUG = False
# Whether to use the "Etag" header. This saves ba... | tungvx/deploy | Django-0.90/django/conf/global_settings.py | Python | apache-2.0 | 7,854 | [
"VisIt"
] | 269e749f55b04abaf81fecb738d23ca316f8544c083402f7581ff69642602bb3 |
#!/usr/bin/env python
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#einit
#Essential Pathways v1.0.2
#Author:realasking
#Email:realasking@gmail.com,tomwangsim@163.com
#Aug-23,2017,in USTB
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
import sys
import os
import r... | realasking/essential-pathway | epw/einit.py | Python | lgpl-3.0 | 1,502 | [
"EPW"
] | 5638b08542164f48dd8d40edfa71b0538aa674a5073b988f15a38881c7bc2cd5 |
#
# libtcod 1.5.1 python wrapper
# Copyright (c) 2008,2009,2010 Jice & Mingos
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright... | xxxStanxxx/calaboucos-e-cachorros | win/libtcodpy.py | Python | mit | 60,714 | [
"Amber"
] | 9000860b65ec9850b0a20a3025a181719ea5104c4a7bb91cbbbb0385e9a921f4 |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Analytical nuclear gradients can be calculated with the background charges.
The nuclear gradients driver (nuc_grad_method) can be called the same way as
the regular calculations.
Note:
1. the mcscf nuclear gradients have to be calculated with t... | gkc1000/pyscf | examples/qmmm/20-grad.py | Python | apache-2.0 | 1,213 | [
"PySCF"
] | 1507e71bef0b8d33b483f84aba6a50e01835fff640503a9947d389476dcef061 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import logging
from math import ceil
import sys
import numpy as np
import tensorflow as tf
VGG_MEAN = [103.939, 116.779, 123.68]
class FCN8VGG:
def __init__(self, vgg16_npy_path=None):
... | mengli/PcmAudioRecorder | self_driving/road_seg/fcn8_vgg.py | Python | apache-2.0 | 18,314 | [
"Gaussian"
] | 892ee61d3c1c0432aab807077744baadbd1377822f99a3456df37e2b3c657769 |
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 29 15:09:25 2013
@author: ran110
"""
import fnmatch, os, subprocess
'''
- demg: elevation grid
- tmig: total magnetic intensity grid
- doseg: Radiometrics Dose Rate grid
- pctkg: Radiometrics Potassium Percentage grid
- ppmthg: Radiometrics Thorium parts p... | AuScope/VEGL-Portal | scripts/data-conversion/netcdf-rename.py | Python | gpl-3.0 | 2,044 | [
"NetCDF"
] | 165ef19e102ca728471c78da27fcc995b5683cd8fc829f448f1dec410fdc49ca |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RImpute(RPackage):
"""impute: Imputation for microarray data.
Imputation for micro... | rspavel/spack | var/spack/repos/builtin/packages/r-impute/package.py | Python | lgpl-2.1 | 896 | [
"Bioconductor"
] | 4677db1ad37864cc862d8cea79ca77f0aef690a8ff0f5180db324bd00c6e843e |
# Copyright 2012 Nebula, 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 agree... | NeCTAR-RC/horizon | horizon/base.py | Python | apache-2.0 | 40,078 | [
"VisIt"
] | 901131a86a16145fe8854264ff10ab3f074b0afeb23869581061ca40f4bb47b2 |
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | vmanoria/bluemix-hue-filebrowser | hue-3.8.1-bluemix/desktop/core/src/desktop/lib/django_forms.py | Python | gpl-2.0 | 18,454 | [
"VisIt"
] | b7969f15db1b2ddd173b22f073b6b53a45e9a984e73bd509b9c9545d21228a82 |
import numpy as np
import monti_carlo as mc
import matplotlib.pylab as plt
from scipy.stats import gaussian_kde
import scipy.integrate as itge
def basic_gaussian_monti_carlo():
# basic gaussian monti carlo
N = 10000
qfargs = (np.array([0.0,0.0]),3.0)
X = mc.monti_carlo_samples(mc.gaussian_random_qfunc,N,qf... | juhaj/topics-python-in-research | sample-answers/monti_carlo_gaussian.py | Python | gpl-3.0 | 550 | [
"Gaussian"
] | 0c68ad06ed961170c977aed46217fa7c6a727e18e2c011a185fb91fbba104b06 |
# 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 use ... | jimbobhickville/libcloud | libcloud/compute/providers.py | Python | apache-2.0 | 8,294 | [
"VisIt"
] | 201415e1b2adf99d6a268b619b7ddf2041c12ff014d27dfd8c655815a3524339 |
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2013 Brian Douglass bhdouglass@gmail.com
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Softwa... | bhdouglass/remindor-common | remindor_common/services/boxcar.py | Python | gpl-3.0 | 1,338 | [
"Brian"
] | e0d49494b852921b0304c7f2628fb9744c4f028a4e5a5007fa2e6faab414abce |
"""
Recurrent layers.
TODO: write more documentation
"""
__docformat__ = 'restructedtext en'
__authors__ = ("Razvan Pascanu "
"KyungHyun Cho "
"Caglar Gulcehre ")
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import numpy
import copy
import theano
import theano.tensor as TT
# Nicer i... | hezhenghao/GroundHog | groundhog/layers/rec_layers.py | Python | bsd-3-clause | 61,607 | [
"Gaussian"
] | a61c461fc875cbaedf968a551903143c7b3c1f3d7e237a6213b4efdd9df10efd |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (... | 2013Commons/hue | apps/useradmin/src/useradmin/tests.py | Python | apache-2.0 | 28,036 | [
"MOE"
] | cde91bcbecd5776fa8de346d6fd06a3a2f5883436081c7e991e5dcbf28947747 |
../../../../../../../share/pyshared/orca/scripts/apps/gnome-mud/__init__.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/gnome-mud/__init__.py | Python | gpl-3.0 | 75 | [
"ORCA"
] | 79eed7b7767288ee77856c706cf6a543324bd36f63b5cd74a8b79e89da671ea4 |
import torch
#
# def test_fi():
# input = torch.LongTensor([[0, 0], [0, 1], [1, 0], [1, 1]])
# expected = torch.LongTensor([0, 1, 2, 3])
#
# actual = gaussian.fi(input, (2,2))
#
# print(actual)
#
#
# def test_fi_mat():
# input = torch.LongTensor([[[0, 0], [0, 1], [1, 0], [1, 1]]])
# expected = t... | MaestroGraph/sparse-hyper | tests/tests.py | Python | mit | 761 | [
"Gaussian"
] | f93187942d9a190d90e09f49e547a6970e82936fcf9258bc391ba5e55ff4b1d3 |
"""
Unit tests for reads objects. This is used for all tests
that can be performed in isolation from input data.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
import ga4gh.server.datamodel.reads as reads
import ga4gh.schemas.protocol... | ga4gh/server | tests/unit/test_reads.py | Python | apache-2.0 | 9,352 | [
"BWA"
] | ebfdb9ac5aead84097c093e805c23bde830158be7d9716931d168b8905802e96 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes 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
#
# Unle... | beyondblog/kubernetes | hack/verify-flags-underscore.py | Python | apache-2.0 | 8,858 | [
"VisIt"
] | 5113f21e31e0fe60088b55ef38fecf25d9e50576b3051fe6ead7b3377395e1cd |
# -*- coding: utf-8 -*-
import unittest
import os
from os.path import (
join,
abspath,
dirname
)
import json
from tempfile import NamedTemporaryFile
import filecmp
import conftest
from libnano.fileio import gb_reader, gb_writer
LOCAL_DIR: str = abspath(dirname(__file__))
class TestGBWriter(unittest.TestC... | libnano/libnano | tests/gb_writer_test.py | Python | gpl-2.0 | 1,651 | [
"Biopython"
] | 194138a65a1ac4afb7a381593a93a2a2a47361fff712921628d09216b841ceec |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('visit', '0055_auto_20150815_0213'),
]
operations = [
migrations.AddField(
model_name='visit',
name='... | koebbe/homeworks | visit/migrations/0056_visit_involvement_types.py | Python | mit | 461 | [
"VisIt"
] | 1085de930dcd83835c643654146764309739d93c0b739f9be097c5db454370e6 |
#!/usr/bin/env python
#
# Copyright (c) 2000 Autonomous Zone Industries
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
#
import re
import string
import types
import binascii
import std
true = 1
false = 0
import mojo... | zooko/egtp | common/mojosixbit.py | Python | agpl-3.0 | 7,266 | [
"VisIt"
] | a2eb5483be85ebe53fb120799aff6541e4d14aad9e92e59d0c871e3b02377b92 |
# This file is part of the py-boinc-plotter,
# which provides parsing and plotting of boinc statistics and
# badge information.
# Copyright (C) 2013 obtitus@gmail.com
#
# 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 Fr... | obtitus/py-boinc-plotter | pyBoincPlotter/parse.py | Python | gpl-3.0 | 21,387 | [
"VisIt"
] | 5eff716230bdce5536509a36c54c1a226145b466b1b3fec22fb65cd0aa2d00f8 |
from coalib.core.CircularDependencyError import CircularDependencyError
def traverse_graph(start_nodes, get_successive_nodes,
run_on_edge=lambda prev, nxt: None):
"""
Traverses all edges of a directed, possibly disconnected graph once.
Detects cyclic graphs by raising a ``CircularDepend... | Shade5/coala | coalib/core/Graphs.py | Python | agpl-3.0 | 1,951 | [
"VisIt"
] | bddcf7efba2a9df4137e9a8b844bf23419abef3864b6e1efdf565809583be584 |
"""
Enterprise Offer Discount tests
"""
from regression.pages.common.utils import (
extract_discount_value_from_response,
extract_numerical_value_from_price_string
)
from regression.pages.enterprise.enterprise_const import (
DEFAULT_COURSE_PRICE,
ENT_CUSTOMER_CATALOG_UUID,
ENTERPRISE_NAME
)
from re... | edx/edx-e2e-tests | regression/tests/enterprise/test_percentage_discount_ent_offer.py | Python | agpl-3.0 | 2,983 | [
"VisIt"
] | cf967d2b4e074ef4ae502a338c8e075abd2058a3efcda59843427c6dfa296069 |
# -*- coding: utf-8 -*-
"""
Test for matlab problems
"""
import time
from ...pages.lms.matlab_problem import MatlabProblemPage
from ...fixtures.course import XBlockFixtureDesc
from ...fixtures.xqueue import XQueueResponseFixture
from .test_lms_problems import ProblemsTest
from textwrap import dedent
class MatlabProb... | MakeHer/edx-platform | common/test/acceptance/tests/lms/test_lms_matlab_problem.py | Python | agpl-3.0 | 3,475 | [
"VisIt"
] | 1088ae66d14f027758125b0907384bcd552420c2d6a1cd9f892aea1dd6945564 |
""" This is a test of the DIRACCAProxyProvider
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=invalid-name,wrong-import-position,protected-access
import os
import re
import sys
import shutil
# TODO: This should be modernised to use sub... | yujikato/DIRAC | src/DIRAC/Resources/ProxyProvider/test/Test_DIRACCAProxyProvider.py | Python | gpl-3.0 | 7,303 | [
"DIRAC"
] | 6a7b8d85ea8b8d347f166e32ae9fdc2724cd7066ea107126fbe292dd99b2e6b4 |
# coding: utf-8
"""
MINDBODY Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impor... | mindbody/API-Examples | SDKs/Python/swagger_client/models/add_client_to_class_visit.py | Python | bsd-2-clause | 26,396 | [
"VisIt"
] | 1e0c8a284f9e15ed138570dbac1b003bdc132a3db827e6199f63fbc6c61a4eb1 |
# common functions
from commonparameters import *
import numpy as np
import scipy.optimize
import subprocess
from itertools import count
import ConfigParser # import setting file
from optparse import OptionParser
import sys, os, time
from subprocess import Popen, list2cmdline
import glob
import time #check time of cal... | lavecchia/cosmo | commonfunctions.py | Python | gpl-2.0 | 27,976 | [
"Gaussian",
"MOPAC"
] | 6f9e61d804b68fd98250a43495bbee9bb55e156e1f7193aa3471e5b675909568 |
# Copyright (c) 2012-2014 The GPy authors (see AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from scipy import stats, special
from . import link_functions
from .likelihood import Likelihood
from .gaussian import Gaussian
from ..core.parameterization import Param
from param... | befelix/GPy | GPy/likelihoods/mixed_noise.py | Python | bsd-3-clause | 3,266 | [
"Gaussian"
] | 6cefa342049a5072291a1f4cc79817f6dd7dd047ae44ec7a53f1fb161ea760c9 |
import os
import json
import base64
from lacore.adf.elements import (Archive, Meta, Links, Certificate,
Signature, Auth)
from lacore.adf.persist import make_adf, load_archive
from behave import step
from tempfile import NamedTemporaryFile
@step(u'I have 1 available archive')
def one_... | longaccess/longaccess-client | features/steps/archive.py | Python | apache-2.0 | 6,361 | [
"ADF"
] | 2e808eaddb4ab24e8d4cb9b9620d7fa56e853010566d917413e2f456b7c83e12 |
import urllib2
i = 1
places = ["Addison", "Algonquin" ,"Arlington Heights", "Barrington", "Barrington Hills" ,
"Bartlett" ,"Bensenville" ,"Bloomingdale", "Buffalo Grove" ,"Carol Stream" ,"Carpentersville" ,
"Des Plaines" ,"Dundee", "East Dundee", "Elgin" , "Elk Grove Village", "Elmhurst", "Glen Ellyn" ,
"Glendale Hei... | ColdSauce/House-of-Reps-STEM-Finder | thingthing.py | Python | mit | 943 | [
"Elk"
] | 709e55febfbf0abbd9b0e0ffce295a95b03bb67cb56f561dbe4209ee1e5d01e4 |
import os
import string
gamess2qmc="gamess2qmc"
gamess="nohup nice /home/apps/gamess/rungms"
gos="/home/lkwagner/qmcsources/qmc_inherit/gos-Linux-3.2"
#We want to read the sysdef module from the current
#directory, so add this to Python's search path
import sys
sys.path.insert(0,".")
from sysdef import *
def print... | willwheelera/mainline | src/attic/md_drive.py | Python | gpl-2.0 | 5,427 | [
"GAMESS"
] | 629143f2d3e35d1b55c2b00a1bd543f077c370a6b769d68db86e8087e923f098 |
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import random
import time
import threading
import six
from six.moves import _thread as thread
from hashlib import md5
from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK
from DIRAC.Core.Utilities.DIRAC... | yujikato/DIRAC | src/DIRAC/Core/Utilities/LockRing.py | Python | gpl-3.0 | 3,081 | [
"DIRAC"
] | eeec0b36a314eff258c55f35ee08647409acd0e5228d787d649c85fa0013efb0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.