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
# # @file TestWriteMathML.py # @brief Write MathML unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file locat...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/math/TestWriteMathML.py
Python
bsd-3-clause
18,887
[ "Avogadro", "VisIt" ]
2666ed5e04d209f1c147bd9f759d0597554d81bc53bd143d39ffb8669d0b3ed9
""" .. module: security_monkey.auditors.custom.AnchoreAuditor :platform: Unix .. version:: $$VERSION$$ .. moduleauthor:: Pritam D. Gautam <pritam.gautam@nuagedm.com> @nuagedm """ from security_monkey.auditor import Auditor from security_monkey.watchers.custom.anchoreengine import AnchoreEngine ANCHORE_VULN_TAG ...
stackArmor/security_monkey
security_monkey/auditors/custom/anchore.py
Python
apache-2.0
2,035
[ "VisIt" ]
62560ee9639d7e9dcd61f67140cee32d7d3b11b98c670019763a473ed362d8d8
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage PaloAltoNetworks Firewall # (c) 2016, techbizdev <techbizdev@paloaltonetworks.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
simonwydooghe/ansible
lib/ansible/modules/network/panos/_panos_import.py
Python
gpl-3.0
5,413
[ "Galaxy" ]
a3594fb41aff7892c0c65d67dde6558f43887607b000dd236778d28e7f8abe48
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module implements the IRAFStarFinder class. """ import inspect import warnings from astropy.nddata import extract_array from astropy.table import QTable from astropy.utils import lazyproperty import numpy as np from .core import StarFinderBase, ...
astropy/photutils
photutils/detection/irafstarfinder.py
Python
bsd-3-clause
18,591
[ "Gaussian" ]
c2a9fd53dc19c41d4d6c7f2867d680b73f85de3643c2f8bf036bc77961e824cd
import tensorflow as tf # neural network for function approximation import gym # environment import numpy as np # matrix operation and math functions from gym import wrappers import gym_morph # customized environment for cart-pole import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import time star...
GitYiheng/reinforcement_learning_test
test03_monte_carlo/t42_change_gamma.py
Python
mit
7,663
[ "NEURON" ]
a6768668e6035f2e4c617127f2cc967fc31af3d8b67d1ec4189944f0c177273b
import pymatgen from pymatgen.core.composition import Composition from pymatgen.matproj.rest import MPRester from pymatgen.phasediagram.maker import PhaseDiagram from pymatgen.phasediagram.maker import CompoundPhaseDiagram from pymatgen.phasediagram.entries import PDEntry from pymatgen.phasediagram.entries import Trans...
mmdg-oxford/papers
Filip-JPCC-2018/Scripts/quatphase.py
Python
gpl-3.0
4,028
[ "pymatgen" ]
5f171954b607bdf8a3d799bbc9e672b62a78789846f76cffb35612aa739d67c9
#!/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
python/peacock/tests/input_tab/BlockTree/test_BlockTree.py
Python
lgpl-2.1
10,469
[ "MOOSE" ]
e751a29f4fd1780e1cd35a54eb7fa7461e57f9d70fe494109775f7c7a3f98d9c
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
Kleptobismol/scikit-bio
skbio/draw/_distributions.py
Python
bsd-3-clause
30,658
[ "scikit-bio" ]
aa64db627e816ca64fb16ea873f19485cf34f08df7d45e7e5c32fba28030934e
# test_hcinput.py """ Series of tests for hcinput.py """ # Import modules from heisenberg_coefficients import hcinput from pathlib import Path import unittest import numpy as np # Create test classes class TestINPUT(unittest.TestCase): """ Series of tests for input.py module. """ # Setup def setU...
jkglasbrenner/heisenberg_coefficients
heisenberg_coefficients/tests/test_hcinput.py
Python
gpl-3.0
3,971
[ "VASP" ]
986f2eb4366f6332dff2c4570364dee66c2224825ff14894ea9443807f49f559
#!/usr/bin/env python2 desc="""Align pairs/mates onto contigs and run SSPACE scaffolder. Example: fastq2sspace.py -v -f contigs.fa -n pe300 pe600 pe5000 -1 ../../_archives/PL429.{3,6,50}00_read1*.fastq.gz -2 ../../_archives/PL429.{3,6,50}00_read2*.fastq.gz -i 300 600 5000 -s 0.15 0.25 0.5 -t FR FR RF -u 5000000 """ epi...
lpryszcz/bin
fastq2sspace.py
Python
gpl-3.0
10,284
[ "Bowtie" ]
674809718308b439811748c7da6e5751c3c8c43279229fd6a3b3572fe7b4662f
""" DataStore is the service for inserting accounting reports (rows) in the Accounting DB """ import datetime from DIRAC import S_OK, S_ERROR, gConfig, gLogger from DIRAC.AccountingSystem.DB.MultiAccountingDB import MultiAccountingDB from DIRAC.ConfigurationSystem.Client import PathFinder from DIRAC.Core.DISET.Reque...
Andrew-McNab-UK/DIRAC
AccountingSystem/Service/DataStoreHandler.py
Python
gpl-3.0
7,935
[ "DIRAC" ]
cd8241852eb39d50790718bd801bc3992423d8fb839f8c3f33e15257d675381d
""" .. module:: polar :platform: Windows :synopsis: Implementation of a class for optical pumping simulations. .. moduleauthor:: Wouter Gins <wouter.gins@fys.kuleuven.be> """ import numpy as np from satlas.profiles import Voigt, Lorentzian from satlas.basemodel import BaseModel from scipy import integrate...
woutergins/polarization
polarization/satlasaddon.py
Python
mit
24,328
[ "Gaussian" ]
f59d9f9d7ab8a6292aacd4d524c74aab5c77b947823ae57f4c71a62afd1cc6f8
# Copyright 2007 by Tiago Antao <tiagoantao@gmail.com>. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. ''' Support for asynchronous execution. ''' import os import thread ...
bryback/quickseq
genescript/Bio/PopGen/Async/__init__.py
Python
mit
3,538
[ "Biopython" ]
86dcd9efb502dc2e47335e6a7ba3b9ca35596e70220ee1e3250dd1142a071047
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('whsites', '0002_auto_20150102_1905'), ] operations = [ migrations.RemoveField( model_name='visit', n...
robjordan/unesco_project
unesco/whsites/migrations/0003_auto_20150207_1347.py
Python
apache-2.0
521
[ "VisIt" ]
7d8c25ea03b76af8085a00e2a8cfdd7443d48028693f58bbf467b251646c790a
# coding=utf-8 import logging from deprecated import deprecated from requests import HTTPError from .base import BitbucketBase from atlassian.bitbucket.cloud import Cloud log = logging.getLogger(__name__) class Bitbucket(BitbucketBase): def __init__(self, url, *args, **kwargs): if "cloud" not in kwargs...
AstroTech/atlassian-python-api
atlassian/bitbucket/__init__.py
Python
apache-2.0
121,356
[ "VisIt" ]
000e57782fa72ae3238387610935d09ca4fa67b154909d8828cb3e818b3c95eb
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from .posterior import PosteriorExact as Posterior from ...util.linalg import pdinv, dpotrs, tdot from ...util import diag import numpy as np from . import LatentFunctionInference log_2_pi = np.log(2*n...
mikecroucher/GPy
GPy/inference/latent_function_inference/exact_gaussian_inference.py
Python
bsd-3-clause
2,705
[ "Gaussian" ]
a0472f9307602036d832c22c9aac892e4de4ba198191dc44e454f21e8711b143
from __future__ import absolute_import, division, print_function import ast from jaspyx.visitor import BaseVisitor class AugAssign(BaseVisitor): def visit_AugAssign(self, node): attr = getattr(self, 'AugAssign_%s' % node.op.__class__.__name__, None) if attr is None: # Rewrite the expre...
ztane/jaspyx
jaspyx/visitor/augassign.py
Python
mit
1,275
[ "VisIt" ]
a06302d2f72adc7bfe55117eabd948376421f7b5d4824b63c7b547723e212dfa
#!/usr/bin/python # Filename: basic.py # # Code by Martin Jucker, distributed under an MIT License # Any publication benefitting from this piece of code should cite # Jucker, M 2014. Scientific Visualisation of Atmospheric Data with ParaView. # Journal of Open Research Software 2(1):e4, DOI: http://dx.doi.org/10.5334/j...
mjucker/pv_atmos
basic.py
Python
mit
16,796
[ "NetCDF", "ParaView" ]
66e03f37ebde96bd5e77a8005d21f380fde61b92743ad858ad48d52dee621ecc
#!/usr/bin/env python ######################################################################################### # # Extract spinal levels # # # --------------------------------------------------------------------------------------- # Copyright (c) 2014 Polytechnique Montreal <www.neuro.polymtl.ca> # Author: Karun Raju...
neuropoly/spinalcordtoolbox
dev/spinal_level/sct_extract_spinal_levels.py
Python
mit
12,573
[ "Gaussian" ]
59a7f2c6f5445dd0a4fc6b9049a2682437d76db6a468a079bd8d6d6a2886bc39
# -*- coding: utf-8 -*- """A cool pool of tools for PyBEL.""" from .version import get_version # noqa: F401
pybel/pybel-tools
src/pybel_tools/__init__.py
Python
mit
111
[ "Pybel" ]
94a7803bf7c9fe74b2f60104dac0439e36394706c26176029d8c522b20700ef8
#!/usr/bin/env python ######################################################################## # $Header: /local/reps/dirac/DIRAC3/scripts/dirac-version,v 1.3 2008/03/22 10:39:02 rgracian Exp $ # File : dirac-version # Author : Ricardo Graciani ######################################################################## ...
rajanandakumar/DIRAC
Core/scripts/dirac-version.py
Python
gpl-3.0
484
[ "DIRAC" ]
31cca73682ab9fca44a27d8cd6f6178f395375cedfb91fc9e0106cef6c639985
#!/usr/bin/env python ''' IP/EA-RADC calculations for closed-shell N2 ''' from pyscf import gto, scf, adc mol = gto.Mole() r = 1.098 mol.atom = [ ['N', ( 0., 0. , -r/2 )], ['N', ( 0., 0. , r/2)],] mol.basis = {'N':'aug-cc-pvdz'} mol.build() mf = scf.RHF(mol) mf.conv_tol = 1e-12 mf.kernel() myadc ...
sunqm/pyscf
examples/adc/01-closed_shell.py
Python
apache-2.0
795
[ "PySCF" ]
03929b5e8986aaaf1901952cdbaf776ec21e272b038feca152b3032d64036faa
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
omwomotieno/tunza_v3
config/urls.py
Python
mit
1,872
[ "VisIt" ]
4d72dca396a8a5115cbb407ba98889da4dce04f5369be4b3a68a98cbef846433
""" @name: PyHouse_Install/src/Install/Utility.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2016 by D. Brian Kimmel @license: MIT License @note: Created on Oct 13, 2015 @Summary: """ # Import system type stuff import getpass import os import subpro...
DBrianKimmel/PyHouse_Install
src/Install/Utility.py
Python
mit
1,820
[ "Brian" ]
7550edcd73b1c5ff41c1506b231ee8281dce864694b7fe4948d7c46c37b1df77
typo_dict = { 'steele stake': 'steel stake', 'gas mowe': 'gas mower', 'metal plate cover gcfi': 'metal plate cover gfci', 'lawn sprkinler': 'lawn sprinkler', 'ourdoor patio tile': 'outdoor patio tile', '6 teir shelving': '6 tier shelving', 'storage shelve': 'storage shelf', 'American Sta...
dnc1994/Kaggle-Playground
typo_dict.py
Python
mit
184,114
[ "Amber", "CRYSTAL", "ESPResSo" ]
302b312bff642cd702773060045e188592345fc9914d13a891c33fbd095dc095
# Copyright 2021 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/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
googleinterns/sgonks
project/services/data_updater/scripts/data_generator.py
Python
apache-2.0
2,700
[ "Gaussian" ]
644b3548b391a9704ff3c69e111e97fd24dd87e10a0b11e62ccf23f474192302
# -*- coding: utf-8 -*- # Copyright 2015 splinter 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 os import sys import time import unittest import pytest import django from splinter import Browser from .base import BaseBrowse...
cobrateam/splinter
tests/test_djangoclient.py
Python
bsd-3-clause
6,394
[ "VisIt" ]
2a69f52e3dfd18a311556d5446b3211ef20bbef91b808cd4ddf2cf8aa13a59ad
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
kain88-de/mdanalysis
package/MDAnalysis/selections/base.py
Python
gpl-2.0
8,918
[ "CHARMM", "Gromacs", "MDAnalysis", "PyMOL", "VMD" ]
5f01a0a402199a8258dffca0dbd6ed3bb08741b3bd20a7c7d271c8042b35f4d9
#!/usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2015 Brian Pursley # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the r...
weissan/BlockQuicksort
LomutoBlockQuickSortGenerator/sortingnetwork.py
Python
gpl-3.0
5,530
[ "Brian" ]
c92605fed7a6ab99e657770824ba32a30a520bf8e8bdf49c5acd0b2ccb28c4b1
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
juanchopanza/NeuroM
neurom/fst/tests/test_neuronfunc.py
Python
bsd-3-clause
6,265
[ "NEURON" ]
3b5edf5ce0fe7fcc0f95229f4f939b63847ea0d76d16fbad8d8ad0c2e0928c10
# BOM_SOLAR_ASCII_TO_NETCDF.PY # # The input proprietary format supported by this example is a Bureau of # Meteorology (BoM) ArcView ASCII grid file. The format contains a header # (defines the shape and size of the grid), space-separated ASCII data, and # tail metadata that contains internal BoM processing informatio...
KimberleyOpie/common-tools
raw_data_tools/bom_solar_ascii_to_netcdf_day.py
Python
apache-2.0
17,048
[ "NetCDF" ]
24b94e689474b3cb4eae7afcbcf0b5510b723cbd557faa53c47588783036493f
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # on the...
guorendong/iridium-browser-ubuntu
third_party/mesa/src/src/mapi/glapi/gen/gl_SPARC_asm.py
Python
bsd-3-clause
9,011
[ "Brian" ]
877050027a941467c97fa5c49defee20dcbdcc0543ffbccb3acc1d0e7855df21
"""Generated message classes for testing version v1. Allows developers to run automated tests for their mobile applications on Google infrastructure. """ # NOTE: This file is autogenerated and should not be edited by hand. from protorpc import messages as _messages from googlecloudapis.apitools.base.py import encodi...
wemanuel/smry
smry/server-auth/ls/google-cloud-sdk/lib/googlecloudapis/testing/v1/testing_v1_messages.py
Python
apache-2.0
43,063
[ "Galaxy" ]
898b69899f6fa1e8d2875b30e78149f8fa41ee6ad5093321e4516c987afd4229
import numpy as np import pytest import mbuild as mb from mbuild.formats.par_writer import write_par from mbuild.tests.base_test import BaseTest from mbuild.utils.io import get_fn, has_foyer @pytest.mark.skipif(not has_foyer, reason="Foyer package not installed") class TestPar(BaseTest): @pytest.mark.skipif(not ...
iModels/mbuild
mbuild/tests/test_par.py
Python
mit
1,485
[ "CHARMM" ]
0b317c675b5c5a1c4a11dec8fea3d0d08657afb326dcce8f5403c8bceed92dfd
#!/usr/bin/env python from __future__ import absolute_import, print_function import argparse import lsst.daf.persistence as daf_persistence import lsst.afw.display as afw_display def list_diffims(butler): """ Use the butler to figure out what data are available Parameters ---------- butler : daf_pe...
DarkEnergyScienceCollaboration/Twinkles
bin/view_diffs.py
Python
mit
5,616
[ "VisIt" ]
334c30d856d5a0ba236d6ccacdf064c15644ba68f87cf76cf529363033682bc7
import sys sys.path.insert(1, "../../") import h2o, tests def offset_1388(ip, port): print "Loading datasets..." pros_hex = h2o.import_file(h2o.locate("smalldata/prostate/prostate.csv")) pros_hex[1] = pros_hex[1].asfactor() pros_hex[3] = pros_hex[3].asfactor() pros_hex[4] = pros_hex[4].asfact...
bospetersen/h2o-3
h2o-py/tests/testdir_jira/pyunit_NOPASS_pubdev_1388_offset_comparisons.py
Python
apache-2.0
3,007
[ "Gaussian" ]
eaaefdfe33e8cd6cd8894c4f2ffc9383b85ccd7681517fc7a34305a70633f9b7
# Copyright (C) 2019-TODAY - Raphaël Valyi Akretion # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). import inspect import logging import sys from odoo import SUPERUSER_ID, api, models from .models.spec_models import SpecModel, StackedModel _logger = logging.getLogger(__name__) def pos...
OCA/l10n-brazil
spec_driven_model/hooks.py
Python
agpl-3.0
5,709
[ "VisIt" ]
77b2538fb1699fa4ccb143226cfeb352499240ef678b1dffd7a57a8a3e8ee2bf
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import locale from collections import Ordere...
r-o-b-b-i-e/pootle
pootle/apps/pootle_language/models.py
Python
gpl-3.0
8,392
[ "VisIt" ]
6db9a278a29f35f8fd04f00fa3d40a7e3f5ad4c4a124d639a862e7bcd7d093aa
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ url(r'^$', RedirectView.as_view(...
abirafdirp/inventory
inventory/config/urls.py
Python
bsd-3-clause
1,565
[ "VisIt" ]
abb15f3c64bb95ee9bb6f19cbfc0885560f03109be05ba4266249f436d3f4e9f
#1/usr/bin/env python #-*- coding:utf-8 -*- ''' Created at 2010.01.14 @version: 0.0.3 @change:\n - 2010.01.14. - Create this file. - 2010.01.18\n - Test the function B{Get_rotate_matrix()} - Add the function B{Write_rotate_matrix()} - Add the function B{Rotate_2_vector()} ...
zhuhong/g4analysis
G4Analysis/G4_rise.py
Python
gpl-2.0
14,537
[ "MDAnalysis" ]
1e3f044fdaaeb728a2420c0912ece79c7b2dc3f0074d058fb7b4aa24b570d181
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html from Job im...
nuclear-wizard/moose
python/ClusterLauncher/PBSJob.py
Python
lgpl-2.1
7,056
[ "MOOSE" ]
61c3df806692ea73f29fdcd121cd30b9c6ad21193e443afe30acf22858a2bbfb
# Maked by Mr. Have fun! Version 0.2 # Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project # Visit http://forum.l2jdp.com for more details import sys from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import QuestState from com.l2scoria.gameserver....
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/228_TestOfMagus/__init__.py
Python
gpl-3.0
11,600
[ "VisIt" ]
8e2c6752296981414d60d024ee0b5a3dd4a66deb187058682f9e7afec46bb68e
# -*- coding: utf-8 -*- r""" ------------> ------------> ------------> ------------> ______ __ _ ____ / ____/__ / /__ ____ (_)_ ______ ___ / _ \____ ________ \__ \/ _ \/ / _ \/ __ \/ / / / / __ `__ \/ /_) / __ \/ ___/ _ \ ___/ / __/ / __/ / / / / /_/ / / / / / / /_) / ...
seleniumbase/SeleniumBase
seleniumbase/fixtures/base_case.py
Python
mit
524,441
[ "VisIt" ]
e3341ed045e8d73c84c0a4295f08b28d8b58fc727b4f61169c21377807d71e7b
# -*- coding: utf-8 -*- # Copyright 2007-2020 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
dnjohnstone/hyperspy
hyperspy/tests/model/test_fancy_indexing.py
Python
gpl-3.0
5,715
[ "Gaussian" ]
6f40185e327106f6ac4c0238cc961b11773173beb320e0986817d340dac693c9
# coding:utf-8 from custor.logger import logger from db.mysql_model.post import PostCategory, PostTopic, Post import psutil, datetime, time # Trick cache topic_category_cache = {'categorys': [], 'topics': []} hot_post_cache = {'reply': [], 'visit': []} system_status_cache = [0, 0, 0, 0] def update_topic_category_ca...
jmpews/torweb
app/cache.py
Python
mit
2,751
[ "VisIt" ]
dbad7ac5ea9b5b143fb871367fdf332d699aa04426daf02473732a27bac62009
""" DeadCodeElimination remove useless code. """ from pythran.analyses import PureExpressions, DefUseChains, Ancestors from pythran.openmp import OMPDirective from pythran.passmanager import Transformation import pythran.metadata as metadata import gast as ast class ClumsyOpenMPDependencyHandler(ast.NodeVisitor): ...
serge-sans-paille/pythran
pythran/optimizations/dead_code_elimination.py
Python
bsd-3-clause
4,981
[ "VisIt" ]
36ff06dc563ae9c7d201c2c7d1568bee8e1b337c57d79b86de3acc755a8f932b
# This file is part of the Fluggo Media Library for high-quality # video and audio processing. # # Copyright 2012 Brian J. Crowell <brian@fluggo.com> # # 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 Founda...
fluggo/Canvas
fluggo/editor/plugins/_base.py
Python
gpl-3.0
17,052
[ "Brian" ]
4e6969b7bbe132b16354115065ac4e401f4ff27cdee545ce8c1ca23cee685fd3
import numpy as np import pandas as pd import matplotlib.pyplot as plt def correlation_categories(data_retina): """ assign numerical values to stimuli based on correlation category as per variable stim_categories""" stim_categories = {'white': 3, 'fullfield': 0, 'multiscale': 1, 'spatexp': 2, 'spattempexp': ...
curious-abhinav/change-point
src/features/build_features.py
Python
mit
8,628
[ "Brian", "NEURON" ]
590c44efceb617d0617282d89d3b0680037870c3542c049c449a1454dc7a8093
# Copyright 2019, The TensorFlow Federated 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/federated
tensorflow_federated/python/simulation/datasets/stackoverflow.py
Python
apache-2.0
14,910
[ "VisIt" ]
e36b692c4df4e0ec44ccb2fc42e2dfe104710e199f50d12d0ec0a6ab562c6ea0
#!/usr/bin/env python from multiprocessing import Pool import time import os import sys import argparse # Copyright(C) 2015 David Ream # Released under GPL version 3 licence. http://www.gnu.org/licenses/lgpl.html # Do not remove this comment # This exists to make the main function easier to read. It contains code t...
nguyenngochuy91/Ancestral-Blocks-Reconstruction
blast_script.py
Python
gpl-3.0
7,346
[ "BLAST" ]
58edb7ccc2788081d305e1164445c0e3c33a6e510ecb2f0eba202dfd45a846cc
from os.path import join import os import numpy as n import glob import sys import time import astropy.io.fits as fits from os.path import join import astropy.cosmology as co cosmo = co.Planck13 import astropy.io.fits as fits # for one galaxy spectrum import GalaxySpectrumFIREFLY as gs import StellarPopulationModel ...
JohanComparat/pySU
spm/bin_deep_surveys/create_summary_table_DEEP2.py
Python
cc0-1.0
4,443
[ "Galaxy" ]
3dee5f01d26e2e72c3c28b1ed88a083de48faa39a0e6b8b19934a5941bbe6da1
#!/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/pbc/gto/test/test_cell.py
Python
apache-2.0
13,097
[ "PySCF" ]
9ad7678721ee715842235d24151dd3e755b5c44f9f93c13be3b9f7bcc5a34249
# (C) British Crown Copyright 2010 - 2017, 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...
QuLogic/iris
lib/iris/tests/system_test.py
Python
gpl-3.0
3,658
[ "NetCDF" ]
d23ea6591ef5a1c65f489bddba54b8ae7fdd4a99c94d5ca7998c6c4aaba3fb51
# Copyright (C) 2016 Henrique Pereira Coutada Miranda # All rights reserved. # # This file is part of yamboparser # # import os import re import numpy as np #we try to use netcdf try: from netCDF4 import Dataset except ImportError: _has_netcdf = False else: _has_netcdf = True class YamboFile(): """ ...
henriquemiranda/yambopy
yamboparser/yambofile.py
Python
bsd-3-clause
11,075
[ "NetCDF", "Yambo" ]
8bacba086cb99afd2a45d481223231f5847cd52bbb3f69bd7bf9fe54991b4a48
#!/usr/bin/env python """ Where you at? """ import sys,os import logging from collections import OrderedDict as odict from datetime import datetime,timedelta,tzinfo import dateutil.parser import mpl_toolkits.basemap as basemap from matplotlib.patches import Ellipse, Circle import matplotlib.patheffects as patheffects ...
kadrlica/pointing
pointing/pointing.py
Python
mit
29,180
[ "Galaxy" ]
57175f7c96750874b1188048bffa941a31462810d6a0a1bdb387015299a3e32d
""" Assume the production of Individual instances. """ import random from functools import partial import neural_world.default as default from neural_world.commons import NeuronType from neural_world.individual import Individual from neural_world.commons import Configurable from neural_world.neural_network impo...
Aluriak/neural_world
neural_world/incubator.py
Python
gpl-2.0
2,689
[ "NEURON" ]
ced6217cf7f11096bc4aeb602e421038cfb578be7e7f340517826a3ed745a02b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The initial version of this module was based on a similar implementation present in FireWorks (https://pypi.python.org/pypi/FireWorks). Work done by D. Waroquiers, A. Jain, and M. Kocher. The main differenc...
aykol/pymatgen
pymatgen/io/abinit/qadapters.py
Python
mit
79,102
[ "ABINIT", "pymatgen" ]
246ddca62d8ad4cc7a0133a1a6efdea63a4029870eb65dfe63d7175ec37bfa63
from __future__ import absolute_import import ast class MockAttrVisitor(ast.NodeVisitor): non_existent_methods = frozenset([ 'assert_calls', 'assert_not_called', 'assert_called', 'assert_called_once', 'not_called', 'called_once', 'called_once_with', ]) ...
Natim/sentry
src/sentry/lint/mock_check.py
Python
bsd-3-clause
974
[ "VisIt" ]
26abe0c7893d62fb05c0423b126042647407faee9d58a9caf0fb585c401bd43b
# Copyright (c) 2009 Brian Zimmer <bzimmer@ziclix.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, m...
bzimmer/openroom
openroom/reports.py
Python
mit
3,462
[ "Brian" ]
97fb665f311e7374ae6e94ce75de8d2bc55d2989f698cf69469d869e9c901c94
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
yanlend/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
37,683
[ "Brian" ]
6762bd19d4a7b7aeede5de2d62f6a9ae5591b4d47805c3bc640f318a075cdd50
""" Retrieves dependencies from setup.py file """ import ast from os import path import pdb class SetupVisitor(ast.NodeVisitor): def __init__(self): self.install_requires_parse_fail = False self.candidates = {} self.deps = [] def visit_Assign(self, node): if len(node.targets)...
sourcegraph/python-deps
setupdep.py
Python
bsd-2-clause
1,889
[ "VisIt" ]
9818a3e6fa53d50547ed54760f1214ad2d4816ee346a98d0f44962d0b286260b
# Copyright Yair Benita Y.Benita@pharm.uu.nl # Biopython (http://biopython.org) license applies """Simple protein analysis. Example, X = ProteinAnalysis("MAEGEITTFTALTEKFNLPPGNYKKPKLLYCSNGGHFLRILPDGTVDGTRDRSDQHIQLQLSAESVGEVYIKSTETGQYLAMDTSGLLYGSQTPSEECLFLERLEENHYNTYTSKKHAEKNWFVGLKKNGSCKRGPRTHYGQKAILFLPLPV") print X....
asherkhb/coge
bin/last_wrapper/Bio/SeqUtils/ProtParam.py
Python
bsd-2-clause
10,850
[ "Biopython" ]
017e9c872ca30a0fba180b2ab2d4825c28f79eeda24a63c2302c661b4df1902b
# pylint: disable=C0111 # pylint: disable=W0621 from lettuce import world, step from nose.tools import assert_true, assert_in, assert_false # pylint: disable=E0611 from auth.authz import get_user_by_email, get_course_groupname_for_role from django.conf import settings from selenium.webdriver.common.keys import Keys...
TsinghuaX/edx-platform
cms/djangoapps/contentstore/features/common.py
Python
agpl-3.0
12,646
[ "VisIt" ]
1bef8bcb82e553570c6366bba5abed987514b892304a392d7e6dbdce45adb587
# (c) 2014 Michael DeHaan, <michael@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/playbook/role/requirement.py
Python
bsd-3-clause
8,216
[ "Galaxy" ]
68525aff2569a51b35e83f55006e6e4fa262bcaf25d0e489daf0a6dced584ff6
#!/usr/bin/env python from __future__ import print_function from __future__ import division from builtins import str from builtins import range from builtins import object # standard library # third party import numpy as np from scipy.cluster.hierarchy import fcluster, dendrogram from scipy.spatial.distance import sq...
DessimozLab/treeCl
treeCl/clustering.py
Python
mit
21,507
[ "Biopython", "Gaussian" ]
df0cf6b2cd7ce5be432231fcdf0092c34f4579a657532ec04bba0caa3621c5f0
from matplotlib import pyplot as plt from annotate import annotate_horiz import psychic import numpy as np f = plt.figure(figsize=(10,5)) f.add_axes([0.1, 0.1, 0.5, 0.5]) d = psychic.fake.gaussian(4, 10, 100) d = psychic.nodes.Butterworth(4, 15, 'lowpass').train_apply(d, d) psychic.plot_eeg(d, fig=f, vspace=3) plt.yl...
wmvanvliet/psychic
docs/images/sliding_window.py
Python
bsd-3-clause
599
[ "Gaussian" ]
0304d848ec6b220e18abc9ee9d88cd574b4ca919cad56965505ff791e7f881ca
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ import urllib from datetime import datetime, timedelta from textwrap import dedent import pytz from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture, CourseUpdateDesc, XBlockFixtureDesc from common.test.accep...
Edraak/edraak-platform
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
45,548
[ "VisIt" ]
af158026003633f28c7d3b0a5b2dca1d1abdf0ecb464ffbec414958067866961
# # This file is a part of the normalize python library # # normalize is free software: you can redistribute it and/or modify # it under the terms of the MIT License. # # normalize is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FI...
samv/normalize
tests/test_record.py
Python
mit
7,140
[ "VisIt" ]
a7d71d3a3cbe92201c9f57fe199e72acc5e30b1081bf45488d0b139eb16b1b97
# -*- coding: utf-8 -*- # # pychemqt documentation build configuration file, created by # sphinx-quickstart on Wed Jan 13 22:26:06 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
jjgomera/pychemqt
docs/conf.py
Python
gpl-3.0
14,259
[ "Pybel" ]
720f072e01cc368e3e5674ff64fa6b32850a853a9032452d378fd43997cb9c11
""" Class that contains client access to the JobManager handler. """ from DIRAC.Core.Base.Client import Client, createClient @createClient("WorkloadManagement/JobManager") class JobManagerClient(Client): """JobManagerClient sets url for the JobManagerHandler.""" def __init__(self, url=None, **kwargs): ...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Client/JobManagerClient.py
Python
gpl-3.0
711
[ "DIRAC" ]
060f15b35eca7562dda73fefa1f436491d945304a06bf251d04686dab0fdab0d
########################################################################### # (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. # # # # # # This file is ...
ElettraSciComp/STP-Core
STP-Core/preprocess/ringremoval/raven.py
Python
gpl-3.0
5,407
[ "Gaussian" ]
032d6d3f380e357106979f10b927ad6b8269cf18870afe2732d17519b615bde5
''' Created on Nov 21, 2011 @author: Mirna Lerotic, 2nd Look Consulting http://www.2ndlookconsulting.com/ Copyright (c) 2013, Stefan Vogt, Argonne National Laboratory All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
MapsPy/MapsPy
maps_generate_img_dat.py
Python
bsd-2-clause
88,104
[ "NetCDF" ]
7c95bc52392c5a257c1b71ed82ad342d036b7d3e5da973a7bddebecd5f135e98
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
dbtsai/spark
python/pyspark/ml/regression.py
Python
apache-2.0
89,077
[ "Gaussian" ]
8713d484fe83b5eab74295e2823d5903f0678af6b3e2cd2c0397a5d176626c0d
import numpy import os.path import sys try: import vtk from vtk.util import numpy_support except: pass class VelocityModel: ''' Subsurface model object. Used to read, write and manage model data. ''' def __init__(self, filename=None, vp=None, subsample=1): self.filename = filename ...
opesci/inversion
python/VelocityModel.py
Python
bsd-3-clause
6,993
[ "VTK" ]
9ce713d3711fcc734298d5167014a2239c6036635cc5e960addb6063c9eaacff
# -*- coding:utf-8 -*- """ TINY PORT of https://github.com/paularmstrong/normalizr """ class Schema(object): def normalize(self, value, parent, key, schema, addEntity, visit): assert 0, 'not implemented' def denormalize(self, inputData, unvisit): assert 0, 'not implemented' class ArraySchem...
glucoseinc/naumanni-server
naumanni/normalizr.py
Python
agpl-3.0
3,134
[ "VisIt" ]
c7453a608122e381476cac6735d6a3d60542ac2959d387cc5df3dc9d6c6718f7
""" Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK. Note: If there are multiple valid itineraries, you should return the itinerary th...
franklingu/leetcode-solutions
questions/reconstruct-itinerary/Solution.py
Python
mit
2,419
[ "VisIt" ]
a825b7dff97a26a1ddeafedf5aca037dfcf32a0717a80ff816c4d50eb7e5dea1
# -*- coding: utf-8 -*- import os import re import zipfile from django import forms from django.conf import settings from django.core.cache import cache from django.core.urlresolvers import reverse from mock import Mock, patch from nose.tools import eq_ from mkt.files.helpers import FileViewer, DiffHelper from mkt.f...
tsl143/zamboni
mkt/files/tests/test_helpers.py
Python
bsd-3-clause
11,592
[ "exciting" ]
2f3c93174703eeab76bbeda06f9fb804e6b07ce3355560353d453cabdf3af5af
""" This is a test of using SandboxStoreClient in the WMS In order to run this test we need the following DBs installed: - SandboxMetadataDB And the following services should also be on: - SandboxStore And a SandboxSE should be configured, something like: SandboxStore { LocalS...
andresailer/DIRAC
tests/Integration/WorkloadManagementSystem/Test_SandboxStoreClient.py
Python
gpl-3.0
2,056
[ "DIRAC" ]
3a641bb43a31fccf7216ae0f75167a70e9f1ff1a4cc453fe54e8e7e275a86162
#!/usr/bin/env python # Authors: Andrew Jewett (jewett.aij at g mail) # http://www.chem.ucsb.edu/~sheagroup # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2011, Regents of the University of California # All rights reserved. """ ttree Ttree is a simple program for recursively composing and ...
ganzenmg/lammps_current
tools/moltemplate/src/ttree.py
Python
gpl-2.0
221,566
[ "LAMMPS", "NAMD", "VisIt" ]
8758822ae1d4d595164d04f4e5a35acf32f815ef5f7d17a8a17dd9506a53c1be
"""Install next gen sequencing analysis tools not currently packaged. """ import os import re from fabric.api import * from fabric.contrib.files import * import yaml from shared import (_if_not_installed, _make_tmp_dir, _get_install, _get_install_local, _make_copy, _configure_make, ...
lpantano/cloudbiolinux
cloudbio/custom/bio_nextgen.py
Python
mit
33,863
[ "Bowtie" ]
5ddeb7ceb0d852eaf25eb5725f83221a04d7bd304588ae4d84d5cca1c9c3763e
#!/usr/bin/env python # vim: fileencoding=utf-8 et ts=4 sts=4 sw=4 tw=0 fdm=marker fmr=#{,#} """ A simple asynchronous RPC client that shows how to: * use specific serializer * make multiple RPC calls at the same time using the Python threading API * handle remote exceptions * do load balancing """ #...
srault95/netcall
examples/threading/client_threading.py
Python
bsd-3-clause
2,637
[ "Brian" ]
9c5415d5e0e5a19ba8e38b3a6d97b343234a94c6b9108c435aec3d05e5151b31
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import gtk import os from zeroinstall.support import tasks from zeroinstall.gtkui import gtkutils n_windows = 0 last_error = None builderfile = os.path.join(os.path.dirname(__file__), 'zero-install.ui') class Temp...
timdiels/zeroinstall
zeroinstall/0launch-gui/dialog.py
Python
lgpl-2.1
1,958
[ "VisIt" ]
cfdf4fbfa7340747b8808121baf4f87baa4d42fad3edf45e33bf5a80d13cf560
# Copyright 2006 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 a...
dbarobin/google-mysql-tools
pylib/trickle_lib.py
Python
apache-2.0
9,685
[ "Brian" ]
552901fd8afd1d3d7ddb89e466c99ddfe31346c152e1973b4af0dc1a9939b1fc
#!/usr/bin/env python2 # # Copyright (C) 2013-2017(H) # Max Planck Institute for Polymer Research # # This file is part of ESPResSo++. # # ESPResSo++ 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,...
govarguz/espressopp
testsuite/AdResS/FreeEnergyCompensation/test_FreeEnergyCompensation.py
Python
gpl-3.0
6,885
[ "ESPResSo" ]
93faf1a09d7512823f14c9d3051f8816870851763c32b4bfd6cbf3953cff3bb4
# dagutil.py - dag utilities for mercurial # # Copyright 2010 Benoit Boissinot <bboissin@gmail.com> # and Peter Arrenbrecht <peter@arrenbrecht.ch> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from node import nullrev from i18n ...
iaddict/mercurial.rb
vendor/mercurial/mercurial/dagutil.py
Python
mit
8,237
[ "VisIt" ]
ad997157fe91254bec6c2d41e855a34f3abc1fe67f8c8972357d058fbb6e2867
################################################################################ # # # Copyright (C) 2010-2018 The ESPResSo project # # ...
mkuron/espresso
doc/tutorials/06-active_matter/SOLUTIONS/flow_field.py
Python
gpl-3.0
4,745
[ "ESPResSo", "VTK" ]
9f652d9677a45d8fde595ca83b94ed2773a6b5b0c16f946444bc7311d9684519
# -*- coding: utf-8 -*- ## does summation of echoes using external python script import sys import os import os.path import subprocess import JTutils dataset = CURDATA() LB = GETPAR("1 LB") GB = GETPAR("LB") s = GETPAR("USERP1") res = INPUT_DIALOG("processing parameters", """ please provide : the gaussian...
jtrebosc/JTutils
TSpy/apod2DEAE.py
Python
bsd-3-clause
807
[ "Gaussian" ]
4765439465a6151e46b921efeda68533e0f6df62a5f7450e1b23fcf44ec95242
class Item: def __init__(self, item_id, item_name): self.id = item_id self.name = item_name class Craftables def __init__(self): pass cord_of_winsome_sorrows = Item(119336, "Cord of Winsome Sorrows") everburning_candle = Item(118880, "Everburning Candle") savage_blood = Item(118472, "Savage Blood") sorcerou...
trigunshin/tsm
items.py
Python
mit
2,216
[ "CRYSTAL" ]
efd326320dc4b3ee9aa470da62c1080552346e59bd8ff32e19805b12f4e6a4cb
# (C) British Crown Copyright 2017 - 2018, 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...
dkillick/iris
lib/iris/_lazy_data.py
Python
lgpl-3.0
8,548
[ "NetCDF" ]
08206cb51c74f1bdc1a275158c8d08f24401ae4058e3e432fd1526b6d5c3d56f
# coding: utf-8 from __future__ import unicode_literals import re import time import xml.etree.ElementTree as etree from .common import InfoExtractor from ..compat import compat_urlparse from ..utils import ( unescapeHTML, urlencode_postdata, unified_timestamp, ExtractorError, ) MSO_INFO = { 'DT...
Tithen-Firion/youtube-dl
youtube_dl/extractor/adobepass.py
Python
unlicense
39,507
[ "COLUMBUS", "Elk" ]
2e8110971d89cb19d1094a8cb4e2c48fa8dec40f1231d944943927b35ec50c93
# -*- coding: utf-8 -*- # # Instant Press. Instant sites. CMS developed in Web2py Framework # Site: http://www.instant2press.com # # Copyright (c) 2010 Mulone, Pablo Martín # # License Code: GPL, General Public License v. 2.0 # License Content: Creative Commons Attribution 3.0 # # Also visit: www.web2py.com # ...
LispyAriaro/instant-press
modules/users.py
Python
gpl-2.0
31,385
[ "VisIt" ]
5ee8253d5e78460e19de767f7aadd2e13940a2f78e78d47b6941b5f78b611286
"""Tests for the DIRAC.Core.Utilities.Extensions module""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import DIRAC from DIRAC.Core.Utilities.Extensions import ( findSystems, findAgents, findExecutors, findServices, findDatabases, ...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/test/Test_Extensions.py
Python
gpl-3.0
1,162
[ "DIRAC" ]
d2422777a5f7ee976c522902db5ca6ecb61f4eb33591eb763b73564ede0834bb
# procedure for existing halos, after the first snapshot was initiated : import sys # only input parameter is the numbering of the snapshot. These have to be #processed in sequence, cannot be done in parallel ... First 1, 2, 3, ... #ii = int(sys.argv[1]) #print('snapshot' ii) import time t0 = time.time() from multipr...
JohanComparat/pyEmerge
python/EmergeIterate.py
Python
unlicense
30,464
[ "Galaxy" ]
ebf6aa686327d97aa3ac07a2026fcf0f13d9c5137ff3a3003d34feb58fdfce45
# # @file TestListOf.py # @brief ListOf unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file located at # src...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestListOf.py
Python
bsd-3-clause
4,604
[ "VisIt" ]
2275fd04f1613877f1c3f0e87e947b7c52088511e1a2b39f50cae4a5815ac2dc
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
briancurtin/python-openstacksdk
openstack/tests/unit/test_resource2.py
Python
apache-2.0
49,714
[ "Brian" ]
2e3fa91e444a7ed301e8e0434c95f72470a59987ed6afd46113efe38df130379
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from compiler.ast import Const from compiler.ast import Dict from compiler.ast import Discard from compiler.ast import List from compiler.ast import Module from co...
cloudpbl-senrigan/combinator
tools/gyp/pylib/gyp/input.py
Python
mit
113,529
[ "VisIt" ]
8f4a86f75bd4dcd7d56e9cdf0a71a3c2cee6cda0f8b6511d5d5f2edc2d61aacf
# -*- coding: utf-8 -*- ################################################################################ ### ### ReadLAMMPSdatafile ### ################################################################################ import numpy as np def get_box(filename): """Return the box edges and volume from a LAMMPS Da...
lorisercole/thermocepstrum
sportran/i_o/read_lammps_datafile.py
Python
gpl-3.0
864
[ "LAMMPS" ]
f52777ae7555d5f00fe89b8327d8e8e8bc5769c1a94fbcc2aebbaaa13b7df265
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageAnisotropicDiffusion3D(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkImageAnisotropicDiffusion3D.py
Python
bsd-3-clause
517
[ "VTK" ]
0fecf7e9016f955a8842bfb374e1dc09c212b7bb9cd2e02ebba832711d18f687
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
tests/runtest.py
Python
gpl-2.0
5,050
[ "Psi4" ]
632f4856d6198123141ac97391388b0bbd9178d9c177654af4b98f158bed90a6
""" This module contains deprecation messages and bits of code used elsewhere in the codebase that is planned to be removed in the next pytest release. Keeping it in a central location makes it easy to track what is deprecated and should be removed when the time comes. All constants defined in this module should be e...
lmregus/Portfolio
python/design_patterns/env/lib/python3.7/site-packages/_pytest/deprecated.py
Python
mit
4,095
[ "VisIt" ]
3b97ae5b10ed5f4b28122fc67a2f0c08cada27bd5f325523b76b190a2f89bfaa