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/python2
import os
import time
import random
import math
import matplotlib
matplotlib.use('GTKAgg')
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axis3d
import matplotlib.animation as animation
from subprocess import call
def weibull(x,k,l):
"""Determine the probability at x with k an... | nicholasyager/turbulent_swarm_modeling | swarm.py | Python | gpl-2.0 | 12,690 | [
"Gaussian"
] | e156dc2d9e23509d6dfd43ed7bde1e9cd9445d37d9f698b7307f9b2fc663895a |
import numpy as np
from phonopy.phonon.dos import TotalDos
class TotalDosUnfolding(TotalDos):
def __init__(self, mesh_object, sigma=None, tetrahedron_method=False):
TotalDos.__init__(
self,
mesh_object,
sigma=sigma,
tetrahedron_method=tetrahedron_method)
... | yuzie007/ph_unfolder | upho/phonon/dos_unfolding.py | Python | mit | 595 | [
"phonopy"
] | 6fc350c720ad080c9bc84b43b6d68fe5c6e8c24376fb73999c2035064a317844 |
#!/usr/bin/env python
#
# Copyright 2016 The AMP HTML 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
#
# Unl... | jmadler/amphtml | validator/js/webui/build.py | Python | apache-2.0 | 5,385 | [
"GULP"
] | b17ce0b63fed951eb3b7836f4444d241d02c1d3d2d886bd0fc3b2e18a396012d |
import os
import sys
from subprocess import Popen, PIPE
#======================#
# Set System Specifics #
#======================#
def msg(text, msg_type="\033[1m"):
""" Reports an error to the user and exits """
color = {'error': '\033[91m', 'warning': '\033[93m'}
print("")
print(color[msg_type] + "p... | AndersenLab/pyPipeline | utils/utils.py | Python | mit | 5,345 | [
"BWA"
] | 254d0c9e7cbe0f4f37d2d93d3fc8455198a8a8643c78b129532cbe48f218c313 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/one2manydelegate.py | Python | gpl-2.0 | 2,451 | [
"VisIt"
] | 9585a22d0ed5a4822f2632d8a8dd2cddd72624f0cc178a633b641cd18d581b96 |
# Copyright (c) 2011, Felix Laurie von Massenbach <fantasizer@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright noti... | erbridge/lord-of-ultima-tools | src/main.py | Python | bsd-3-clause | 30,316 | [
"Octopus"
] | 3a0b4243911b0ea341d54bbe0047a64aa95301e97215b04288724c69af68ad9e |
# ===============================================================================
# Copyright 2018 gabe-parrish and Dan Cadol
#
# 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.ap... | NMTHydro/Recharge | utils/depletions_modeling/cumulative_depletions.py | Python | apache-2.0 | 13,394 | [
"NetCDF"
] | 2af79fbfe4f66d60bc4070523b931ecd375e3aa504fce32f373198038c12347d |
# Orca
#
# Copyright 2004-2009 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | h4ck3rm1k3/orca-sonar | src/orca/settings.py | Python | lgpl-2.1 | 27,191 | [
"ORCA"
] | 9d0ad123fc73c94e91db705a8fcfba1a234e81b7acb0bd42a78c72d14ada239e |
# ======================================================================
# USER-GFMD - Elastic half-space methods for LAMMPS
# https://github.com/Atomistica/user-gfmd
#
# Copyright (2011-2016,2021)
# Lars Pastewka <lars.pastewka@imtek.uni-freiburg>,
# Tristan A. Sharp and others.
# See the AUTHORS file in the top... | Atomistica/user-gfmd | tests/TEST_energy_conservation_two_layers/eval.py | Python | gpl-2.0 | 1,345 | [
"LAMMPS"
] | 440f982151a44daaa1d920c1ee18fb153f814bd3593fe7a6d31491767c647155 |
#!env/python3
# coding: utf-8
metadata = {
"name" : "VCF",
"input" : ["vcf", "vcf.gz"],
"description" : "Import variants from vcf file"
}
async def import_data(file_id, filepath, core=None, reference_id = 2):
import ipdb
import os
import datetime
import sqlalchemy... | REGOVAR/regovar-server | annso/imports/vcf.py | Python | agpl-3.0 | 28,053 | [
"pysam"
] | 0b432314ee184b3226a16d4a61e079d5b91281c83a7ca62b7ec69afee6e98b81 |
# -*- coding: utf8 -*-
"""
This is part of shot detector.
Produced by w495 at 2017.05.04 04:18:27
"""
from __future__ import absolute_import, division, print_function
import logging
from functools import partial
from scipy import stats
from shot_detector.filters.common import MathFilter
from .base_swfilter ... | w495/python-video-shot-detector | shot_detector/filters/sliding_window/base_stat_swfilter.py | Python | bsd-3-clause | 9,010 | [
"Gaussian"
] | 6e5d8953bd76e7c8fcf8d5ec1cb2472c354e996043da0497048b680d546588ce |
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from django.db.models import Q
import mock
from actstream.models import Action, Follow
from nose.tools import eq_, ok_, raises
from taggit.models import Tag
import kitsune.sumo.models
from kitsune.flagit.models import FlaggedObject
from kitsune.search.... | mythmon/kitsune | kitsune/questions/tests/test_models.py | Python | bsd-3-clause | 22,871 | [
"VisIt"
] | f0f81b0e48d7e6aee51f83345683e0035a3fd1cb49770266657ba2125bdfb9c6 |
import asyncio
import concert.config
import concurrent.futures
import functools
import queue
import logging
import time
from threading import Thread
from concert.config import AIODEBUG
from concert.helpers import PrioItem
from concert.quantities import q
LOG = logging.getLogger(__name__)
# Loop which runs in a separa... | ufo-kit/concert | concert/coroutines/base.py | Python | lgpl-3.0 | 7,566 | [
"VisIt"
] | f62d4159272c8e9d86a71d8970605c3b65835232ae0252a5df161e4d86b4035a |
"""
#####################################################################
Copyright (C) 2001-2016, Michele Cappellari
E-mail: michele.cappellari_at_physics.ox.ac.uk
Updated versions of the software are available from my web page
http://purl.org/cappellari/software
If you have found this software useful for your
rese... | Kruehlio/MUSEspec | utils/voronoi.py | Python | mit | 30,306 | [
"Galaxy"
] | a63ed6a8bdb370e34df4892c95277682160cfa6473ddcc14d2e01136143bb8e2 |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | KaiSzuttor/espresso | testsuite/scripts/samples/test_load_checkpoint.py | Python | gpl-3.0 | 1,181 | [
"ESPResSo"
] | 3249fd79ebfe1431145c4ec5ef987640bd0454622781c61e369223324b97ce39 |
# -*- coding: utf-8 -*-
""" GIS Module
@requires: U{B{I{gluon}} <http://web2py.com>}
@requires: U{B{I{shapely}} <http://trac.gispython.org/lab/wiki/Shapely>}
@copyright: (c) 2010-2013 Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaini... | flavour/tldrmp | modules/s3/s3gis.py | Python | mit | 351,124 | [
"Amber"
] | e8b4b3c7c1a59cb1716d1b3924d7ef3cd2f76a85609cdbb2219ebce81333d092 |
# -*- coding: utf-8 -*-
"""
Tests for the text processor.
"""
from __future__ import unicode_literals
import json
from unittest import TestCase, main
from datetime import datetime
import mock
from nose.tools import * # noqa (PEP8 asserts)
from nose.plugins.attrib import attr
import nltk
from textblob.compat import P... | jonmcoe/TextBlob | tests/test_blob.py | Python | mit | 39,466 | [
"Octopus"
] | 10fc47e7128be32d221931c263793e388a96cc67cc8269037c0239d956be7237 |
from genesys.generator import ListGenerator, PercentGenerator, TemplateGenerator
from genesys.generator import Generated
#from ..generator.template import GeneratorTemplate
from genesys.generator import ListData
from . import fixtures
class Galaxy(Generated):
@property
def title(self):
return self.va... | d2emon/generator-pack | src/genesys/generator/_unknown/space/galaxy.py | Python | gpl-3.0 | 1,927 | [
"Galaxy"
] | 1a1bd7f38cd66ea7f62e6e11316223356b14b3ab9d94afcf7de6914344cef7ad |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... | ccxt/ccxt | python/ccxt/hitbtc.py | Python | mit | 52,842 | [
"CASINO"
] | fad744e8a6ca8b6ca3a37ac3a0473dbdcfc4b58a57dd806adca98c259cb846ca |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the PyNeurActiv project, which aims at providing tools
# to study and model the activity of neuronal cultures.
# Copyright (C) 2017 SENeC Initiative
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | Silmathoron/PyNeurActiv | analysis/bayesian_blocks.py | Python | gpl-3.0 | 13,772 | [
"Gaussian"
] | 0d0dab3cb39eb466136715c4b4b20a33fcbf47f63471f588edd33a8e70cf0e8a |
import random
import numpy
from rdkit.ML.DecTree import ID3
def GenRandomExamples(nVars=10, randScale=0.3, bitProb=0.5, nExamples=500, seed=(0, 0),
addResults=1):
random.seed(seed[0])
varWeights = numpy.array([random.random() for _ in range(nVars)]) * randScale
examples = [None] * nExamp... | rvianello/rdkit | rdkit/ML/DecTree/randomtest.py | Python | bsd-3-clause | 1,028 | [
"RDKit"
] | eb255475c21c2ce8af57e837e27ad1675f2b73e55ec4151c23efa6a8abe9c9f3 |
# -*- coding: utf-8 -*-
"""
Implementation of various volumetric filter kernels
.. _FilterTypes:
Filter Type
-----------
Filter types defined by the ``ftype`` key include:
=============== =====================================
Type Descrition
=============== =====================================
``mean`... | ChristophKirst/ClearMap | ClearMap/ImageProcessing/Filter/FilterKernel.py | Python | gpl-3.0 | 11,700 | [
"Gaussian"
] | 459c41ba1bef5781774007e1c02a3dc4d7803b110809c894d429a2d3ed121692 |
r"""
Linear elasticity with a given prestress in one subdomain and a (pre)strain
fibre reinforcement in the other.
Find :math:`\ul{u}` such that:
.. math::
\int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u})
+ \int_{\Omega_1} \sigma_{ij} e_{ij}(\ul{v})
+ \int_{\Omega_2} D^f_{ijkl} e_{ij}(\ul{v}) \left(d... | RexFuzzle/sfepy | examples/linear_elasticity/prestress_fibres.py | Python | bsd-3-clause | 2,171 | [
"VTK"
] | c5ad503c01d49c0796c82853f4b77c48f321e498f70edbe31c0e860565374a32 |
# -*- coding: utf-8 -*-
def VtkDibujaPropPoints(nmbFilter):
visPoints= vtk.vtkSelectVisiblePoints()
visPoints.SetInput(nmbFilter)
visPoints.SetRenderer(renderer)
visPoints.SelectionWindowOff()
#Create the mapper to display the point ids. Specify the format to
# use for the labels. Also create the... | lcpt/xc | python_modules/postprocess/xcVtk/vtk_dibuja_prop_points.py | Python | gpl-3.0 | 712 | [
"VTK"
] | 90dca7495706806387594755acc0074ca1e26def56d0472dbc9b83f610b1b413 |
from django.test import TestCase
from django_rdkit.models import *
from rdkit.Chem import AllChem as Chem
from .models import *
from .molecules import SMILES_SAMPLE
from .reactions import REACTION_SMILES_SAMPLE, REACTION_SMARTS_SAMPLE
class MolFieldTest(TestCase):
def setUp(self):
for smiles in SMILES_... | rdkit/django-rdkit | tests/tests.py | Python | bsd-3-clause | 14,471 | [
"RDKit"
] | a7938c8d828f3f39a47b5fb8dbc637258dc5226b80add1557a40eea29372873b |
#!/usr/bin/env python
import PyQt4
from PyQt4 import QtGui
import sys
sys.path.append('.')
sys.path.append('/usr/lib/freecad/lib')
import FreeCAD, FreeCADGui, Part
import SimpleSolidPy.primitives
def getMainWindow():
toplevel = QtGui.qApp.topLevelWidgets()
for i in toplevel:
print i.metaObject().... | dwighthubbard/SimpleSolidPy | failed_experiments/freecad_window_3.py | Python | gpl-2.0 | 1,384 | [
"CRYSTAL"
] | 7bfb6a047c4d80a21703c4ee3cc7c7e361d2d3a5316fa7dac988268768012cf5 |
#!/usr/bin/env python
# vim:fileencoding=UTF-8
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from collections import OrderedDict
fro... | sss/calibre-at-bzr | src/calibre/ebooks/metadata/sources/google_images.py | Python | gpl-3.0 | 4,816 | [
"VisIt"
] | d82c1446e072dd67c18a5da2b8f2dbe86894f78519109355e56be5a1db91bc58 |
#!/usr/bin/env python
# install.py tool to do a generic build of a library
# soft linked to by many of the lib/Install.py files
# used to automate the steps described in the corresponding lib/README
import sys,commands,os
# help message
help = """
Syntax: python Install.py -m machine -e suffix
specify -m and opti... | andeplane/lammps | lib/reax/Install.py | Python | gpl-2.0 | 2,071 | [
"LAMMPS"
] | 5caf8fa29b0816a5ef725a9f80aebeda8fe983db7994e23edc32bc3134c98b3f |
#!/usr/bin/env python
"""
plot.py
State Estimation and Analysis for PYthon
Module with plotting utilities
Written by Brian Powell on 10/18/13
Copyright (c)2010--2021 University of Hawaii under the MIT-License.
"""
import numpy as np
from scipy import ndimage
import os
import re
from matplotlib import pyp... | powellb/seapy | seapy/plot.py | Python | mit | 1,069 | [
"Brian"
] | 43da2fc851a232ca597c907355dffcc1e2afdf7c36b2f7c7427c14afffac41ef |
import sys
import subprocess
MODULES = [
"scipy.cluster",
"scipy.cluster.vq",
"scipy.cluster.hierarchy",
"scipy.constants",
"scipy.fft",
"scipy.fftpack",
"scipy.fftpack.convolve",
"scipy.integrate",
"scipy.interpolate",
"scipy.io",
"scipy.io.arff",
"scipy.io.harwell_boe... | pizzathief/scipy | scipy/_lib/tests/test_import_cycles.py | Python | bsd-3-clause | 1,276 | [
"NetCDF"
] | 641649091d9f33ee8d9dde929eab285f134098f04a7c426227b7b2b96f73469b |
"""
Support for the Amazon Polly text to speech service.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/tts.amazon_polly/
"""
import logging
import voluptuous as vol
from homeassistant.components.tts import Provider, PLATFORM_SCHEMA
import homeassistan... | persandstrom/home-assistant | homeassistant/components/tts/amazon_polly.py | Python | apache-2.0 | 6,477 | [
"Brian"
] | a5f10aa901a65d70ec002c4bc89c5de1ec70f77ea8c8f88506c0803d7b11a084 |
"""
The Cobweb3 module contains the :class:`Cobweb3Tree` and :class:`Cobweb3Node`
classes, which extend the traditional Cobweb capabilities to support numeric
values on attributes.
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ i... | cmaclell/concept_formation | concept_formation/cobweb3.py | Python | mit | 24,804 | [
"Gaussian"
] | ea9df49fd8775f34e6ea80bc58de9d3196bc4c4e16e673148b5ecba669a86811 |
#!/usr/bin/python
import sys
import argparse
from utilities import filesFromList
from plotTools import userLabels, extractFromCSV, addToPlot
import matplotlib.pyplot as plt
'''
A script for processing vertical mean profiles extracted from Palm LES analysis with Paraview.
Author: Mikko Auvinen
mikko.auvinen@he... | saskartt/P4UL | pyAnalyze/profilesFromCSV.py | Python | mit | 2,211 | [
"ParaView"
] | 7da008e54edfbbae0cb2b4dae4af236c250b46e35504b54605d057f79b931aa7 |
# -*- Mode: python; coding: utf-8 -*-
from __future__ import division
#from __future__ import with_statement
LAYOUT_ALGORITHM = 'neato' # ['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']
REPRESENT_CHANNELS_AS_NODES = 1
DEFAULT_NODE_SIZE = 3.0 # default node size in meters
DEFAULT_TRANSMISSIONS_MEMORY = 5 # default number o... | annegabrielle/secure_adhoc_network_ns-3 | src/tools/visualizer/visualizer/core.py | Python | gpl-2.0 | 59,315 | [
"FLEUR"
] | b7e6b91d1483d3eb9e57bf654c68761708891e29c429efb9dfbe5e7339439028 |
import click
import os
import subprocess
from jsub import Jsub
from jsub.config import load_config_file
JSUB_COMMAND_DIR = os.path.dirname(os.path.realpath(__file__))
#usage: jsub register <filelist>/<folder_name>
# the command would run the dirac-register.sh script, which register the files to DFC;
# if the file... | jsubpy/jsub | jsub/command/register_to_dfc.py | Python | mit | 1,293 | [
"DIRAC"
] | 8e3df111fffb41218abff0fec8fc57c18660889f1ff49cdb0ecdb7462966d25a |
#!/usr/local/sci/bin/python2.7
#*****************************
#
# apply 5x5 climatology to 5x5 monthly fields
#
#
#************************************************************************
'''
Author: Robert Dunn
Created: March 2016
Last update: 11 Feb 2021
Location: /home/h04/hadkw/HadISDH_Code/MARINE_BUILD/EUSTACE_SST... | Kate-Willett/HadISDH_Marine_Build | EUSTACE_SST_MAT/apply_5x5monthly_climatology.py | Python | cc0-1.0 | 12,789 | [
"NetCDF"
] | 72f45d27765b4924e859eb9787d3325242ca222b4d2e86d44f9ec8c8e6eed6a1 |
#!/usr/bin/env python
#
# $File: otherTagging.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribu... | BoPeng/simuPOP | docs/otherTagging.py | Python | gpl-2.0 | 2,473 | [
"VisIt"
] | 95ee246d9abe533b7044720efd44457c60ad139f96967cd067e63274ece4b279 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provide ways to loading molecules for the test instances.
"""
import os
import re
__license__ = 'X11'
__DATA_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) + '/../../data/'
__DATASET_DIRECTORY = __DATA_DIRECTORY + 'datasets/'
__MOLECULES_FILE_CACHE = {}
cl... | skodapetr/lbvs-environment | scripts/libs/data.py | Python | mit | 6,451 | [
"RDKit"
] | c5a04968ef21c96d4f50edb64228ef7cdc0cb76aafa5cce800f6a5d7145344a1 |
'''
Created on Jul 28, 2011
@author: mkiyer
'''
'''
Created on Jan 31, 2011
@author: mkiyer
chimerascan: chimeric transcript discovery using RNA-seq
Copyright (C) 2011 Matthew Iyer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published... | madhavsuresh/chimerascan | chimerascan/deprecated/filter_chimeras_v2.py | Python | gpl-3.0 | 10,107 | [
"pysam"
] | f7853075dd37b2ae03fd37aa683cd51a672343e113119039c77d8b39707bbf39 |
# 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... | GiulianoFranchetto/zephyr | scripts/kconfig/kconfiglib.py | Python | apache-2.0 | 252,697 | [
"VisIt"
] | 503fae1cbf326ffb602d3652fc8c466b83959231bc137caac2acd7d61a27c2e4 |
r"""
Piezo-elasticity problem - homogenization of a piezoelectric linear elastic
matrix with embedded metalic electrodes, see [1] for details.
[1] E.Rohan, V.Lukes: Homogenization of the fluid-saturated piezoelectric
porous media. International Journal of Solids and Structures 147, 2018,
pages 110-125. https://doi.org... | sfepy/sfepy | examples/multi_physics/piezo_elasticity_macro.py | Python | bsd-3-clause | 4,693 | [
"VTK"
] | 316b51c64a26a35bd8dda4d25243bfb3b39c17aba7138c3cf0060cb69040c59a |
__author__ = "Gyrodrill恋恋"
langversion = 1
langname = "Chinese"
##updater
# text construct: "Version "+version+available+changelog
#example: Version 3 available, click here to download, or for changelog click here
available = " 更新了,单击此处下载。"
changelog = " 单击此处查看更新内容。"
##world gen
worldify = "读取图片"
planetoids = "小圆点"
... | Berserker66/omnitool | omnitool/Language/chinese.py | Python | mit | 3,233 | [
"VisIt"
] | f27bdba1c874ec1c407823781f23602cfdd46b865446651a8784fc3eed29c2f4 |
#!/usr/bin/env python
##############################################################################################
#
#
# regrid_emissions_N96e.py
#
#
# Requirements:
# Iris 1.10, time, cf_units, numpy
#
#
# This Python script has been written by N.L. Abraham as part of the UKCA Tutorials:
# http://www.ukca.ac.u... | acsis-project/emissions | emissions/python/timeseries_1960-2020/regrid_C2H6_emissions_n96e_360d.py | Python | gpl-3.0 | 17,463 | [
"NetCDF"
] | 0adf6957696e14b3f358051e2dca6b553a868a2976d38b4c9d23b302e42e568a |
import imp
import os
import marshal
import stat
import string
import struct
import sys
import types
from cStringIO import StringIO
from compiler import ast, parse, walk, syntax
from compiler import pyassem, misc, future, symbols
from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL
from compiler.consts imp... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.2/Lib/compiler/pycodegen.py | Python | mit | 42,163 | [
"VisIt"
] | 34bb47f8e431077e0c46ccd70ca66acc4a85b04ce2818abbbd09c7f3ad4c243a |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import dryscrape
# make sure you have xvfb installed
dryscrape.start_xvfb()
root_url = 'YOUR_BASE_URL'
if __name__ == '__main__':
# set up a web scraping session
sess = dryscrape.Session(base_url = root_url)
# we don't need images
sess.set_attribute('auto_load_i... | siongui/userpages | content/code/python-dryscrape-form/submit.py | Python | unlicense | 1,080 | [
"VisIt"
] | ec809554adfeb272c3699df48fee93d11a266bd44c5ba2c60a5104c4dba6da58 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module defines Entry classes for containing experimental data.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Proj... | matk86/pymatgen | pymatgen/entries/exp_entries.py | Python | mit | 2,797 | [
"pymatgen"
] | a7781aa526d0397d342ac24d44f6edfb98a3cc7213f5b7c1ffffb89c515074cf |
import os
from json import dumps
from .destination import submit_params
from .setup_handler import build as build_setup_handler
from .job_directory import RemoteJobDirectory
from .decorators import parseJson
from .decorators import retry
from .util import copy
from .util import ensure_directory
from .util import to_ba... | jmchilton/lwr | lwr/lwr_client/client.py | Python | apache-2.0 | 16,780 | [
"Galaxy"
] | 7e92c9ffcef5f8f55356016576aa6b5ecacb5ff2a5b6a42e19dda3d5d574cb78 |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | nouiz/fredericbastien-ipaddr-py-speed-up | tags/2.1.7/ipaddr_test.py | Python | apache-2.0 | 48,498 | [
"FEFF"
] | 56656d0e9d482e26dfad954fe93e82ca6aadfaddd047e4b9c0e72d9918a273fb |
# /polysquarecmakelinter/check_access.py
#
# Linter checks for access rights
#
# See /LICENCE.md for Copyright information
"""Linter checks for access rights."""
from polysquarecmakelinter import find_all
from polysquarecmakelinter import find_variables_in_scopes
from polysquarecmakelinter.types import LinterFailure
... | polysquare/polysquare-cmake-linter | polysquarecmakelinter/check_access.py | Python | mit | 3,122 | [
"VisIt"
] | 351ae4bb6d1bacf228f63f8007f69b34cf8eb2d89cdbf3429f3bf2db7a3dc2bb |
#!/usr/local/bin/env python
# =============================================================================================
# MODULE DOCSTRING
# =============================================================================================
"""
Yank
====
Interface for automated free energy calculations.
"""
# ======... | andrrizzi/yank | Yank/yank.py | Python | mit | 31,909 | [
"NetCDF",
"OpenMM"
] | 53836859ba4811c4b14254941b17c83ec15f4e9e30cf4dc72d5160a76aaee320 |
#!/usr/bin/env python
#Classes for annotation storage information
#Dan Stribling
#Version 1.0, 01/31/2014
#from helper import *
import os.path
SPLIT_1='&&&'
SPLIT_2='!!!'
SPLIT_3='***'
# ---- Annotation Record Class ----
# Stores matches for a particular sequence from a blast result,
# relevant source data, an... | FSUgenomics/TFLOW | tflow/annotation.py | Python | gpl-2.0 | 32,116 | [
"BLAST"
] | 85540d638c642c94415dcde767bdc957935053f9dcbf8b4084b2805cf76b2342 |
import os
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
class SegmentEditorMaskVolume(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py
... | lassoan/SlicerSegmentEditorExtraEffects | SegmentEditorMaskVolume/SegmentEditorMaskVolume.py | Python | bsd-3-clause | 6,158 | [
"VTK"
] | 11b4c698e2541d539e0518d721df36ff7993877527dc4789b7792e1bc600f1c1 |
from mpl_toolkits.mplot3d import Axes3D # noqa
import numpy as np
from matplotlib import pyplot, cm
from devito.logger import warning
def plot_field(field, xmin=0., xmax=2., ymin=0., ymax=2., zmin=None, zmax=None,
view=None, linewidth=0):
"""
Utility plotting routine for 2D data.
Paramet... | opesci/devito | examples/cfd/tools.py | Python | mit | 2,948 | [
"Gaussian"
] | cd22b0580a9e74d60c03ad2ee36e4203a926bf4a7cc97d68616d8aa3874f8596 |
"""
Computational Neurodynamics
Exercise 1
Simulates Izhikevich's neuron model using the Euler method.
Parameters for regular spiking, fast spiking and bursting
neurons extracted from:
http://www.izhikevich.org/publications/spikes.htm
(C) Murray Shanahan et al, 2015
"""
import numpy as np
import matplotlib.pyplot a... | JackThorp/ComputationalNeurodynamics | Exercise_1/IzNeuronRungeKuttaDemo.py | Python | gpl-3.0 | 1,873 | [
"DIRAC",
"NEURON"
] | dedbeb259c3212fd292e77a0b76201fa086aa798b8d923f103d583087001f32a |
# This script was written by Chaitanya Chintaluri c.chinaluri@nencki.gov.pl
# This software is available under GNU GPL3 License.
# Uses neuron simulator to dump the data into NSDF file format, using hdf5
# using h5py. This was used to test various flavours of dumping the data
# while storing the currents, and voltage... | nsdf/nsdf | examples/neuron_Hay/test_neuron_Hay.py | Python | gpl-3.0 | 17,245 | [
"NEURON"
] | 2a4d31e326aacacbf7a6ab399a1497bed4c44c61cf8568110717a6de904089f6 |
# -*- coding: utf-8 -*-
"""This module tests various ways how to set up the provisioning using the provisioning dialog."""
import fauxfactory
import pytest
import re
from datetime import datetime, timedelta
from cfme.common.provider import cleanup_vm
from cfme.common.vm import VM
from cfme.exceptions import FlashMessa... | thom-at-redhat/cfme_tests | cfme/tests/infrastructure/test_provisioning_dialog.py | Python | gpl-2.0 | 11,452 | [
"VisIt"
] | fce72ee0ecb9d9ef217d31949367a663090deb90af9de597e0cf10f8d5cf6109 |
import numpy as np
from sklearn.neighbors import NearestNeighbors
from mayavi import mlab
import inspect,os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))
dname += os.sep + 'results'
os.chdir(dname)
class Manifold(object):
"""... | dlithio/optiman | src/Manifold.py | Python | gpl-2.0 | 10,211 | [
"Mayavi"
] | 60d2b2ade4275fa5807c0a6682956486223d2587ac5e4ab51d24676fe21a47f0 |
"""
@package RandomFileTextGenerator
random fileText generator using http://randomtextgenerator.com/
Copyright (C) 2015 Remi Carpentier
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 ... | Fr33Radical/FileTextGenerator_python27 | RandomFileTextGenerator.py | Python | gpl-3.0 | 2,797 | [
"VisIt"
] | 1a6f7b73c269817e78929fa79ed1ad4c53fba8e5611fa49219864a48e9a5a873 |
# Copyright 2012 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of ngs_crumbs.
# ngs_crumbs 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, ... | JoseBlanca/ngs_crumbs | test/bam/test_bam_statistics.py | Python | gpl-3.0 | 8,417 | [
"pysam"
] | 0435a1edb52a1472b8ae3fcebebb578db2fb5848c9dc177f98a38b6266a9e3c5 |
#!/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/ajax/event.py | Python | gpl-2.0 | 19,463 | [
"VisIt"
] | c99b8505d8ca64a760ceb71709c82c9a1ce6fa0f2d4f2e6e1d3bab19de225c1f |
#!/bin/python
from _collections import defaultdict
def findunique(choices):
'''
in the arrary, every element except 1 has exactly 1 duplicate, how to find the unique one
also: analyze performance
'''
dic = defaultdict(int)
for choice in choices: #O(N)
dic[choice]+=1
for item in dic.items(): #O(N)
if... | dramaticlly/Python4Interview | onlyunique.py | Python | mit | 1,624 | [
"Amber"
] | cde012e7f416219fe4576904662a1ea1f3c1b553965454b3b804f2e22d24a73e |
from netCDF4 import num2date, date2num
from datetime import datetime
import xarray as xr
import pandas as pd
import numpy as np
def idw(file, varname, stations, extent=None, period=None,
alpha=2, k=4, **kwargs):
"""
Extract inverse distance weighting interpolated time series from netcdf
file for a... | FIDS-UWO/climate | downscaling/idw/idw.py | Python | mit | 5,744 | [
"NetCDF"
] | 463540b5aa1eb20893e7fadf53c37e5a21a44f2b0d9c1d102d5492a6888a683d |
from twisted.internet import reactor, task, defer
from twisted.python import log
from kademlia.network import Server
from collections import Counter
import subprocess, time, sys, hashlib, time
# I'm using a kademlia DHT protocol. I built most of this on top of Brian Muller's kademlia python implementation which
# he s... | jhoward321/PythonP2PBotnet | botnet.py | Python | mit | 6,484 | [
"Brian"
] | 0abe594f901b03d28dd0f7c68844db78e2e8d760dabed843e1bb3711b9ed3766 |
import logging
from cStringIO import StringIO
from math import exp
from lxml import etree
from path import path # NOTE (THK): Only used for detecting presence of syllabus
import requests
from datetime import datetime
import dateutil.parser
from xmodule.modulestore import Location
from xmodule.seq_module import Sequen... | wwj718/edx-video | common/lib/xmodule/xmodule/course_module.py | Python | agpl-3.0 | 42,955 | [
"VisIt"
] | 185887c40934ba6a7f21205811b7feb40ffea2647c57c67b6e755d8cb0d11682 |
import logging
from re import split
from os.path import join
from os.path import basename
from . import utils
FILES_ENCODING = "ISO-8859-1"
DATASET = 'edsd'
ACQUISITION_SETTINGS = ['Manufacturer', 'ManufacturerModelName', 'MagneticFieldStrength']
ACQUISITION_CONCEPT_PREFIX = join("/", DATASET, "Imaging Data/Acquis... | LREN-CHUV/i2b2-import | i2b2_import/edsd_extension.py | Python | apache-2.0 | 4,698 | [
"VisIt"
] | e6e67f444a38d85f6571d1e05e16d9863a8ebc3360d27e13c49b548d4a58e38c |
"""
Simple example how to use emcee to fit 2D gaussian to noisy data...
"""
from support import files as fileIO
import numpy as np
import emcee
from astropy.modeling import models
def log_prior(theta):
"""
Priors, limit the values to a range but otherwise flat.
"""
#limit the values to 0 < theta < 256... | sniemi/EuclidVisibleInstrument | sandbox/2DgaussianMCMC.py | Python | bsd-2-clause | 3,897 | [
"Gaussian"
] | ed357aae2b7b26681d458293ddcb1a7cdd730a459ff7ff33370fd07f30590255 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import unittest
import os
from pymatgen import Element, Composition
from pymatgen.phasediagram.entries import PDEntryIO, PDEntry
from pymatgen.phasediagram.maker import... | xhqu1981/pymatgen | pymatgen/phasediagram/tests/test_pdmaker.py | Python | mit | 7,257 | [
"pymatgen"
] | e79c12661caf5bbc31c8f4f69cb8d010e0ebfaf9343918899b33f5b9ff61e09a |
# -*- coding: utf-8 -*-
"""
E2E tests for the LMS.
"""
from unittest import skip
from .helpers import UniqueCourseTest
from ..pages.studio.auto_auth import AutoAuthPage
from ..pages.lms.courseware import CoursewarePage
from ..pages.lms.annotation_component import AnnotationComponentPage
from ..fixtures.course import C... | tiagochiavericosta/edx-platform | common/test/acceptance/tests/test_annotatable.py | Python | agpl-3.0 | 5,361 | [
"VisIt"
] | eece651b70b73e4dfbd42fbe81c1d3f67043e5e8856a73e5802e182ff16c4493 |
#!/usr/bin/env python
# File: heatmap_ex.py
# Created on: Tue 07 Aug 2012 01:48:35 PM CDT
# Last Change: Tue 07 Aug 2012 02:06:20 PM CDT
# Purpose of script: <+INSERT+>
# Author: Steven Boada
from matplotlib import pyplot as PLT
from matplotlib import cm as CM
from matplotlib import mlab as ML
import numpy as NP
impor... | boada/ICD | sandbox/plot_snippets/heatmap_ex.py | Python | mit | 1,211 | [
"Galaxy"
] | a75e251269dbe4fb0cb94a538b96e4714e2363814d84efb2f0f1af8985564b7a |
# Tests covalently bonded ligand
import os
dir = os.path.dirname(__file__) + "/"
#==============================================================================
def check_built_system(p):
from vmd import atomsel, molecule
# Load the built system for checking
assert os.path.isfile(os.path.join(p, "test.... | Eigenstate/dabble | dabble/test/rho_c_tail/test_rho_tail.py | Python | gpl-2.0 | 3,311 | [
"Amber",
"CHARMM",
"VMD"
] | 4b77e591df0f72fc6f119f0d43501e1ba27d33160e1f65715c369d96e9a34a19 |
# polymatic module; calls Polymatic perl code and LAMMPS
import os
import sys
import shlex
import shutil
from time import strftime
from subprocess import Popen, PIPE
from pysimm import system, lmps
rappture = True
try:
import Rappture
except ImportError:
rappture = False
def pack(script, file_in, nrep, box... | polysimtools/pysimm | pysimm/apps/polymatic.py | Python | mit | 14,112 | [
"LAMMPS"
] | 5b77bfa8680ba90f092504084bc61eb2a390ffa63fce61f4d1c4138a0237661b |
# coding: utf-8
# Copyright (c) Materials Virtual Lab
# Distributed under the terms of the BSD License.
from __future__ import division, print_function, unicode_literals, \
absolute_import
import os
import abc
import io
import subprocess
import itertools
import numpy as np
from monty.tempfile import ScratchDir
f... | materialsvirtuallab/veidt | veidt/potential/lammps/calcs.py | Python | bsd-3-clause | 18,770 | [
"LAMMPS",
"pymatgen"
] | fc5d3724395e534438ace9fe81b73839068c90b2d7ea625f343f5ab8cad3308b |
"""
Diagnostics for estimated gwr modesl
"""
__author__ = "Taylor Oshan tayoshan@gmail.com"
import numpy as np
from crankshaft.regression.glm.family import Gaussian, Poisson, Binomial
def get_AICc(gwr):
"""
Get AICc value
Gaussian: p61, (2.33), Fotheringham, Brunsdon and Charlton (2002)
GWGL... | CartoDB/crankshaft | src/py/crankshaft/crankshaft/regression/gwr/base/diagnostics.py | Python | bsd-3-clause | 2,213 | [
"Gaussian"
] | 53c47576c5162c01f453f6b5dcb78400c928fda6ec2c1514f0f3264505ee7a9c |
import pytest
import gpflow
@pytest.mark.parametrize(
"init_lower", [0.0, 1e-6, gpflow.likelihoods.Gaussian.DEFAULT_VARIANCE_LOWER_BOUND]
)
def test_gaussian_lower_bound_constructor_check(init_lower: float) -> None:
with pytest.raises(
ValueError, match="variance of the Gaussian likelihood must be st... | GPflow/GPflow | tests/gpflow/likelihoods/test_gaussian.py | Python | apache-2.0 | 435 | [
"Gaussian"
] | d6614eeb442d4370b8c9c3f21c76f8b38cd64f07e219f6a9dd1401b1c04ac2cb |
from collections import OrderedDict
from itertools import product
import pytest
import warnings
from warnings import catch_warnings
from datetime import datetime, timedelta
from numpy.random import randn
import numpy as np
import pandas as pd
from pandas import (Series, DataFrame, bdate_range,
isn... | amolkahat/pandas | pandas/tests/test_window.py | Python | bsd-3-clause | 154,510 | [
"Gaussian"
] | afd230d7557537a40c0b3e191c24ded44758868a97887a3eefea4ac5c6e48c9d |
# Django settings for vasp_django project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'va... | jboes/jasp | jasp/www/vasp_django/vasp_django/settings.py | Python | gpl-2.0 | 5,331 | [
"VASP"
] | 7b0971f33483f6d16757feaeb8e7650280d338fecc82137bf748df397887622a |
#! /bin/usr/python2
import os, shutil, sys
import time
VERBOSE=False
def vprint(something):
if VERBOSE:
print("run4v:: --> %s"%something)
def clean():
dirs = os.listdir(os.path.abspath(os.curdir))
prefixs = [".run4v_pid_"]
for prefix in prefixs:
vprint("Removing files with prefix '%... | alejandrogallo/run4v | run4v/run4v.py | Python | mit | 17,035 | [
"VASP"
] | 5a8fead4d01f738905b681170c5a0136cd899606519662040b060febfa70add2 |
#
# 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/src/bigdl/orca/learn/mxnet/mxnet_runner.py | Python | apache-2.0 | 11,404 | [
"ORCA"
] | 6ea905ce812bf32b56094cb3c030b008c4854652c2d1311816ae65e91c3e4397 |
# trigrid2.py: a temporary side branch of trigrid.py
# see about having structured arrays for cells,points,edges
# so that subclasses can add fields which are kept in sync with
# the basic elements.
# this also introduces the difference between points - which are x,y coordinate pairs,
# and nodes, which are part... | rustychris/stomel | src/trigrid2.py | Python | gpl-2.0 | 125,969 | [
"Bowtie",
"VisIt"
] | 168675fd2a3284ecfcc869d95b50b3951ad9589f142130cb5aab37eeb9ec3778 |
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.abspath('lib'))
from ansible.release import __version__, __author__
try:
from setuptools import setup, find_packages
except ImportError:
print("Ansible now needs setuptools in order to build. Install it using"
" your package man... | serialdoom/ansible | setup.py | Python | gpl-3.0 | 2,020 | [
"Galaxy"
] | 29d2d3ca791067e63a4a87ea5b7a7f0e812fb981f571e5d7e3d2a476fce484ca |
from typing import Optional
# Zulip Settings intended to be set by a system administrator.
#
# See http://zulip.readthedocs.io/en/latest/settings.html for
# detailed technical documentation on the Zulip settings system.
#
### MANDATORY SETTINGS
#
# These settings MUST be set in production. In a development environment... | jrowan/zulip | zproject/prod_settings_template.py | Python | apache-2.0 | 18,348 | [
"VisIt"
] | 41110d89772297b8677e491424a005007a5783f00e1bff6446430420bccc8b97 |
# $Id$
#
# Copyright (C) 2007,2008 Greg Landrum
#
# @@ All Rights Reserved @@
#
import os
import io
import sys
import unittest
from rdkit import RDConfig
#import pickle
from rdkit.six.moves import cPickle as pickle
from rdkit import DataStructs as ds
class TestCase(unittest.TestCase):
def setUp(self) :
pass
... | soerendip42/rdkit | Code/DataStructs/Wrap/testDiscreteValueVect.py | Python | bsd-3-clause | 7,784 | [
"RDKit"
] | d9aef51444ca586c7d9d9698b9ea54bc0741e2272421277d95cb9c706bfb6f5a |
# -*- coding: utf-8 -*-
#
# hl_api.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (a... | hesam-setareh/nest-simulator | topology/pynest/hl_api.py | Python | gpl-2.0 | 71,159 | [
"Gaussian",
"NEURON"
] | 1e26c29bb61d96253ee8c219c50e13455a87134b1dc1ff3c0a5135433ce8a0d3 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2021 The SymbiFlow 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
#
# https://www.apache.org/licenses/LICE... | SymbiFlow/sphinxcontrib-hdl-diagrams | docs/conf.py | Python | apache-2.0 | 7,067 | [
"Amber"
] | 30f966aa207d65c5ea8a31bc2a13e39ef2c6cedd5534df2d73c5d0bb80482f06 |
# 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... | wangsheng1001/incubator-singa | examples/cifar10/vgg.py | Python | apache-2.0 | 3,881 | [
"Gaussian"
] | 4a9e9109821f23e0d370d9f1b57818534e37ee887607e42b50aae0832b2dbb7c |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# bestfitscheduler - [insert a few words of module description on this line]
# 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 t... | heromod/migrid | mig/server/bestfitscheduler.py | Python | gpl-2.0 | 5,726 | [
"Brian"
] | 478ad33e221c99ebec37f4ce6a633c83143d66fa994ac88f6f101f931cc4daf3 |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2002 Gary Shao
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2009 Gary Burton
# Copyright... | gramps-project/gramps | gramps/gen/plug/docgen/graphdoc.py | Python | gpl-2.0 | 42,011 | [
"Brian"
] | 4612267866401dca797f0a7dbc3c200b6bdc980f77a8d8dc251bd00322e44e95 |
"""
The Push Job Agent class inherits from Job Agent and aims to support job submission in
sites with no external connectivity (e.g. some supercomputers).
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import sys
import re
impor... | ic-hep/DIRAC | src/DIRAC/WorkloadManagementSystem/Agent/PushJobAgent.py | Python | gpl-3.0 | 16,012 | [
"DIRAC"
] | fb25edeff8563d207a464c9233753f7fadc982a2d37dfc91074fa0c75cd3af7b |
"""
Module containing data structures for representing datasets.
"""
from __future__ import print_function
from __future__ import division
from builtins import range
from past.utils import old_div
from builtins import object
from future.utils import with_metaclass
__author__ = 'wittawat'
from abc import ABCMeta, abst... | wittawatj/kernel-gof | kgof/data.py | Python | mit | 25,408 | [
"Gaussian"
] | 307839a2ada55216978f007b81ba8a2ae8f14ad7d0eebfa7ef12da92d95834c2 |
input_name = '../examples/multi_physics/biot_npbc.py'
output_name = 'test_biot_npbc.vtk'
from tests_basic import TestInput
class Test( TestInput ):
pass
| RexFuzzle/sfepy | tests/test_input_biot_npbc.py | Python | bsd-3-clause | 158 | [
"VTK"
] | 01be522be734aaa08a0d85e2e4f7dab05784ce1b32ce449e97a7d38f5084ef03 |
"""
Tests for discussion pages
"""
import datetime
from uuid import uuid4
from nose.plugins.attrib import attr
from nose.tools import nottest
from pytz import UTC
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.fixtures.discussion import (
Comment,
... | Lektorium-LLC/edx-platform | common/test/acceptance/tests/discussion/test_discussion.py | Python | agpl-3.0 | 64,311 | [
"VisIt"
] | 3aab81c889e5c541aba32cfe1a68cb1f4b42e5154f3121b7905183ada5a2ae18 |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2017, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | nervous-laughter/q2-demux | q2_demux/_summarize/_visualizer.py | Python | bsd-3-clause | 7,120 | [
"scikit-bio"
] | c88a303aeb63da2be1ca8dbc37c3d3aebb27c4dcc3cf3d0e05d8f1e365441e9d |
"""
Tool Parameter specific sanitizing.
"""
import logging
import string
import galaxy.util
log = logging.getLogger( __name__ )
class ToolParameterSanitizer( object ):
"""
Handles tool parameter specific sanitizing.
>>> from elementtree.ElementTree import XML
>>> sanitizer = ToolParameterSaniti... | volpino/Yeps-EURAC | lib/galaxy/tools/parameters/sanitize.py | Python | mit | 7,023 | [
"Galaxy"
] | f7e7e6ed0891667e785edebf84467a9227c02f537a9ff2410d3e278fd894eceb |
# Portuguese / Português - Translations - Python 3 Only!
from seleniumbase import BaseCase
from seleniumbase import MasterQA
class CasoDeTeste(BaseCase):
def __init__(self, *args, **kwargs):
super(CasoDeTeste, self).__init__(*args, **kwargs)
self._language = "Portuguese"
def abrir(self, *args... | seleniumbase/SeleniumBase | seleniumbase/translate/portuguese.py | Python | mit | 23,048 | [
"VisIt"
] | 7e0474ce4671e8668bdbf0a729181190f9aa29e42897d0c2064b2b0ac356a36f |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems 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
#... | guoxuesong/deepstacks | examples/neon/mnist_reuse.py | Python | mit | 5,662 | [
"Gaussian"
] | c5fdb803a13292d0fbe04b23899ebef4dd8f4f6b969b9c32167a8908ea194ac4 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | SKIRT/PTS | magic/tests/Sources/config.py | Python | agpl-3.0 | 2,188 | [
"Galaxy",
"Gaussian"
] | d175889682d65ae5c137394469def244c48dd35fc8e2d291a45ecba5b7b7e84f |
# Engine written by Advi (and what a lovely engine it is ^^)
# changes to Upgrade weapon for AA by: Morrow/Worrom
# chopped to retail by DrLecter
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import Q... | Barrog/C4-Datapack | data/jscript/blacksmith/1012_upgrade/__init__.py | Python | gpl-2.0 | 23,188 | [
"CRYSTAL"
] | a8a968739abe843cebc0a1759e619d111ef1b94b47d074cb253b4d8e256e3bf3 |
#!/usr/bin/python
"""Test of line navigation output of Firefox with links that contain
images.
"""
from macaroon.playback import *
import utils
sequence = MacroSequence()
########################################################################
# We wait for the focus to be on a blank Firefox window.
#
sequence.appe... | h4ck3rm1k3/orca-sonar | test/keystrokes/firefox/images_in_links.py | Python | lgpl-2.1 | 10,900 | [
"ORCA"
] | 0492f66835ef29ff75470e5349a665ff1161547586b40a4c7c830853bd06f015 |
#!/usr/bin/env python
from __future__ import print_function
import argparse
import os
import re
import sys
import webbrowser
import requests
import requests.exceptions
# Python 2/3 compatibility
if sys.version_info[0] >= 3:
import configparser
else:
# Python 2, import modules with Python 3 names
import Co... | Kattis/kattis-cli | submit.py | Python | mit | 10,625 | [
"VisIt"
] | 7b824337bb2816b0a02986a21367331bda212a544380ab9a426ee47cd1b7282c |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# migadmin - [insert a few words of module description on this line]
# Copyright (C) 2003-2012 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 ... | heromod/migrid | mig/cgi-bin/migadmin.py | Python | gpl-2.0 | 1,104 | [
"Brian"
] | df5d40ad6adc4ad3bb3fd0ccb9238e73fe788e3c57ff81b365802788a7cd2603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.