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
""" Support code for 0alias scripts. @since: 0.28 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, SafeException from zeroinstall import support _old_template = '''#!/bin/sh if [ "$*" = "--versions" ]; then exec 0launch -gd '%s' "$...
timdiels/0install
zeroinstall/alias.py
Python
lgpl-2.1
3,119
[ "VisIt" ]
a97ec23db4adde1c5803f902b5bbcb78a3536b1072db4721810391225301bc7e
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Beining --<ACICFG> # Purpose: Yet another danmaku and video file downloader of Bilibili. # Created: 11/06/2013 # # Biligrab is licensed under MIT license (https://github.com/cnbeining/Biligrab/blob/master/LICENSE) # # Copyright (c) 2013-2015 ''' Biligrab Beinin...
cnbeining/Biligrab
biligrab.py
Python
mit
60,115
[ "VisIt" ]
71d9a61a3dcf3c03f5d48f92e2c0c9b522a9666e7974b843e94ca7b692f380bf
import logging import os import re import copy import time from argparse import ArgumentParser, RawTextHelpFormatter, SUPPRESS from datetime import datetime import os from Top import Top log = logging.getLogger(__name__) # noinspection PyShadowingNames class Settings(Top): """ Parses settings in the followin...
talipovm/terse
terse/Settings.py
Python
mit
18,566
[ "Firefly", "GAMESS", "Gaussian", "Jmol" ]
ccdb7543da05d748c29d4a4b79c9adc52a1f144136de217b6e1263011ab29366
# $Id: __init__.py 5574 2008-06-23 09:16:39Z grubert $ # Author: Engelbert Gruber <grubert@users.sourceforge.net> # Copyright: This module has been placed in the public domain. """ LaTeX2e document tree Writer. """ __docformat__ = 'reStructuredText' # code contributions from several people included, thanks to all. #...
creasyw/IMTAphy
documentation/toolchain/docutils-0.5-py2.5.egg/docutils/writers/latex2e/__init__.py
Python
gpl-2.0
83,484
[ "VisIt" ]
1802a44a579f209fcea8af72d88c994c64fd3c689a9bce42c9d0998ef8d58fa5
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils def pyunit_make_glm_model(): # TODO: PUBDEV-1717 pros = h2o.import_file(pyunit_utils.locate("smalldata/prostate/prostate.csv")) model = h2o.glm(x=pros[["AGE","DPROS","DCAPS","PSA","VOL","GLEASON"]], y=pros["CAPSULE"], fa...
pchmieli/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_NOFEATURE_make_glm_model.py
Python
apache-2.0
869
[ "Gaussian" ]
3c854020a4f14cfab16cb1026861f8ae70adba7d1195ea45865cbca501452442
""" stats.py This file contains functions for reporting results from EM and assembly steps and raw numbers for visualization with another tool. Sam Vohr (svohr@soe.ucsc.edu) Fri May 20 14:04:02 PDT 2016 """ import sys import collections import numpy from mixemt import observe from mixemt import phylotree def rep...
svohr/mixemt
mixemt/stats.py
Python
mit
6,570
[ "pysam" ]
7571257aae70b50b3050cfcc9e40e44e83daebef6b0c8136b0336889b64d67fd
"""testGame_modular_animation.py; -Warning, code probably isn't structured very well, needs cleaned up. -Still lots of hardcoded numbers/file paths, no clue if this will work on any system that's not GNU/Linux. -If you want to run it, please remember to mess with the filepaths around line 95, I should change them t...
ryancnap/sadsack-rpg
my-game.py
Python
gpl-2.0
10,192
[ "exciting" ]
086f6b084878e6b253defce228a928fe98f411229d7c751b765904ed2dc989f7
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'Patient.serial' db.add_column(u'clinics_patient', 'serial...
myvoice-nigeria/myvoice
myvoice/clinics/migrations/0009_auto__add_field_patient_serial__add_field_clinic_code.py
Python
bsd-2-clause
12,250
[ "VisIt" ]
e303ed89700776efdcd5032d2bf9866ccb4ec02b1216d3ef1581fa39682fd33f
""" Palette is a tool to generate colors for various Graphs plots and legends The DIRAC Graphs package is derived from the GraphTool plotting package of the CMS/Phedex Project by ... <to be added> """ from __future__ import absolute_import from __future__ import division from __future__ import print_function ...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/Graphs/Palette.py
Python
gpl-3.0
3,155
[ "DIRAC" ]
34a78bf425b26416952edeb0e0d093ad0d65f308b97ebab264bd82970d2e58c3
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Localization Compiler # import os, sys, codecs, shutil from xml.dom.minidom import parse template_dir = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) sys.path.append(os.path.join(template_dir,'../')) from tiapp import * ignoreFiles = ['.gitig...
arnaudsj/titanium_mobile
support/common/localecompiler.py
Python
apache-2.0
5,110
[ "VisIt" ]
319298d11383871204e2f0932230ad319f137e5bc5a14a9e745807c8a533b61a
import os import pylab import numpy as np from math import sqrt from LinearAlgebra import solve_linear_equations as solve from gpaw.testing.atomization_data import atomization_vasp from gpaw.utilities import fix, fix2 from moleculetest import dd from gpaw.testing.data import Ea12 def main(molecules, moleculedata, res...
qsnake/gpaw
scripts/data2restructured.py
Python
gpl-3.0
5,990
[ "GPAW" ]
2bb4652bad1bd4b1cec97c41792069f0ca426c038788a4a484acb4b06d791757
#!/usr/bin/env python from PIL import Image import numpy as np from scipy.ndimage.interpolation import rotate from scipy.ndimage import gaussian_filter import argparse import os from TiffWriter import write_tiff def crop_center(img, new_shape): """ Crop an image equally on each size to create the new_shape ...
ClayFlannigan/halftone
halftone.py
Python
apache-2.0
9,337
[ "Gaussian" ]
4dc4b9ee9dd095b7a809ce9b21b9ae5b1898f55552a00c4752345a70ce5ada70
# Merge active and previous version's generated next major version candidate # shadow. This involve simultaneously traversing both FileDescriptorProtos and: # 1. Recovering hidden_envoy_depreacted_* fields and enum values in active proto. # 2. Recovering deprecated (sub)message types. # 3. Misc. fixups for oneof metada...
istio/envoy
tools/protoxform/merge_active_shadow.py
Python
apache-2.0
6,516
[ "VisIt" ]
dc43ee9873c70cb9b661c4b127401f7042d458f11d13e58e1eef8c025cf57aab
# -*- coding: utf-8 -*- { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je opcioni izraz kao sto je "polje1=\'nova vrijednost\'". Ne mozete azurirati ili izbristi rezultati JOIN-a', '# of Houses Damaged': 'Broj oštećenih kuća', '# of Houses...
devinbalkind/eden
languages/bs.py
Python
mit
538,172
[ "VisIt" ]
53424b02d0abbd85a65f2eaaaaef896b7e859688aba104200880d836e32a0860
################################################################################ # Copyright (C) 2015 Jaakko Luttinen # # This file is licensed under the MIT License. ################################################################################ """ Unit tests for `gamma` module. """ import numpy as np from scipy...
bayespy/bayespy
bayespy/inference/vmp/nodes/tests/test_gamma.py
Python
mit
6,897
[ "Gaussian" ]
f58c3f750e9df37f25c94670fca0f770c1928efdd56d8a4d3326e7a7a7bd01ab
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Implements ProcessPoolExecutor. The follow diagram and text describe the data-flow through the system: |======================= In-process =====================|== Out-of-process ==| +----------+ +-...
edmundgentle/schoolscript
SchoolScript/bin/Debug/pythonlib/Lib/concurrent/futures/process.py
Python
gpl-2.0
15,316
[ "Brian" ]
f3ff94a128d107c4575db7814756601aeecdfff1616a72a8083bc4c84dfb75e6
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2014 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Softw...
andrebellafronte/stoq
stoqlib/domain/sale.py
Python
gpl-2.0
86,939
[ "VisIt" ]
7cb370625b267198d2cae275aa86c324415aed897aa2b2c79b20908cd2efbe5a
import numpy as np import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.contrib.layers.python import layers as tf_layers from models.conv_lstm import basic_conv_lstm_cell, conv_lstm_cell_no_input # Amount to use when lower bounding tensors RELU_SHIFT = 1e-12 FC_LAYER_SIZE = 256 FC_LSTM_LAYER...
jonasrothfuss/DeepEpisodicMemory
models/model_zoo/model_conv5_fc_lstm2_128.py
Python
mit
9,772
[ "Gaussian" ]
6cb3d4b3822b8903fe7faa09594110480dd710c9b3b5bbca2a84e97747db72b7
# Copyright 2016 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 required by applica...
aakashsinha19/Aspectus
Image Classification/models/differential_privacy/multiple_teachers/deep_cnn.py
Python
apache-2.0
21,830
[ "Gaussian" ]
9765483f7e3a0398f7ed9eabe55ca90f5ca79990bed9be715679066dc63c2f2e
import sys tests = [ ("testExecs/testFeatures.exe", "", {}), ("python", "test_list.py", {'dir': 'Wrap'}), ] longTests = [] if __name__ == '__main__': import sys from rdkit import TestRunner failed, tests = TestRunner.RunScript('test_list.py', 0, 1) sys.exit(len(failed))
jandom/rdkit
Code/GraphMol/MolChemicalFeatures/test_list.py
Python
bsd-3-clause
286
[ "RDKit" ]
b3d514d50c5fc27a479630b8c52686ec503f3c2e799a8ba6e4a3af745a133db9
from __future__ import (absolute_import, division, print_function) # pylint: disable=no-init,invalid-name,too-few-public-methods,unused-import from mantid.kernel import * from mantid.simpleapi import * from mantid.api import * from mantid.geometry import * import os class PoldiCompound(object): """Small helper ...
dymkowsk/mantid
Framework/PythonInterface/plugins/algorithms/PoldiCreatePeaksFromFile.py
Python
gpl-3.0
8,311
[ "CRYSTAL" ]
112188c14351cce75e9c826f1aece2ab3e06e76909138929791c8acdc61086d7
# Name: mapper_hirlam2nc.py # Purpose: Mapper for Hirlam wind data converted from felt to netCDF # Authors: Knut-Frode Dagestad # Licence: This file is part of NANSAT. You can redistribute it or modify # under the terms of GNU General Public License, v.3 # http://www.g...
nansencenter/nansat
nansat/mappers/mapper_hirlam_wind_netcdf.py
Python
gpl-3.0
4,217
[ "NetCDF" ]
e44459220e232e256fc6cf339b32b6e0d43864d3a7945fac6b28f95604c1c7f0
import numpy as np import scipy.stats import galsim def render(model,scale,size=None,stamp=None): """ Returns a rendering of the specified GalSim model into a square postage stamp with the specified pixel scale (arcsecs). Either a stamp pixel size or an existing stamp (with its scale attribute set) mus...
deepzot/bashes
bashes/utility.py
Python
mit
2,652
[ "Gaussian" ]
1b106e26cf8a1c9bda42451552ca0b79d132f7651524364187014e26ed202dbb
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
amjames/psi4
psi4/share/psi4/databases/HTR40.py
Python
lgpl-3.0
41,501
[ "Psi4" ]
7821b04e2d2537c333403dfd90236d498774c51eb373c4fab535b0e8f1c0d734
#!/usr/bin/env python __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011, The QIIME Project" __credits__ = [ "Rob Knight", "Greg Caporaso", "Jeremy Widmann", "Kyle Bittinger"] __license__ = "GPL" __version__ = "1.9.1-dev" __maintainer__ = "Greg Caporaso" __email__ = "gregcaporaso@gmail.com" ...
squirrelo/qiime
qiime/align_seqs.py
Python
gpl-2.0
11,369
[ "BLAST" ]
e648f2e960bae90ab77d6d748e7c079c9b8db89acaad5e4e392fce25546f074d
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2006 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2012 Paul Franklin, Nicolas Adenis-Lamarre, Benny Malengier # # This program is free software; you can redistribute it...
arunkgupta/gramps
gramps/plugins/drawreport/fanchart.py
Python
gpl-2.0
31,716
[ "Brian" ]
10c13a6d6e47830a4ea3888284726088c8a3ecf91faa3c20a94f374ddb2f0454
from __future__ import print_function import sys import os import copy import random sys.path.insert(1, os.path.join("..","..","..")) import h2o from tests import pyunit_utils from h2o.grid.grid_search import H2OGridSearch from h2o.estimators.deeplearning import H2ODeepLearningEstimator def deeplearning_grid_cars(): ...
mathemage/h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_grid_cars_deeplearning.py
Python
apache-2.0
4,115
[ "Gaussian" ]
985f24e8c8920e4e67d39adaee3fde216d09bafab03bdc4ece52771c5aa000f0
################################################################################ # The Neural Network (NN) based Speech Synthesis System # https://github.com/CSTR-Edinburgh/merlin # # Centre for Speech Technology Research # University of Edinburgh, UK # ...
bajibabu/merlin
src/run_merlin.py
Python
apache-2.0
60,558
[ "NEURON" ]
552119ae90ff4089aebc1a389544d424417821c7838e89b6350bdedbeb749394
from ase import Atoms from gpaw import GPAW from gpaw.test import equal from ase.units import Bohr, Hartree a = 7.5 * Bohr n = 16 atoms = Atoms('He', [(0.0, 0.0, 0.0)], cell=(a, a, a), pbc=True) calc = GPAW(gpts=(n, n, n), nbands=1, xc='PBE') atoms.set_calculator(calc) e1 = atoms.get_potential_energy() niter1 = calc.g...
qsnake/gpaw
gpaw/test/revPBE.py
Python
gpl-3.0
803
[ "ASE", "GPAW" ]
a517bd6198c278752f96c8acf3aaa9b9567552c69a35d99d806f5e3f29ad190c
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_taxclasssearch.py
Python
gpl-2.0
1,600
[ "VisIt" ]
7a0ee14975250e1177dacc999d8a145bb379842b3a0cdf5de450041238b62cb8
# LAMMPS Documentation Utilities # # Copyright (C) 2015 Richard Berger # # 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....
zimmermant/dlvo_lammps
doc/utils/converters/lammpsdoc/lammps_filters.py
Python
gpl-2.0
3,497
[ "LAMMPS" ]
bc7d1d3f20d4aa876e63efc96e3c0a8902934229b0ac2aeac558512643a4d214
import numpy import pylab import os #TODO change directory path = "/home/alex/GitHub/NEUCOGAR/nest/dopamine/test_results/test400_8/" dpi_n = 120 def spike_make_diagram(ts, gids, name, title, hist): pylab.figure() color_marker = "." color_bar = "blue" color_edge = "black" ylabel = "Neuron ID" ...
vitaliykomarov/NEUCOGAR
nest/common_scripts/build_diagram.py
Python
gpl-2.0
3,299
[ "NEURON" ]
a131138438c5a26cd184627a5c8a642437eb1fcb7de70435ec365b155992820f
# Copyright 2004 by Frank Kauff. All rights reserved. # Revisions copyright 2008-2013 by Peter Cock. All rights reserved. # Revisions copyright 2009-2009 by Michiel de Hoon. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should ha...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_Ace.py
Python
gpl-2.0
118,129
[ "Biopython" ]
5419cee7ddbc56968ecfbe327bb63d2e4f7e8df3386a6f9f18841088b24d629d
# pylint: disable=bad-continuation """ Certificate HTML webview. """ import logging import urllib from datetime import datetime import pytz from uuid import uuid4 from django.conf import settings from django.contrib.auth.models import User from django.http import Http404, HttpResponse from django.template import Reque...
miptliot/edx-platform
lms/djangoapps/certificates/views/webview.py
Python
agpl-3.0
28,089
[ "VisIt" ]
47b3a11a0ec6ab5e7f65122e7ae64c7a963f1e5b49d2ec4761b64219d421ad8c
#!/usr/bin/env python3 #* 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/lgp...
nuclear-wizard/moose
modules/geochemistry/python/readers/eq36_reader.py
Python
lgpl-2.1
20,307
[ "MOOSE" ]
b4415c23d1e859a6c357b263ef0d141159f18506451d8e8d4003431d85ff3d16
#!/usr/bin/python # -*- coding:utf-8-*- """ Created on Wed Apr 12 09:38:44 2017 @author: etienne cuierrier This script will do a least-square fitting of Gay-Berne parameters from ab initio results The rotationally averaged results from the 4 orthogonal configurations are required (average_X.txt,average_ll.txt,average...
EtiCui/Msc-UdeS
dataAnalysis/gayberne_fit.py
Python
mit
11,778
[ "LAMMPS" ]
8cc6ceb77895a779a5d6c8a434100b803efaf3074107bad78de28ce481ff7476
# Copyright (C) 2013 Oskar Maier # # 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 program is distributed in ...
loli/medpy
medpy/filter/noise.py
Python
gpl-3.0
7,547
[ "Gaussian" ]
cc1660c03298a47088f7886402d5c0b75824fa8536c1ad7460aea48d35587a74
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class QuantumEspresso(CMakePackage): """Quantum ESPRESSO is an integrated suite of Open-Source computer codes for...
LLNL/spack
var/spack/repos/builtin/packages/quantum-espresso/package.py
Python
lgpl-2.1
24,677
[ "EPW", "ESPResSo", "QMCPACK", "Quantum ESPRESSO" ]
5d308dd661db9e7ff856d01687c7155ed405c938c34c850de4515d505d3b5aeb
"""\ Main class and helper functions. """ import warnings import collections.abc as cabc from collections import OrderedDict from copy import copy, deepcopy from enum import Enum from functools import partial, singledispatch from pathlib import Path from os import PathLike from textwrap import dedent from typing import...
theislab/anndata
anndata/_core/anndata.py
Python
bsd-3-clause
75,713
[ "Bioconductor" ]
7f37e91b7e2d24a1dc3b8c2b729d41384a9183941edf88d3d2c4d3c8afc83149
""" Module holding function(s) creating the pilot wrapper. This is a DIRAC-free module, so it could possibly be used also outside of DIRAC installations. The main client of this module is the SiteDirector, that invokes the functions here more or less like this:: pilotFilesCompressedEncodedDict = getP...
chaen/DIRAC
WorkloadManagementSystem/Utilities/PilotWrapper.py
Python
gpl-3.0
7,049
[ "DIRAC" ]
356bf5ce508f9a16cf27d3733e2d8d394122f4df8b01bfb46a5e595e05b24376
#!/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...
gkc1000/pyscf
pyscf/gto/moleintor.py
Python
apache-2.0
37,174
[ "PySCF" ]
9be72b94a5a2f192315ee08bb6ea3e3ac60b8bc7790638f19b8234d7394954bd
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
sjebbara/gensim
gensim/models/word2vec.py
Python
gpl-3.0
74,528
[ "VisIt" ]
3977ff1895ac43fa4abbaf257268e2da5703b4d6fac46decde1cea7bd34ce9a9
''' synbiochem (c) University of Manchester 2015 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=too-many-public-methods import unittest from synbiochemdev.utils import struct_utils class Test(...
neilswainston/development-py
synbiochemdev/utils/test/test_struct_utils.py
Python
mit
735
[ "VisIt" ]
5054b4c02fa8668162ec9ba0ea3b37280973a36a419e50771f816d16c3093d07
from epsilon.extime import Time from nevow.livetrial import testcase from nevow import tags, loaders from nevow.athena import expose from axiom.store import Store from axiom.userbase import LoginMethod from axiom.dependency import installOn from xmantissa.webtheme import getLoader from xmantissa.people import Person...
twisted/quotient
xquotient/test/livetest_compose.py
Python
mit
4,363
[ "MOE" ]
16ef69e229c301ffc59d9fe65771a26797a52d796e81ad01d93abf61c8d75f53
"""Utility functions for plotting M/EEG data """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # ...
yousrabk/mne-python
mne/viz/utils.py
Python
bsd-3-clause
30,405
[ "Mayavi" ]
258d41dca10ea690a0715db8b25c09045d60ead8b991da71ca7b41ba5b613034
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import subprocess import os #import traceback import sys import simplejson as json from ga_parser_class import * def ConstructMyGaParser(jsondata): """ JsonData class called to construct my object < Take jsondata > Return a List of object JsonD...
remyd1/XMLparser-wrapper
gaclass/utils.py
Python
apache-2.0
15,409
[ "Galaxy" ]
c01d2a3e10fc35dea60811ec31f9d9f74053dfc3da8e709308ea59a79a0718e5
"""foldtrajectory - folds atoms into the periodic computational box. Usage: python -m ase.io.foldtrajectory infile.traj outfile.traj In molecular dynamics simulations with periodic boundary conditions, atoms sometimes move out of one side of the computational box and in through the other. Such atoms have coo...
grhawk/ASE
tools/ase/io/foldtrajectory.py
Python
gpl-2.0
1,246
[ "ASE" ]
29eddb0f1b0d7b176b732047d719ca373e5343bc13042daad590a31854cb1112
"""Predicates providing information about the state of the current player.""" import datetime from apps.managers.challenge_mgr import challenge_mgr from apps.managers.player_mgr.models import Profile from apps.widgets.badges.models import BadgeAward from apps.widgets.resource_goal.models import EnergyGoal from apps.man...
jtakayama/makahiki-draft
makahiki/apps/managers/predicate_mgr/player_predicates.py
Python
mit
3,326
[ "VisIt" ]
3d021459f6235d76e97eb4b83fa6812230ffddd37c309dbefb6ea880e6fc0359
#!/usr/bin/env python import sys sys.path.append('/opt/lib/python2.7/site-packages/') import math import numpy as np import pylab import nest import nest.raster_plot import nest.topology as tp import uuid def run(total, ratio_e, ratio_i, extent, wt_max, wt_min, delay_min, delay_max, ac_amp, ac_freq): pop_e = tota...
synergetics/nest_expermiments
oscillation frequency preference/oscillation_inhibition.py
Python
mit
5,328
[ "Gaussian" ]
1b0c0b677266ba2189f24b64d8d2b7e55640268c9bf20dc09f4b23c2eb68f567
#!/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2014 Stefan Seefeld # All rights reserved. # # This file is part of OpenVSIP. It is made available under the # license contained in the accompanying LICENSE.BSD file. # # This demo is based on the k-Ω Beamformer Example by Randall Judd # (http://portals.omg.or...
openvsip/openvsip
share/examples/python/beamformer.py
Python
gpl-2.0
7,062
[ "Gaussian" ]
b020dba587e70910966579647a0386f0e694d7318162e64aec8964dd26eab29d
'''Various functions to read PDB files for Dragonfly''' from __future__ import print_function from builtins import range import sys import logging import os from collections import OrderedDict from six.moves.urllib.request import urlopen import numpy as np from scipy.interpolate import interp1d try: import pyfftw ...
duaneloh/Dragonfly
utils/py_src/process_pdb.py
Python
gpl-3.0
8,297
[ "Gaussian" ]
61e11305569fc1d1733968121eee872530cba029189524d58ace35c724b6c78b
import h2o_cmd, h2o_util import h2o2 as h2o import re, random, math from h2o_test import check_sandbox_for_errors, dump_json, verboseprint import h2o_nodes from tabulate import tabulate # recursive walk an object check that it has valid numbers only (no "" or nan or inf def check_obj_has_good_numbers(obj, hierarchy=""...
PawarPawan/h2o-v3
py2/h2o_glm.py
Python
apache-2.0
29,862
[ "Gaussian" ]
d1e049e96eb32d9070a767a54d43b61aad6874333b983021177b434514030a5c
# -*- coding: utf-8 -*- # # This file is part of Invenio-Query-Parser. # Copyright (C) 2014, 2015, 2016 CERN. # # Invenio-Query-Parser 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 # ...
Panos512/inspire-next
inspirehep/modules/search/walkers/spires_to_invenio.py
Python
gpl-2.0
3,296
[ "VisIt" ]
08991256890895aec43695ad75d085210574729fba3d872e513e7897284fe24e
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import h2o from h2o.estimators import H2OGeneralizedLinearEstimator from h2o.exceptions import H2OTypeError from tests import pyunit_utils def test_glm_params(): H2OGeneralizedLinear...
h2oai/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_glm_parameters.py
Python
apache-2.0
1,653
[ "Gaussian" ]
1180ed32310996a596d601ea230e36c0d5f438b881abcfbb2ae76f72d83744dd
# Copyright (C) 2012,2013, 2017 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the term...
govarguz/espressopp
src/interaction/VSphereSelf.py
Python
gpl-3.0
4,028
[ "ESPResSo" ]
fa40f0bfaceba03c99e669c4dbe3c48428034a82f913c16723e35209d296448b
# # 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/orca/test/bigdl/orca/tfpark/test_keras_model.py
Python
apache-2.0
3,083
[ "ORCA" ]
995cfdb45020c878c5c56881b37f0e88c2348a31733444c14b24f7bd6ec668ae
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import argparse import ast import linecache import logging import os import ...
hrayr-artunyan/shuup
_misc/doccov.py
Python
agpl-3.0
13,318
[ "VisIt" ]
af09c128105c1b396eabebaad64d3dc2a5accc26b9cb3b98b018c6bfabffc390
""" Main script which executes the run cycle. It will start and remain running until it is shut-down externally, and will execute the deposit.run method repeatedly. """ from octopus.core import app, initialise, add_configuration import logging from logging import Formatter from logging.handlers import RotatingFileHand...
JiscPER/jper-sword-out
service/runner.py
Python
apache-2.0
1,819
[ "Octopus" ]
bc78d960ee6de45b304cfc57508b87b2eaee5b7ea2cf3d1fabadaa18bcc167fb
# ----------------------------------------------------------------------------- # Copyright (c) 2015--, biocore development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ----------------------------------------------...
biocore/burrito-fillings
bfillings/vsearch.py
Python
bsd-3-clause
21,714
[ "BLAST" ]
f8c6b51b1600010c341d7cb00a5d20b058ee7c0c334c64c12d7c26b0b09b07fb
# Copyright 2016 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 required by applica...
npuichigo/ttsflow
third_party/tensorflow/tensorflow/contrib/linalg/python/ops/linear_operator_test_util.py
Python
apache-2.0
25,544
[ "Gaussian" ]
7f45dfcb9a678372843d8e0ee42ee16822ae0442970d7d0f1735ab329fe0ff01
''' This module contains all pythran backends. * Cxx dumps the AST into C++ code * Python dumps the AST into Python code ''' from pythran.analyses import ArgumentEffects, BoundedExpressions, Dependencies from pythran.analyses import LocalDeclarations, GlobalDeclarations, Scope from pythran.analyses import Yiel...
artas360/pythran
pythran/backend.py
Python
bsd-3-clause
49,314
[ "VisIt" ]
53b9f52416eea5b2e8d32366f698c17b2163acb3ab24579713b3888acb549086
#!/usr/bin/env python """ Extracts data from reference files or calculates FF data. Takes a sequence of keywords corresponding to various datatypes (ex. mb = MacroModel bond lengths) followed by filenames, and extracts that particular data type from the file. Note that the order of filenames IS IMPORTANT! Used to ma...
Q2MM/q2mm
q2mm/calculate.py
Python
mit
84,150
[ "Amber", "Gaussian", "Jaguar", "MacroModel", "TINKER" ]
848e3a0bdb11b9916a2ffe54071fa3ff2bad85951cf6120010fc593620734037
#!/usr/bin/env python """ blast2gff.py [options] <blast file> """ import sys from optparse import OptionParser from blast import BlastFile import gff usage = "%prog [options] <blast file>" parser = OptionParser(usage=usage) parser.add_option( "-s", "--source", dest="source", help="GFF source (Default: ...
PapenfussLab/Mungo
bin/blast2gff.py
Python
artistic-2.0
1,596
[ "BLAST" ]
b9633896d58a6686bcbdd3b8200e7d6a15d3ba353b9d75ffb43a7ecb9f3b76c0
""" dabam: (dataBase for metrology) python module for processing remote files containing the results of metrology measurements on X-ray mirrors classes: dabam main functions: cdf (calculate antiderivative function) psd (calculate power spectral densit...
srio/dabam
code/dabam.py
Python
gpl-2.0
75,998
[ "Gaussian" ]
ba0903dc52e0ccc229b400439a9e64acfcbd987770b8cfa77c706674fe4ee2a4
""" Functions to create initializers for parameter variables. Usage ------- >>> from lasagne.layers import DenseLayer >>> from lasagne.init import Constant, Glorot >>> l1 = DenseLayer((100,20), num_units=50, W=GlorotUniform(), b=Constant(0.0)) """ import numpy as np from .utils import floatX class Initializer(obje...
dnuffer/Lasagne
lasagne/init.py
Python
mit
10,166
[ "Gaussian" ]
bf56386ad9fdee96dba94fc02250249fbb764ed8688c8f53b17ad3ba67a2ec1a
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jgonthier/psi4
psi4/driver/p4util/numpy_helper.py
Python
lgpl-3.0
18,310
[ "Psi4" ]
6dda8d73a7b6213c8bc8dce53736a3ac92dd6e35b987cb93b5c284935a6a23e0
import unittest import numpy as np import pandas as pd from scimap.peakfitting import Peak, discrete_fwhm # flake8: noqa """Module for testing generic peak fitting. Some techniques have more specific tests (eg X-ray diffraction, X-ray microscopy.""" class GuessParameters(unittest.TestCase): def test_single_pe...
m3wolf/scimap
tests/test_peaks.py
Python
gpl-3.0
1,305
[ "Gaussian" ]
9463fb8d20c7b4ebebaa5ad2144aea0669c192e626a48cc000d35b81f10e46d9
import glob import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LogNorm import sys GRIDORDER = sys.argv[1] def summarize(): res = [] for fn in glob.glob("dfs/*.csv"): df = pd.read_csv(fn) sdf = df.groupby("flowpath").sum() / 10.0 adf = ...
akrherz/idep
scripts/gridorder/flowpath_yearly.py
Python
mit
2,401
[ "ADF" ]
2d572af412a07f872536d708cf1b7fefbca9e6d5709d95f1032f30faf6e0803b
#!/usr/bin/python #========================================================================== # # Copyright Insight Software Consortium # # 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...
BlueBrain/ITK
Utilities/Maintenance/UpdateCopyrightStatementsInITK.py
Python
apache-2.0
6,488
[ "VTK" ]
a0597d8afb2fa64e59f596fe49701718aba765bd2684e7c1ac8eb33e5442a0f7
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
krafczyk/spack
var/spack/repos/builtin/packages/netcdf-fortran/package.py
Python
lgpl-2.1
2,323
[ "NetCDF" ]
e93858d3d94547fd7dc734843663bcbdf51812f73b90f56742f3d3aa80e2a392
# Copyright (c) 2010-2015 Bo Lin # Copyright (c) 2010-2015 Yanhong Annie Liu # Copyright (c) 2010-2015 Stony Brook University # Copyright (c) 2010-2015 The Research Foundation of SUNY # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files #...
sghosh1991/distalgo
da/compiler/pygen.py
Python
mit
43,508
[ "VisIt" ]
36b399263901465f6d0ff3d19c9c81305362da4bbd2f4be8009ad18649f24554
#pylint: disable=missing-docstring #* 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/...
nuclear-wizard/moose
python/chigger/graphs/Line.py
Python
lgpl-2.1
6,857
[ "MOOSE", "VTK" ]
0afc2548af1d1c3913300848dbfee0e15add91e7e2ec3a5ab8bfe5928b8fafb5
from vtk import * reader1 = vtkXMLTreeReader() reader1.SetFileName("vtkclasses.xml") reader1.SetEdgePedigreeIdArrayName("tree edge") reader1.GenerateVertexPedigreeIdsOff(); reader1.SetVertexPedigreeIdArrayName("id"); reader2 = vtkXMLTreeReader() reader2.SetFileName("vtklibrary.xml") reader2.SetEdgePedigreeIdArrayNam...
collects/VTK
Examples/Infovis/Python/treering_hierarchical_view.py
Python
bsd-3-clause
1,526
[ "VTK" ]
87a88b439b11e48348b7747fecbd5032e852f10da93eebddad9ea34255bad79e
############################################################################## # # Copyright (c) 2009-2013 by University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Open Software License version 3.0 # http://www.opensource.org/licenses/osl-3.0.php # #...
bencaradocdavies/vgml
src/main/resources/org/auscope/portal/server/scriptbuilder/templates/escript-magnetic.py
Python
gpl-3.0
3,212
[ "NetCDF", "VisIt" ]
a60e9ddcbfea21903b4f412c800b41741e2686b275c1eb39d6a04e1a3d5d9d68
#!/usr/bin/python #Copyright (C) 2011 by Forrest Sheng Bao http://fsbao.net # This software is licensed under MIT license. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restricti...
binarybottle/mindboggle_sidelined
label_vol2surf.py
Python
apache-2.0
5,910
[ "VTK" ]
5e1f16bf25fd87a09b61ac2c678e1609e2681ecce680f08c2b712fc9f685d84d
"""Handle extraction of final files from processing pipelines into storage. """ import datetime import os import toolz as tz from bcbio import log, utils from bcbio.upload import shared, filesystem, galaxy, s3 from bcbio.pipeline import run_info import bcbio.pipeline.datadict as dd _approaches = {"filesystem": files...
gifford-lab/bcbio-nextgen
bcbio/upload/__init__.py
Python
mit
20,702
[ "Galaxy" ]
849b26251e8bfa0dede486f08210787941e407d03b1ff08c737b4abdc05007a4
#!/usr/bin/env python from fbxclass import * all_classes = get_all_classes_from_file() root_classes = [cls for cls in all_classes if cls.name == 'FbxObject'] fbxobject = root_classes[0] def traverse(cls, s=None): if s is None: s = set() s.add(cls) for cc in cls.children: traverse(cc, s) ...
izrik/FbxSharp
tools/generate_visitor.py
Python
lgpl-2.1
2,585
[ "VisIt" ]
06bf29d0b484ff935fb20d1df45f966e472a99f77f6ff80392be8c97af29f4a0
#!/usr/bin/env python ''' xml_comparer.py Created by Anne Pajon on 20 Mar 2012 Copyright (c) 2012 Cancer Research UK - Cambridge Research Institute. This source file is licensed under the Academic Free License version 3.0 available at http://www.opensource.org/licenses/AFL-3.0. Permission is hereby granted to repro...
crukci-bioinformatics/galaxy
admin/scripts/xml_comparer.py
Python
mit
7,138
[ "Galaxy" ]
e1ac845dcd603d69c27bc1a628c4a5c06d149c16bf50fe3a68b82e6c3bf3f4c1
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/delegates/manytomanydelegate.py
Python
gpl-2.0
1,899
[ "VisIt" ]
cce5607bd0b783d4eb3bcbde7d3d514eab39789122edba241f3742f195653175
#!/usr/bin/python # # Author : Pierre-Jean Coudert # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will...
frac/twitter-autoblock
setup.py
Python
gpl-2.0
4,983
[ "Jaguar" ]
affec81caf9f747b9661267c735706207c33c6d7495c984878e19055a7997b04
""" This migration script renames the sequencer table to 'external_service' table and creates a association table, 'request_type_external_service_association' and populates it. The 'sequencer_id' foreign_key from the 'request_type' table is removed. The 'sequencer_type_id' column is renamed to 'external_service_type_id...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/migrate/versions/0068_rename_sequencer_to_external_services.py
Python
gpl-3.0
14,154
[ "Galaxy" ]
b8c78ca674457561276cf2ae0bf49c49aad17882a6b51f8ae8a183f12c6754f2
from random import shuffle from typing import Optional import aiohttp from redbot.core.i18n import Translator, cog_i18n from redbot.core import checks, Config, commands from redbot.core.commands import UserInputOptional _ = Translator("Image", __file__) @cog_i18n(_) class Image(commands.Cog): """Image related ...
palmtree5/Red-DiscordBot
redbot/cogs/image/image.py
Python
gpl-3.0
9,620
[ "VisIt" ]
4c481afc8983e0f848afaef228b3a3aeb2d212f6500cefdbdf231b69040d456a
# (C) British Crown Copyright 2010 - 2013, 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...
kwilliams-mo/iris
lib/iris/io/__init__.py
Python
gpl-3.0
13,332
[ "NetCDF" ]
f268b589a2c20e7131a0289a10a2948977640002dbf8c93137a0994ce7bb6196
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import glob import logging import os import pyauto_functional # Must be imported before pyauto import pyauto class ThemesTest(p...
aYukiSekiguchi/ACCESS-Chromium
chrome/test/functional/themes.py
Python
bsd-3-clause
4,381
[ "VisIt" ]
4da3d737b44f8e72e1288f32d0baf886bd1d81dd0e2b1b8843c2dd73ddaeafeb
import json import requests import unittest2 as unittest class TestLauncher(unittest.TestCase): def test_basic(self): data = json.dumps({'application': 'basic'}) req = requests.post( 'http://localhost:8080/vtk', data=data ) self.assertTrue(req.ok) ...
jbeezley/vtkweb-launcher
test/test_launcher.py
Python
bsd-3-clause
1,612
[ "VTK" ]
6bcfc846a6047d776de7c7b3a994938ddb2916582bc809cba04f928df76c97e3
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import os import six from six.moves import filter, map from collections import defaultdict from monty.design_patterns import cached_class from monty.serializ...
xhqu1981/pymatgen
pymatgen/entries/compatibility.py
Python
mit
24,628
[ "VASP", "pymatgen" ]
0182d04e062fa2f462aa568d2902eeff2cdc8dea3fcdacdc2c2b6ed0aaa0c0b7
########################################################################### # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/l...
google/starthinker
dags/dv360_targeter_dag.py
Python
apache-2.0
7,275
[ "VisIt" ]
ea57b7b647efcde32f49fd92ec7d6ec2f73fa7902a08c6f209d7387c5d7efb13
#!/usr/bin/env python from vtk import * import os.path data_dir = "../../../../VTKData/Data/Infovis/SQLite/" if not os.path.exists(data_dir): data_dir = "../../../../../VTKData/Data/Infovis/SQLite/" sqlite_file = data_dir + "SmallEmailTest.db" database = vtkSQLDatabase.CreateFromURL("sqlite://" + sqlite_fi...
timkrentz/SunTracker
IMU/VTK-6.2.0/Examples/Infovis/Python/database_query1.py
Python
mit
627
[ "VTK" ]
e814e346a19a789ab3068db084f4b92ba30aec238b71bc33466eab57997627cb
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','...
ryugoo/TiExtendTab
build.py
Python
mit
6,804
[ "VisIt" ]
f9d0820ee5a749060727dd6ed862f0954688edc6076b0a136adbf6cbcf32a6ee
# This script is executed in the main console namespace so # that all the variables defined here become console variables. import ddapp import os import sys import PythonQt import json from PythonQt import QtCore, QtGui from time import time import imp import ddapp.applogic as app from ddapp import drcargs from ddapp...
rdeits/director
src/python/ddapp/startup.py
Python
bsd-3-clause
38,265
[ "VTK" ]
dfe295adc47fa75b5b119eba06b22035165e0da6306f56a4db4f6a293c403f66
import pandas as pd import numpy as np from statsmodels.tsa.stattools import adfuller as ADF s = pd.Series([1, 2, 3], index = ['a', 'b', 'c']) d = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns = ['a', 'b', 'c']) d2 = pd.DataFrame(s) d.head() d.describe() #pd.read_excel('data.xls') #pd.read_csv('data.csv', encoding ...
XiangYz/webscraper
data2.py
Python
lgpl-2.1
358
[ "ADF" ]
4c02dd0ba8bac9482d61a37d3b91eb0f39efa216dcd1a4fbfd87a4e1ae7f3ddc
# basic block timing analysis import utils import msp_base as base import msp_fr5969_model as model import msp_elftools as elftools from msp_isa import isa import msp_instr as instr class BasicBlock(object): def __init__(self, addr, verbosity = 0): self.addr = addr self.instrs = [] self.ca...
billzorn/msp-pymodel
lib/msp_cfg.py
Python
mit
22,399
[ "VisIt" ]
3e88282b328a855ac97e78d8103a6bf37cc1a2115c6d6a265696887a6e686bdb
#!/bin/env python #Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/lib/randomtext.py __version__=''' $Id: randomtext.py 3342 2008-12-12 15:55:34Z andy $ ''' ##################################...
commtrack/temp-aquatest
reportlab/lib/randomtext.py
Python
bsd-3-clause
19,004
[ "Brian", "Galaxy" ]
5ce0b41f65806a1125f98cf3d6008dd8764d68cce408c66d29059fab4fb1b3b6
# Copyright 2012 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia # This file is part of ngs_crumbs. # ngs_crumbs 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, ...
JoseBlanca/ngs_crumbs
test/seq/test_trim.py
Python
gpl-3.0
31,869
[ "BLAST" ]
f33959644ed2e1bb2bfd65e2cbca0be10c776b95f2abcfb532c665bc10e410f2
import os from ase import Atom, Atoms from ase.parallel import size, rank from gpaw import GPAW, FermiDirac from gpaw.analyse.simple_stm import SimpleStm from gpaw.test import equal load=True load=False txt = '/dev/null' txt='-' me = '' if size > 1: me += 'rank ' + str(rank) + ': ' BH = Atoms([Atom('B', [.0, ....
qsnake/gpaw
gpaw/test/simple_stm.py
Python
gpl-3.0
2,676
[ "ASE", "GPAW" ]
7e9f351809a700684e98dc200f2c91507dcba7eba0f2c88c71541b653229fc3e
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities for basic math operations. """ import collections import numpy as np def abs_cap(val, max_abs_val=1): """ Returns the value with its absolute value capped at max_...
gmatteo/pymatgen
pymatgen/util/num.py
Python
mit
4,590
[ "pymatgen" ]
2f3615ed3e5bbc6f7865d6012ee0e9386c748bfb5aebeda53f7fc70c8cefa075
# # 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/src/bigdl/chronos/model/Seq2Seq_pytorch.py
Python
apache-2.0
5,461
[ "ORCA" ]
0b94494466f2f569a6499a39fbeabc4a807b5514e129681d2b9ee0e4dfc4495e
# -*- coding: utf-8 -*- # Copyright 2013 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 require...
mattdr/gsutil
gslib/addlhelp/creds.py
Python
apache-2.0
8,137
[ "VisIt" ]
133ac74f80a215b6caa80884cde87261c75f239cd371a57fceb4d0ab345f19d9
import numpy import scipy.stats from scipy.stats import multivariate_normal from scipy.linalg import orth import matplotlib.pyplot as plt from math import pi ,sin, cos import h5py from scipy.ndimage.filters import gaussian_filter class rotation_3d(object): """ the class allows one to rotate a 3D vector in different...
davidwhogg/DeprojectAllGalaxies
scripts/astrohack_projections.py
Python
mit
15,510
[ "Galaxy" ]
55bcdcac3245578c3db09a71b0be572ff0bae94a9df854c6559cc6e8de5f6d04
# Copyright 2017 The Forseti Security 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 ap...
forseti-security/forseti-security
google/cloud/forseti/services/inventory/crawler.py
Python
apache-2.0
11,979
[ "VisIt" ]
c8b9c058c49f5dc86ce4284193b334b8cd5c473051df76800b7b6f7a6a8b1361