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
########################################################################### # # 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/sa360_web_query_dag.py
Python
apache-2.0
4,184
[ "VisIt" ]
cc8ef572d41cf6fb7573707eb4402373ca6ea7ff670b6f3d4efd1f125fbe44d3
#!/usr/bin/env python # coding: utf-8 # # Advanced: Convert Posterior Distributions from EMCEE # # **IMPORTANT**: this tutorial assumes basic knowledge (and uses a file resulting from) the [emcee tutorial](./emcee.ipynb). # # **NOTE**: a bug in the latex labels when *converting to univariate distributions* was fixed...
phoebe-project/phoebe2-docs
2.3/tutorials/emcee_distributions_convert.py
Python
gpl-3.0
6,472
[ "Gaussian" ]
f356966ed3d900aef401960658088915657e8a6e5add4ffbf762533e657045aa
#!/usr/bin/env python # -*- coding:utf-8 mode:python; tab-width:4; indent-tabs-mode:nil; py-indent-offset:4 -*- ## """ test_energy_semiempirical_mopac7 ~~~~~~~~~~~~~~ Test MOPAC 7 semiempirical implementation for energy. """ import sys import geoprep from adapters import mopac7 from tests.common_testcode...
mattbernst/polyhartree
tests/test_energy_semiempirical_mopac7.py
Python
gpl-3.0
1,188
[ "MOPAC" ]
340c67ea456c1d8fe308e66a8cef480b662bd68f21914e25e1202c935720b028
""" ASE interface to pmd. """ from __future__ import print_function import os import subprocess import numpy as np from ase.calculators.calculator import FileIOCalculator,Calculator import nappy from nappy.interface.ase.pmdio import get_fmvs from nappy.napsys import NAPSystem __author__ = "Ryo KOBAYASHI" __version_...
ryokbys/nap
nappy/interface/ase/pmdrun.py
Python
mit
13,768
[ "ASE" ]
6bc62bada7ebc8fa38247039a22cd67c435ca81a1c0f0eb152ccb8b090ddc286
# gridDataFormats --- python modules to read and write gridded data # Copyright (c) 2009-2014 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Lesser General Public License, version 3 or later. # # Part of the documentation and format specification: Copyright CSC, 2005 """ :mod:`gOpenMol` --- the gOpenMo...
holocronweaver/GridDataFormats
gridData/gOpenMol.py
Python
gpl-3.0
10,392
[ "GAMESS", "Gaussian", "Jaguar" ]
5c91ea7da5fd137222fa5067126d1145cc889efe60c664796f59c5e4a7f6287d
#!/usr/bin/env python # extract HOT-region analysis from R script outputs! import sys import time import optparse import general import numpy import scipy import pickle import pdb import metrn import modencode import fasta import random import shutil import os from runner import * print "Command:", " ".join(sys.argv)...
claraya/meTRN
python/mapHOT.py
Python
mit
77,503
[ "BWA", "Bowtie" ]
16ab70fea5f6610f3bb7822891ec7c933a9e53815c751df75caa05968b2073e0
# -*- coding: utf-8 -*- # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope tha...
Akasurde/bodhi
bodhi/tests/functional/test_updates.py
Python
gpl-2.0
86,419
[ "VisIt" ]
1f36b085e378822f14157171ba17a3d0860da02008a13803cd86e06f3c2d85a0
""" BIANA: Biologic Interactions and Network Analysis Copyright (C) 2009 Javier Garcia-Garcia, Emre Guney, Baldo Oliva 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 vers...
emreg00/biana
biana/BianaParser/nrParser.py
Python
gpl-3.0
17,733
[ "BLAST" ]
a97356a0d2d462741be4e7528851b0ef69d88618c31f5f0f76418cd402607045
from .core import UnitedStates from ..registry_tools import iso_register # FIXME: According to wikipedia, Kansas only has all federal holidays, except # the Columbus Day and Washington's Birthday. # Unfortunately, other sources mention XMas Eve for 2018, but not for other # years. # I'm a bit sad here... # # Sources t...
novafloss/workalendar
workalendar/usa/kansas.py
Python
mit
813
[ "COLUMBUS" ]
5800194f7e78f62df7615e137352b69d0d1b4fae374569a47c128ec5fa539fb7
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
tensorflow/probability
tensorflow_probability/python/distributions/doublesided_maxwell.py
Python
apache-2.0
9,164
[ "Gaussian" ]
f57661b7fc00a79f0605e5367f7cb90843f06614813c1d0a4a308c220ab5466b
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # 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) # ...
alejob/mdanalysis
testsuite/MDAnalysisTests/analysis/test_pca.py
Python
gpl-2.0
3,905
[ "MDAnalysis" ]
5057c5fe93e4f2d460bf68196cb7eb1a1f3f43970534f7c41e162e6b92b10045
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
chouseknecht/galaxy
galaxy/main/auth/__init__.py
Python
apache-2.0
1,864
[ "Galaxy" ]
02c38fbce26836951b807425d93ea3778a0b746194fb1804a737ed77f71271bc
from tigershark.facade import CompositeAccess from tigershark.facade import ElementAccess from tigershark.facade import ElementSequenceAccess from tigershark.facade import Facade from tigershark.facade import Money from tigershark.facade import SegmentAccess from tigershark.facade import SegmentConversion from tigersha...
sbuss/TigerShark
tigershark/facade/f271.py
Python
bsd-3-clause
15,668
[ "VisIt" ]
c8f7bf1c2a2fee28d216a5d2ef72d702fa14d6e02cfec89305cc28f212da8670
""" Tests for discussion pages """ import datetime from pytz import UTC from uuid import uuid4 from nose.plugins.attrib import attr from .helpers import BaseDiscussionTestCase from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.courseware import CoursewarePage from...
DefyVentures/edx-platform
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
42,568
[ "VisIt" ]
1208246d8dc7bbd6358876615e3266c0a0e0a0fdc8d5a3f29f2d5b46831d865c
# -*- coding: utf-8 -*- # # This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2007-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Pub...
jchodera/cclib
src/cclib/parser/molproparser.py
Python
lgpl-2.1
38,027
[ "GAMESS", "Gaussian", "Molpro", "cclib" ]
6c7a47fcb33e5a514d10586160b95bfb6a87b92cb9a445a7f8c78fd2d5316dac
# Copyright (C) 2018, 2017 # 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, either version 3 of the Lice...
espressopp/espressopp
src/integrator/LangevinThermostatOnRadius.py
Python
gpl-3.0
2,876
[ "ESPResSo" ]
221661def68c669a848f4de2e74d5af3b1d0354b0c50e586d10f6534bf73e4c5
''' More information at: http://www.pymolwiki.org/index.php/elbow_angle Calculate the elbow angle of an antibody Fab complex and optionally draw a graphical representation of the vectors used to determine the angle. NOTE: There is no automatic checking of the validity of limit_l and limit_h values or of the assignm...
demharters/git_scripts
my_elbow_angle_ab.py
Python
apache-2.0
7,399
[ "PyMOL" ]
29d448ac87a1f2092ff257b463aee2ae0c96c225cb4db5a8ab2ee84655c43eaf
""" Actions manager for transcripts ajax calls. +++++++++++++++++++++++++++++++++++++++++++ Module do not support rollback (pressing "Cancel" button in Studio) All user changes are saved immediately. """ import copy import json import logging import os import requests from django.conf import settings from django.cont...
lduarte1991/edx-platform
cms/djangoapps/contentstore/views/transcripts_ajax.py
Python
agpl-3.0
21,535
[ "FEFF" ]
18d507601802577694bb09aacd973541a28af0edddbcc3194d3927b9e57da746
# -*- coding: utf-8 -*- # # test_connect_array_fixed_indegree.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versio...
hakonsbm/nest-simulator
pynest/nest/tests/test_connect_array_fixed_indegree.py
Python
gpl-2.0
3,322
[ "NEURON" ]
df738b1aecbafcd8734aeb97e2771b83ba149ac787a005966bdf552020a457b7
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2014--, tax-credit development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ---------------------...
nbokulich/short-read-tax-assignment
setup.py
Python
bsd-3-clause
895
[ "scikit-bio" ]
d69bbf5e2bd0efec705abfde7c06dff74c4b6890f5a7914e15a9d88991139ecc
""" Tests for the antisite renderer """ from __future__ import absolute_import from __future__ import unicode_literals import unittest import numpy as np import vtk from vtk.util import numpy_support from .. import antisiteRenderer from ... import utils from six.moves import range ################################...
chrisdjscott/Atoman
atoman/rendering/renderers/tests/test_antisiteRenderer.py
Python
mit
2,673
[ "VTK" ]
1e2920f59e8d6430bf24817c78b445d0a675b4f3c3fe19dbfcb44c8f67226aec
# Licensed to Tomaz Muraus under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # Tomaz muraus licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in...
ogrisel/python-file-syncer
file_syncer/run.py
Python
apache-2.0
5,893
[ "VisIt" ]
22d2a293d64b7fc9c9bf3f402765033c18f7c7f4b391a580f50f466989e70f4d
# pylint: disable=missing-docstring # pylint: disable=redefined-outer-name # pylint: disable=unused-argument from lettuce import step, world @step('I click on View Courseware') def i_click_on_view_courseware(step): world.css_click('a.enter-course') @step('I click on the "([^"]*)" tab$') def i_click_on_the_tab(...
ahmedaljazzar/edx-platform
lms/djangoapps/courseware/features/courseware_common.py
Python
agpl-3.0
1,186
[ "VisIt" ]
fa22309df3dec9b4e7972f123b5c92982a136006c5651844903ba66cd58fe79a
## # Copyright 2009-2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (htt...
geimer/easybuild-easyblocks
easybuild/easyblocks/f/ferret.py
Python
gpl-2.0
4,526
[ "NetCDF" ]
2994996810edb343a00c361ebc3451de59ab67e41636c7dea2582e4e6439a065
# -*- coding: utf-8 -*- from os.path import dirname, join import unilangs.bcp47.parser as parser from unittest import TestCase from unilangs.bcp47.parser import ( parse_code, InvalidLanguageCodeException, MalformedLanguageCodeException ) class BCP47ParserTest(TestCase): def assertMalformed(self, code): ...
pculture/unilangs
unilangs/tests/test_bcp47_parsing.py
Python
mit
17,603
[ "ASE" ]
5bf1785f99f2f28d6c02f4e70ab5d8cfc00492b8307661707b80066a6d074104
import os import tempfile import numpy as np from noseperf.testcases import PerformanceTest #from mdtraj import dcd, binpos, trr, netcdf, hdf5 from mdtraj import (XTCTrajectoryFile, TRRTrajectoryFile, DCDTrajectoryFile, BINPOSTrajectoryFile, NetCDFTrajectoryFile, HDF5TrajectoryFile) #############...
marscher/mdtraj
MDTraj/tests/performance/test_readwrite.py
Python
lgpl-2.1
4,297
[ "MDTraj", "NetCDF" ]
6194538ca8c931744d9ef21fed17dd779cd372808aa1841c21070a4b6a00f8b1
######################################################################## # $Id$ ######################################################################## __RCSID__ = "$Id$" from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.DataManagementSystem.DB.FileCat...
coberger/DIRAC
DataManagementSystem/DB/FileCatalogComponents/WithFkAndPs/FileManagerPs.py
Python
gpl-3.0
30,500
[ "DIRAC" ]
c54f9ce19c9840f5f11e49fda2f5ca3ad6e87ce18f5051c68286118bef51a7a8
# -*- coding: utf-8 -*- #!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import test-for-brian-criswell version = test-for-brian-criswell.__version__ setup( name='test-for-brian-criswell', version=version, author='...
mikemitr/test-for-brian-criswell
setup.py
Python
bsd-3-clause
569
[ "Brian" ]
a8ff2cd042fbf265792c0b149d94c8a0a2627cf1c65b9554ac11db0445af7d79
#! /usr/bin/env python #David Shean #dshean@gmail.com #This utility will interpolate to fill gaps in both spatial and temporal dimension import os import sys import multiprocessing as mp from datetime import datetime, timedelta import pickle from copy import deepcopy import matplotlib.pyplot as plt from mpl_tool...
dshean/iceflow
iceflow/ndinterp.py
Python
mit
12,920
[ "Gaussian" ]
c992df346ba988b665c955234b80aa7258d1364c8db50684146d25aee766ff08
import unittest as ut from .. import tabular as ta from ....common import RTOL, ATOL, pandas, requires as _requires from ....examples import get_path from ...shapes import Polygon from ....io import geotable as pdio from ... import ops as GIS import numpy as np try: import shapely as shp except ImportError: sh...
lixun910/pysal
pysal/lib/cg/ops/tests/test_tabular.py
Python
bsd-3-clause
2,367
[ "COLUMBUS" ]
920338e0144287afff38d9aa3bfdc924fd315768eedbd3ccff4e644afed5f218
# Copyright 2000-2003 Jeff Chang. # Copyright 2001-2008 Brad Chapman. # Copyright 2005-2011 by Peter Cock. # Copyright 2006-2009 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 have been included # as part ...
bryback/quickseq
genescript/Bio/SeqFeature.py
Python
mit
47,556
[ "Biopython" ]
95c930e76ace245eacf4bc1a1eaa6473aeadd2f9e013bdc2867e717cb0e729f5
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """Wrapper for netCDF readers.""" from __future__ import unicode_literals, division, print_function import os.path from monty.dev import requires, deprecated from monty.collections import AttrDict from monty.f...
migueldiascosta/pymatgen
pymatgen/io/abinit/netcdf.py
Python
mit
9,868
[ "NetCDF", "pymatgen" ]
0a1423f6c757519c65c8e56f8876f0afcfbdd70b1102f4ef849c90fd1ad53dd4
"""Generates galaxy labels for individual annotators. Matthew Alger The Australian National University 2016 """ import argparse import h5py import numpy import sklearn.neighbors from .config import config ARCMIN = 1 / 60 # deg ATLAS_IMAGE_SIZE = (config['surveys']['atlas']['fits_width'] * con...
chengsoonong/crowdastro
crowdastro/generate_annotator_labels.py
Python
mit
3,441
[ "Galaxy" ]
2ea385c0b0013817dc9d18b45beb42657db0ef70fa3a38b3f49c97c519126a0f
# -~- coding: utf-8 -*- from datetime import datetime from django.db import models from django.core.cache import cache from django.contrib.sites.models import Site from django.conf import settings from nongratae.constants import BLOCKED_IPS_CACHE_KEY BLOCKED_IPS_CACHE_KEY = BLOCKED_IPS_CACHE_KEY % settings.SITE_ID ...
jjdelc/django-ip-nongratae
nongratae/models.py
Python
bsd-3-clause
1,838
[ "VisIt" ]
8e47c03ac056a697933fe330af15a49a98fa5f0e42bf0f4e97cdf77aee9fa307
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, absolute_import """ This module provides conversion between the Atomic Simulation Environment Atoms object and pymatgen Structure objects. """ __author__ = ...
gpetretto/pymatgen
pymatgen/io/ase.py
Python
mit
2,106
[ "ASE", "pymatgen" ]
a848e2a54a68def633edf59a70a8d997d8100e36e4c8a6a3b6e844107fd4e60f
import numpy as np from scipy.spatial.distance import cdist class Segreg(object): def __init__(self): self.attributeMatrix = np.matrix([]) # attributes matrix full size - all columns self.location = [] # x and y coordinates from tract centroid (2D lists) self.pop = ...
sandrofsousa/Resolution
Pysegreg/segregationMetrics.py
Python
mit
11,432
[ "Gaussian" ]
4308de787ea4028f75e72b355fd63989d51d397711a77a164dca88083787641d
""" This module contains code to actually perform searches in Goat. Idea is to take a search object, and pointers to the query, record, and results databases. Using the information in the search object, each query/database search is ran and used to generate a new results object in the results db. Each result object is ...
chris-klinger/Goat
searches/search_runner.py
Python
gpl-3.0
7,582
[ "BLAST" ]
a53924938f8d49c0259e0dc6e59977358340d6d628a6ae17619d1a04974f5005
import random from genesys.generator import NameGenerator, GENDER_MALE, GENDER_FEMALE class AnimatronicNameGenerator(NameGenerator): glue = " " data = { GENDER_MALE: [ [ ["Abalone", "Ace the", "Achilles", "Acro the", "Acrobat", "Admiral", "Ajax the", "Alfie", ...
d2emon/generator-pack
src/genesys/generator/fng/name/fantasy/animatronic.py
Python
gpl-3.0
25,393
[ "Amber", "CRYSTAL", "Jaguar", "MOE", "MOOSE", "Octopus" ]
b6f53cb8c4251fdd26b361edccaab7f3603454fe986cb339593ec1e24c261b39
#!/usr/bin/env python from __future__ import absolute_import import re from markdown import Markdown from markdown.util import AMP_SUBSTITUTE, HTML_PLACEHOLDER_RE from markdown.odict import OrderedDict from docutils import nodes from docutils import parsers try: from html import entities except ImportError: ...
pashango2/sphinx-explorer
sphinx_explorer/settings/extensions/github_markdown.py
Python
mit
9,563
[ "VisIt" ]
7497ab776c5a783410ea96a8df5e3e88ebc812a016211476ec3db5f9f10ec9f6
import numpy from scipy import integrate _ERASESTR= " " def localfehdist(feh): #From 2 Gaussian XD fit to Casagrande et al. (2011) fehdist= 0.8/0.15*numpy.exp(-0.5*(feh-0.016)**2./0.15**2.)\ +0.2/0.22*numpy.exp(-0.5*(feh+0.15...
jobovy/apogee
apogee/util/__init__.py
Python
bsd-3-clause
856
[ "Gaussian" ]
9ec9b01b4680cc18761b5b25d8092acbb77380b0db403ce4aab3d37b2e322014
""" SIMD vector nodes supported by ctree. """ from ctree.nodes import CtreeNode class SimdNode(CtreeNode): """Base class for all SIMD nodes supported by ctree.""" def codegen(self, indent=0): from ctree.sse.codegen import SimdCodeGen return SimdCodeGen(indent).visit(self) def label(sel...
ucb-sejits/ctree
ctree/simd/nodes.py
Python
bsd-2-clause
423
[ "VisIt" ]
d228999dfb9a3cc7db7523da09a128cf7c245e603771b8ef3c2d1abf67361c47
""" This module attempts to make it easy to create VTK-Python unittests. The module uses unittest for the test interface. For more documentation on what unittests are and how to use them, please read these: http://www.python.org/doc/current/lib/module-unittest.html http://www.diveintopython.org/roman_divein.h...
msmolens/VTK
Wrapping/Python/vtk/test/Testing.py
Python
bsd-3-clause
17,878
[ "VTK" ]
a36abf9efeadcf79e3b3f0c48d502df3e33de9908f084be631d543f6f101e3f4
# -*- coding: utf-8 -*- # Copyright: (c) 2017, Cisco and/or its affiliates. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible.module_utils.basic import env_fallback from ansible.module_utils.urls import open_url from ansible.module_utils._text import to_text im...
dagwieers/ansible
lib/ansible/module_utils/network/nso/nso.py
Python
gpl-3.0
26,808
[ "VisIt" ]
ca325ca2b1a5af81966e34e1aa1f92cd3be61cf0afbb549e507df87a14b5cd3e
# -*- 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_productionmaterialallocateeditor.py
Python
gpl-2.0
2,018
[ "VisIt" ]
7aa9eb4f887dc12d59ae774995f95e3f1edf31be1d8a33e30cede6ca529311a9
# # 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...
goldmedal/spark
python/pyspark/ml/clustering.py
Python
apache-2.0
60,631
[ "Gaussian" ]
01757be9d0453622bb5a8d40084b0dec7a992453309930954c472156bbfcab7a
from __future__ import print_function import json import logging import os import time import ctk import numpy import qt import vtk import slicer from slicer.ScriptedLoadableModule import * class PickAndPaint(ScriptedLoadableModule): def __init__(self, parent): ScriptedLoadableModule.__init__(self, par...
DCBIA-OrthoLab/PickAndPaintExtension
PickAndPaint/PickAndPaint.py
Python
apache-2.0
56,605
[ "VTK" ]
4a979099eb8c9c8f7199590ad2d6a1f8dea04302d8f5b7d818b71feb405fac5b
############################################################################## # 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/paraview/package.py
Python
lgpl-2.1
8,421
[ "NetCDF", "ParaView", "VTK" ]
b30c372fefd470a86119021a0285cd39a89fe65849b08def0f1e0073b3d7cb05
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2020, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
qiime2-plugins/feature-table
q2_feature_table/plugin_setup.py
Python
bsd-3-clause
25,499
[ "BLAST" ]
1408326bc87cd997079b5d2a686c932c3f2266886207fde72cd3719735bb6d48
"""PURPLE: Purity and ploidy estimates for somatic tumor/normal samples https://github.com/hartwigmedical/hmftools/tree/master/purity-ploidy-estimator """ import csv import os import re import shutil import subprocess import toolz as tz from bcbio import broad, utils from bcbio.log import logger from bcbio.distribut...
a113n/bcbio-nextgen
bcbio/structural/purple.py
Python
mit
16,992
[ "Amber" ]
6e833837bc37de0eccd4b7543a7f1ee15f8051791a490ef011160277f813e309
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Main simulation script for setting up the model producing the data shown in figure 4, 5 and 6 in: Multimodal modeling of neural network activity: computing LFP, ECoG, EEG and MEG signals with LFPy2.0 Espen Hagen, Solveig Næss, Torbjørn V Ness, Gaute T Einev...
LFPy/LFPy
examples/bioRxiv281717/example_parallel_network.py
Python
gpl-3.0
25,962
[ "NEURON" ]
c438cecf064da3ee5cdbbfdfb9e76082c793b7bc30dda6ff2c24b3565f22dfdc
########################################################### # Import ########################################################### # Import import os import sys from Bio import motifs from pysam import Samfile from pysam import Fastafile from MOODS import search ########################################################...
CostaLab/dream-challenge
fullMpbsFootprintTc.py
Python
gpl-3.0
6,914
[ "pysam" ]
a2e537b6248986428b13a4027f66f611be2a113fc0f83bc7315724b6a1af78e8
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, cosh, sinc, hyperexpand, exp, simplify, sqrt, pi, erf, erfc, sin, cos, exp_polar, polygamma, hyper, log, expand_func) from sympy.integrals.meijerint import (_rewrite_single, _rewrite1, meijerint_indefinite, _...
wxgeo/geophar
wxgeometrie/sympy/integrals/tests/test_meijerint.py
Python
gpl-2.0
28,567
[ "Gaussian" ]
cffddec116ae3cd1682fa2a8ddd39022143f8bf7439e7d8b9856e91584a7827b
# -*- coding: utf-8 -*- """ Models used to implement SAML SSO support in third_party_auth (inlcuding Shibboleth support) """ from __future__ import absolute_import import json import logging import re from config_models.models import ConfigurationModel, cache from django.conf import settings from django.contrib.sites...
gymnasium/edx-platform
common/djangoapps/third_party_auth/models.py
Python
agpl-3.0
35,551
[ "VisIt" ]
907624d0519f2642256aa31b2b12cb987e520df2a1cc1de64de67cf3f8897322
""" Maximally localized Wannier Functions Find the set of maximally localized Wannier functions using the spread functional of Marzari and Vanderbilt (PRB 56, 1997 page 12847). """ from time import time from math import sqrt, pi from pickle import dump, load import numpy as np from ase.parallel import p...
askhl/ase
ase/dft/wannier.py
Python
gpl-2.0
30,303
[ "ASE", "Gaussian" ]
45466ad893558132d478a19e55fe321639efdad085f1af55b6e566b89badd686
#!/usr/bin/python3 ''' --------------------------------------------------------------------------------------- CrossMap: lift over genomic coordinates between genome assemblies. Supports BED/BedGraph, GFF/GTF, BAM/SAM, BigWig/Wig, VCF format files. http://crossmap.sourceforge.net/ --------------------------------------...
ivanamihalek/progesterone
utils/CrossMap.py
Python
gpl-2.0
82,502
[ "pysam" ]
3b379eaaf8a81639a5b4802d465090c7fe6cdbe94086d92c0889aba1e0e36f0d
""" Tests for discussion pages """ import datetime from uuid import uuid4 from nose.plugins.attrib import attr from pytz import UTC from flaky import flaky from common.test.acceptance.tests.discussion.helpers import BaseDiscussionTestCase from common.test.acceptance.tests.helpers import UniqueCourseTest from common....
itsjeyd/edx-platform
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
61,987
[ "VisIt" ]
eea23caeff7cf365876e3c50fb2d2284c998f868e6cb2d8ab674a18a074b39df
# 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 ...
liesbethvanherpe/NeuroM
neurom/check/neuron_checks.py
Python
bsd-3-clause
8,829
[ "NEURON" ]
be1ac99802210ed66c786a18b56f68ff8a21c3d06bce7471467dc9562689a223
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, print_function import logging import math import itertools import warnings from collections import OrderedDict import six import numpy as np from monty.json ...
gpetretto/pymatgen
pymatgen/electronic_structure/plotter.py
Python
mit
183,073
[ "BoltzTrap", "CRYSTAL", "Gaussian", "Mayavi", "VASP", "pymatgen" ]
0cebaae9b560ffcda0fbca2cc04c087961b884d67395244fa3152a1f683ea640
""" Integration tests ================== Setup: >>> import os >>> import time >>> import sqlite3 >>> import smtplib >>> from mocker import Mocker, expect, ANY, ARGS >>> >>> tmp_dir = 'tmp' >>> tmp_db = os.path.join(tmp_dir, 'tmpdb.sqlite') >>> create_tmp = not os.path.isdir(tmp_dir) >>> if create_tmp: ... os.mkd...
rbp/auth
tests/integration_tests.py
Python
mit
16,751
[ "Brian" ]
d009f462e1e848fe1cf7ec902f9da5bbc60407854243543168ebdc732ffd14f5
# coding: utf-8 from __future__ import division, unicode_literals """ Created on Jul 30, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __email__ = "shyuep@gmail.com" __date__ = "Jul 30, 2012" import unittest impo...
rousseab/pymatgen
pymatgen/io/tests/test_smart.py
Python
mit
2,673
[ "pymatgen" ]
13028b9b491e1e33569fdd988dada840cb8b6df92d2551af2583c7f8daf5ac1e
#!/usr/bin/python # # Simple script which convert the FITS headers associated to Brian McLean DSS images into simplified JSON files # Fabien Chereau fchereau@eso.org # import sys import os import subprocess def allDSS(): for i in range(1,895): str = "/home/fab1/prog/stellarium/util/dssheaderToJSON.py" + " S %i %i"...
Stellarium/stellarium
util/runAllDSS.py
Python
gpl-2.0
649
[ "Brian" ]
70f6827352d5b612dd7a991ea4f8273bbb2172e083f59c77832d83ef7cdb42a3
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2016 Haggi Krey, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of...
haggi/appleseed-maya
module/scripts/appleseed_maya/osltools.py
Python
mit
14,236
[ "VisIt" ]
741cf1326ac19d48b9f4a28f6f7f7a0359773857a2986d129a9281d388982026
# $HeadURL$ __RCSID__ = "$Id$" from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType import DIRAC class DataOperation( BaseAccountingType ): def __init__( self ): BaseAccountingType.__init__( self ) self.definitionKeyFields = [ ( 'OperationType' , "VARCHAR(32)" ), ...
Sbalbp/DIRAC
AccountingSystem/Client/Types/DataOperation.py
Python
gpl-3.0
1,652
[ "DIRAC" ]
8b7f80e90a47156393b8388830d3c6e996f45774d9bc45985da83f245fbb908e
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
google-research/google-research
correct_batch_effects_wdn/forgetting_nuisance.py
Python
apache-2.0
55,433
[ "Gaussian" ]
73e74593a568ec89269c256a0d4346799094b4d7cb9476b5fe732a56f9fe69cc
# SimpleCV Cameras & Devices #load system libraries from SimpleCV.base import * from SimpleCV.ImageClass import Image, ImageSet, ColorSpace from SimpleCV.Display import Display from SimpleCV.Color import Color from collections import deque import time import ctypes as ct import subprocess import cv2 import numpy as np...
hurdlea/SimpleCV
SimpleCV/Camera.py
Python
bsd-3-clause
132,113
[ "VisIt" ]
4d44393c74a46b8c60d39fac0c1dcef248b587525d3ad69730357b5495a415b4
import sys sys.path.insert(1, "../../../") import h2o def weights_and_distributions(ip,port): htable = h2o.upload_file(h2o.locate("smalldata/gbm_test/moppe.csv")) htable["premiekl"] = htable["premiekl"].asfactor() htable["moptva"] = htable["moptva"].asfactor() htable["zon"] = htable["zon"] # gam...
weaver-viii/h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_weights_and_distributionsDeeplearning.py
Python
apache-2.0
1,122
[ "Gaussian" ]
5247a3d85bdd84884d9aae9cf05e3416b80acb8616979746c1bb4f74cd7638ed
# pycparser: c_lexer.py # # CLexer class: lexer for the C language # # Copyright (C) 2008-2011, Eli Bendersky # License: BSD #----------------------------------------------------------------- import re import sys from .ply import lex from .ply.lex import TOKEN class CLexer(object): """ A lexer for the C languag...
bussiere/pypyjs
website/demo/home/rfk/repos/pypy/lib_pypy/cffi/_pycparser/c_lexer.py
Python
mit
13,769
[ "NAMD" ]
b2342ccbda7b0e8a69a58e1479d09d0497556967cbe3008cc7954b5baeb320c5
""" Utilities for the MessageQueue package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import queue from DIRAC import S_OK, S_ERROR, gConfig from DIRAC.ConfigurationSystem.Client.CSAPI import CSAPI def getMQParamsFromCS(mqURI): ...
ic-hep/DIRAC
src/DIRAC/Resources/MessageQueue/Utilities.py
Python
gpl-3.0
3,444
[ "DIRAC" ]
c34c38df2a38fb4d44abf4b85d33e01e972cdcdcf3db8ef35a3c83a9ccfb2e53
"""TransformationCleaningAgent cleans up finalised transformations. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN TransformationCleaningAgent :end-before: ##END :dedent: 2 :caption: TransformationCleaningAgent options """ # # imports import re import ast import os import errno from datetime ...
DIRACGrid/DIRAC
src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py
Python
gpl-3.0
31,943
[ "DIRAC" ]
0f0ba87763f725993d5d322b415d80d86168eeeaf891e2993efd488b688101c2
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/songs/lib/xml.py
Python
gpl-2.0
34,187
[ "Brian" ]
fdd5586746e20204289b6125f4cbff41d6c8045060bfa94c1c56b0b9bf4ea8bc
# -*- coding: utf-8 -*- """ equip.bytecode.utils ~~~~~~~~~~~~~~~~~~~~ Utilities for bytecode interaction. :copyright: (c) 2014 by Romain Gaucher (@rgaucher) :license: Apache 2, see LICENSE for more details. """ import opcode import types import dis from ..utils.log import logger def iter_decl(decl): """...
neuroo/equip
equip/bytecode/utils.py
Python
apache-2.0
3,679
[ "VisIt" ]
147f72215614d86f6d4f2ec9037ca75a1e9ab09e82f443b219c31265daf95339
categorylookup = {'1': 'Planets', '1.1': 'Planets (Type)', '1.1.1': 'Terrestrial Planets', '1.1.2': 'Gas Giant Planets', '1.2': 'Planets (Feature)', '1.2.1': 'Planet Surfaces', '1.2.1.1': 'Mountains', ...
LCOGT/observations
app/images/lookups.py
Python
gpl-3.0
8,256
[ "Galaxy" ]
be8fa64efc5dd13222c9cf2b747588f72da850dd0d1d2de9b665687bdb1c17ee
from .fgir import * from .error import * # Optimization pass interfaces class Optimization(object): def visit(self, obj): pass class FlowgraphOptimization(Optimization): '''Called on each flowgraph in a FGIR. May modify the flowgraph by adding or removing nodes (return a new Flowgraph). If you modify nodes, ...
Planet-Nine/cs207project
pype/optimize.py
Python
mit
5,807
[ "VisIt" ]
57e93eceb9d7fad0f54914e1edacbb7bc418aa10f8c054f7fea73d2a298dca30
######################################################################## # File: FTSManagerHandler.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/04/08 14:24:08 ######################################################################## """ :mod: FTSManagerHandler .. module: FTSManagerHandler :synopsis: handl...
miloszz/DIRAC
DataManagementSystem/Service/FTSManagerHandler.py
Python
gpl-3.0
18,190
[ "DIRAC" ]
c65d93591470f682b4d9dacba57beb9c3b730de02836d83fa2354abb416ab719
#!/usr/bin/env python ######################################## # to modify the NetCDF files ######################################## #First import the netcdf4 library from netCDF4 import Dataset # http://code.google.com/p/netcdf4-python/ import numpy as np import sys,getopt import math import datetime as DT import net...
CopyChat/Plotting
Python/MeanBias2D.py
Python
gpl-3.0
13,619
[ "NetCDF" ]
3510af193bfce6692dc53beaa34d82b64b1c1c32986b32e725bb5052db15f1e6
""" Initialize the EpcAnalyzer object and call specific functions before writing the netCDF file. Only two functions are being called in this example, but the user may look up the list of functions available. """ from ElectronPhononCoupling import EpcAnalyzer # Lists of files used # =================== ddb_fnames =...
abinit/abinit
scripts/post_processing/ElectronPhononCoupling/Examples/2-1-advanced.py
Python
gpl-3.0
2,300
[ "ABINIT", "NetCDF" ]
f527173ff3129a8c00cde266710129dbf45f395274db3e4488a0ecac4373f009
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements the Zur and McGill lattice matching algorithm """ from typing import Iterator, List from dataclasses import dataclass from itertools import product import numpy as np from monty.json import MSONab...
vorwerkc/pymatgen
pymatgen/analysis/interfaces/zsl.py
Python
mit
12,016
[ "pymatgen" ]
956dd45d06c9b07722bc3636e963a230454a7f85f2bbd9963076f626c9478c25
# coding=utf-8 # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. from unittest import TestCase from mock import Mock, patch from pyqrllib.pyqrllib import bin2hstr, hstr2bin from qrl.core.misc import logger from qrl.core.AddressStat...
theQRL/QRL
tests/services/test_WalletAPIService.py
Python
mit
35,966
[ "Jaguar" ]
25cbc3e5b7dc38898a31c790b8d607c56345d1d71a6ba234e702bba8841467f0
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CustomValue.supress' db.add_column(u'profiles_customvalue', 'supress', self.gf('django.db....
ProvidencePlan/Profiles
communityprofiles/profiles/oldmigrations/0054_auto__add_field_customvalue_supress.py
Python
mit
18,259
[ "MOE" ]
57b268a88a83c676b2728be26d0b8393a2ebfbd23d88c28c1c455bbe7c5fa95c
# # Copyright (C) 2013-2019 The ESPResSo project # # 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, either version 3 of the License, or # (at your option) any later...
psci2195/espresso-ffans
testsuite/python/virtual_sites_relative.py
Python
gpl-3.0
15,216
[ "ESPResSo" ]
5b23f6d97929d84fbcd00da4ae3a57054a08ed82fe2bb91caea33194c5e1535d
from __future__ import absolute_import from datetime import timedelta from django.http import HttpResponse from django.test import TestCase from django.test.client import RequestFactory from django.contrib.auth.models import AnonymousUser from django.contrib.auth import get_user_model from django.contrib.sessions.bac...
squamous/django-experiments
experiments/tests/test_webuser.py
Python
mit
15,007
[ "Brian", "VisIt" ]
4bba2d8d694b8a71ea626befd99bc4447009e7ff8a64884f99f30a8fd54ec381
# -*- coding: utf-8 -*- ############################################################################## # 2014 E2OpenPlugins # # # # This file is open source software; you can redistribute...
svox1/e2openplugin-OpenWebif
plugin/controllers/models/owibranding.py
Python
gpl-2.0
16,710
[ "Galaxy" ]
b5cf9da477e604eca81983be9ea78a9fe6080355cd0a7d42806415ca625b6196
#!/usr/bin/env python ''' Fly ArduPlane in SITL AP_FLAKE8_CLEAN ''' from __future__ import print_function import math import os import signal import sys import time from pymavlink import quaternion from pymavlink import mavextra from pymavlink import mavutil from common import AutoTest from common import AutoTestT...
lthall/Leonard_ardupilot
Tools/autotest/arduplane.py
Python
gpl-3.0
143,031
[ "Firefly" ]
522edab649f8d664bf2583686747cd327222dc26d37155e240c88b13b8316b74
""" 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. Written (W) 2013 Heiko Strathmann Written (W) 2013 Dino Sejdinovic """ fro...
karlnapf/kameleon-mcmc
kameleon_mcmc/paper_figures/GFunction.py
Python
bsd-2-clause
5,402
[ "Gaussian" ]
423ccf5186a1d9a03e161092f81b990fd06fb531d9cbd4a0e79dab16178b1e4b
from erukar.system.engine import MaterialGood class NegaciteCrystal(MaterialGood): BaseName = "Negacite Crystal" BriefDescription = "a chunk of crystalline Negacite" BasePricePerSingle = 97 WeightPerSingle = 0.3
etkirsch/legends-of-erukar
erukar/content/inventory/materials/raw/NegaciteCrystal.py
Python
agpl-3.0
229
[ "CRYSTAL" ]
31edaef4922054a564c66c597b470175c5ee0e0343c127ae9fa889668f479747
#!/usr/bin/env python3.5 """Script to post to AutoLovecraft.tumblr.com. Really rough sketch of a script here. Not really meant for public use. Based on my earlier script to do a similar job for the IrishLitDiscourses Tumblr account; see https://github.com/patrick-brian-mooney/IrishLitDiscourses-python The fact that th...
patrick-brian-mooney/AutoLovecraft-python
generate.py
Python
gpl-3.0
5,070
[ "Brian" ]
2bdada24c97bf6ba41d5ec2a34c06504a4f930e9ebdb2092173f5aa9db8d421d
import logging import os from django.conf import settings from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.test import modify_settings from selenium.webdriver.chrome.options import Options from splinter import Browser # On ubuntu with chromium installed as snap, we also need to use ...
meine-stadt-transparent/meine-stadt-transparent
mainapp/tests/live/chromedriver_test_case.py
Python
mit
3,430
[ "VisIt" ]
f013777a3e2a34ff7d8c4f1d272fedca27c07e11197065b495803a65f9697db9
from future import standard_library standard_library.install_aliases() from builtins import str import logging import pycurl import io import re import os from datetime import datetime from biomaj.utils import Utils from biomaj.download.interface import DownloadInterface try: from io import BytesIO except ImportE...
markiskander/biomaj
biomaj/download/ftp.py
Python
agpl-3.0
12,091
[ "BLAST" ]
893e0f1309f97daf93fc326b29abcf708d269e4018694870e87fc7a3627b00ac
#!/usr/bin/env python # # Copyright 2013 Tristan Bereau and Christian Kramer # # 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...
MMunibas/FittingWizard
scripts/pun2charmmlpun.py
Python
bsd-3-clause
2,122
[ "CHARMM" ]
22355b78e0558b9dffa60f87201c4972ad5d7d2b2db932b6dce4ba82c6e0c2d6
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import pootle.core.mixins.treeitem class Migration(migrations.Migration): dependencies = [ ('pootle_app', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
claudep/pootle
pootle/apps/pootle_language/migrations/0001_initial.py
Python
gpl-3.0
2,056
[ "VisIt" ]
b7c5c6192d8c8cea45ac87c1897e64bd6f80a3805f63a9786ecfb1d027fcf86e
from typing import Any, Dict EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = { # seems like best emoji for happy "1f600": {"canonical_name": "grinning", "aliases": ["happy"]}, "1f603": {"canonical_name": "smiley", "aliases": []}, # the Google emoji for this is not great, so made People/9 'smile' and #...
eeshangarg/zulip
tools/setup/emoji/emoji_names.py
Python
apache-2.0
95,930
[ "CRYSTAL", "Octopus" ]
cfb6554224f432a6f44864d83ab326f000a9ca7f7e3c32abd455ca7359f27f6f
# # 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/autots/model/__init__.py
Python
apache-2.0
4,916
[ "ORCA" ]
2c7b7ef22dff89165707fd1ae93ba053ab200848a728ae7896f4b9f68d5b49d7
#!/usr/bin/env python # ---------------------------------------- # scikit-ribo # ---------------------------------------- # pre-processing module # ---------------------------------------- # author: Han Fang # contact: hanfang.cshl@gmail.com # website: hanfang.github.io # date: 3/28/2017 # ----------------------------...
hanfang/scikit-ribo
scikit_ribo/scikit-ribo-build.py
Python
gpl-2.0
5,250
[ "pysam" ]
3a4251db7257aa8b90fe2134343a776cbaed6d540f02a866daa4747f5d2e228b
######################################################################## # $HeadURL$ # File : InputDataByProtocol.py # Author : Stuart Paterson ######################################################################## """ The Input Data By Protocol module wraps around the Replica Management components to provid...
vmendez/DIRAC
WorkloadManagementSystem/Client/InputDataByProtocol.py
Python
gpl-3.0
11,603
[ "DIRAC" ]
0fca41e35828c004ac1d9ec65b2d72c647abb6d2a62e90dd616d5d664810595a
from __future__ import division, print_function import contextlib import os import random import shutil import subprocess import tempfile import numpy import scipy.linalg as linalg import sympy from opt_utils import rand_matrix class SDP: """Class to generate and test SDP problems. Normally, only methods ...
jre21/SDP
sdp.py
Python
gpl-3.0
19,989
[ "Mayavi" ]
e20ee7862c8057834449bb70f06d1aada3fda589a62b4cf187156a50eea86c1d
# -*- coding: utf-8 -*- """ Contains GandiModule and GandiContextHelper classes. GandiModule class is used by commands modules. GandiContextHelper class is used as click context for commands. """ from __future__ import print_function import os import sys import time import os.path from datetime import datetime from s...
grigouze/gandi.cli
gandi/cli/core/base.py
Python
gpl-3.0
13,404
[ "VisIt" ]
7f1737133b0b7b43880f198f646e39cf905c56cd6eb9d2163e63093edaca4694
import imp import re _NOT_USED1 = None NOT_USED2 = None def getModules(n = 0, j = 3) : "Return list of modules by removing .py from each entry." for m in unknownList : pass def jjj(self) : import sys print sys.argv def jjj2(a, b = None, c = None) : pass def ddd(a, *args): jjj2() ...
stanlyxiang/incubator-hawq
tools/bin/pythonSrc/pychecker-0.8.18/test_input/test1.py
Python
apache-2.0
1,403
[ "ADF" ]
565fd40e2d6b6bb5b81f10fb9888d33827308ebb0cd5bc26d27b8344b47207b1
from toontown.toonbase.TTLocalizerEnglishProperty import * from toontown.catalog import CatalogAccessoryItemGlobals from otp.otpbase import OTPLocalizer as OL OL.SpeedChatStaticText = OL.SpeedChatStaticTextToontown.copy() for key in OL.SpeedChatStaticTextCommon.iterkeys(): OL.SpeedChatStaticText[key] = OL.SpeedChat...
silly-wacky-3-town-toon/SOURCE-COD
toontown/toonbase/TTLocalizerEnglish.py
Python
apache-2.0
503,899
[ "Amber", "BLAST", "Brian", "CRYSTAL", "MOE", "Octopus", "SIESTA", "VisIt" ]
8a3bd3f4501598e66984ed646cfe02cd7e0e536975c4df8fb8c2ba3310e9aa31
#* 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 import sys i...
harterj/moose
python/TestHarness/tests/test_CSVValidationTester.py
Python
lgpl-2.1
1,959
[ "MOOSE" ]
e305422e440a75296daeb7675e136e9728f23d0deeae8fa1a1caa3561234e9b3
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # LAMMPS documentation build configuration file, created by # sphinx-quickstart on Sat Sep 6 14:20:08 2014. # # 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 # aut...
ovilab/atomify-lammps
libs/lammps/doc/utils/sphinx-config/conf.py
Python
gpl-3.0
9,820
[ "LAMMPS" ]
a873b1d1e77772918f6dd33c3135e2fddf550682ff7fbb4b8af529874fd6bc69