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 math
import re # Used to fix SVG exporting
from PyQt4 import QtCore, QtGui, QtSvg
import qt4_circular_render as crender
import qt4_rect_render as rrender
from main import _leaf, NodeStyle, _FaceAreas, tracktime, TreeStyle
from node_gui_actions import _NodeActions as _ActionDelegator
from qt4_face_render impor... | khughitt/ete | ete_dev/treeview/qt4_render.py | Python | gpl-3.0 | 43,041 | [
"VisIt"
] | 004b9cf4a66956dc1a16c550d058b87034a670a4a76c57fa639837dac74b363f |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software F... | andrebellafronte/stoq | stoqlib/lib/algorithms.py | Python | gpl-2.0 | 3,943 | [
"VisIt"
] | dbfbea46761ef75a42a6a40cd67c144c73f5de1437ad69e7856ba70b879d6272 |
from setuptools import setup
setup(
name='mixemt',
version='0.1',
description='A tool for the phylogenetic interpretation of '
'human mtDNA sequence mixtures',
url='http://github.com/svohr/mixemt',
author='Samuel H. Vohr',
author_email='svohr@soe.ucsc.edu',
license='MIT',
... | svohr/mixemt | setup.py | Python | mit | 793 | [
"Biopython",
"pysam"
] | c5b49b85ec4620a72a743b6f635f78d5a7c052992af45f5e235c85095eb6017f |
import pynacolada as pcd
import numpy as np
import datetime as dt
from Scientific.IO import NetCDF
csvfile = open('data/example.csv', 'r')
ncfile = NetCDF.NetCDFFile('data/example.nc','w')
pcd.csv2netcdf(csvfile,ncfile,sep=',',formatlist=[[dt.datetime,'%m/%d/%Y %H:%M']]+[[np.double,np.nan]]*15,refdat=dt.datetime(2009... | hendrikwout/pynacolada | old/examples/examplecsv2netcdf.py | Python | gpl-3.0 | 396 | [
"NetCDF"
] | d048fc080615d628b035cb56e6e507ea8151fd67b1d2c03ae51404fcd4c3ae98 |
# Copyright (c) 2020 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 app... | PaddlePaddle/Paddle | python/paddle/nn/functional/common.py | Python | apache-2.0 | 84,349 | [
"NEURON"
] | 278956b7aff2d285cd6d8f167622e114983d70a03e013d70ee0258e3a7630796 |
from numpy import *
from asap3 import *
from ase.lattice.cubic import FaceCenteredCubic
from ase import data
from asap3.testtools import *
import time
#random.seed([114173, 98658])
listcutoff = 4.98409 # The EMT value for Cu
element = "Cu"
latconst = data.reference_states[data.atomic_numbers[element]]['a']
def che... | auag92/n2dm | Asap-3.8.4/Test/MonteCarloOptim_NbList.py | Python | mit | 5,094 | [
"ASE"
] | 67ada440834adfbc99f2abc1ffac6846b797501c9adb583267624624648c1b24 |
# Copyright 2017 Codas Lab
#
# 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, softwa... | CoDaS-Lab/image_analysis | image_analysis/pipeline/orientation_filter.py | Python | apache-2.0 | 10,671 | [
"Bowtie"
] | f5f1fee6c9f0e07c1cb85fa4365c61b628540dd66fbaabd5455a8cfb4edc15b2 |
# coding: utf-8
# Copyright(c) Henniggroup.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
"""
General module:
This module contains several classes central to the algorithm.
1. IDGenerator: generates consecutive integer ID numbers for organisms
2... | henniggroup/GASP-python | gasp/general.py | Python | mit | 34,509 | [
"pymatgen"
] | 80f6500cb59a94aa6798885ff5c97828c1032ce4885952e89f3f47b2aff0743c |
# coding: utf-8
# Copyright (c) Henniggroup.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals, \
absolute_import
from six.moves import range
from argparse import ArgumentParser
import argcomplete
def mpint_parse_arguments(args):
m_description... | joshgabriel/MPInterfaces | mpinterfaces/mpint_parser.py | Python | mit | 4,800 | [
"VASP"
] | baa193389adf1db1feeb20691077b7e4ed75cc4ae8635262592427edf9b8bbe5 |
#!/user/bin/env python
# use this script to find the mode of a peak.
# Input: peak file, read file and format(bed,bam,sam)
# Output: peak file with additional column denoting the peak_mode
### usage: python find_peak_mode.py Peaks_file read_file file_format fragment_size
# Created By Yanxiao Zhang, 5/19/2016
#########... | shawnzhangyx/PePr | PePr/utilities/find_peak_mode.py | Python | gpl-3.0 | 5,886 | [
"pysam"
] | 18ad83f7062d7e989aac4df164f68dbf1932cf8900f629b9e3fcb7f2444e8377 |
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | decvalts/iris | lib/iris/tests/stock.py | Python | gpl-3.0 | 22,553 | [
"NetCDF"
] | 62b5022a27e1c52717bae41d4915d6f208519e38a1a1f297da0809782c5d937a |
from astropy.cosmology import FlatLambdaCDM
import fitsio
import numpy as np
import sys
def get_derived_quantities(template_path, coeff, z):
"""
Given a path to a kcorrect template file, as well as
kcorrect coefficients for a set of galaxies and return derived
quantities
inputs
------
template_path ... | cosmodesi/snsurvey | src/buzzard_stellar_mass.py | Python | bsd-3-clause | 2,058 | [
"Galaxy"
] | 3a5b6fc8e399c0cce88f1e4cbb6708415573582b2b501574a9226edc923d35d4 |
# Simple Test for pvbatch.
from paraview import smtesting
import paraview
paraview.compatibility.major = 3
paraview.compatibility.minor = 4
from paraview import servermanager
import sys
smtesting.ProcessCommandLineArguments()
servermanager.Connect()
sphere = servermanager.sources.SphereSource()
view = servermana... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/Simple.py | Python | gpl-3.0 | 1,028 | [
"ParaView"
] | 5583f6b19c2645065474bd5fbee002e5e78cb8db1fccf63d6a00d691d6b92161 |
import logging
from logging.config import fileConfig
import os
import functools
import time
import sys
from six.moves import configparser
try:
import yaml
except ImportError:
yaml = None
try:
from daemonize import Daemonize
except ImportError:
Daemonize = None
# Vaguely Python 2.6 compatibile Argume... | jmchilton/pulsar | pulsar/main.py | Python | apache-2.0 | 9,279 | [
"Galaxy"
] | 9a3d3693eaf870cd2d4be48b99b8fadd66f5821fc8f75fc3acbd4a2d082fd6d5 |
import sys
class Node(object):
def children(self):
""" A sequence of all children that are Nodes
"""
pass
def show(self, buf=sys.stdout, offset=0, _my_node_name=None):
""" Pretty print the Node and all its attributes and
children (recursively) to a buffer.
... | dikujepsen/OpenTran | v3.0/framework/lan/lan_ast.py | Python | mit | 14,720 | [
"VisIt"
] | 44ea62255b8e384ac9f3ec5d61305291335bb5b97e95232074267be6d490727c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rasterio
import click
from copy import copy
import itertools
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import numpy as np
import numpy.ma as ma
import os
import pandas as pd
from pylru import lrudecorator
from rasterio.plot import show
impor... | ricardog/raster-project | ssp-plots.py | Python | apache-2.0 | 4,321 | [
"NetCDF"
] | 6675f65c20e38a7f0149fe5ddeb4059bd8110b8794fe21de19eb425b7ce2985e |
#/*##########################################################################
# Copyright (C) 2004-2012 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
#
# This toolkit is free software; you can redistribute it and/or m... | tonnrueter/pymca_devel | PyMca/SimpleFitUserEstimatedFunctions.py | Python | gpl-2.0 | 4,873 | [
"Gaussian"
] | bd212e45814c5cc771ab9e1fe2ccc02ecc1b3b9739957893946c83bbef5054cb |
# Copyright 2021 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
from typing import Dict, Optional, Sequence, Set, Tuple, List, Union
import ast
import inspect
import... | google/iree | llvm-external-projects/iree-dialects/python/iree/compiler/dialects/iree_pydm/importer/importer.py | Python | apache-2.0 | 30,892 | [
"VisIt"
] | ac2d6a753074d09f4f6f3a7c3bc01df595f494434317fdbbec52834fdc5cff4f |
"""
An example of creating a parameterized assembly and using variables to make the
Scad output file more readable.
"""
import sys, os
from py2scad import *
# Setup the path to the Scad executable
scad = '' # Default to False
if sys.platform == 'darwin':
scad = "/Applications/OpenSCAD.app/Contents/MacOS/... | acrobotic/py2scad | examples/assembly_with_variables.py | Python | apache-2.0 | 3,796 | [
"NAMD"
] | 02be571378607601bc7767a1de088e8bd190ffa1da523603b94e25988d0746d6 |
# This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2013 Jan Decaluwe
#
# The myhdl library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License as
# published by t... | hgomersall/myhdl | myhdl/conversion/_analyze.py | Python | lgpl-2.1 | 46,852 | [
"VisIt"
] | 6898ca1052c9e71c07d1bc07e7666b92c205746a9e5895eb83373488cc1a4e39 |
# -*- coding: utf-8 -*-
#
# intrinsic_currents_subthreshold.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 ... | tobikausk/nest-simulator | pynest/examples/intrinsic_currents_subthreshold.py | Python | gpl-2.0 | 7,182 | [
"NEURON"
] | 0451f05495a0c7075f1973b27c6a6932e46ade2aa4ee5951b9185704d88d962d |
# Copyright (C) 2018 Henrique Pereira Coutada Miranda
# All rights reserved.
#
# This file is part of yambopy
#
import os
import re
from collections import defaultdict
import numpy as np
from netCDF4 import Dataset
from .yambofile import YamboFile
from yambopy import YamboIn
from yambopy.tools.jsonencoder import Json... | alexmoratalla/yambopy | yambopy/io/outputfile.py | Python | bsd-3-clause | 7,142 | [
"NetCDF",
"Yambo"
] | 433a662d0214a1086a961d5f1182d82b4344c2f82b5f94e759db76ef0a9eba7f |
# !/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Filename: caching.py
# Project: db
# Author: Brian Cherinka
# Created: Friday, 24th January 2020 2:47:54 pm
# License: BSD 3-clause "New" or "Revised" License
# Copyright (c) 2020 Brian Cherinka
# Last Modified: Monday, 27th January 2020 6:36:07 pm
# Modified By: Brian... | sdss/marvin | python/marvin/db/caching.py | Python | bsd-3-clause | 4,161 | [
"Brian"
] | c87dc72775996a432c1342712b7bfcffa92a4843258e2baa87b1fd5553a5284f |
# game_incremental.py
import os
import sys
import time
import random
root_folder = os.path.abspath(os.path.dirname(os.path.abspath(__file__)) + os.sep + "..")
sys.path.append(root_folder)
#import character
ref_folder = root_folder + os.sep + "data"
my_char = {"name":"player1", "energy":100, "max_energy":100,"gold... | acutesoftware/virtual-AI-simulator | vais/examples/game_incremental.py | Python | mit | 7,918 | [
"TINKER"
] | c62584294a2d26aba53e74b84ee317bad86799b716b1b3b95a06f0890bb457d4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
########### Attension
# [n] means n-dimension array
# [m x n] means (m x n)-dimension array
# no [] means 1-dimension data
import random as rand
import numpy as np
import numpy.linalg as nplnlg
import neuro_function as nf
class NeuroElement:
def __init__(self) : ... | WaterIsland/DLStudy | mln/BR/Mln.py | Python | mit | 14,312 | [
"NEURON"
] | 03bab62a1500438c1a1cb7e1e99725a560aa9c3a942718465ee1c977d35fab95 |
"""
Coverage datatypes
"""
import logging
import math
from galaxy import eggs
from galaxy.datatypes import metadata
from galaxy.datatypes.metadata import MetadataElement
from galaxy.datatypes.tabular import Tabular
log = logging.getLogger(__name__)
class LastzCoverage( Tabular ):
file_ext = "coverage"
Met... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/datatypes/coverage.py | Python | gpl-3.0 | 2,228 | [
"Galaxy"
] | 66619a1b7ca18fe19cd38c9e8abc3c24327447f2eea6888c1707e3600a578e4e |
"""
This module implements the functionality to take any Python expression as a
string and fix all numbers and other things before evaluating it,
thus
1/2
returns
Integer(1)/Integer(2)
We use the Python ast module for that, which is in python2.6 and later. It is
well documented at docs.python.org.
Some tips to und... | ryanGT/sympy | sympy/core/ast_parser.py | Python | bsd-3-clause | 3,503 | [
"VisIt"
] | f93fa4a10757ced11edae36018b34999d1f6e8b6d863d4e34ac324a640a49215 |
"""
Instructor Dashboard Views
"""
import datetime
import logging
import uuid
import pytz
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import Http404, HttpResponseServerError
from django.utils.html import escap... | miptliot/edx-platform | lms/djangoapps/instructor/views/instructor_dashboard.py | Python | agpl-3.0 | 36,778 | [
"VisIt"
] | 1dca097d019c724bca26026ef3fbaf197c32a024eb929eacde03c3da63462ed0 |
#!/usr/bin/env python
# coding: utf-8
# # Linear Algebra, Handling of Arrays and more Python Features
#
# ## Introduction
#
# The aim of this set of lectures is to review some central linear algebra algorithms that we will need in our
# data analysis part and in the construction of Machine Learning algorithms (ML).... | CompPhysics/MachineLearning | doc/LectureNotes/_build/jupyter_execute/linalg.py | Python | cc0-1.0 | 30,499 | [
"Gaussian"
] | b8bf9e69ccc4753006c8732cb76a3e4cea6d6bf7f624d75e7cddb6edce1e21a9 |
# -*- coding: utf-8 -*-
# rc19.py ---
#
# Filename: rc19.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Sat May 24 14:10:22 2014 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# This program is... | upibhalla/moose-core | tests/python/mus/rc19.py | Python | gpl-3.0 | 8,737 | [
"MOOSE",
"NEURON"
] | f2416d77d86ec75fd7a7086b49613466ba37e88c7cb4276f0272781e9640e50f |
#
# 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... | dbtsai/spark | python/pyspark/mllib/clustering.py | Python | apache-2.0 | 36,712 | [
"Gaussian"
] | 585b6af6f4672317e51a05b3150795405bd4eecd3bc5e74d602315203bf6f9dd |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2017 The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this s... | jasperges/blenderseed | __init__.py | Python | mit | 2,505 | [
"VisIt"
] | 8b6ccda9b7f650f22e375ebbad808dd7f2e8df7ee5c5143794cc4a5feed5a8e1 |
#!/usr/bin/env python
__author__ = "waroquiers"
import json
import os
import shutil
import unittest
import numpy as np
from pymatgen.analysis.chemenv.coordination_environments.chemenv_strategies import (
AngleNbSetWeight,
CNBiasNbSetWeight,
DeltaCSMNbSetWeight,
DistanceAngleAreaNbSetWeight,
Mul... | vorwerkc/pymatgen | pymatgen/analysis/chemenv/coordination_environments/tests/test_read_write.py | Python | mit | 11,050 | [
"pymatgen"
] | 8f5f956fa2c77d749cdc8591eab4ba74d45aed332a1ebb86d646fe4ffcc07e06 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Module for Latent Semantic Analysis (aka Latent Semantic Indexing) in Python.
Implements fast truncated SVD (Singular Value Decomp... | summanlp/gensim | gensim/models/lsimodel.py | Python | lgpl-2.1 | 35,212 | [
"Gaussian"
] | d8eaf8c8bf1ea8225798bc0a65194f28b2b60aabeb9eacbbbd0eb4d95a34d5f7 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | kain88-de/mdanalysis | package/MDAnalysis/topology/_elements.py | Python | gpl-2.0 | 2,728 | [
"MDAnalysis"
] | 05850d45962c4c75e797b5b128049a6024bad26598084e2037f9cfdfbefacd30 |
# Help
# Output a help topic.
# License {{{1
# Copyright (C) 2016-2022 Kenneth S. Kundert
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) ... | KenKundert/avendesora | avendesora/help.py | Python | gpl-3.0 | 83,307 | [
"VisIt"
] | b75effd4e9c685ba5aa85f3733d768347fd84c8d44d2f0f17e8dbb4f4b76326c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vtk
def main():
colors = vtk.vtkNamedColors()
# Create a pentagon
polygonSource = vtk.vtkRegularPolygonSource()
polygonSource.SetNumberOfSides(5)
polygonSource.SetRadius(5)
polygonSource.SetCenter(0, 0, 0)
shrink = vtk.vtkShrinkPolyDa... | lorensen/VTKExamples | src/Python/GeometricObjects/RegularPolygonSource.py | Python | apache-2.0 | 1,300 | [
"VTK"
] | b27e72143c922b2c65bd408d2c440fc279c23535d94bcbb3e8d4115194a47f55 |
import librosa
from numpy import log10, arange, hanning, log, correlate, max, mean, maximum, inf
from scipy.signal import gaussian, argrelmax
from ..functions import BaseAnalysisFunction
def find_best_path(candidate_matrix, num_candidates, voice_change_cost, octave_jump_cost):
def transition_cost(f1, f2):
... | mmcauliffe/python-acoustic-similarity | conch/analysis/pitch/autocorrelation.py | Python | mit | 6,346 | [
"Gaussian"
] | c7f2d38c91f44c9b7ade613b723533bea1fb862ce028621a42fe895275a579b7 |
import numpy as np
def nearest_value(value, array):
"""Returns the nearest value in vals.
Parameters
----------
value : float
The value we want to get as near as possible.
array : array_like
The array containing the available values to get near the value.
Returns
... | EMVA1288/emva1288 | emva1288/camera/routines.py | Python | gpl-3.0 | 8,783 | [
"Gaussian"
] | c7a3d2df81e79a6714723a646520b824bb951829cf4d18a18f73157fc3271320 |
#!/usr/bin/env python3
########################################################################
# Solves problem 106 from projectEuler.net.
# Determines how many subset pairs that can be obtained need to be
# tested for equality with n = 12.
# Copyright (C) 2011 Santiago Alessandri
#
# This program is free... | sanSS/programming-contests | project-euler/problem106.py | Python | gpl-3.0 | 1,808 | [
"VisIt"
] | 1c85119061961a8fc1f04a0a582f4dd760fe63f256a802432dbb81178d5c9d0a |
## INFO ########################################################################
## ##
## cutils ##
## ====== ... | matt-hayden/cutils | pycutils/cutils/cres.py | Python | gpl-3.0 | 5,975 | [
"VisIt"
] | baeeffd7ace7f3a7d6f8b84849dd2beb9aae1b6c3385c85f9e73a38bb208db11 |
#!/usr/bin/env python3
"""
Copyright 2017 Ryan Wick (rrwick@gmail.com)
https://github.com/rrwick/Unicycler
This module controls Unicycler's semi-global long read alignment. Semi-global alignment does not
penalise end gaps, but the alignment will continue until one of the two sequences ends. This
includes cases where t... | rrwick/Unicycler | unicycler/unicycler_align.py | Python | gpl-3.0 | 23,579 | [
"BWA"
] | d9a218da874742b2e94780c8e578fb8a4637fc3f8ed190c259ee254a5e6d9c7a |
##############################################################################
# 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/ncview/package.py | Python | lgpl-2.1 | 1,853 | [
"NetCDF"
] | fc0dfef6244a71de719f90891c2d38a1db49232e241d09f8975303ee35c1d790 |
"""
Detector widgets
"""
# Standard library modules.
from operator import methodcaller
# Third party modules.
from qtpy.QtWidgets import QComboBox, QToolBar, QMessageBox, QTableView, QItemDelegate
from qtpy.QtCore import Qt, QAbstractTableModel, QModelIndex
# Local modules.
from pyhmsa_gui.util.parameter import (
... | pyhmsa/pyhmsa-gui | pyhmsa_gui/spec/condition/detector.py | Python | mit | 32,088 | [
"CRYSTAL"
] | 56a5ff4be2bfa31fbcb88eca6b67d7b21e1150d7ca5dee4e5155aead18627da9 |
"""
DIRAC.TornadosServices
"""
| DIRACGrid/DIRAC | src/DIRAC/Core/Tornado/__init__.py | Python | gpl-3.0 | 31 | [
"DIRAC"
] | 70eef3fa1d65544bbb4513d8798dc164b26ef85647f69ec6beeba4c3566070c1 |
"""
Espresso
~~~~~~~~~~~~~~~~~~~
Ratchet Robotics's custom Slack bot
Written from scratch, too!
:copyright: (c) 2015 by Liam Marshall
:license: BSD, see LICENSE for more details.
""" | ratchetrobotics/espresso | espresso/__init__.py | Python | bsd-3-clause | 206 | [
"ESPResSo"
] | fbe40698c965a969892f9ee7ba526c6f202531357dc7139ebe67fff3bcd40829 |
#* 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 os, ... | harterj/moose | python/TestHarness/testers/AnalyzeJacobian.py | Python | lgpl-2.1 | 3,150 | [
"MOOSE"
] | ded89dcfa1981b0073f35a77afaf8ff31591fe98ca610e9bc9ebd8ee1bf9b558 |
#! /usr/bin/env python
#
# Copyright (C) 2011, 2012, 2014, 2015 David Maxwell and Constantine Khroulev
#
# This file is part of PISM.
#
# PISM 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 o... | talbrecht/pism_pik07 | examples/python/sia_forward.py | Python | gpl-3.0 | 3,970 | [
"NetCDF"
] | c0902fb39ae2593d5700429382412cdbb7430c0c290fc0f319948cebdf1ba8e8 |
# ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | WCCCEDU/twitter-commons | src/python/twitter/common/dirutil/chroot.py | Python | apache-2.0 | 6,425 | [
"Brian"
] | d4130e11880f8aa125bb70b0b7ce23e366619abb1af5bad3a823607a9433f95a |
# This file is generated from pydcs_export.lua
from dcs.country import Country
import dcs.vehicles as vehicles
import dcs.planes as planes
import dcs.helicopters as helicopters
import dcs.ships as ships
class Russia(Country):
id = 0
name = "Russia"
class Vehicle:
class Artillery:
_2... | pydcs/dcs | dcs/countries.py | Python | lgpl-3.0 | 987,023 | [
"Firefly",
"Jaguar"
] | eda6ffd44e27bcc7484676f371aeefe99c5d3a3277b018a54fa9252183d20e26 |
# -*- coding: utf-8 -*-
import sys, os, random
if 'QT_API' in os.environ:
if os.environ['QT_API'] != 'pyqt':
saveQTAPI = os.environ['QT_API']
os.environ['QT_API'] = 'pyqt'
else:
saveQTAPI = ''
os.environ['QT_API'] = 'pyqt'
try:
from mayavi.sources.vtk_data_source import VTKDataSource
... | buguen/pylayers | pylayers/gui/editor.py | Python | lgpl-3.0 | 51,168 | [
"Mayavi"
] | 9a76a9f5c2b905478a9b9332725e36090a65ceb4d7d0f2cdd5fdb1586d7b2bca |
import optparse
import os
import json
from collections import OrderedDict
def parse_db_address(cfg):
db_address = os.getenv('SPEARMINT_DB_ADDRESS')
if db_address is None:
if 'database' in cfg and 'address' in cfg['database']:
db_address = cfg['database']['address']
else:
... | wangkua1/sportvu | scripts/test_optparse.py | Python | mit | 1,765 | [
"Gaussian"
] | 179b88754b3cfd196ff6ef46088119e42be19e78cb48c8963a07bd34f9f4948c |
"""
Module with classes and methods to perform kriging of elements (and at some point exploit the potential field to
choose the directions of the variograms)
Tested on Ubuntu 16
Created on 1/5/2017
@author: Miguel de la Varga
"""
import theano
import theano.tensor as T
import matplotlib.pyplot as plt
import pymc3 a... | nre-aachen/GeMpy | gempy/coKriging.py | Python | mit | 40,120 | [
"Gaussian"
] | 190c592adffe07ccac39ff10be2988ebd0b6c0b27a13919a086b2bf910db62c9 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | evanccnyc/ansible-modules-core | windows/win_lineinfile.py | Python | gpl-3.0 | 6,373 | [
"Brian"
] | df5d77ebf4fe5000e3ed45a762dfa9494d6af2f9b90a796ef992624240c461c2 |
#* 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
def print_e... | harterj/moose | python/peacock/CheckRequirements.py | Python | lgpl-2.1 | 3,435 | [
"MOOSE",
"VTK"
] | 5508215c89dca49f7032bd37c6bd9e392b019f367675d8cc7acf8f8f30d719f2 |
import ast
from fractions import Fraction
from artiq.language import core as core_language
from artiq.language import units
embeddable_funcs = (
core_language.delay_mu, core_language.at_mu, core_language.now_mu,
core_language.delay,
core_language.seconds_to_mu, core_language.mu_to_seconds,
core_langu... | kgilmo/penning_artiq | artiq/transforms/tools.py | Python | gpl-3.0 | 4,176 | [
"VisIt"
] | 14b40f9a9dcf70c58304b14684e3124a017a074757ae0e3652f4a9ab12b9d30c |
"""
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
"""
__revision__ = "$Revision: 739 $"
import random
import numpy
from calculationmethod import Method
def func(x):
if x==1:
return 1
else:
return x+f... | faribas/RMG-Py | external/cclib/method/opa.py | Python | mit | 4,545 | [
"cclib"
] | 38e29a4c89f9615d6152c86648b67b1f0a8a38893e7df561adc0a8d7fd498ec2 |
# -*- coding: utf-8 -*-
#
# gif_pop_psc_exp.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... | lekshmideepu/nest-simulator | pynest/examples/gif_pop_psc_exp.py | Python | gpl-2.0 | 14,369 | [
"NEURON"
] | 83a92b4ca14408ce2c86775eacebcf130cae99b3237f6bf66524849fc4f9bd38 |
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 29 14:52:59 2016.
Crude implementation of the proposal by:
Panagiotis C. Petrantonakis and Panayiota Poirazi, 2015
For this to work you'll need to have installed all necesary python
libraries, look at the import statements and change the paths in the functions
@auth... | maurotoro/spikeSorting | Poirazi.py | Python | gpl-3.0 | 7,700 | [
"Gaussian"
] | 0d87105f1610992144fc824154c6d5bda618af7cc0b9fbba6ea85a5f7978aa76 |
# Orca
#
# Copyright 2009-2010 Sun Microsystems Inc.
# Copyright 2010 Joanmarie Diggs
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your op... | Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/pyshared/orca/scripts/apps/packagemanager/script.py | Python | gpl-3.0 | 23,632 | [
"ORCA"
] | 92e36db74ead130d040acc7e33fe3c8f109f76c14ec587030724b806f8aec7e3 |
#!/usr/bin/env python3
"""
Generate gdal VRTs of netcdfs that can be viewed as RGB/etc in QGIS.
"""
import sys
from glob import glob
import subprocess
from tqdm import tqdm
from pathlib import Path
import xarray as xr
import concurrent.futures
COLOURS = 'blue green red nir swir1 swir2'.split()
LS8_COLOURS = ['coasta... | omad/damootils | scripts/netcdf_overviews.py | Python | apache-2.0 | 2,622 | [
"NetCDF"
] | ab70127426a8f733655d971d0511a873076b3993e0815a2ad0a1015cf211cae9 |
"""
This is only meant to add docs to objects defined in C-extension modules.
The purpose is to allow easier editing of the docstrings without
requiring a re-compile.
NOTE: Many of the methods of ndarray have corresponding functions.
If you update these docstrings, please keep also the ones in
core/fromnum... | megies/numpy | numpy/add_newdocs.py | Python | bsd-3-clause | 218,790 | [
"Brian"
] | f9316804ce426b6364cdacab39068c3341244271ab4bc7a6f089356f0dde5a4d |
"""Get useful information from live Python objects.
This module encapsulates the interface provided by the internal special
attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion.
It also provides some help for examining source code and class layout.
Here are some of the useful functions provided by this m... | prefetchnta/questlab | bin/x64bin/python/36/Lib/inspect.py | Python | lgpl-2.1 | 120,085 | [
"VisIt"
] | 61bb44367345deb7f3da4239c132bb82aff3cc5cc4744ef0bf032d1aa797df0f |
# 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... | yajiedesign/mxnet | example/distributed_training-horovod/gluon_mnist.py | Python | apache-2.0 | 6,479 | [
"Gaussian"
] | cfc074ddd805df3677c98b3dcb48be4ff75a6aba9072a773908f10223b10169e |
#
# Copyright (c) 2010 Brian E. Granger
#
# This file is part of pyzmq.
#
# pyzmq is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option)... | takluyver/pyzmq | zmq/tests/test_context.py | Python | lgpl-3.0 | 1,671 | [
"Brian"
] | bb8aa2bef59aa01babb157cdbedc4c0d1d42ca108d5fdf6c6565539528866b81 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | Stackdriver/heapster | vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py | Python | apache-2.0 | 55,854 | [
"CDK"
] | 486f9fd644859f7b644b7de0bd3e8516c977d15d12389b3466bd0851d89ff5fc |
"""
Export a geological model from GemPy to use in MOOSE
====================================================
"""
# %%
import gempy as gp
# %%
# Creating a geological model
# ---------------------------
#
# The procedure of generating a geological model is presented in detail in
# `Chapter
# 1-1 <https://nbviewer.j... | cgre-aachen/gempy | examples/integrations/gempy_export_MOOSE.py | Python | lgpl-3.0 | 6,174 | [
"MOOSE",
"ParaView"
] | 0a665713f80c30f9e2332d058d6eb828d6d853c2446250d3d5b590444667facb |
#!/usr/local/bin/env python
#=============================================================================================
# MODULE DOCSTRING
#=============================================================================================
"""
Print available OpenMM platforms.
"""
#====================================... | luirink/yank | Yank/commands/platforms.py | Python | lgpl-3.0 | 986 | [
"OpenMM"
] | 5ec0fed8f51da5f6cbe438842224aa4061e4cbbf9b691b0d1e75d10eb980a123 |
# Implementation of Clustering Algorithms in POVME
# By Celia Wong
# Advised by Jeff Wagner
# Amaro Lab, UCSD
import scipy.cluster.vq, scipy.cluster.hierarchy
import argparse
import numpy
import sys
import os
import csv
import copy
import itertools
import collections
#import fnmatch
import pylab
import peel
#import ma... | j-wags/POVME | clustering/cluster.py | Python | gpl-3.0 | 42,576 | [
"VMD"
] | 02677ee7e340158456180159fa1ff46fb6b98d30c647ca110b8969e75d82b70d |
"""columbus URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | jkachika/columbus | columbus/urls.py | Python | mit | 2,504 | [
"COLUMBUS"
] | dbb46d98dacbec2245ffca47a4886fdface2ac77318b62d1e6f87a3dcde66f02 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | krishnazure/ansible | v1/ansible/color.py | Python | gpl-3.0 | 2,388 | [
"Brian"
] | e781ca543ae8dcc6175e485701f3f80116e8cddc44ce565781a7a2b4ee1b9cb4 |
#!/usr/bin/env python
from redwind import create_app, models
from redwind.extensions import db
from flask import current_app
app = create_app()
with app.app_context():
print('''\
Welcome to the Red Wind installation script. This should only be used for
to initialize a brand new database. Running this scri... | Lancey6/redwind | install.py | Python | bsd-2-clause | 2,773 | [
"VisIt"
] | 03fd5b9d47d38298a9725acf08b5d3eac4663792eb9ab9b413bb78240f6a3d4e |
#***************************************************************************
#* *
#* Copyright (c) 2014 *
#* Jonathan Wiedemann <wood.galaxy@gmail.com> *
#* ... | bblacey/FreeCAD-MacOS-CI | src/Mod/Arch/ArchCutPlane.py | Python | lgpl-2.1 | 6,501 | [
"Galaxy"
] | d56ed115f70df51695680d2138eac6772cc1b4d63b1fed0d48b9351608822ff1 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/coordinates/test_windows.py | Python | gpl-2.0 | 4,282 | [
"MDAnalysis"
] | 79125028bd30aec64e3b6d16474f5887c53ad5e6b3edfed2023cb02125317dc8 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/ui/printserviceform.py | Python | gpl-2.0 | 16,923 | [
"Brian"
] | b9657644819bc63692b284e59a162f82ae57edec57bd16667ea82021f689889e |
from photutils.datasets import make_random_gaussians
from photutils.datasets import make_noise_image
from photutils.datasets import make_gaussian_sources
import matplotlib.pyplot as plt
import numpy as np
from astropy.modeling import models, fitting
from photutils import find_peaks, DAOStarFinder
from photutils.... | CalebHarada/DCT-photometry | Junk/PSFModelExample.py | Python | mit | 7,278 | [
"Gaussian"
] | c94431cd21d466ebf1e7ab10b7b8b7c68ac83f51c141f3ccec5bdab8a0c43818 |
import numpy as np
from scipy import signal
from scipy import misc
import math
import matplotlib.pylab as plt
from show_matrix import *
from createFilters import *
# input = np.array([[0.1,0.1,0.4,.4,0.1,0.1],[0.1,0.1,.4,.4,0.1,0.1],[0.1,.92,.92,.92,.92,0.1],[0.1,0.92,0.92,0.92,.92,0.1],[0.1,0.1,.6,.6,0.1,0.1],[0.1,0.... | michaelStettler/HISI | HISI/test_edge.py | Python | mit | 2,580 | [
"Gaussian"
] | 911f9c8e9238f0650a6c1e375bbc8b3e2f6222c4c4ff8e00a6d024fe5121ef6a |
from Lsystem3D import *
# Some demo functions, which make it relatively easy to use
def interactive_demo():
def show_demo(name, action):
print(name)
action()
input = raw_input("Press any key to continue or q/Q to quit: ")
if input.lower() == 'q':
sys.exit(0)
show_demo("Prueba... | vencejo/LSystem-en-Minecraft- | demos.py | Python | gpl-2.0 | 4,110 | [
"CRYSTAL"
] | 22460c2faadff7a71cd5afbb73f2f46a3f165440ccca1804331e4b918fa119b9 |
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.core.exceptions import ObjectDoesNotExist
from utils.packed_json import toJSON
import json
import time as _time
from datetime import datetime, date
f... | youtaya/mothertree | monthertree/times/views.py | Python | mit | 12,145 | [
"VisIt"
] | 577f2f90f7feb6044841e9723ce8c5b08123c261671e53a78d52145fb511b4e3 |
#!/usr/bin/env python
from gnuradio import gr
from gnuradio import gr, blocks, analog, filter
# import ofdm
import numpy
from fbmc_transmitter_multiuser_bc import fbmc_transmitter_multiuser_bc
from fbmc_receiver_hier_cb import fbmc_receiver_hier_cb
from fbmc_channel_hier_cc import fbmc_channel_hier_cc
from numpy impo... | rwth-ti/gr-ofdm | python/ofdm/test_demapper_fbmc_multiuser.py | Python | gpl-3.0 | 6,916 | [
"Gaussian"
] | fbcfaed4cf87d68ac82ac550b4490767185f6d6e94f5308df9a2bfc73419aaf7 |
# -*- coding: utf-8 -*-
"""
Middleware class that spots requests and analizes them for suspicies behavior
after a number of hits by the suspicios IP are detected the IP is blocked
Blocked IPs get a response with the motive of their blocking
"""
from django.core.cache import cache
from django.conf import settings
fr... | jjdelc/django-ip-nongratae | nongratae/middleware.py | Python | bsd-3-clause | 1,835 | [
"VisIt"
] | 60514718a0cbe5d40572d1e53f2f22e9d93e94daf7517ff76694fe110a568fd2 |
# ================================================================================
# Wayback Machine Endpoint Executor
# Developed by Tag Kim (Ph D.)
# This program is a data crawler designed to collect webpages in Wayback Machine.
# Visit http://web.archive.org to get more imformation.
#
# To run the program, you need... | trthanhquang/wayback-data-collector | wayback_toy/wayback.py | Python | apache-2.0 | 11,683 | [
"VisIt"
] | 4dbe12d40760620df0c2606b315fae3d20487cabf584d0dc83c7b8c87c4626b1 |
from zope.interface import Interface, Attribute
from foolscap.api import StringConstraint, ListOf, TupleOf, SetOf, DictOf, \
ChoiceOf, IntegerConstraint, Any, RemoteInterface, Referenceable
HASH_SIZE=32
SALT_SIZE=16
SDMF_VERSION=0
MDMF_VERSION=1
Hash = StringConstraint(maxLength=HASH_SIZE,
... | pombredanne/tahoe-lafs | src/allmydata/interfaces.py | Python | gpl-2.0 | 125,795 | [
"Brian",
"VisIt"
] | c1a6495589960febab8bd2c4ad303819718199259c965c13aea90796e9fcf1a0 |
#-----------------------------------------------------------------------------
# Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part of this software.
#-----... | IsCoolEntertainment/debpkg_python-pyzmq | zmq/tests/test_pubsub.py | Python | lgpl-3.0 | 1,697 | [
"Brian"
] | 0f87700217421b90a77b9510d7b6b80e91db7e5b758c693f76954b12b06d2fb6 |
# 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 RIlluminahumanmethylation450kmanifest(RPackage):
"""Annotation for Illumina's 450k methyla... | LLNL/spack | var/spack/repos/builtin/packages/r-illuminahumanmethylation450kmanifest/package.py | Python | lgpl-2.1 | 725 | [
"Bioconductor"
] | 7962596ba1e965c4027785133aed1ab8202aad3b8eb0f8050496933c41f394cd |
# Copyright (C) 2008 Erik Hetzner
# 2010 Brian Parma
# This file is part of Spydaap. Spydaap 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)... | sjohannes/exaile | plugins/daapserver/exaile_parser.py | Python | gpl-2.0 | 4,441 | [
"Brian"
] | c45226cc778b2b68b27e5650fcec2b2887ddbc7f4f93fd6fa5d0db1cdc6ba5e3 |
"""
# Notes:
- This simulation seeks to emulate the CUBA benchmark simulations of (Brette
et al. 2007) using the Brian2 simulator for speed benchmark comparison to
DynaSim. However, this simulation does NOT include synapses, for better
comparison to Figure 5 of (Goodman and Brette, 2008).
- The time taken to si... | asoplata/dynasim-benchmark-brette-2007 | Brian2/brian2_benchmark_CUBA_nosyn_compiled_0128.py | Python | gpl-3.0 | 2,139 | [
"Brian"
] | 2c066bac06b88cb3a9b130fb31ab90bbefe862b3ef93c064df4c09546f259ad4 |
"""End-To-End Memory Networks.
The implementation is based on http://arxiv.org/abs/1503.08895 [1]
"""
from __future__ import absolute_import
from __future__ import division
import inspect
import tensorflow as tf
import numpy as np
from six.moves import range
from tensorflow.python.ops import rnn, rnn_cell
def posit... | tianlongwang/memn2n | mc_web-demo/server/mc_memn2n.py | Python | mit | 16,951 | [
"Gaussian"
] | e00302c122448d904b268e609f4da9f93a09cc7fa10a2e1c9a4233c902b7f600 |
'''
Image (:mod:`pysar.image`)
==========================
.. currentmodule:: pysar.image
Functions
---------
Decimate (look) 2D images (:mod:`pysar.image.looks`)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
:toctree: generated/
look Image decimation
look2D Same as loo... | bminchew/PySAR | pysar/image/__init__.py | Python | gpl-3.0 | 1,924 | [
"NetCDF"
] | c36d2e4129d69273095afdb261bc0958b0eca5cee5a09500f9b44649f9d55ba1 |
import _ast
def dont_visit(self, node):
pass
def visit_children(self, node):
for child in self.children(node):
self.visit(child)
class Visitor(object):
def children(self, node):
for field in node._fields:
value = getattr(node, field)
if isinstance(value, (list, ... | gutomaia/Meta | meta/asttools/visitors/__init__.py | Python | bsd-3-clause | 2,535 | [
"VisIt"
] | fc3bde28a575d1b09d2247fd91e0376a510cc159e13f0b467f3a3fc6dd753a6e |
from __future__ import print_function
from __future__ import absolute_import
import sys
from copy import copy
import logging
import numpy as nm
from distutils.version import LooseVersion
from sfepy.base.base import (complex_types, dict_from_keys_init,
assert_, is_derived_class, ordered_ite... | vlukes/sfepy | sfepy/discrete/fem/meshio.py | Python | bsd-3-clause | 82,591 | [
"VTK"
] | 278cf7fce241caa64c68ca24cdec0cd5b948fbdeb44d05d8bc39a4a447b7e896 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Copyright (C) 2020 Stoq Tecnologia <http://www.stoq.com.br>
# All rights reserved
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation;... | stoq/stoq-server | stoqserver/lib/restful.py | Python | gpl-2.0 | 69,972 | [
"VisIt"
] | e4ace4193c2c36b7cee93ed84e1cf59c3c2040d7842beba650927efbd2849089 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-wms-job-delete
# Author : Stuart Paterson
########################################################################
"""
Peek StdOut of the given DIRAC job
"""
__RCSID__ = "$Id$"
import DIRAC
fr... | Andrew-McNab-UK/DIRAC | Interfaces/scripts/dirac-wms-job-peek.py | Python | gpl-3.0 | 1,198 | [
"DIRAC"
] | cc6430b05c2de341e6319005014bb3340b903f25d0595a7bc748575e28979524 |
##############################################################################
#
# Copyright (c) 2009-2013 by University of Queensland
# http://www.uq.edu.au
#
# Primary Business: Queensland, Australia
# Licensed under the Open Software License version 3.0
# http://www.opensource.org/licenses/osl-3.0.php
#
#... | AuScope/ANVGL-Portal | src/main/resources/org/auscope/portal/server/scriptbuilder/templates/escript-gravity.py | Python | lgpl-3.0 | 3,080 | [
"NetCDF",
"VisIt"
] | 742932d3005dc1697ff56bfab913efcd0bf5c444d4595ae0f940e0d3e1b6e872 |
# -*- coding: utf-8 -*-
#
# Copyright © 2007-2008 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hope that it
# will be useful, bu... | chensuchun/fas | fas/safasprovider.py | Python | gpl-2.0 | 16,982 | [
"VisIt"
] | 63260352d0fc65fa9c297e1f67b8a97efba38fd0bc5666f89b1d4cc13eba662c |
#!/usr/bin/python
"""
Estimate INDELs for pair-wise alignments.
usage: %prog maf_input out_file1 out_file2
"""
from __future__ import division
from galaxy import eggs
import pkg_resources
pkg_resources.require( "bx-python" )
try:
pkg_resources.require("numpy")
except:
pass
import psyco_full
import sys
from ... | volpino/Yeps-EURAC | tools/regVariation/getIndels.py | Python | mit | 4,715 | [
"Galaxy"
] | 4a9673e23c0ff1165751181e28c6b177391330f9efbc19e5b85a5084fa38551b |
'''
Theanets "Hello, world!" - train a simple neural network for classifying
simple data and evaluate the results.
[Theanets](https://github.com/lmjohns3/theanets) allows to build and train
neural networks on top of the [Theano](https://github.com/Theano/Theano)
compiler.
The goal is to get familiar with theanets on ... | bzamecnik/ml-playground | ml-playground/theanets/theanets_hello_world.py | Python | mit | 3,512 | [
"Gaussian"
] | 141a861d1065b328eac3da01f0d1274336c1dd92a6ca70494232f622fed7eb0d |
"""
========================================
Special functions (:mod:`scipy.special`)
========================================
.. module:: scipy.special
Nearly all of the functions below are universal functions and follow
broadcasting and automatic array-looping rules. Exceptions are noted.
Error handling
==========... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/scipy/special/__init__.py | Python | agpl-3.0 | 19,761 | [
"Gaussian"
] | acc113aa403e5fcdb004c9bf35e7f63e77e615b50df0c19aa9d4a4b07a92a18d |
#!/usr/bin/env python
#MIT License
#Copyright (c) 2017 Massimiliano Patacchiola
#
#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... | mpatacchiola/dissecting-reinforcement-learning | src/6/mountain-car/temporal_differencing_control_sarsa.py | Python | mit | 13,112 | [
"VisIt"
] | d6d2cf4b54528da37a5de3ee5293624add89996df001d0e39a9d89867c7668c5 |
#!/galaxy/home/mgehrin/hiclib/bin/python
"""
Read a compressed file as created by 'lzop' from stdin and write a table to
stdout containing the blocksize and the start offset (in bytes) of each
compressed block.
usage: %prog < FILENAME.lzo > FILENAME.lzot
"""
import struct, sys
MAGIC="\x89\x4c\x5a\x4f\x00\x0d\x0a... | bxlab/HiFive_Paper | Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/lzop_build_offset_table.py | Python | bsd-3-clause | 2,855 | [
"Galaxy"
] | 72b2fe7744040854ee4304b03a5f45046e70922bfdacb7510e5f652e9239b679 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.