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 gpiozero
import time
# dit script test of de motors van de robots goed zijn aangesloten.
# de wielen worden eerst 1-voor-1 getest, daarna samen
# de eerste stap is python vertellen hoe de verschillende motors 'gevonden'
# kunnen worden. met andere woorden, op welke gpio pinnen ze aangesloten zijn.
# we geven... | marcwagner/pi-robot | les3/wielen_test.py | Python | mit | 3,468 | [
"Elk"
] | ecf722c19365fc8c0389db65cf577be5e65a918a335581aa92a58bc2169e9974 |
from __future__ import division
"""
Calculate mean and standard deviation of data x[]:
mean = {\sum_i x_i \over n}
std = sqrt(\sum_i (x_i - mean)^2 \over n-1)
"""
from decimal import *
getcontext().prec = 20
from math import *
def ndian(numericValues,n=2):
theValues = sorted(numericValues)
if len(theValues) ... | quadrismegistus/litlab-poetry | pystats.py | Python | mit | 31,188 | [
"Gaussian"
] | 5bcd34bd4875cf317ac2a7873f0985d36afc8c587f220c44b9307adf9a693459 |
#
# Author: Henrique Pereira Coutada Miranda
# Run a IP calculation using yambo
#
from __future__ import print_function
import sys
from yambopy import *
from qepy import *
import argparse
#parse options
parser = argparse.ArgumentParser(description='Test the yambopy script.')
parser.add_argument('-dg','--doublegrid', a... | henriquemiranda/yambopy | tutorial/bn/ip_bn.py | Python | bsd-3-clause | 1,731 | [
"Yambo"
] | c5d8896ba8c33fc46a5e05d808075f64d265d179b322c5d618f39aedd36ce0b1 |
##############################################################################
# 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 | var/spack/repos/builtin/packages/py-cclib/package.py | Python | lgpl-2.1 | 1,655 | [
"cclib"
] | a742277f5b3b9be0600586e9deef3468a96c4405a299bd3aec624803562c5f9b |
"""
Export neuroimaging results created with feat in FSL following NIDM-Results
specification.
@author: Camille Maumet <c.m.j.maumet@warwick.ac.uk>
@copyright: University of Warwick 2013-2014
"""
from nidmresults.exporter import NIDMExporter
from nidmresults.objects.constants import *
from nidmresults.objects.modelfi... | incf-nidash/nidmresults-fsl | nidmfsl/fsl_exporter/fsl_exporter.py | Python | mit | 76,984 | [
"Gaussian"
] | a6e627646808f01429210a4f9454d75c292ff628ddf144b4402596ffa3bbcb40 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
########################################################################
# Solves problem 64 from projectEuler.net.
# Finds how many continued fractions for N <= 10000 have an odd period.
# Copyright (C) 2010 Santiago Alessandri
#
# This program is free software:... | sanSS/programming-contests | project-euler/problem064.py | Python | gpl-3.0 | 1,750 | [
"VisIt"
] | dbc9536dc175fc86988f02596411fb55504c29fbefbae864db0af9144a163afa |
# coding: utf-8
# # PyMultiNest My Models
# In[ ]:
from __future__ import absolute_import, unicode_literals, print_function
import pymultinest
import math
import os
import threading, subprocess
from sys import platform
from pylab import *;ion()
if not os.path.exists("chains"): os.mkdir("chains")
# ** Straight L... | exowanderer/Charge-Carrier-Trapping-Comparison | PyMultiNest Learning Tutorial.py | Python | gpl-3.0 | 48,066 | [
"Gaussian"
] | dd7f519a3a49104e135ca29a69c622f0cf342839620183692f4aa67dfd089eba |
# Todd Miller jmiller@stsci.edu
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import tkinter as Tk
from six.moves import tkinter_filedialog as FileDialog
import os, sys, math
import os.path
# Paint image to Tk photo blitter ex... | Reagankm/KnockKnock | venv/lib/python3.4/site-packages/matplotlib/backends/backend_tkagg.py | Python | gpl-2.0 | 31,659 | [
"FLEUR"
] | c965c264728e39045ccd2a4f9d64828b1057ed0d9073cf436548ecc8e54bafc9 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-gke-hub | tests/unit/gapic/gkehub_v1/test_gke_hub.py | Python | apache-2.0 | 149,009 | [
"Octopus"
] | 8de36632b3ccf639a10c59a72bca6931bf4b623508c23fcfed34bc05f6c83768 |
# Author: Matthew Harrigan <matthew.harrigan@outlook.com>
# Contributors:
# Copyright (c) 2016, Stanford University
# All rights reserved.
from __future__ import print_function, division, absolute_import
import os
import pickle
import re
import shutil
import stat
import warnings
import mdtraj as md
import numpy as n... | msultan/msmbuilder | msmbuilder/io/io.py | Python | lgpl-2.1 | 9,756 | [
"MDTraj"
] | 12c869758b292f1a980aab17f6fd4b4f153f58605e27c1b751b2be330969a147 |
#!/usr/bin/env python
#
# creates a (gray-scale) PNG file from a polygon data file *.vtk
#
from vtk import *
import sys
# input:
if len(sys.argv) == 2:
modelfile = str(sys.argv[1])
else :
print "Usage: python plot_VTK_gray.py OUTPUT_FILES/bin_movie_009000.d.vtk"
sys.exit(1)
print "modelfile: ",modelfile
# cre... | mpbl/specfem3d_globe | utils/Visualization/VTK_ParaView/plot_VTK_gray.py | Python | gpl-3.0 | 3,873 | [
"VTK"
] | 4f184f15bfd339a0b926693b80d8fff4a7cc5969e6facc512fde9ddfcf2cf812 |
from setuptools import setup, find_packages
import imp
version = imp.load_source('presets.version', 'presets/version.py')
setup(
name='presets',
version=version.version,
description="A python module to manipulate default parameters of a module's functions",
author='Brian McFee',
url='http://githu... | bmcfee/presets | setup.py | Python | isc | 1,361 | [
"Brian"
] | 942dfe6b0a9df0d9555dfdc89593a87ff48acbaebb3e440d3ff9e681ba41fad4 |
import copy
import quantities as pq
import scipy as sp
import scipy.signal
import scipy.special
import tools
default_kernel_area_fraction = 0.99999
class Kernel(object):
""" Base class for kernels. """
def __init__(self, kernel_size, normalize):
"""
:param kernel_size: Parameter controlling... | rproepp/spykeutils | spykeutils/signal_processing.py | Python | bsd-3-clause | 19,012 | [
"Gaussian"
] | 017a1c518a328e84f6501258afa43051db9a2c99a09ea09bc32acb02132765e3 |
# -*- coding: utf-8 -*-
"""
Created 2/19/19
@author: cdeline
Using pytest to create unit tests for load.py
to run unit tests, run pytest from the command line in the bifacial_radiance directory
"""
import bifacial_radiance
import os, pytest
# try navigating to tests directory so tests run from here.
try:
os.c... | NREL/bifacial_radiance | tests/test_load.py | Python | bsd-3-clause | 4,546 | [
"EPW"
] | e43da68533a68ccccbc66cc028e07dfb707b208c3bfd77ebcbf26d3a435b18fe |
from abc import ABCMeta, abstractmethod
from collections.abc import Iterable
from numbers import Real
import sys
from xml.etree import ElementTree as ET
import numpy as np
import openmc.checkvalue as cv
from openmc.mixin import EqualityMixin
_INTERPOLATION_SCHEMES = ['histogram', 'linear-linear', 'linear-log',
... | wbinventor/openmc | openmc/stats/univariate.py | Python | mit | 17,368 | [
"Gaussian"
] | b54dba4932a2072aaf6b3afffc475c881cc028bc5cfbb5eba4da290cd55283a7 |
import numpy as np
import scipy as sp
import pylab as pp
from collections import OrderedDict
from sklearn.neighbors import KernelDensity
class LinearDiscriminantAnalysis( object ):
def __init__(self, epsilon = 1e-12 ):
self.epsilon = epsilon # used for computing sw
self.fitted = False
def fit( self, ... | tedmeeds/tcga_encoder | tcga_encoder/models/lda.py | Python | mit | 6,666 | [
"Gaussian"
] | 249a84b15f8a0b3063ed9baf1c3ea0d3ec636071be6595e7bc6392f48d7f3d82 |
"""
Run scripts to setup system dependencies and autopilot plugins
.. example::
> # to list scripts
> python3 -m autopilot.setup.run_script --list
> # to execute one script (setup hifiberry soundcard)
> python3 -m autopilot.setup.run_script hifiberry
> # to execute multiple scripts
> python3... | wehr-lab/RPilot | autopilot/setup/run_script.py | Python | gpl-3.0 | 3,682 | [
"CRYSTAL"
] | d94e598d2445fc3af89034d4ecb8604593c1f643df36af95399dd319dbf87cf9 |
"""
Family of two-dimensional functions indexed by x and y.
All functions are written to be valid both for scalar x and y, and for
numpy arrays of x and y (in which case the result is also an array);
the functions therefore have the same mathematical behaviour as numpy.
$Id$
"""
from __future__ import with_statement... | ioam/svn-history | imagen/patternfn.py | Python | bsd-3-clause | 10,714 | [
"Gaussian"
] | 6f93841e607aaf0d3312480c657513e0d5ccacffe0998ea4b0d36d47616955ce |
# iNeuron
#
#
# Michele Giugliano, 18-19/10/2014, Antwerpen
# http://www.ua.ac.be/michele.giugliano
#
# pythonista://MG/iNeuron?action=run
#
import string
import sound
from scene import *
from random import *
from time import localtime
from itertools import chain
from math import sin, exp, fmod
ipad = False #will be... | mgiugliano/iNeuron | iNeuron.py | Python | gpl-2.0 | 5,988 | [
"NEURON"
] | 287fb7ff10d85b97976b0893492f19515d03688b96f1f31b91107fdc7020088d |
# Copyright 2014-2020 The ODL contributors
#
# This file is part of ODL.
#
# 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 https://mozilla.org/MPL/2.0/.
"""Operators defined for tensor fields."""
... | kohr-h/odl | odl/operator/tensor_ops.py | Python | mpl-2.0 | 61,291 | [
"DIRAC"
] | 369981faae318d1a7c9a49c3addd6c497e5b47104f50b295e19972716c9531c2 |
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | biocore/qiita | qiita_db/test/test_util.py | Python | bsd-3-clause | 56,304 | [
"scikit-bio"
] | 81b1399fe1ed7a1ab764084960184395787f5a3a046a3e053832e506653141a2 |
"""
Functions to study r2 landscapes (equivalent of dispersion spectra) and similar stuff.
"""
import sys, os
import pycs.gen.lc
import pycs.gen.spl
import pycs.gen.util
import pycs.spl.multiopt
import numpy as np
import scipy.optimize as spopt
def explore(lcs, sourcespline, tss):
"""
We explore a volume of t... | COSMOGRAIL/PyCS | pycs/spl/old/multispec.py | Python | gpl-3.0 | 3,019 | [
"Mayavi"
] | ac2b56a252b90c4a3cd782f65c45e3bb1d3a3a5e9f3f20524492418f73acfd37 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2021 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | lothian/psi4 | psi4/driver/qcdb/libmintsmolecule.py | Python | lgpl-3.0 | 121,875 | [
"Elk",
"Psi4"
] | 3b7bce18ec5f875a0695fcaee9bd5314cb7a89423eb9ba8f94ebb70b1342c2b8 |
import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | evanbiederstedt/RRBSfun | trees/chrom_scripts/total_chr20.py | Python | mit | 32,998 | [
"MCell"
] | d406958ac790ecb011914ed900904637f7769bb986f0c26fbb0234ddd4877bc7 |
import sys
'''Test to rread'''
import wx
import os
from wx.lib.buttons import GenBitmapButton,GenBitmapToggleButton
import wx.lib.mixins.listctrl as listmix
import traceback
import types
import subprocess
import sqlite3
class TestListCtrl(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.ColumnSorterMixin):
de... | fxb22/BioGUI | plugins/Tools/SQuirreLitegui.py | Python | gpl-2.0 | 29,335 | [
"BLAST"
] | c566ca35714c40baab6e0c35d23ef04c295967dd37706234ed82d49229d91e2a |
# -*- coding: utf-8 -*-
"""Shortest paths and path lengths using A* ("A star") algorithm.
"""
# Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
from heapq import heappush, heappop
fr... | SanketDG/networkx | networkx/algorithms/shortest_paths/astar.py | Python | bsd-3-clause | 4,949 | [
"VisIt"
] | 6268d055e12bf41a49e408049cdd4cc453d6ccf3c7a05c032d2233357bcb614f |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# CREATED:2015-02-04 14:22:10 by Brian McFee <brian.mcfee@nyu.edu>
'''Utility transformers'''
from ..base import BaseTransformer
__all__ = ['Bypass']
class Bypass(BaseTransformer):
r'''Bypass transformer. Wraps an existing transformer object.
This allows pip... | silky/muda | muda/deformers/util.py | Python | apache-2.0 | 1,369 | [
"Brian"
] | a23ebb80a4f215401adeee0c19e059f2a47d2032a2148432619777b750cc39d2 |
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml',
author='Brian Beyer',
author_email='brian@kyr.us',
url='https://github.com/kyrus/python-junit-xml',
license='MIT',
packages=find... | nblock/python-junit-xml | setup.py | Python | mit | 948 | [
"Brian"
] | a0dcc4d885398fdf8b5fbff884332cb408a1a6873fb3b1020ac3c5558c80b7b0 |
import argparse
import datetime
import re
from ui.xnova.xn_page_cache import XNovaPageCache
from ui.xnova.xn_page_dnl import XNovaPageDownload
from ui.xnova.xn_data import XNAccountInfo, XNCoords, XNFlight, XNPlanet, XNPlanetBuildingItem
from ui.xnova.xn_techtree import XNTechTree_instance
from ui.xnova.xn_par... | minlexx/xnovacmd | app_cli.py | Python | gpl-2.0 | 13,787 | [
"Galaxy"
] | 9c2fa37c37eeefe82d0bcc83bd05e13a54df7e619c39976a9a24f1268ab0347f |
# -*- coding: utf-8 -*-
#
# This hook sends episode updates to monthly.moe and marks them as watched.
#
# To use, copy this file to ~/.trackma/hooks/ and fill in the access token.
ACCESS_TOKEN = ""
if not ACCESS_TOKEN:
raise Exception("You must provide the Monthly.moe HTTP API access token..")
import urllib.pars... | mutilx9/trackma | hooks/monthly.py | Python | gpl-3.0 | 1,161 | [
"MOE"
] | 2571eca98ec9322a015863eb8f6f0ef33449d9817be962a2340d398e223f7963 |
#
# Copyright (C) 2008 Greg Landrum
# Copyright (C) 2009 Uwe Hoffmann
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
import array
import math
i... | rdkit/rdkit | rdkit/Chem/Draw/cairoCanvas.py | Python | bsd-3-clause | 14,368 | [
"RDKit"
] | fe274124ba7014697b2ea7ddfb4c3c32600622a812f96c6ae9d2a31e9398f941 |
from __future__ import print_function, absolute_import, division
import os
import gzip
import bz2
import tempfile
import unittest
from mdtraj.testing import eq
from mdtraj.utils import open_maybe_zipped
class test_open_maybe_zipped(unittest.TestCase):
def setUp(self):
self.tmpdir = tempfile.mkdtemp()
... | tcmoore3/mdtraj | mdtraj/tests/test_zipped.py | Python | lgpl-2.1 | 1,411 | [
"MDTraj"
] | ba1ac33ebb290ec955470c7d23783f148193460a3ae70f775efb15301bfc3805 |
"""Edit a 'rotomap' series of images.
In all modes:
Press 'q' to quit.
Press 'Q' to quit with exit code 1.
Press left for previous image, right for next image.
Press up for previous map, down for next map.
Ctrl-click on a point to zoom in on it.
Press 'z' or 'x' to adjust the zoom level.
P... | aevri/mel | mel/cmd/rotomapedit.py | Python | apache-2.0 | 21,197 | [
"VisIt"
] | dc78a0f8a72bd0d8bc1dac0c4bcec0dba0e671b27275752dfec3bc5b9a7bcf0b |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | pwcberry/climate | ocw-cli/cli_app.py | Python | apache-2.0 | 67,124 | [
"NetCDF"
] | b10cda0dbab8e4ea4d88eb33b12bf90fdbcb35e16ec45c514c011536e7fccc14 |
#!/usr/bin/env python
"""
"""
import vtk
def main():
colors = vtk.vtkNamedColors()
fileName = get_program_parameters()
# Read the image.
readerFactory = vtk.vtkImageReader2Factory()
reader = readerFactory.CreateImageReader2(fileName)
reader.SetFileName(fileName)
reader.Update()
# ... | lorensen/VTKExamples | src/Python/ImageProcessing/Pad.py | Python | apache-2.0 | 3,435 | [
"VTK"
] | d61cdb1ff2769da6b43c9820a4f5ccdeb8e779b9a46590a5e146b4c98fe8fea8 |
# Original copyright notice:
# The MIT License (MIT)
#
# Copyright (c) 2013 Curtis Schlak
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... | TheLartians/Expresso | expresso/visitor.py | Python | mit | 10,455 | [
"VisIt"
] | ec6190fbed4ba18decfaafe65b81cb18384cf07c97e5da7a7aa347d376c00143 |
"""Animation class which is a DisplayElement which plays animations."""
# animation.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
import time
from mpf.m... | jabdoa2/mpf | mpf/media_controller/elements/animation.py | Python | mit | 13,593 | [
"Brian"
] | d1a736df685ace10a8ab8f6e64298958f7da55c25881b30fb635e427f274afe1 |
import unittest
PLUGINAPI = [
'show',
'snapshot',
'VTKParticles',
'VTKLattice',
'VTKMesh',
'adapt2cuds',
'load',
'add_engine_to_mayavi2',
'get_simphony_panel'
]
class TestPluginLoading(unittest.TestCase):
def test_import(self):
try:
from simphony.visualisa... | simphony/simphony-mayavi | simphony_mayavi/tests/test_plugin_loading.py | Python | bsd-2-clause | 697 | [
"Mayavi"
] | 972fc8bca519f0142a15b84c38351936b65360c9ec87d98d220409769259a444 |
# Copyright (C) 2015-2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from collections import defaultdict
import datetime
from datetime im... | SoftwareHeritage/swh-storage | swh/storage/tests/storage_tests.py | Python | gpl-3.0 | 185,329 | [
"VisIt"
] | 4319070ea1f55644d05835616ed8e09a9e446a4a8bf2ea47c6ced63ca1513cb9 |
"""
PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net)
Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved,
Brett G. Olivier (bgoli@users.sourceforge.net)
Triple-J Group for Molecular Cell Physiology
Stellenbosch University, South Africa.
Permiss... | bgoli/pysces | pysces/tests/__init__.py | Python | bsd-3-clause | 622 | [
"PySCeS"
] | a33b2db12b02d3e8702389c7d609ac0b710fc489b4b433786181bba595b56acb |
#!/usr/bin/env python
import sys
import os
import subprocess
import pysam
import textwrap
import argparse
from uuid import uuid4
def print_header():
print textwrap.dedent("""\
##fileformat=VCFv4.1
##phasing=none
##INDIVIDUAL=TRUTH
##SAMPLE=<ID=TRUTH,Individual="TRUTH",Description="bamsurgeon spik... | MischaLundberg/bamsurgeon | scripts/makevcf_sv.py | Python | mit | 4,873 | [
"pysam"
] | 76ff6db1e63441df53b46fd1763368cd8ab947dcfba0cb280c10d17e9a56ab13 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Preparing a file for codeml in PAML from a fasta alignment file
__authors__ = "Eric Normandeau"
__program_name__ = "fasta2paml"
__version_info__ = ('0', '0', '1')
__version__ = '.'.join(__version_info__)
__revision_date__ = "2010-04-20"
# Importing modules
import os
... | wkh124/wkh124 | fasta2paml.py | Python | gpl-3.0 | 4,305 | [
"Biopython"
] | e715ddb0c6cc292f8e8f1fb0febaad24710b1d708c7a345fd1d3b478038e7a96 |
"""
Calculation thread for modeling
"""
import time
import numpy as np
import math
from sas.sascalc.data_util.calcthread import CalcThread
from sas.sascalc.fit.MultiplicationModel import MultiplicationModel
class Calc2D(CalcThread):
"""
Compute 2D model
This calculation assumes a 2-fold symmetry of th... | lewisodriscoll/sasview | src/sas/sasgui/perspectives/fitting/model_thread.py | Python | bsd-3-clause | 10,347 | [
"Gaussian"
] | 425c4f49bd63bec4f3cb505cea23a90c6e94894daeb8f31812aa13c9c7e5e6ec |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/utils/Platform/__init__.py | Python | gpl-3.0 | 9,338 | [
"ORCA"
] | 1928a582599674557a7bb1ba2f4244f535906b128bf2a4c28153db28858d3f22 |
from .. import Provider as CompanyProvider
class Provider(CompanyProvider):
formats = (
'{{last_name}} {{company_suffix}}',
'{{last_name}} & {{last_name}}',
'{{company_prefix}} {{last_name}}',
'{{large_company}}',
)
company_prefixes = (
'Stichting', 'Koninklijke',... | danhuss/faker | faker/providers/company/nl_NL/__init__.py | Python | mit | 8,512 | [
"CASINO"
] | b77d83f13004059a76f727a747fe066cca69b02bc8616e7ccaf775eb7fa5eb51 |
from WebAppDIRAC.Lib.WebHandler import WebHandler, WErr, WOK, asyncGen
from DIRAC.Core.DISET.RPCClient import RPCClient
from DIRAC.Core.DISET.TransferClient import TransferClient
from DIRAC import gConfig, S_OK, S_ERROR, gLogger
from DIRAC.Core.Security import CS
from DIRAC.Core.Utilities import Time, List, DictCache
... | atsareg/WebAppDIRAC | WebApp/handler/AccountingPlotHandler.py | Python | gpl-3.0 | 12,025 | [
"DIRAC"
] | a210388c8e8a553aaf8d28fa3effe3769f695f59982676f03fcfcb3eacf84e3b |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
import sys
from tempfile import mkdtemp
from shutil import rmtree
import locale
import logging
import subprocess
from pelican import Pelican
from pelican.settings import read_settings
from pelican.tests.support import LoggedTest... | jml/pelican | pelican/tests/test_pelican.py | Python | agpl-3.0 | 7,512 | [
"exciting"
] | d5a951f6f1422f8a93b9bb7e39905a39de453a4667e7d0ceff853f1934141137 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import argp... | nuclear-wizard/moose | python/peacock/base/TabPluginManager.py | Python | lgpl-2.1 | 3,170 | [
"MOOSE"
] | cf9a070311fb74e776fb20c43aea49e076b07e721a800c21c15c03ca37e7adf4 |
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
# Copyright: (C) 2001 Centro de Pesquisas Renato Archer
# Homepage: http://www.softwarepublico.gov.br
# Contact: invesalius@cti.gov.br
# License: GNU ... | fabio-otsuka/invesalius3 | invesalius/data/volume.py | Python | gpl-2.0 | 28,873 | [
"VTK"
] | 89117b6053885fc1517ba40f164c9d239cf7d45dba69c5bd09173cb926aad6c9 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8
"""
Copyright (c) 2008-2020 Janne Blomqvist
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/.
"""
... | jabl/fancyquota | fancyquota.py | Python | gpl-3.0 | 12,344 | [
"VisIt"
] | d0af4d1cb9292f39590f60958bb4cc1bd13ab889520d282dfea158f53bb3c997 |
# # # # # # # # # # # # # # #
# Lucas Maximiliano Marino #
# (c) 2016 MIT License #
# http://lucasmarino.me #
# # # # # # # # # # # # # # #
#
# IMPORTS AND VARIABLES
#
import os
import random
from helpers.magic import magic
basicwin = 0
basiclose = 0
basicrate = 1
awesomewin = 0
awesomelose = 0
awesomerate... | elementh/python-noob-files | betting.py | Python | mit | 7,007 | [
"CASINO"
] | 3b7c743b90aba72746850a279da77607815752ddeca1108635f88af7478c1d75 |
try:
import typing # help IDEs with type-hinting inside docstrings
except ImportError:
pass
import numpy as np
import scipy.stats
import six
from .._base import FitEnsembleBase, FitEnsembleException
from ..tools.ensemble import EnsembleVariable, EnsembleVariablePlotter
from .cost import XYCostFunction_Chi2
fr... | dsavoiu/kafe2 | kafe2/fit/xy/ensemble.py | Python | gpl-3.0 | 29,429 | [
"Gaussian"
] | 6d4be47d257ba61a36864f57e9d1dd385b5bb9cb6a927359c6fdbf84720a024c |
"""Tests for CP2K calculator interface."""
import os
import numpy as np
import pytest
from phonopy.interface.cp2k import read_cp2k
from phonopy.interface.phonopy_yaml import read_cell_yaml
data_dir = os.path.dirname(os.path.abspath(__file__))
CP2K_INPUT_TOOLS_AVAILABLE = True
try:
import cp2k_input_tools # no... | atztogo/phonopy | test/interface/test_CP2K.py | Python | bsd-3-clause | 954 | [
"CP2K",
"phonopy"
] | b5583400ccbf74772278c0aab337adbfc14028ea415c05a5e83afe13ec8a90db |
# -*- coding: utf-8 -*-
""" *==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
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... | zrax/moul-scripts | Python/Garden.py | Python | gpl-3.0 | 3,377 | [
"VisIt"
] | 4c7bd27a52c38cb2819514f826573db46c7bb2365cf981cefeb14baeee0c8ad8 |
#
# QAPI event generator
#
# Copyright (c) 2014 Wenchao Xia
#
# Authors:
# Wenchao Xia <wenchaoqemu@gmail.com>
#
# This work is licensed under the terms of the GNU GPL, version 2.
# See the COPYING file in the top-level directory.
from ordereddict import OrderedDict
from qapi import *
def _generate_event_api_name(ev... | hinesmr/qemu | scripts/qapi-event.py | Python | gpl-2.0 | 7,206 | [
"VisIt"
] | 139125b06523be1cd215d8ebf26c9d619c5dbbf26f3ac7920c4d8b4e4104494d |
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# Author: Pauli Virtanen, 2016
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import math
import operator
from .util import inf, nan, is_na
def compute_stats(sample... | spacetelescope/asv | asv/statistics.py | Python | bsd-3-clause | 15,969 | [
"Gaussian"
] | f050f3d75d46593e6b02f553973f0b7ab54bb853de96d7c1e23b3751988edf61 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2013 Zuza Software Foundation
# Copyright 2012 Leandro Regueiro Iglesias
#
# This file is part of Virtaal.
#
# 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 Fre... | dwaynebailey/virtaal | virtaal/support/tutorial.py | Python | gpl-2.0 | 18,533 | [
"VisIt"
] | e4877f1ccff2ae8f1f9c14f05c9d8755b96737dd42456877a5338e7481ab08b7 |
## This file is part of Invenio.
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 CERN.
##
## Invenio 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... | kaplun/ops | modules/websession/lib/websession_templates.py | Python | gpl-2.0 | 119,663 | [
"VisIt"
] | 02038c608e9fb26943c7a917296c23cc2e5992deec6f930d7a9ba8981dd6389c |
#!/usr/bin/env python
#
# $File: saveCSV.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute it... | BoPeng/simuPOP | docs/saveCSV.py | Python | gpl-2.0 | 1,911 | [
"VisIt"
] | a89c31cf221c47bbab0a24bfc6159aaf101a2a21714adbda9f5bfff3a44ab3c6 |
# -*- coding: utf-8 -*-
# Copyright © 2012-2017 Roberto Alsina and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights t... | andredias/nikola | nikola/__main__.py | Python | mit | 13,802 | [
"VisIt"
] | 60a369460ed875095f2fae5a8dbb4c51bdc7b2fe73b09b9f1b003ae24523d2af |
# 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... | bosstb/HaberPush | youtube_dl/extractor/common.py | Python | mit | 116,657 | [
"VisIt"
] | 9f73901a4ed94e159936a49d52f81ef5b7f26f0d105df61abbd1135a086cc41d |
#!/usr/bin/env python
"""
Script used to create lut lists used by mayavi from matplotlib colormaps.
This requires matlplotlib to be installed and should not be ran by the
user, but only once in a while to synchronize with MPL developpement.
"""
# Authors: Frederic Petit <fredmfp@gmail.com>,
# Gael Varoquaux <g... | liulion/mayavi | scripts/cm2lut.py | Python | bsd-3-clause | 908 | [
"Mayavi"
] | 0574bf84acc882400fa1806f1846f7a40fd2e9eec500fce4138e1deffcba9840 |
"""
Example generation for the scikit learn
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
from __future__ import division, print_function
from time import time
import ast
import os
import re
import shutil
import traceback
i... | rahul-c1/scikit-learn | doc/sphinxext/gen_rst.py | Python | bsd-3-clause | 39,070 | [
"VisIt"
] | ca7b0df76b404817aade6cbd385511f9b109748e7cc6d2c2e96270a90e975fcb |
import pickle
import gzip
import os, sys, errno
import time
import math
import glob
import struct
import copy
from lxml import etree
# numpy & theano imports need to be done in this order (only for some numpy installations, not sure why)
import numpy
# we need to explicitly import this in some cases, not sure why ... | bajibabu/merlin | src/work_in_progress/oliver/dnn_synth_PROJECTION.py | Python | apache-2.0 | 46,492 | [
"Gaussian",
"NEURON"
] | 1422514c9d4c97826c9bf5dca288873836d2e473da9906406ff0c9d0acdfcaaf |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. 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 b... | caioserra/apiAdwords | tests/adspygoogle/adwords/util/__init__.py | Python | apache-2.0 | 10,206 | [
"VisIt"
] | fa9dad56baa3c9d7841ca7e18b492d17f7f29a810f9422325eedbbeec57b31b0 |
"""Reading and writing from KlustaKwik-format files.
Ref: http://klusters.sourceforge.net/UserManual/data-files.html
Supported : Read, Write
Author : Chris Rodgers
TODO:
* When reading, put the Unit into the RCG, RC hierarchy
* When writing, figure out how to get group and cluster if those annotations
weren't set. C... | tkf/neo | neo/io/klustakwikio.py | Python | bsd-3-clause | 18,454 | [
"NEURON"
] | 70edc8e03af0aa7a10a2cdf00d36d8abf02d30c4f3cb861d19d51690d4c1192a |
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""The data layer used during training to train a Fast R-CNN network.
... | herobd/fast-rcnn | lib/roi_data_layer/layer.py | Python | mit | 6,215 | [
"Brian"
] | d0f61d99b044956269d5b09cea5c52e83e09241974fddc327fc98fc8c9466956 |
#
# Copyright 2013 Quantopian, 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 wr... | MonoCloud/zipline | tests/test_perf_tracking.py | Python | apache-2.0 | 79,292 | [
"COLUMBUS"
] | 6a2ce9c0319a652beed6cad034307888799f097dcefa950d1a12831dcfc3271b |
# coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import grpc
from concurrent.futures import ThreadPoolExecutor
from unittest import TestCase
from mock import Mock
from pyqrllib.pyqrllib import bin2hstr, hstr2bin
fro... | cyyber/QRL | tests/daemon/test_walletd.py | Python | mit | 70,398 | [
"Jaguar"
] | d47c123ad3950f2871d801bf39a9ded4d656f1f4d7b98c0355664a17404ae4ce |
#!/usr/bin/env python
from os.path import join
import os
import subprocess
import sys
import shutil
import pysam
import csv
from ruamel import yaml
configFile = sys.argv[1]
fastq1 = sys.argv[2]
fastq2 = sys.argv[3]
sample = sys.argv[4]
with open(configFile, 'r') as stream:
config = yaml.load(stream, Loader=yaml.Loa... | buenrostrolab/proatac | proatac/bin/python/oneProatacSample.py | Python | mit | 8,256 | [
"pysam"
] | 1bace2aa26c11f9543042a390e42ab884dbdf3e241784bc945052da3774bd872 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
ANSIB... | skg-net/ansible | lib/ansible/modules/network/avi/avi_errorpagebody.py | Python | gpl-3.0 | 3,552 | [
"VisIt"
] | a1ba7cf019e07802f5d8da9d0618a1402da8eddbab1cde7f9f1cff8cfe034d0d |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sys import argv as argv
from
""" Draft function to summarize the coverage over a ref in multiple bed files created by Contavect
in a single comprehensive csv file"""
def main ():
"""Find bed files with a common pattern fetch the 2nd row of the first alphabetic... | a-slide/py_NGS_tools | fetch_bam.py | Python | gpl-2.0 | 2,555 | [
"pysam"
] | 85ec97af360c9a4e7374807d874ba53c6d4142ae3a702a0c9b1985dc2690a9a9 |
# -*- coding: utf-8 -*-
"""
This submodule provides routines to generate and analyse "Flux Surfaces" as
described in (Mumford et. al. 2014).
Flux Surfaces are created by the tracing of a closed loop of fieldlines,
from which a surface is reconstructed by creating polygons between the
pesudo parallel streamlines.
"""
i... | SWAT-Sheffield/pysac | pysac/analysis/tube3D/tvtk_tube_functions.py | Python | bsd-2-clause | 15,783 | [
"Mayavi"
] | 05a0371e21636fb18dba53735e8d0b863b59b6787c803ec032be6eaf1c6e75fe |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/plotting/fitting/plotter.py | Python | agpl-3.0 | 7,311 | [
"Galaxy"
] | ac4b68e627120efba566f6f153a85788f86de860ca0377f5f251eab6f538eb88 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 3: Deep Learning and Neural Networks
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2015 by Jeff Heaton
Licensed under the Apache License, V... | jeffheaton/aifh | vol3/vol3-python-examples/examples/example_mnist_relu.py | Python | apache-2.0 | 2,480 | [
"VisIt"
] | d0fdda84dd57a009b5046d702badf3bee22743ac172373b03f5ae8a11d08a5a1 |
from itertools import product
from types import SimpleNamespace
from delb import Document, new_tag_node, register_namespace
from pytest import mark, raises
from inxs import lib, Ref, Rule, Transformation
def test_add_html_classes():
doc = Document("<html><body/></html>")
transformation = Transformation(Rul... | funkyfuture/inxs | tests/test_lib.py | Python | agpl-3.0 | 5,519 | [
"Desmond"
] | 49d1bf52511b35683166e4df5d9ffec01b4e4ba2f9d4628f1073d793f34b6fa9 |
#!/usr/bin/env python
###############################################################################
# #
# view.py #
# ... | JoshDaly/TrackM | trackm/view.py | Python | gpl-3.0 | 72,850 | [
"Biopython"
] | 8c8304ce2354686267481e87eab187cdaeb8c5cc63015828875df3389ca88af6 |
"""Random variable generators.
integers
--------
uniform within range
sequences
---------
pick random element
pick random sample
generate random permutation
distributions on the real line:
------------------------------
uniform
... | Bjay1435/capstone | rootfs/usr/lib/python2.7/random.py | Python | mit | 32,129 | [
"Gaussian"
] | 04a571442a955db8b58fc2239852461699060c3a263245521af5afa83433d41d |
# This application is a Mad Libs game using Lists
libs = ['name', 'age', 'address', 'colour', 'size']
libs[0] = input("Please provide a funny name: ")
libs[1] = input("Please give me an age: ")
libs[2] = input("What's your favourite place? ")
libs[3] = input("And your favourite colour? ")
libs[4] = input("How would y... | geoffmomin/ScratchPad | Python/madLibs.py | Python | gpl-3.0 | 1,072 | [
"Octopus"
] | 6ad2db952cc8070837ed07613f6860cb8f8d01598218d24683abf029d930caf0 |
import tornado.web
import tornado.gen
import json
import time
from tornado.concurrent import run_on_executor
from concurrent.futures import ThreadPoolExecutor
from Handlers.BaseHandler import BaseHandler
from Config.ParametersConfig import MID_THREAD_POOL_SIZE
from Crawler.BnuVJCrawler.BnuVJCrawler import BnuVJCrawl... | CKboss/VirtualJudgePY | Handlers/CrawlerOnlineHandler.py | Python | gpl-2.0 | 2,446 | [
"VisIt"
] | 82de2063a2b8189fbf7aa4d65e5930fd5a23c8004b35b4108ccbaeb853cb8245 |
#!/usr/bin/python
##input 1: anything resembles /Users/metagenomics/Documents/Fan/scratch/parsed_files/clstr_parsed/x701_Asp.clstr.parsed
##input 2: anythong resembles /Users/metagenomics/Documents/Fan/scratch/parsed_files/blast_parsed/x701_Asp_nucl_cdhit.blast.desc.parsed
#########
## see combine_clstr_labst_wrap.sh... | chnops/code | combine_desc_clstr.py | Python | mit | 986 | [
"BLAST"
] | 8c3e185c1369f4b7888f4a801581089c6b6fdc0751344b7d3cd0d2f48a71a010 |
import os
import re
from gtrackcore.core.Config import Config
from gtrackcore.core.DataTypes import getSupportedFileSuffixes
from gtrackcore.metadata.TrackInfo import TrackInfo
from gtrackcore.track.format.TrackFormat import TrackFormat
from gtrackcore.util.CommonFunctions import createDirPath, getClassName, \
... | sveinugu/gtrackcore | gtrackcore/track/hierarchy/ExternalTrackManager.py | Python | gpl-3.0 | 9,278 | [
"Galaxy"
] | 653c190135e27be33c7036c2074f2f98054e8834b3856db0c6e5b91545878ad9 |
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from ...util.linalg import jitchol, DSYR, dtrtrs, dtrtri, pdinv, dpotrs, tdot, symmetrify
from paramz import ObsAr
from . import ExactGaussianInference, VarDTC
from ...util import dia... | befelix/GPy | GPy/inference/latent_function_inference/expectation_propagation.py | Python | bsd-3-clause | 26,981 | [
"Gaussian"
] | 5e13eab081ceef70d27a1e6478b6abfc7789c96787f72b862817895c2be39c3b |
from rpy import r, set_default_mode, NO_CONVERSION, PROC_CONVERSION
import numpy as N
from scipy.interpolate import interp1d
from scipy.ndimage import gaussian_filter1d
from ppgplot_spb import *
import gaussian
set_default_mode(PROC_CONVERSION)
def bootdensity(data, min, max, nboot, ci):
""" Calculate density a... | bamford/astrobamf | bootdensity.py | Python | mit | 2,375 | [
"Gaussian"
] | 568a00ce76579c765d59f07082ee937dc2824b4424047ba295270981ee22e071 |
## This file is part of Invenio.
## Copyright (C) 2008, 2009, 2010, 2011, 2012 CERN.
##
## Invenio 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) any ... | cul-it/Invenio | modules/miscutil/lib/dbquery.py | Python | gpl-2.0 | 16,271 | [
"BLAST"
] | afbc94a661a8b8fb66b514fa277e6fb9be4a30cc5834c7af53aedac54b5209e0 |
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | googlecodelabs/migrate-python2-appengine | mod7b-gaetasks/main.py | Python | apache-2.0 | 2,432 | [
"VisIt"
] | 693e02e11ba19ff7839551acf2b0fab14d52807fcc4ceab6a95b80035efc5521 |
#
# https://github.com/ajjackson/ase-tutorial-symmetry/blob/master/ase-symmetry.md#bravais-lattices
#
import ase.lattice
ag_lattice = ase.lattice.FCC(a=4.09) # Face-centered cubic
print("Made a lattice for Ag: ", type(ag_lattice))
assert isinstance(ag_lattice, ase.lattice.BravaisLattice)
from ase import Atoms
ag_ce... | miroi/open-collection | theoretical_chemistry/software_runs/ase/runs/ase-symmetry/silver.py | Python | mit | 460 | [
"ASE"
] | d5734c51771a73bbb074e0cf57e5dd4aa3599a8779897529c34a1ab28f566de5 |
'''
Useful for:
* users learning xarray
* building tutorials in the documentation.
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import hashlib
import os as _os
from .backends.api import open_dataset as _open_dataset
from .core.pycompat import urlr... | jhamman/xray | xarray/tutorial.py | Python | apache-2.0 | 2,524 | [
"NetCDF"
] | 4ab75fde45f00f7c752463ee2f4b5b1238f6025276694fdace1f2ac6b598cdd9 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | xsm110/Apache-Beam | sdks/python/apache_beam/transforms/ptransform.py | Python | apache-2.0 | 24,229 | [
"VisIt"
] | ec38d79ec905636a8ba202b5f7747bec1cbe2fb05fc7767e94efd865106959f6 |
#! /usr/bin/env python
# -*- coding: utf8 -*-
# Copyright © 2010 Abhishek Tiwari (abhishek@abhishek-tiwari.com)
#
# This file is part of BioJSONUtils.
#
# Files included in this package BioJSONUtils are copyrighted freeware
# distributed under the terms and conditions as specified in file LICENSE.
try:
from setupto... | abhishektiwari/BioJSONUtils | setup.py | Python | mit | 832 | [
"Biopython"
] | 50c7987164a7807e2daf3367ad2e41c919ff46aa68404966b2567fc68b91d180 |
input1 = self.GetInputDataObject(0, 0)
input2 = self.GetInputDataObject(0, 1)
output = self.GetOutputDataObject(0)
newPoints = vtk.vtkPoints()
newcells = vtk.vtkCellArray()
P=input1.GetPointData()
B=input2.GetPointData()
BODIES=input1.GetNumberOfPoints()
EDGES=input2.GetNumberOfPoints()
SURFACES=input2.GetNumberOfCel... | richti83/ParaView_Reader_for_LIGGGHTS | reader_src/rigid_reader/quat_tranformation.py | Python | gpl-2.0 | 1,316 | [
"VTK"
] | c903cad8d69d61b2cb7b5f1864ba8dadf4c7b1f158d2dbdf1b94d5338ec850e5 |
# -*- coding: utf-8 -*-
"""
Regression tests for the Test Client, especially the customized assertions.
"""
from __future__ import unicode_literals
import datetime
import itertools
import os
from django.contrib.auth.models import User
from django.contrib.auth.signals import user_logged_in, user_logged_out
from django... | jylaxp/django | tests/test_client_regress/tests.py | Python | bsd-3-clause | 68,216 | [
"VisIt"
] | 78af25f840dd03f26054f5e7d84ea53adf23012cbf88595597c888085f1a8c3b |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | krafczyk/spack | var/spack/repos/builtin/packages/r-a4reporting/package.py | Python | lgpl-2.1 | 1,715 | [
"Bioconductor"
] | 2f5194e364cd02fd004c020b684cd52ef8ce6a75cc1516338ab63294b444b152 |
# Sample module in the public domain. Feel free to use this as a template
# for your modules (and you can remove this header and take complete credit
# and liability)
#
# Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is f... | esaunders/autopsy | pythonExamples/Aug2015DataSourceTutorial/RunExe.py | Python | apache-2.0 | 7,492 | [
"Brian"
] | 82bbc1ec02b2073de27624e08c5e8534997c32fc7ca4612f444339d7d5615a24 |
#
# Copyright (c) 2003-2006 Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
""" utility functionality for molecular simila... | greglandrum/rdkit | rdkit/Chem/Fingerprints/MolSimilarity.py | Python | bsd-3-clause | 10,299 | [
"RDKit"
] | 271b95c5d20b4b7548e3bbd5b5bd1e099e4b47875ddbb2da69bb6b81b74a7b33 |
#!/usr/bin/env python3
## INFO ########################################################################
## ##
## cutils ##
## ====== ... | matt-hayden/cutils | pycutils/cutils/cver.py | Python | gpl-3.0 | 4,689 | [
"VisIt"
] | 1924212d45e08bdd4564f7c816cdd68599993bf28a8c2e288c877d27a7224e25 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/media/mediaplugin.py | Python | gpl-2.0 | 6,832 | [
"Brian"
] | 26152f5c3ca51dc7cbb6e0c373859f8ac851af031fc9ffd20dee88ec1465cff6 |
#!/usr/bin/env python
from __future__ import print_function
import sys
import os
import re
import math
import json
import numpy as np
import subprocess
from optparse import OptionParser
# These kernels have guaranteed correct Jacobians
whitelisted_kernels = ['Diffusion', 'TimeDerivative']
# regular expressions to ... | Chuban/moose | python/jacobiandebug/analyzejacobian.py | Python | lgpl-2.1 | 15,308 | [
"MOOSE"
] | 73f8589d4f38d300aa0637648ca4544c1234b8eeb25d34a77d3e7874ef2084c3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# adminvgrid - administrate a vgrid
# Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... | heromod/migrid | mig/shared/functionality/adminvgrid.py | Python | gpl-2.0 | 14,700 | [
"Brian"
] | cb0e8791fb093092370b59ca4daccef2ed10675a0f0ce8dd792e853ee5cedd3e |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Use Mayavi to visualize the structure of a VolumeGrid
"""
from enthought.mayavi import mlab
import numpy as np
from enthought.tvtk.api import tvtk
dims = (4, 4, 4)
x, y, z = np.mgrid[0.:dims[0], 0:di... | bthirion/nipy | doc/labs/datasets/viz_volume_grid.py | Python | bsd-3-clause | 1,014 | [
"Mayavi"
] | 63529e6e80a7686e46a419568a923dd842f7bce9058f37aaaf8979b3fa44e170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.