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
# # gPrime - A web-based genealogy program # # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # 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 Softw...
sam-m888/gprime
gprime/filters/rules/person/_hasassociation.py
Python
gpl-2.0
2,568
[ "Brian" ]
90dee5414432ac266731c55c7c8141725833a9334c11b4b2601e1daad0f17237
# Copyright 2012 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 ...
supunkamburugamuva/course-builder
modules/dashboard/dashboard.py
Python
apache-2.0
24,513
[ "VisIt" ]
678422df3ff5093b23d0380003ffcabd5e75af4ef5ef264302a687e3bf547ef7
import numpy as np from copy import deepcopy from scipy.optimize import minimize def gauss2d(x, y, p): """ Returns a 2-dimensional gaussian function, following the equation (x-x0)**2 (y-y0)**2 g(x,y) = a * exp( - ( --------- + --------- ) ) + b 2*sx...
danielrd6/ifscube
imgtools.py
Python
gpl-3.0
2,515
[ "Gaussian" ]
48a2188506731fddeedf7664af732b94e082cf19e5c4bde7b6c7c3af297c4939
from __future__ import print_function from __future__ import division __author__ = """Alex "O." Holcombe""" ## double-quotes will be silently removed, single quotes will be left, eg, O'Connor import numpy as np import itertools #to calculate all subsets from copy import deepcopy from math import atan, pi, cos, sin, sqr...
alexholcombe/MOTcircular
experiment_specific/transient_attention/helpersAOHtargetFinalCueLocatn.py
Python
mit
31,372
[ "Gaussian" ]
8c785bde3e1ff19756cf80808f45793d0600f5b3591b81dd8f5dfe5352eb30f4
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved. # # This source code is licensed under the OSL-3.0 license found in the # LICENSE file in the root directory of this source tree. import decimal import os import time import pytest from django.co...
suutari-ai/shoop
shuup_tests/browser/admin/test_refunds.py
Python
agpl-3.0
4,880
[ "VisIt" ]
17ee2d10deca0c63ae79e5853ae808cc6cb9a9dd5384de0b30cd2795fc92a948
# Lint as: python3 # Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
tensorflow/lingvo
lingvo/jax/layers/transformer_models.py
Python
apache-2.0
45,932
[ "MOE" ]
68997a95e3e64923f773e067fcaebed58c013b598d3b0288ca3ecb7ce45997fd
"""QM/MM interface with QM=FHI-aims, MM=gromacs QM could be something else, but you need to read in qm-atom charges from the qm program (in method 'get_qm_charges') One can have many QM regions, each with a different calculator. There can be only one MM calculator, which is calculating the whole system. Non-bond...
askhl/ase
ase/calculators/ase_qmmm_manyqm.py
Python
gpl-2.0
61,697
[ "ASE", "FHI-aims", "GROMOS", "Gromacs" ]
7030da5c0dd7eae64e45f6218c08d1c7d90c3ef6e0874df0df8a9461109372c2
# Disable flake8 reporting # flake8: noqa import pytest from jose.backends import RSAKey from jose.jws import verify expected_payload = b"It\xe2\x80\x99s a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there\xe2\x80\x99s no knowing where you might be swept o...
mpdavis/python-jose
tests/rfc/test_rfc7520.py
Python
mit
208,424
[ "Brian" ]
0888591da3a9127ae25cff0c94a76bc3b164315aeb87d2094c6d00d511ab8def
import numpy as np import theano import theano.tensor as T # library with theano PDF functions PI = np.pi C = -0.5 * np.log(2*PI) def normal(x, mean, sd): return C - T.log(T.abs_(sd)) - ((x - mean)**2 / (2 * sd**2)) def normal2(x, mean, logvar): return C - logvar/2 - (x - mean)**2 / (2 * T.exp(logvar)) def laplac...
Philip-Bachman/Sequential-Generation
LogPDFs.py
Python
mit
8,091
[ "Gaussian" ]
7c49ef0576423cfa5c3ae6c35af0232d8b7061e52a7871539b311b8fe53bbac6
# Copyright 2014-2020 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Tests for linearized deformation operator...
kohr-h/odl
odl/test/deform/linearized_deform_test.py
Python
mpl-2.0
10,293
[ "Gaussian" ]
fe03d9e7d1e982b0b506d9c4517c8edd54dab9e213ca882173df8236d4ec9429
# -*- encoding: utf-8 from sqlalchemy import Column from sqlalchemy import engine_from_config from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Table from sqlalchemy import testing from sqlalchemy.dialects.mssql import adodbapi fr...
wujuguang/sqlalchemy
test/dialect/mssql/test_engine.py
Python
mit
16,586
[ "ASE" ]
c9b799e4046a3627090931d00d7b0df5564f3a55975ba380d441c89fd8838c2b
#! /usr/bin/env python __RCSID__ = "$Id$" from DIRAC.Core.Base.Script import parseCommandLine, getPositionalArgs parseCommandLine() from DIRAC.Resources.Storage.StorageFactory import StorageFactory from DIRAC.Core.Utilities.File import getSize from types ...
Sbalbp/DIRAC
Resources/Storage/test/TestStoragePlugIn.py
Python
gpl-3.0
34,356
[ "DIRAC" ]
267c3530cad6f62490aa4374459ac488db62e325c9dd6559c8a3f29201050e2e
from __future__ import division, generators import math, sys, warnings, datetime, new import numpy as np from numpy import ma import matplotlib rcParams = matplotlib.rcParams import matplotlib.artist as martist import matplotlib.axis as maxis import matplotlib.cbook as cbook import matplotlib.collections as mcoll im...
tkaitchuck/nupic
external/linux64/lib/python2.6/site-packages/matplotlib/axes.py
Python
gpl-3.0
259,904
[ "Gaussian" ]
f40657df84e29685f73a28172adc29193e684872a0ade46048b23217eb261e2b
''' Script to plot summary snowpit from data example of the standard snowpit format Simon Filhol, December 2016 ''' from snowpyt import pit_class as pc filename = '/home/tintino/github/snowpyt/snowpyt/data_example/20170209_Finse_snowpit_reverseY.xlsx' #[insert path to file] pit1 = pc.Snowpit() pit1.filename = fil...
ArcticSnow/snowpyt
build/lib.linux-x86_64-2.7/snowpyt/Example.py
Python
mit
1,102
[ "CRYSTAL" ]
dc43b1a87cab168f0fc57a7644babcdf1f4b40fc440522edcec3844c075f6b5c
# -*- coding: utf-8 -*- # Copyright (c) 2015-2020, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 """Tests for computing orbitals, densities and orbital angular momenta.""" import numpy as np from unittest import TestCase from exatomic import Universe, nwchem, molcas from exatomi...
exa-analytics/atomic
exatomic/algorithms/tests/test_orbital.py
Python
apache-2.0
2,362
[ "ADF", "MOLCAS", "NWChem" ]
1824b846cd32447d3f95b2f9f474b84776d371b0d596f19d593666673c4f35ec
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. class NodeVisitor(object): def visit(self, node): # This is ugly as hell, but we don't have multimethods and...
indykish/servo
tests/wpt/harness/wptrunner/wptmanifest/node.py
Python
mpl-2.0
4,149
[ "VisIt" ]
6375ff95a88755407db26a3f95740a36307fd89b5f8f3f2076bcb44b27834ec8
#!/usr/bin/python # -*- coding: UTF-8 -*- #Copyright (C) 2007 Adam Spencer - Free Veterinary Management Suite #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 #of the License, or ...
cyncyncyn/evette
languagefiles/language_lithuanian_1.3.2.py
Python
gpl-2.0
67,755
[ "VisIt" ]
2b83713f64461a195e2544b7290118a8573961a39addeaea4b43b516ffbc43ad
# ----------------------------------------------------------------------------- # 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. # -------------------------------------------...
Jorge-C/bipy
skbio/parse/sequences/clustal.py
Python
bsd-3-clause
5,425
[ "scikit-bio" ]
8d2d235274d0387011ae2bc98b2d3bb94de2ef096e5137db6402c1447e2e2b51
""" Synchronizer Module that keeps the database synchronized with the CS Module that updates the RSS database ( ResourceStatusDB ) with the information in the Resources section. If there are additions in the CS, those are incorporated to the DB. If there are deletions, entries in RSS tables for those elements ...
DIRACGrid/DIRAC
src/DIRAC/ResourceStatusSystem/Utilities/Synchronizer.py
Python
gpl-3.0
20,133
[ "DIRAC" ]
65d56261b34c4a74a84a42cda901ecc29872de3b0d99ab44e7815be017227bd6
#========================================================================= # StrSearchOO_test.py #========================================================================= # # Object-Oriented implementation of strsearch. # # This dataset is borrowed from the stringsearch implementation provided # the MiBench embedded s...
Glyfina-Fernando/pymtl
accel/strsearch/StrSearchOO_test.py
Python
bsd-3-clause
16,705
[ "CRYSTAL" ]
e66d0fd4cd9f9e690ff42db927e40868345d016be7bb5370054ace3eb15692f2
from __future__ import print_function from __future__ import division from tractor import PixelizedPSF, HybridPixelizedPSF, PointSource, Tractor, ModelMask, Image, PixPos, Flux from legacypipe.survey import RexGalaxy, LogRadius import pylab as plt import numpy as np from astrometry.util.plotutils import dimshow, PlotSe...
legacysurvey/pipeline
py/test/rex.py
Python
gpl-2.0
3,920
[ "Galaxy" ]
2748ec411f99f1ee905410a44b115a2632d7abdf1a8efdbe1e4b319003680407
# -*- encoding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 6 _modified_time = 1417082998.373734 _template_filename='templates/user/login.mako' _template_uri='/user/login.mako' _template_cache=cache.Cache(__name__, _...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/database/compiled_templates/user/login.mako.py
Python
gpl-3.0
11,786
[ "Galaxy" ]
4790f76e9bb52f5f1995aab7043a814868fc5e5facf4ab7e2b9ec719f17d9598
""" ============================== Probability Calibration curves ============================== When performing classification one often wants to predict not only the class label, but also the associated probability. This probability gives some kind of confidence on the prediction. This example demonstrates how to vi...
manhhomienbienthuy/scikit-learn
examples/calibration/plot_calibration_curve.py
Python
bsd-3-clause
11,598
[ "Gaussian" ]
881761afe64b3ac774573753585dba0b69ba9da41e7437f009792bfb042e487b
import unittest import scipy import pysal import numpy as np from pysal.spreg import error_sp_regimes as SP from pysal.spreg.error_sp import GM_Error, GM_Endog_Error, GM_Combo @unittest.skipIf(int(scipy.__version__.split(".")[1]) < 11, "Maximum Likelihood requires SciPy version 11 or newer.") class TestGM_Error_Regime...
chhao91/pysal
pysal/spreg/tests/test_error_sp_regimes.py
Python
bsd-3-clause
14,925
[ "COLUMBUS" ]
65b164fb691e492a16343bf06d95d2e88bb5c479226bcfbedf7d8b5016980142
import argparse import sys, traceback import os import json sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) from os import path from lib.sitkaAPI import downloadUnzipTopo, APIGet from lib.env import setEnvFromFile from lib.loghelper import Logger from lib.exception import DataException...
SouthForkResearch/CHaMP_Metrics
tools/substrate_raster.py
Python
gpl-3.0
19,283
[ "VisIt" ]
c7d2b1925af9cb4adb1e8225d9290e1adfad9d546e156af540b2dcf8104b5bbb
from __future__ import print_function, division, absolute_import from contextlib import contextmanager from collections import namedtuple, defaultdict import sys import copy import warnings import traceback from .tracing import event from numba import (bytecode, interpreter, funcdesc, postproc, typ...
jriehl/numba
numba/compiler.py
Python
bsd-2-clause
44,381
[ "VisIt" ]
fd2fe42464060916f8db1f4520f6bbc53ddf7c08f5a7937e6e7612cdd790f449
# -*- coding: utf-8 -*- # # Moonstone is platform for processing of medical images (DICOM). # Copyright (C) 2009-2011 by Neppo Tecnologia da Informação LTDA # and Aevum Softwares LTDA # # This file is part of Moonstone. # # Moonstone is free software: you can redistribute it and/or modify # it under the terms of the GN...
aevum/moonstone
src/moonstone/ilsa/plugin.py
Python
lgpl-3.0
5,947
[ "VTK" ]
a81a486b4c10da8218300ef32ce845087c07fd64fa1b3b87e83b7ea6c8102329
from django.views.decorators.csrf import csrf_exempt from django.http import JsonResponse from django.conf import settings import os from caffe.proto import caffe_pb2 from google.protobuf import text_format import tempfile import subprocess import urllib2 from urlparse import urlparse # ******Data Layers****** def I...
Cloud-CV/IDE
caffe_app/views/import_prototxt.py
Python
gpl-3.0
24,378
[ "NEURON" ]
0017c0ce88567808a73e890f6e2bac15427422ece7c72901ad979ca8f01f719d
from Extension import Extension from moose_elements import * class MooseExtension(Extension): """ Aggregates the MOOSE specific element objects into an extension for html to latex conversion. """ def extend(self, translator): config = self.getConfigs() translator.elements.add('moose_i...
backmari/moose
python/MooseDocs/html2latex/MooseExtension.py
Python
lgpl-2.1
1,500
[ "MOOSE" ]
2cd3a5f8eda5a14a982fd4cdeabf1fbdb62dbce9764e17557c0dd4d109bb6eac
"""PES using approximate LrTDDFT scheme. """ import numpy as np from ase.units import Hartree from gpaw.pes import BasePES from gpaw.pes.state import State import gpaw.mpi as mpi from gpaw.utilities import packed_index from numpy import sqrt, pi class TDDFTPES(BasePES): def __init__(self, mother, excited_daugh...
qsnake/gpaw
gpaw/pes/tddft.py
Python
gpl-3.0
7,980
[ "ASE", "GPAW" ]
411b04dc43a7b1499f5ce1ed1ee9e86545bc39a1304827af781ad5ec7c77af55
import unittest from mayavi import mlab from mayavi.core.api import NullEngine from traits.testing.api import UnittestTools from simphony_mayavi.tests.testing_utils import DummyEngine from simphony_mayavi.plugins.api import EngineManagerStandaloneUI from simphony_mayavi.plugins.add_source_panel import AddSourcePanel ...
simphony/simphony-mayavi
simphony_mayavi/plugins/tests/test_engine_manager_standalone_ui.py
Python
bsd-2-clause
3,959
[ "Mayavi" ]
61753c17338a0d0ff6970603cecfea1c126a62c9a6584aaf28ff3d3529a75e05
# -*- coding: utf-8 -*- """This module is responsible for parsing the command line arguments.""" import argparse import logging import sys log = logging.getLogger(__name__) # DEFAULT COLUMN NAMES model_list = ['PAmodel'] system_list = ['PAseasonal'] # DEFAULT THRESHOLD default_threshold = 0.03 desc = ("Prototype fo...
vab9/mosyco
mosyco/parser.py
Python
mit
3,761
[ "VisIt" ]
a75b6071631701ba8dce4c1956c17c9f9b9c44b81bdd8b38760fa818485fea07
""" ASCII art to image converter. This is the main modlue that contains the parser. See svg.py and aa.py for output modules, that can render the parsed structure. (C) 2006 Chris Liechti <cliechti@gmx.net> """ NOMINAL_SIZE = 2 CLASS_LINE = 'line' CLASS_STRING = 'str' CLASS_RECTANGLE = 'rect' CLASS_JOIN = 'join' CLAS...
aroberge/docpicture
aafigure/aafigure.py
Python
bsd-3-clause
37,732
[ "VisIt" ]
5e168d2693f1ce71e801cb057517ae2f5ce49e4f117ff42f3d4a4db0ef1b5777
import types import os import imp from DIRAC.Core.Utilities import List from DIRAC import gConfig, S_ERROR, S_OK, gLogger from DIRAC.ConfigurationSystem.Client.Helpers import getInstalledExtensions from DIRAC.ConfigurationSystem.Client import PathFinder class ModuleLoader( object ): def __init__( self, importLocat...
calancha/DIRAC
Core/Base/private/ModuleLoader.py
Python
gpl-3.0
9,290
[ "DIRAC" ]
cc69c6fd7f4cfb58bc48b9b7f0fd4e963bf2142922c441eff5f7d19129c05cf7
#!/usr/bin/env python import sys import time import binascii import socket import struct import random import math G_maxV =32 G_noise=64 def AWGN_generator(NOISE_POWER=64): # Generates additive white Gaussian Noise samples with zero mean and a standard deviation of 1. p=1 while ...
claudebideau/illustrabot2oo
test/test_ue.py
Python
gpl-2.0
4,040
[ "Gaussian" ]
e30709f85430d1ea815c199baa77d1b7023469e0830149911188ecb6b5afec69
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (...
yoer/hue
apps/useradmin/src/useradmin/test_ldap_deprecated.py
Python
apache-2.0
33,875
[ "MOE" ]
671866b6470cbd48ba7799c69f1808093615d94cab07920225c8349139b14262
# $HeadURL: $ ''' JobCommand The JobCommand class is a command class to know about present jobs efficiency ''' from datetime import datetime, timedelta from DIRAC import S_OK, S_ERROR from DIRAC.ResourceStatusSystem.Command.Command import Co...
avedaee/DIRAC
ResourceStatusSystem/Command/JobCommand.py
Python
gpl-3.0
13,472
[ "DIRAC" ]
4caafb8d3dbeec6d87d9ce94486edbe8e13fe11819b06e3f999cab737fe5b598
import os, glob, sys # functionality like getSampleNames include: "../common/misc/misc_snake.py" # Check if the uses specified the proper input and output directories if not 'FASTQDIR' in globals(): print('You have to specify the root directory of the fastq files!') sys.exit(1) if not 'OUTDIR' in globals(): ...
cbg-ethz/NGS-pipe
snake/wgs/wgs_snake.py
Python
apache-2.0
4,634
[ "BWA" ]
9ac093aedf3c87a348aad2360f6c8014ce8c72c5a1d860a647634d6ded10387d
NOUNS = [ 'aardvark', 'albatross', 'alligator', 'alpaca', 'angelfish', 'anteater', 'antelope', 'armadillo', 'badger', 'barracuda', 'bat', 'beagle', 'bear', 'beaver', 'bird', 'brontosaurus', 'bulldog', 'bumblebee', 'butterfly', 'camel', ...
hinfaits/calendarz
calendarz/names/nouns.py
Python
apache-2.0
3,723
[ "Elk", "Firefly", "Jaguar", "MOOSE", "ORCA", "Octopus" ]
c4e43b9a85fb228aab08ba60e00e65b53aa2f9c31010ad02e62d311359b6ae6c
#!/usr/bin/python import numpy as np from . import elements import math # constants: bohrRadius2angstroem = 0.5291772109217 # find a good place for this # additional procedures for CUBE files: def loadNCUBE( fname ): f = open(fname ) #First two lines of the header are comments header1=f.readline() ...
ProkopHapala/ProbeParticleModel
pyProbeParticle/basUtils.py
Python
mit
9,776
[ "CRYSTAL", "FHI-aims" ]
a0b3d78874224196397ae2c3114ca7f0f87d65c61dae6c9b160025b765990d20
# -*- Mode: Python; coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2007-2013 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Fre...
andrebellafronte/stoq
stoqlib/lib/event.py
Python
gpl-2.0
6,236
[ "VisIt" ]
3e4095ab832c6945e04268669c1ef46ab9af5408862657382dfd503f59c521f2
"""Copy number detection using read counts, with cn.mops. http://www.bioconductor.org/packages/release/bioc/html/cn.mops.html """ from contextlib import closing import os import re import shutil import subprocess import pysam import toolz as tz from bcbio import bam, install, utils from bcbio.distributed.multi impor...
SciLifeLab/bcbio-nextgen
bcbio/structural/cn_mops.py
Python
mit
11,121
[ "Bioconductor", "pysam" ]
8b105625dfb2f641a0113494640e1a15a17cded7b28145897177ffc267c06cd4
from ase import Atoms from multiasecalc.lammps.reaxff import ReaxFF from multiasecalc.utils import get_datafile d = 0.74 #d = 3.0 a = 6.0 atoms_all = Atoms("H3", positions = [(0, 0, 0), (0, 0, d), (0, 0, 2*d)], cell = (100*a, 100*a, 100*a)) atoms_all.cen...
csmm/multiase
tests/mixer/h2_lammps.py
Python
gpl-2.0
565
[ "ASE", "LAMMPS" ]
e5f7b50f7af79f757fc65d1f87e5d415eed0f62a7840fbd8c8442461ab609d42
""" POOL XML Catalog Class This class handles simple XML-based File Catalog following the POOL project schema. It presents a DIRAC generic File Catalog interface although not complete and with several extensions """ __RCSID__ = "$Id$" import os, xml.dom.minidom, types from DIRAC import S_OK, S_ERROR class...
sposs/DIRAC
Resources/Catalog/PoolXMLCatalog.py
Python
gpl-3.0
10,878
[ "DIRAC" ]
9057e37eb68c847886fc8bc765cb54c977c6142d2a490e71ef8e2eeafd6c335b
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
qiime2/q2-types
q2_types/feature_data/_format.py
Python
bsd-3-clause
14,938
[ "BLAST" ]
58e308bdab5c5fc77e44ba3a3afe6def7d6139e2bb92ecfa2b386dd5efe5b0d4
#pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # # # (c) 2010...
Chuban/moose
python/chigger/filters/ContourFilter.py
Python
lgpl-2.1
2,812
[ "MOOSE", "VTK" ]
a722f0a8f9afe18baa56c7a20a9125d5505cd57f44a86feacfc19b79263df881
# -*- encoding: utf-8 -*- # # Copyright © 2013 SoftLayer Technologies, an IBM company # # Author: Brian Cline <bcline@softlayer.com> # # 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 # # h...
briancline/mercuro
mercuro/mercuro.py
Python
apache-2.0
2,173
[ "Brian" ]
2bba196dfe1f4f0595cd1d1214f95a24cf101adea030a1be3fedf961a687c8ad
# -*- coding: utf-8 -*- # # mc_neuron.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or #...
terhorstd/nest-simulator
pynest/examples/mc_neuron.py
Python
gpl-2.0
7,794
[ "NEURON" ]
f173b1151a5292b20a60edea1310eb8a7d6db6fc9fcef930bfb792f72e584990
# Copyright 2014, 2016, Tresys Technology, LLC # Copyright 2016, 2017, Chris PeBenito <pebenito@ieee.org> # # This file is part of SETools. # # SETools 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, ei...
TresysTechnology/setools
setools/policyrep/netcontext.py
Python
lgpl-2.1
6,871
[ "Brian" ]
3936ec76e24cc4032d567971c2797d34c9b145aff72ead9342440be031f0dbbd
############################################################################### ## ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary forms, with or without ## modification, ...
CMUSV-VisTrails/WorkflowRecommendation
vistrails/core/packagemanager.py
Python
bsd-3-clause
31,321
[ "VisIt" ]
d95151fec0c088849f984e97898c2ee85b0b6d555b7c8005a95922c73126c95d
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.marker" _valid_props = { "autocolorscale",...
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/scattercarpet/_marker.py
Python
mit
61,867
[ "Bowtie" ]
e4f2727d70a9f148122f0d4215c823689cff3cff637cff78003ba6302c30503a
# Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
tensorflow/probability
tensorflow_probability/python/experimental/mcmc/snaper_hmc.py
Python
apache-2.0
52,362
[ "Gaussian" ]
307a0db2d21348b8721852ecdc132ce60036cdaea6fc6d77aada2d33db4c9b60
# # QAPI introspection generator # # Copyright (C) 2015-2016 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 import * # Caveman's json.dumps() replacement (we're stuck...
gongleiarei/qemu
scripts/qapi-introspect.py
Python
gpl-2.0
7,230
[ "VisIt" ]
b02ac81fbf94d62fb7bbe8cec54d06ea8eb4b3b9568889849af4612e9c01cd47
from __future__ import print_function, absolute_import, division from future.builtins import * from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
Autodesk/molecular-design-toolkit
moldesign/integrators/openmm.py
Python
apache-2.0
4,202
[ "OpenMM" ]
0e4e718fde0feef2a3396bd443e27d290d99f0185ecaf5799781916ae4dd9575
#!/usr/bin/env python '''unit testing code for pysam. Execute in the :file:`tests` directory as it requires the Makefile and data files located there. ''' import pysam import unittest import os import shutil import sys import collections import subprocess import logging import array from TestUtils import checkBinaryE...
brendanofallon/pysam
tests/SamFile_test.py
Python
mit
70,883
[ "BWA", "pysam" ]
8f1b25a5aa28d59ea968c4f4abbaf51dbc2cec6c7dff76d6d335f5e3d3be6dfa
#!/usr/bin/env python # Copyright 2015 The Kubernetes Authors All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
r2d4/minikube
hack/boilerplate/boilerplate.py
Python
apache-2.0
5,271
[ "VisIt" ]
66e7aeaf7029fc2b594b1b3f23dce6c2e1613e3155e0632dc641b1215826078d
import bottle import json import pprint import rauth.service ListenPort = "2379" CONSUMER_KEY = "SET HERE YOUR CLIENT/CONSUMER KEY" #This is the URL of the REST Server RESTURL = "https://localhost:9910" oaSrv = rauth.service.OAuth2Service( name = "DIRAC", consumer_key = CONSUMER_KEY, consumer_secret = "", ...
DIRACGrid/RESTDIRAC
RESTSystem/Test/OauthPortalExample.py
Python
gpl-3.0
5,196
[ "DIRAC" ]
95299168dededa1250947bb731c9c6a1212919364458bab32f2734ad2e8b72bd
import genson def test_multi_gen_kwargs(): gson = \ """ { "multi_gen_kwargs_bug" : { "nested": gaussian(0, 1, draws=1, random_seed=42) } } """ genson.loads(gson) def test_gen_kwargs_with_underscore(): gson = \ """ { "gen_kwarg_with_underscore" : { "nested": gaussi...
davidcox/genson
test/test_gen_kwargs.py
Python
mit
393
[ "Gaussian" ]
8e7cb8d5e53ca9a151999325fb0ff1861280726bdb85adbedca6229f0214cf6c
#!/usr/bin/env python ######################################################################## # File : dirac-admin-get-pilot-info # Author : Ricardo Graciani ######################################################################## """ Retrieve available info about the given pilot Usage: dirac-admin-get-pilot-in...
yujikato/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_get_pilot_info.py
Python
gpl-3.0
4,330
[ "DIRAC" ]
59bfbac02f92488aee9eb32bf899d63433cc22969adf74c437a5206a338097b3
#coding:utf8 ''' Created on 2013-8-7 @author: lan (www.9miao.com) ''' from firefly.server.globalobject import GlobalObject from twisted.python import log def _doChildConnect(name,transport): """当server节点连接到master的处理 """ server_config = GlobalObject().json_config.get('servers',{}).get(name,{}) remotep...
yangdw/PyRepo
src/annotation/Firefly/firefly/master/rootapp.py
Python
mit
1,553
[ "Firefly" ]
dd2a6d4ae41e22f8bbe796fddf4750d36a1928221759e41827b89ed5d51cec38
""" Acceptance tests for Studio related to the split_test module. """ import json import os import math from unittest import skip, skipUnless from nose.plugins.attrib import attr from xmodule.partitions.partitions import Group, UserPartition from bok_choy.promise import Promise, EmptyPromise from ..fixtures.course i...
kuiwei/kuiwei
common/test/acceptance/tests/test_studio_split_test.py
Python
agpl-3.0
41,460
[ "VisIt" ]
ffe1f4e67be5352ea007a761a1cd42a04ab07892b6cd589f4289491b7f40272b
#!/usr/bin/python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2011, 2013 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
Freeseer/freeseer
src/freeseer/framework/multimedia.py
Python
gpl-3.0
16,480
[ "VisIt" ]
2c0dcc6939a0cd0c04ccb46fd0b493549929587b8cba37faf068853d6d552284
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil import subprocess import matplotlib.pyplot as plt import xml.etree.ElementTree as ET import z2pack # Edit the paths to your Quantum Espresso and Wannier90 here qedir = '/home/greschd/software/qe-6.0/bin/' wandir = '/home/greschd/software/wannier9...
Z2PackDev/Z2Pack
examples/fp/espresso/6/Bi/run.py
Python
gpl-3.0
2,759
[ "Quantum ESPRESSO", "Wannier90" ]
1daf7fa594492343302ebb5af9924f86decdf6326650f0a61eb7c0871550c2fd
import MDAnalysis as mda import numpy as np from six.moves import zip from numpy.testing import (assert_equal, assert_raises, assert_allclose) from MDAnalysisTests.datafiles import (DLP_CONFIG, DLP_CONFIG_minimal, DLP_CONFIG_order, DLP_HISTORY, ...
alejob/mdanalysis
testsuite/MDAnalysisTests/coordinates/test_dlpoly.py
Python
gpl-2.0
6,172
[ "DL_POLY", "MDAnalysis" ]
430fd51b7596071c9b5cbb2fddc30fb7b4515491aa06055cdcf9092f7f456fca
from __future__ import print_function import IMP.test import IMP import IMP.statistics import IMP.algebra import random import sys import os class MockAxes(object): def __init__(self, events): self.events = events def bar(self, left, height, width=0.8, bottom=None, **kwargs): self.events.app...
shanot/imp
modules/statistics/test/test_show_histogram.py
Python
gpl-3.0
4,310
[ "Gaussian" ]
4bc72058d78b59165a3e5d541d985471aef9421732b76b3e48e2aec814ca045e
#!/usr/bin/env python # -*- coding: utf-8 -*- # # XCode Project Creator # import os, sys, re, shutil, codecs from shutil import copyfile from os.path import join, splitext, split, exists from datetime import date from tools import * fileTargets = ['.c','.cpp','.h','.m','.mm','.pbxproj'] ignoreFiles = ['.gitignore', ...
appcelerator/titanium_mobile_tooling
scripts/iphone/projector.py
Python
apache-2.0
8,249
[ "VisIt" ]
bd7eba2cd07ae357ba7d64d698fe2c85fefc12145e3d31cc72bfb143a21a5ce3
"""Fits real periodogram data, assuming that the powers follow a chi2 distributioni around a model (power-law plus constant, typically). This is a real statistical analysis, since least-squares fitting assumes gaussian statistics. The chi2(2) distribution is strictly valid only for Fourier periodograms.""" import scip...
martindurant/astrobits
fitperiodogram.py
Python
mit
1,228
[ "Gaussian" ]
f7847946eb89cd43a44575a705560e24785f224d8e87e61890a71e7174e5b030
"""Provide the Reddit class.""" import configparser import os from itertools import islice try: from update_checker import update_check UPDATE_CHECKER_MISSING = False except ImportError: # pragma: no cover UPDATE_CHECKER_MISSING = True from prawcore import ( Authorizer, DeviceIDAuthorizer, ...
leviroth/praw
praw/reddit.py
Python
bsd-2-clause
20,843
[ "VisIt" ]
a50b0c756adad3811f92959a18094581c6ec503cb3845c6a59f01b95f65d9fc1
# (C) Copyright 2005 Nuxeo SAS <http://nuxeo.com> # Author: bdelbosc@nuxeo.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as published # by the Free Software Foundation. # # This program is distributed in the hope that it wil...
ksmaheshkumar/FunkLoad
src/funkload/Recorder.py
Python
gpl-2.0
16,292
[ "VisIt" ]
8b661c22e3e7e6c4bb3b7c37399982ec308459e3f22677e52a545c68a3e4e1fd
## # Copyright 2013 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://vscentrum.be/nl/en), # the Hercules foundation (http://w...
ULHPC/modules
easybuild/easybuild-easyblocks/easybuild/easyblocks/f/foldx.py
Python
mit
2,976
[ "FoldX" ]
7c2e1d1b4836bda2538d1c49c45b7a6800cf3563d310b18fa56ea265f5d5eb4a
# Copyright 2009 The Closure Library Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
BOKteam/common
closure/google-closure-builder_win_cn/builder/depstree.py
Python
mit
7,611
[ "VisIt" ]
6c1e5b54162a3c6c42e0abcbd43032e6fd98c7a81596ffad9e2644f2bed1ac7d
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
intel-analytics/BigDL
python/chronos/test/bigdl/chronos/model/test_prophet.py
Python
apache-2.0
4,363
[ "ORCA" ]
9b017c64dee8f42878b24dafff409d3973e76b51b512f25d1f31f3267c72c0f5
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) Brian Moe (2013-2014), Duncan Macleod (2014-) # # This file is part of LIGO CIS Core. # # LIGO CIS Core 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 Foundat...
lscsoft/cis.server
cisserver/api/__init__.py
Python
gpl-3.0
1,005
[ "Brian", "MOE" ]
721ed3d68add002b04aed90322a27f4831b7a250f98a4334e8f3e653dd74d1dc
#!/bin/env python ''' Differential expression analysis for single or paired-end RNA-Seq data using the Tuxedo protocol (Tophat, Cufflinks) and EdgeR/Voom with counts from HTSeq-count. Authors: Jessica Chung, Bernie Pope, Clare Sloggett, Gayle Philip, Marek Cmero. Description: This program implements a workflow pip...
jessicachung/rna_seq_pipeline
RNA-seq_pipeline.py
Python
mit
36,838
[ "HTSeq" ]
35681b9877fcbb5f17ce7862170fd4106b6eebc7c3422398eb1d02496e2e44b8
""" PHYLIP multiple sequence alignment format (:mod:`skbio.io.phylip`) ================================================================== .. currentmodule:: skbio.io.phylip The PHYLIP file format stores a multiple sequence alignment. The format was originally defined and used in Joe Felsenstein's PHYLIP package [1]_,...
Kleptobismol/scikit-bio
skbio/io/phylip.py
Python
bsd-3-clause
10,452
[ "BioPerl", "scikit-bio" ]
6c332c6de368e638d4b23804ddb74085a0848944728e3bdc926a47ac9d820c73
import argparse import sys, traceback import os from os import path import xml.etree.ElementTree as ET import geopandas, rasterio from shapely.geometry import Point import numpy as np sys.path.append(path.abspath(path.join(path.dirname(__file__), ".."))) from lib import env from lib.sitkaAPI import downloadUnzipTopo ...
SouthForkResearch/CHaMP_Metrics
tools/topometrics/methods/bankfull.py
Python
gpl-3.0
10,279
[ "VisIt" ]
afd67c70063df7f0a1bea99954b9da5fa402893582c29fba746b8b05c56f6e82
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
CodingCat/mxnet
python/mxnet/ndarray/random.py
Python
apache-2.0
17,552
[ "Gaussian" ]
bce05bd3aa2be5cae40adad9513885b0aebff42bfe5a59243f023a41c716b5db
#!/usr/bin/env python # -*- coding: utf-8 -*- """ wordlist_chooser.py ------------------- This is a program that chooses pseudo-random words from the amazing mnemonic wordlist that can be found here: http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html The wordlist follows these rules:...
anschwa/wordlist
wordlist_chooser.py
Python
mit
1,266
[ "VisIt" ]
cb2980cad0f1b78ad4bea79e1ceecba510f999a63493b276b50c5dda7f311f07
""" This is the RFIO StorageClass """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import re import os import time import six from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Resources.Storage.Utilities import checkArgumentFormat ...
yujikato/DIRAC
src/DIRAC/Resources/Storage/RFIOStorage.py
Python
gpl-3.0
37,876
[ "DIRAC" ]
302afb311ba8d6c4e87c544b04d9d2b37f2869f94586217e11b708f0a1250a18
import json from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter, FileType from pathlib import Path from subprocess import run DEFAULT_DATABASE = str(Path(__file__).parent / 'refs.fasta') DEFAULT_PROJECTS = str(Path(__file__).parent.parent / 'projects.json') def parse_args(): parser = ArgumentParse...
cfe-lab/MiCall
micall/blast_db/make_blast_db.py
Python
agpl-3.0
1,878
[ "BLAST" ]
f96ad2490f3d13de75423e74773336b680b11a68b1c755107ba7eb8c183ecb3f
#!/usr/bin/env python import logging import pysam import json import argparse, sys, os.path import math, time from argparse import RawTextHelpFormatter import svtyper.version from svtyper.parsers import Vcf, Variant, Sample, confidence_interval from svtyper.utils import * from svtyper.statistics import bayes_gt # -...
hall-lab/svtyper
svtyper/classic.py
Python
mit
25,877
[ "pysam" ]
c89fc8b759da364891d6ec0badb20810482605be10f7a6e7ce0e1b1d6e9d242d
""" Module containing functions interacting with the CS and useful for the RSS modules. """ from __future__ import absolute_import __RCSID__ = '$Id$' from DIRAC import gConfig, gLogger, S_OK from DIRAC.Core.Utilities.SiteSEMapping import getSEParameters from DIRAC.ConfigurationSystem.Client.Helpers.Resources import...
fstagni/DIRAC
ResourceStatusSystem/Utilities/CSHelpers.py
Python
gpl-3.0
5,490
[ "DIRAC" ]
d3b297b208860ac4fb2870036ceff973fddcc3ee394027cb40da26d712556c3a
#!/usr/bin/env python import sys import numpy as np import argparse import matplotlib.pyplot as plt from plotTools import addContourf from analysisTools import sensibleIds, groundOffset, discreteWaveletAnalysis from netcdfTools import read3dDataFromNetCDF, netcdfOutputDataset, \ createNetcdfVariable, netcdfWriteAndCl...
saskartt/P4UL
pyNetCDF/waveletAnalysisNetCdf.py
Python
mit
6,038
[ "NetCDF" ]
203e77443459ad7a33547071524de472e58a384e71616912b3a6255f623fb3ac
colors = { "1C Enterprise": { "color": "#814CCC", "url": "https://github.com/trending?l=1C Enterprise" }, "ABAP": { "color": "#E8274B", "url": "https://github.com/trending?l=ABAP" }, "ActionScript": { "color": "#882B0F", "url": "https://github.com/tren...
Mo-Talha/Nomad
server/colors.py
Python
mit
35,633
[ "CRYSTAL" ]
b52e492a663daa5a3fe0a44086196705d87612b3fb9e323a35a6eaf8acfc42dc
import matplotlib.pyplot as plt import numpy as np import sys assert len(sys.argv) >= 2 def load_spikes(filename): return np.loadtxt(filename, dtype={"names": ("time", "neuron_id"), "formats": (np.float, np.int)}) def load_voltages(filename): return np.loadtxt(filename,...
genn-team/genn
userproject/SynDelay_project/plot.py
Python
gpl-2.0
1,581
[ "NEURON" ]
85a6a601a910fff4814911d8041c7d697af7275c2ae514de78ac4b247a7ba3a0
../../../../share/pyshared/orca/speechdispatcherfactory.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/speechdispatcherfactory.py
Python
gpl-3.0
58
[ "ORCA" ]
3f87d4e416540243575a9d6ebcc97e709a472e40709bb5d8cf486469d586516b
# rosetta radii for sphere representation in PyMOL # values taken from etable.cc from pymol import cmd def useRosettaRadii(): cmd.alter("element C", "vdw=2.00") cmd.alter("element N", "vdw=1.75") cmd.alter("element O", "vdw=1.55") # cmd.alter("element H", "vdw=1.00") # rosetta polar H cmd.alter("element H", "vdw=...
weitzner/Dotfiles
pymol_scripts/rosetta_vdw.py
Python
mit
726
[ "PyMOL" ]
f4013b84027946119da7f37acc691ddcb9af02ec552e9a808d5d6dce67091657
"""Setup script for Bokeh.""" #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENCE.txt, distributed with this software. #---------...
khkaminska/bokeh
setup.py
Python
bsd-3-clause
19,797
[ "GULP" ]
efcb009315033d521e700783806343584ed6ce20e74b333af84cf0df779c5d76
"""Builds the network. Summary of available functions: # Compute input images and labels for training. If you would like to run # evaluations, use inputs() instead. inputs, labels = distorted_inputs() # Compute inference on the model inputs to make a prediction. predictions = inference(inputs) # Compute the t...
pailnguyen/jackal
jkl/jkl.py
Python
agpl-3.0
12,282
[ "Gaussian" ]
f75af87ba6855fff1c18591aa1bffd3f070a18c1885e4e4b9d17a4f5cf09c733
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model # # Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada, # Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez, # Stefanie Pes...
UU-Hydro/PCR-GLOBWB_model
modflow/scripts/landSurface.py
Python
gpl-3.0
92,973
[ "NetCDF" ]
e7f9ccd836fd20e76f530628a40941b64dfb16a1ec92d9a68f3af6f8994adcb7
import threading import os import sys import time from math import floor class MPG123(threading.Thread): """ Class that interfaces to the MPG123 MP3 player application Author: Brian Dale Date: May 10, 2007 """ STATE_STOPPED = 0x00 STATE_PLAYING = 0x01 STATE_PAUSED = 0x02 state =...
tbdale/crystalfontz-lcd-ui
python/MPG123.py
Python
mit
2,873
[ "Brian" ]
44957c1d83b7bd358ba21f4a5ab26caea09eabce964059c9c142c2a215c909b5
######################################################################## # $HeadURL$ # File : PilotDirector.py # Author : Ricardo Graciani ######################################################################## """ Base PilotDirector class to be inherited by DIRAC and Grid specific PilotDirectors, inherited by MW ...
Andrew-McNab-UK/DIRAC
WorkloadManagementSystem/private/PilotDirector.py
Python
gpl-3.0
20,015
[ "DIRAC" ]
c3ce24e116ba025b2f83934220c360e9213a46464da33a5f4be95e7361272db4
# This file is part of rhizi, a collaborative knowledge graph editor. # Copyright (C) 2014-2015 Rhizi # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of...
Rhizi/rhizi
rhizi/neo4j_cypher_parser.py
Python
agpl-3.0
29,034
[ "VisIt" ]
8491f038c7c4534509dce31e7eb793522d1182d95b186688832bb3a5a88df4ba
#!/usr/bin/env python import sys import os import gzip import argparse from Bio.Blast.Applications import NcbiblastnCommandline from Bio.Blast import NCBIXML from operator import itemgetter, attrgetter parser = argparse.ArgumentParser(description="Check if there are any significant contributions from unexpected orga...
senthil10/scilifelab
scripts/sanity_check.py
Python
mit
3,625
[ "BLAST" ]
76ea6285e9beab2bc0bfef4767e56e8167d73913a4f8034906df8bfeff6b582c
def test_abinit_parser(): """ Test (pychemia.code.abinit) [parser] : """ from pychemia.code.abinit import parser from numpy import array, all, ones from math import sqrt import tempfile wf = tempfile.NamedTemporaryFile(mode='w') wf.write(' # Comentario\n')...
MaterialsDiscovery/PyChemia
tests/test_code_abinit.py
Python
mit
3,589
[ "ABINIT", "NetCDF" ]
1d48dc01d3fe88472c7537ee4df239b05250ac2df5447bcda26e5f6877a2eed4
""" This is the StorageElement class. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # # custom duty import six import copy import datetime import errno import os import re import sys import threading import time from functools import reduce # # fro...
ic-hep/DIRAC
src/DIRAC/Resources/Storage/StorageElement.py
Python
gpl-3.0
59,179
[ "DIRAC" ]
a9aa72adab810e6fea11304c2f2dca8c59ce4053b08447ee7cd09301bd17b7d8
from collections import defaultdict, deque class Path: def __init__(self): self._locations_visited = defaultdict(lambda: 0) def mark_visit_to(self, x, y): self._locations_visited[(x, y)] += 1 def houses_visited(self): return len(self._locations_visited) class Traveler: def __...
elizabrock/adventofcode
day3.py
Python
mit
1,688
[ "VisIt" ]
8a0ccc330313fc22c8fcbb76d52702f19a8ef90e8dc0dc0ac62d9c09d80092c7
"""BLAST sequence from an assembly.""" import os import sys import json import tempfile from seqlab.assembly import * from seqlab.sequence_report import blast_seq def build_parser(parser): parser.add_argument('assembly', help='Assembly containing sequence to BLAST') parser.add_argument('-l','--label', ...
madhadron/seqlabd
seqlab/subcommands/blast.py
Python
gpl-3.0
1,308
[ "BLAST" ]
77728bf8462a5c556d981579e10d32bf68cc149dfd5557330f15b5dcec84bb1b
######################################################################## # $HeadURL$ # File : SSHComputingElement.py # Author : Dumitru Laurentiu ######################################################################## """ SSH (Virtual) Computing Element: For a given list of ip/cores pair it will send jobs direc...
Sbalbp/DIRAC
Resources/Computing/SSHBatchComputingElement.py
Python
gpl-3.0
7,405
[ "DIRAC" ]
830a09c8f7743f9025f5b1288fd6f5748274975ad7163baa356dc00de3b35885
""" FileCatalogHandler is a simple Replica and Metadata Catalog service in the DIRAC framework """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import six from six import StringIO import csv import os from DIRAC.Core.DISET.RequestHan...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py
Python
gpl-3.0
28,703
[ "DIRAC" ]
49df6a4410c8d192f62a560c26b66158364f4a71a8cd46d1c27ac63f07650d10