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 |
|---|---|---|---|---|---|---|---|
import numpy
import opengm
import os
import sys
import random
import opengm.learning
class TestAllExampes:
def test_run(self):
for r, d, f in os.walk("examples"):
for files in f:
if files.endswith(".py"):
if(not str(files).endswith('gui.py')):
... | ilastikdev/opengm | src/interfaces/python/test.py | Python | mit | 52,311 | [
"VisIt"
] | 605aa7045b7866500b1b451dc0bede6428e0b00eae0398d0841b258bf802bc3f |
##
# TRACK 3
# AIR PLAY
# Brian Foo (brianfoo.com)
# This file builds the sequence file for use with ChucK from the data supplied
##
# Library dependancies
import csv
import json
import math
import os
import time
# Config
BPM = 120 # Beats per minute, e.g. 60, 75, 100, 120, 150
READINGS_PER_BEAT = 2 # pm2.5 readings ... | shawngraham/music-lab-scripts | 03_smog/smog.py | Python | mit | 11,782 | [
"Brian"
] | 31cc1659cad1b107ba0314861e02fada4f07035bedd80a7a150bddfae4bbe12d |
__author__ = 'sebastians'
# PyMOL Animation Tutorials -- 02 - Scenes
# This tutorial will show you how to use scenes for your movie.
# Import all necessary modules
import pymol
from pymol import cmd
def setup_pymol():
"""Sets up PyMOL for making animations."""
pymol.finish_launching() # Prevent threading e... | ssalentin/pymol-animations | tutorials/basics/02-scenes.py | Python | mit | 2,374 | [
"PyMOL"
] | f61102db9333b18a49fed542d364a9d65dd9996e695eea0f5deb2a69fcf0430f |
#!/usr/bin/env python
# coding: utf-8
"""
Rename a string in CamelCase, snake_case and ALL_CAPS_CASE
in code and filenames in one go.
"""
__version__ = '0.1.2'
__author__ = 'Daniel Krikun'
__license__ = 'MIT'
import sys
import logging
import argparse
import os
import fnmatch
import io
import difflib
import shutil
im... | dkrikun/rename | rename.py | Python | mit | 16,888 | [
"VisIt"
] | 5312c392c0f561806c8da25df0828b43739334157e554a2dd192e2dad9a670e0 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/e2-openwbif | plugin/controllers/views/web/loadepg.py | Python | gpl-2.0 | 5,152 | [
"VisIt"
] | 565c3470711c8a11a68316716ab6b0b90f86a7a7ba817709ec49cb67ea5bbd11 |
# Copyright 2016 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... | hfp/tensorflow-xsmm | tensorflow/python/ops/distributions/normal.py | Python | apache-2.0 | 9,805 | [
"Gaussian"
] | a2d4e3aeaebdef2bd5ce836911fa0a7b6b072f6a9362001424930b1351fe9f7d |
"""
VolumeVisualizationMIP
:Authors:
Berend Klein Haneveld
"""
from VolumeVisualization import VolumeVisualization
from VolumeVisualization import VisualizationTypeMIP
from ui.widgets.SliderFloatWidget import SliderFloatWidget
from vtk import vtkVolumeProperty
from vtk import vtkColorTransferFunction
from vtk import ... | berendkleinhaneveld/Registrationshop | ui/visualizations/VolumeVisualizationMIP.py | Python | mit | 6,729 | [
"VTK"
] | 0622f272722cf43fb69e8debbd3e1eee06e5b7c6ff1166ec0adb9be951c04c21 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
from pymatgen.core.structure import Structure
from pymatgen.command_line.critic2_caller import *
from monty.os.path import which
__author__ = "Matthew Horton"
__version__ = "0.1"
__maintainer_... | dongsenfo/pymatgen | pymatgen/command_line/tests/test_critic2_caller.py | Python | mit | 3,560 | [
"pymatgen"
] | f50b5c83ed048dadaf63bcf4292173dac9d58d3dd9b317a4de90be15d522419f |
#!/usr/bin/env python
#
# blast2accmap - Extract names of query and hit sequences
#
# Copyright (C) 2013, Jian-Long Huang
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
#
# Author: Jian-Long Huang (jianlong@ntu.edu.tw)
# Version: 0.5
# Created: 2013.1.25
#
# Required:
# * Biopython: http://biopyt... | jlhg/bdorpy | bdorpy/blast2accmap.py | Python | mit | 3,906 | [
"BLAST",
"Biopython"
] | 21f85baa20c226cb97df4aeeee2e9a8f18eb6893163d77e4ca321a38f40a2ad2 |
# This script is part of pymaid (http://www.github.com/schlegelp/pymaid).
# Copyright (C) 2017 Philipp Schlegel
#
# 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 ... | schlegelp/pymaid | pymaid/cluster.py | Python | gpl-3.0 | 47,315 | [
"NEURON"
] | 1a8e22107bd41234f8d679c074fd469776652ae34fce2f16729b143738570cf1 |
from rest_framework import serializers
from elixir.models import *
from elixir.validators import *
class LanguageSerializer(serializers.ModelSerializer):
name = serializers.CharField(allow_blank=False, validators=[IsStringTypeValidator], required=False)
class Meta:
model = Language
fields = ('name',)
def get_... | bio-tools/biotoolsregistry | backend/elixir/serialization/resource_serialization/language.py | Python | gpl-3.0 | 1,257 | [
"PyMOL"
] | bb8232ca7c9183ba8c5673bcc5b13115fa4d268cb6a80aef8dcc42e5bbccd07e |
import numpy as np
import numpy.matlib as nm
from scipy import stats
from eim.settings_loader import GeneralSettings, SimulationSettings
from eim.common import DictClass
from eim.data import loadData, saveData
from eim.analysis import getActiveNeurons, convolveEventLists, meanTraceValues, sortTracesByPeakInTime, calcu... | zjonke/EImotif | simulations/stp/analyse.py | Python | mit | 5,001 | [
"NEURON"
] | 13d3df22c1433a4c629726bc76f85730d0aa80ff934857b348279fea070f1a6d |
###############################################################################
# Name: ed_menu.py #
# Purpose: Editra's Menubar and Menu related classes #
# Author: Cody Precord <cprecord@editra.org> ... | ktan2020/legacy-automation | win/Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/ed_menu.py | Python | mit | 51,531 | [
"VisIt"
] | 593512d95fce4d16cdc25fafb9a422cb85e26624a3245b208ef308aad27d59ff |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyVcfKit(PythonPackage):
"""VCF-kit is a command-line based collection of utilities for pe... | LLNL/spack | var/spack/repos/builtin/packages/py-vcf-kit/package.py | Python | lgpl-2.1 | 1,849 | [
"BLAST",
"BWA",
"Biopython"
] | c656fcdd5a36ded09de249503f8f76c1f15e309606976d1aa873bc47183c3eba |
# copies.py - copy detection for Mercurial
#
# Copyright 2008 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
import util
import heapq
def _nonoverlap(d1, d2, d3):
"Return list of elements in d1... | iluxa-com/mercurial-crew-tonfa | mercurial/copies.py | Python | gpl-2.0 | 7,736 | [
"VisIt"
] | 204d551d5cf744afa0f9dd145e232d2628798c38bedc15b154609e7ee5a8c4cb |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | tests/vasp/test_runmass.py | Python | gpl-3.0 | 2,505 | [
"CRYSTAL",
"VASP"
] | 78a6ec881c03b37bddbc7da20a012ba2a3af6c216b22dd51146ba5348063a2aa |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Huyuwei/tvm | tutorials/dev/low_level_custom_pass.py | Python | apache-2.0 | 7,094 | [
"VisIt"
] | 305b6eb3e6362e224a1ddccd293fec5a97b1ce62fe41c0f2224a1b976bfa1767 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | magic/services/s4g.py | Python | agpl-3.0 | 27,028 | [
"Galaxy"
] | 7f8bb1533045d2e267ba2c06603315e4ff2db2ace7814dc38b733c5bd75ed77e |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes 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 appli... | Huawei-PaaS/kubernetes | cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py | Python | apache-2.0 | 48,668 | [
"CDK"
] | 0d389b3dc7535fac8467f3e7cf86616c6b4dbe3535762e80c3c003f5078c3fea |
import h5py
import parmap
import numpy as np
import scipy.io as sio
import os
from tqdm import tqdm
import scipy
import scipy.io
import scipy.optimize as opt
from scipy.spatial.distance import cdist
from scipy.ndimage import gaussian_filter
import networkx as nx
from pkg_resources import resource_filename
from yass im... | paninski-lab/yass | src/yass/rf/run.py | Python | apache-2.0 | 20,477 | [
"Gaussian"
] | 0de817ce0289244cd97dbb20dd9f92fab38be446e7f5cf3d4dd97b2de5ecc8c6 |
# -*- coding: utf-8 -*-
# Copyright 2007-2021 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | thomasaarholt/hyperspy | hyperspy/tests/model/test_model_storing.py | Python | gpl-3.0 | 5,973 | [
"Gaussian"
] | 7d8c2c54d14e699f78212fac325459ca2bf49d80195050e30c285278ee833833 |
"""Generate self-contained HTML reports from MNE objects."""
# Authors: Alex Gramfort <alexandre.gramfort@inria.fr>
# Mainak Jas <mainak@neuro.hut.fi>
# Teon Brooks <teon.brooks@gmail.com>
#
# License: BSD (3-clause)
import base64
from io import BytesIO
from mne.proj import read_proj
import os
impor... | Eric89GXL/mne-python | mne/report.py | Python | bsd-3-clause | 85,597 | [
"Mayavi"
] | 1fa3b843cf96d188bf641d5fff1d3e4fe59f0fae9bb0f707e473d648b67f6adb |
"""
Python implementation of the fast ICA algorithms.
Reference: Tables 8.3 and 8.4 page 196 in the book:
Independent Component Analysis, by Hyvarinen et al.
"""
# Authors: Pierre Lafaye de Micheaux, Stefan van der Walt, Gael Varoquaux,
# Bertrand Thirion, Alexandre Gramfort, Denis A. Engemann
# License: BS... | mbayon/TFG-MachineLearning | venv/lib/python3.6/site-packages/sklearn/decomposition/fastica_.py | Python | mit | 19,120 | [
"Gaussian"
] | 55f03dcee05ddfd61f7857e370d891e2ec9f9c73290527e63058b74312d24c97 |
""" DIRAC API Base Class """
import pprint
import sys
from DIRAC import gLogger, gConfig, S_OK, S_ERROR
from DIRAC.Core.Security.ProxyInfo import getProxyInfo, formatProxyInfoAsString
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getDNForUsername
from DIRAC.Core.Utili... | arrabito/DIRAC | Core/Base/API.py | Python | gpl-3.0 | 5,658 | [
"DIRAC"
] | 3d2574c6d384a353f52418473aaf76c6f01dc4c571803646e2e30d0afee57640 |
# en_GB.po
val = {"" : "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2013-01-24 10:55+0000\nPO-Revision-Date: 2014-01-26 14:31+0000\nLast-Translator: Ivo Dimov <dimov.ivo@gmail.com>\nLanguage-Team: LANGUAGE <LL@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nCont... | aubzen/sheltermanager | src/locale/locale_en_GB.py | Python | gpl-3.0 | 135,820 | [
"Amber",
"VisIt"
] | 3cc04497fbe8750f09625f59e9497a7e1c1fa99c4f237c3075e5077342059969 |
#!/usr/bin/env python
###########################################################################
## ##
## Language Technologies Institute ##
## Carnegie Mellon University ... | leahrnh/ticktock_text_api | galbackend_movies.py | Python | gpl-2.0 | 20,554 | [
"Galaxy"
] | 6de497d2a99d79a5d6502f790076a15fa94cfd430fda7ddd9b3ef2626da6a645 |
def items(spoilers):
gems = {
'Heart of Ahriman' : {
'artifact': 1,
'base': 'luckstone',
'price': 2500,
'weight': 10,
'hardness': 'soft',
'fullname': 'The Heart of Ahriman',
'appearance': 'gray stone',
'ma... | helgefmi/ohno | ohno/spoilers/items/gem.py | Python | mit | 9,001 | [
"Amber",
"CRYSTAL"
] | b747be9537927c518f427bc4294f0d2f4816858e052769f0d9027601be3a8c64 |
#!/usr/bin/python
# python parser module to analyse sRbowtie alignments
# version 1.0.2 - argparse implementation
# Usage sRbowtieParser.py <1:index source> <2:extraction directive> <3:outputL> <4:polarity> <5:6:7 filePath:FileExt:FileLabel> <.. ad lib>
import sys, argparse
from smRtools import *
def masterListGene... | mvdbeek/tools-artbio | tools/msp_sr_bowtie_parser/sRbowtieParser.py | Python | mit | 2,426 | [
"Bowtie"
] | e1415d9c512744dbef25122f6496210c8ef5b29a6f2fdd2cbb08bf577c8c1335 |
import numpy as np
from ase import Atoms, Atom
a = Atoms([Atom('Cu')])
a.positions[:] += 1.0
print a.get_positions(), a.positions
a=a+a
a+=a
a.append(Atom('C'))
a += Atoms([])
a += Atom('H', magmom=1)
print a.get_initial_magnetic_moments()
print a[0].number
print a[[0,1]].get_atomic_numbers()
print a[np.array([1,1,0,0... | grhawk/ASE | tools/ase/test/build.py | Python | gpl-2.0 | 500 | [
"ASE"
] | 265f38aa1be2770dc9083694af4f8d3a36b9971d9b58dbd3a6a9d6f01a37e99f |
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
from celery_uncovered.toyex.views import ReportErrorView
urlpatterns =... | Rustem/toptal-blog-celery-toy-ex | config/urls.py | Python | mit | 1,538 | [
"VisIt"
] | d9f0f4ceabd7818882d9ce77ec137373c6e235e0c3c22d43badc07dc3f11c7a3 |
import cPickle
import gzip
import os, sys, errno
import time
import math
import subprocess
import socket # only for socket.getfqdn()
# numpy & theano imports need to be done in this order (only for some numpy installations, not sure why)
import numpy
#import gnumpy as gnp
# we need to explicitly import this in some... | ashmanmode/TTSDNNRepo | src/run_merlin.py | Python | apache-2.0 | 57,765 | [
"NEURON"
] | ad161702b1231a9248924813ffe72eda0b033876eb573196aa48ffe45a1ba17e |
""" SdA pretraining script that uses two GPUs, one per sub-process,
via the Python multiprocessing module. """
# These imports will not trigger any theano GPU binding, so are safe to sit here.
from multiprocessing import Process, Manager
from optparse import OptionParser
import os
import cPickle
import gzip
import ... | lzamparo/SdA_reduce | theano_models/SdA/pretrain_SdA_multiproc.py | Python | bsd-3-clause | 11,135 | [
"Gaussian"
] | 09562d43ba43090dbee908d90fe92aa460d390504558ad67f16652b07e213e88 |
# -*- coding: utf-8 -*-
from __future__ import print_function
from util import *
from pattern import text
from pattern import en
#-------------------------------------------------------------------------
class TestInflection(unittest.TestCase):
def setUp(self):
pass
def test_indefinite_article(s... | shubhangiKishore/pattern | test/test_en.py | Python | bsd-3-clause | 49,425 | [
"Octopus"
] | 6f6624139edaa57fc44407bab53163ece9db8017b9308c614662c309d5ab85e9 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2020, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
from exa import DataFrame
import numpy as np
import pandas as pd
from exatomic import plotter
# changing this so that tensor refers to a base class of attributes that all
# tensor ... | exa-analytics/atomic | exatomic/core/tensor.py | Python | apache-2.0 | 14,132 | [
"Gaussian"
] | aa99a2105881422d29d2f63f5c8286773806a0712eea3a193cba4286ad7cc9f7 |
"""
:func:`~pandas.eval` parsers.
"""
from __future__ import annotations
import ast
from functools import (
partial,
reduce,
)
from keyword import iskeyword
import tokenize
from typing import (
Callable,
TypeVar,
)
import numpy as np
from pandas.compat import PY39
import pandas.core.common as com
fr... | rs2/pandas | pandas/core/computation/expr.py | Python | bsd-3-clause | 24,907 | [
"VisIt"
] | dd833e6356d982d4e95549c392cce0b3c904dc041a9af9cc67d7787f4205d187 |
"""
Acceptance tests for the teams feature.
"""
import json
import random
import time
from uuid import uuid4
import ddt
from dateutil.parser import parse
from nose.plugins.attrib import attr
from selenium.common.exceptions import TimeoutException
from common.test.acceptance.fixtures import LMS_BASE_URL
from common.te... | Stanford-Online/edx-platform | common/test/acceptance/tests/lms/test_teams.py | Python | agpl-3.0 | 84,343 | [
"VisIt"
] | 199b452d59955d4fc15082bf22df68994a7bb624f0a025cd695fed7a559df1b2 |
from byo.track import Accessor
from logging import debug,warning,error
import re
import numpy
def is_uniq(r):
try:
best_hits = r.opt('X0')
if best_hits < 2:
return True
except KeyError:
# bowtie2 output
AS = r.opt('AS')
try:
XS = int(r.opt('XS'))... | marvin-jens/clip_analysis | byo/io/bam_accessor.py | Python | gpl-3.0 | 4,875 | [
"pysam"
] | 61b341997971ce8f6ed11b794ee230651ff02970f5eb86d102494fb703bc3159 |
# -*- coding: utf-8 -*-
from collections import OrderedDict
cleveland_tech_survey = OrderedDict([
("Demographics", OrderedDict([
("Gender", [
"Female",
"Male",
"Other",
"Prefer not to say"
]),
("Ethnicity", [
"Black or of African ... | drew-sullivan/cleveland_tech_survey | app/static/survey/survey.py | Python | mit | 10,118 | [
"CASINO"
] | 09a29f33bebceaef6cf0cb9fa0aec7de67d73fc1fc1297aac8919e17d1f7c595 |
#!/usr/bin/env python3
#
# pyqver3.py
# by Greg Hewgill
# https://github.com/ghewgill/pyqver
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the author be held liable for any damages
# arising from the use of this software.
#
# Permission is granted to anyone to use t... | tmerrick1/spack | lib/spack/external/pyqver3.py | Python | lgpl-2.1 | 10,694 | [
"VisIt"
] | a40ce10d87da154a5caa1f393a5410cf25d2922aee0cb01e0c600e11237dc0a3 |
# Copyright (c) 2006 Seo Sanghyeon
# 2006-12-01 sanxiyn Created
# 2006-12-20 sanxiyn Added try, def
# 2006-12-22 sanxiyn Added lambda, raise, from import, class
# 2006-12-28 sanxiyn Added try finally, exec
# 2006-12-29 sanxiyn Added del, yield, list comprehension
from IronPython.Compiler import CompilerContext, Parse... | longde123/MultiversePlatform | lib/IPCE/Lib/fepy/ast.py | Python | mit | 14,932 | [
"VisIt"
] | 0e8c0e30531a40879a590398f19609db9b9a3174dd7a050ef8c2498e7297a531 |
# -*- coding: utf-8 -*-
# Server API behind cloudflare - enforce https
host = {
'main' : 'https://trace.moe',
'image': 'https://image.trace.moe', #/imgproxy?url=https://.....
}
headers = {
'origin': host['main'],
'referer': host['main'] + '/',
'user-agent': 'Image2Anime-Py AppleWebKit/537.36 (KHTML, like ... | anysz/Image2Anime | Image2Anime/config.py | Python | mit | 449 | [
"MOE"
] | 673fee16c8e1feded476feb9e74f2c3f9f633eeee980ae35ae98d6905a2d0d73 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os.path as osp
import logging
logging.basicConfig(level=logging.DEBUG)
import mxnet as mx
import mxbox
from mxbox import transforms
from mxbox import models
if __name__ == "__main__":
test_root = "../../Data/TestFolder/"
trans = transforms.Compose([
t... | Lyken17/mxbox | Examples/TestModels-Cifar10.py | Python | bsd-3-clause | 2,016 | [
"Gaussian"
] | 940149397ccf5dba153a387f9407900fae4f503b744b9196a9e078a286b486c5 |
import cPickle as pkl
import pdb
import datetime
import time
import numpy as np
import pylab as pl
import scipy.stats
import scipy.special
from scipy.special import gamma
from scipy.misc import factorial
import gnumpy as gp
import data_helper
class RBM(object):
'''
Restricted Boltzmann Machine (RBM) using... | ebattenberg/crbm-drum-patterns | crbm.py | Python | gpl-3.0 | 63,541 | [
"CDK"
] | 6f3ccd686da658ed115484e5158b99c0706656a027bab9bbd89a64c6f0d327ba |
#!/usr/bin/env python
import sys
#usage ParseExpression2BigTable.py inputfilename outputfilename columntoextract filestoaddcolumnsfrom
#sys.argv[1] Input file name
#sys.argv[2] Output file name
#sys.argv[4:] Any number of files to add columns from
#column to extract
columntoextract=int(sys.argv[3])
#makes a dictiona... | cuttlefishh/papers | vibrio-fischeri-transcriptomics/code/python/ParseData2BigTable.py | Python | mit | 2,612 | [
"BLAST"
] | 256634f37d351bcd9d4f687ccca42f3cc758ec8012f241a2e98c833217955e0b |
# HF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# HF X
# HF X f90wrap: F90 to Python interface generator with derived type support
# HF X
# HF X Copyright James Kermode 2011
# HF X
# HF X These portions of the source code are released under the GNU General
# HF X Public License, ve... | citibob/f90wrap | f90wrap/fortran.py | Python | gpl-2.0 | 28,247 | [
"VisIt"
] | 318ee53f7ac7eda61bfe3cc987ff93ff4043dd5cb62cbb35b8ad33ce18dca664 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# isjobactive - Check if sandbox job is still active
# Copyright (C) 2003-2009 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 General ... | heromod/migrid | mig/shared/functionality/isjobactive.py | Python | gpl-2.0 | 3,383 | [
"Brian"
] | 8425f088805d67cc1aaefe4538f3475107855c8333129203bfafb86f0676a26f |
from mpp.models import SQLTestCase
import os
class test_triggers(SQLTestCase):
'''
Includes testing for dml using triggers with Orca on (MPP-24827, GPSQL-2934)
@author elhela
@created 2014-10-22 12:00:00
@modified 2014-10-22 12:00:00
@description Tests for DML with triggers (MPP-24827, GPSQL-29... | cjcjameson/gpdb | src/test/tinc/tincrepo/dml/triggers/test_triggers.py | Python | apache-2.0 | 701 | [
"ORCA"
] | 031e646e7408bae8e90f88401348f1f7ab96ca77b88f1e558b26fb9905bb60dd |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/plugins/songs/forms/songimportform.py | Python | gpl-2.0 | 26,465 | [
"Brian"
] | 2f470d26db0124ff2577699cc697c5f8e8289e2ac53011a2296309f9026437d5 |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | johnchase/scikit-bio | skbio/io/_base.py | Python | bsd-3-clause | 8,089 | [
"scikit-bio"
] | b8aeb92af6fb1729c6468c00d5c279c20c14967ffb7947a227b97ab473bca94d |
#!/usr/bin/env python
# encoding: utf-8
"""
mta.py
Created by Thomas Mangin on 2007-04-01.
Copyright (c) 2008 Exa Networks. All rights reserved.
See LICENSE for details.
"""
from __future__ import with_statement
import os
import sys
import socket
import traceback
# Enabling (or not) psycho
try:
import psyco
psyc... | Exa-Networks/scavengerexa | daemon/mta.py | Python | agpl-3.0 | 19,649 | [
"VisIt"
] | 57bfbe9d2e4314801c1d066f07b5566011efd45603623f6c0c690ea41582a387 |
#!/bin/python2
"""
#####################################
# iSpike-like joint conversion #
#####################################
"""
class sensNetIn():
#TODO: explain XD
'''
This object gets as input
and returns as output:
'''
from sys import exit
def __init__(self,
... | nico202/pyNeMo | libs/pySpike.py | Python | gpl-2.0 | 5,430 | [
"NEURON"
] | 930bfe185a1adb3248676606f90ae1fa75c09ffa0fd8898a5a3f0e35c87400d3 |
"""Module containing pyvista implementation of vtkAxes."""
import numpy as np
import pyvista
from pyvista import _vtk
class Axes(_vtk.vtkAxes):
"""PyVista wrapper for the VTK Axes class.
Parameters
----------
show_actor : bool, optional
Hide or show the actor of these axes. Default ``False... | akaszynski/vtkInterface | pyvista/plotting/axes.py | Python | mit | 2,877 | [
"VTK"
] | 2fe37408f91a71297b93f5bbf85755c3b1ad29820133c84390beb5fd20da77db |
"""
When setting up following model in YACML. rate-term assertion fails.
compartment PSD {
volume = "5e-21"
ca [ conc = "1e-4+1e-3*(t > 50 && t < 53 ?1:0)", plot = True ];
S [ N = 20, plot = true ];
S1 [N_init = 0, plot = true ];
Sp [ N_init = 0, plot = true ];
r_p0_p1 [ kf = "k1*(ca/kh... | dilawar/chemical_models | Synapse/Miller_Zhabotinsky/bugs/bug_rate_term_assert.py | Python | gpl-3.0 | 1,793 | [
"MOOSE"
] | 375ec4206d555d8e4431e6cb74a86080f384c670e3df26eed4e034e8f9d994cc |
"""
Before running netcdf_cmdline:
1) Add geographic location information to name file
2) Change the name of your head file to <namefile_base_name>.hds
3) Change the extension of your budget file to <namefile_base_name>.cbc
NetcdfCmdline python command line application. Provides command line access
to Flo... | axiom-data-science/modflow2netcdf | netcdf_cmdline.py | Python | mit | 3,557 | [
"NetCDF"
] | 1a30b02baab285d92e7e3a0fb69495141f52c84d13912165885641aac743ffc5 |
#!/usr/bin/env python
# ----------------------------------------------------------------------
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
# https://www.lammps.org/ Sandia National Laboratories
# Steve Plimpton, sjplimp@sandia.gov
# -------------------------------------------------------------... | jeremiahyan/lammps | examples/COUPLE/lammps_vasp/vasp_wrap.py | Python | gpl-2.0 | 8,057 | [
"LAMMPS",
"VASP"
] | cae913f0f24db239f9f8d36a10a3705118eb3502c207047424f5e3b4c4b36a32 |
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 30 21:51:35 2015
@author: spatchcock
"""
# %%
import numpy
from matplotlib import pyplot
import matplotlib.animation as animation
numpy.set_printoptions(precision=3)
gaussian = lambda z, height, position, hwhm: height * numpy.exp(-numpy.log(2) * ((z - position)/hwhm)**2... | spatchcock/models | advection_diffusion/advection_diffusion_decay_source_equation_crank_nicolson.py | Python | unlicense | 3,356 | [
"Gaussian"
] | 42a8c25557ca2763eb859c969311b8a0fb22eb3194931a09bb833fc2df5e9037 |
#
# Copyright (C) 2011-2021 Greg Landrum and other RDKit contributors
#
# @@ 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.
#
from IPython.display import... | greglandrum/rdkit | rdkit/Chem/Draw/IPythonConsole.py | Python | bsd-3-clause | 12,757 | [
"RDKit"
] | c5a5e134195cfdac936ecbe8dbbdc22dae15e7800a0047fe2e6de6b349d4dac5 |
"""
@name: Modules/Core/Drivers/_test/test_Serial.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2015-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Jul 30, 2015
@Summary:
"""
__updated__ = '2019-10-08'
# Import system type stuff
import xml.etree.Eleme... | DBrianKimmel/PyHouse | Project/src/Modules/Core/Drivers/_test/test_Serial.py | Python | mit | 2,606 | [
"Brian"
] | 3e15b4c718f8a8b3c0d97ec1954af38a2ba8830c1ef1254449ef798ee51c627e |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/coordinates/test_crd.py | Python | gpl-2.0 | 3,735 | [
"MDAnalysis"
] | 2f552939f766a6713b21798e3319159febc79da2915ed402c793745253b65313 |
#
# 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 version.
#
# Written (C) 2012-2013 Heiko Strathmann
#
from numpy import *
from py... | JingheZ/shogun | examples/undocumented/python_modular/graphical/statistics_quadratic_time_mmd.py | Python | gpl-3.0 | 7,837 | [
"Gaussian"
] | a94ca9a1bb361e2c4700e603e7cfd3c5d371d786cdcab50d904847b47e678ea1 |
# -*- Python -*-
#
# @file test_10D_1D.py
# @brief MultivariateRandomMixture validation tests
#
# Copyright (C) 2013 EADS IW France
#
# Author(s) : Denis Barbier, IMACS
# Sofiane Haddad, IMACS
#
# This program is free software; you can redistribute it a... | sofianehaddad/MVRM | test/test_100U_1N.py | Python | lgpl-3.0 | 4,886 | [
"Gaussian"
] | f845f3d7e0217224702466e23ac7e7a61b042bc0292b8134cd1662968cc38cb1 |
# By Patrik Jakobsson and Ulf Ekstrom 2005-2007.
from __future__ import generators
import os,sys
if __name__ == "__main__":
# Need to add the gui directory to the python path so
# that all the modules can be imported
gui_path = os.path.split(os.path.dirname( os.path.realpath( __file__ ) ))[0]
sys.path.... | alexei-matveev/ccp1gui | objects/am1.py | Python | gpl-2.0 | 50,082 | [
"MOPAC"
] | b2f7919604b8d1011dc7b2047408297b6101e17b5015700f45893c74bb2fa511 |
#!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
======================================
fMRI: surface smooth - FreeSurfer, SPM
======================================
This tutorial illustrates how to perform surface-based smoothi... | BrainIntensive/OnlineBrainIntensive | resources/nipype/nipype/examples/fmri_freesurfer_smooth.py | Python | mit | 22,956 | [
"Gaussian"
] | 2a420b5df5cfcab6d760a1b781042ef66d8f2347c0489ba59b81fd90ad16c2fb |
"""
Copyright (C) 2014, Jaguar Land Rover
This program is licensed under the terms and conditions of the
Mozilla Public License, version 2.0. The full text of the
Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
Rudolf Streif (rstreif@jaguarlandrover.com)
"""
import datetime, pytz, uuid, jwt
from dja... | afan1/rvi_backend | web/devices/models.py | Python | mpl-2.0 | 4,399 | [
"Jaguar"
] | 33e9069411c7c64be5afad97eaed54049dbfff45e9391b77d5a4b8f630ff480e |
# Copyright (c) 2015-2016, 2018 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2016 Ceridwen <ceridwenv@gmail.com>
# Copyright (c) 2018 Nick Drozd <nicholasdrozd@gmail.com>
# Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
# Copyright (c) 2021 David Liu <david@cs.toronto.edu>
# Copyright (c) 2021... | PyCQA/astroid | astroid/transforms.py | Python | lgpl-2.1 | 3,631 | [
"VisIt"
] | 22472f69df29371adce30e19743c07dd59f943b3e08ee80addd0e13358412549 |
# piddlePIL.py -- a Python Imaging Library backend for PIDDLE
# Copyright (C) 1999 Joseph J. Strout
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, o... | ptosco/rdkit | rdkit/sping/PIL/pidPIL.py | Python | bsd-3-clause | 15,699 | [
"RDKit"
] | 03c8c3a2884bc2fa54665785e25d11a6f98d66ae5fe80866b2182b04e8060b24 |
# -*- 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-websecurityscanner | tests/unit/gapic/websecurityscanner_v1alpha/test_web_security_scanner.py | Python | apache-2.0 | 192,237 | [
"Octopus"
] | 8833eb26ad1145e5d9be6feb794afc9c40a2b9fb21eca9419e1a2ee80aea80b1 |
# module pyparsing.py
#
# Copyright (c) 2003-2018 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... | HiSPARC/station-software | user/python/Lib/site-packages/pip/_vendor/pyparsing.py | Python | gpl-3.0 | 226,342 | [
"VisIt"
] | 332d99c0324211a6646606721bd80bfbee3c44b1a67fdbe75424d6f77ae17582 |
from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.hyperparameters import UniformFloatHyperparameter
from autosklearn.pipeline.components.base import AutoSklearnRegressionAlgorithm
from autosklearn.pipeline.constants import DENSE, UNSIGNED_DATA, PREDICTIONS
class GaussianProcess(AutoSkle... | automl/auto-sklearn | autosklearn/pipeline/components/regression/gaussian_process.py | Python | bsd-3-clause | 2,692 | [
"Gaussian"
] | bf2cc67dde42000696a86c8799ea203067fbcfcf62ef12a062c0e918ac347be9 |
"""
Copyright (C) 2015 Quinn D Granfor <spootdev@gmail.com>
This program is free software; you can redistributeF it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
... | MediaKraken/MediaKraken_Deployment | source/db_create_update.py | Python | gpl-3.0 | 60,728 | [
"Elk"
] | 2ec01fff7f1cf8e91bf52b6bd8cdf6fe14555f7b8ee6ae04754b1b760f26fa80 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import os
import numpy as np
from rmgpy import getPath
from rmgpy.qm.main import QMCalculator
from rmgpy.molecule import Molecule
from rmgpy.qm.mopac import MopacMolPM3, MopacMolPM6, MopacMolPM7
mopacEnv = os.getenv('MOPAC_DIR', default="/opt/mopac")
if os.... | enochd/RMG-Py | rmgpy/qm/mopacTest.py | Python | mit | 7,911 | [
"MOPAC"
] | 44d5ed521e2192dcfed16df12d534d0d819cb83dcfbab2c1b9a980ab0c83cae2 |
# Copyright 2016-2019 California Institute of Technology.
#
# 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... | nasa/podaacpy | podaac/tests/podaac_test.py | Python | apache-2.0 | 12,056 | [
"NetCDF"
] | 8c26b40829e4e265d249b8a5ceb949dd6d3de99368bc30dcca832d119a7e5482 |
#!/usr/bin/env python3
__version__ = '1.3'
from collections import OrderedDict
supportedDevices = OrderedDict([
('HotasCougar',{'Template': 'hotascougar', 'HandledDevices': ['044F0400']}),
('LogitechExtreme3DPro', {'Template': 'extreme3dpro', 'HandledDevices': ['LogitechExtreme3DPro']}),
('Logitech710Wi... | richardbuckle/EDRefCard | www/scripts/bindingsData.py | Python | mit | 247,753 | [
"Galaxy"
] | 00428f76c771a34ddc0bc7d7a013801d8d52f211b27981d2fe20bd2e0a6e57a3 |
'''
Created on Jan 21, 2015
@author: baskaran_k
'''
from commands import getoutput,getstatusoutput
from time import localtime,strftime,sleep
import sys
from string import atof,atoi
from threading import Thread
class BlastCache:
def __init__(self,wd):
self.uniprot='uniprot_2015_xx'
self.nodes=... | kumar-physics/eppic-pipeline | src/EPPICpipeline/BlastCache.py | Python | gpl-2.0 | 11,811 | [
"BLAST"
] | 850e1ff5a3e850b99450d670c1e44d19feca07ff47fb098b3ec506128c5d0609 |
"""
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | gertingold/scipy | scipy/io/netcdf.py | Python | bsd-3-clause | 39,521 | [
"NetCDF"
] | 0f4e4356a1baa856a69870e6a47ddea3423b31e990cf41892ef171b0bbdfc8f7 |
# the problem described below was fixed in 9758!
# keep_htpsit=False fails since 9473,
# on some installations (?) with:
# case A (see below in the code):
# RuntimeError: Could not locate the Fermi level!
# or the energies from the 2nd one behave strange, no convergence:
# iter: 1 18:21:49 +1.7 -3608.... | robwarm/gpaw-symm | gpaw/test/big/scf/b256H2O/b256H2O.py | Python | gpl-3.0 | 4,905 | [
"ASE",
"GPAW"
] | 952874e482c2917e6e557f45e28883e60f4ef27480e11d5fdb19559356e67090 |
########################################################################
#
# File Name: Printer.py
#
#
"""
The printing sub-system.
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and... | selfcommit/gaedav | pyxml/dom/ext/Printer.py | Python | lgpl-2.1 | 13,851 | [
"VisIt"
] | a4436ff0df928d04e6ea57df78217a880d43e436296e4752798134aedee42627 |
# Copyright (c) 2013-2015 University Corporation for Atmospheric Research/Unidata.
# Distributed under the terms of the MIT License.
# SPDX-License-Identifier: MIT
"""
================
NCSS Time Series
================
Use Siphon to query the NetCDF Subset Service for a timeseries.
"""
from datetime import datetime, t... | dopplershift/siphon | examples/ncss/NCSS_Timeseries_Examples.py | Python | mit | 3,156 | [
"NetCDF"
] | f792857260fac2fca3c4a959061c40812b09f78226058e3a03aa143ada79f071 |
import numpy as np
import time
import region_growing_python as rgp
import region_growing as rgc
from mayavi import mlab
nx = 61; ny = 51; nz = 71;
tx = np.linspace(-3,3,nx)
ty = np.linspace(-3,3,ny)
tz = np.linspace(-3,3,nz)
x,y,z = np.meshgrid(tx,ty,tz)
w = x**4 - 5*x**2 + y**4 - 5*y**2 + z**4 - 5*z**2
vol = -np.... | notmatthancock/notmatthancock.github.io | code/py/region_growing/test_rg_c_nbhds.py | Python | mit | 1,325 | [
"Mayavi"
] | 8b7bfaed0daf3fd6c4eef82e05d661aeff1f68e6e7bfc748c98041e5f4a2d7c2 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Catalog gene losses, and bites within genes.
"""
import sys
import logging
from itertools import groupby
from jcvi.formats.blast import Blast
from jcvi.formats.bed import Bed
from jcvi.utils.range import range_minmax, range_overlap, range_distance
from jcvi.utils.cb... | sgordon007/jcvi_062915 | compara/fractionation.py | Python | bsd-2-clause | 26,517 | [
"BLAST"
] | f22ad688055509c005ecbfd0adc4a5167a3e20045598f12db7b82371384e39b4 |
"""
Response utils
"""
import sys
import requests
def response_error(response):
"""
Check response if it has any errors.
"""
if response.headers.get('X-RateLimit-Remaining') is not None:
if int(response.headers['X-RateLimit-Remaining']) == 0:
sys.stderr.write('Error: Rate Limit Rea... | rapid7/lecli | lecli/response_utils.py | Python | mit | 1,436 | [
"VisIt"
] | 24b06003e931e7320589b1a68dc372f5e32f07b51a963423c5a1877de28b5d88 |
from time import time
from gpaw.grid_descriptor import GridDescriptor
from gpaw.fd_operators import Laplace
import gpaw.mpi as mpi
n = 96
h = 0.1
L = n * h
gd = GridDescriptor((n, n, n), [L, L, L])
# Allocate arrays:
a = gd.zeros(100) + 1.2
b = gd.empty(100)
o = Laplace(gd, 2).apply
t0 = time()
for r in range(10):
... | qsnake/gpaw | oldtest/parallel/fidi.py | Python | gpl-3.0 | 387 | [
"GPAW"
] | d752711ea8bd55ee7fa4932c6e52744edbcec5bdc57137a14502e9793182076e |
#!/usr/bin/env python3
import torch
from ..distributions import MultivariateNormal
from ..lazy import CholLazyTensor, TriangularLazyTensor
from ._variational_distribution import _VariationalDistribution
class CholeskyVariationalDistribution(_VariationalDistribution):
"""
A :obj:`~gpytorch.variational._Varia... | jrg365/gpytorch | gpytorch/variational/cholesky_variational_distribution.py | Python | mit | 2,865 | [
"Gaussian"
] | 9e9d5f08c09d230283da59b59e52f2db5663833da66b5262a4b8b4f41c1a3bef |
from __future__ import unicode_literals
"""
This package implements modules for input and output to and from VASP. It
imports the key classes form both vasp_input and vasp_output to allow most
classes to be simply called as pymatgen.io.vasp.Incar for example, to retain
backwards compatibility.
"""
from .inputs import ... | rousseab/pymatgen | pymatgen/io/vasp/__init__.py | Python | mit | 345 | [
"VASP",
"pymatgen"
] | c2f5083bffcd03ca859cec0ffe97bb11fbcc103d79fafe22516a5745a1f56d11 |
"""
.. _tut-viz-stcs:
Visualize source time courses (stcs)
====================================
This tutorial focuses on visualization of
:term:`stcs <source estimates (abbr. stc)>`.
.. contents:: Table of Contents
:local:
Surface Source Estimates
------------------------
First, we get the paths for the evoked d... | olafhauk/mne-python | tutorials/source-modeling/plot_visualize_stc.py | Python | bsd-3-clause | 8,263 | [
"Mayavi"
] | 956d3548edce24f510d345db5359f53a794c44eae83770f477da5fbd38fcdc5f |
# Copyright (c) 2009-2021 The Regents of the University of Michigan
# This file is part of the HOOMD-blue project, released under the BSD 3-Clause
# License.
# Maintainer: joaander / All Developers are free to add commands for new
# features
"""External field potentials."""
import hoomd
from hoomd.md import _md
from... | joaander/hoomd-blue | hoomd/md/external/field.py | Python | bsd-3-clause | 4,581 | [
"HOOMD-blue"
] | 7f0e9cb3f3f85f9a748a70aeb08354ecc0b8f44d2b096ce329fc9951ac2c5073 |
# -*- coding: utf-8 -*
"""Module for grid map projections for ROMS grid
"""
# --------------------------------
# Bjørn Ådlandsvik <bjorn@imr.no>
# Institute of Marine Research
# 2012-07-20
# --------------------------------
from numpy import pi, sqrt, sin, cos, tan, arctan, arctan2
try:
from mpl_toolkits.basemap... | bjornaa/gridmap | gridmap/projection.py | Python | mit | 10,339 | [
"NetCDF"
] | f75ea030e4adb66b03adfc736d79db9a0aa70e51a845a097f7720a3f6fdbfb99 |
from .main import Neuron
__version__ = '2.3.1'
| neuron-js/pyneuron | neuronjs/__init__.py | Python | mit | 48 | [
"NEURON"
] | 53dd6d74ef6d883534b2c7d3987f47752ceca9f6f35af899fb8bd6f690cfcbb5 |
"""
Pyinvoke tasks.py file for automating releases and admin stuff.
Author: Shyue Ping Ong
"""
from invoke import task
import glob
import os
import json
import webbrowser
import requests
import re
import subprocess
import datetime
from monty.os import cd
from pymatgen import __version__ as CURRENT_VER
NEW_VER = da... | nisse3000/pymatgen | tasks.py | Python | mit | 7,523 | [
"pymatgen"
] | eb3c438aab0ef459d4d6652f42de54be2f801f10cf2b01195bf57bee9e45ca00 |
# -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# 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 t... | LordSputnik/beets | beetsplug/discogs.py | Python | mit | 14,498 | [
"VisIt"
] | 44e4abfe682c99eb3dcd43de78da45466972ba0adb736d4dd5e88e666f0aa5e2 |
#!/usr/bin/env python2.7
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redis... | dougxc/mx | mx.py | Python | gpl-2.0 | 518,711 | [
"VisIt"
] | 8b529442706625cf0309131b6bb48f3b251829a8bd88aefc757c19978e65fb10 |
# vim: fileencoding=utf-8 et ts=4 sts=4 sw=4 tw=0
"""
Base RPC client class
Authors:
* Brian Granger
* Alexander Glyzov
* Axel Voitier
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2012-2014. Brian Granger, Min Ragan-Kelley, Alexander Glyzov,
# Axel Voitier
#
#... | srault95/netcall | netcall/base_client.py | Python | bsd-3-clause | 6,680 | [
"Brian"
] | 1f8e9dde3329fa33221123b570e59171d2fcdd222a423c6979ac9c465406fe46 |
#!/usr/bin/env python
"""
Get parameters assigned to the CE
"""
__RCSID__ = "$Id$"
import json
from DIRAC.Core.Base import Script
from DIRAC import gLogger, exit as DIRACExit
from DIRAC.ConfigurationSystem.Client.Helpers import Resources
Script.setUsageMessage('\n'.join(['Get the parameters of a CE',
... | fstagni/DIRAC | Resources/scripts/dirac-resource-get-parameters.py | Python | gpl-3.0 | 1,353 | [
"DIRAC"
] | f741a3cecf6c1c72f19f96c56da778a78d0066d33bc3bc11f20575874a6d0dc2 |
# Copyright (c) 2011-2019, Ulf Magnusson
# SPDX-License-Identifier: ISC
"""
Overview
========
Kconfiglib is a Python 2/3 library for scripting and extracting information
from Kconfig (https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt)
configuration systems.
See the homepage at https://github.com/u... | KevinOConnor/klipper | lib/kconfiglib/kconfiglib.py | Python | gpl-3.0 | 259,936 | [
"VisIt"
] | 42db0f9368347d31e81fdd5dd7b9dba321dac200ce81209ab2a72efa2e3eacf9 |
from __future__ import division, print_function, absolute_import
import os
import sys
import contextlib
if sys.version_info[0] < 3:
from urllib2 import urlopen
else:
from urllib.request import urlopen
from os.path import join as pjoin
from hashlib import md5
from shutil import copyfileobj
import numpy as np... | JohnGriffiths/dipy | dipy/data/fetcher.py | Python | bsd-3-clause | 26,445 | [
"VisIt"
] | 5c048942a84d8bb61b1612b8b4ac152ec0d151c62b86af4db754c4b9b912e697 |
import os
#from multiprocessing import cpu_count
from GangaCore.Utility.Config import makeConfig, getConfig
from GangaCore.Utility.logging import getLogger
from GangaCore.Utility.Config.Config import _after_bootstrap
from GangaCore.GPIDev.Credentials.CredentialStore import credential_store
logger = getLogger()
... | ganga-devs/ganga | ganga/GangaDirac/__init__.py | Python | gpl-3.0 | 8,942 | [
"DIRAC"
] | 5bdcd55e2c5d1a21072068f6d3d244e5e2695d3694887ecb3405dee67d7167b1 |
# 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... | ChinaMassClouds/copenstack-server | openstack/src/horizon-2014.2/horizon/base.py | Python | gpl-2.0 | 35,918 | [
"VisIt"
] | 2426cf30cd5145a2be842f97deffc75597d2dd141dd29f1f9b499189aaf1a7e1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'gzlug'
SITENAME = u'广州 GNU/Linux 用户组'
SITEURL = ''
BANNER_SUBTITLE = '广州 GNU/Linux 用户组'
PATH = 'content'
TIMEZONE = u'Asia/Shanghai'
DEFAULT_LANG = u'zh_CN'
# Feed generation is usually not desired when developing
F... | gzlug/gzlug.org | pelicanconf.py | Python | cc0-1.0 | 1,752 | [
"MOE"
] | 9b897b2e15b25f12ad34bc110b3cc5cfea8e0849fad80790fbcb9fe428c73472 |
"""
author: Guillaume Bouvier
email: guillaume.bouvier@ens-cachan.org
creation date: 01 10 2013
license: GNU GPL
Please feel free to use and modify this, but keep the above information.
Thanks!
"""
import numpy,struct
import pdbReader
class DcdReader:
def __init__(self, dcdfile, pdbfile, selection=None, ver... | bougui505/SOM | dcdReader.py | Python | gpl-2.0 | 6,640 | [
"CHARMM"
] | e68e8009340acf1d2d3093a96f7594385d230e20ed18f914a48a4262133c4710 |
# simple script to output a gaussian blur filter kernel
import math
import sys
def main(argv):
if len(argv) != 3:
print 'usage: make_blur_table.py <table dimension> <sigma>'
sys.exit()
dim = int(argv[1])
sigma = float(argv[2])
sigma_sq = sigma * sigma
scalar = 1.0 / (2 * math.pi * sigma_sq)
for y... | lnihlen/vcsmc | tools/make_blur_table.py | Python | gpl-3.0 | 619 | [
"Gaussian"
] | b5e0589ad551c0f332fd9c1fbf43cdb0961b9e83e2ade886b97d236a1705330b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.