text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
import os
from splinter import Browser
def get_browser(width, heigth):
browser = Browser('phantomjs')
browser.driver.set_window_size(width, heigth)
return browser
def create_screenshot(browser, path):
base_url = 'http://localhost:8888/'
browser.visit(os.path.join(base_url, path))
filename = o... | perGENIE/pergenie | pergenie/lib/screenshot/create_screenshots.py | Python | agpl-3.0 | 651 | [
"VisIt"
] | b1400f7e31fe24318f7d960fa07f49df8b145c033081e43370e3b76ae06b52de |
from __future__ import print_function, division
from sympy import (degree_list, Poly, igcd, divisors, sign, symbols, S, Integer, Wild, Symbol, factorint,
Add, Mul, solve, ceiling, floor, sqrt, sympify, simplify, Subs, ilcm, Matrix, factor_list, perfect_power)
from sympy.simplify.simplify import rad_rationalize
fr... | lidavidm/sympy | sympy/solvers/diophantine.py | Python | bsd-3-clause | 62,990 | [
"Gaussian"
] | be880f22362c3990b3dcc4f918d3af27ecb3ee69c74294af59a2a42ed3c25217 |
# String variable:
brian = "Hello life!"
print brian
# Escaping characters
'This isn\'t flying, this is falling with style!'
# Index
fifth_letter = 'MONTY'[4]
print fifth_letter
# String methods
fifth_letter = 'MONTY'[4]
print fifth_letter
parrot = "Norwegian Blue"
print parrot.lower()
parrot = "norwegian blue"
pr... | paulcarroty/Python-Snippets | Codeacademy Python/03. Strings & Console Output.py | Python | gpl-3.0 | 987 | [
"Brian"
] | 6eed28ce036e15c555d822f494f7be28615170a4121393cacb11ebb6f1592382 |
r"""
Poisson equation solved in a single patch NURBS domain using the isogeometric
analysis (IGA) approach.
Find :math:`t` such that:
.. math::
\int_{\Omega} c \nabla s \cdot \nabla t
= \int_{\Omega_0} f s
\;, \quad \forall s \;.
Try setting the Dirichlet boundary condition (ebcs) on various sides of th... | sfepy/sfepy | examples/diffusion/poisson_iga.py | Python | bsd-3-clause | 1,615 | [
"VTK"
] | 3df55e9558a904b313c087f48410b56957ec50cd60b28adca0d08dc1b6748714 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyPyvista(PythonPackage):
"""Easier Pythonic interface to VTK."""
homepage = "https:/... | LLNL/spack | var/spack/repos/builtin/packages/py-pyvista/package.py | Python | lgpl-2.1 | 1,100 | [
"VTK"
] | cfcdc8b55808e1a41c7937a3b5b112fc85ce7cb2ad3627c8cabda69c0ce2e06e |
"""Classes and functions required for smali codeblock insertion."""
import re
ARG_TYPE = {'L': 'object', 'Z': 'data32', 'B': 'data32',
'S': 'data32', 'C': 'data32', 'I': 'data32',
'J': 'data64', 'F': 'data32', 'D': 'data64',
'U': 'undefined', '[': 'object'}
# instruction arg1,arg... | sslab-gatech/avpass | src/smali_tool/smali_tool.py | Python | gpl-2.0 | 30,644 | [
"VisIt"
] | 4d752588d0feec59344ff254f61e7aa261558090ddff08eb0a4ff8e78b25ffb4 |
# Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
import sys
from . import sigtools, lti
from ._upfirdn import _UpFIRDn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
from scipy imp... | niknow/scipy | scipy/signal/signaltools.py | Python | bsd-3-clause | 98,092 | [
"Gaussian"
] | 47f221d776d1a1a9ca0b9b0d7a00965e17460adb6d3396bf90711181c6fed49b |
# -*- coding: utf-8 -*-
################################################################################
# Rock Collector
# Version 0.1
# Rock Collector is an application for managing a geology collection.
# Released under the MIT open source license:
license_text = """
Copyright (c) 2013-2015 Adam Chesak
Permiss... | achesak/rock-collector | rock_collector.py | Python | mit | 18,369 | [
"CRYSTAL"
] | f1b308fa9b383f815d7adc6c0adc58d1376eb149ab0042396592f621f7fd8adc |
from __future__ import with_statement
import unittest
from StringIO import StringIO
from robot.result import ExecutionResult
from robot.reporting.outputwriter import OutputWriter
from robot.utils import XmlWriter
from robot.utils.asserts import assert_equals
from robot.utils import ET, ETSource
from test_resultbuilde... | eric-stanley/robotframework | utest/result/test_resultserializer.py | Python | apache-2.0 | 1,873 | [
"VisIt"
] | 76c164f4c389733e8af908274dd718df91f2b7c66d8b317d0a561a047030363b |
#!/usr/bin/env python
# example script running a model to steady state and printing the state
# before and after
import COPASI
import sys
dm = COPASI.CRootContainer.addDatamodel()
assert(isinstance(dm, COPASI.CDataModel))
def load_model(filename):
"""
Loads a COPASI model if 'cps' is in the filename, other... | copasi/COPASI | copasi/bindings/python/examples/get_steady_state.py | Python | artistic-2.0 | 2,252 | [
"COPASI"
] | db79142afc319210aeee021681437e114c7cc45ad1d5521adaed689f7a3d66db |
"""
Grammar and AST for query expressions.
"""
from __future__ import unicode_literals
import re
import pypeg2
from pypeg2 import Keyword, Symbol, attr, blank
import sqlalchemy
# Regex for value strings in clauses.
value_regex = re.compile(r'[^()\s]+')
# Check symbols for not being a keyword.
Symbol.check_keywo... | varda/varda | varda/expressions.py | Python | mit | 13,473 | [
"VisIt"
] | b3a334f5d6ffdba892c4e150d675a60db7f5e4a709c344d6536a0e3800ab8861 |
#!/usr/bin/python
from contacts.models.interactions import Message, PhoneCall, Note
from contacts.models.visit import Visit, ScheduledPhoneCall
from contacts.models.misc import Connection, Practitioner, EventLog
from contacts.models.contact import Contact, StatusChange
| tperrier/mwachx | contacts/models/__init__.py | Python | apache-2.0 | 271 | [
"VisIt"
] | 8b0025c356a626e9fa9a60ab1f380ec64808a0cc1bd79e434bb67020e0e3fd27 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import math
"""
This module provides utilities to chunk large sequences and display progress
bars during processing.
"""
def get_chunks(sequence, size=1):
chunks = int(math.ceil(len(sequence) / float(si... | dongsenfo/pymatgen | pymatgen/util/sequence.py | Python | mit | 1,135 | [
"pymatgen"
] | 240079c3e6311c789df625c0ee4f4c1dac873390d5732626b183e88704d22e2e |
"""
Provide a generic structure to support window functions,
similar to how we have a Groupby object.
"""
from __future__ import annotations
import copy
from datetime import timedelta
from functools import partial
import inspect
from textwrap import dedent
from typing import (
TYPE_CHECKING,
Any,
Callable,... | dsm054/pandas | pandas/core/window/rolling.py | Python | bsd-3-clause | 78,149 | [
"Gaussian"
] | 7ec3ae249ff8dae21bd0dd7a30ed8b283ccff33c36e17deafd63414ff1a8c1da |
"""
Copyright 2016 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 law or agreed to in writing, software
di... | haeusser/tensorflow | tensorflow/contrib/semisup/python/semisup/train.py | Python | apache-2.0 | 21,579 | [
"VisIt"
] | dc1681f2b4ae3a6e85aeda2bd1bb7ed3287597549e37717204205e7cb81b4b93 |
#!/usr/bin/env python
#Guruprasad Ananda
"""
This tool computes microsatellite mutability for the orthologous microsatellites fetched from 'Extract Orthologous Microsatellites from pair-wise alignments' tool.
"""
from galaxy import eggs
import sys, string, re, commands, tempfile, os, fileinput
from galaxy.tools.util.g... | volpino/Yeps-EURAC | tools/regVariation/microsats_mutability.py | Python | mit | 22,913 | [
"Galaxy"
] | 5d415f4b39f8148c5bbe0a8c47b8cccee1b26820fb20361746c7f320af709a5d |
#!/usr/bin/env python
"""
Created on Sun 27 Oct 2013.
Uses the Crank Nicolson scheme to solve the time dependent Schrodinger equation
for a harmonic oscillator.
Animation is done using the matplotlib.pyplot library.
Usage:
python CrankNicolsonHarmonicOscillator.py
or equivalent:
./CrankNicolsonPotentialHarmo... | ahye/FYS2140-Resources | src/CrankNicolson/CrankNicolsonHarmonicOscillator.py | Python | mit | 3,899 | [
"Gaussian"
] | e19eadcf887575fd2b20633be82d5bfc691c8f90965f304a12b34dec5ccd156f |
"""
===============================
Plot classification probability
===============================
Plot the classification probability for different classifiers. We use a 3 class
dataset, and we classify it with a Support Vector classifier, L1 and L2
penalized logistic regression with either a One-Vs-Rest or multinom... | lesteve/scikit-learn | examples/classification/plot_classification_probability.py | Python | bsd-3-clause | 3,509 | [
"Gaussian"
] | 0d295a068891575e949603b0dfc4cb7662f96375cb99df554146b3bfbfa99793 |
"""
Module that handles the conversion of JPER json formatted notifications to XML suitable for delivery via SWORDv2
"""
from octopus.modules.jper import models
def to_dc_rioxx(note, entry):
"""
Convert the supplied JPER notification to XML, embedded in the sword client's EntryDocument
See the overview sy... | JiscPER/jper-sword-out | service/xwalk.py | Python | apache-2.0 | 5,659 | [
"Octopus"
] | 75676e0f487696820bbe65e3c130a835471df8b47defa1cf4a7678a035559e91 |
from util import *
from math import sqrt
class Vol(object):
"""
Vol is the basic building block of all data in a net.
it is essentially just a 3D volume of numbers, with a
width (sx), height (sy), and depth (depth).
It is used to hold data for all filters, all volumes,
all weights, and also st... | benglard/ConvNetPy | vol.py | Python | mit | 3,423 | [
"NEURON"
] | 76d8f18bd82bd498066e085ec140c94f0984283b3d5816568dc3eb42e12c73ad |
#!/usr/bin/env python
import vtk
def main():
colors = vtk.vtkNamedColors()
# Create four points (must be in counter clockwise order)
p0 = [0.0, 0.0, 0.0]
p1 = [1.0, 0.0, 0.0]
p2 = [1.0, 1.0, 0.0]
p3 = [0.0, 1.0, 0.0]
# Add the points to a vtkPoints object
points = vtk.vtkPoints()
... | lorensen/VTKExamples | src/Python/GeometricObjects/Quad.py | Python | apache-2.0 | 1,673 | [
"VTK"
] | f3dbd2ed1f389a6a9aa477b1e94ec3fa3aab4e10a84df98a153e93e3c7092596 |
# Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Set of functions to work with GAE SDK tools."""
from __future__ import print_function
import collections
import contextlib
import datetime
im... | luci/luci-py | appengine/components/tool_support/gae_sdk_utils.py | Python | apache-2.0 | 37,756 | [
"VisIt"
] | 65744427740355eb991afc992bc33268730cb1288b1e4479a002d3edadbbd38c |
import re
import ast
import collections
from bs4 import BeautifulSoup
def load_SXFM(xml_file):
"""Load a SXFM feature model.
See http://gsd.uwaterloo.ca:8088/SPLOT/sxfm.html for information
about the SXFM (Simple XML Feature Model) format.
Arguments:
xml_file: Path to a SXFM file.
Retu... | yasserglez/configurator | configurator/util/sxfm.py | Python | apache-2.0 | 9,267 | [
"VisIt"
] | 55f9af3938e10fdcd07a48844a4d4725e5867d2c8d0ce171daa559493f8181b3 |
"""
This test is designed to check protocol/server performances
Configuration and how to run it are explained in the documentation
"""
from DIRAC.Core.Tornado.Client.ClientSelector import RPCClientSelector
from time import time
from random import randint
import sys
import os
class Transaction(object):
def __i... | DIRACGrid/DIRAC | tests/Integration/TornadoServices/perf-test-ping/test_scripts/v_perf.py | Python | gpl-3.0 | 682 | [
"DIRAC"
] | d594a67b61dfd255f812be9786c3074b1439883c08398787fa657613c87040b3 |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Quantised Eclipse Problem - Full Scale Simulations
Created on Tue Feb 21 08:42:57 2017
@author: Dr. Valerio Cambareri, Univ. catholique de Louvain, Belgium
"""
# Let's first import the required libraries.
from __future__ import division
import numpy as np
import mat... | VC86/MLSPbox | QEP-sim.py | Python | mit | 9,987 | [
"Gaussian"
] | c2f9370b0eb48eac4edb2569941a5497fbf1cdb8df6733326acf883d43737f93 |
from __future__ import absolute_import
import re
import json
import time
import logging
import random
import six
from django.conf import settings
from django.core.cache import cache
from six.moves.urllib.parse import parse_qsl
from sentry import http
from sentry.utils.strings import count_sprintf_parameters
logger... | fotinakis/sentry | src/sentry/lang/javascript/errormapping.py | Python | bsd-3-clause | 3,653 | [
"VisIt"
] | 9f8404e1b50fae2112c3fab4cde5cb682c30c2415bb7bc6deda4e37131daf085 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry
# and reaction kinetics.
# Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels
# <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be>
# Center ... | molmod/tamkin | tamkin/examples/018_physisorption/adsorption.py | Python | gpl-3.0 | 8,692 | [
"Gaussian"
] | 9fbde6c91860223c71661de04a5c0868a6094e4235e61240159923d8c676c7f3 |
'''
UNDER CONSTRUCTION
@author: kmu
@since: 14. sep. 2010
'''
# Built-in
import os, sys
sys.path.append(os.path.abspath('..'))
# Additional
import numpy as np
import numpy.ma as ma
from numpy import arange, meshgrid, ones, where, load, nan
# Own
from pysenorge.set_environment import pysenorgedir
d... | kmunve/pysenorge | pysenorge/grid.py | Python | gpl-3.0 | 14,844 | [
"NetCDF"
] | 347c16142759aa159359e55cb41d522e41f8892eed652a1c747ddaf9230dbb0f |
from pyglet.gl import glPushMatrix, glLoadIdentity, glPopMatrix, glMultMatrixf, \
glRotatef, glTranslatef, gluLookAt
from fos.core.utils import get_model_matrix #,screen_to_model,get_viewport
class TransformCamera():
def __init__(self, matrix=None):
self.matrix=matrix
self.reset()
def re... | fos/fos-legacy | fos/core/camera2.py | Python | bsd-3-clause | 2,927 | [
"Mayavi"
] | b314dd5ff1ff2e377466411dc56af18d4425375b1139849babd97d55a2eadb88 |
"""
Helper functions for the course complete event that was originally included with the Badging MVP.
"""
import hashlib
import logging
import six
from django.urls import reverse
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
from badges.models import BadgeAssertion, B... | cpennington/edx-platform | lms/djangoapps/badges/events/course_complete.py | Python | agpl-3.0 | 4,338 | [
"VisIt"
] | 1c10b9271ab362eb77f5bef524a969e169f2bfe71a4ac15dd3bae6e1adfc9b08 |
# Copyright 2012 by Wibowo Arindrarto. 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.
"""Tests for SearchIO hmmer2-text indexing."""
import os
import unittest
from search_tes... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_SearchIO_hmmer2_text_index.py | Python | gpl-2.0 | 23,681 | [
"Biopython"
] | 480135fe88666977d8fa0519be3c42d67b0ea5b9b6c463a5d812106604cc242e |
'''
/*
* tsodyks_depressing.py
*
* This file is part of NEST
*
* Copyright (C) 2004 by
* The NEST Initiative
*
* See the file AUTHORS for details.
*
* Permission is granted to compile and modify
* this file for non-commercial use.1
* See the file LICENSE for details.
*
*/
/* BeginDocumentation
Name: tsodyks_de... | gewaltig/cython-neuron | cynest/examples/tsodyks_depressing.py | Python | gpl-2.0 | 3,350 | [
"NEURON"
] | 6568605740280cac89d40a08915bd5c342beb35dcc9c44d79ecc9daae6030d91 |
from itertools import groupby
from lammps_data.crystal import MOF
from lammps_data.bonds import extrapolate_periodic_bonds
def test_hkust1_should_have_correct_atom_types():
"""
NOT COMPLETED!!!
hkust1 = MOF('tests/HKUST-1.cif')
hkust1.calculate_vectors()
hkust1.bonds = extrapolate_periodic_bonds(... | kbsezginel/lammps-data-file | tests/test_atom_typing.py | Python | mit | 693 | [
"CRYSTAL"
] | 5a4847d5fdccbea5554020e433f43ec76b358a5af462da3b4545a06151928552 |
# This file is part of cclib (http://cclib.sf.net), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2006, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. You shou... | Clyde-fare/cclib_bak | src/cclib/parser/utils.py | Python | lgpl-2.1 | 2,907 | [
"ASE",
"GAMESS",
"cclib"
] | d97b5f97282029ae90123582f7b78cf25bfdb54600ca7206e7a169a8a08d5014 |
"""
This will be the script in use to perform the kinematics pipeline
author: Dennis Goldschmidt (degoldschmidt)
date: 11-07-2017
"""
### Standard Python modules
import os
### Tracking framework modules
## Load profile for this project
from tracking.profile import *
thisscript = os.path.basename(__file__).split("."... | degoldschmidt/ribeirolab-codeconversion | python/tracking_project/kinematics_script.py | Python | gpl-3.0 | 2,962 | [
"Gaussian"
] | 47ee36b0f45d08d8f61de0edd32c94e2e0089bbacf054b369f0e838950a94b9d |
########################################################################
# File : JobCleaningAgent.py
# Author : A.T.
########################################################################
""" The Job Cleaning Agent controls removing jobs from the WMS in the end of their life cycle.
This agent will take care... | fstagni/DIRAC | WorkloadManagementSystem/Agent/JobCleaningAgent.py | Python | gpl-3.0 | 9,970 | [
"DIRAC"
] | 7719801a68b6be240cf018e48843f7759ddf2561983244165ee4284ec0b8de29 |
"""
The MCMC fitting code used in Hilton et al. (2012), in a more general purpose form
Copyright 2015 Matt Hilton (matt.hilton@mykolab.com)
This file is part of fitScalingRelation.
fitScalingRelation is free software: you can redistribute it and/or modify
it under the terms of the GNU Genera... | mattyowl/fitScalingRelation | fitScalingRelation/fitScalingRelationLib.py | Python | gpl-3.0 | 62,047 | [
"Gaussian"
] | 3791d0152ee87fa7b8a3a4987d9152af45b1b44bda3aa60846f969d9a8246d2c |
# Copyright (c) 2017 The Pycroft Authors. See the AUTHORS file.
# This file is part of the Pycroft project and licensed under the terms of
# the Apache License, Version 2.0. See the LICENSE file for details.
import datetime
from io import BytesIO
from os.path import dirname, join
from reportlab.lib.colors import black... | agdsn/pycroft | pycroft/helpers/printing/__init__.py | Python | apache-2.0 | 21,303 | [
"VisIt"
] | 8f93b57fe810a26a0d5f27e9cfb109d246a4bde7b66c0289d90f84601b594d57 |
#!/usr/bin/env python
# Copyright 2004, Magnus Hagdorn
#
# This file is part of GLIMMER.
#
# GLIMMER is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) an... | glimmer-cism/PyCF | progs/add_projinfo.py | Python | gpl-2.0 | 2,977 | [
"NetCDF"
] | b3ecb44b208128c815c6b50cf2c599353d614f636f6c2bfc3eccf757ecb79b6e |
../../../../../../../share/pyshared/orca/scripts/apps/rhythmbox/script.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/rhythmbox/script.py | Python | gpl-3.0 | 73 | [
"ORCA"
] | 2a69d7177a6932d33ec80eb845cb8fd110890039d4f35dec478aae9365fdbe2b |
# ======================================================================
#
# Cosmograil: cosmograil.tools.sexcatalog
#
# sexcatalog module.
#
# Author: Laurent Le Guillou <laurentl@ster.kuleuven.ac.be>
#
# $Id: sexcatalog.py,v 1.1 2005/06/29 13:07:41 hack Exp $
#
# ======================================================... | wschoenell/chimera_imported_googlecode | src/chimera/util/sexcatalog.py | Python | gpl-2.0 | 31,959 | [
"Gaussian"
] | e64f26d84888469b00c26a53916f4bb705c943a524e0391111269428eceec4d4 |
"""
Test functions for models.GLM
"""
import numpy as np
from numpy.testing import *
import scikits.statsmodels as sm
from scikits.statsmodels.glm import GLM
from scikits.statsmodels.tools import add_constant
from nose import SkipTest
# Test Precisions
DECIMAL_4 = 4
DECIMAL_3 = 3
DECIMAL_2 = 2
DECIMAL_1 = 1
DECIMAL_... | matthew-brett/draft-statsmodels | scikits/statsmodels/tests/test_glm.py | Python | bsd-3-clause | 15,881 | [
"Gaussian"
] | 50543e07532ae2f9daf9f1bc38e9b13595aeeaa91ed48a5e4ef08b664fbfbf11 |
########################################################################
# $HeadURL$
# Author: Stuart Paterson
# eMail : Stuart.Paterson@cern.ch
########################################################################
""" The Watchdog class is used by the Job Wrapper to resolve and monitor
the system CPU and mem... | avedaee/DIRAC | WorkloadManagementSystem/JobWrapper/WatchdogMac.py | Python | gpl-3.0 | 4,082 | [
"DIRAC"
] | 4862ec9bce7f84cbbae17c340e730040317963c08915c429f349c962e070becd |
from os import path
from fabric.api import local, cd, lcd, roles, execute, task, run, \
settings, abort, hide
from fabric.colors import yellow
from haus_vars import with_vars
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
# config....
USE_CELERY = False # this should ... | MadeInHaus/django-template | fabfile/vagrant.py | Python | mit | 5,990 | [
"GULP"
] | 672853ff9d2dba7238321dd803700876ced949c1068f9d279c84be6afa0e9b2d |
from six.moves import builtins
from dark.reads import AARead, DNARead, RNARead
from dark.fastq import FastqReads
from dark.utils import StringIO
from unittest import TestCase, skip
try:
from unittest.mock import patch, mock_open
except ImportError:
from mock import patch
class TestFastqReads(TestCase):
... | terrycojones/dark-matter | test/test_fastq.py | Python | mit | 4,526 | [
"Biopython"
] | 61a33f5c8d7d5dc9825eeaa37b642c2dda36e98f4a65b2da664dd7faee614927 |
# ============================================================================
#
# Copyright (C) 2007-2010 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... | kurtraschke/camelot | camelot/view/plugins/richtexteditorplugin.py | Python | gpl-2.0 | 1,489 | [
"VisIt"
] | 4754bc41f509d84abaf482f5ff428d0a215e31f4353a98fdae7ac0be5f111215 |
# Copyright (c) 2018 PaddlePaddle 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 appli... | luotao1/Paddle | python/paddle/fluid/layers/nn.py | Python | apache-2.0 | 612,712 | [
"Gaussian",
"NEURON"
] | e81d11154523e98dedc8b26412ca4b7d58b705d0fcaaffa22152f61440435df2 |
from pyrap.tables import table
import pyrap.tables
import pyrap.measures
import numpy
import traceback
from pyrap.tables import maketabdesc
from pyrap.tables import makearrcoldesc
from pyrap.tables import makescacoldesc
from distutils import spawn
import sys
import subprocess
import math
import json
import codecs
impor... | SpheMakh/msutils | MSUtils/msutils.py | Python | gpl-2.0 | 13,798 | [
"Gaussian"
] | a740e22ecc213afebe0fefe3d680042cd357ec4d379e713ebb816eb786a1fcba |
#!/usr/bin/env python
#
# Data manager for reference data for the MetaPhlAn Galaxy tools
import argparse
import json
import subprocess
from datetime import date
from pathlib import Path
# Utility functions for interacting with Galaxy JSON
def read_input_json(json_fp):
"""Read the JSON supplied from the data manag... | ieguinoa/tools-iuc | data_managers/data_manager_metaphlan_database_downloader/data_manager/data_manager_metaphlan_download.py | Python | mit | 4,314 | [
"Galaxy"
] | 34a906e5d0cb7af6a7901a38874d610e75015373b36c6d3bce1db78fd668157f |
import os
import copy
import h5py
from lazyflow.utility import PathComponents
from lazyflow.graph import Graph
from lazyflow.operators.ioOperators import OpInputDataReader, OpFormattedDataExport
from ilastik.applets.pixelClassification.opPixelClassification import OpArgmaxChannel
from ilastik.applets.dataExport.dataEx... | nielsbuwen/ilastik | bin/convert_predictions_to_segmentation.py | Python | gpl-3.0 | 4,606 | [
"VisIt"
] | 91aa1ec81c316f0628f2f982d9ffae789e17afc16f7c6e542c21944260d6c84e |
# BEGIN_COPYRIGHT
#
# Copyright (C) 2014 CRS4.
#
# This file is part of hadoop-galaxy, released under the terms of the BSD
# 3-Clause License <http://opensource.org/licenses/BSD-3-Clause>.
#
# END_COPYRIGHT
import argparse
import os
import sys
import time
from urlparse import urlparse
import pydoop.hdfs as phdfs
im... | crs4/hadoop-galaxy | hadoop_galaxy/cat_paths.py | Python | bsd-3-clause | 6,659 | [
"Galaxy"
] | d85baef29f820e1e4194c624abc97936ee33b7d9473e8eab88d2937a756450ac |
"""Send
Sends a request to add collaborators or to invite collaborators to
a particular repository.
"""
import os
import sys
import socket
import textwrap
import promus.core.ssh as ssh
import promus.core.git as git
import promus.core.util as util
DESC = """
To be able to collaborate first you need to let your colla... | jmlopez-rod/promus | promus/command/send.py | Python | bsd-3-clause | 4,416 | [
"VisIt"
] | 2545b1526cf3fc79f196071799f2ca0eae243c5cb98342982f8d0e358627171e |
#!/usr/bin/env python
#JSON {"lot": "RHF/3-21G",
#JSON "scf": "PlainSCFSolver",
#JSON "linalg": "DenseLinalgFactory",
#JSON "difficulty": 1,
#JSON "description": "Basic RHF example with dense matrices"}
from horton import *
import numpy as np
import sympy as sp
from polar.data_generate import *
from polar.functio... | fhqgfss/polar | data/test/test.py | Python | mit | 1,493 | [
"Gaussian"
] | 70dbc1187b13176f3cbd3c2db46bed8af2a723d7b184604d0cf3f4ef93dad124 |
# Copyright 2021 The Magenta 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 ... | magenta/symbolic-music-diffusion | utils/ebm_utils.py | Python | apache-2.0 | 15,438 | [
"Gaussian"
] | 7bb7d8fd6d7d40bdebb0808703f28864a2b6d851ddc9383651bcdb80a1889539 |
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from tqdm import tqdm
from IPython import embed
import sys
# Choose standard VAE or VaDE
#from VAE_Models.VaDE import VaDE as model
from VAE_Models.VAE import VAE as model
from VAE_Models.architectures import DNN
from tensorflow.examples.tutori... | mathnathan/VAE_Models | test_drive.py | Python | mit | 2,331 | [
"Gaussian"
] | dd43622565996bc784bda5e75d59deb673bb3c56394e4ca709a578b1fa98a403 |
# encoding: utf-8
"""Classes and functions for kernel related errors and exceptions.
Inheritance diagram:
.. inheritance-diagram:: IPython.parallel.error
:parts: 3
Authors:
* Brian Granger
* Min RK
"""
from __future__ import print_function
import sys
import traceback
from IPython.utils.py3compat import unicod... | mattvonrocketstein/smash | smashlib/ipy3x/parallel/error.py | Python | mit | 8,004 | [
"Brian"
] | c01be812c052615486ec6bb42c39f88961ba62c7bacc07498f4817617565752a |
# Author: Alexis Mignon <alexis.mignon@probayes.com>
from .cygmm import cy_gmm
import numpy as np
def gmm(X, n_clusters=10, max_num_iterations=100, covariance_bound=None,
init_mode='rand', init_priors=None, init_means=None, init_covars=None,
n_repetitions=1, verbose=False):
"""Fit a Gaussian mixtu... | simmimourya1/cyvlfeat | cyvlfeat/gmm/gmm.py | Python | bsd-2-clause | 5,191 | [
"Gaussian"
] | e7537ebf071c8293a04de568b99b02481ea588ac0abe053365cbeb3bc0ae3f1f |
#
# Copyright 2015, 2021 Lars Pastewka (U. Freiburg)
# 2017 James Kermode (Warwick U.)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public... | libAtoms/matscipy | scripts/fracture_mechanics/setup_crack.py | Python | lgpl-2.1 | 6,642 | [
"ASE",
"CRYSTAL",
"Matscipy"
] | 83c75c698fb16f16a02d380963de941fedd53682ab0affb887eb6013ba99ce3a |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from numpy.random import seed
class perceptron(object):
''' perceptron classifier.
Parameters
-----------------------
eta: float
learning rate (between 0.0 and 1.0)
n_iter: in... | shunw/pythonML_code | ch_2_example.py | Python | mit | 10,764 | [
"NEURON"
] | 6c13468c117fe0d6c2214ca4e9e38130a79733bab0831b12c16a980c771326b7 |
## Automatically adapted for numpy.oldnumeric Jun 27, 2008 by -c
#
# $Id: testDepictor.py 2112 2012-07-02 09:47:45Z glandrum $
#
#pylint:disable=E1101,C0111,C0103,R0904
from __future__ import division, print_function
import unittest
import os, sys
import numpy as np
from rdkit import Chem
from rdkit.Chem import rdDe... | rvianello/rdkit | Code/GraphMol/Depictor/Wrap/testDepictor.py | Python | bsd-3-clause | 8,534 | [
"RDKit"
] | 230c8e91513c3b17624f85be5cd4498ddf13365bc9380f34786b22bd5fcf7069 |
""" DIRAC JobDB class is a front-end to the main WMS database containing
job definitions and status information. It is used in most of the WMS
components
The following methods are provided for public usage:
getJobParameters()
setJobParameter()
"""
from __future__ import absolute_import
import six
__RCSID_... | fstagni/DIRAC | WorkloadManagementSystem/DB/ElasticJobDB.py | Python | gpl-3.0 | 2,568 | [
"DIRAC"
] | dae1516cb926984471a29a23f87d4f075e58fef0d2ecb97f94d7418ce56e3984 |
#!/usr/bin/env python
# @package fill_missing
# \brief This script solves the Laplace equation as a method of filling holes in map-plane data.
#
# \details The script is an implementation of the SOR method with Chebyshev
# acceleration for the Laplace equation, as described in 'Numerical Recipes in
# Fortran: the art ... | talbrecht/pism_pik07 | util/fill_missing.py | Python | gpl-3.0 | 17,175 | [
"NetCDF"
] | 00814ee37af02e288ee41d07fba48733849f2424c6eec99bb5c427111aafe862 |
# -*- coding: utf-8 -*-
import datetime
import random
import re
import string
from lxml import html
from urllib2 import urlopen
from urlparse import urljoin
from urlparse import urlparse
from werkzeug import url_encode, unescape
from openerp import models, fields, api, _
from openerp.tools import ustr
URL_REGEX = r'... | bplancher/odoo | addons/link_tracker/models/link_tracker.py | Python | agpl-3.0 | 10,056 | [
"VisIt"
] | e38a6e3589fba10c70cb50f70dd39a009567c26cc5fab57f1ea35baa864969b2 |
from datetime import datetime
import itertools
import json
import logging
import re
from flask import Blueprint, url_for
from google.appengine.api import taskqueue
import feedparser
from link_header import parse as parse_link_header
from dateutil.parser import parse as parse_datetime
from dateutil import tz
from spar... | d3borah/spark-pr-dashboard | sparkprs/controllers/tasks.py | Python | apache-2.0 | 9,383 | [
"VisIt"
] | 97e871262311381a109fc0906b4336e299f4621824775de52939c038f470300c |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import datetime
from DIRAC.Core.Utilities.JEncode import JSerializable
class FTS3File(JSerializable):
"""This class represents an a File on which a given Operation
(Transfer, Staging) should be execute... | ic-hep/DIRAC | src/DIRAC/DataManagementSystem/Client/FTS3File.py | Python | gpl-3.0 | 3,123 | [
"DIRAC"
] | ac529adba01c1c483bb659d471bb1b79d895672d25e1a77abc2c03f476503153 |
"""
Protein-ligand noncovalent chemistry descriptors
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import os
import math
import re
import itertools
import tempfile
import shutil
import numpy as np
from deepchem.feat import ComplexFeaturizer
from deepch... | bowenliu16/deepchem | deepchem/feat/nnscore.py | Python | gpl-3.0 | 29,762 | [
"CRYSTAL"
] | 999c849c5cc147dbbfa6c5038c39ea654710058deeb4c0b7efa6b39ebb6ae1e3 |
# Copyright 2003-2009 by Bartek Wilczynski. 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.
"""Implementation of sequence motifs (PRIVATE).
"""
from Bio.Seq import Seq
from Bio.S... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/Motif/_Motif.py | Python | gpl-2.0 | 26,735 | [
"Biopython"
] | e9081737b901633965f006b56bff247d12e7d5b2abea4de8a051dd2018f8656e |
"""
Authors: Tim Bedin
Copyright 2015 CSIRO / Australian Government Bureau of Meteorology
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 ... | taerwin/cwsl-mas | cwsl/tests/test_argumentcreator.py | Python | apache-2.0 | 6,243 | [
"MOOSE"
] | dac7bcd55621639fea11eb30d62f39e7a39a3004a10e604959222f6fee00db86 |
import math
import numpy
from chainer import cuda, cudnn, Function
from chainer.utils import conv
if cudnn.available:
from chainer.cudnn import libcudnn
_fwd_pref = libcudnn.cudnnConvolutionFwdPreference[
'CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT']
def _pair(x):
if hasattr(x, '__getitem__'):
... | ttakamura/chainer | chainer/functions/convolution_2d.py | Python | mit | 10,280 | [
"Gaussian"
] | 6be5e57a08e4d882dc0e74598ede553882a123c0b7c3b3f6be4381c8652295d8 |
# Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
"""
Example: Nested Sampling for Gaussian Shells
============================================
This example illustrates the usage of the contrib class NestedSampler,
which is a wrapper of `jaxns` library ([1]) to be used for NumPyro mo... | pyro-ppl/numpyro | examples/gaussian_shells.py | Python | apache-2.0 | 4,518 | [
"Gaussian"
] | c7e288527c5783c35a3b7ae1fef5eb220ef3ed4d99bfe0a71a5387184e8a192c |
# -*- coding: utf-8 -*-
import contextlib
import warnings
import numpy as np
import pandas as pd
import pytest
from xarray import (
Dataset, SerializationWarning, Variable, coding, conventions, open_dataset)
from xarray.backends.common import WritableCFDataStore
from xarray.backends.memory import InMemoryDataStor... | shoyer/xray | xarray/tests/test_conventions.py | Python | apache-2.0 | 11,659 | [
"NetCDF"
] | 27b2aa10a2597a0cad0690deb3a0e2d31fbd12160c6b4186b8335fabeb388552 |
__author__ = 'ddeconti'
import FileHandler
import numpy
import pickle
import sys
from rdkit.Chem import DataStructs
def test_rf(target, control, rf):
p = len(target)
n = len(control)
fp = 0
fn = 0
tp = 0
tn = 0
for test in target:
if rf.predict(test) == 1:
tp += 1
... | dkdeconti/PAINS-train | training_methods/classifier/rf_validation.py | Python | mit | 1,435 | [
"RDKit"
] | f6b45fe47c7f0e268fe125b4de795f30f5a89518a3924d22f51a45c40726aaf5 |
"""
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the 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.... | Chibin/gpdb | src/test/tinc/tinctest/models/concurrency/__init__.py | Python | apache-2.0 | 15,409 | [
"VisIt"
] | 5deb6e005612d9d9b2bc4cef02e655ef783840b8a57ae5a2c489d45d45261c34 |
# Copyright 2007 by Michiel de Hoon. 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.
"""
This module provides code to work with the sprotXX.dat file from
SwissProt.
http://www.ex... | NirBenTalLab/proorigami-cde-package | cde-root/usr/lib64/python2.4/site-packages/Bio/SwissProt/__init__.py | Python | mit | 20,044 | [
"Biopython"
] | d9516bd70b8a8386b7130d1e552d3e16299ba151741f1ade67fef96477f4d374 |
# This file is part of the Printrun suite.
#
# Printrun is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Printrun is distributed in ... | jaysuk/Printrun | printrun/pronsole.py | Python | gpl-3.0 | 73,665 | [
"Firefly"
] | fb96978f1ad9f25bb5f6102e78a8b2e640cbe3759e546476169ea4d81db76280 |
# -*- coding: utf-8 -*-
__author__ = "Konstantin Klementiev", "Roman Chernikov"
__date__ = "03 Jul 2016"
import numpy as np
import scipy as sp
import inspect
from . import run as rr
from .. import raycing
from .sources_beams import Beam, defaultEnergy, allArguments
from .physconsts import PI2, CHBAR
# _DEBUG replace... | kklmn/xrt | xrt/backends/raycing/sources_geoms.py | Python | mit | 36,836 | [
"Gaussian"
] | be690bf990002c70517823433571a7e68ee0627fe39e483ec6dccf75c1ef34c5 |
# 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 classes to represent the density of states, etc.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Pro... | sonium0/pymatgen | pymatgen/electronic_structure/dos.py | Python | mit | 17,367 | [
"Gaussian",
"VASP",
"pymatgen"
] | f22b4625ee412583bc5dda640b834a08f00db18da36b88755913743d7c11ba42 |
from __future__ import absolute_import, division, print_function
import argparse
import os
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
import apogee.tools.read as apread
from apogee.spec import continuum
'''
Create continuum-normalized text file spectra from a set of APOGEE visit ... | mrawls/apVisitproc | apvisitproc/apVisit2input.py | Python | mit | 7,800 | [
"VisIt"
] | 4349b2c388c650d2aff6a6d09c2cff215f32f871582954170033aef68882a89d |
# -*- coding: utf-8 -*-
# Nemubot is a smart and modulable IM bot.
# Copyright (C) 2012-2014 nemunaire
#
# This program 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 the License,... | Bobobol/nemubot-1 | message/__init__.py | Python | agpl-3.0 | 4,581 | [
"VisIt"
] | 9296ee9d07214978207cae679db6b4c836ad9267fd05960be3e0a260eedb6e8c |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# rmvgridmember - [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 term... | heromod/migrid | mig/cgi-bin/rmvgridmember.py | Python | gpl-2.0 | 1,114 | [
"Brian"
] | 4633d2ecc20f986ce1ae4d4bb0238039a590df7f6091fe1a86dd82f75d3eb3cd |
# -*- coding: utf-8 -*-
"""upload_docs
Implements a Distutils 'upload_docs' subcommand (upload documentation to
sites other than PyPi such as devpi).
"""
from base64 import standard_b64encode
from distutils import log
from distutils.errors import DistutilsOptionError
import os
import socket
import zipfile
import temp... | martbhell/wasthereannhlgamelastnight | src/lib/setuptools/command/upload_docs.py | Python | mit | 7,218 | [
"VisIt"
] | 6dae643b279d0ffbbadb07a29ebc6aaa7be9b90bc122e6a65de8491bab40bced |
import os,sys
from optparse import OptionParser
usage = 'Usage: fehm_visit.py [options] input grid'
parser = OptionParser(usage=usage)
parser.add_option('-i','--incon', dest = 'inconname', metavar = 'FILE', help = 'FEHM restart/initial conditions file')
parser.add_option('-c','--cont', dest = 'contname', metav... | ddempsey/PyFEHM | scripts/fehm_visit.py | Python | lgpl-2.1 | 2,015 | [
"ParaView",
"VisIt"
] | fb55395a0fb0ee1a95f8b97dc18785c1eb5b525d1a585d905d3eb3c092024c23 |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
"""Band-descriptors for blocked/strided groups.
This module contains classes defining two kinds of band groups:
* Blocked groups with contiguous band indices.
* Strided groups with evenly-spaced band indices.
"""
import n... | qsnake/gpaw | gpaw/band_descriptor.py | Python | gpl-3.0 | 9,034 | [
"GPAW"
] | a1ead9167ca94af36eee57179d46c2adf9ee1b8b5e4a772139f0799929a8d6ab |
""" This is a test of the chain
ProductionClient -> ProductionManagerHandler -> ProductionDB
It supposes that the ProductionDB, TransformationDB and the FileCatalogDB to be present
It supposes the ProductionManager, TransformationManager and that DataManagement/FileCatalog services running
"""
import DIRAC... | DIRACGrid/DIRAC | tests/Integration/ProductionSystem/Test_Client_TS_Prod.py | Python | gpl-3.0 | 10,854 | [
"DIRAC"
] | 4de2f090b1081360218bd8f704f59fecdd9fc597d53ccbf24ecce2a78c4c2104 |
#!/usr/bin/env python3
""" Script to download the monthly wallpaper from the Ordnance Survey
"""
__author__ = 'Matthew Celnik'
__copyright__ = 'Matthew Celnik'
__licence__ = 'All rights reserved'
__maintainer__ = 'Matthew Celnik'
__email__ = 'matthew@celnik.co.uk'
__status__ = 'Prototype'
# import urllib
import re
fr... | mscelnik/os-wallpaper | get_os_wallpaper.py | Python | gpl-2.0 | 1,321 | [
"VisIt"
] | f7841e8b4d6fd092401780e2d98dfb41cdb44be645a71ce3b91c9de1887fc05f |
'''
Created on Jun 27, 2015
@author: sergio
'''
from neurodb.cfsfdp import libcd
import numpy as np
import neurodb
import random
import matplotlib.pyplot as plt
import pickle
from sklearn.cluster import KMeans, AgglomerativeClustering, MiniBatchKMeans, Birch, SpectralClustering
def ajuste(n, coeficientes):
vajus... | sergiohr/NeuroDB | test/test_todos_spikes.py | Python | gpl-3.0 | 4,438 | [
"Gaussian"
] | 67e68cb57443052d6172993cb1e73d20748dd57347a49e8849cd65c80feca462 |
# Copyright 2012 Hewlett-Packard Development Company, L.P.
#
# 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... | OSSystems/jenkins-job-builder | jenkins_jobs/modules/scm.py | Python | apache-2.0 | 63,742 | [
"Octopus"
] | 8abdf0aa28230741c96d504155b35ff2f9f1c8d963e6e58db35c7b26b1fb8537 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Copyright (C) 2020 Computational Neuroscience Group, NMBU.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | espenhgn/LFPy | LFPy/eegmegcalc.py | Python | gpl-3.0 | 17,601 | [
"NEURON"
] | 686729fe517c05a67fd23e1ea8997fd0df31d375d8fd5cbb8803307d1cd7f06b |
from Settings import MAX_CACHE_SIZE
from Structures import _nameless_struct
from Structures import _named_struct
# Query params for grouping
_experiments = 'experiments'
_samples = 'samples'
_datasets = 'datasets'
_channels = 'channels'
_groupings = {
_experiments: 'experiment',
_samples: 'sample',
_datas... | Rhoana/butterfly2 | butterfly/UtilityLayer/Keywords.py | Python | mit | 6,435 | [
"NEURON"
] | 5b4fc5b95a1dd78d3a1cf8318c9551b4012f8b5567f28d3090a93b6c95b03e33 |
from __future__ import print_function
import os
import warnings
import numpy as np
import fitsio
from tractor.splinesky import SplineSky
from tractor import PixelizedPsfEx, PixelizedPSF
from astrometry.util.fits import fits_table
from legacypipe.bits import DQ_BITS
import logging
logger = logging.getLogger('legacypipe... | legacysurvey/pipeline | py/legacypipe/image.py | Python | gpl-2.0 | 90,604 | [
"Galaxy",
"Gaussian"
] | d694ae5fa10d71a8f4a1ec4a77dd1fb0b3eda1de46c081ad1fd614b1c03e4e87 |
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from textwrap import... | 15Dkatz/pants | contrib/confluence/tests/python/pants_test/contrib/confluence/targets/test_wiki_page.py | Python | apache-2.0 | 3,748 | [
"exciting"
] | e2a7b562480b76efd7bf3ba11347ed61b26ab16e30ec9db7007b5ace361c210c |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.0',
... | bearstech/ansible | lib/ansible/modules/files/acl.py | Python | gpl-3.0 | 11,287 | [
"Brian"
] | 04b437075cd7c6341203eac4c14e3ead378ad128089fa7e395a7d777ee34bebf |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkXMLPRectilinearGridWriter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkXMLPRectilinearGridWriter.py | Python | bsd-3-clause | 528 | [
"VTK"
] | 40f90a081ca9c1666d685c5fcfc512290de5c61f55a11ecdda15d06ddbbcf078 |
# ========================================================================
#
# Imports
#
# ========================================================================
import os
import glob
import subprocess as sp
import unittest
import numpy as np
import numpy.testing as npt
# ===========================================... | marchdf/dg1d | regressions/regressions.py | Python | apache-2.0 | 5,672 | [
"BLAST"
] | 9ceb6960268317a74a107e85cb7e36ee36929ca06f8962f78a648415b862273c |
from distutils.core import setup
setup(
name='gnip-historical',
version='0.4.1',
author='Scott Hendrickson, Brian Lehman, Josh Montague',
author_email='scott@drskippy.net',
packages=['gnip_historical'],
scripts=['create_job.py', 'accept_job.py','reject_job.py', 'list_jobs.py'],
url='http://... | compston/TAP-Workshop | utilities/Gnip-Python-Historical-Utilities/src/setup.py | Python | mit | 541 | [
"Brian"
] | 25b7e5e5e6425db802ca607648083594ef131320aab155d0e864ac1577e09c28 |
from bs4 import BeautifulSoup
# from selenium.webdriver.common.by import By
# from selenium.webdriver.support import expected_conditions as ec
# from selenium.common.exceptions import TimeoutException
from pprint import pprint
from app.modules.utils.logger import logger
from app.modules.utils.static import data
from a... | k33k00/tesseract_infinity | src/t-infinity/app/modules/benchkit.py | Python | mit | 3,233 | [
"VisIt"
] | dc49551dfb1bfc51aa1e43836292c80215b5080f8dc9d9826059d41bf71f9d53 |
import json
import logging
import yaml
from bioblend.galaxy.objects import GalaxyInstance
from bioblend.galaxy import dataset_collections as collections
class GalaxyCMDWorkflow(object):
def __init__(self, datadict):
"""
Interact with a Galaxy instance
Args:
datadict (dict): T... | AAFC-MBB/gflow | gflow/GalaxyCMDWorkflow.py | Python | mit | 15,517 | [
"Galaxy"
] | e4f40777485f892ae9c86059fab4b4b9d19bcaf1cb7cd4120d023be3d7eee79a |
# -*- coding: utf-8 -*-
#
# test_stdp_dopa.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,... | tillschumann/nest-simulator | testsuite/manualtests/test_stdp_dopa.py | Python | gpl-2.0 | 3,636 | [
"NEURON"
] | 6b015d955659c78edea9aaa40380a089abce591a5f89d2486b02a51e26be6571 |
from __future__ import print_function
from pymatgen.analysis.chemenv.utils.graph_utils import get_delta
__author__ = 'waroquiers'
from monty.json import MSONable
from pymatgen.analysis.chemenv.utils.chemenv_errors import ChemenvError
import networkx as nx
from networkx.algorithms.traversal import bfs_tree
from networ... | fraricci/pymatgen | pymatgen/analysis/chemenv/connectivity/connected_components.py | Python | mit | 37,097 | [
"pymatgen"
] | 5dbdcf7eae25fc6182d3e9a388c44899a8dd63d7ec69669edf10c4f4f49e8503 |
##############################################################################
# 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... | lgarren/spack | var/spack/repos/builtin/packages/r-complexheatmap/package.py | Python | lgpl-2.1 | 2,260 | [
"Bioconductor"
] | e68bbb8399cbc6864baab482287c47637e89ca25e6f98113e308134983fcd510 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.