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 |
|---|---|---|---|---|---|---|---|
#
# QAPI event generator
#
# Copyright (c) 2014 Wenchao Xia
# Copyright (c) 2015-2016 Red Hat Inc.
#
# Authors:
# Wenchao Xia <wenchaoqemu@gmail.com>
# Markus Armbruster <armbru@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2.
# See the COPYING file in the top-level directory.
from qa... | SPICE/qemu | scripts/qapi-event.py | Python | gpl-2.0 | 4,236 | [
"VisIt"
] | d7352dad8965dcf7352ba20e204a9a8b60401b194965d7e71340957b3b2b5008 |
# -*- coding: utf-8 -*-
symbols = {'\xc2\xb0':"$^{\\circ}$", u"\\xb2": "^2", u"\\xb3": "^3", u"\\xb1": "$\\pm$", '\\xe2\\x89\\x89': "\\neq"}
# http://www.johndcook.com/unicode_latex.html
# Based on John D. Cook's unicode-to-latex javascript
#
unicode_to_latex_dict = {
u"\u0023":"\\#",
u"\u0024":"\\textdollar",
u"\... | jingnanshi/pyTable2LaTeX | src/symbols.py | Python | mit | 63,240 | [
"Bowtie"
] | e95ec77ef60d6145ec3bc617301b862341140254c2e35212371c86976546bef1 |
import pytest
import capybara
class MatchesXPathTestCase:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/with_html")
@pytest.fixture
def element(self, session):
return session.find("css", "span", text="42")
class TestMatchesXPath(MatchesXPathTestCas... | elliterate/capybara.py | capybara/tests/session/element/test_matches_xpath.py | Python | mit | 1,769 | [
"VisIt"
] | bef9d8cf91010e94fd88fa149cd7defb364b0878732bd52195a5e288c3f25593 |
# pylint: disable=C0111
# pylint: disable=W0621
import urllib
from lettuce import world
from django.contrib.auth.models import User, Group
from student.models import CourseEnrollment
from xmodule.modulestore.django import editable_modulestore
from xmodule.contentstore.django import contentstore
@world.absorb
def cre... | hkawasaki/kawasaki-aio8-1 | common/djangoapps/terrain/course_helpers.py | Python | agpl-3.0 | 2,426 | [
"VisIt"
] | 8db2f6a6616716981fa1e6b989ad3be4d8ee0d347a3300403e857e3158e3efa2 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# """
# Test_RSS_Command_GOCDBSyncCommand
# """
__RCSID__ = '$Id$'
from datetime import datetime, timedelta
import mock
from DIRAC import gLogger, S_OK
from DIRAC.ResourceStatusSystem.Command.GOCDBSyncComman... | yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/Command/test/Test_RSS_Command_GOCDBSyncCommand.py | Python | gpl-3.0 | 3,991 | [
"DIRAC"
] | 0d4b909a64f1724d5846ef775d902ec0511724cd769e7c49e9b9fad3832c12b3 |
# This program is public domain
"""
Reflectometry data representation.
Need to support collections of data from TOF, monochromatic
and white beam instruments.
Conceptually each data point is a tuple::
incident angles (sample tilt and rotation)
reflected angles (polar angle of detector pixel)
slit distanc... | reflectometry/osrefl | osrefl/loaders/reduction/refldata.py | Python | bsd-3-clause | 32,276 | [
"Gaussian"
] | d2523f02c20d5392cd7eae960499cb9eab76e203ccc80a907457087af4feb0ee |
#!/usr/bin/python2.5
# Copyright (C) 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | bileto/transitfeed | transitfeed/stop.py | Python | apache-2.0 | 10,635 | [
"VisIt"
] | 085e20ebc847613bd978ed29d3f0858aac0d422499c580196f83eeebbcb51e6e |
#Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfbase/cidfonts.py
#$Header $
__version__=''' $Id: cidfonts.py 3710 2010-05-14 16:00:58Z rgbecker $ '''
__doc__="""CID (Asian multi-byte) font support... | mattjmorrison/ReportLab | src/reportlab/pdfbase/cidfonts.py | Python | bsd-3-clause | 18,903 | [
"Brian"
] | ee6021615cb37a942e9536c0bad00acc3f21dea7f18d6143e7e8ab8cb9622e50 |
from keras.models import Model, model_from_json
from keras.layers import Flatten, Dense, BatchNormalization, Dropout, Reshape, Permute, Activation, Input
from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D
from keras.optimizers import SGD, Adam
from keras.callbacks import CSVLogger, ModelC... | babraham123/deepdriving | new/avimodel/train_idg.py | Python | mit | 13,067 | [
"Gaussian"
] | bbdaddbb744281a8478146524e1c48a175c306a061b6c8e7e7295d0a8251313e |
import numpy as np
from ase import Atoms
from gpaw import GPAW
from gpaw.xc.sic import SIC
from gpaw.test import equal
a = 7.0
atom = Atoms('N', magmoms=[3], cell=(a, a, a))
molecule = Atoms('N2', positions=[(0, 0, 0), (0, 0, 1.14)], cell=(a, a, a))
atom.center()
molecule.center()
calc = GPAW(xc=SIC(),
h=0... | ajylee/gpaw-rtxs | gpaw/test/scfsic_n2.py | Python | gpl-3.0 | 573 | [
"ASE",
"GPAW"
] | efc45f53f57479137e7086ebf536b57c5ba5b78656fc02b13d86fbce57f12c8a |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | skosukhin/spack | lib/spack/docs/tutorial/examples/Makefile/0.package.py | Python | lgpl-2.1 | 1,934 | [
"Bowtie"
] | 1bd1246153e8e93410fa7d4d08dd3a4e8b95ee60779e464c57892b962c4143ef |
"""
A print function that pretty prints SymPy objects.
:moduleauthor: Brian Granger
Usage
=====
To use this extension, execute:
%load_ext sympy.interactive.ipythonprinting
Once the extension is loaded, SymPy Basic objects are automatically
pretty-printed in the terminal and rendered in LaTeX in the Qt console ... | amitjamadagni/sympy | sympy/interactive/ipythonprinting.py | Python | bsd-3-clause | 1,230 | [
"Brian"
] | 3c41789d413561c1167681bdaab9b798cf069ffdfd0f0ce18f0e204d225dcc79 |
# 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
r"""Constraints.
Constraint forces can constrain particles to be a set distan... | joaander/hoomd-blue | hoomd/md/constrain.py | Python | bsd-3-clause | 12,667 | [
"HOOMD-blue"
] | c08c144a2d76c150769e88b9175a579ec020da528112374c035f90e452b73c7f |
#
# yosys -- Yosys Open SYnthesis Suite
#
# Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#... | SymbiFlow/yosys | backends/smt2/smtio.py | Python | isc | 40,983 | [
"BLAST"
] | 1a48ed3d73e18c518266a09a58a348bef97cae2923a7a4442b1aff38ba8c9778 |
# This component runs an annual comfort assessment off of EnergyPlus results
#
# Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Honeybee.
#
# Copyright (c) 2013-2015, Chris Mackey <Chris@MackeyArchitecture.com>
# Honeybee is free software; you ca... | samuto/Honeybee | src/Honeybee_Microclimate Map Analysis.py | Python | gpl-3.0 | 100,915 | [
"EPW"
] | 0659d2e1970f1ac97fd1c76b3d513886d2993466bb246cbd935b2fc1a0e5fdb2 |
#!/usr/bin/env python
##############################################################################################
#
#
# CMIP6_hybrid_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://... | acsis-project/emissions | emissions/python/CMIP6_hybrid/CMIP6_hybrid_regrid_iC5H12_emissions_n96e_360d.py | Python | gpl-3.0 | 17,171 | [
"NetCDF"
] | 8ce5924394ea3f6b76cc485af46446bafcef7c9d3df8a8c0be292ac17b0b8f70 |
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# 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.
# ---------------------... | Jorge-C/bipy | skbio/parse/sequences/tests/test_clustal.py | Python | bsd-3-clause | 4,820 | [
"scikit-bio"
] | 5f60e2a377746191144a425d7fe2f07eec7d5b69e8ef353def9b06c4da15cab1 |
__author__ = 'sibirrer'
import astrofunc.LensingProfiles.calc_util as calc_util
from astrofunc.LensingProfiles.sersic import Sersic
from astrofunc.LightProfiles.sersic import Sersic as Sersic_light
import numpy as np
import pytest
import numpy.testing as npt
class TestSersic(object):
"""
tests the Gaussian ... | sibirrer/astrofunc | test/test_sersic_lens.py | Python | mit | 6,386 | [
"Gaussian"
] | d931365ca5874278dda9b77192dd72afc240745821bcbbc4c887c64f5d865931 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-proxy-init.py
# Author : Adrian Casajus
########################################################################
from __future__ import print_function
__RCSID__ = "$Id$"
import sys
import DIRAC... | petricm/DIRAC | FrameworkSystem/scripts/dirac-myproxy-upload.py | Python | gpl-3.0 | 1,720 | [
"DIRAC"
] | 08a5cd3d8e75a04f39336ac1d5f51a355b3bde0f7e70dceb4894c75e8ac1e894 |
#!/usr/bin/python
######################################
## Sun Emulator using PiGlow ##
## ##
## Example by @Tommybobbins ##
######################################
# Light curves are based on statistical
# normal distributions. Requires python-scipy.
# Uses the Sunrise/S... | tommybobbins/DayNightGlow | sunny.py | Python | gpl-2.0 | 6,392 | [
"Gaussian"
] | 24bab4363ad1b03389193027ad5e1201211535d2fed6fffa9f6a5a81b2838e52 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | retrography/scancode-toolkit | tests/commoncode/test_urn.py | Python | apache-2.0 | 7,034 | [
"VisIt"
] | 8d735f3184def59d851ce5c5c1f3db3ed86322486c507fdd22959016b2bed149 |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | NREL/OpenWARP | source/automated_test/bemio/io/wamit.py | Python | apache-2.0 | 21,188 | [
"exciting"
] | 5439f79f336abf90cf4edddaad7d7e43d37952a40c4a49e58a63c224a664ccd3 |
# (c) 2014 Michael DeHaan, <michael@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | shawnsi/ansible | lib/ansible/playbook/role/requirement.py | Python | gpl-3.0 | 6,986 | [
"Galaxy"
] | 3c4895e31a4a673940fc59e27ee8f1070f7d2ca16bcba4569a880f8fe95118fb |
"""
A simple VTK widget for PyQt or PySide.
See http://www.trolltech.com for Qt documentation,
http://www.riverbankcomputing.co.uk for PyQt, and
http://pyside.github.io for PySide.
This class is based on the vtkGenericRenderWindowInteractor and is
therefore fairly powerful. It should also play nicely with the
vtk3DWi... | zibneuro/brainvispy | gui/vtkqgl.py | Python | bsd-3-clause | 18,745 | [
"CRYSTAL",
"VTK"
] | 1e48a3e7f9c4b09f4c683eb521278d2d63e59d0ac26fe363f65ffbb48cd736eb |
from tester import assertRaises
# numbers
assert 2 + 2 == 4
assert (50 - 5 * 6) / 4 == 5.0
assert 8 / 4 * 2 == 4.0
assert 8 / 5 == 1.6
assert 7 // 3 == 2
assert 7 // -3 == -3
assert 4 - 2 - 2 == 0
width = 20
height = 5 * 9
assert width * height == 900
x = 6
x += 7 + 8
assert x == 21
x = y = z = 0
assert x == 0
asse... | brython-dev/brython | www/tests/test_suite.py | Python | bsd-3-clause | 16,189 | [
"Amber"
] | dd215688d56e2f045ec9a34acc0efce27a9c2c0efa1de76f004bab5df7d15499 |
from __future__ import print_function, division
from sympy.core.basic import C
from sympy.core.singleton import S
from sympy.core.function import Function
from sympy.core import Add
from sympy.core.evalf import get_integer_part, PrecisionExhausted
######################################################################... | hrashk/sympy | sympy/functions/elementary/integers.py | Python | bsd-3-clause | 5,111 | [
"VisIt"
] | 62ea27e1004d99285812ee9984394ead8ef45ec86ebff91fea880bae8e4b01f3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# ecnet/tools/database.py
# v.3.3.2
# Developed in 2020 by Travis Kessler <travis.j.kessler@gmail.com>
#
# Contains functions for creating ECNet-formatted databases
#
# Stdlib imports
from csv import writer
from datetime import datetime
from os import remove
from warning... | TJKessler/ECNet | ecnet/tools/database.py | Python | mit | 5,843 | [
"Open Babel",
"Pybel"
] | 5b14042181c4ef7ba4c6cae7deeb11d5f78b3ef37b5a16d53172522641398441 |
# -*- coding: utf8 -*-
from .exceptions import StopPropagation
from .event import Event
from ..typing import AbstractHandler, Modifiers
always_true = lambda event: True
class HandlerModifiers(Modifiers):
def refuse(self, visited, visitor):
"""if not a visitor, it is a callback"""
visited.append(... | apieum/eventize | eventize/events/handler.py | Python | lgpl-3.0 | 3,963 | [
"VisIt"
] | ec0f32def237444d0698d3ee127740f0966b6767ec80ce9b482b2738dd9d88d0 |
"""This module defines an ASE interface to SIESTA.
http://www.uam.es/departamentos/ciencias/fismateriac/siesta
"""
import os
from os.path import join, isfile, islink
import numpy as np
from ase.data import chemical_symbols
class Siesta:
"""Class for doing SIESTA calculations.
The default parameters are v... | freephys/python_ase | ase/calculators/siesta.py | Python | gpl-3.0 | 11,417 | [
"ASE",
"SIESTA"
] | ecb84f096f597b482ca45ce3dad786cb5dc6b48607ca53ab9601e375887a6ba3 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
TODO:
-Still assumes individual elements have their own chempots
in a molecular adsorbate instead of considering a single
chempot for a single molecular adsorbate. E.g. for an OH
... | montoyjh/pymatgen | pymatgen/analysis/surface_analysis.py | Python | mit | 82,695 | [
"VASP",
"pymatgen"
] | 2f20b231d36d65e1ed49a187d2f5d97f48e396c563b205f13f79999ec7f7b433 |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google-research/cryptanalytic-model-extraction | src/utils.py | Python | apache-2.0 | 10,441 | [
"NEURON"
] | 7d14e2af515d69d68c282554dc4f863da6e56f228dd7ba554c15a742ccff2fb7 |
#!/usr/bin/env python -i
# preceding line should have path for Python on your machine
# vizplotgui_gl.py
# Purpose: viz running LAMMPS simulation via GL tool with plot and GUI
# Syntax: vizplotgui_gl.py in.lammps Nfreq compute-ID
# in.lammps = LAMMPS input script
# Nfreq = plot data point and viz sh... | akohlmey/lammps | python/examples/vizplotgui_gl.py | Python | gpl-2.0 | 4,142 | [
"LAMMPS"
] | 6083df8c0ac3ed6da4c80b104e65e172a829f82c082b80a0f1a11a24543adc7f |
"""Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
from ..io import imread
from skimage import data_dir
__all__ = ['load',
'camera',
'lena',
'text',
'checkerboard',
'coins',
'moon',
... | chintak/scikit-image | skimage/data/__init__.py | Python | bsd-3-clause | 4,593 | [
"ESPResSo"
] | 2aa863958c9df0b4ccef22ee54d341eaa264692902dd3e440e3f4d273df33640 |
#! /usr/bin/env python
# This version uses numpy to draw the random connections.
from scipy.optimize import fsolve
import cynest as nest
import cynest.raster_plot
import numpy
from numpy import exp
import time
def LambertWm1(x):
nest.sli_push(x); nest.sli_run('LambertWm1'); y=nest.sli_pop()
return y
... | QJonny/CyNest | cynest/examples/brunel-alpha-numpy.py | Python | gpl-2.0 | 5,113 | [
"NEURON"
] | 4a5ed733acb92fc1c8f47a4e033e6dcf109ed0846c4d2221a999bb2448fe5adf |
__author__ = 'sibirrer'
from astrofunc.LensingProfiles.sie import SIE
from astrofunc.LensingProfiles.spemd import SPEMD
import numpy as np
import pytest
class TestSIS(object):
"""
tests the Gaussian methods
"""
def setup(self):
self.sie = SIE()
self.spemd = SPEMD()
def test_func... | sibirrer/astrofunc | test/test_sie.py | Python | mit | 1,347 | [
"Gaussian"
] | 97fbeb4906812d230322d7fa8f9218571a5badd58c5d22e76f28ad5ef1ac1790 |
#===============================================================================
# load_GFED.py
#-------------------------------------------------------------------------------
# @author D. T. Milodowski, November 2017
# This is a set of functions to load in GFED4 burned area data into numpy arrays
# These arrays have... | DTMilodowski/EO_data_processing | src/fire/load_GFED.py | Python | gpl-3.0 | 3,306 | [
"NetCDF"
] | c46ee3e427ea2869099a9d0449dad4f5a9d7a830da49ba1f28de1e4a12148277 |
# - Coding UTF8 -
#
# Networked Decision Making
# Development Sites (source code):
# http://code.google.com/p/global-decision-making-system/
# http://github.com/NewGlobalStrategy/NetDecisionMaking
#
# Demo Sites (Google App Engine)
# http://netdecisionmaking.appspot.com
# http://globaldecisionmaking.appspot.co... | NewGlobalStrategy/NetDecisionMaking | controllers/default.py | Python | mit | 7,638 | [
"VisIt"
] | ed01f7ffced665b660d813b17412f130285bd2b7061511a4e06813fd82298d4f |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB ... | yasharmaster/scancode-toolkit | src/licensedcode/tokenize.py | Python | apache-2.0 | 8,538 | [
"VisIt"
] | 096ff806b2a86cdabd9b4062845e466e5d88c17b7ff2339f3d83e960a69ad9aa |
# ########################################################################
# # $HeadURL $
# # File: RequestTask.py
# # Author: Krzysztof.Ciba@NOSPAMgmail.com
# # Date: 2011/10/12 12:08:51
# ########################################################################
# """ :mod: RequestTask
# =================
#
# .... | calancha/DIRAC | DataManagementSystem/private/RequestTask.py | Python | gpl-3.0 | 21,374 | [
"DIRAC"
] | f9c8c3d41e9cdce05a6686ffd519007f58c6ccefa6d3b0a95a32a327cf403ade |
#!/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... | MOA-2011/e2openplugin-OpenWebif | plugin/controllers/views/ajax/at.py | Python | gpl-2.0 | 47,524 | [
"VisIt"
] | 1bafb8f35bdebf278aad86ccaca1f4359163cfd0309a5e91b42299f886631204 |
import time
from urlparse import urljoin
from behave import use_step_matcher, given, then
use_step_matcher("re")
@given('I am on (?:the )?page with relative url "(?P<url>.*)"')
def step_impl(context, url):
full_url = urljoin(context.config.server_url, url)
context.browser.visit(full_url)
@then('I should ... | mc706/prog-strat-game | core/features/steps/helpers.py | Python | mit | 1,657 | [
"VisIt"
] | e31a7ec4ff2ab4a98c901e0b3f1edf3ad89a3d3f788f881fe10f6bd438a36328 |
try:
from stsci.convolve import convolve2d
except ImportError:
from convolve import convolve2d
import math
#from numpy import *
from numpy import sum,array,shape, maximum, arange, exp, where, ravel, zeros, int8, float32, int32
from numpy import minimum, transpose,mean, delete
import os
import pyfits as pf
impor... | pyrrho314/recipesystem | trunk/devel/fluxcal/detSources.py | Python | mpl-2.0 | 27,056 | [
"Gaussian"
] | 05af82fa5ec76a101a1de4fc8c8ea0706f68b6afd9fdec5ee81e568780b7aead |
from django.shortcuts import render
from django.conf import settings
from django.http import HttpResponse
from django.views.generic import TemplateView
from django.db.models import Case, When
from django.core.cache import cache
from django.core.cache import caches
try:
cache_alignment = caches['alignments']
except... | fosfataza/protwis | alignment/views.py | Python | apache-2.0 | 21,703 | [
"BLAST"
] | c44fbe1c33cb25b90cf42bacf1c8b2d63f0b2eba48af6e01d25905d25e29323f |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2... | R-a-dio/python-audio-tools | audiotools/shn.py | Python | gpl-2.0 | 22,906 | [
"Brian"
] | b1c3dcd20692884b8b7da7b98c615955c383b5ba61bdd6bcfc4f97ac7cf85f4a |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Adapted from Graphviz.py (now deprecated)
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2005-2006 Eero Tamminen
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Cont... | beernarrd/gramps | gramps/plugins/graph/gvrelgraph.py | Python | gpl-2.0 | 37,619 | [
"Brian"
] | 5779e36b93f9b2f6cd7111383624f2a3bdd5700e73aab54fcc36fd00948b5fc4 |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | kdmurray91/scikit-bio | skbio/stats/ordination/_redundancy_analysis.py | Python | bsd-3-clause | 9,325 | [
"scikit-bio"
] | fd341fc4ef22ab7a0ccc055d114a0d57dfaac64a5c655262218ac6fd45900731 |
#! /usr/env/python
"""
Python implementation of VoronoiDelaunayGrid, a class used to create and manage
unstructured, irregular grids for 2D numerical models.
Getting Information about a Grid
--------------------------------
The following attributes, properties, and methods provide data about the grid,
its geometry, an... | laijingtao/landlab | landlab/grid/voronoi.py | Python | mit | 54,129 | [
"NetCDF"
] | 959dc07e7ffa88eee7f5eb581b19e8c8c688ad133e5aa9ea21b7a278b96ae41f |
#!/usr/bin/env python
import argparse
import binascii
import copy
import datetime
import hashlib
import json
import logging
import os
import shutil
import struct
import subprocess
import tempfile
import xml.etree.ElementTree as ET
from collections import defaultdict
from Bio.Data import CodonTable
logging.basicConfig(... | gvlproject/tools-iuc | tools/jbrowse/jbrowse.py | Python | mit | 46,361 | [
"BLAST",
"Galaxy"
] | 49e9e40c05f0113a08394281a092026a88fdf0d17f859bebb0a4e14a6436a60d |
# -*- 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 | package/MDAnalysis/core/topologyattrs.py | Python | gpl-2.0 | 90,931 | [
"Amber",
"MDAnalysis"
] | ba50a17f11acd5da5bfdf798e190087a9cc230dd8932940f68f08ce8e8828f73 |
# GromacsWrapper: test_example.py
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
from __future__ import division, absolute_import, print_function
import os.path
import pytest
from numpy.testing import a... | Becksteinlab/GromacsWrapper | tests/test_setup.py | Python | gpl-3.0 | 4,756 | [
"CRYSTAL",
"Gromacs"
] | f1976cebd74c225a5d32c4b322cc12372fdad94992a8409f0eb574e4d424600d |
from collections import namedtuple
# ----------------------------------------------------------------------
# Datatypes
# Types
TyTop = namedtuple("TyTop", [])
TyBot = namedtuple("TyBot", [])
TyRecord = namedtuple("TyRecord", ["fields"])
TyArr = namedtuple("TyArr", ["left", "right"])
# Terms
TmVar = namedtuple("T... | habibutsu/tapl-py | rcdsubbot/syntax.py | Python | mit | 5,635 | [
"VisIt"
] | 303e01c31e90b6d68255357a85c9eea18025c197c28fc4ae9ed8df3230341ac9 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import inspect
import os
import time
import six
from dateutil.relativedelta import relativedelta
from j... | mozilla/bztools | auto_nag/bzcleaner.py | Python | bsd-3-clause | 21,123 | [
"VisIt"
] | fbb4a4d0bf00a22ce72b3246113428fe500e1fe0f7cb6642d9b6b94f7cb80f52 |
import pandas as pd
import numpy as np
import toolshed as ts
xl = pd.ExcelFile('data/nature08516-s4.xls')
gm = xl.parse("Genotype Map", index_col=0)
gm = gm[~np.isnan(gm.start)]
gm.chr = gm.chr.astype(int).astype(str)
gm.chr[gm.chr == "23"] = "X"
gm.start = gm.start.astype(int)
gm.end = gm.end.astype(int)
gm.drop('... | brentp/bio-playground | 1kg-cnv/scripts/truth-xls-to-tsv.py | Python | mit | 2,379 | [
"BWA"
] | f416a71ce800eeeeaee08af33a3221eaee51dfdb43be3f416920651958028f96 |
# This file is part of Peach-Py package and is licensed under the Simplified BSD license.
# See license.rst for the full text of the license.
from peachpy.x86_64 import isa
class Microarchitecture:
def __init__(self, name, extensions, alu_width, fpu_width, load_with, store_width):
self.name = name
... | pombredanne/PeachPy | peachpy/x86_64/uarch.py | Python | bsd-2-clause | 7,017 | [
"Jaguar"
] | 5446fe4afa8526827c08d9002ce83a2d01df3fa1121cd669eb9cad2c0281b6d0 |
#!/usr/bin/env python3
import sys
import argparse
import pyfastaq
import pymummer
import subprocess
import os
parser = argparse.ArgumentParser(
description = '''Compares FASTA files with blast or nucmer, writes input files for ACT.
Then start ACT. Files from top to bottom in ACT are same as ord... | martinghunt/bioinf-scripts | python/multi_act.py | Python | mit | 5,051 | [
"BLAST"
] | b0a67efe48ca5da2aa16db932adeb2b1104d132a7a43a3a376fe5e420fdcfa4c |
"""
Shogun demo
Fernando J. Iglesias Garcia
"""
import numpy as np
import matplotlib as mpl
import pylab
import util
from scipy import linalg
from shogun.Classifier import QDA
from shogun.Features import RealFeatures, MulticlassLabels
# colormap
cmap = mpl.colors.LinearSegmentedColormap('color_classes',
{'red': ... | ratschlab/ASP | examples/undocumented/python_modular/graphical/multiclass_qda.py | Python | gpl-2.0 | 3,312 | [
"Gaussian"
] | 3ecac96f76430dcef869125a8258a925fafc1e15a170825e178f2b0e165a7ef3 |
# coding: utf-8
# Copyright 2017 Solthis.
#
# This file is part of Fugen 2.0.
#
# Fugen 2.0 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | Solthis/Fugen-2.0 | data/indicators/base_indicator.py | Python | gpl-3.0 | 17,399 | [
"VisIt"
] | 651c897018a1e0d2eccfa93b548e52a2ac323659faba5f1945bde8d184479b59 |
#!/usr/bin/pvpython
# Script taken from paraview's "python trace", with slighly renaming and deleting unnecessary code
# To be run by pvpython or Paraview, not Yade (!)
# In paraview: Tools -> Python shell, then click Run Script and choose this file
# should correspond to the values in export_text.py
from __future__ i... | cosurgi/trunk | examples/test/paraview-spheres-solid-section/pv_section.py | Python | gpl-2.0 | 2,679 | [
"ParaView",
"VTK"
] | 5147e5d4c299eecc9b128d712b6588ddef70e29dcec506c43e7d29a37567b86e |
#!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/mp/mp2.py | Python | apache-2.0 | 27,343 | [
"PySCF"
] | 810f671986c21ae5a3f406adf2b051591d464a9fcf0d6c3680627823ae5deb87 |
# -*- coding: utf-8 -*-
import os, sys
COMMON_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
PROJECT_DIR = os.path.dirname(COMMON_DIR)
ZIP_PACKAGES_DIRS = (os.path.join(PROJECT_DIR, 'zip-packages'),
os.path.join(COMMON_DIR, 'zip-packages'))
# Overrides for os.environ
env_ext = {... | gogogo/gogogo-hk | common/appenginepatch/aecmd.py | Python | agpl-3.0 | 4,878 | [
"VisIt"
] | 0be37498774de88152bf6fa41b8e396c7c932c405bdb5069fd87b77dd3331994 |
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | Brian-Williams/acceptanceutils | setup.py | Python | mit | 4,079 | [
"Brian"
] | 922821e6c48ecbbbb4b908dab021ffa2832a56bcfbc046dab48c6ab04f587e94 |
"""Urwid framework shamelessly lifted from:
https://github.com/izderadicka/xmpp-tester/blob/master/commander.py
To be fair, I cleaned it up and added comments, so it's not all gank. ;)"""
# pylint: disable=too-many-instance-attributes, too-few-public-methods, invalid-name, too-many-arguments
from collections import d... | phrawzty/ubunolia | turwidal/turwidal.py | Python | mpl-2.0 | 7,585 | [
"exciting"
] | 52b74fcd6884c1fc46887e59c9240f1002a9a293519bb5153efd33dd36105942 |
#
# Pick.py -- Pick plugin for Ginga fits viewer
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import threading
import numpy
import time
import os.path
from ginga.mi... | sosey/ginga | ginga/misc/plugins/Pick.py | Python | bsd-3-clause | 54,653 | [
"Gaussian"
] | f9a896a489d7fad7c0ff232d7deef33a8583296148cb97097168a079dbc3bdce |
#!/usr/bin/env python
import argparse
import logging
from sys import stdout
from shutil import rmtree
from tempfile import mkdtemp
from pybedtools import BedTool
import pysam
# avoid ugly python IOError when stdout output is piped into another program
# and then truncated (such as piping to head)
from signal import si... | dmaticzka/bctools | bin/extract_aln_ends.py | Python | apache-2.0 | 4,215 | [
"pysam"
] | 1ba23d90eb436032bcb8a9d2aeaf076520e3bab87266b8d2bbb87015d7fcd76a |
#!/usr/bin/env python
################################################################################
##
## Copyright 2013, 2014 Stefan Ellmauthaler, ellmauthaler@informatik.uni-leipzig.de
## Joerg Puehrer, puehrer@informatik.uni-leipzig.de
## Hannes Strass, strass@informatik.... | tillmo/diamond-adf-code | diamond.py | Python | gpl-3.0 | 21,997 | [
"ADF"
] | e328687a77dfdeea1a5d45f57b138137fed20fb484abc7ca80b3b97b966a4ac9 |
#!/usr/bin/python
# This was written for educational purpose only. Use it at your own risk.
# Author will be not responsible for any damage!
# !!! Special greetz for my friend sinner_01 !!!
# !!! Special thanx for d3hydr8 and rsauron who inspired me !!!
#
###############################################################... | knightmare2600/d4rkc0de | exploits/090115.py | Python | gpl-2.0 | 3,500 | [
"VisIt"
] | 117306340f002f39fa5160590b352d30a6d4be28d9ccc83dc67e17c38086a48a |
__all__ = ['Visdata','SersicSource','GaussSource','PointSource','SIELens','ExternalShear',
'read_visdata','concatvis','bin_visibilities']
import numpy as np
import os
import astropy.constants as co
import warnings
from .utils import cart2pol,pol2cart
c = co.c.value # speed of light, in m/s
G = co.G.value ... | jspilker/visilens | visilens/class_utils.py | Python | mit | 32,136 | [
"Gaussian"
] | 149843eb03e30fc0a2ad74bbf7bc6539126517c55cf060d3400826fedbb12381 |
from __future__ import division, print_function, absolute_import
from scipy._lib.six import xrange
from numpy import (logical_and, asarray, pi, zeros_like,
piecewise, array, arctan2, tan, zeros, arange, floor)
from numpy.core.umath import (sqrt, exp, greater, less, cos, add, sin,
... | mbayon/TFG-MachineLearning | venv/lib/python3.6/site-packages/scipy/signal/bsplines.py | Python | mit | 11,615 | [
"Gaussian"
] | 8d1dbf5f5166abfbc95763c58f2749bb92236af3b3e059cd36f42d263db501d4 |
# coding: utf-8
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import random
import re
import socket
import sys
import time
import math
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_etree_fromstring,
compat_getp... | stannynuytkens/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 133,604 | [
"VisIt"
] | 3abe2d3b0a052b28de7aa97949e984ffa043db59a3b9233900ec359d77203909 |
# 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... | tensorflow/tensorflow | tensorflow/python/ops/distributions/normal.py | Python | apache-2.0 | 9,713 | [
"Gaussian"
] | bf95dc3061945a06c2acaf8d99f11423951ef49400fe5c5a847470d46c9caaad |
import pymol
from pymol import stored
from pymol import cmd, CmdException
import export_to_gl as glmol
cmd=pymol.cmd
input_file='4oe9.pdb'
cmd.load( input_file , '4oe9' )
modelName='4oe9'
| S-John-S/MAT | as1_script.py | Python | mit | 190 | [
"PyMOL"
] | 0e9751ba2c9453ca203c22f138717bab12bcc44d7209d0de2238b9da4e2113e1 |
#!/usr/bin/python
"""
Copyright 2012 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of th... | druss316/G-Harvestor | html/getSpawnNames.py | Python | gpl-3.0 | 2,023 | [
"Galaxy"
] | faafc7793425e7b451154a30ad68dc974bb39b9a3d21452c22c6f4ba554c9889 |
# coding: utf-8
"""This file contains different utilities for the Parser."""
from redbaron import (CommentNode, ForNode, DefNode, WithNode,
IfNode, ElseNode, ElifNode, IfelseblockNode,
EndlNode)
from sympy import srepr
from pyccel.ast import DottedName
from sympy import Sy... | ratnania/pyccel | pyccel/parser/utilities.py | Python | mit | 7,995 | [
"VisIt"
] | c75ad30919adfd1925a3728064a2bf1a80ec5568f8976fcb1c7d70b73ef3ba86 |
# neuron_client
import base64
import sys, socket, select
from Crypto.Cipher import AES
import os
import hashlib
import signal
os.system("clear")
print """
~####~~~~####~~~######~~#####~~~######
##~~##~~##~~##~~~~##~~~~##~~~~~~~~##
##~~##~~##~~~~~~~~##~~~~####~~~~~~##
##~~##~~##~~##~~... | R1Jo/xiiz | neuron.py | Python | gpl-3.0 | 3,056 | [
"NEURON"
] | 2aa00e8fb916c0e028d4e615d39eaec1fe52b6a1400c75bc940a548121ca1c51 |
import numpy as np
import pyfof
from halotools.sim_manager import CachedHaloCatalog
from halotools.empirical_models import PrebuiltHodModelFactory
from halotools.mock_observables import tpcf
from halotools.mock_observables import FoFGroups
from halotools.empirical_models.factories.mock_helpers import three_dim_pos_bund... | mjvakili/ccppabc | ccppabc/code/archive/abc_covariance.py | Python | mit | 3,083 | [
"Galaxy"
] | 9e56181437ce2089333cc6c1eeb2633b10c1c00a3b4eddf1b3699963e9c6b94d |
"""Acceptance tests for LMS-hosted Programs pages"""
import pytest
from common.test.acceptance.fixtures.catalog import CatalogFixture, CatalogIntegrationMixin
from common.test.acceptance.fixtures.course import CourseFixture
from common.test.acceptance.fixtures.programs import ProgramsConfigMixin
from common.test.accep... | teltek/edx-platform | common/test/acceptance/tests/lms/test_programs.py | Python | agpl-3.0 | 5,873 | [
"VisIt"
] | 402394032a3bf650efe97af495a0f133978a513afc667803d3755a349aaf580d |
#
# Post-processing script QE --> EPW
# 14/07/2015 - Samuel Ponce
#
import numpy as np
import os
# Enter the number of irr. q-points
user_input = raw_input('Enter the prefix used for PH calculations (e.g. diam)\n')
prefix = str(user_input)
# Enter the number of irr. q-points
user_input = raw_input('Enter the numb... | mmdg-oxford/papers | Verdi-NCOMMS-2017/code/EPW/tests/Inputs/t05/pp.py | Python | gpl-3.0 | 943 | [
"EPW"
] | fac55c3edaafc3f17ea1e001f04b91191cf1821f7cd7b71afcf8949aba4993ba |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | xguse/scikit-bio | skbio/sequence/_base.py | Python | bsd-3-clause | 1,304 | [
"scikit-bio"
] | cd3613d3f9cd4202a39cb222d6dccbbfc41c0a2e7adfa20db085ca696490550c |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 2: Nature-Inspired Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2014 by Jeff Heaton
Licensed under the Apache License, Versi... | PeterLauris/aifh | vol2/vol2-python-examples/lib/aifh/pso.py | Python | apache-2.0 | 7,032 | [
"VisIt"
] | fa734eae8e62769ceee1f407a1a2127484a02fefa6bfe6cba1f5849e7a677502 |
"""
@package medpy.features.intensity
Functions to extracts voxel-wise intensity based features from images.
Feature representation:
Features can be one or more dimensional and are kept in the following structures:
s1 s2 s3 [...]
f1.1
f1.2
f2.1
f3.1
f3.2
[...]
, where each c... | kleinfeld/medpy | medpy/features/intensity.py | Python | gpl-3.0 | 28,940 | [
"Gaussian"
] | 6d0076e99c64ba0cac9f42f562ea8cf72292fff3558c603a8b31c838ccd5a84a |
#!/galaxy/home/mgehrin/hiclib/bin/python
"""
Read a maf and print the text as a fasta file, concatenating blocks. A
specific subset of species can be chosen.
usage %prog [options] species1,species2,... < maf_file > fasta_file
--fill="expression": Insert this between blocks
--wrap=columns: Wrap FASTA to this... | bxlab/HiFive_Paper | Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/maf_to_concat_fasta.py | Python | bsd-3-clause | 1,723 | [
"Galaxy"
] | 47572e0ef1aa0fc96a6975b3cef008556736902044f05c4aecf803965a8b8c34 |
""" A mock of the DataManager, used for testing purposes
"""
# pylint: disable=protected-access, missing-docstring, invalid-name, line-too-long
from mock import MagicMock
from DIRAC import S_OK
dm_mock = MagicMock()
dm_mock.getReplicas.return_value = S_OK({'Successful': {'/a/lfn/1.txt': {'SE1': '/a/lfn/at/SE1.1.txt... | fstagni/DIRAC | DataManagementSystem/Client/test/mock_DM.py | Python | gpl-3.0 | 1,323 | [
"DIRAC"
] | d705479dd5679d53280a06b91dd78a529d0c2a5561b4c8963f78ac54b2bc80b7 |
"""Support for Ecobee Thermostats."""
from __future__ import annotations
import collections
import voluptuous as vol
from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import (
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
CURRENT_HVAC_COOL,
CURRENT_... | jawilson/home-assistant | homeassistant/components/ecobee/climate.py | Python | apache-2.0 | 28,471 | [
"VisIt"
] | 85d424a9af6d94c32dea4bd5cea6d5cd224f69e883d1ff0ff75b2de36e3d4c34 |
from optparse import OptionParser, OptionValueError
import tempfile
import os
import subprocess
import optparse
import shutil
import math
def wh_size(option, opt_str, value, parser, *args, **kwargs):
try:
setattr(parser.values, option.dest, map(int, value.split(',')))
except:
raise OptionValue... | victor-gil-sepulveda/PhD-VMDSnapshotTiles | take_snapshots.py | Python | mit | 3,203 | [
"VMD"
] | 077b53f0ba9a9c72a445ed08f10749ed197bb292449b085c50d3c6d82dc50bc8 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup( name = 'gedi',
packages = ['gedi'],
version = '0.3.1',
description = 'Package to analyze radial velocity measurements using Gaussian processes made for a MSc Thesis',
author = 'Joao Camacho',
author_email = 'joao.camacho@astro.up.... | jdavidrcamacho/Gedi | setup.py | Python | mit | 634 | [
"Gaussian"
] | 494b74a00c6e94636303b08f77e8ec4e3a9a6d74c8cdc3f164d3248c29a2b38a |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2... | R-a-dio/python-audio-tools | audiotools/opus.py | Python | gpl-2.0 | 17,730 | [
"Brian"
] | 8451e304d1e8b6dbae8a383216e511f8a5e26d74a034fdb64e2057a5ae4db790 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
MAF format specification:
<http://genome.ucsc.edu/FAQ/FAQformat#format5>
"""
import sys
from bx import interval_index_file
from bx.align import maf
from maize.formats.base import BaseFile
from jcvi.formats.maf import Maf
from maize.apps.base import need_update
from ... | orionzhou/robin | formats/maf.py | Python | gpl-2.0 | 3,492 | [
"BLAST"
] | c6f73b2eeaad011e7e2d8297b910bc703d4ea1538f4db47f367ce135c69a59ca |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | arunkgupta/gramps | gramps/plugins/tool/changetypes.py | Python | gpl-2.0 | 6,334 | [
"Brian"
] | 7b5a70fa6f5a3c995f77daca2658ba5518097ed3898ef0a79aa446be6c27983e |
#!/usr/bin/env python
"""
Created on 2015-09-27T16:51:39
"""
from __future__ import division, print_function
import sys
import argparse
import re
import time
try:
import numpy as np
except ImportError:
print('You need numpy installed')
sys.exit(1)
import pandas as pd
from splinter.browser import Browser
i... | mattgiguere/doglodge | code/splinter_scrape_ta_reviews.py | Python | mit | 10,631 | [
"VisIt"
] | d3a28c7b1d77da51a192063e17386b0f0467c28fbf203a8c6ecd95b53c3e06a0 |
########################################################################
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2011/01/17 08:17:58
########################################################################
""".. module:: ListTestCase
Test cases for DIRAC.Core.Utilities.List module.
"""
import unittest
# su... | DIRACGrid/DIRAC | src/DIRAC/Core/Utilities/test/Test_List.py | Python | gpl-3.0 | 4,847 | [
"DIRAC"
] | 59953cce689b15ea51f1970d0f08cb9f0bdfe13313321a458bc2659a383de6a2 |
"""TransformationInfo class to be used by ILCTransformation System"""
from collections import OrderedDict, defaultdict
from itertools import izip_longest
from DIRAC import gLogger, S_OK
from DIRAC.Core.Utilities.List import breakListIntoChunks
from DIRAC.Core.Utilities.Proxy import UserProxy
from DIRAC.DataManagement... | fstagni/DIRAC | TransformationSystem/Utilities/TransformationInfo.py | Python | gpl-3.0 | 7,716 | [
"DIRAC"
] | f3156a26e389e31a96a02db72700bbd1113cbca0d4b528191692d6fb706eb597 |
# 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... | xzturn/tensorflow | tensorflow/python/autograph/converters/logical_expressions.py | Python | apache-2.0 | 4,499 | [
"VisIt"
] | 3cbbc225bb693eba99268e0b99163d3b79b1f7407c86bb0e3cd8fdce7265d3c6 |
import random
import unittest
from egginst.main import name_version_fn
from enstaller.utils import canonical, cname_fn, comparable_version
class TestUtils(unittest.TestCase):
def test_canonical(self):
for name, cname in [
('NumPy', 'numpy'),
('MySql-python', 'mysql_python'),
... | jwiggins/keyenst | tests/test_utils.py | Python | bsd-3-clause | 1,722 | [
"VTK"
] | 43095e5148a6fb1fc33bfd0f2cd4466333e255004621d3abafd2ca60cb088d28 |
#!/usr/bin/env python
#
# texttable - module for creating simple ASCII tables
# Copyright (C) 2003-2011 Gerome Fournier <jef(at)foutaise.org>
#
# 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 Foundat... | cdeil/rootpy | rootpy/extern/tabulartext/texttable.py | Python | gpl-3.0 | 18,657 | [
"Brian"
] | 9510950646d81cf2b7de18f3b82ca496e204070440fff53257a31637b6051a94 |
#!/usr/bin/env python
###############################################################################
# $Id: aigrid.py 33793 2016-03-26 13:02:07Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test read/write functionality for AIGRID driver.
# Author: Swapnil Hajare <dreamil@gmail.com>
#
####################... | nextgis-extra/tests | lib_gdal/gdrivers/aigrid.py | Python | gpl-2.0 | 7,898 | [
"ADF"
] | b2946291e5cea433b8a39b2856ce51d0d1fc4b850e3bd5a7c911fd67382333d9 |
#!/usr/bin/env python
import os
from tempfile import tempdir
from subprocess import call
from inspect import getargspec
from cloudbio.utils import _setup_logging, _configure_fabric_environment, _parse_fabricrc
from cloudbio.biodata.genomes import install_data, install_data_s3, install_data_rsync
from cloudbio.galaxy... | elkingtonmcb/cloudbiolinux | cloudbio/deploy/__init__.py | Python | mit | 13,998 | [
"Galaxy"
] | ee5d588c933a02d508f0d7c9e7f4a3d3b9133e12fe69aaf6a3689730fa1f0132 |
#!/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... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/sleeptimer.py | Python | gpl-2.0 | 5,628 | [
"VisIt"
] | 3c43abbc986cbaf6db3be02c4121dd2026fe71f7ee524c9103cb5f9b6be7e1f8 |
""" This tests only need the JobElasticDB, and connects directly to it
"""
import unittest
import time
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC import gLogger
from DIRAC.WorkloadManagementSystem.DB.ElasticJobDB import ElasticJobDB
class JobDBTestCase(unittest.TestCase):
"... | chaen/DIRAC | tests/Integration/WorkloadManagementSystem/Test_ElasticJobDB.py | Python | gpl-3.0 | 1,491 | [
"DIRAC"
] | 248a070e77bccd101afbc3a1ddb9c51fb9a3b8a9804c145bbe6ddfc37c349f7e |
########################################################################
# $HeadURL$
########################################################################
""" LineGraph represents line graphs both simple and stacked. It includes
also cumulative graph functionality.
The DIRAC Graphs package is derived from ... | arrabito/DIRAC | Core/Utilities/Graphs/LineGraph.py | Python | gpl-3.0 | 4,402 | [
"DIRAC"
] | ac5e76a08710921b142c456cb6066e88cd27e95904f7ecbdc9a0e7515683ff01 |
# Copyright 2002 by Katharine Lindner. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Code for more fancy file handles.
Classes:
SGMLExtractorHandle File object that s... | dbmi-pitt/DIKB-Micropublication | scripts/mp-scripts/Bio/SGMLExtractor.py | Python | apache-2.0 | 4,278 | [
"Biopython"
] | 906b4363315275fbea7db6a3b0a20651b186dd9f9950e679d792337efc3333ee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.