text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""SiteCompare component to handle bulk scrapes.
Invokes a list of browsers and sends them to a list of URLs,
saving the rendered ... | nwjs/chromium.src | tools/site_compare/site_compare.py | Python | bsd-3-clause | 6,546 | [
"VisIt"
] | 7a71b0583741af4421efcf6fc835e7796eb9e06fa33a2614f9dd9a011f9530cd |
"""
Linear Discriminant Analysis and Quadratic Discriminant Analysis
"""
# Authors: Clemens Brunner
# Martin Billinger
# Matthieu Perrot
# Mathieu Blondel
# License: BSD 3-Clause
import warnings
import numpy as np
from scipy import linalg
from scipy.special import expit
from .base import ... | kevin-intel/scikit-learn | sklearn/discriminant_analysis.py | Python | bsd-3-clause | 34,748 | [
"Gaussian"
] | bda82bfc6df358163a89a90e379fd07a0ea975cc93f409914ec9551fdf871e31 |
from django.core.validators import MinValueValidator, MaxValueValidator
from django.db import models
from django.db.models.deletion import PROTECT
from edc_action_item.model_mixins import ActionItemModelMixin
from edc_base.model_managers import HistoricalRecords
from edc_base.model_validators import datetime_not_future... | botswana-harvard/ambition-subject | ambition_subject/models/blood_result.py | Python | gpl-3.0 | 13,556 | [
"VisIt"
] | 4fd0fbc4582aeaefbe2d5596e68098583aebbe2152acf40f0d698c941b876d79 |
# coding: utf8
{
' Quotas: %(quotas)s x%(quota_amount).2f': ' Quotas: %(quotas)s x%(quota_amount).2f',
' Transaction number: %s': ' Transaction number: %s',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postac... | reingart/gestionlibre | languages/pl.py | Python | agpl-3.0 | 16,268 | [
"VisIt"
] | 16840ccab4e828ba8d3200f326223ebe66212bedbc8670986981466cdbbb6b01 |
# coding: utf-8
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN 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... | NAMD/pypln.backend | tests/test_worker_trigrams.py | Python | gpl-3.0 | 2,138 | [
"NAMD"
] | 98a2ed462028038c66b76319b9f530220ec7332b17a2fb4ca4f21bf601df56a2 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import multiselectfield.db.fields
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('branch', '0025_auto_20141202_1501'),
]
operations = [
mig... | MaximeBiset/care4care | branch/migrations/0026_auto_20141202_1520.py | Python | agpl-3.0 | 8,516 | [
"VisIt"
] | 9d1371d7d7dcc435488c97ac07b0ed9712ce099513fb248a29f326b0e33fba0b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import vtk
nc = vtk.vtkNamedColors()
def GetProgramParameters():
import argparse
description = 'Demonstrates point data subdivision with the glyphing of normals on the surface.'
epilogue = '''
This program takes... | lorensen/VTKExamples | src/Python/Visualization/PointDataSubdivision.py | Python | apache-2.0 | 16,505 | [
"VTK"
] | eab2c22457ddeec7e45f83e9d4ea9c03f21a3423b43fa060857994d939a5df6e |
#!/usr/bin/python
# Python arp poison example script
# Written by aviran
# visit for more details aviran.org
from scapy.all import *
import sys
def get_mac_address():
my_macs = [get_if_hwaddr(i) for i in get_if_list()]
for mac in my_macs:
if(mac != "00:00:00:00:00:00"):
return mac
Time... | yandarizky/sistemkeamananjaringan | arp_poison.py | Python | gpl-3.0 | 650 | [
"VisIt"
] | 25c231436863b0149f4a741842468f3e7cd236ae35de3d8f7be834032086f30f |
#!/usr/bin/env python
from ase import *
from gpaw.atom.all_electron import AllElectron
from gpaw.test import equal
data = []
def out(a,b,c,d,e,f):
data.append( (a,b,c,d,e,f) )
ETotal = {'Be': -14.572+0.012, 'Ne': -128.548 -0.029, 'Mg': -199.612 - 0.005 }
EX = {'Be': -2.666 - 0.010, 'Ne': -12.107 -0.122, 'Mg': -15... | qsnake/gpaw | gpaw/test/gllbatomic.py | Python | gpl-3.0 | 1,530 | [
"ASE",
"GPAW"
] | de51e9f701064b18119393f6cb37dcc18f6be77b2491ec30fd4e4b323eaed6a7 |
# ======================================================================
# Atomistica - Interatomic potential library and molecular dynamics code
# https://github.com/Atomistica/atomistica
#
# Copyright (2005-2020) Lars Pastewka <lars.pastewka@imtek.uni-freiburg.de>
# and others. See the AUTHORS file in the top-level A... | Atomistica/atomistica | tests/mask.py | Python | gpl-2.0 | 2,793 | [
"ASE"
] | d1021f04157837c1519d14b8a806d00cd5acecbc3b438debaf80bfec0ff495f7 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Test the MBO method in cclib"""
from __future__ import print_function
import sys
import os
import loggin... | gaursagar/cclib | test/method/testmbo.py | Python | bsd-3-clause | 1,717 | [
"Gaussian",
"cclib"
] | 47dda19fceed45624b029cec039fe9b7af156b098ed1767b90158f42b122dfda |
import math
import numpy as np
from matplotlib import cm, pyplot as plt
from matplotlib.collections import RegularPolyCollection
from mpl_toolkits.axes_grid1 import make_axes_locatable
def plot_hex_map(d_matrix, titles=[], colormap=cm.gray, shape=[1, 1], comp_width=5, hex_shrink=1.0, fig=None,
color... | sevamoo/SOMPY | sompy/visualization/plot_tools.py | Python | apache-2.0 | 2,994 | [
"NEURON"
] | 63f3121aa23b9e0346e95bb01a349d57034870d74a1be6925063fc206fd3a03d |
# -*- coding: utf-8 -*-
"""
This module implements the GenNetwork class, which implements generic network
logic. Also implements Population and GenConnection classes
@author: DanielM
"""
from neuron import h
import random
import numpy as np
import matplotlib.pyplot as plt
import math
import time
import os
import shel... | danielmuellernai/ouropy | gennetwork.py | Python | mit | 39,308 | [
"Gaussian",
"NEURON"
] | 2372e590ed08e35855cee2d442f0ad95dd4a753a2b40dd4862273b44530e9fdd |
"""
This is a python reimplementation of the open source tracker in
High-Speed Tracking with Kernelized Correlation Filters
Joao F. Henriques, Rui Caseiro, Pedro Martins, and Jorge Batista, tPAMI 2015
modified by Di Wu
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.misc import imresize
class KCFTra... | stevenwudi/Kernelized_Correlation_Filter | KCF_CNN_RNN.py | Python | gpl-3.0 | 39,302 | [
"Gaussian"
] | ff7f3571f82f860595d57d71bad465a356994de980386d4eec16ee97312990af |
"""Module for functional boxplots."""
from statsmodels.compat.numpy import NP_LT_123
import numpy as np
from scipy.special import comb
from statsmodels.graphics.utils import _import_mpl
from statsmodels.multivariate.pca import PCA
from statsmodels.nonparametric.kernel_density import KDEMultivariate
try:
from sci... | statsmodels/statsmodels | statsmodels/graphics/functional.py | Python | bsd-3-clause | 31,531 | [
"Gaussian"
] | 70093d7fd9ceeaaa182fa48d7bac50e0d26c9f135830c9764dd51e2f41e8ecb0 |
"""Media accessors
All media accessor __init__s take a `root` argument, which should be a path
to the root of the media directory.
Alternatively, `root` can be a custom MediaFile subclass.
Most __init__s take an ORM object as a second argument.
Their various methods take a number of arguments specifying exactly whi... | xfix/pokedex | pokedex/util/media.py | Python | mit | 20,028 | [
"CRYSTAL"
] | 944d598d97232d09fee8529ade189eec79cd17720c76a7fee6a8f9fc7eb21add |
from ..base import SOLFile
from ..fields import CampoA, CampoN, CampoF, CampoB
def get_cD(obj):
return obj.cD
class CLI(SOLFile):
cA = CampoN("Codigo", size=5, required=True)
cB = CampoN("Codigo Contabilidad", size=5)
cC = CampoA("NIF", truncate=False, size=18)
cD = CampoA("Nombre Fiscal", size=... | telenieko/importasol | importasol/db/gestorsol/cli.py | Python | bsd-3-clause | 4,000 | [
"CDK"
] | a28b459c46dd514b4962d0fd649e0c3c4015a6199d65f89c8792c1b4fb2da14d |
#/usr/bin/python
#
# Copyright 2013 Luke Hackett
# https://github.com/LukeHackett
# 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 req... | LukeHackett/python-pi-cookbook | traffic-lights/traffic_lights.py | Python | apache-2.0 | 1,700 | [
"Amber"
] | e3bf85143158bb211f4b812de999f21a6b73c559a98deebfbda969b10421c448 |
import colander
from cornice import Service
from cornice.validators import colander_body_validator
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
_VALUES = {}
# Create a simple service that will store and retrieve values
values = Service(name='foo',
path='/val... | Cornices/cornice.ext.swagger | examples/minimalist.py | Python | apache-2.0 | 2,273 | [
"VisIt"
] | c834bdb827b4924b06d050dd14459bfe98ccfe6a6f586c6d80a330a9d3c469de |
import os
from setuptools import setup
from setuptools import find_packages
version = '0.1'
shortdesc = "Dibs Payment for bda.plone.shop"
setup(
name='bda.plone.dibspayment',
version=version,
description=shortdesc,
classifiers=[
'Environment :: Web Environment',
'License :: OSI Approv... | espenmn/bda.plone.dibspayment | setup.py | Python | bsd-3-clause | 1,058 | [
"MOE"
] | 7ebde77e5acc82e9cc0e55df8e50eabf82c1ba3ce496830c010e58781823a361 |
#!/usr/bin/env python
################################################################################
# DATE: 2016/May/06, rev: 2016/July/11
#
# SCRIPT: merge_flags.py
#
# VERSION: 2.0
#
# AUTHOR: Jonathan Poisson(poissonj@ufl.edu) Miguel A Ibarra (miguelib@ufl.edu)
#
# DESCRIPTION: The script merges files containin... | secimTools/SECIMTools | src/scripts/merge_flags.py | Python | mit | 4,576 | [
"Galaxy"
] | 1bb89166b55c2bce9065ed4d09f47a1dc71427489824ce59e22a9c39992384d5 |
# -*- coding: utf-8 -*-
"""Strongly connected components.
"""
# Copyright (C) 2004-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
from networkx.utils.decorators import not_implemen... | jcurbelo/networkx | networkx/algorithms/components/strongly_connected.py | Python | bsd-3-clause | 11,932 | [
"VisIt"
] | 9a7e2772b689a4e0dc8fb10218f94d9f3ff53458328e9b2ded253f5311aa8920 |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | tapomayukh/projects_in_python | classification/Classification_with_kNN/Single_Contact_Classification/Spatial_Resolution/space_resolution_per_meter_mov_fixed_percent_no_motion.py | Python | mit | 4,382 | [
"Mayavi"
] | fac5a3159b7ba0ad7b49a9b46526ff84f815f078446ae8ee60d4cff3dc5597ae |
"""Interface to the CaImAn package (https://github.com/simonsfoundation/CaImAn)."""
import numpy as np
import multiprocessing as mp
from caiman import components_evaluation
from caiman.utils import visualization
from caiman.source_extraction.cnmf import map_reduce, initialization, pre_processing, \
... | fabiansinz/pipeline | python/pipeline/utils/caiman_interface.py | Python | lgpl-3.0 | 30,929 | [
"Gaussian",
"NEURON"
] | c3a88fb9fbd126b975f1a31065f59ffb8538b55ef1d6a9244888ab41d7413109 |
from DIRAC.Core.Workflow.Parameter import *
from DIRAC.Core.Workflow.Module import *
from DIRAC.Core.Workflow.Step import *
from DIRAC.Core.Workflow.Workflow import *
from DIRAC.Core.Workflow.WorkflowReader import *
# define Module 2
module2 = ModuleDefinition("GaudiApplication") # during constraction class creates d... | DIRACGrid/DIRAC | src/DIRAC/Core/Workflow/test/JobSamples.py | Python | gpl-3.0 | 18,060 | [
"DIRAC"
] | cbc4ba84ca97a2dce891775bc16a83dc72dabdcc854543805359837147c580ce |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
BrowserID Authentication for web2py
developed by Madhukar R Pai (Copyright © 2011)
Email <madspai@gmail.com>
License : LGPL
thanks and credits to the web2py community
This custom authenticator allows web2py to authenticate using browse... | SEA000/uw-empathica | empathica/gluon/contrib/login_methods/browserid_account.py | Python | mit | 4,129 | [
"VisIt"
] | 0ea4cf843978da88fd5e283c37227ac586763828683b94fb4a32be9c86ecd850 |
# $Id$
#
# Copyright (C) 2003-2006 Rational Discovery LLC
# All Rights Reserved
#
import sys
from rdkit import six
class VLibNode(object):
""" base class for all virtual library nodes,
defines minimal required interface
"""
def __init__(self,*args,**kwargs):
self._children = []
self._parents = [... | adalke/rdkit | rdkit/VLib/Node.py | Python | bsd-3-clause | 4,194 | [
"RDKit"
] | e5be667ac0cd29eb9cb98264c4a756d713077036f99a8a4ea8b8288ca4207e4b |
import datetime
import getpass
import logging
import logging.config
import os
import socket
import sys
from pathlib import Path
from typing import Dict, Any, Iterator, Iterable
from typing import List, Tuple
from typing import Union
import numpy as np
import yaml
from netCDF4 import Dataset, Variable, Dimension
LOG =... | Belgingur/WrfUtils | DropDigits/utils.py | Python | lgpl-3.0 | 9,815 | [
"NetCDF"
] | b1097de23e8c15da4e16b398b1191c45a8740c8fcf559f09ac76a678bb80b686 |
import numpy as np
import matplotlib.pyplot as plt
import os
# enter values from simulation here
diffusivity = 2.0
sink_strength = 0.05
mean = 1.2 # mean of EventInserter distribution
Lx = 2.0 # length of problem in x
Ly = 2.0 # length of problem in y
scale = 3.0 # scale of Gaussian source term
# postprocessor... | jessecarterMOOSE/PRARIEDOG | examples/ex05_2d_sink_map_with_refinement/plot_concentration.py | Python | lgpl-2.1 | 812 | [
"Gaussian"
] | afe0333a03e6f6ecae8bfc3bdb5e14cfac4480b523fb08033965794d38da008a |
import lasagne
import lasagne.nonlinearities as NL
import numpy as np
import itertools
from rllab.core.lasagne_layers import ParamLayer
from rllab.core.lasagne_powered import LasagnePowered
from rllab.spaces import Box
from rllab.core.serializable import Serializable
from rllab.policies.base import StochasticPolic... | florensacc/snn4hrl | policies/stochastic_gaussian_mlp_policy.py | Python | mit | 10,411 | [
"Gaussian"
] | bdebad13158597706016c865933f5b3a7f152cf3b3f4fd8e1dc1283c2af9d940 |
from ase.atoms import Atoms
from ase.parallel import paropen
def read_xyz(fileobj, index=-1):
if isinstance(fileobj, str):
fileobj = open(fileobj)
lines = fileobj.readlines()
L1 = lines[0].split()
if len(L1) == 1:
del lines[:2]
natoms = int(L1[0])
else:
natoms = le... | slabanja/ase | ase/io/xyz.py | Python | gpl-2.0 | 1,182 | [
"ASE"
] | d665dfbc8d6b037f2512b0064ab497ca9e7d589d7a57e3bd7a707fb83082894b |
""" X509CRL is a class for managing X509CRL
This class is used to manage the revoked certificates....
"""
__RCSID__ = "$Id$"
import stat
import os
import tempfile
from GSI import crypto
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
class X509CRL( object ):
def __init__( self, cert = Non... | andresailer/DIRAC | Core/Security/X509CRL.py | Python | gpl-3.0 | 3,528 | [
"DIRAC"
] | f118d7e834a30d4a0c139db37946490ceb7442ac0530f2e3542070034d72300e |
## INFO ########################################################################
## ##
## cutils ##
## ====== ... | matt-hayden/cutils | internal/output.py | Python | gpl-3.0 | 5,836 | [
"VisIt"
] | 2c2363788874b8bba3a702f38fba273dd7b3923e7acf76d38db2ecedb930ea3b |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Simple volume rendering example.
reader = vtk.vtkSLCReader()
reader.SetFileName(VTK_DATA_ROOT + "/Data/sphere.slc")
# Create transfer functions for opacity and color
opa... | hlzz/dotfiles | graphics/VTK-7.0.0/Rendering/Volume/Testing/Python/volTM3DCropRegions.py | Python | bsd-3-clause | 3,899 | [
"VTK"
] | 95c1ce11bc13c39e48962ac63ff7aee3ff520d6ea9f0785dbf02911c0a2be70f |
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify ... | rschatz/graal-core | mx.graal-core/mx_graal_bench.py | Python | gpl-2.0 | 9,863 | [
"VisIt"
] | decd28f2fa5e1fde0928b4c6f7ca695ef914f3fab817f72910287611f5fedf91 |
import os
import random
import numpy
from PyML.utils import misc
from PyML.classifiers.baseClassifiers import Classifier
from PyML.classifiers.ext.libsvm import C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR
from PyML.classifiers.ext.libsvm import LINEAR, POLY, RBF, SIGMOID, PRECOMPUTED
from PyML.classifiers.ext import... | cathywu/Sentiment-Analysis | PyML-0.7.9/PyML/classifiers/svm.py | Python | gpl-2.0 | 18,024 | [
"Gaussian"
] | 1e59bab9bf3af277c7aa753fc576a4eb49b382cb4cc8130dccfbe5f9bca72ede |
#! /usr/local/bin/python
import sys
import csv
import datetime
import time
from numpy.random import normal
from math import sqrt, ceil
from random import randint
from pprint import pprint
import argparse
# parse arguments
parser = argparse.ArgumentParser(description='Smart house data generator.')
parser.add_argument(... | So-Cool/SHgen | generator.py | Python | gpl-3.0 | 58,441 | [
"Gaussian"
] | 3534c0738c7da6fe72d528b141ed4b1331ad7958080b7521cccc234e26c8f06e |
#!/usr/bin/env python
""" This is an interactive tool to identify calibration lamp lines from line atlas """
from .utils import NearestIndex, FitLineToData
import sys
import shutil
import uuid
import time
import readline
import argparse
import re
import os
from multiprocessing import Process, Pipe
import numpy as np
im... | indiajoe/WavelengthCalibrationTool | WavelengthCalibrationTool/iidentify.py | Python | gpl-3.0 | 23,103 | [
"Gaussian"
] | 6cda2c9bd2101ee0481795cbf0371bb075eae95ff5bdff936d152ccb67c42745 |
"""Standard test images.
For more images, see
- http://sipi.usc.edu/database/database.php
"""
import os as _os
from .. import data_dir
from ..io import imread, use_plugin
from .._shared.utils import deprecated
from ._binary_blobs import binary_blobs
__all__ = ['load',
'camera',
'lena',
... | Hiyorimi/scikit-image | skimage/data/__init__.py | Python | bsd-3-clause | 6,698 | [
"ESPResSo"
] | d8852fd3966f122f002d4d7bbb7edbb0f08175aceec546699ee3ccb017c5b327 |
#!/usr/bin/env python
"""
lttree_postprocess.py
This is a stand-alone python script which checks the files created by
lttree.py to insure that the standard instance-variables ($variables)
have all been defined. This script performs a task which is very similar
to the task performed by lttree_check... | jcarlson23/lammps | tools/moltemplate/src/lttree_postprocess.py | Python | gpl-2.0 | 13,769 | [
"LAMMPS"
] | 68384c8dc4adfad9144af47d8b6675854143aedf1e30190e1e05ef2b82ded147 |
# ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ###
# ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ### ABANDONWARE ###
#
# At the moment no one is writing a "integrity" Requests.
# It can be resurrected once we'll write those requests again.... | Sbalbp/DIRAC | DataManagementSystem/Agent/SEvsLFCAgent.py | Python | gpl-3.0 | 14,173 | [
"DIRAC"
] | b878ac498c82e992c5f3e9018a9042b384e80f21920635a859e8d3dde258193b |
"""
"""
from feature_shapes import Triangle
from feature_shapes import OpenTriangle
import matplotlib.patches as patches
from matplotlib.path import Path
from matplotlib.text import Text
def draw_region(
seq,
start=None,
end=None,
intron_threshold=1,
exon=Triangle(width=1),
... | darcyabjones/bioplotlib | bioplotlib/draw_wrappers.py | Python | bsd-3-clause | 15,811 | [
"Biopython"
] | 7e39dde5b589b7dc864cb2299d98240cf984eddee0ef5cb697bbe02019b9365a |
#!/usr/bin/env python
"""
This script will retrieve a list of dictionaries (one for each category) from the Tool Shed defined
by the --from_tool_shed parameter, which should be a base Tool Shed URL. It will retrieve the category
name and description from each dictionary and create a new category with that name and des... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/scripts/api/create_categories.py | Python | gpl-3.0 | 3,043 | [
"Galaxy"
] | 30c56f8cdca43de20a4068111911799963cd45e9a16f2cd6e5d4afcf8ad48eb8 |
#!/usr/bin/python
##
import os
import sys
import re
from bs4 import BeautifulSoup
## get all test catalog
def get_test_all_catalog(name):
CatalogList = []
PackageNameList = []
filepath = os.path.join(os.getcwd(), name)
packagenames = os.listdir(name)
for packagename in packagenames:
tmp_pa... | emqtt/emq-relx | .ci/deps_tests/boot.py | Python | apache-2.0 | 7,540 | [
"Galaxy"
] | 63db413f21acfccdb8abc6c673f10e8588ee50a43b486271be8f808a3adef296 |
#
# Copyright (C) 2003 greg Landrum and Rational Discovery LLC
#
""" """
import os
import unittest
from rdkit.ML.DecTree import ID3, PruneTree, CrossValidate
from rdkit.TestRunner import redirect_stdout
from io import StringIO
def feq(a, b, tol=1e-4):
return abs(a - b) <= tol
class TreeTestCase(unittest.Test... | ptosco/rdkit | rdkit/ML/DecTree/UnitTestPrune.py | Python | bsd-3-clause | 2,241 | [
"RDKit"
] | ae62cbee19d0d0354967126c56a01dba4d4359bfcee6ed0abe777d94b20f41c2 |
# coding: utf-8
# Distributed under the terms of the MIT License.
import ababe
import click
import sys, ast
from ababe.cmdline.apps import *
def run():
try:
ababe.cmdline.runatilib.exec_from_cmdline()
except KeyboardInterrupt:
pass
except EOFError:
pass
@click.group()
@click.versio... | unkcpz/ababe | ababe/cmdline/runatilib.py | Python | mit | 5,859 | [
"MCell",
"VASP"
] | 8d4e8d9faadf29c0f5429bb495619edc35af8f7e7204d6c9e3dcaa95311aa6aa |
'''
Created on Jan 4, 2017
A module to load ASCII raster data into numpy arrays.
@author: Andre R. Erler, GPL v3
'''
# external imports
import numpy as np
import numpy.ma as ma
import gzip, shutil, tempfile
import os, gc
# internal imports
from geodata.base import Variable, Axis, Dataset
from geodata.... | aerler/GeoPy | src/utils/ascii.py | Python | gpl-3.0 | 31,520 | [
"NetCDF"
] | fb89697bfbceb95cb09e79c4693eb0e642c75342f2a64da0c29ac5853792f633 |
#The purpose of this script is to chop big molecules to small fragments by some kind of rules, so that some other molecules can be generated with these fragments.
#Main process:
#1. Use RDKit to make fragments by breaking some bonds and save these fragments to sdf files. Besides dummy atoms and hydrogens, if there ar... | liutairan/eMolFrag | Old versions/eMolFrag_2017_01_13_01/chopRDKit03.py | Python | gpl-3.0 | 30,176 | [
"RDKit"
] | acba57d73b7428d6893647e28cb8033122ca7961f8cfedbc99c426526f707c40 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | gijigae/django-tutorial | config/urls.py | Python | bsd-3-clause | 1,285 | [
"VisIt"
] | 55e5c26c4ec8888a4384d2b551a5cf4d10c5bd62b1484bc639767176e37d8726 |
# -*- coding: utf-8 -*-
"""
jinja2.optimizer
~~~~~~~~~~~~~~~~
The jinja optimizer is currently trying to constant fold a few expressions
and modify the AST in place so that it should be easier to evaluate it.
Because the AST does not contain all the scoping information and the
compiler has to ... | facelessuser/sublime-markdown-popups | st3/mdpopups/jinja2/optimizer.py | Python | mit | 1,711 | [
"VisIt"
] | d0fcc86d93ecc40b930b802e801bdf41c216e713b059edb379940eab818165e7 |
from ase import Atoms
from gpaw import GPAW
from gpaw.utilities.sic import NSCFSIC
atoms = ['He','Be'] #,'Ne'] # Ne deviates already 2.5 eV
EE = []
EREF = [-79.4,-399.8,-3517.6]
for a in atoms:
s = Atoms(a)
s.center(vacuum=4.0)
calc = GPAW(h=0.15, txt=a + '.txt')
s.set_calculator(calc)
E = s.get_p... | qsnake/gpaw | gpaw/test/nscfsic.py | Python | gpl-3.0 | 774 | [
"ASE",
"GPAW"
] | 0871c69e14ae6696014ddae194e44821bf037869502caa4a245d01e4e44b16f6 |
#!/usr/bin/env python
## @package sct_straighten_spinalcord
#
# - run a gaussian weighted slice by slice registration over a machine to straighten the spinal cord.
# - use the centerline previously calculated during the registration but fitted with spline interpolation to improve the spinal cord straightening
# - find... | 3324fr/spinalcordtoolbox | dev/old/sct_straighten_spinalcord__testing.py | Python | mit | 144,941 | [
"Gaussian"
] | 438f64749ca5f3efd6c5aad45c8df716ed3da9bd9757f84e29a1973023cdac3a |
import tempfile
import subprocess
import os
from functools import partial
from itertools import starmap, ifilterfalse, chain
from operator import methodcaller
from func import compose, typecheck, dictzip, _or
import job
import readline
from glob import glob
#TODO: properly segregate I/O
#TODO: put modules list in con... | demis001/pbs | pbs/custom.py | Python | lgpl-2.1 | 5,518 | [
"BLAST",
"BWA",
"Bowtie"
] | c67c9a9448df89601945723e43038a2d8636bfbb86c65eb255efe2b99aac68a1 |
"""analytics.py: Class in which all static and dynamical properties of
the circuit are calculated.
Authors: Hannah Bos, Jannis Schuecker
"""
import numpy as np
from scipy.special import erf
from scipy import integrate
import os
import h5py_wrapper.wrapper as h5
import hashlib as hl
import siegert
import transfer_func... | INM-6/neural_network_meanfield | analytics.py | Python | gpl-3.0 | 14,601 | [
"Gaussian"
] | 4d1a79b2719b99cf9c770d0931efee72e580134f5b81b24bb17651e574a8b3fc |
__all__ = ["clusters", "tracks","utils"]
__have_visit = None
__visitPath__ = None
__visitImportPath__ = None
import sys
import meanie3D.app.utils
# Import visit package
__visitPath__, __visitImportPath__ = meanie3D.app.utils.findVisitPaths()
if __visitImportPath__ and __visitPath__:
__have_visit = True
sys.pa... | meteo-ubonn/meanie3D | python/meanie3D/visualisation/__init__.py | Python | mit | 481 | [
"VisIt"
] | 6d42657c32e83cad5caa84e89fed85a5511c438a18a3e92af9cc6a8ccdef8805 |
"""Probit regression class and diagnostics."""
__author__ = "Luc Anselin luc.anselin@asu.edu, Pedro V. Amaral pedro.amaral@asu.edu"
import numpy as np
import numpy.linalg as la
import scipy.optimize as op
from scipy.stats import norm, chisqprob
import scipy.sparse as SP
import user_output as USER
import sum... | badjr/pysal | pysal/spreg/probit.py | Python | bsd-3-clause | 25,907 | [
"COLUMBUS"
] | 85eff841e0e7d68bed092a6c53d9daf35ea7e710f45a05099a2b2601ba76e706 |
## Author: Nick Ronnei (nronnei@gmail.com)
## Written in Python 2.7 for use with ArcGIS
from __future__ import division
import arcpy
import math
import csv
import os
import sys
######
## Define functions necessary for the script
######
def calculate_estimate(inList):
"""
Sum values from the rows of a table.... | nronnei/ccva | advanced_MOE_tracker.py | Python | mit | 12,326 | [
"MOE"
] | 23b6bd7e9d647e197d9c0556786a7d497e413d74399f443fe8af9a3ffb1884d8 |
import argparse
import sys, traceback
import os
from classes.TopoData import TopoData
from methods.thalweg import ThalwegMetrics
from methods.centerline import CenterlineMetrics
from methods.channelunit import ChannelUnitMetrics
from methods.waterextent import WaterExtentMetrics
from methods.crosssection import CrossS... | SouthForkResearch/CHaMP_Metrics | tools/topometrics/topometrics.py | Python | gpl-3.0 | 7,013 | [
"VisIt"
] | ee943398293b7c3bb8fa808ece9b8ace9eb123b26a841517d5b1d4200b7723e3 |
"""
Accounting agent to consume perfSONAR network metrics received via a message queue.
.. literalinclude:: ../ConfigTemplate.cfg
:start-after: ##BEGIN NetworkAgent
:end-before: ##END
:dedent: 2
:caption: NetworkAgent options
"""
from __future__ import absolute_import
from __future__ import division
from __fu... | ic-hep/DIRAC | src/DIRAC/AccountingSystem/Agent/NetworkAgent.py | Python | gpl-3.0 | 11,170 | [
"DIRAC"
] | a26011370d7e0b91631db13ec4eb9e15e6806c505fcfbc953076e98091cec507 |
""" Principal Component Analysis
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis A. Engemann <d.engemann@fz-juelich.de>
# Michael Eickenberg <michael.eickenberg@inria.fr>
#
# Lice... | 0asa/scikit-learn | sklearn/decomposition/pca.py | Python | bsd-3-clause | 22,935 | [
"Gaussian"
] | 3e0437a3d0e91c9b3b3057e51a9d5b452bf2d5398a0f835e07fe827851426e37 |
import sympy as sp
import numpy as np
import pystencils as ps
from lbmpy.creationfunctions import create_lb_method, create_lb_update_rule, create_lb_collision_rule
from lbmpy.boundaries import NoSlip, UBB
from lbmpy.fieldaccess import StreamPullTwoFieldsAccessor
from pystencils_walberla import generate_pack_info_from_k... | lssfau/walberla | apps/benchmarks/UniformGridGPU/old_ideas/UniformGridGPU.py | Python | gpl-3.0 | 6,376 | [
"VTK"
] | 1d8124afb733c7fabe0f850343064f30a68ee5dac6dff68648c5589debc78b2c |
#!/usr/bin/env python
#-*- encoding: utf8 -*-
import rospy
import rospkg
import os
import vtk
import math
from qt_gui.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtWidgets import QWidget, QFrame
from .QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
class FakeMotionR... | mhri/mhri | motion_renderer/src/motion_renderer/fake_motion_renderer_gui.py | Python | apache-2.0 | 7,159 | [
"VTK"
] | 66192ec50ecd806517dcfcb0fe6a248050feca35bc54222fd8fc8b5a5fba93b1 |
##
# Copyright 2009-2017 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | ULHPC/easybuild-easyblocks | easybuild/easyblocks/n/neuron.py | Python | gpl-2.0 | 9,075 | [
"NEURON"
] | 54bd9713aba62e31ab5f23808367f4e076b14ec7e63ba70de0d9acbd8f680c37 |
"""IO methods for MADIS wind data.
--- DEFINITIONS ---
MADIS (the Meteorological Assimilation Data Ingest System) consists of many
secondary datasets (or "data streams"). We use all secondary datasets with
near-surface wind observations, listed below:
- coop stations
- CRN (Climate Reference Network)
- HCN (Histori... | thunderhoser/GewitterGefahr | gewittergefahr/gg_io/madis_io.py | Python | mit | 18,987 | [
"NetCDF"
] | bedf4acdba732f93ea9ddf1bfa8690ef53d815f898bb07cd439d8d8b48508daf |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Magnetic space groups.
"""
import os
import sqlite3
import textwrap
from array import array
from fractions import Fraction
import numpy as np
from monty.design_patterns import cached_class
from pymatgen.... | gmatteo/pymatgen | pymatgen/symmetry/maggroups.py | Python | mit | 23,425 | [
"CRYSTAL",
"pymatgen"
] | ed539f099ee407f1ce934ba370c81a86cdf46811d45d204b1ae4b46c73255220 |
'''
Command utilities for franklin
This module provides utilities to run external commands into franklin
'''
# Copyright 2009 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of franklin.
# franklin is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | JoseBlanca/franklin | franklin/utils/cmd_utils.py | Python | agpl-3.0 | 23,278 | [
"BLAST"
] | a36be68b8c62030efe716652f913604bfe7611d100df8a61b49d9261a42fb952 |
# Credits: SimpleHessianServer.py was inspired by and based on
# SimpleXMLRPCServer.py written by Brian Quinlan (brian@sweetapp.com)
import hessianlib
from hessianlib import Fault
import SocketServer
import BaseHTTPServer
import sys
import os
__version__ = "0.2"
def resolve_dotted_attribute(obj, attr, allow_dotted_... | onoga/wm | src/gnue/common/rpc/drivers/hessian/SimpleHessianServer.py | Python | gpl-2.0 | 13,203 | [
"Brian"
] | 9e4ac08221b5821f6755d0296256c646644940f1f9d58b903f64f9f6f2fe260f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
from pylab import *
try:
import moose
except ImportError:
print "ERROR: Could not import moose. Please add the directory containing moose.py in your PYTHONPATH"
import sys
sys.exit(1)
from moose.utils import * # for BSplineFill
cla... | h-mayorquin/camp_india_2016 | tutorials/chemical switches/moose/neuroml/lobster_pyloric/synapses/GluSyn_STG.py | Python | mit | 2,462 | [
"MOOSE"
] | 986e00f8d7375a8597640cfbead2a2c6ebe17e8bf00b1213276e6b8496327ce0 |
"""
#;+
#; NAME:
#; cos_halos
#; Version 1.0
#;
#; PURPOSE:
#; Module for COS-Halos analysis
#; 29-Nov-2014 by JXP
#;-
#;------------------------------------------------------------------------------
"""
from __future__ import print_function, absolute_import, division, unicode_literals
import numpy as np
impo... | alfeinsod/xastropy | xastropy/cgm/cos_halos.py | Python | bsd-3-clause | 11,166 | [
"Galaxy"
] | a54a45a4f90084115c8a3d90d2df96319d8f7241850a9de1c7939d587478d063 |
# This metric is currently functional works to determine the best pictures, but we
# evaluate what our metric, currently it is usableMatches/foundKeyPoints for that image,
# I had trouble doing it for total matches found ---.
import cv2
import os.path
import numpy as np
import pandas as pd
import statsmodels.api as... | Maplenormandy/list-62x | python/learner.py | Python | mit | 16,221 | [
"Gaussian"
] | 03b72d56d8b4b398c94c583cd408501658cbdbd2b9f6e1575d269d12408f036b |
"""Post processing module for dfpt force constants."""
import pickle
import numpy as np
import numpy.fft as fft
import ase.units as units
import ase.phonons as phonons
from gpaw.kpt_descriptor import KPointDescriptor
class Phonons(phonons.Phonons):
"""DFPT version of the ``Phonons`` class from ase.
This c... | qsnake/gpaw | gpaw/dfpt/phonons.py | Python | gpl-3.0 | 6,771 | [
"ASE",
"GPAW"
] | a8cd06cce4ec047388794e061eac648f4522c0d94a06235beb1289bc1c0f428b |
#===============================================================================
#
# BoldMonitor.py
#
# This file is part of ANNarchy.
#
# Copyright (C) 2018-2021 Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com>,
# Oliver Maith <oli_maith@gmx.de>
#
# This program is free software: you can redistri... | vitay/ANNarchy | ANNarchy/extensions/bold/BoldMonitor.py | Python | gpl-2.0 | 9,936 | [
"NEURON"
] | 6277a6cd3c75a804fc32fc240caba58fabe298b684cdf834589fe09c50ee0e17 |
"""
MUSE -- A Multi-algorithm-collaborative Universal Structure-prediction Environment
Copyright (C) 2010-2017 by Zhong-Li Liu
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
version 2 of t... | zhongliliu/muse | muse/Calculators/Run_castep.py | Python | gpl-2.0 | 4,173 | [
"CASTEP"
] | 5a81bcb1336326b658c7c7f6bb3a860b580a9dc5614a0b8536465b423da3954f |
#!/usr/bin/env python
# Copyright (c) 2011-2018, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
# flake8: noqa
"""
Raw Data I/O
============
Please have a look at the tutorial :ref:`/notebooks/fileio/wradlib_radar_formats.ipynb`
for an introduction on how to deal with different... | heistermann/wradlib | wradlib/io/__init__.py | Python | mit | 1,381 | [
"NetCDF"
] | f92b6b2f7806f520c3a878d6dde65f2f6e5bc36affb26b44fb44521826d3a68f |
import os as _os
import pathlib2 as pl
# own module
import PolyLibScan.helpers.pymol as pym
import PymolDensity
import PymolPose
class PymolVisualisation(object):
'''Parent class of pymol Visualisation
'''
def __init__(self, protein_path=None):
self.protein_path = protein_path
self.pymol_ha... | luminescence/PolyLibScan | Analysis/pymol_visualisation.py | Python | mit | 5,129 | [
"PyMOL"
] | 0a77197b8a19f5ffc1c6da9ed75aabe19caa2f13ce3a1e86d6e70f10536501e5 |
"""Read and write notebooks as regular .py files.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, dist... | wolfram74/numerical_methods_iserles_notes | venv/lib/python2.7/site-packages/IPython/nbformat/v2/nbpy.py | Python | mit | 5,284 | [
"Brian"
] | aa0267243354b2904506fa63a89f7f6af331d49ff27ba804e2cbc7d1aaa21d95 |
# coding=utf-8
# Copyright 2022 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | tensorflow/tensor2tensor | tensor2tensor/models/mtf_transformer2.py | Python | apache-2.0 | 27,249 | [
"MOE"
] | 3d57e2e8a021d4c401faa9ea4af6abbadbff6cd649ae3198f0510ebf88493745 |
"""
CBMPy: CBQt4 module
===================
Constraint Based Modelling in Python (http://pysces.sourceforge.net/getNewReaction)
Copyright (C) 2009-2022 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands
This program is free software: you can redistribute it and/or modify
it under the terms of the GN... | SystemsBioinformatics/cbmpy | cbmpy/_qtloader.py | Python | gpl-3.0 | 1,561 | [
"PySCeS"
] | fb0795e6998b2cea54df8496e1971690b703c6917256c2e552011e52b357eebf |
#!/usr/bin/env python
import sys
sys.path.append("../")
import numpy as np
import pandas as pd
import scipy.io
from functions import *
from sklearn.decomposition import PCA
import _pickle as cPickle
import neuroseries as nts
import sys
import scipy.ndimage.filters as filters
from sklearn.mixture import GaussianMixtu... | gviejo/ThalamusPhysio | python/figure_article_v4/main_article_v4_fig_6.py | Python | gpl-3.0 | 15,364 | [
"Gaussian"
] | d3ca35b2439b312e5127a9ce19cca1abb794dbc3ef31750d3d6965bdb5b3b5ef |
import cmd
import types
from pymol import _cmd
import threading
import traceback
import thread
import re
import time
import pymol
from chempy import io
from cmd import DEFAULT_ERROR, DEFAULT_SUCCESS, loadable, _load2str, Shortcut, \
is_string, is_ok
# cache management:
def _cache_validate(_self=cmd):
r = DE... | gratefulfrog/lib | python/pymol/internal.py | Python | gpl-2.0 | 21,631 | [
"ChemPy",
"MOE",
"PyMOL"
] | 6ff678e59c68f467e578c93fecf98f04f4f1376af578ca7fc81cbdd002728e00 |
from ase import *
from gpaw import GPAW
a = 5.0
H = Atoms([Atom('H', (a/2, a/2, a/2))],
pbc=False,
cell=(a, a, a))
calc = GPAW(fixdensity=True)
H.set_calculator(calc)
H.get_potential_energy()
calc = GPAW(fixdensity=3)
H.set_calculator(calc)
H.get_potentia... | qsnake/gpaw | oldtest/fixdensity.py | Python | gpl-3.0 | 331 | [
"ASE",
"GPAW"
] | 0744bd44be844239d13224fbb7782643aa10cf3be90aac1a5730965f0d92e93c |
import sys
import glob
import re
import redhawk
import parse_pra_output
import os
import subprocess
import argparse
import rm_analysis
tool_prefix = {'phRAIDER':'phRA', 'RepeatScout':'RS', 'pre-phRAIDER' : 'prephRA', 'RAIDER':'RA', 'naive':'na'}
args = None
seed_map = None
data_map = None
f_list = set()
stats_map = {}... | karroje/RAIDER_eval | collect_stats.py | Python | gpl-3.0 | 17,397 | [
"BLAST"
] | b3d8d632ba96ede0f7f2fcbd75270d26be680e2a496e1d6af4e63e1b713e5905 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 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
#... | psi4/psi4 | psi4/driver/p4util/exceptions.py | Python | lgpl-3.0 | 9,507 | [
"Psi4"
] | e5ffbe7f799bd85eac411b76f205374cfee4dd7b740fdf9cc88040ed7fdcd6db |
# -*- coding: utf-8 -*-
###############################################################################
#
# This source file is part of the tomviz project.
#
# Copyright Kitware, Inc.
#
# This source code is released under the New BSD License, (the "License").
#
# Unless required by applicable law or agreed to in ... | mathturtle/tomviz | tomviz/python/tomviz/io/formats/numpy.py | Python | bsd-3-clause | 1,599 | [
"VTK"
] | bd9f995e10db33e2ff0cbed7148f65f3470bf586bfab20db630d0111e4d99189 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from time import strftime # use for clock simulation - shows time!
from time import sleep # use for delay in loops - wait for n sec.!
from threading import Thread # use to create a single threat for time
import sys # for unicode_to_kos0006u
import types ... | DeathPoison/roomControll | twistedMaster.py | Python | mit | 9,087 | [
"TINKER"
] | 0310e5b9e5f84ff42a4907e427a3e7c596c3b776abccedc01a91db26d7d0538e |
from scene import *
from PIL import Image
import sound
import random
GAME_READY = 0
GAME_PLAY = 1
GAME_DYING = 2
GAME_DEAD = 3
FLOOR_IMGS = ['Ear_Of_Rice', 'Herb', 'Snail', 'Spiral_Shell', 'Turtle', 'Anchor', 'Pile_Of_Poo', 'Sailboat', 'Speedboat']
BACK_IMGS = ['Blowfish', 'Dolphin', 'Fish', 'Tropical_Fish', 'Whale... | PiscesDream/Ideas | ML/flappy/version2.py | Python | apache-2.0 | 12,208 | [
"Octopus"
] | 5a0ce89bfeca14a2fd4ac9b6157c894e4505eaa16b375bf3d688606e3f7825d5 |
"""
Unit tests for NCMC integrator.
"""
__author__ = 'John D. Chodera'
################################################################################
# IMPORTS
################################################################################
import numpy as np
import os
running_on_github_actions = os.environ.get(... | choderalab/perses | perses/tests/test_ncmc_integrator.py | Python | mit | 2,662 | [
"OpenMM"
] | e2fffc83bd9c8484c5a7463efb60376cf39e174cf6417852f1ae7823610c9735 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2011-2018, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
import numpy as np
import wradlib.clutter as clutter
import unittest
from .. import io as io
from .. import util as util
from .. import georef as ge... | kmuehlbauer/wradlib | wradlib/tests/test_clutter.py | Python | mit | 6,685 | [
"NetCDF"
] | 15372cca460c7aba3737858f798f46033045d2bc65ec950854f6f0fb34b7f0ed |
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and University of
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., Universit... | jonasfoe/COPASI | copasi/bindings/python/unittests/Test_CFunctionParameters.py | Python | artistic-2.0 | 3,472 | [
"COPASI"
] | 6d43fa843f3c8955e42f1cfeaccb101ad1a74e0ddc23cb0919168a4a333d3b48 |
# shipMissileRoFMF2
#
# Used by:
# Ship: Breacher
# Ship: Jaguar
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Missile Launcher Operation"),
"speed", ship.getModifiedItemAttr("shipBonusMF2"), skill="Minmatar Fr... | bsmr-eve/Pyfa | eos/effects/shipmissilerofmf2.py | Python | gpl-3.0 | 328 | [
"Jaguar"
] | b501570d545ca8f303803cb1b102f55a814d86c49511f35a681324c5d293d6e4 |
import numba.visitors
class FixMissingLocations(numba.visitors.NumbaVisitor):
"""
Fix missing source position information.
"""
def __init__(self, context, func, ast, *args, **kwargs):
super(FixMissingLocations, self).__init__(context, func, ast,
... | shiquanwang/numba | numba/missing.py | Python | bsd-2-clause | 651 | [
"VisIt"
] | decb78e65b2b5ca64b27ddb68a25141013dca570deced78b7d4b732018e25a81 |
import pytest
import unittest.mock as mock
import tilemapbase.ordnancesurvey as ons
import os, re
def test_project():
assert ons.project(-1.55532, 53.80474) == pytest.approx((429383.15535285, 434363.0962841))
assert ons.project(-5.71808, 50.06942) == pytest.approx((134041.0757941, 25435.9074222))
assert o... | MatthewDaws/TileMapBase | tests/test_ordnancesurvey.py | Python | mit | 14,708 | [
"VMD"
] | 4f412149aa6e7c00e6d54d20a10de0ecf17103aad9338c5b67fcb31f368edac3 |
"""Utilities to manage processing flowcells and retrieving Galaxy stored info.
"""
import os
import glob
import urllib
import urllib2
import cookielib
import json
def parse_dirname(fc_dir):
"""Parse the flow cell ID and date from a flow cell directory.
"""
(_, fc_dir) = os.path.split(fc_dir)
parts = fc... | Cyberbio-Lab/bcbio-nextgen | bcbio/illumina/flowcell.py | Python | mit | 2,940 | [
"Galaxy"
] | 547f706c2b3272e23255b1d8e3ec5d68506ddf9a8692c3da6d3e56c8abb85ef9 |
#!/usr/bin/env python
"""Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit http://feedparser.org/ for the latest version
Visit http://feedparser.org/docs/ for the latest documentation
Required: Python 2.1 or later
Recommended: Python 2.3 or later
Recommended: CJKCodecs... | DebugUself/planet | code/planet/feedparser.py | Python | mit | 126,728 | [
"NetCDF",
"VisIt"
] | b5b607701d4d298993e3da3abb4726d43ed439b35475ee2a51afa81f249e04eb |
# Changes:
#
# can now specify 'zipfile = None', in this case the Python module
# library archive is appended to the exe.
# Todo:
#
# Make 'unbuffered' a per-target option
from distutils.core import Command
from distutils.spawn import spawn
from distutils.errors import *
import sys, os, imp, types, stat
import ... | FBergeron/FeedNotifier | patch/build_exe.py | Python | bsd-3-clause | 70,347 | [
"VisIt"
] | 6b79bdb957b8312ae7f03e4c1a404828900fa93334f8831f7cfd322af8167485 |
from setuptools import setup, find_packages
setup(
name='django-citeit',
version='3.0.0',
packages=find_packages(exclude=['tests*']),
description='A Django app for the creation of an annotated bibliography.',
long_description=('Visit https://github.com/unt-libraries/django-citeit '
... | unt-libraries/django-citeit | setup.py | Python | bsd-3-clause | 992 | [
"VisIt"
] | ef4e5625feb2afb1e0553112d1151e50ef29b10cf824cc854859bf454ca83015 |
"""
QAPI introspection generator
Copyright (C) 2015-2018 Red Hat, Inc.
Authors:
Markus Armbruster <armbru@redhat.com>
This work is licensed under the terms of the GNU GPL, version 2.
See the COPYING file in the top-level directory.
"""
from qapi.common import *
from qapi.gen import QAPISchemaMonolithicCVisitor
fro... | dslutz/qemu | scripts/qapi/introspect.py | Python | gpl-2.0 | 8,533 | [
"VisIt"
] | e336e531ec95be09edb5bc4f7f2d3a505c3e84d80123779795c25b53b28eaba6 |
########################################################################
# $Id$
########################################################################
""" A set of common tools to be used in pilot commands
"""
import sys
import time
import os
import pickle
import getopt
import imp
import types
import urllib2
import... | coberger/DIRAC | WorkloadManagementSystem/PilotAgent/pilotTools.py | Python | gpl-3.0 | 17,039 | [
"DIRAC"
] | 19cda2428a28ca118f5b094f3edca3fcaf9c0b05120c3fb1a6c0d1a34f612578 |
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import copy
import json
import os
import py... | mattclay/ansible | test/units/galaxy/test_collection_install.py | Python | gpl-3.0 | 45,990 | [
"Galaxy"
] | 0937cc1c5f14bab177c8a359565b14bcbc601d82b006744f641573d801ade723 |
# ESSIL log detection from mov files
# Author: Nick Hoernle
# Date: 09/18/2017
import pdb
import pandas as pd
import numpy as np
import os
import cv2
import copy
#########################################################################
##### HELPER FUNCTIONS
#########################################################... | NickHoernle/Essil | utils/log_detection.py | Python | mit | 11,289 | [
"Gaussian"
] | d2609c78b7b3894d5a4450ec5be3f96404cb2643137d162764372167b4f79553 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.