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
# -*- coding: utf-8 -*- import random import openerp from openerp import SUPERUSER_ID, tools import openerp.addons.decimal_precision as dp from openerp.osv import osv, orm, fields from openerp.addons.web.http import request from openerp.tools.translate import _ from openerp.exceptions import UserError class sale_ord...
orchidinfosys/odoo
addons/website_sale/models/sale_order.py
Python
gpl-3.0
23,429
[ "VisIt" ]
cbfcd7344dfe7e6f9edaeffe34e0d473e8790e5d4e45d43821c3939fbbeb1417
# -*- coding: utf-8 -*- """ Representation of nodes in Document """ from expanders import * __all__ = ['Node', 'TextNode'] class Node(object): def __init__(self): self.parent = None self.children = [] self.actual_text_content = None # actual TextNode to fill data in self.last_add...
andrejtokarcik/python-sneakylang
sneakylang/node.py
Python
bsd-3-clause
2,618
[ "VisIt" ]
5e50ab4d8bf758d0401a847dbafa191c888e629e8b0218e65f5014eca5eb25e5
from __future__ import print_function import sys from time import ctime import numpy as np from ase.units import Hartree import gpaw.mpi as mpi from gpaw import extra_parameters from gpaw.occupations import FermiDirac from gpaw.utilities.timing import timer from gpaw.utilities.memory import maxrss from gpaw.response...
robwarm/gpaw-symm
gpaw/response/chi0.py
Python
gpl-3.0
22,249
[ "ASE", "GPAW" ]
bc7494d23ff9aed437732a6cac26cf50d6439314c821d9b3eb8c4afe7795cdbd
# encoding: utf-8 "Module for performing energy minimization." import gtk from ase.gui.simulation import Simulation from ase.gui.widgets import oops, pack, AseGuiCancelException import ase import numpy as np class MinimizeMixin: minimizers = ('BFGS', 'BFGSLineSearch', 'LBFGS', 'LBFGSLineSearch', 'MDMin', 'FIRE')...
slabanja/ase
ase/gui/minimize.py
Python
gpl-2.0
5,318
[ "ASE" ]
11fcb58159a65e273c392ce62ae51a818b2ef934c06775458390e66e62802733
"""WGS primary analysis (GVCF).""" from resolwe.process import ( BooleanField, Data, DataField, FloatField, GroupField, IntegerField, ListField, Process, StringField, ) from resolwe.process.models import Process as BioProcess class WorkflowWgsGvcf(Process): """Whole genome sequ...
genialis/resolwe-bio
resolwe_bio/processes/workflows/wgs_gvcf.py
Python
apache-2.0
15,751
[ "BWA" ]
5653adc390bed53a2f94c12ae4962d86566866208fd8b38d311ba49ee3641a1a
#!C:\OSGEO4~1\bin\python.exe # ****************************************************************************** # $Id: gdal_sieve.py 8e263710cb425c4a8b76b1f363b98be41ea0a983 2018-04-30 19:40:20 +1000 Ben Elliston $ # # Project: GDAL Python Interface # Purpose: Application for applying sieve filter to raster dat...
kubaszostak/gdal-dragndrop
osgeo/apps/Python27/Scripts/gdal_sieve.py
Python
mit
7,339
[ "NetCDF" ]
a3832347c9b49e80ed52f6d9affe5ca4c2d2fdd3f5be03eda7f7301183223e7b
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Abinit Post Process Application author: Martin Alexandre last edited: May 2013 """ import sys,os import string from PyQt4 import Qt,QtGui,QtCore #utility import utility.global_variable as var #utility import reading.read_graph as ReadGraph class OpenGraph(QtGui.QD...
jmbeuken/abinit
scripts/post_processing/appa/gui/open_graph.py
Python
gpl-3.0
4,135
[ "ABINIT" ]
66cb6195dd57dc7df00b2487ece8826e3bd084685ffffd25f4bf7d3478f43868
# pytest framework --------------------------------------------- import requests from rs4 import siesta, webtest from rs4.psutil import Puppet, processutil import subprocess import time import sys import os import xmlrpc.client class Launcher (webtest.Target): def __init__ (self, script, port, ssl = False, silent ...
hansroh/skitai
skitai/testutil/launcher.py
Python
mit
2,578
[ "SIESTA" ]
39b2d916cafb72680aade38c098579a9a6d5c52249a21ba390510799622a55a2
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import numpy as np import visvis as vv import zlib, base64 # todo: parameterize; allow custum Gaussian blobs at specified positions. if Fals...
pbfy0/visvis
functions/peaks.py
Python
bsd-3-clause
13,422
[ "Gaussian", "MOE" ]
b101e65856205459261297df5fe75ec45b925dde2454d98e1f9b4f84448e496e
# objectedit.py --- # # Filename: objectedit.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Wed Jun 30 11:18:34 2010 (+0530) # Version: # Last-Updated: Wed Mar 28 14:26:59 2014 (+0530) # By: Harsha # Update #: 917 # URL: # Keywords: # Compatibility: # # # Commentary: # # This code is f...
dilawar/moose-full
moose-gui/objectedit.py
Python
gpl-2.0
18,617
[ "MOOSE" ]
c8ca116ee37ecc593508d24a3d5609e117d15b132e9c25c5d91ae7d72459b8e2
# coding=utf8 # # Copyright 2013 Dreamlab Onet.pl # # 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; # version 3.0. # This library is distributed in the hope that it will be useful, # bu...
tikan/rmock
src/rmock/runners/smtp/server.py
Python
lgpl-3.0
9,153
[ "VisIt" ]
7e0c9647866aafe340d34590ec3ae032d6dea627f89672adb0b2b81c81dce282
# -*- coding: utf-8 -*- import ast import base64 import csv import functools import glob import itertools import logging import operator import datetime import hashlib import os import re import simplejson import time import urllib import urllib2 import urlparse import xmlrpclib import zlib from xml.etree import Eleme...
MarkusTeufelberger/openerp-web
addons/web/controllers/main.py
Python
agpl-3.0
70,131
[ "VisIt" ]
e728ad9eec58dc3e6052729ad6cb4591370ab3f9dff54981a2dc9bad31ce4864
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/pbc/dft/test/test_multigrid.py
Python
apache-2.0
17,666
[ "PySCF" ]
b94eca6a747e82b191e409a2e4a19521f4e1907cd165f292668d4a505f8ed5f8
# Copyright 2009-2014 Eucalyptus Systems, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 3 of the License. # # This program is distributed in the hope that it will be useful, # b...
eucalyptus/eucalyptus-database-server
eucadb/__init__.py
Python
bsd-2-clause
7,398
[ "VisIt" ]
d14811b8d3fd2ecba99e29fda79431939fafe864857b4025bb39f7151affa7e2
# -*- coding: utf-8 -*- # Copyright (C) 2017 - 2018 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., Un...
copasi/COPASI
copasi/bindings/python/examples/example7.py
Python
artistic-2.0
6,974
[ "COPASI" ]
298b9cf7085df981d2adeaf3c754e13330082460f1ecf9b2e1d67faac8a990f7
import factory from django.contrib.auth import get_user_model from django.contrib.sites.shortcuts import get_current_site from django.contrib.auth import views as auth_views from django.core import mail from django.core.urlresolvers import reverse from connect.accounts import factories from connect.accounts import vi...
nlhkabu/connect
connect/accounts/tests/test_views.py
Python
bsd-3-clause
15,271
[ "VisIt" ]
302e20ebfbb27b6ca4b064ae2e597aee4c6d87cee262cb06b4d5def52e0a0734
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of c...
chatelak/RMG-Py
rmgpy/data/thermo.py
Python
mit
61,952
[ "VisIt" ]
7170afea03457e2304bfa7f1e8adfbc29c3903ea41d09090271bca03a7af26ac
import re import logging import lib.const as C import lib.visit as v from .. import util from ..meta import methods, classes, class_lookup from ..meta.template import Template from ..meta.clazz import Clazz from ..meta.method import Method from ..meta.field import Field from ..meta.statement import Statement, to_stat...
plum-umd/pasket
pasket/decode/singleton.py
Python
mit
3,768
[ "VisIt" ]
9ce757418892bfaa0bcd92ffc12a39e5c87d98160905604aa8493e11258ff7ca
#!/usr/bin/env python3 # (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # ...
jstrobl/rts2
scripts/u_point/u_select.py
Python
lgpl-3.0
9,273
[ "VisIt" ]
b434a3fcaca7a01d8b3a4ba202bd2d27c8db58136cb7215f704f69607f6ef5f1
""" This is the File StorageClass, only meant to be used localy """ __RCSID__ = "$Id$" import os import shutil import errno import stat from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Resources.Storage.Utilities import checkArgumentFormat from DIRAC.Resources.Storage.Storage...
vmendez/DIRAC
Resources/Storage/FileStorage.py
Python
gpl-3.0
19,287
[ "DIRAC" ]
1dabc9ff7bf23012ae173a2506572d237a691cd27f13f6586cd7129c19e44749
""" ==================================================================== Linear and Quadratic Discriminant Analysis with confidence ellipsoid ==================================================================== Plot the confidence ellipsoids of each class and decision boundary """ print(__doc__) from scipy import lin...
mayblue9/scikit-learn
examples/classification/plot_lda_qda.py
Python
bsd-3-clause
5,046
[ "Gaussian" ]
cd4c255e33b774983540d997ec9aa52902141a3f92797c6279255a3f30658792
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Lenovo, Inc. # # 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 # ...
halberom/ansible
lib/ansible/modules/network/lenovo/cnos_vlag.py
Python
gpl-3.0
13,376
[ "VisIt" ]
e3b66c516770fd5c2276b457847e850a185c95561871fa46a35a11ebf13bc249
#!/usr/bin/env python3 """ Copyright 2021 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 ...
pwillworth/galaxyharvester
html/getSchematicEvents.py
Python
gpl-3.0
6,080
[ "Galaxy" ]
b66370ea25f1a3571231fa3c0a24938ba3c92cc338911edd0839ddb2b6f0916c
#opyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
mpekalski/Y8M
bstnet/train.py
Python
apache-2.0
42,385
[ "NEURON" ]
cdab08dabcfb2b2e8ee8de7b5a34bdbdf066c5c58135207f4bc2ad3dabaf59c7
from __future__ import print_function, division # imports: internal import copy import glob import os import requests import time # imports: external from astropy import units as u from astropy.coordinates import SkyCoord import astropy.constants as constants from astropy.cosmology import Planck15, z_at_value from as...
aburgasser/splat
splat/simulate.py
Python
mit
110,951
[ "Galaxy" ]
5a5f8d9ed64c6b2c1749b921520ddbac9e7ff53fd46ad763bf4e2beac57db5dd
#!/usr/bin/env python import os try: __IPYTHON__ import sys del sys.argv[1:] except: pass import srwl_bl import srwlib import srwlpy import srwl_uti_smp def set_optics(v=None): el = [] pp = [] names = ['S1', 'S1_HCM', 'HCM', 'HCM_DCM_C1', 'DCM_C1', 'DCM_C2', 'DCM_C2_HFM', 'HFM', 'After_H...
mrakitin/sirepo
tests/template/srw_generate_data/nsls-ii-hxn-beamline-ssa-closer.py
Python
apache-2.0
36,110
[ "CRYSTAL", "Gaussian" ]
874153e5d2e9a2c8fb344910b065d7763dafbc56876194acab1d22bc50a64a1e
#!/usr/bin/env python # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
wizmer/NeuroM
examples/end_to_end_distance.py
Python
bsd-3-clause
4,397
[ "NEURON" ]
cd8b824d4b6d778dd8605fb05c2be801e0d917048b414261a90477cf96fc4ce3
""" Chainer trader agents implementation for cryptocurrency trading and trade simulation author: Fernando H'.' Canteruccio, José Olímpio Mendes date: 12/08/2017 """ import numpy as np np.random.seed(42) from cached_property import cached_property from datetime import timedelta from time import time import chainer fr...
naripok/cryptotrader
cryptotrader/agents/cn_agents.py
Python
mit
11,993
[ "Gaussian" ]
7cd241e54b2023065df374476f34d4e8cbdbc7fdde2ef81845a0a7af0567a17d
""" Module simplifying manipulation of XML described at http://libvirt.org/formatdomain.html """ import logging from autotest.client.shared import error from virttest import xml_utils from virttest.libvirt_xml import base, accessors, xcepts from virttest.libvirt_xml.devices import librarian class VMXMLDevices(list):...
rbian/virt-test
virttest/libvirt_xml/vm_xml.py
Python
gpl-2.0
78,414
[ "VisIt" ]
b78048d6750d9a813c229a52739b397bf83a5bd0cc7b7b05d6fec95c0a881f52
# (c) 2016, Adrian Likins <alikins@redhat.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
rmfitzpatrick/ansible
test/units/cli/test_galaxy.py
Python
gpl-3.0
19,299
[ "Galaxy" ]
192f7facae2deadf412855c366b3f68758e0fb800003809501394d143ad95193
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
0x0all/nupic
py/nupic/image/__init__.py
Python
gpl-3.0
15,372
[ "Gaussian" ]
292b150eebbfefe155c9c9053dfa3060e4982db134938d315c5b180e8d024de5
import os from packaging.version import Version import numpy as np import pandas as pd from shapely.geometry import Point, Polygon, LineString, GeometryCollection, box from fiona.errors import DriverError import geopandas from geopandas import GeoDataFrame, GeoSeries, overlay, read_file from geopandas import _compat...
geopandas/geopandas
geopandas/tests/test_overlay.py
Python
bsd-3-clause
26,222
[ "Bowtie" ]
b9a95cacb09bae40ada7bb809e873371c59b9b23227ae9c783aac9ac911fc31b
# analysis.py # # Copyright March 2016, Javier L. Vazquez <jlancha@die.upm.es> # # This file is part of SPECTRUM # Cognitive SDR prototype using BladeRF and the GNU Radio framework. # # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
jLantxa/spectrum
sensor_deprecated/analysis.py
Python
gpl-3.0
7,730
[ "Gaussian" ]
9d5711c8c91e7b6b3d7c185fde20eb75103fe0e404dd9485d2ff1a085fe15fb8
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from typing import Tuple import numpy as np from ...core import ContinuousParameter, InformationSourceParameter, ParameterSpace from ...core.loop.user_function import MultiSourceFunctionWrapper def multi_...
EmuKit/emukit
emukit/test_functions/multi_fidelity/borehole.py
Python
apache-2.0
2,997
[ "Gaussian" ]
352899856920b40c4cccd093f0fe3956961589c8bc804c58ec73c47d983b995d
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2019 Manas.Tech # License granted by Canonical Limited # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # ...
chipaca/snapcraft
snapcraft/plugins/v1/crystal.py
Python
gpl-3.0
4,466
[ "CRYSTAL" ]
2b963ae972dac43ef132c58143422467309ea0929c7028258ec6fb606aa3506d
from setuptools import setup, find_packages setup( name='openchemistry-molecules', version='0.1.0', description='Molecular data, containers and RESTful API.', packages=find_packages(), install_requires=[ 'girder>=3.0.0a5', 'girder-jobs', 'jsonpath-rw==1.4.0', 'avogadro==1.92...
OpenChemistry/mongochemserver
girder/molecules/setup.py
Python
bsd-3-clause
622
[ "Avogadro" ]
d2aa1c2b0c92dd196d9443dcbdf01dfd0530cc219f26b4e3359af15b7f02ddb7
""" An example showing the norm and phase of an atomic orbital: isosurfaces of the norm, with colors displaying the phase. This example shows how you can apply a filter on one data set, and dislay a second data set on the output of the filter. Here we use the contour filter to extract isosurfaces of the norm of a com...
dmsurti/mayavi
examples/mayavi/mlab/atomic_orbital.py
Python
bsd-3-clause
2,844
[ "Mayavi" ]
232343ca1243ca974c56eb888327110675505cc3306944caf6bcdc32e7881c54
import pickle import numpy as np import tensorflow as tf import ruamel.yaml from pkg_resources import resource_filename import guerilla.data_handler as dh class NeuralNet: training_modes = ['adagrad', 'adadelta', 'gradient_descent'] ####################### ### INITIALIZATIONS ### ####################### d...
StephAO/guerilla
guerilla/play/neural_net.py
Python
mit
32,562
[ "Gaussian" ]
030f205ea779e72ff686bf4313630aecab90d6757746c3f4929b63303cce04f4
""" :mod: GFAL2_StorageBase .. module: python :synopsis: GFAL2 class from StorageElement using gfal2. Other modules can inherit from this use the gfal2 methods. :TODO: When we are totally migrated to python 3, we can explicitely remove the str cast of all the ctx calls. They were added because we would receive un...
ic-hep/DIRAC
src/DIRAC/Resources/Storage/GFAL2_StorageBase.py
Python
gpl-3.0
74,055
[ "DIRAC" ]
35f1d303d74188641ed2415f5909813380a2124e29984522d1c6574efa2beccc
"""test_moose_attribs.py: """ __author__ = "Dilawar Singh" __copyright__ = "Copyright 2017-, Dilawar Singh" __version__ = "1.0.0" __maintainer__ = "Dilawar Singh" __email__ = "dilawars@ncbs.res.in" __status__ = "Development" import sys import os import moose print(moose.about()) attribs = [ "AdExIF", "AdT...
BhallaLab/moose-core
tests/core/test_moose_attribs.py
Python
gpl-3.0
3,202
[ "MOOSE", "NEURON" ]
6b8026c1a1945774bdd5335bde759aa2641d4db01c46796309f8a7b725b093eb
from __future__ import absolute_import from __future__ import print_function import io import os.path import codecs import sys from .visitors import (formatters as formattervisitors, flatteners as flattenervisitors, solvers as solvervisitors, import...
colossalbit/cssypy
cssypy/processors.py
Python
bsd-3-clause
11,024
[ "VisIt" ]
430e712a523fe01e93f71269673494da5f10b039b76d470c8c5a52dcf8721cd0
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
nhynes/neon
tests/test_mergebroadcast_layer.py
Python
apache-2.0
10,292
[ "Gaussian" ]
587d4cca56a05cd789450da3a4ee59b98f05c25751faf8ac3dd79cd3341d80e4
__author__ = 'Charlie' import tensorflow as tf import os, sys from six.moves import urllib import tarfile import time from datetime import datetime FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_integer('batch_size', 128, """Number of images to process in a batch.""") tf.app.flags.DEFINE_...
shekkizh/TensorflowProjects
Misc/Deblurring.py
Python
mit
10,291
[ "Gaussian" ]
ee613f0a84d59812778fb6faf14e3eadca1c7c6d1ec6dee44725bbaf88f8f4cc
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class testModule2(NoConfigModuleMixin, ModuleBase): """Resample volume according to 4x4 homogeneous transform. """ def __init__(self, module_manager): # initialise our base class ...
nagyistoce/devide
modules/user/testModule2.py
Python
bsd-3-clause
3,019
[ "VTK" ]
c9c2e835a4e9364c942b9148ca509388aed7e1bbc68e455d16f2b18645db6e98
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'TaskStatus.first_seen' db.add_column(u'profiles_taskstatus', 'first_seen', self.gf('django.db.mode...
216software/Profiles
communityprofiles/profiles/oldmigrations/0075_auto__add_field_georecord_geo_id_segments__add_field_flatvalue_geograp.py
Python
mit
23,758
[ "MOE" ]
10b22aef9eba65d2fefb58484c6cde1fc8e96e403f3fe6562f737b818fc11f69
#!/usr/bin/env python """This test ensures that the mapper does not change the LookupTable that may be shared among different mappers. Specifically, the vtkMapper and vtkScalarsToColorsPainter classes use the LookupTable to map scalars to colors. When they do this they set the LookupTable's Alpha ivar. They should d...
aashish24/VTK-old
Rendering/Core/Testing/Python/TestMapperLUT.py
Python
bsd-3-clause
6,452
[ "VTK" ]
f6582e4842559a13d339b0ebbaa08e617d11c37b99774be725fa6ea9adacca14
from distutils.core import setup import sys try: import sqlalchemy except: print '' print "** SQLAlchemy is recommended, and required for Juno\'s database access" print '** Download from: http://sqlalchemy.org/download.html' print '** Or run: `easy_install SQLAlchemy`' print '** If you\'re not ...
breily/juno
setup.py
Python
mit
2,451
[ "Brian" ]
57e4aaba00d481973140d94375dde7f7f753528fbef7d5c2b278739abcc27868
from setuptools import setup setup( name='Wicken', version='0.2.0', description='Maps metadata concepts to concrete specifications and file formats', author='David Stuebe', author_email='DStuebe@ASAScience.com', url='https://github.com/ioos/wicken', classifiers=[ 'Development Status...
ioos/wicken
setup.py
Python
apache-2.0
916
[ "NetCDF" ]
225a1d53b6cee40fdcee8612ebe3cc98cdb005e826246558bfff86106774e100
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2015 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
eustislab/horton
horton/constants.py
Python
gpl-3.0
1,498
[ "Avogadro" ]
5745e5d8d01b5be4b5a5637cca169bca7e109a439ab02ac8c308dcd3824307ba
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
hkariti/ansible
lib/ansible/modules/network/avi/avi_applicationprofile.py
Python
gpl-3.0
6,742
[ "VisIt" ]
cbd36c0774dc5cb9cb9b937839b732b30b80189b22e314366cd40d7742878097
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
jensreeder/scikit-bio
skbio/diversity/beta/tests/test_base.py
Python
bsd-3-clause
7,119
[ "scikit-bio" ]
60e3242dd59e0c48150a38262465adf929ec51ce9ba4422802858be3ffe24465
# Python imports import locale # Engine imports from myrmidon.myrmidon import MyrmidonProcess, MyrmidonGame, MyrmidonError from myrmidon.consts import * from pygame.locals import * # OpenGL imports from OpenGL.GL import * # game imports from consts import * from helpers import * from gui_elements imp...
Fiona/AreWeAlone
gui.py
Python
mit
30,759
[ "Galaxy" ]
3f75ed4b3c327e3facac493c940b1767ed033ff72149ad5ed670f478723d00d7
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow and Renderer ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) renWin.SetAlphaBitPlanes(1) iren = vtk.vtkRenderWind...
hlzz/dotfiles
graphics/VTK-7.0.0/Rendering/Core/Testing/Python/TestWindowToImageTransparency.py
Python
bsd-3-clause
1,973
[ "VTK" ]
39b3971292b47cc1192343e121590f704282309a7b9ea606983a0aa964cf1f8e
#!/usr/bin/env python -i # preceding line should have path for Python on your machine # matplotlib_plot.py # Purpose: plot Temp of running LAMMPS simulation via matplotlib # Syntax: plot.py in.lammps Nfreq Nsteps compute-ID # in.lammps = LAMMPS input script # Nfreq = plot data point every this many ...
akohlmey/lammps
python/examples/matplotlib_plot.py
Python
gpl-2.0
2,234
[ "LAMMPS" ]
3e31016ff716a5828a062723f2e68b9b74c8b0d3428c864fd308102f19b9adac
# import_export_google_civic/views.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.shortcuts import redirect, render from import_export_google_civic.controllers import import_voterinfo_from_json def import_voterinfo_from_json_view(request): """ Take data from google civic informa...
wevoteeducation/WeVoteBase
import_export_google_civic/views.py
Python
mit
980
[ "VisIt" ]
4d1dfd17caecdfb19b9ff0980902b5830e07c6b57c10bee10cd76f4eb2a290fe
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
datacommonsorg/api-python
datacommons/utils.py
Python
apache-2.0
4,862
[ "VisIt" ]
9eb25887361249557d249522f1e13c960d7c83015883b250242a9e8f371d2d56
# Copyright (C) Nial Peters 2015 # # This file is part of gns_flyspec. # # gns_flyspec 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. ...
yannikbehr/spectroscopy
src/spectroscopy/flux/scans.py
Python
gpl-3.0
18,988
[ "Gaussian" ]
3425df80e196465f405a43a361eaa56e3f9748fd00844e8ea144692bd70cf858
import os import re as regex from nipype.interfaces.base import( TraitedSpec, CommandLineInputSpec, CommandLine, File, traits, isdefined, ) class BseInputSpec(CommandLineInputSpec): inputMRIFile = File(mandatory=True, argstr='-i %s', desc='input MRI volume') o...
FCP-INDI/nipype
nipype/interfaces/brainsuite/brainsuite.py
Python
bsd-3-clause
36,143
[ "ADF" ]
9404a01221446da96723315f16fe1c89951460cc26eeaa0bc53947a79dbbc937
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'growthstreet.settings') import sqlite3 import django django.setup() from django.contrib.auth.models import User #from django.contrib.sites.models import Site from growthstreet.models import UserDetails,LoanRequest users = User.objects.all() details = UserDet...
NamanJn/django-tech-test
ennot.py
Python
bsd-3-clause
691
[ "ADF" ]
14f9b6de6e2c1387faabffc30ad8a14e60e39b1545fc55bba9e7643fe424fed6
''' Created on Aug 28, 2014 @author: David Zwicker <dzwicker@seas.harvard.edu> Holds classes useful for describing and fitting the ground profile ''' from __future__ import division import itertools import numpy as np from scipy import ndimage from shapely import geometry from utils.data_structures.cache import c...
david-zwicker/cv-mouse-burrows
mouse_burrows/algorithm/objects/ground.py
Python
bsd-3-clause
10,474
[ "Gaussian" ]
723c0339d6138f5f43f8e24cb15a465eb5837b6258090506f72a433e21feb595
#!/usr/bin/env python3 # # santi_pipeline.py # # Code for script to identify OTUs from metabarcoding reads. # # This is an almost direct translation of a pipeline written by Santiago # Garcia (Forest Research), to generate OTU clusters from metabarcoding ITS # reads in Phytophthora. # # (c) The James Hutton Institute 2...
widdowquinn/THAPBI-pycits
pycits/scripts/santi_pipeline.py
Python
mit
15,721
[ "BLAST" ]
542b48371f8d2b2626dd71172684f9b8675a293cbb9d375a5165d239931d2884
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: Brian Cherinka, José Sánchez-Gallego, and Brett Andrews # @Date: 2018-07-20 # @Filename: test_quantities.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) # # @Last modified by: andrews # @Last modified time: 2018-10-19 14:10:15 ...
sdss/marvin
tests/tools/test_quantities.py
Python
bsd-3-clause
10,522
[ "Brian" ]
1f0c5d95d317e364a9e7536afdb88a2a13aeaebd9f447aa4fccf3a200fc7fd7c
# Copyright (C) 2013 Paul Weaver <p.weaver@ruthorn.co.uk> # # 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) any later version. # # This pro...
ch3pjw/junction
test/test_formatting_api.py
Python
gpl-3.0
20,094
[ "exciting" ]
9c54dd4f96d8e9af401e248f2986e3af6b680eab70b9661527ea8e17c7c364f1
import numpy as np from sklearn import svm, datasets import matplotlib.pyplot as plt from sklearn.cross_validation import train_test_split #from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score from sklearn.metrics import roc_curve, auc def compute_J(N, theta): if N == 0: re...
akhilpm/Masters-Project
arc_cosine/test.py
Python
mit
3,207
[ "Gaussian" ]
07fa84c1949b53121fc86082236a1caebdec88e714eefc365f755efe53cd6822
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
thaim/ansible
lib/ansible/modules/network/avi/avi_errorpageprofile.py
Python
mit
4,621
[ "VisIt" ]
ce9cfcf71a706b83416bfe4fa879b7aec44cf148fc1723f4138e5036b7b90a35
# This module contains interfaces to external visualization programs # and a visualization base class # # Written by Konrad Hinsen # last revision: 2001-1-3 # """This module provides visualization of chemical objects and animated visualization of normal modes and sequences of configurations, including trajectories. Vi...
fxia22/ASM_xf
PythonD/site_python/MMTK/Visualization.py
Python
gpl-2.0
15,016
[ "VMD" ]
550d19025030ab0eaee018acd608100911659fd32cea91d40b09ecdef7c9a5b4
#!/usr/bin/env python3 from twython import Twython import pickle import consts def adduser(): tw = Twython( consts.keys['API_KEY'], consts.keys['API_SECRET'], ) auth = tw.get_authentication_tokens() tw = Twython( consts.keys['API_KEY'], consts.keys['API_SECRET'], ...
lesguillemets/termeet.py
termeet/adduser.py
Python
mit
1,405
[ "VisIt" ]
71c972e9d4c28356ce035a992ae216212eacf317b3725c9048acf303a2f8e06c
#!/usr/bin/env python """ list FileCatalog file or directory """ import os import getopt from COMDIRAC.Interfaces import DSession from COMDIRAC.Interfaces import createCatalog from COMDIRAC.Interfaces import pathFromArguments if __name__ == "__main__": import sys from DIRAC.Core.Base import Script class Para...
calancha/COMDIRAC
Interfaces/scripts/dls.py
Python
gpl-3.0
13,037
[ "DIRAC" ]
7aa6bc8e70c8070e0622228fa41c41ce6e2187ce21a27992c902b53b2c1ef55f
# (C) British Crown Copyright 2014 - 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/integration/test_grib2.py
Python
gpl-3.0
12,080
[ "Gaussian", "NetCDF" ]
d626d6ffee980352e4225a1d600d1fa33504f4473102d1390a3c9c8e71973254
"""The lattice module define the class to handle 3D crystal lattices (the 14 Bravais lattices). """ import os from pymicro.external import CifFile_module as CifFile import enum import functools import math import numpy as np from numpy import pi, dot, transpose, radians from matplotlib import pyplot as plt class Crys...
heprom/pymicro
pymicro/crystal/lattice.py
Python
mit
84,101
[ "CRYSTAL", "VTK", "pymatgen" ]
993d7ef0f84554e03eb99e09ea9b96329ce48f17a59bc7cb43d074a1d2c0c7a5
"""openmoltools: Tools for Small Molecules, Antechamber, OpenMM, and More. """ from __future__ import print_function DOCLINES = __doc__.split("\n") import os import sys import shutil import tempfile import subprocess from distutils.ccompiler import new_compiler from setuptools import setup, Extension import numpy tr...
juliebehr/gaff2xml
setup.py
Python
gpl-2.0
1,899
[ "OpenMM" ]
995af86156fa2bbcffa6a6d469a4ddd790ec8e1accaced14704e246f845c4ee9
""" DIRAC FileCatalog base class for mix-in classes to manage users and groups """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import time import threading from DIRAC import S_OK, S_ERROR, gConfig, gLogger from DIRAC.Core.Security im...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/UserGroupManager/UserAndGroupManagerBase.py
Python
gpl-3.0
1,032
[ "DIRAC" ]
b8d6891adb0528e3c54dbf29e4c5840bd2bcd343b6837ac0b9901a289dbea91d
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from collections import OrderedDict from dj...
ta2-1/pootle
pootle/apps/pootle_language/models.py
Python
gpl-3.0
5,908
[ "VisIt" ]
51dc20ef74b8423f2b75e795f85a1161c5ee76cc626275141498873f0d008461
#!/usr/bin/env python ######################################################################## # File : dirac-agent # Author : Adria Casajus, Andrei Tsaregorodtsev, Stuart Paterson ######################################################################## """ This is a script to launch DIRAC agents. Mostly internal. ""...
ic-hep/DIRAC
src/DIRAC/Core/scripts/dirac_agent.py
Python
gpl-3.0
1,675
[ "DIRAC" ]
64c3ac7c37507f947233b5bb464507aaa74706ccc01d5bfd6788769a40ff7371
#* 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 """ Creates...
harterj/moose
test/tests/mesh/stitched_mesh/stitched_mesh.py
Python
lgpl-2.1
2,075
[ "MOOSE", "VTK" ]
1a6f06ba61bd5d4a037eadac8127155d3d9484fc7672cf1dee1be8a5a5c5f217
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of c...
pierrelb/RMG-Py
rmgpy/data/base.py
Python
mit
56,494
[ "RDKit" ]
46e1170f0c5724d96d4381e96502b0d4d9c10959ada610afb740878ba4099e68
#!/usr/bin/env python # Copyright 2007, Michael J. Harms # This program is distributed under General Public License v. 3. See the file # COPYING for a copy of the license. __description__ = \ """ pdb_mutator.py Mutates a residue in a pdb file. """ __author__ = "Michael J. Harms" __date__ = "070729" __description...
bryan-lunt/pdb_tools
pdb_mutator.py
Python
gpl-3.0
5,997
[ "CHARMM" ]
e43b1641baefc178a5425999d379980afc2d5e81282aa623138fd1c99e9c3d44
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/songs/lib/__init__.py
Python
gpl-2.0
24,660
[ "Brian" ]
24939cb12f70b7a43a7a64ed0c4a961b8c80477e208c95a3721187c431b28362
import moose import rdesigneur as rd rdes = rd.rdesigneur() rdes.buildModel() moose.showfields( rdes.soma )
BhallaLab/moose-examples
tutorials/Rdesigneur/ex1_minimalModel.py
Python
gpl-2.0
108
[ "MOOSE" ]
2ae5e439410200957a83499ca4d5ec02d964d6f2caa497d1fd44a7ab6ec72533
import ectl from ectl import rundeck import collections import re import sys import os import string import tempfile import filecmp import shutil from ectl import pathutil, launchers from giss import ioutil import copy import subprocess import signal import time import netCDF4 # TODO: Be careful not to leave around z...
citibeth/modele-control
lib/ectl/rundir.py
Python
lgpl-2.1
9,666
[ "NetCDF" ]
65b3eee43c22b4387b5719df001e5e3481ed031756a9b767250d56e4e445b393
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/symm/test/test_Dmatrix.py
Python
apache-2.0
3,899
[ "PySCF" ]
bdb2b1f59f8550abcb09ed85fd2e7ff920cfebe77f986427cce3c7ff5698c7eb
# Copyright (c) 2012, Cloudscaling # 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 applicable...
raildo/nova
nova/hacking/checks.py
Python
apache-2.0
21,089
[ "VisIt" ]
3faf0fb8c8c61d4756e8db1d135daa43f4517b3f7e2f093cd6008f90378b1f5a
""" ======================================== 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. .. seealso:: `scipy.s...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/special/__init__.py
Python
mit
27,521
[ "Gaussian" ]
e4e6e67200f1cad0347a5e67dec76da31a859dc18be9e2ca994ed78daa0f1e48
from pymol.cgo import * cgo = [ BEGIN, LINES, COLOR, 1,1,1, VERTEX, 0,0,0, COLOR, 0,0,1, VERTEX, 0,0,1, COLOR, 1,1,1, VERTEX, 0,0,0, COLOR, 0,1,0, VERTEX, 0,1,0, COLOR, 1,1,1, VERTEX, 0,0,0, COLOR, 1,0,0, VERTEX, 1,0,0, END, # nitrogen COLOR, 0.25, 0.25, 1.00,...
gratefulfrog/lib
python/pymol/pymol_path/examples/devel/cgo04.py
Python
gpl-2.0
4,128
[ "PyMOL" ]
4523dbc64fb9846269026f27deb464c1bd0653497f37def7dd2ba79f7f160a8c
"""Tests for module da on Domain Adaptation """ # Author: Remi Flamary <remi.flamary@unice.fr> # # License: MIT License import numpy as np from numpy.testing.utils import assert_allclose, assert_equal import ot from ot.datasets import get_data_classif from ot.utils import unif def test_sinkhorn_lpl1_transport_clas...
aje/POT
test/test_da.py
Python
mit
17,045
[ "Gaussian" ]
11b733d01e8bbe1df64e9f504b21f1c6259c3f457da098c0beaa654e77d98598
import abc import copy import logging import itertools import os import uuid import sys import time import datetime import signal import subprocess import re import multiprocessing import signal from yapsy.PluginManager import PluginManager from yapsy.IPluginLocator import IPluginLocator from threading import Thread...
cbun/assembly
lib/assembly/plugins.py
Python
mit
25,066
[ "BWA" ]
e28d114707957cc95081f67d93c80e581c4a7be30fb704a3aaee261c3b71bbbd
from __future__ import print_function from __future__ import absolute_import from .DataTestTemplate import _DataTest from PyOpenWorm.muscle import Muscle from PyOpenWorm.neuron import Neuron class MuscleTest(_DataTest): ctx_classes = (Muscle, Neuron) def test_muscle(self): self.assertTrue(isinstanc...
gsarma/PyOpenWorm
tests/MuscleTest.py
Python
mit
938
[ "NEURON" ]
66fce04987711db3b785fdf7d48f85759012e8d1793014d9a4a1bc90085ba3f0
def get_dfs(adj_list): ''' return DFS for given adjacency list ''' parent = {} def walk_node(u): ''' Recursivly visit each node ''' # iterate through the adjacency list of the node for v in adj_list[u]: # Check if node is not visited i...
arunghosh/python-graph-search
dfs.py
Python
mit
804
[ "VisIt" ]
975810a660e3eda0f79e97a3830788721cada231af15a2626e77f331531337e0
from topo.pattern.basic import Gabor, SineGrating, Gaussian import __main__ import numpy import pylab import matplotlib from numpy import array, size, mat, shape, ones, arange from topo import numbergen #from topo.base.functionfamily import IdentityTF from topo.transferfn.misc import PatternCombine from topo.transferfn...
jesuscript/topo-mpi
contrib/modelfit.py
Python
bsd-3-clause
198,416
[ "Gaussian" ]
85436b305f31a0712a19f74820e97d110db5c2d84e28338599cfdf24486f4946
# Copyright (C) 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
bileto/transitfeed
tests/transitfeed/testschedule.py
Python
apache-2.0
39,512
[ "CASINO" ]
7ac08a935f15064f8211a10a1b56521f30579f00785307e9f72fd7556fff4967
# -*- coding: utf-8 -*- import pytest from skosprovider.uri import UriPatternGenerator from skosprovider_sqlalchemy.models import Initialiser from skosprovider_sqlalchemy.providers import ( SQLAlchemyProvider ) from tests import DBTestCase from tests.conftest import create_data, create_visitation from skosprovide...
cahytinne/skosprovider_sqlalchemy
tests/test_providers.py
Python
mit
13,796
[ "VisIt" ]
1b4a1e4de616c349361d9b8c90e9bd95f087b75c36537bd58af84433b8422675
""" LLVM pass that converts intrinsic into other math calls """ from __future__ import print_function, absolute_import from llvmlite import ir class _DivmodFixer(ir.Visitor): def visit_Instruction(self, instr): if instr.type == ir.IntType(64): if instr.opname in ['srem', 'urem', 'sdiv', 'udiv...
jriehl/numba
numba/targets/intrinsics.py
Python
bsd-2-clause
2,075
[ "VisIt" ]
858750a3d86c782212eaaff18b7a0901dbd30bb4e44e0e977ebada366c412cd3
""" bct slope v0.01 - implements an alternative market classification algo Bitcoin Trade Simulator Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
Pascal66/ga-bitbot
bct_slope.py
Python
gpl-3.0
39,220
[ "Brian" ]
a2de5ca6562d226f84920ed08ad076bff5e5d100b352d4a6bb27f2172ed77e11
from unittest import skipUnless from bok_choy.promise import EmptyPromise from bok_choy.web_app_test import WebAppTest from acceptance_tests.config import ENABLE_SSO_TESTS, MARKETING_URL_ROOT, LMS_URL_ROOT from acceptance_tests.mixins import LogistrationMixin, OttoAuthenticationMixin, LMSLogoutMixin from acceptance_t...
mferenca/HMS-ecommerce
acceptance_tests/test_auth.py
Python
agpl-3.0
2,605
[ "VisIt" ]
40691757a92fb2b25a996a0590056d67d4c22e5429687b114873ddaaf75387a4
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2009 Gary Burton # Copyright (C) 2010 Peter Landgren # Copyright (C) 2011 Adam Stein <adam@csh.rit.edu> # Copyright (C) 2017 Paul Frankl...
SNoiraud/gramps
gramps/plugins/docgen/rtfdoc.py
Python
gpl-2.0
22,731
[ "Brian" ]
b168d4028808313affe34c4afc04c940d5cdeab5996051da88e4f7cff19c914f
# -*- 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 json import os import pytest import ...
roadmapper/ansible
test/units/galaxy/test_collection.py
Python
gpl-3.0
52,350
[ "Galaxy" ]
e44fe530cec1fe4e75a5d64250d769610eabf5da23dd1a373725c2d6916ff608
import os import logging import gzip import pysam import numpy as np from collections import defaultdict, namedtuple from .utils import read_tbi, reg2bins CaddRecord = namedtuple('CaddRecord', 'chrom pos stop ref alt raw phred') class CaddFilter(object): ''' An object that filters/annotates VCF records u...
gantzgraf/vape
vase/cadd_filter.py
Python
gpl-3.0
14,536
[ "pysam" ]
667e50e27221132e0c7ae05dc581c054fcacc95488442cf4996f453faf63911d
####################################################### # Copyright (c) 2015, ArrayFire # All rights reserved. # # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # http://arrayfire.com/licenses/BSD-3-Clause ######################################################...
arrayfire/arrayfire_python
arrayfire/image.py
Python
bsd-3-clause
40,535
[ "Gaussian" ]
a5d911ef65dcda715e679ea36519ec83162784bcf8ec2bb2d46c1287cbc1f121
# -*- coding: utf-8 -*- """ molvs.resonance ~~~~~~~~~~~~~~~ Resonance (mesomeric) transformations. :copyright: Copyright 2016 by Matt Swain. :license: MIT, see LICENSE file for more details. """ import logging from rdkit import Chem log = logging.getLogger(__name__) MAX_STRUCTURES = 1000 class ResonanceEnumer...
ptosco/rdkit
rdkit/Chem/MolStandardize/resonance.py
Python
bsd-3-clause
3,753
[ "RDKit" ]
3518c3d0e733afbc2240616693a564357717c8b2306c6679609239296bca5a8b
import unittest import doctest import os import commands from StringIO import StringIO import cyvcf from cyvcf import utils suite = doctest.DocTestSuite(cyvcf.parser) def fh(fname): return file(os.path.join(os.path.dirname(__file__), fname)) class TestVcfSpecs(unittest.TestCase): def test_vcf_4_0(self): ...
arq5x/cyvcf
test/test_vcf.py
Python
mit
25,676
[ "pysam" ]
bb45bbbe43b4b8d98271d0425cb2e0d3da05eeef37e3ba6951e186a24a65694e