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
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 16.3.8
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | 0x46616c6b/ansible | lib/ansible/modules/network/avi/avi_sslkeyandcertificate.py | Python | gpl-3.0 | 5,603 | [
"VisIt"
] | 41e72dad41389b2e2561cc05f5af044577b1aea0eed2db8481df6a764ee47bfa |
# !usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-02-22 10:38:28
# @Last modified by: Brian Cherinka
# @Last modified time: 2017-07-31 12:07:00
from __future__ import print_function, division, absolute_import
from marvin.web.controll... | albireox/marvin | python/marvin/tests/web/test_galaxy.py | Python | bsd-3-clause | 3,224 | [
"Brian",
"Galaxy"
] | e6589ae36db72b7ff438f741efa1e2be295f26694b8519f1a3303a140a45b87b |
#! /usr/bin/python
# -*- coding: utf-8 -*-
"""versioneer.py
(like a rocketeer, but for versions)
* https://github.com/warner/python-versioneer
* Brian Warner
* License: Public Domain
* Version: 0.7+
This file helps distutils-based projects manage their version number by just
creating version-control tags.
For deve... | shiquanwang/numba | versioneer.py | Python | bsd-2-clause | 25,596 | [
"Brian"
] | 615c15f47b1a6d1d90d8f070f6a7db0fa39504a511f0938050d236b1cc7c4ed4 |
import mixtape.featurizer, mixtape.tica, mixtape.cluster, mixtape.markovstatemodel, mixtape.ghmm
import numpy as np
import mdtraj as md
from parameters import load_trajectories, build_full_featurizer
import sklearn.pipeline, sklearn.externals.joblib
import mixtape.utils
n_choose = 100
stride = 1
lag_time = 1
trj0, tr... | kyleabeauchamp/PMTStuff | code/test_cv_cluster.py | Python | gpl-2.0 | 1,688 | [
"MDTraj"
] | 5c14cef8e9c75a8427e6518cda875c3aa84a35847ce3fbd5159ea409cabd7455 |
# Written by Advi
# v1.2, NewAge: Removed 'Might Mortal' from daggers, no longer available in C3, added rest of weapons, replaced 'Bigsword' with 'Fist'
# v1.3 DrLecter: added adena support; NewAge: added correct prices/crystals
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.m... | Barrog/C4-Datapack | data/jscript/blacksmith/1007_enhance/__init__.py | Python | gpl-2.0 | 21,508 | [
"CRYSTAL"
] | 51bbd395be47c780fa86a70665902c5f62c437973d8a0a8d63acb8597fe87130 |
# -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
# vim: set shiftwidth=4 softtabstop=4 expandtab:
"""Support for reading meta-data and data NetCDF files, primarily
time-series data.
2014 Copyright University Corporation for Atmospheric Research
This file is part of the "django-ncharts" pa... | nguyenduchien1994/django-ncharts | ncharts/netcdf.py | Python | bsd-2-clause | 42,876 | [
"NetCDF"
] | fa13dff93890734bf1a1b06f386c61497ccfde99ed034a6547cbdce5779236ad |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from pymatgen.analysis.prototypes import AflowPrototypeMatcher
from pymatgen.util.testing import PymatgenTest
class AflowPrototypeMatcherTest(PymatgenTest):
def test_prototype_matching(self):
af = AflowPrototype... | vorwerkc/pymatgen | pymatgen/analysis/tests/test_prototypes.py | Python | mit | 1,375 | [
"pymatgen"
] | 76671448918a98b67b31d1b92bc98736c192dc86f7296007e6c7942b5bff3737 |
"""
DIRAC Wrapper to execute python and system commands with a wrapper, that might
set a timeout.
3 FUNCTIONS are provided:
- shellCall( iTimeOut, cmdSeq, callbackFunction = None, env = None ):
it uses subprocess.Popen class with "shell = True".
If cmdSeq is a string, it specifies the command string... | arrabito/DIRAC | Core/Utilities/Subprocess.py | Python | gpl-3.0 | 20,685 | [
"DIRAC"
] | 43658ac3d6267cafedfca689060108b458edcda0039fd7f9b5e999f9d35f0f74 |
# -*- coding: utf-8 -*-
"""
Output Plugin for WavPack
Copyright (c) 2006-2008 by Nyaochi
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)... | rinrinne/cueproc-alternative | src/ce_wavpack.py | Python | gpl-2.0 | 2,754 | [
"VisIt"
] | b92df44bb56881cb42c8263e219e5f88a90b54b0073eaf958f31f8a82a0df46d |
# This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2008 Jan Decaluwe
#
# The myhdl 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 t... | palashahuja/myhdl | myhdl/_extractHierarchy.py | Python | lgpl-2.1 | 13,013 | [
"VisIt"
] | d62b23340b6d89326ade2e77a3812eb6cb0872d2337f355625ccd849fa2533aa |
# -*- 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 Apache License, Version 2.0 (the
#... | akosel/incubator-airflow | tests/plugins/test_plugin.py | Python | apache-2.0 | 2,901 | [
"Galaxy"
] | 85edb103b7d4766f8fe57a3d5b622a54a7c76b5e32f38a24e5af67a4016d81c7 |
#!/usr/bin/env python
""" update local cfg
"""
from __future__ import print_function
import os
from DIRAC.Core.Base import Script
Script.setUsageMessage('\n'.join([__doc__.split('\n')[1],
'Usage:',
' %s [option|cfgFile] ... DB ...' % Script.scriptN... | fstagni/DIRAC | tests/Jenkins/dirac-cfg-update-server.py | Python | gpl-3.0 | 10,655 | [
"DIRAC"
] | 8e201cec82caf7bd072363e1b3ceb0b4854ba22cdeeb208c6dd5b7a79741e955 |
from distutils.core import setup
GNACS_VERSION_NUMBER = "1.0.1"
if '__main__' == __name__:
setup(
name='gnacs',
version=GNACS_VERSION_NUMBER,
author='Scott Hendrickson, Josh Montague, Jinsub Hong, Jeff Kolb, Brian Lehman, Fiona Pigott',
author_email='drskippy@twitter.com',
... | DrSkippy/Gnacs | setup.py | Python | bsd-2-clause | 767 | [
"Brian"
] | e763bcd3f48ab0bf5746f7177be7143d9e2f53f0056561980293f1fe01d9fae4 |
from __future__ import unicode_literals
import json
import requests
from bs4 import BeautifulSoup
from errors import AuthenticationError
HOME_URL = 'https://mol.medicover.pl/'
LOGIN_URL = 'https://mol.medicover.pl/Users/Account/LogOn'
FORM_URL = 'https://mol.medicover.pl/api/MyVisits/SearchFreeSlotsToBook/FormModel?... | jakubkbak/medicover-cli | medicover/api.py | Python | mit | 2,641 | [
"VisIt"
] | 0234e798c750c87ade8ed24897cc6869f6b074bb5c330eab6a602fca3d9d5106 |
#!/usr/bin/python -u
# -*- coding: utf-8 -*-
##### nohup ./infiniCharges.py > output.dat &
################################################################################
#
# InfiniCharges: A program to generate partial charges for periodic systems
# Copyright (C) 2015 Andrea Gabrieli and Marco Sant ... | cpctools/infinicharges | InfiniCharges.py | Python | gpl-3.0 | 51,513 | [
"CP2K"
] | e46600886fa6e930af44f366e98389e961e92503552d5d378b081133b123074e |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#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... | Excito/audiotools | audiotools/id3.py | Python | gpl-2.0 | 82,383 | [
"Brian"
] | 81aa7ccf5e0d52790199f1ab7c0b3c03e6d76c9b743d23d479c6cd4a073c79c3 |
# 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.
"""
Unit tests for the :class:`iris.coords.CellMethod`.
"""
# Import iris.tests first so that some things can be initialised b... | pp-mo/iris | lib/iris/tests/unit/coords/test_CellMethod.py | Python | lgpl-3.0 | 3,175 | [
"NetCDF"
] | f41c253b7a7a1b846b7503465fdfd8261597e2fe171ecc0e7ea1288fb9b65343 |
#!/usr/bin/env python
"""
Fix errors in a dataset.
For now, only removing erroneous lines is supported.
usage: %prog input errorsfile output
-x, --ext: dataset extension (type)
-m, --methods=N: comma separated list of repair methods
"""
import pkg_resources; pkg_resources.require( "bx-python" )
from bx.cookb... | volpino/Yeps-EURAC | tools/validation/fix_errors.py | Python | mit | 1,596 | [
"Galaxy"
] | 43a75c8215b93ad4cb425ba3a83181255b4b7552402da2186b280d664edf8c08 |
import enum
import sys
import unittest
from enum import Enum, IntEnum, unique, EnumMeta
from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL
pyver = float('%s.%s' % sys.version_info[:2])
try:
any
except NameError:
def any(iterable):
for element in iterable:
if element:
... | kharts/kastodi | resources/lib/enum/test_enum.py | Python | gpl-2.0 | 66,976 | [
"MOE"
] | dcdf9c64566cab4f11a9c1126e4c4d3cacce4838403cf1fcd2cf2e50eeb71b9e |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright © 2013 by Lasse Fister <commander@graphicore.de>
#
# This file is part of Multitoner.
#
# Multitoner 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, eith... | graphicore/multitoner | gtk_preview.py | Python | gpl-3.0 | 31,806 | [
"FLEUR"
] | dce1e9506c9cd02f0d97a144e258d26993ab301886ef02a2abfaf196fd033a89 |
#!/usr/bin/env python3
"""The influence of windowing of log. sweep signals when using a
Kaiser Window by fixing beta (=7) and fade_in (=0).
fstart = 100 Hz
fstop = 5000 Hz
Deconvolution: Unwindowed
"""
import sys
sys.path.append('..')
import measurement_chain
import plotting
import calculation
import ... | spatialaudio/sweep | log_sweep_kaiser_window_bandlimited_script6/log_sweep_kaiser_window_bandlimited_script6_1.py | Python | mit | 2,209 | [
"DIRAC"
] | 483871c882e7be19cd215083653b35a56e4b0fb56599d0dd869293b5f1df8c5e |
"""
Sheets for simulating a moving eye.
This module provides two classes, ShiftingGeneratorSheet, and
SaccadeController, that can be used to simulate a moving eye,
controlled by topographic neural activity from structures like the
superior colliculus.
ShiftingGeneratorSheet is a subclass of GeneratorSheet that accept... | ioam/svn-history | topo/sheet/saccade.py | Python | bsd-3-clause | 13,233 | [
"Gaussian"
] | b222bacf3481d1f036233ccd9ef82b36f560aee681119f8f812b5fa868c10030 |
import logs
import copy
import csv
import logging
import os
import random
import shutil
import string
import StringIO
import sys
import subprocess
import tempfile
import threading
class EnergyPlus(object):
"""Represents the Energy Plus command-line software.
This class provides a consistent interface to... | aarongarrett/idf2xml | idf2xml/eplus.py | Python | apache-2.0 | 25,729 | [
"EPW"
] | 3f1634c7a8fad4adf8ccf43a25e9489b8be3a1022756b12c01564c89e9682026 |
#
#
# setup.py
#
# Installation script to get setuptools to install pgradd into
# a Python environment.
#
import sys
import setuptools
# Import the lengthy rich-text README as the package's long
# description:
with open('README.rst', 'r') as fh:
long_description = fh.read()
setuptools_info = {
'name': 'pgradd',
'... | VlachosGroup/VlachosGroupAdditivity | setup.py | Python | mit | 1,456 | [
"RDKit"
] | 04f4f20eef87996368f4dc1da356bb36a280746884730861bf5a93a866cbebc3 |
# module pyparsing.py
#
# Copyright (c) 2003-2021 Paul T. McGuire
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, cop... | pradyunsg/pip | src/pip/_vendor/pyparsing/__init__.py | Python | mit | 9,107 | [
"VisIt"
] | 8d785e193153d5beabff85b1b8e134b9552a8a8b8b277587cce49ca4b89e4604 |
#***********************************************************************
# This code is part of CmplServer
#
# Copyright (C) 2013, 2014
# Mike Steglich - Technical University of Applied Sciences
# Wildau, Germany
#
# CmplServer is a project of the Technical University of
# Applied Sciences Wildau and t... | Mangara/ArboralExplorer | lib/Cmpl/cmplServer/cmplServer/cmplServerUi.py | Python | apache-2.0 | 15,730 | [
"VisIt"
] | 8fba1487bc35b19751a7ef9b132f26930270b41a8c35989f3e0bd70947ea313e |
"""
provide a generic structure to support window functions,
similar to how we have a Groupby object
"""
from __future__ import division
import warnings
import numpy as np
from collections import defaultdict
from datetime import timedelta
from pandas.core.dtypes.generic import (
ABCSeries,
ABCDataFrame,
... | Winand/pandas | pandas/core/window.py | Python | bsd-3-clause | 68,740 | [
"Gaussian"
] | d4e0ef6c531af6c4326db8b3d9e0385e495ef8c4ce07d34f5d07adcbd35d8f73 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.core.management import call_command
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Setting'
d... | 216software/Profiles | communityprofiles/profiles/migrations/0007_auto__add_setting.py | Python | mit | 28,556 | [
"MOE"
] | 7b20dd128d818ef595f907b52a3b80f5dab3939f50fc452e763943dcbbcb2d28 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# createdevaccount - create a MiG server development account
# Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | heromod/migrid | mig/install/createdevaccount.py | Python | gpl-2.0 | 3,468 | [
"Brian"
] | eddfaee1b1f6e856eb74d001e52fee9b1fba585d9700f4c743dd541e57a8c173 |
# coding=utf-8
# Copyright © 2016 Computational Molecular Biology Group,
# Freie Universität Berlin (GER)
#
# This file is part of ReaDDy.
#
# ReaDDy 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 Softwar... | chrisfroe/readdy | wrappers/python/src/python/readdy/api/conf/UnitConfiguration.py | Python | lgpl-3.0 | 3,542 | [
"Avogadro"
] | d474a79b2bae4f67faae72607041cb254702e5cc72812874188df6d32fc81be1 |
# -*- coding: utf-8 -*-
import itertools
import functools
import os
import re
import urllib
import logging
import pymongo
import datetime
import urlparse
from collections import OrderedDict
import warnings
import pytz
from flask import request
from django.core.urlresolvers import reverse
from modularodm import Q
from... | cosenal/osf.io | website/project/model.py | Python | apache-2.0 | 132,422 | [
"VisIt"
] | bb9d1e3eebdd7988375e366dd9b37681ab3a5efe35ae7aa3a77dc2f502dcd060 |
#!/usr/bin/env python
"""
Enable using one or more Storage Elements
Usage:
dirac-admin-allow-se SE1 [SE2 ...]
Example:
$ dirac-admin-allow-se M3PEC-disk
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.Core... | yujikato/DIRAC | src/DIRAC/DataManagementSystem/scripts/dirac_admin_allow_se.py | Python | gpl-3.0 | 6,852 | [
"DIRAC"
] | 7a914709b136d88edae52328aaff82366262722ba9b51ab7f26757178135a305 |
from __future__ import print_function, unicode_literals
import os
from shutil import copytree
if __name__ == '__main__':
src = os.path.dirname(os.path.abspath(__file__))
dest = os.path.join(os.path.split(src)[0], 'cdk')
if src != dest:
copytree(src, dest)
os.chdir(dest)
print("""\
#-------... | clld/cdk | fromdump.py | Python | apache-2.0 | 650 | [
"CDK"
] | 7faa75b6fee24873aabb4578a935a14f9c834391ee2050a74a2ac1d07196a44d |
# This file is meant primarily for people who want to see an example
# of how to use part of the OpenBabel API, with a secondary use as a
# set of quick unit tests to make sure there's no strange but obvious
# problem with your OpenBabel setup.
# Regression tests, coverage tests, stress tests, performance tests,
# etc... | nextmovesoftware/openbabel | scripts/python/examples/dalke_test.py | Python | gpl-2.0 | 45,293 | [
"Open Babel"
] | 8361e5b3a2a727d117801283d49cb476bd2724ba1637898119636f960d6021f4 |
# -*- coding: utf-8 -*-
'''The pluralize and singular methods from the pattern library.
Licenced under the BSD.
See here https://github.com/clips/pattern/blob/master/LICENSE.txt for
complete license information.
'''
import re
VERB, NOUN, ADJECTIVE, ADVERB = "VB", "NN", "JJ", "RB"
#### PLURALIZE #####################... | jonmcoe/TextBlob | textblob/en/inflect.py | Python | mit | 19,736 | [
"Elk",
"MOOSE",
"Octopus"
] | 6c7b21f889de5c1f572adec63f6eb42b75605293a970d4a1e5268fc2d8bb31b0 |
"""
Test the about xblock
"""
import datetime
from unittest import mock
from unittest.mock import patch
import ddt
import pytz
from ccx_keys.locator import CCXLocator
from django.conf import settings
from django.test.utils import override_settings
from django.urls import reverse
from edx_toggles.toggles.testutils im... | eduNEXT/edx-platform | lms/djangoapps/courseware/tests/test_about.py | Python | agpl-3.0 | 19,717 | [
"VisIt"
] | c05765bde3fcecae1887034755459c6d8cf003e96b91bcda8acdf2254695ec6e |
import doctest
import unittest
import mast.selection as mastsel
import mast.molecule as mastmol
import mast.system as mastsys
import mast.features as mastfeat
import mast.interactions as mastinx
import mast.tests.data as mastdata
import mast.config.molecule as mastmolconfig
import mast.config.system as mastsysconfig... | salotz/mast | mastic/tests/test_features.py | Python | mit | 3,721 | [
"RDKit"
] | 9ae827a4f5e7bc5e937622fc142bf196da86160507c46d7fb29fa54a878caa35 |
"""Visualisations of Radio Galaxy Zoo subjects."""
import astropy.io.fits
import matplotlib.colors
import matplotlib.pyplot
import numpy
from . import rgz_data as data
from .config import config
def image(im, contrast=0.05):
"""Plots an RGZ image.
im: NumPy array of an RGZ image.
contrast: Log scale par... | chengsoonong/crowdastro | crowdastro/rgz_show.py | Python | mit | 2,107 | [
"Galaxy"
] | c82966024381d243cd706aa090ffc58e7dea19020a28a0c1d3e27071784e06eb |
# Based on https://github.com/probml/pmtk3/blob/master/demos/gaussSeqUpdateSigma1D.m
# Converted by John Fearns - jdf22@infradead.org
# Sequential updating of Sigma in 1d given fixed mean
import superimport
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
from scipy.stats import invgamm... | probml/pyprobml | scripts/gauss_seq_update_sigma_1d.py | Python | mit | 2,299 | [
"Gaussian"
] | 5c63e70ed7e1e57f3bb99ca32bcfa7c845e39461bc5267833c9551bd36349628 |
from pyspark import SparkContext
from pyspark import SparkConf
# Initialize Spark context
conf = SparkConf()
sc = SparkContext()
# Turn on quiet(er) logging
def quiet_logs( s ):
logger = s._jvm.org.apache.log4j
logger.LogManager.getLogger("org"). setLevel( logger.Level.ERROR )
logger.LogManager.getLogger("akka... | mlinsenbard/481FinalProject | movieRecc.py | Python | mit | 8,315 | [
"CASINO"
] | cdc3c6c8fd67f7bac4e0ad4a7593e17142907b4b0532b1d62f7a20b5cd6ff475 |
# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | fmv1992/python-mode | pymode/libs/logilab-common-1.4.1/logilab/common/pytest.py | Python | lgpl-3.0 | 51,738 | [
"VisIt"
] | 9165725803f048ee2ee462f8c5ee4465bae3f928271d63028f2b2f207738ecac |
#!/usr/bin/env python
import os, sys, logging, string, textwrap
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
new_path.extend( sys.path[1:] )
sys.path = new_path
log = logging.getLogger()
log.setLevel( 10 )
log.addHandler( logging.StreamHandler( sys.stdout ) )
from galaxy import eggs
import pkg_resources
pkg_re... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/scripts/deprecate_repositories_without_metadata.py | Python | gpl-3.0 | 9,139 | [
"Galaxy"
] | 64b1805115dd9ea88064179736a4ebfd8035a62f6e6ae7f9b739cfcd9557365e |
"""
This python script encodes a video for Samsung Galaxy S5 Mini
Copyright 2016 Markus Kastner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | lomion0815/transcodeVideo | transcodeVideo.py | Python | gpl-3.0 | 7,207 | [
"Galaxy"
] | 15f44024953a4a959873d0eba4ded3e77420cd4d4522a0307c575a86e3c62150 |
"""
Simplest example to generate a .fit, .mod and .dat file to feed in MrMoose for
demonstration. The model consists of a double power-law with a break frequency
and six data points from a source at z=0
"""
import models as md
import numpy as np
import mm_utilities as mm
import read_files as rd
#def fake_sync_source... | gdrouart/MrMoose | examples/example_1c.py | Python | gpl-3.0 | 3,358 | [
"Gaussian"
] | 1c57af21395b70a9af1a68cf988d77cb52bddff18b543bf3936f16177f86fba6 |
from collections import defaultdict
from rdkit.Chem import BondType, rdMolDescriptors
from ._base import Descriptor
__all__ = ("TopoPSA",)
class TopoPSA(Descriptor):
r"""topological polar surface area descriptor(NO only: rdkit wrapper).
:type no_only: bool
:param no_only:
* True: N,O only TPSA... | mordred-descriptor/mordred | mordred/TopoPSA.py | Python | bsd-3-clause | 3,438 | [
"RDKit"
] | 52259f06c679e55fef29f6fba0031659161ac5233c586033cdb645344d40f0f4 |
#!/usr/bin/python
#
# portchecker.py
#
# Brian Bolander
#
#
import socket
import sys
import re
import pdb
import getopt
import os
"""
_______________________________________________________________________________
readportsfile
_______________________________________________________________________________... | bbolander/codex | python/portchecker/portchecker.py | Python | apache-2.0 | 5,154 | [
"Brian"
] | 163ad5f69cf40ee9ba0f9728e93bd38b93510d407a279d8ec247a1c3da1e73d6 |
import datetime
from businesstime.holidays import Holidays
class USFederalHolidays(Holidays):
"""
List from http://www.opm.gov/policy-data-oversight/snow-dismissal-procedures/federal-holidays/
"""
rules = [
dict(name="New Year's Day", month=1, day=1),
dict(
name="Birthday ... | seatgeek/businesstime | businesstime/holidays/usa.py | Python | bsd-2-clause | 1,651 | [
"COLUMBUS"
] | af61c9046a5aee41e855bd9cfc7f51d0922ec59e6c1f21c8cdd19e49657eff36 |
#
# 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 evilcryptopp
__doc__ = evilcryptopp._randsource_doc
get = evilcryptopp._randsource_get
import time
import sys
... | zooko/egtp | common/crypto/Python/randsource.py | Python | agpl-3.0 | 1,809 | [
"VisIt"
] | f6ead95fbd66770e6b49d28bb99cc660222b46b175d85f1aacd1fa68e41fcd78 |
# Copyright 2013 Velodyne Acoustics, 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... | frizaro/Veloview | VelodyneHDL/python/veloview/__init__.py | Python | apache-2.0 | 1,353 | [
"ParaView"
] | 23cb3d8ab4a542f98b76dfcb2304520238b46c2c6952a590322fcb8f8672632d |
import contextlib
import collections
import pickle
import re
import sys
from unittest import TestCase, main, skipUnless, SkipTest
from copy import copy, deepcopy
from typing import Any
from typing import TypeVar, AnyStr
from typing import T, KT, VT # Not in __all__.
from typing import Union, Optional
from typing impo... | marcinkwiatkowski/buck | third-party/py/typing/src/test_typing.py | Python | apache-2.0 | 65,695 | [
"VisIt"
] | 55327879019aa730abd56334975d818f131d6d56dbdb54600033b37f282250c9 |
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | tensorflow/gnn | setup.py | Python | apache-2.0 | 7,256 | [
"VisIt"
] | 6250f957e751a0459bf3d8132527fca230f5bcbad2dd10ac35fa3efcbc13c7ec |
#!/usr/bin/python3
import argparse
import os
import sys
import copy
import random
import pysam
import sys
import gffutils
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import gzip
def build_gene_dict(annotation_filename):
tr_gene_dict = {}
db_filename = "{}.db".format(anno... | AlgoLab/galig | paper/experiments/SimulatedData/tools/splitSalmonBAM.py | Python | gpl-3.0 | 5,273 | [
"pysam"
] | 2d022d6f98d0512b99b19048eb431364a5b034379302a5e9f190aae5a15a81b9 |
stations = { 'acheng': 'ACB',
'aershan': 'ART',
'aershanbei': 'ARX',
'aihe': 'AHP',
'aijiacun': 'AJJ',
'ajin': 'AJD',
'akesu': 'ASR',
'aketao': 'AER',
'alashankou': 'AKR',
'alihe': 'AHX',
'alongshan': 'ASX',
'amuer': 'JTX',
'ananzhuang': 'AZM',
'anda': 'ADX',
'a... | gglinux/python_demo | ticket/stations.py | Python | mit | 58,283 | [
"ADF",
"ASE",
"VTK"
] | 38b4e29d27b0da59366e48dda05496652ecbcda834f70e43beceec4ceb2ec6bf |
r"""
This module is a VTK Web server application.
The following command line illustrate how to use it::
$ vtkpython .../vtk_web_graph.py --vertices 1000 --edges 400
Any VTK Web executable script come with a set of standard arguments that
can be overriden if need be::
--host localhost
... | biddisco/VTK | Web/Applications/GraphLayout/server/vtk_web_graph.py | Python | bsd-3-clause | 6,341 | [
"VTK"
] | b4f856184e84dce39d28c35d1ab4392fbdbdf224b456beb1a46ce85a7a2290e7 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/example/learn/pytorch/super_resolution/super_resolution.py | Python | apache-2.0 | 11,377 | [
"ORCA"
] | 919db560dbcb868300557467f133d25992fe5c819fc6e817e3827a67d4aec0fd |
from __future__ import unicode_literals
from primesense import openni2
from primesense import _openni2 as c_api
import cv2
import time
import sys
import os
import random
import numpy as np
import matplotlib.pyplot as plt
from scipy import ndimage
# -------------------------------------------------------------
# i... | skamalas/depth2time | silhouettes.py | Python | mit | 4,734 | [
"Gaussian"
] | f9eca1045a4aaed913fb0f8d61fb99739ed1b41ddc81f38e3d70be104e5ecb69 |
# Copyright (c) 2015-2017 Lester Hedges <lester.hedges+slsm@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 Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | lohedges/slsm | python/minimise_perimeter.py | Python | gpl-3.0 | 7,029 | [
"ParaView",
"VTK"
] | 254145d135da0206a60db20a78d3ce45902317f0a5ee290b321cbf9f73371b32 |
""" Test class for JobWrapper
"""
import os
import shutil
import pytest
from mock import MagicMock
from DIRAC import gLogger
from DIRAC.DataManagementSystem.Client.test.mock_DM import dm_mock
from DIRAC.Resources.Catalog.test.mock_FC import fc_mock
from DIRAC.WorkloadManagementSystem.JobWrapper.JobWrapper import Job... | DIRACGrid/DIRAC | src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py | Python | gpl-3.0 | 4,245 | [
"DIRAC"
] | d003f4a5213a25958be1d0fe94582a566393cd07b8c54ae61647b924dde8159c |
"""
.. todo::
WRITEME
"""
import numpy as N
import copy
from theano import config
import theano.tensor as T
from pylearn2.utils.rng import make_np_rng
class CosDataset(object):
"""
Makes a dataset that streams randomly generated 2D examples.
The first coordinate is sampled from a uniform distribution... | skearnes/pylearn2 | pylearn2/datasets/cos_dataset.py | Python | bsd-3-clause | 3,767 | [
"Gaussian"
] | e3a22844a3b057b84f34989744a5dfea3dcd574d1658207efc2c086f63d9d28d |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/topology/test_pqr.py | Python | gpl-2.0 | 2,054 | [
"MDAnalysis"
] | 237b1cce6bd161b27ba96d6b7589f398ef8c16774c61c13e6f070910098950a8 |
# The MIT License (MIT)
# Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including wi... | CCI-Tools/ect-core | cate/core/ds.py | Python | mit | 33,154 | [
"NetCDF"
] | 12573c1bc8b69255d381c77f0b4f8ad29d110b2218ffe6338c6a81fbdc9605cc |
# Copyright 2011 by Eric Talevich. 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.
"""Phylogenetics command line tool wrappers."""
from ._Phyml import PhymlCommandline
from ._Ra... | zjuchenyuan/BioWeb | Lib/Bio/Phylo/Applications/__init__.py | Python | mit | 557 | [
"Biopython"
] | 35598990928fd0fe3f8197e15a957ad0ce9603eedb6758ea28815a8bc8b5aae9 |
"""
Tests traceorbit module. This module makes great use of Galpy so for
convenience a brief summary of Galpy coordinates is provided:
Galpy coordinates are [R, vR, vT, z, vz, phi]
By default, positions are scaled by LSR distance from galactic centre,
ro=8kpc, and velocities scaled by the LSR circular velo... | mikeireland/chronostar | unit_tests/debug_traceorbit.py | Python | mit | 10,294 | [
"Galaxy"
] | 96f4f5be7d55ed96bf396af7a1c3cfa9f05cf466822913e73824149ead034e08 |
from copy import deepcopy
import os
ROOT = os.path.dirname(os.path.abspath(__file__)) + '/'
from astropy import log as logger
from astropy.io import fits
import numpy as np
from numpy.random import normal
from .psf import GaussianPSF, FilePSF, FunctionPSF
from .filter import Filter
from .utils.plot import MakePlots
... | koepferl/FluxCompensator | fluxcompensator/cube.py | Python | bsd-2-clause | 25,142 | [
"Gaussian"
] | b7d1f37be8e536c4d571145b3b2e57935c54eb3579c294952eb4d452a2143350 |
# $Id$
#
# Copyright (C) 2008 Greg Landrum
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
"""piddleQt
This module implements the PIDDLE/Sping A... | soerendip42/rdkit | rdkit/sping/Qt/pidQt4.py | Python | bsd-3-clause | 10,601 | [
"RDKit"
] | a0b1fc680132aab8b117ae6f374c759ca50e16aa506053be51d68d5af777a140 |
#!/usr/bin/env python
#
# Authors: Gregory S Mendez and Bastian Bentlage
#
# This script fetches sequences listed in blast results files and writes out a plain text
# file to be used by another script to write new fasta files with the full length sequences
# using the def-lines listed in the blast results and a large f... | mendezg/DATOL | PepFromBlast.py | Python | gpl-2.0 | 4,106 | [
"BLAST",
"Biopython"
] | c21e7b1b63c0e31d65fae86ae9f67fede8455ab381c1db1f05734f79480fd641 |
"""
Implementations of Restricted Boltzmann Machines and associated sampling
strategies.
"""
# Standard library imports
import logging
# Third-party imports
import numpy
N = numpy
np = numpy
import theano
from theano import tensor
from theano.compat.six.moves import zip as izip
T = tensor
from theano.tensor import nne... | kastnerkyle/pylearn2 | pylearn2/models/rbm.py | Python | bsd-3-clause | 58,387 | [
"Gaussian"
] | 189a6b7eadb429e03f212a96018635fc29d237bd6173ebb45ee964881785a3a5 |
import os
from setuptools import setup
def get_version():
v = "0.0.0"
with open('treetime/__init__.py') as ifile:
for line in ifile:
if line[:7]=='version':
v = line.split('=')[-1].strip()[1:-1]
break
return v
with open("README.md", "r") as fh:
long_... | neherlab/treetime | setup.py | Python | mit | 1,687 | [
"Biopython"
] | 6835b5b0768e5c697c9c0ae9329dd72ea0b1606a242ceb5fec24913ecdaeecfa |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
import os
import h5py
import brainstorm as bs
from brainstorm.data_iterators import Minibatches
from brainstorm.handlers import PyCudaHandler
from time import time
bs.global_rnd.set_seed(42)
# ------------... | pinae/MNIST-Brainstorm | train.py | Python | gpl-3.0 | 2,537 | [
"Gaussian"
] | 7477e4bba5ad6fb506284227c65698e332eb06c1edf9a91abf7a501160ce6bc2 |
"""
This module finds diffusion paths through a structure based on a given
potential field.
If you use PathFinder algorithm for your research, please consider citing the
following work::
Ziqin Rong, Daniil Kitchaev, Pieremanuele Canepa, Wenxuan Huang, Gerbrand
Ceder, The Journal of Chemical Physics 145 (7), 0... | xhqu1981/pymatgen | pymatgen/analysis/path_finder.py | Python | mit | 18,284 | [
"Gaussian",
"VASP",
"pymatgen"
] | 16aa4826724a42dc92d8924c95b5736c1ba7d03e0e6ed8f9cf353e7d56241803 |
##############################################################################
# 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/gromacs/package.py | Python | lgpl-2.1 | 4,322 | [
"Gromacs"
] | 3347ec9508baed197390aefe30c6324bd15b5f07d49fe8074c99a6f04b4a2422 |
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU
# GPL v2 or later.
from __future__ import absolute_import
from __future__ import print_function
import warnings
import numpy as np
f... | ian-r-rose/burnman | burnman/mineral.py | Python | gpl-2.0 | 10,662 | [
"Avogadro"
] | 6efcfeaa1b45f97e74a2ff20d8a43a3223b8871a921dece311ff077a43b3e44c |
import pytest
import graphviz
from graphviz import parameters
VERIFY_FUNCS = [parameters.verify_engine,
parameters.verify_format,
parameters.verify_renderer,
parameters.verify_formatter]
@pytest.mark.parametrize(
'cls', [graphviz.Graph, graphviz.Digraph, graphviz.... | xflr6/graphviz | tests/test_parameters.py | Python | mit | 1,718 | [
"Brian"
] | 436f1218645b0f5f3936d57310db0cca08a4aadb108af20e34f76b78ea2baae9 |
"""
Flightplan loader plugin for X-Plane 10 v1.0.0
This plugin let you type your flight plan into the FMS.
For more informations, please refer to the README.md file.
This file is released under the GNU GPL v2 licence.
Author: Claudio Nicolotti - https://github.com/nico87/
If you want to update this plugin or create... | nico87/xp-plugins-fmsloader | PI_FMSLoader.py | Python | gpl-2.0 | 7,464 | [
"VisIt"
] | 105514b77740c328ab8438b62c66762a91d3752db1c8104485e139ed24d765c4 |
# coding: utf-8
# # Using Python to Access NCEI Archived NEXRAD Level 2 Data
# This notebook shows how to access the THREDDS Data Server (TDS) instance that is serving up archived NEXRAD Level 2 data hosted on Amazon S3. The TDS provides a mechanism to query for available data files, as well as provides access to th... | rsignell-usgs/notebook | NEXRAD/THREDDS_Radar_Server.py | Python | mit | 9,611 | [
"NetCDF"
] | f6840ce42c20ef3224edbcaf7785b48c95123495d6fb3445b20198af90247846 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# 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 Li... | brianmay/python-tldap-debian | tldap/tests/tests.py | Python | gpl-3.0 | 58,797 | [
"Brian"
] | 89692c759fda39a081e2e7d35db2d4fe502fdf647e73d79dc38d106d40130bde |
#! /usr/bin/python
'''
Binary Tree Traversal
'''
from node_struct import TreeNode
class Solution:
def preOrderTraversalNonRecursive(self, root):
output = list()
nodes_in_tree = list()
current_node = root
while len(nodes_in_tree) > 0 or current_node:
while current_node:... | shub0/algorithm-data-structure | python/tree_traversal.py | Python | bsd-3-clause | 6,044 | [
"VisIt"
] | a36dc18f3c65a70054794610084c2d1293abcc96328b4e7deee02fd99eeaddb0 |
"""DBF header definition.
TODO:
- handle encoding of the character fields
(encoding information stored in the DBF header)
"""
"""History (most recent first):
16-sep-2010 [als] fromStream: fix century of the last update field
11-feb-2007 [als] added .ignoreErrors
10-feb-2007 [als] added __getitem__: return... | kennethreitz/tablib | src/tablib/packages/dbfpy/header.py | Python | mit | 9,221 | [
"VisIt"
] | b64b8a30dd867890294001d09b4bf446e388a29171e275309b799325615cac9e |
import logging
import subprocess
from Queue import Queue
import threading
from galaxy import model
from galaxy.datatypes.data import nice_size
import os, errno
from time import sleep
log = logging.getLogger( __name__ )
class LocalJobRunner( object ):
"""
Job runner backed by a finite pool of worker threads.... | dbcls/dbcls-galaxy | lib/galaxy/jobs/runners/local.py | Python | mit | 8,816 | [
"Galaxy"
] | 20955c8f7b5708f44336734bb0a3684cd715bebeb8d1e786695ff99123f6f92a |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/analysis/test_hbonds.py | Python | gpl-2.0 | 8,612 | [
"MDAnalysis"
] | caeb5a5a48401508c506b0e0ab50c8c8bbb44f457f827b0d1ee38bf3fa182c83 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/peacock/tests/postprocessor_tab/test_VectorPostprocessorSelectPlugin.py | Python | lgpl-2.1 | 4,345 | [
"MOOSE"
] | a472eb9a6045d4b3ca7e1dcc23a1ce733500f3221c91d5e6ab34466d6cbddd1f |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-dataflow-client | tests/unit/gapic/dataflow_v1beta3/test_snapshots_v1_beta3.py | Python | apache-2.0 | 58,650 | [
"Octopus"
] | a4eb5f10c17e31470eb5861a78bfa1db3880fbb4dfab39362c604ea04d9ec887 |
import numpy as np
# This class generates a 2D dataset with two classes, "positive" and "negative".
# Each class follows a Gaussian distribution.
class SimpleDataSet:
""" A simple two dimensional dataset for visualization purposes. The date set contains points from two gaussians with mean u_i and std_i"""
de... | LxMLS/lxmls-toolkit | lxmls/readers/simple_data_set.py | Python | mit | 5,344 | [
"Gaussian"
] | 2e678c74fd940e9cdd2b288d6a7f93b0a1d01cac24eebd210e6ef4c4869f791d |
#!/usr/bin/env python2.6
import ssl
import xmlrpc.client
import configparser
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-f", "--from-slice-id", dest="fromSliceID",
help="From Slice ID, unique string")
parser.add_option("-t", "--to-slice-id", dest="toSliceID",
... | RENCI-NRIG/ahab | ahab_py/bin/performSliceStitch.py | Python | epl-1.0 | 2,317 | [
"ORCA"
] | 686129081b6d0698fe4d240693286159d1779512a4b3882a8a3cabbca48ca80f |
# -*- coding: utf-8 -*-
# run_cell.py ---
#
# Filename: run_cell.py
# Description:
# Author:
# Maintainer: P Gleeson
# Version:
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
# Sunday 16 September 2018 10:04:24 AM IST
# - Tweaked file to to make it compatible with moose.
#
#
#
# T... | BhallaLab/moose-examples | neuroml2/run_cell.py | Python | gpl-2.0 | 2,868 | [
"MOOSE"
] | 8db7611103d21f50f11aad8adbf84d958ff22ffb1db031ee31c804c782834027 |
# -*- coding: utf-8 -*-
import moose
import numpy as np
from collections import Counter
def xyPosition(objInfo,xory):
try:
return(float(moose.element(objInfo).getField(xory)))
except ValueError:
return (float(0))
def setupMeshObj(modelRoot):
''' Setup compartment and its members pool,react... | dharmasam9/moose-core | python/moose/chemUtil/chemConnectUtil.py | Python | gpl-3.0 | 7,694 | [
"MOOSE"
] | 33032dd6ecc01743ca0c3f9791a68f198cf212a4a154eba5ff9327224dc5553b |
# Copyright 2014 Sandra Giuliani
# config.py
# Configuration file for drug_repo.py
############################################################################
### PERSONAL INFO
############################################################################
# what is your name?
your_name = "Sandra"
# what is your emai... | sandygiuliani/drug_repo2 | config.py | Python | mit | 7,501 | [
"CRYSTAL"
] | d621cfb6eb948afa7f5fca944340e646f74708b39750f3ad8898fb824a4a5a79 |
import pytest
import os, shutil, glob
import numpy as np
from flare.struc import Structure, get_unique_species
from flare.dft_interface.qe_util import (
parse_dft_input,
parse_dft_forces,
run_dft_par,
edit_dft_input_positions,
dft_input_to_structure,
)
def cleanup_espresso_run(basename: str):
... | mir-group/flare | tests/test_qe_util.py | Python | mit | 3,856 | [
"ESPResSo"
] | 7326f145d9c53726e331e0d4873c8e057afafed1a9cc5a5291b246757a7c178e |
"""
This module implements an interface to the critic2 Bader analysis code.
For most Bader analysis purposes, users are referred to
pymatgen.command_line.bader_caller instead, this module is for advanced
usage requiring identification of critical points in the charge density.
This module depends on a compiled critic2... | gmatteo/pymatgen | pymatgen/command_line/critic2_caller.py | Python | mit | 33,962 | [
"CRYSTAL",
"VASP",
"pymatgen"
] | f2ef746d1ef9024c022e47408d994aee2230f5b6d13b70a2e47fa6e4f7ba2ece |
# Copyright (C) 2009 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# F... | vienin/vlaunch | vboxapi/VirtualBox_constants.py | Python | gpl-2.0 | 36,420 | [
"VisIt"
] | d1163e0f74057da764c3c7602de33e214b44ddbf6749da24ccc9cc841e21b153 |
"""
# Notes:
- This simulation seeks to emulate the COBAHH benchmark simulations of (Brette
et al. 2007) using the Brian2 simulator for speed benchmark comparison to
DynaSim. However, this simulation includes CLOCK-DRIVEN synapses, for direct
comparison to DynaSim's clock-driven architecture. The synaptic connec... | asoplata/dynasim-benchmark-brette-2007 | output/Brian2/brian2_benchmark_COBAHH_clocksyn_hidens_8000/brian2_benchmark_COBAHH_clocksyn_hidens_8000.py | Python | gpl-3.0 | 3,778 | [
"Brian"
] | 2486ebbe99456a5dc510f3521aa291cbf7f0607f554ad2b3ea2b3c3c99732b73 |
#!/usr/bin/python
################################################################################
#
# SOAP.py 0.9.7 - Cayce Ullman (cayce@actzero.com)
# Brian Matthews (blm@actzero.com)
#
# INCLUDED:
# - General SOAP Parser based on sax.xml (requires Python 2.0)
# - General SOAP Builder
# ... | gdestuynder/Stupid-python-bot | modules/SOAP.py | Python | gpl-3.0 | 130,750 | [
"Brian"
] | e15d72ac5ce41d7ca3c945f4997a524cc314c04af9f4cdfafc73472dd222f028 |
#
# python-ipfix (c) 2013 Brian Trammell.
#
# Many thanks to the mPlane consortium (http://www.ict-mplane.eu) for
# its material support of this effort.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Softw... | britram/python-ipfix | ipfix/template.py | Python | lgpl-3.0 | 12,819 | [
"Brian"
] | c856730a222d134bef6cb6c8ff54a8c66de1e12b6bea1fbba2fed7c2fc60dfb1 |
from __future__ import print_function, division
import os
import tempfile
import mdtraj as md
import numpy as np
import pandas as pd
import sklearn.pipeline
from mdtraj.testing import eq
from numpy.testing import assert_approx_equal
from six import PY3
from sklearn.externals.joblib import load, dump
from msmbuilder ... | stephenliu1989/msmbuilder | msmbuilder/tests/test_msm.py | Python | lgpl-2.1 | 13,518 | [
"Gaussian",
"MDTraj"
] | 4dd877fbd4ba4611c7ab83c9ee128ddc4582ef7780389c2b4573431ca334540f |
#!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | jarmoni/ansible-modules-core | cloud/amazon/ec2_elb_lb.py | Python | gpl-3.0 | 35,925 | [
"Dalton"
] | a83ec13328ba17849008b80432abc90aba3824e16db09d2e396bfa99f0748de8 |
# mako/ast.py
# Copyright (C) 2006-2013 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""utilities for analyzing expressions and blocks of Python
code, as well as generating Python from AS... | mcollins12321/anita | venv/lib/python2.7/site-packages/mako/ast.py | Python | mit | 5,750 | [
"VisIt"
] | f6a2a81c0d59aabd6f8d3eff6c62ade026008da60aa5a664a034875375f344fe |
from tao.tests.integration_tests.helper import LiveServerMGFTest
from tao.tests.support.factories import SimulationFactory, GalaxyModelFactory, UserFactory, DataSetFactory, DataSetPropertyFactory, BandPassFilterFactory, StellarModelFactory, SnapshotFactory, GlobalParameterFactory
from tao.models import Simulation, Data... | IntersectAustralia/asvo-tao | web/tao/tests/integration_tests/filter_tests.py | Python | gpl-3.0 | 13,877 | [
"Galaxy",
"VisIt"
] | 433a80a508ac1a5723a79dfe3e2b5928c82c9fb70458305d037ef8992543cf24 |
import numpy as np
from ASE import Atom
from gpaw.utilities import equal
from gpaw.cluster import Cluster
from gpaw import Calculator
from gpaw.analyse.expandyl import ExpandYl
R = 1.
H2 = Cluster([Atom('H',(0,0,0)), Atom('H',(0,0,R))])
H2.minimal_box(3.)
calc = Calculator(h=0.2, width=0.01, nbands=2)
H2.SetCalcula... | qsnake/gpaw | oldtest/analyse/yl.py | Python | gpl-3.0 | 862 | [
"ASE",
"GPAW"
] | 5e09660194970174b5281751eef9320331b61525ff9e97b50d44c5ed8334bd83 |
import gen_utils
from module_base import ModuleBase
from module_mixins import NoConfigModuleMixin
import module_utils
import vtk
import vtkdevide
class imageBacktracker(NoConfigModuleMixin, ModuleBase):
"""JORIK'S STUFF.
"""
def __init__(self, module_manager):
# call parent constructor
M... | chrisidefix/devide | modules/user/experimental/imageBacktracker.py | Python | bsd-3-clause | 2,956 | [
"VTK"
] | cb72ad4d891f1cb19b1a43d3985c40dc4bb893492f6724c35ecaac772e72ad72 |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
def offset_gaussian(ip,port):
# Connect to a pre-existing cluster
insurance = h2o.import_file(h2o.locate("smalldata/glm_test/insurance.csv"))
insurance["offset"] = insurance["Holders"].log()
gbm = h2o.gbm(x=insurance[0:3], y=insurance... | bospetersen/h2o-3 | h2o-py/tests/testdir_algos/gbm/pyunit_offset_gaussianGBM.py | Python | apache-2.0 | 1,768 | [
"Gaussian"
] | fc3f6e0b0d1714b7e70cbed7420d1b925c0c212e1e6f5bf38f89936ec305e280 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.