text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# -*- coding: utf-8 -*- # Copyright (c) 2010-2012 OpenStack Foundation # # 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...
mjwtom/swift
test/unit/proxy/test_server.py
Python
apache-2.0
417,379
[ "MOOSE" ]
3a15249ae2a674e4697f8fac8126d4d809cf61bb921b56197376fcbc528b26b7
"""This module implements the calculation of the electron-phonon couplings.""" __all__ = ["ElectronPhononCoupling"] import numpy as np import numpy.fft as fft from gpaw.mpi import serial_comm class ElectronPhononCoupling: """...""" def __init__(self, atoms, gd, kd, calc=None, dmatrix=None, dtype=float): ...
qsnake/gpaw
gpaw/dfpt/electronphononcoupling.py
Python
gpl-3.0
7,888
[ "GPAW" ]
d0df6010f24125d0adff3056d8304a430e8f31d2cd761b7edc63b65fb7712c16
# Orca # # Copyright (C) 2013 Igalia, S.L. # # Author: Joanmarie Diggs <jdiggs@igalia.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at yo...
h4ck3rm1k3/orca-sonar
src/orca/scripts/toolkits/GAIL/script.py
Python
lgpl-2.1
3,813
[ "ORCA" ]
952a62611f29368ecead24e297cf0a54c5fdbd8bd2ae5cd67d9bfb520cdf4f05
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an...
camradal/ansible
lib/ansible/playbook/conditional.py
Python
gpl-3.0
9,210
[ "VisIt" ]
b9c1c00ca08ab2eca7f373cc7e172e43c030f12046982bddbe99a4d971f960d5
"""User-friendly public interface to polynomial functions. """ from sympy import ( S, Basic, I, Integer, Add, Mul, sympify, ask, ) from sympy.core.decorators import ( _sympifyit, ) from sympy.polys.polyclasses import ( GFP, DMP, SDP, ANP, DMF, ) from sympy.polys.polyutils import ( dict_from_basic, ...
mattpap/sympy-polys
sympy/polys/polytools.py
Python
bsd-3-clause
74,482
[ "Gaussian" ]
a7aac4a4ac8715a02a27f796e8cdb7ab534eda0a5f3bcb8c688adcf540d24ff7
############################################################################## # Copyright (c) 2013-2017, 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...
skosukhin/spack
var/spack/repos/builtin/packages/cp2k/package.py
Python
lgpl-2.1
10,507
[ "CP2K", "CRYSTAL", "Wannier90" ]
34d4d5c07e33b970b471168193a7c8860c1e529d4fabc8cbc4a84efb1f04b5a3
# -*- coding: utf-8 -*- # http://nbviewer.jupyter.org/github/lmarti/evolutionary-computation-course/blob/master/AEC.03%20-%20Solving%20the%20TSP%20with%20GAs.ipynb import os import matplotlib.pyplot as plt import matplotlib.colors as colors import matplotlib.cm as cmx import matplotlib import random import operator i...
NicovincX2/Python-3.5
Algorithmique/Optimisation/Algorithme d'optimisation/Métaheuristique/Algorithme génétique/Problème du voyageur de commerce/tsp1.py
Python
gpl-3.0
7,845
[ "VisIt" ]
a56a0009db3c99d08cdb0516fd269e02bbda506e9711f45642e03fa4a4f97aab
# Copyright (C) 2016 # Jakub Krajniak (jkrajniak at gmail.com) # # This file is part of ChemLab # # 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 # (...
cgchemlab/chemlab
src/tests/test_topology_reader.py
Python
gpl-3.0
2,938
[ "ESPResSo" ]
4a02748728b3fe5d93f1e90867870a8b5f71b0261b9e1979061d2907e026fdb3
# # NAME # problem_set2_solutions.py # # DESCRIPTION # Open, view, and analyze action potentials recorded during a behavioral # task. In Problem Set 2, you will write create and test your own code to # create tuning curves. # #Helper code to import some functions we will use import numpy as np import ma...
ngr/sandbox
neuraldata/problem_set2/problem_set2.py
Python
mit
6,193
[ "NEURON" ]
6e17da63594399ecb906f6c8385f2d8a55ae3e572438e0906531a4153ad202cd
################# # # This file is part of # ToBaCCo - Topologically-Based Crystal Constructor # # Copyright 2017 Yamil J. Colon <yamilcolon2015@u.northwestern.edu> # Diego Gomez-Gualdron <dgomezgualdron@mines.edu> # Ben Bucior <ben.bucior@gmail.com> # # ToBaCCo is free software: ...
tobacco-mofs/tobacco
connect_edgetonode.py
Python
lgpl-3.0
18,402
[ "CRYSTAL" ]
f7455c3ccddefb23345158e797de5848afcffe8dbbe391834d8e6dfd8d532c8e
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This module implements general data operations. """ from __future__ import print_function # start to adapt to Python 3 import numpy as np from scipy.interpolate import interp1d from numpy.lib.recfunctions import append_fields import warnings class MissingLabel(Exce...
LeBarbouze/tunacell
tunacell/base/datatools.py
Python
mit
25,773
[ "Gaussian" ]
f42617718c4ac47a17fa0bdeca4f68ca03648b848607ea3de1e525243982e056
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) The James Hutton Institute 2016-2019 # (c) University of Strathclyde 2019-2020 # Author: Leighton Pritchard # # Contact: # leighton.pritchard@strath.ac.uk # # Leighton Pritchard, # Strathclyde Institute for Pharmacy and Biomedical Sciences, # 161 Cathedral Street, # G...
widdowquinn/pyani
tests/test_dependencies.py
Python
mit
2,627
[ "BLAST", "Biopython" ]
ce39a3ebfe13e8158425f847b6d9a1b2b395e980c8941c47747c46b28da15551
#!/usr/bin/env python ########################################################################## # # Copyright 2011 Jose Fonseca # 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 th...
execunix/vinos
xsrc/external/mit/MesaLib/dist/src/gallium/tools/trace/diff_state.py
Python
apache-2.0
10,035
[ "VisIt" ]
86f698552df73060fbb90b924fb307d70595790a59b23264b6486c6491848ed7
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
yuanzhao/gpdb
src/test/tinc/tincrepo/mpp/gpdb/lib/models/sql/template/test/test_sql_template_test_case.py
Python
apache-2.0
3,307
[ "ORCA" ]
a80980521747804568cd2bf6b02978d7c581f1679ef699e6fce90a7bc4f5d5ca
import numpy as np import matplotlib.pyplot as plt from gpaw.response.chi0 import frequency_grid omegamax = 50.0 domega0 = 0.2 plt.figure(figsize=(5, 5)) for omega2 in [2.5, 5, 10, 15, 20, np.inf]: x = frequency_grid(domega0, omega2, omegamax) y = range(len(x)) if omega2 == np.inf: label = '$\\o...
robwarm/gpaw-symm
doc/tutorials/dielectric_response/plot_freq.py
Python
gpl-3.0
664
[ "GPAW" ]
7caf6e794bcbba9ce920461cb382ff4242d8fdeb1c469f59a25adc5b93a435a0
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
fedepad/espressopp
src/standard_system/PolymerMelt.py
Python
gpl-3.0
6,701
[ "ESPResSo" ]
967a598ff0057185069bea9155ccf7e671ad9fc6fd98558f16f310bd15e0a0db
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforge/simulation/neuron/objects/obj_basesetup.py
Python
bsd-2-clause
3,141
[ "NEURON" ]
661d4c1705d361953c8b2e0a04c4243a3bf4921b6205914ab93db164619375ef
"""Handle disambiguation of reads from a chimeric input, splitting by organism. Given specification of mixed input samples, splits a sample into multiple sub-samples for alignment to individual genomes, then runs third-party disambiguation scripts to reconcile. Uses disambiguation scripts contributed by AstraZeneca, ...
a113n/bcbio-nextgen
bcbio/pipeline/disambiguate/__init__.py
Python
mit
7,540
[ "BWA" ]
11d8605dc2cfa0da1c6a82e8be4bc9a436c057592c111703e8a25b892bb94470
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from .model import Model from .parameterization.variational import VariationalPosterior from .mapping import Mapping from .. import likelihoods from .. import kern from ..inference.l...
esiivola/GPYgradients
GPy/core/gp.py
Python
bsd-3-clause
32,513
[ "Gaussian" ]
9d74e3b020f64afb9211bd19380947651720683458043fc23a6ca5789364be96
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library ...
FedoraScientific/salome-hexablock
doc/pyplots/test_join_quads.py
Python
lgpl-2.1
2,270
[ "VTK" ]
02d2fa5d8eeac402c41a5a7b9dc3f9e65e4dd57f6e8a96c214045064e45be8af
""" ============================================================ Sparse recovery: feature selection for sparse linear models ============================================================ Given a small number of observations, we want to recover which features of X are relevant to explain y. For this :ref:`sparse linear ...
seckcoder/lang-learn
python/sklearn/examples/linear_model/plot_sparse_recovery.py
Python
unlicense
7,106
[ "Gaussian" ]
24e747a73d498540147597c071851c41f5b718778cf5a45fee526dba97c499b0
from __future__ import print_function from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import os import random from h2o.estimators.gbm import H2OGradientBoostingEstimator def milsong_checkpoint(): milsong_train = h2o.upload_file(pyunit_utils.locate("bigd...
nilbody/h2o-3
h2o-py/tests/testdir_algos/gbm/pyunit_milsongs_large_gbm.py
Python
apache-2.0
2,901
[ "Gaussian" ]
bc3cb01041519af8c38ff3c46ffaa927dd904d931c69240a9a18ae22e76ed671
#!/usr/bin/env python """ dirac-rss-set-status Script that facilitates the modification of a element through the command line. However, the usage of this script will set the element token to the command issuer with a duration of 1 day. """ from datetime import datetime, timedelta from DIRAC ...
avedaee/DIRAC
ResourceStatusSystem/scripts/dirac-rss-set-status.py
Python
gpl-3.0
6,373
[ "DIRAC" ]
e6fc5d8059cd294628cd3b09e05cadd1f996a97bef43734b99c54c175ea1f31b
import altimetry.data.hydro as htools import matplotlib.pyplot as plt #from mayavi import mlab #import chaco.shell as plt import numpy as np import altimetry.tools as atools #limit=np.array([42.,6.,44.5,11.]) limit=np.array([41.,4.,44.5,12.]) verbose=0 #cor_extract='C:\\VMShared\\data\\hydro\\IMEDIA\\ex...
rdussurget/py-altimetry
altimetry/examples/coriolis_report.py
Python
lgpl-3.0
5,536
[ "Mayavi" ]
18af0c6fa585344d0af316b123b297d76d030da549b54b350812c3ca10d3f1a5
#!/usr/bin/env python """ This peak-caller script is part of the CLAM pipeline. It takes input from re-aligner output, and use permutation to call peaks. Tested under python 2.7.3 """ __author__ = 'Zijun Zhang' __version__ = '1.1.0' __email__ = 'zj.z@ucla.edu' import os import sys from collection...
Xinglab/CLAM
CLAM/bak/peakcaller.bak.py
Python
gpl-3.0
15,235
[ "pysam" ]
f2e36221df6380018aef06fd158aeeddc322bfc75a9c8853b8ff48095fdfacf2
# -*- coding: utf-8 -*- import os from PIL import Image import os.path import time import torch import torchvision.datasets as dset import torchvision.transforms as trn import torch.utils.data as data import numpy as np from PIL import Image # /////////////// Data Loader /////////////// IMG_EXTENSIONS = ['.jpg', '...
hendrycks/robustness
ImageNet-C/create_c/make_tinyimagenet_c.py
Python
apache-2.0
19,381
[ "Gaussian" ]
f2ba0304e4a5ca377b917ede9831a4a33c684e854bca17252d2afacebaa20e64
from panda3d.core import * from direct.showbase.DirectObject import DirectObject import math import copy class TexMemWatcher(DirectObject): """ This class creates a separate graphics window that displays an approximation of the current texture memory, showing the textures that are resident and/or activ...
tobspr/panda3d
direct/src/showutil/TexMemWatcher.py
Python
bsd-3-clause
43,152
[ "VisIt" ]
7e241000d144465fe9895b7de827a76a2b258b025bcb7198af059b6df6aec6a4
import copy from registry import user as mr, clstypes from pysal.weights import W try: import patsy as p except: p = None from numpy import array, ndarray, asarray from pysal.common import iteritems as diter import inspect #would like to just wrap this in the opt decorator... def pandashandler(formula_like, d...
TaylorOshan/pysal
pysal/contrib/handler/handler.py
Python
bsd-3-clause
4,767
[ "COLUMBUS" ]
cc094eac05c775dd51d20efc347ee93c688642e06b59472063e0670189c6200c
#!/usr/bin/env python3 import argparse import os import re import sqlite3 import sys from collections import defaultdict from biocode import utils, annotation, gff, things ## constants DEFAULT_PRODUCT_NAME = "hypothetical protein" next_ids = defaultdict(int) def main(): parser = argparse.ArgumentParser( descri...
jorvis/biocode
sandbox/jorvis/parse_ergatis_euk_functional_pipeline.marcus.py
Python
mit
18,760
[ "BLAST" ]
17f52c26821ec09b8e5ed51008d0b8d12b764b8af8f14fb2f23ed2bf23b7fe02
############################################################################## # 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/r-graph/package.py
Python
lgpl-2.1
1,665
[ "Bioconductor" ]
11f58b6d12c7481f518d58354f9ed2ef0bc5aa4c5d5df291adba54298a38c001
import numpy as np from numpy import genfromtxt import matplotlib.pyplot as plt #data_or = genfromtxt("test_deep_fbl_cpp_feedback_learning_or.dat", delimiter=" ") #data_xor = genfromtxt("test_deep_fbl_cpp_feedback_learning_xor.dat", delimiter=" ") #data_and = genfromtxt("test_deep_fbl_cpp_feedback_learning_and.dat", d...
nlholdem/icodoom
tmp/plotOutputs.py
Python
gpl-3.0
2,070
[ "NEURON" ]
1ba25ea0148610e7144fb13f5066f964c7a170175045a8113bb434eabc113aac
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/pbc/tools/k2gamma.py
Python
apache-2.0
8,990
[ "PySCF" ]
cd952f89de84ea0bfd2df756def4ebd7f8f4c8bafcd331f36427c3ba95957f43
# $Id$ # # Copyright (C) 2004-2006 Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ Contains an implementation of Topol...
jandom/rdkit
rdkit/Chem/AtomPairs/Torsions.py
Python
bsd-3-clause
5,369
[ "RDKit" ]
e99f160fbcda53a56afa9fad778173d8be473b890c41b6162b6fbff1b1965f14
#!/usr/bin/env python ''' MP2 at an individual k-point ''' from functools import reduce import numpy from pyscf.pbc import gto, scf, mp cell = gto.Cell() cell.atom=''' C 0.000000000000 0.000000000000 0.000000000000 C 1.685068664391 1.685068664391 1.685068664391 ''' cell.basis = 'gth-szv' cell.pseudo = 'gth-p...
sunqm/pyscf
examples/pbc/22-k_points_mp2.py
Python
apache-2.0
3,521
[ "PySCF" ]
b9840a8f23b836a37453be1eb7092e69de93797b8df858ef24904d45990b8cf4
#!/usr/bin/env python # This example demonstrates how to use the vtkLineWidget to seed and # manipulate streamlines. Two line widgets are created. One is invoked # by pressing 'i', the other by pressing 'L' (capital). Both can exist # together. import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGe...
hendradarwin/VTK
Examples/GUI/Python/StreamlinesWithLineWidget.py
Python
bsd-3-clause
4,350
[ "VTK" ]
cfdb94c3d53b14e8bd757b41bc586703ffb078156e992cdb52fe0614dac0331b
# Licensed under GPL version 3 - see LICENSE.rst from functools import wraps import collections from copy import copy import warnings import numpy as np from transforms3d import affines, euler from astropy.table import Table from astropy import table import astropy.units as u from ..simulator import Sequence from .unc...
Chandra-MARX/marxs
marxs/design/tolerancing.py
Python
gpl-3.0
31,063
[ "Gaussian" ]
6bc7f5305562f4857290fe2daa5365bda71ee8f8ac9a2a8452a8bd6616a9450c
#!/usr/bin/env python import os import sys import numpy as np import matplotlib.pyplot as plt import fitsio import galsim from noise import PlaceholderNoiseBuilder #from psf import ConstPSFBuilder from galaxies import COSMOSGalaxyBuilder #import constants """ attempting to hack out just part of great3 needed for mak...
kstory8/egret
egret/galaxymakers/great3_cosmos_gals/drive_great3.py
Python
bsd-3-clause
3,686
[ "Galaxy", "Gaussian" ]
cbe6f37685e082bc6b34136728787ae9eff1670ae938dc0f209dedca16b3bc19
# 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 ...
wizmer/NeuroM
neurom/io/tests/test_h5_reader.py
Python
bsd-3-clause
6,633
[ "NEURON" ]
924cd071ad0b2fd2f13adbc762221101e51a5784f7de4373112d89aedeb8db49
# # Copyright 2002 by Michael Hoffman. 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. """ Docstring """ from __future__ import generators __version__ = "$Revision: 1.4 $" # ...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/GFF/GenericTools.py
Python
apache-2.0
3,784
[ "Biopython" ]
d2915cf9a985a8ad1d21de98ab4c5e524712c26e519b18634ecf4e788118a117
########################################################################### # # 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/itp_audit_dag.py
Python
apache-2.0
35,487
[ "VisIt" ]
65b399bba8c8676ffbbb0d904914b0667851e98d5b8ee185eb4160c75d8acb63
""" This script introduces how the Tilde organizer can be used as a bibliography manager. See https://github.com/tilde-lab/pycrystal/tree/master/papers for an example usage for the CRYSTAL17 code online bibliography. Two files are currently needed: * bib_els_file (raw bibliography items as presented online) * bib_data_...
tilde-lab/tilde
utils/add_pdf_articles.py
Python
mit
4,794
[ "CRYSTAL" ]
74b8be3bdd3ad6e805434cb043f3bf28929e8046b349dd999f0e13861f79aacd
import tensorflow as tf import numpy as np import pylab as plt from dopamine.utils import * from dopamine.values import * from keras.models import Sequential, model_from_json, load_model from keras.layers import Dense from keras import backend import logging from mathtools.utils import Vessel logging.basicConfig(level=...
lightscalar/dopamine
dopamine/trpo.py
Python
mit
13,789
[ "Gaussian" ]
e8493880d9d4fc30ccf83c7c0f6a1e089e02f50655e498c5497526ca9859003e
r""" Piezo-elasticity problem - homogenization of a piezoelectric linear elastic matrix with embedded metalic electrodes, see [1] for details. [1] E.Rohan, V.Lukes: Homogenization of the fluid-saturated piezoelectric porous media. International Journal of Solids and Structures 147, 2018, pages 110-125. https://doi.org...
vlukes/sfepy
examples/multi_physics/piezo_elasticity_macro.py
Python
bsd-3-clause
4,687
[ "VTK" ]
a52dd3e5cd267680a2943e630625db409e73dab906a94c361ed06b17c53beb54
from selenium import selenium import unittest, time, re, urllib2 from post import * import os import sys import time local = True # semi convenient flip-flop for local versus remote testing if local: sites = {"http://localhost:8000": ["brian", "test", "localhost:8000", "Pathfind...
icomms/wqmanager
tests/deployment/selenium/hq_test.py
Python
bsd-3-clause
4,482
[ "Brian" ]
b8bffba364f7015803b9d72ecece56b7c2dc498e7ac53bb09f2ec41b480d8089
############################################################################## # Copyright (c) 2017, The VOTCA Development Team (http://www.votca.org) # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647188 # # For details, see https://github.com/spack/spack...
mfherbst/spack
var/spack/repos/builtin/packages/votca-csg/package.py
Python
lgpl-2.1
2,076
[ "Gromacs" ]
6bfc8de42705b931cf45957c9f4cb158ccf87e4c327fc2d7bdaf453f25a28f4f
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.2 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
fernandezcuesta/ansible
lib/ansible/modules/network/avi/avi_vrfcontext.py
Python
gpl-3.0
4,514
[ "VisIt" ]
03ffc076963b20436948cd563f725099a93833e4c17e8632c5ff5c3bd4dfbb15
""" Test courseware search """ from __future__ import absolute_import import json from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.common.logout import LogoutPage from common.tes...
ESOedX/edx-platform
common/test/acceptance/tests/lms/test_lms_courseware_search.py
Python
agpl-3.0
7,755
[ "VisIt" ]
f19e20109d4647080c8ebc504425bcc2b57176c0ff32347e205ff97b857e661b
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import os from unittest import skipIf from mock import patch from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.lms.co...
stvstnfrd/edx-platform
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
8,866
[ "VisIt" ]
aa99c96fb8bc79013f4c7e8f01e1bab4088491dadaa7dedd1eb02f3e04d63816
# $HeadURL$ __RCSID__ = "$Id$" """ This backend just print the log messages through the standar output """ from DIRAC.FrameworkSystem.private.logging.backends.BaseBackend import BaseBackend import sys class PrintBackend( BaseBackend ): COLOR_MAP = { 'black' : 0, 'red' : 1, 'green' : 2, ...
vmendez/DIRAC
FrameworkSystem/private/logging/backends/PrintBackend.py
Python
gpl-3.0
1,402
[ "DIRAC" ]
b3b05c2f7c8dc5f76d105e5c64b465a64af9c1bbc0bbc60d3fd7774a0faa7ad4
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
modeling/preparation/component.py
Python
agpl-3.0
2,006
[ "Galaxy" ]
c21e81f4524037e6eaee938422a46d6f3e4805fd56065ff2e0b3f339a2c0c8b5
""" This file is part of gempy. gempy is free software. For license details, see the LICENSE.md file supplied with gempy Created on 10/10 /2018 @author: Miguel de la Varga """ import numpy as np import pandas as pn from numpy import ndarray from typing import Union import warnings from gempy.core.model import Proj...
cgre-aachen/gempy
gempy/gempy_api.py
Python
lgpl-3.0
13,534
[ "VTK" ]
c0da454c7b94ea7bb8f223bd1071a6ff3c3b49d86d64e02e8d00c0598a18fb01
#!usr/bin/env python import sys import os import itertools from itertools import izip #import matplotlib.pyplot as plt from Bio import SeqIO import scipy as np from scipy import median, mean from scipy.optimize import curve_fit from scipy.stats.distributions import t from struct import pack from random import shuffle, ...
Rinoahu/fastclust
deprecate/py27/scripts/deprecate/pangenome.py
Python
gpl-3.0
11,736
[ "VisIt" ]
367b366356d746ba9c97b3ddb8be7b743c2d51ba5ec4d2c8462c52dccef7031a
""" local path implementation. """ from __future__ import with_statement from contextlib import contextmanager import sys, os, re, atexit, io, uuid import py from py._path import common from py._path.common import iswin32, fspath from stat import S_ISLNK, S_ISDIR, S_ISREG from os.path import abspath, normcase, normpa...
UK992/servo
tests/wpt/web-platform-tests/tools/third_party/py/py/_path/local.py
Python
mpl-2.0
35,346
[ "VisIt" ]
8f80542a72318a8f081e651ce18dedb011d9251bee21e52abde184dd92939b26
import numpy as np import pygame import cv2 from scipy import linalg from scipy import stats from Tools import as_int from Sensor import Sensor as AbstractSensor from Sensor import SensorNoise as AbstractSensorNoise class Sensor(AbstractSensor): def __init__(self, size, fps=None): super(Sensor, self)....
Bjarne-AAU/MonteCarloLocalization
Vision.py
Python
gpl-3.0
6,947
[ "Gaussian" ]
7a0a596890b4ea90b35a29e528e13f53bbb166d39207219e01e61988b10ac8c8
from __future__ import print_function import os import numpy as np import subprocess as sub import shutil #################################################### class RunCrystal: _name_="RunCrystal" def __init__(self, submitter): self._submitter = submitter #------------------------------------------------- ...
willwheelera/mainline
utils/autogen/runcrystal.py
Python
gpl-2.0
10,784
[ "CRYSTAL" ]
2fb4f811d56ae6e82e8f2d14c6bc59b671e48b32e12f2037c7005635fc954bd6
# -*- coding: utf-8 -*- # SyConn - Synaptic connectivity inference toolkit # # Copyright (c) 2016 - now # Max-Planck-Institute of Neurobiology, Munich, Germany # Authors: Philipp Schubert, Joergen Kornfeld import os import time import numpy as np from . import log_proc import matplotlib.pyplot as plt import matplotl...
StructuralNeurobiologyLab/SyConn
syconn/proc/stats.py
Python
gpl-2.0
29,949
[ "NEURON" ]
17a1020ca47e9418f28f80d05a366c6bc97f06147f366234ac56ae15167d14d7
# epicyclic_gearing_macro.py # the macro to generate an epicyclic_gearing. # created by charlyoleg on 2013/10/03 # # (C) Copyright 2013 charlyoleg # # This file is part of the Cnc25D Python package. # # Cnc25D is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
charlyoleg/Cnc25D
cnc25d/tests/epicyclic_gearing_macro.py
Python
gpl-3.0
9,379
[ "VisIt" ]
fa6dee2c6b44220ebc4d14ff9c92511745bc5bf40f78ef64dc5680df96fb2673
""" Container for TaskManager plug-ins, to handle the destination of the tasks """ from DIRAC import gLogger from DIRAC.Core.Utilities.List import fromChar from DIRAC.Core.Utilities.SiteSEMapping import getSitesForSE from DIRAC.DataManagementSystem.Utilities.DMSHelpers import DMSHelpers from DIRAC.ConfigurationSystem...
chaen/DIRAC
TransformationSystem/Client/TaskManagerPlugin.py
Python
gpl-3.0
5,384
[ "DIRAC" ]
4d2bc7501b60c2874bf6cbac3a0c62f9c612b77f020c40614c43e5b976fc31d5
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import warnings import numpy as np import pandas as pd from ..plot.plot import _PlotMethods from . import duck_array_ops from . import indexing from . import groupby from . import resample fr...
rabernat/xray
xarray/core/dataarray.py
Python
apache-2.0
71,555
[ "NetCDF" ]
daade851c8588f67863d80b68889abd72b506ea906e764c0b4137df1d8670327
#-*- coding=utf-8 -*- #----------------------- # Named: Document Filtering # Created: 2016-08-01 # @Author: Qianfeng #----------------------- import re import math from sqlite3 import dbapi2 as sqlite # 测试样例 def sampletrain(c1): # c1 -- Classifier instance c1.train('Nobody owns the water.','good') c...
qianfengzh/ML-source-code
algorithms/CollectiveIntelligence/CH06-Document Filtering/docclass.py
Python
gpl-2.0
7,457
[ "CASINO" ]
412b765d7810aae8b93ed0146a1b21cd1fc6c5b69da1f4ee917a058775bf4110
import ocl as cam import camvtk import time import vtk import math import datetime red= (1,0,0) green= (0,1,0) blue= (0,0,1) cyan= (0,1,1) yellow= (1,1,0) pink = ( float(255)/255,float(192)/255,float(203)/255) grey = ( float(127)/255,float(127)/255,float(127)/255) orange = ( float(255)/255,float(165)/255,float(0)/255...
AlanZatarain/opencamlib
src/attic/oct_test2.py
Python
gpl-3.0
6,361
[ "VTK" ]
3f9c0e74d493e46af8c42c4ca1bef92b09fb9ac5137fec3ab1cfd5e25e0de9cf
# Import simple and validate expected behavior on creating several server # connection as well as switching from one to another. import sys from paraview import smtesting smtesting.ProcessCommandLineArguments() # Test fails method def failed(msg): print "Error: %s" % msg sys.exit(1) # ---- Start testing ---- f...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/MultiServer.py
Python
gpl-3.0
1,696
[ "ParaView" ]
9c8e9de4d9f5d2c55cdeaa14f55b1b22fdd129388caced27982598097a57787b
""" vending_machine ===== Simulates a vending machine. Configurable parameters:: { "product_catalogue" : (optional) [ "name" : "Mars Bar", "price" : 0.80, "category" : "snack", "lifetime" : "P1000D", ... ] "send_available_positions" : (optional) False "cashless_to_cash_ratio" :...
DevicePilot/synth
synth/devices/vending_machine.py
Python
mit
21,874
[ "Galaxy" ]
8bf222d6400869d49c96a507fa35ac5dc845bf34deb6917d3cb1803111905a9f
""" Hidden Markov model """ __author__ = "Frank Noe and John D. Chodera" __copyright__ = "Copyright 2015, John D. Chodera and Frank Noe" __credits__ = ["Frank Noe", "John D. Chodera"] __license__ = "LGPL" __maintainer__ = "Frank Noe" __email__="frank DOT noe AT fu-berlin DOT de" import time import copy import numpy...
marscher/bhmm
bhmm/estimators/maximum_likelihood.py
Python
lgpl-3.0
16,556
[ "Gaussian" ]
87569b39f2425d1df2d5915d9914c054ca6dc82d7e2c075a832ecc9889cdde75
#!/usr/bin/env python """ Get VM instances available in the configured cloud sites """ from DIRAC import gLogger, exit as DIRACExit from DIRAC.Core.Base.Script import Script site = None ce = None image = None voName = None def setCE(args): global ce ce = args def setSite(args): global Site Site =...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/scripts/dirac_vm_endpoint_status.py
Python
gpl-3.0
2,007
[ "DIRAC" ]
f3b84185c43e99def74683c560a667c977d6885c82f316cae0d5db2e199525a6
#!/usr/bin/env python """ This is a very simple plot script that reads a 3D DSM-Kernel sensitivity kernel file and make a plot of it. """ import matplotlib.pyplot as plt import numpy as np from pyevtk.hl import gridToVTK def read_fortran_record(binfile, count, dtype): """reads a sequential fortran binary file rec...
IPGP/DSM-Kernel
examples/single_kernel/simple_write_vtk.py
Python
gpl-3.0
2,421
[ "VTK" ]
bc9646a6c614733e4ea3e7b1152a4d3c488e73ae766a04be8f821a8e8b2144db
import xml.etree.ElementTree as ET import csv import copy def LoadMetricDefs(metric_def_csv): """ Load metric definitions from CSV file :param metric_def_csv: Full absolute path to the CSV file that contains metric definitions :return: Dictionary of metric definitions. Key is verbose metric name (e.g. ...
SouthForkResearch/CHaMP_Metrics
test/topometrics/read_manual_metrics.py
Python
gpl-3.0
2,687
[ "VisIt" ]
844e429d56fc11d7996c8f99645b7628b28909632464c38686713f1413fb014e
import numpy as np from scipy._lib._util import check_random_state def rvs_ratio_uniforms(pdf, umax, vmin, vmax, size=1, c=0, random_state=None): """ Generate random samples from a probability density function using the ratio-of-uniforms method. Parameters ---------- pdf : callable A ...
pizzathief/scipy
scipy/stats/_rvs_sampling.py
Python
bsd-3-clause
7,097
[ "Gaussian" ]
25bca76475cf2a623fadbd8027c818daa64dee5444a3ef274fe043c2d4953692
#!/usr/bin/env python # TODO: Free energy of external confinement for poseBPMFs import os import cPickle as pickle import gzip import copy from AlGDock.IO import load_pkl_gz from AlGDock.IO import write_pkl_gz from AlGDock.logger import NullDevice import sys import time import numpy as np from collections import O...
CCBatIIT/AlGDock
AlGDock/BindingPMF.py
Python
mit
73,986
[ "NAMD", "OpenMM" ]
e669a608e0d51872bbecceb15ca353d69dc6b76530cacd38b2e6a8abe3e9e4c4
# -*- mode: python; coding: utf-8 -*- # Copyright 2014-2018 Peter Williams <peter@newton.cx> # Licensed under the GNU General Public License, version 3 or higher. """ The command-line interface. """ from __future__ import absolute_import, division, print_function, unicode_literals import codecs, io, json, os.path, s...
pkgw/bibtools
bibtools/cli.py
Python
mit
27,659
[ "VisIt" ]
9c4941906e3ae650c774ab3344140beff726640f45eef4b8ce6d8b0416372624
# Copyright (c) 2018, Henrique Miranda # All rights reserved. # # This file is part of the yambopy project # from __future__ import division import numpy as np def calculate_distances(kpoints): """ take a list of k-points and calculate the distances between all of them """ kpoints = np.array(kpoints) ...
alexmoratalla/yambopy
qepy/lattice.py
Python
bsd-3-clause
3,952
[ "Quantum ESPRESSO" ]
548e1e799d8d6e8e207f5166343ba9d386b70b8f2cbba42c97cdceb7d8b8351f
#TODO: should be able to search all rec tags and get the list of recs (handle or RPNMeta) #TODO: consistant naming in doc for; rec, data , meta, grid... #TODO: class RPNFields (a collection of related rec: levels,#...) #TODO: expand RPNGrid to accept multi-grids and work better with #-grids #TODO: convert to/from NetCD...
meteokid/python-rpn
__old/rpnstd.py
Python
lgpl-2.1
76,771
[ "NetCDF" ]
d11b3878941d483c566544d60f68f8254f618acfa93b6f9411bfeb92f6e8f444
from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Third-party import astropy.units as u import numpy as np # Project from ..units import usys from ..celestialmechanics_class import SimulatedRVOrbit __all__ = ['OrbitModel'] # Magic numbers: _ivar_disk = (1 / (30.*u.km/u...
adrn/ebak
ebak/singleline/inference.py
Python
mit
6,975
[ "Gaussian" ]
9f82ee7d8bd94df9ab9a95fd180bc698ec45a6514bb156a9592641e05fd6da71
import unittest from gmrf import GaussianField from gmrf import SPDMatrix import numpy as np import matplotlib.pyplot as plt from scipy import linalg from scipy import sparse as sp def fbm_cov(x,y,H): """ Compute the fractional Brownian motion covariance function """ return 0.5*np.abs(x)**(2*H) + 0...
hvanwyk/quadmesh
tests/test_gmrf/test_gaussian_field.py
Python
mit
15,979
[ "Gaussian" ]
9faac20717a4d2c11f89ae4e2a14129878d33038f812bdb055b560c622bb0ecb
""" Try running sequential scan on a local file. """ from net.grinder.script import Test from net.grinder.script.Grinder import grinder from dapbench.jython.util import generate_subset_requests from dapbench.jython.netcdf import Dataset import data_urls partition_dict = {'time': 120} variable = 'ta' # Take the...
cedadev/dapbench
grinder/remote_test.py
Python
bsd-3-clause
1,155
[ "NetCDF" ]
af7acebbd6c5144346f598356fd4d67f72b2a8d8710a864c1e6aa3292d4ec38f
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # startexe - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of ...
heromod/migrid
mig/shared/functionality/startexe.py
Python
gpl-2.0
1,018
[ "Brian" ]
4f8a2d38c8d604affbd7064ab0c720ff93ecc8cdf5b56786e88fe35a0dbdbea0
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
abgworrall/kubernetes
cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
Python
apache-2.0
63,197
[ "CDK" ]
01ab4ab1f60b93438f94c5c96a6aff7a6ea3a8ada639883e178a5fdf5de15036
""" Artificial Intelligence for Humans Volume 2: Nature-Inspired Algorithms Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2014 by Jeff Heaton Licensed under the Apache License, Version 2.0 (the "License")...
PeterLauris/aifh
vol2/vol2-python-examples/lib/aifh/rbf_network.py
Python
apache-2.0
4,921
[ "Gaussian", "VisIt" ]
412a930cadd0b097a6a4f04484ce561196316f2ad8636abda722b68ea9a8a54b
# # # A file which generates an input frequency vs output frequency curve for various cells # # Author: Dan Ruedt # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Medical Research Council and the # Wellcome Trust # # from sys import * fr...
pgleeson/TestArea
models/GranCell_Dan_analysis/f-F_plot.py
Python
gpl-2.0
1,182
[ "NEURON" ]
0596c21dcd247619be836882c5aa3bd50cc22b5364e2db974ea03c1b5898c467
''' Created on Aug 2, 2011 @author: sean ''' from __future__ import print_function from meta.asttools.tests import AllTypesTested, assert_ast_eq import unittest from meta.asttools.mutators.prune_mutator import PruneVisitor import ast from meta.testing import py2only tested = AllTypesTested() class TestExclusive(un...
enthought/Meta
meta/asttools/tests/test_prune.py
Python
bsd-3-clause
9,944
[ "VisIt" ]
8e926841994d77961cac5cdacb75d46105cd8f634d1cd416bbb2a139fdeb8a64
# a benchmark of the inh_gamma_generator independent multiple targets # feature. # Compare simulation times to the equivalent multiple generator # objects for independent realizations (bench.py). # # On my Opteron system, the timed simulation step is almost # 20 times faster (than the bench.py implementation). # # A...
gewaltig/cython-neuron
developer/examples/inh_gamma/bench_poisson.py
Python
gpl-2.0
2,178
[ "NEURON" ]
56ac92ff6d0969c4f3f180935707e3700ddd7e94ac97341304ae9445b5fb6694
#============================================================================ # # Copyright (c) Kitware Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
agirault/VesselView
Modules/Scripted/Welcome/Welcome.py
Python
apache-2.0
4,905
[ "VTK" ]
d1ad1221fca7cd00e9e1521b4c490b486999fc100f65eccfd5647d4868746d73
from mhvdb2 import app, mailer from flask import render_template, request, flash, redirect, url_for from mhvdb2 import resources from datetime import datetime def get_post_value(key): try: return request.form[key] except KeyError: return None @app.route('/') def index(): return render_te...
makehackvoid/mhvdb2
mhvdb2/routes.py
Python
mit
3,441
[ "VisIt" ]
2fd1bf792a7124f28d021ddf45b5fe387168704f8a14b5e2f3918859e1f64ac9
#! /usr/bin/env python """ Model for quadrature amplitude modulation (QAM); contains `MQAM` class. Revision Info ============= * $LastChangedBy: mandke $ * $LastChangedDate: 2010-10-19 16:34:02 -0500 (Tue, 19 Oct 2010) $ * $LastChangedRevision: 4811 $ :author: Ketan Mandke <kmandke@mail.utexas.edu> :copyright: ...
reidlindsay/wins
wins/digital/mqam.py
Python
apache-2.0
9,401
[ "Gaussian" ]
932aaa5352548a040cc0c72cba39963046b2324dfc1783f349744aab7d985142
# -*- coding: utf-8 -*- # Copyright (c) 2015, ESS LLP and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document import json from frappe.utils import getdate, add_days, get_time, time_diff_in_seconds from frappe im...
ESS-LLP/erpnext-medical
erpnext/healthcare/doctype/patient_appointment/patient_appointment.py
Python
gpl-3.0
21,383
[ "VisIt" ]
38422d5d47e2238e6a09402b3da7b30c11ae001697e2578fd4b2c67a9fe54a96
#------------------------------------------------------------------------------ # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions describe...
dmsurti/mayavi
tvtk/pyface/ui/qt4/scene.py
Python
bsd-3-clause
17,407
[ "VTK" ]
0baa8fa3a5680f79e3b38d36aa1c1b2310fbf6efdec382b2786147f1539187ea
""" Courseware views functions """ import logging import urllib import json from collections import defaultdict from django.utils.translation import ugettext as _ from django.conf import settings from django.core.context_processors import csrf from django.core.exceptions import PermissionDenied from django.core.urlr...
topxiaoke/myedx
lms/djangoapps/courseware/views.py
Python
agpl-3.0
36,560
[ "VisIt" ]
7badff3eff84a4f0bfde9c30de57b35a0da7aec673041384a69728fd994c8085
#!/usr/bin/python # -*- coding: utf-8 -*- import json import requests from collections import defaultdict from cookielib import LWPCookieJar import numbers import os from os.path import dirname, join from requests.packages import urllib3 import sys from sys import platform import time if __debug__: from traceback...
alfeg/EDMarketConnector
companion.py
Python
gpl-2.0
9,758
[ "ORCA" ]
351fc9894a9db8d5aa44a8743eba17f71a09496e083f49ba4e240a4de9977a0a
# # Author: Henrique Pereira Coutada Miranda # Run a Silicon groundstate calculation using Quantum Espresso # from __future__ import print_function import sys from qepy import * import argparse scf_kpoints = [2,2,2] nscf_kpoints = [2,2,2] dg_kpoints = [4,4,4] prefix = 'si' matdyn = 'matdyn.x' q2r = 'q2r.x' pw = ...
henriquemiranda/yambopy
tutorial/si/gs_si.py
Python
bsd-3-clause
7,879
[ "CRYSTAL", "Quantum ESPRESSO" ]
a4913b6a2fb940a29e972ac35df5642ed7289433808a8ce73e7813b4c5271013
""" --- Day 1: No Time for a Taxicab --- Santa's sleigh uses a very high-precision clock to guide its movements, and the clock's oscillator is regulated by stars. Unfortunately, the stars have been stolen... by the Easter Bunny. To save Christmas, Santa needs you to retrieve all fifty stars by December 25th. Collect ...
codyhowarth/advent-of-code
src/day1/day1.py
Python
mit
4,648
[ "VisIt" ]
e3f7e1b181d82c4cf9ae487a390afc84a44e99223951d93e84f6a87c0e7ca3ee
import operator import numpy as np import sys if sys.argv[0] != "gen_py.py": from api_autogen import * import cgt from . import core, utils # Every non-underscored function in this file should have a docstring, and it should enforce that the input data is valid # ==================================================...
nebw/cgt
cgt/api.py
Python
mit
22,523
[ "Gaussian" ]
58a910d20cf15b215fed3ce308c9c1f42d4dd1697fc80cf4106070636f893fe5
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/web/mediaplayerremove.py
Python
gpl-2.0
5,249
[ "VisIt" ]
8da0c354a9a5b54350857753b042d6f77b4cfda8ff79b5e38f42dc58a6a1e70e
""" Numba-specific errors and warnings. """ import abc import contextlib import os import sys import warnings import numba.core.config import numpy as np from collections import defaultdict from numba.core.utils import chain_exception from functools import wraps from abc import abstractmethod # Filled at the end __a...
stuartarchibald/numba
numba/core/errors.py
Python
bsd-2-clause
22,821
[ "VisIt" ]
76034ac64d9cfe5e769e5fe8087cd033a0835708bbb3955e4fd75d3b6d5f9ce5
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for # the Earth and Planetary Sciences # Copyright (C) 2012 - 2021 by the BurnMan team, released under the GNU # GPL v2 or later. import numpy as np from .. import constants def molar_volume_from_unit_cell_volume(unit_cell_v, z): """ ...
geodynamics/burnman
burnman/utils/unitcell.py
Python
gpl-2.0
3,500
[ "Avogadro" ]
567ee911cdc43f627d287cc5b4f55f3de7766a57edc05f91c122b7112db600c4
# (c) 2012-2017, 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/tests/unit/test_version.py
Python
apache-2.0
2,194
[ "Galaxy" ]
dbc5f088ebe3dc2b9765c14ea8d01c0877cc5a40e32b8f7907828b33f2058533
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import json import frappe.utils from frappe.utils import cstr, flt, getdate, comma_and, cint from frappe import _ from frappe.model.utils ...
vishdha/erpnext
erpnext/selling/doctype/sales_order/sales_order.py
Python
gpl-3.0
25,789
[ "VisIt" ]
7128d36e1bf8b603642d30d00819053ef89754a8ef81b01a3437936587713d1a
# Copyright (C) 2015-2016 Allen Li # # This file is part of Animanager. # # Animanager 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. ...
darkfeline/animanager
setup.py
Python
gpl-3.0
2,086
[ "MOE" ]
45d6ff44cb7989ee1bc0394ebbf0677e59454fd3dbee9d6577d1d9e01caf8d9c
# Aaron (male)ok # enlightened # to sing core = findDesig('Aaron', 'M') maybeAddRelation('cognateOf', core, findDesig('Aaron', 'M')) # Abbott (male)ok # father of joy core = findDesig('Abbott', 'M') maybeAddRelation('cognateOf', core, findDesig('Abbie', 'F')) maybeAddRelation('cognateOf', core, findDesig('Abbott', 'M...
philpot/tocayo
tocayoproj/rels18.py
Python
apache-2.0
359,633
[ "Amber", "Brian", "COLUMBUS", "CRYSTAL", "Dalton", "Desmond", "MOE" ]
96bf980e51c608887598b14479fc9c515d484b69d82505efdc8b23f851aa95e5
#!/usr/bin/env python # # Copyright (c) 2001 Autonomous Zone Industries # This file is licensed under the # GNU Lesser General Public License v2.1. # See the file COPYING or visit http://www.gnu.org/ for details. # __cvsid = '$Id: Conversation.py,v 1.5 2002/05/03 14:16:14 zooko Exp $' # standard Python modules...
zooko/egtp
common/Conversation.py
Python
agpl-3.0
25,778
[ "VisIt" ]
f27c485426bd1c0dacc435efc254c2822d47bca343a732496f14b049c9094abf
#!/usr/bin/env python # # Author: Oliver J. Backhouse <olbackhouse@gmail.com> # George H. Booth <george.booth@kcl.ac.uk> # ''' An example of higher moment self-consistency in renormalization of self-energy in AGF2. Note that only the default AGF2 is efficiently implemented (corresponding to AGF2(1,0) in the ...
sunqm/pyscf
examples/agf2/05-agf2_moments.py
Python
apache-2.0
1,750
[ "PySCF" ]
6a79fd0221135e381d797ab16ff1425ddcee6014d40e547b5f39554ab74f5074