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) Pymatgen Development Team. # Distributed under the terms of the MIT License """ Module for reading Lobster output files. For more information on LOBSTER see www.cohp.de. """ import itertools import os import warnings from collections import OrderedDict from typing import D...
mbkumar/pymatgen
pymatgen/io/lobster/inputs.py
Python
mit
33,083
[ "VASP", "pymatgen" ]
198edd17e41883f61eb2068063668f1ad22c9eb9f74ed038a8f4b152ca5a5496
""" The script used to run the FastQ simulation process. The program is designed to take input files in either GenBank or LRG formats. For each new run on the program, a number is randomly picked to be integrated into all file names for identification purposes. From these input files, the process will use the trans...
MattWellie/FastqSimulator
fqRunner.py
Python
gpl-2.0
12,230
[ "BWA" ]
cea94bbe575cd199fd8eabfea200ae9ec2ae702f3b47ccc646d43f4dfec19ab8
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
bgoli/pysces
pysces/PyscesUtils.py
Python
bsd-3-clause
12,587
[ "PySCeS" ]
61cc7d233bf85c1549e838c7697a00210474e41000753896cfb18ff130fffead
############################################################################## # 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...
mfherbst/spack
var/spack/repos/builtin/packages/r-s4vectors/package.py
Python
lgpl-2.1
2,358
[ "Bioconductor" ]
5e3fe66a0e304e99d6faeebd19380f01a0af0314d36f2f35e1a2fd5f838665a3
__doc__ = \ """ =============================================================================== Tools for fitting cylinders to an image (:mod:`mango.application.cylinder_fit`) =============================================================================== .. currentmodule:: mango.application.cylinder_fit Functions an...
pymango/pymango
misc/python/mango/application/cylinder_fit.py
Python
bsd-2-clause
40,112
[ "NetCDF" ]
17049b1a03a9aff4eaa9daa73784363adaec5937c76d09cce82552da9fab7b2a
#! /usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-stager-monitor-requests # Author : Daniela Remenska ######################################################################## """ Report the details of file staging requests, based on selectio...
Sbalbp/DIRAC
StorageManagementSystem/scripts/dirac-stager-monitor-requests.py
Python
gpl-3.0
8,343
[ "DIRAC" ]
a7586beab2e1b09bd318ce25242303ea1335ff44f23c2a1229fce503395e827d
# -*- coding: utf-8 -*- """Single-dipole functions and classes.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # # License: Simplified BSD from copy import deepcopy import functools from functools import partial import re import numpy as np from .cov ...
bloyl/mne-python
mne/dipole.py
Python
bsd-3-clause
60,294
[ "Mayavi" ]
fa361f7149004a6c697da6c38dafad3cc7d919da445233063ac28a3a05186c03
# coding=utf-8 # Copyright 2017 The Tensor2Tensor 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...
waterblue13/tensor2tensor
tensor2tensor/utils/expert_utils.py
Python
apache-2.0
34,703
[ "MOE" ]
723058c06ae0804fae8a2abc48465cebdf21f35dd012ff6188b8dd2b1bf5b71d
#!/usr/bin/env python from __future__ import print_function import itertools,os,re,argparse,string,sys sys.path.append('/dataset/bioinformatics_dev/active/data_prism') from data_prism import prism , build, bin_discrete_value, get_text_stream , get_file_type, PROC_POOL_SIZE def my_first_hit_provider(filename, *xargs)...
AgResearch/prbdf
summarise_probe_blasts.py
Python
gpl-3.0
13,989
[ "BLAST" ]
c0c152239d018aeb7090a47a59111ced7fa29e6862cf6cb3dad0e72153674d96
from inspect import cleandoc from typing import TYPE_CHECKING from pyramid.httpexceptions import ( HTTPConflict, HTTPCreated, HTTPException, HTTPForbidden, HTTPGone, HTTPInternalServerError, HTTPNotFound, HTTPNotImplemented, HTTPOk ) from pyramid.settings import asbool from sqlalche...
Ouranosinc/Magpie
magpie/api/management/register/register_utils.py
Python
apache-2.0
20,317
[ "VisIt" ]
cc251a847c3e30f3664a616e9ce049075e950cf758a772b3f39b03e3989fd019
#import urllib2 import urllib import subprocess import time import os.path import sys import getopt from Bio.PDB import * import openbabel import pybel import yaml from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Draw import re import os from collections import Counter import numpy as n...
fosfataza/protwis
interaction/legacy_functions.py
Python
apache-2.0
62,018
[ "Open Babel", "Pybel", "RDKit" ]
82d05500d6e64788e7a4f0a73bfaf0ed00c4679a6d69debe4b6e6b4e8ca86d94
#!/usr/bin/env python ######################################################################## # File : dirac_admin_accounting_cli # Author : Adria Casajus ######################################################################## """ Command line administrative interface to DIRAC Accounting DataStore Service """ from ...
DIRACGrid/DIRAC
src/DIRAC/AccountingSystem/scripts/dirac_admin_accounting_cli.py
Python
gpl-3.0
627
[ "DIRAC" ]
1e16f89311856b978322feafcac40edf8e2104e187367e8021575f4d8482dbe7
"""Sequence to sequence translation models.""" from deepchem.models import TensorGraph from deepchem.models.tensorgraph import layers from heapq import heappush, heappushpop import numpy as np import tensorflow as tf class SeqToSeq(TensorGraph): """Implements sequence to sequence translation models. The model i...
Agent007/deepchem
deepchem/models/tensorgraph/models/seqtoseq.py
Python
mit
26,116
[ "Gaussian" ]
ac1bfc7057eca54dd285c66547280cd7cbdf07228638557906701ac0d875777f
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os.path from spack import * class Pgdspider(Package): """"PGDSpider is a powerful automated data conversion ...
LLNL/spack
var/spack/repos/builtin/packages/pgdspider/package.py
Python
lgpl-2.1
1,388
[ "BWA" ]
8a36cb1f32046d770b8ea82e8bb60017b65f3671058a197b38e51197bff996c3
""" ALFAFA "source" .sav file """ from __future__ import print_function import idlsave try: import astropy.io.fits as pyfits except ImportError: import pyfits import pyspeckit import numpy as np def read_alfalfa_file(filename): """ Read the contents of a whole ALFALFA source file """ savfile = ...
vlas-sokolov/pyspeckit
pyspeckit/spectrum/readers/alfalfa.py
Python
mit
2,369
[ "Gaussian" ]
333c3a08981e01e468d5bc4bbe5663d3708b439f9721634a3cd0e4da3b44256e
from abc import ABCMeta, abstractmethod import warnings import numpy as np import matplotlib.pyplot as plt from scipy import linalg from scipy.signal import fftconvolve from scipy import stats from ..utils.progress_bar import ProgressBar from ..utils.maths import squared_norm from ..utils.validation import check_arra...
RPGOne/Skynet
pactools-master/pactools/dar_model/base_dar.py
Python
bsd-3-clause
40,526
[ "Gaussian" ]
336034bab04afef908dcb9d77913e8f47ac459919aa972bb9e4dbe2d1cbad36a
from collections import OrderedDict import warnings from warnings import catch_warnings import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame, Index, Series, Timestamp, concat from pandas.core.base import SpecificationError from pandas.tests.windo...
toobaz/pandas
pandas/tests/window/test_api.py
Python
bsd-3-clause
12,926
[ "Gaussian" ]
2f3987a202b41fd9db554efdbbcc45403412093d0c73ce60e5e8ffce1167c4ae
# Jython Database Specification API 2.0 # # Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com> from zxtest import zxCoreTestCase class OracleSPTest(zxCoreTestCase): def setUp(self): zxCoreTestCase.setUp(self) c = self.cursor() try: try: c.execute("drop tabl...
ofermend/medicare-demo
socialite/jython/Lib/test/zxjdbc/sptest.py
Python
apache-2.0
7,877
[ "Brian" ]
dc85848b06f89788dd3325f348f4d8ec4df04306772156bb0879c2910f8366e0
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=2> # ROMS Glider # <markdowncell> # Virtual glider extraction: (lon,lat,time) interpolation from ROMS files using the OKEAN python package: https://github.com/martalmeida/okean # <codecell> %matplotlib inline from okean.roms import glider fro...
rsignell-usgs/notebook
ROMS/roms_glider-sandy-temp-Copy0.py
Python
mit
2,634
[ "ESPResSo", "NetCDF" ]
d78754c27725299ebc8c019aa295fc93ff6edba3c5d5ab1fdad4d86477149409
# -*- 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) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Pub...
ghutchis/cclib
src/cclib/parser/logfileparser.py
Python
lgpl-2.1
18,154
[ "ADF", "Avogadro", "Dalton", "GAMESS", "Gaussian", "Jaguar", "Molpro", "NWChem", "ORCA", "cclib" ]
d912211232e1a1eb5b616c303c26ae35e7dd2780594e7cf7fc5eda406215b129
""" .. _on_screen_notification_tests: :mod:`on_screen_notification_tests` -- Module for testing on-screen notifications ================================================================================= .. automodule:: on_screen_notification_tests .. moduleauthor:: Evgeny Fadeev <evgeny.fadeev@gmail.com> """ import...
maxwward/SCOPEBak
askbot/tests/on_screen_notification_tests.py
Python
gpl-3.0
21,812
[ "VisIt" ]
e592c6613c3d522622410ae52de04afa3023abbb2e04a383542404ee0fae26f8
from aces.materials.POSCAR import structure as Material class structure(Material): def getPOSCAR(self): return """ACES POSCAR 1.00000000000000 6.0650009646400260 0.0128832718845054 0.0134996181012706 0.0137312583263575 6.0649984601980913 0.0137359852819097 ...
vanceeasleaf/aces
aces/materials/Sn4Se4_nacl_modulation_minimize.py
Python
gpl-2.0
1,066
[ "ASE" ]
223d3a70963404671769a0dcc9f9ea86c9fe3bce559215b798bbffc9b5094b56
from ..utils import * ## # Minions class OG_051: """Forbidden Ancient""" def play(self): mana = self.controller.mana yield SpendMana(CONTROLLER, mana) yield Buff(SELF, "OG_051e") * mana OG_051e = buff(+1, +1) class OG_044: """Fandral Staghelm""" update = Refresh(CONTROLLER, { GameTag.CHOOSE_BOTH: Tru...
jleclanche/fireplace
fireplace/cards/wog/druid.py
Python
agpl-3.0
1,878
[ "Amber" ]
f4aefb9a90314cd4fe945e96f91a02861ffaa13d8bc4b4eae81428882c2a3cff
#! rhf gradient code """ This script calculates nuclear gradients of RHF Wavefunction using gradients of one and two electron integrals obtained from PSI4. Reference: "Derivative studies in Hartree--Fock and Moller--Plesset theories", J. A. Pople, R. Krishnan, H. B. Schlegel and J. S. Binkley DOI: 10.1002/qua.560160...
psi4/psi4
samples/psi4numpy/rhf-gradient/input.py
Python
lgpl-3.0
5,028
[ "Psi4" ]
0553cf68361b640c966b60df2ed00115ddde0bf1569b45be4183446cd7c1f77c
from paraview import simple from tonic.paraview.data_writer import * ds = simple.Wavelet() dataRenderer = ScalarRenderer() view = dataRenderer.getView() view.ViewSize = [500, 500] simple.Show(ds, view) simple.ResetCamera(view) dataRenderer.writeArray('/Users/seb/Desktop/composite/', ds, 'RTData')
Kitware/tonic-data-generator
scripts/paraview/tests/extract-scalar.py
Python
bsd-3-clause
303
[ "ParaView" ]
c984b8b8bf55a45c7fb73d20bcc1ff24379ce7ed6611404713188a6f66221e8a
import graph_tool.all as gt import numpy as np class LayeredNet(object): """This is a wrapper for the graph_tool.Graph object. One can register vertex/edge properties and use them in algorithm implementation. It also implements basic forward and backward operations. One can create a layered architec...
janekolszak/graph-tool-nn
gtnn/network/layered_net.py
Python
gpl-3.0
5,137
[ "NEURON" ]
fec7525ce5f438b0b61703efde29a43177797a56e2fa32facacaaf4e71dac45a
# # Copyright (c) 2003-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. # """ utility functionality for fingerprinting s...
rvianello/rdkit
rdkit/Chem/Fingerprints/FingerprintMols.py
Python
bsd-3-clause
17,632
[ "RDKit" ]
ed1dba0dc9dfae50c41a2c0796d5e0e13acb30b110c2f23c57db0b383f14e14f
from builtins import range import warnings import numpy as np from numpy.lib.scimath import sqrt as csqrt from scipy.special import j0,j1, la_roots from peri import util from peri import interpolation from peri.comp import psfs def j2(x): """ A fast j2 defined in terms of other special functions """ to_retur...
peri-source/peri
peri/comp/psfcalc.py
Python
mit
38,764
[ "Gaussian" ]
88c88d49b4b40de299e305d0f52226ccc868ea1ecc55146428e4a3f46309fe42
# coding: utf-8 from os.path import dirname, abspath, join from collections import namedtuple CONFIG_DIR = dirname(abspath(__file__)) CALCORE_DIR = join(dirname(CONFIG_DIR), 'data') DRAGON_PATH = join(CALCORE_DIR, 'fordragon') MOPAC_PATH = join(CALCORE_DIR, 'formopac') GAUSSIAN_PATH = join(CALCORE_DIR, 'forgaussian'...
tianweidut/ChemToolsWebService
chemistry/calcore/config.py
Python
agpl-3.0
850
[ "Gaussian", "MOPAC" ]
059095e47c433429921b3398a1995fa53e72b1f8e8f23759a00a9d95b3adcd99
id_mappings = { "EX1_097": "Abomination", "CS2_188": "Abusive Sergeant", "EX1_007": "Acolyte of Pain", "NEW1_010": "Al'Akir the Windlord", "EX1_006": "Alarm-o-Bot", "EX1_382": "Aldor Peacekeeper", "EX1_561": "Alexstrasza", "EX1_393": "Amani Berserker", "CS2_038": "Ancestral Spirit", ...
slaymaker1907/hearthbreaker
tests/card_tests/id_mapping.py
Python
mit
23,324
[ "BLAST", "CRYSTAL", "TINKER" ]
2749d68c253f731e7787d1491da5f0b29e5ce1c4e004b09e3007f241c36b8891
""" Author: Dr. Mohamed Amine Bouhlel <mbouhlel@umich.edu> Some functions are copied from gaussian_process submodule (Scikit-learn 0.14) This package is distributed under New BSD license. TODO: - fail_iteration and nb_iter_max to remove from options - define outputs['sol'] = self.sol - debug _train: self_pkl = pick...
hwangjt/SMT
smt/surrogate_models/krg_based.py
Python
bsd-3-clause
20,696
[ "Gaussian" ]
2009fa35c8ccaa4fb2d1e2674eed158a3fa2645c45bb95f38494743323402463
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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 # # ...
misko/neon
examples/mnist_mlp.py
Python
apache-2.0
4,741
[ "Gaussian" ]
8038fd49068136ba015fe9f6b0edca17b4b189754c079896147b9595bc95eddd
#!/usr/bin/env python3 import sys from math import * from scipy.stats import gamma,norm from scipy import mean,optimize import numpy as np import argparse def plot_hist(h,points,cap,label=""): plot([min(cap,x) for x in h[:points]],label=label) class KmerSpectra(object): """A kmer spectra, comprised of di...
georgek/KAT
scripts/kat_distanalysis.py
Python
gpl-3.0
17,406
[ "Gaussian" ]
3b48db815b6faeb27d8a7a56193bb1760718d8159b2649375ba282795184b8fe
""" NOTA BENE: This agent should NOT be run alone. Instead, it serves as a base class for extensions. The TaskManagerAgentBase is the base class to submit tasks to external systems, monitor and update the tasks and file status in the transformation DB. This agent is extended in WorkflowTaskAgent and Reque...
miloszz/DIRAC
TransformationSystem/Agent/TaskManagerAgentBase.py
Python
gpl-3.0
25,382
[ "DIRAC" ]
3f02bd44c7d17576ca5c19171d9b4701e31a743a4ed45229d132ba98a16c6c5a
############################################################################## # 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...
lgarren/spack
var/spack/repos/builtin/packages/r-edger/package.py
Python
lgpl-2.1
2,157
[ "Bioconductor" ]
6845e722da2adb43317b9f298aedac24fd9e0e34e42a67d8c0a6fdfa0f4db72d
# Authors: Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD-3-Clause # Many of the computations in this code were derived from Matti Hämäl...
pravsripad/mne-python
mne/surface.py
Python
bsd-3-clause
76,222
[ "VTK" ]
a15e3f10e0d37288001c167757c4411f248d0fbd2e1bf72b1fdacff6619be8b2
#!/usr/bin/env python3 '''Test cases for Nielsen.''' import unittest import unittest.mock import pathlib import tempfile import nielsen # Ensure config is loaded regardless of test order nielsen.load_config('nielsen.ini') class TestConfig(unittest.TestCase): '''Tests for the config module''' def test_load_config...
IrishPrime/Nielsen
test.py
Python
gpl-3.0
10,036
[ "Brian", "Firefly" ]
978da12513bacfd4b1664687e64268afc00a94d7ddecfb4e072e8012e0528e34
# # This file is part of the CCP1 Graphical User Interface (ccp1gui) # # (C) 2002-2007 CCLRC Daresbury Laboratory # # 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 ...
alexei-matveev/ccp1gui
interfaces/calc.py
Python
gpl-2.0
22,581
[ "PyMOL" ]
42ec810e595243255aa08e3fdf1ae27557fb8c466d09fe624e533142e7f0d686
# Copyright (C) 2008-2009 Open Society Institute # Thomas Moroz: tmoroz.org # 2010-2011 Large Blue # Fergus Doyle: fergus.doyle@largeblue.com # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License Version ...
amarandon/opencore
opencore/security/policy.py
Python
gpl-2.0
9,277
[ "VisIt" ]
579213c52b468a7ca0d545e4208a585e8617365ccde9ea38b3be97c4852dcc37
''' SASSIE: Copyright (C) 2011 Joseph E. Curtis, Ph.D. 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. ...
madscatt/zazzie
src_2.7/sassie/test_sassie/calculate/sld_mol/test_sld_mol.py
Python
gpl-3.0
155,075
[ "Gaussian" ]
0a00f7ab110df7131ab5f6dc72dd2ac225321b22e4191eca55ebdcd7897fd3f4
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be usefu...
scylladb/scylla-longevity-tests
sdcm/utils/data_validator.py
Python
agpl-3.0
32,348
[ "VisIt" ]
e010c861295d88701887d754fcce7939a8e4c034a6ee387dbde7b03728bd15f6
"""This test checks that the StrainFilter works using the default built-in EMT calculator.""" import numpy as np from ase.constraints import StrainFilter from ase.optimize.mdmin import MDMin from ase.calculators.emt import EMT from ase.lattice import bulk cu = bulk('Cu', 'fcc', a=3.6) class EMTPlus(EMT): def get...
grhawk/ASE
tools/ase/test/strain_emt.py
Python
gpl-2.0
466
[ "ASE" ]
3e0d59606c56333f3deec10e708288b0a9b25e2179f0ea373a1bfbd15a8ed7cc
""" Title: Working with RNNs Authors: Scott Zhu, Francois Chollet Date created: 2019/07/08 Last modified: 2020/04/14 Description: Complete guide to using & customizing RNN layers. """ """ ## Introduction Recurrent neural networks (RNN) are a class of neural networks that is powerful for modeling sequence data such as ...
keras-team/keras-io
guides/working_with_rnns.py
Python
apache-2.0
19,767
[ "VisIt" ]
d5c5fc995b669889f9204214dd7e532107d62529380eb57802315e03fd3901ad
"""Amber Electric Sensor definitions.""" # There are three types of sensor: Current, Forecast and Grid # Current and forecast will create general, controlled load and feed in as required # At the moment renewables in the only grid sensor. from __future__ import annotations from collections.abc import Mapping from t...
rohitranjan1991/home-assistant
homeassistant/components/amberelectric/sensor.py
Python
mit
8,362
[ "Amber" ]
dce5d0ceee987e68bd91410c9c4a3592fa445d4843c883d0f1b7ba8d1d6481b0
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apark263/tensorflow
tensorflow/python/autograph/pyct/static_analysis/type_info.py
Python
apache-2.0
7,398
[ "VisIt" ]
5f11acc50c5b4ea2f0e093fcff0eb8527a187eccb7bd2c5146ee7d8a9827354a
from constant import * from clientserver import * from decimal import * import re # phase number (key) : [phase name, phase specific prompt message] # used to generate phase specific messages PHASE_DICTIONARY = { PHASE_NUM.KEYWORD_CAMPAIGN: ['keyword campaign', 'Please select the number corresponding ' + 'to the ...
googleinterns/step51-2020
hangout_bot/messages.py
Python
apache-2.0
51,151
[ "VisIt" ]
68eb7ee7df0003d03c5144adf2492a0e7b40c029f2ef0c4a1b2c8cbac2824f5d
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
petrutlucian94/nova
nova/tests/unit/compute/test_resource_tracker.py
Python
apache-2.0
57,205
[ "exciting" ]
cb661c1657c951b3e1f00adbdf06edfe411ab5730b74e0b55ca1414ef09f5716
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyHtseq(PythonPackage): """HTSeq is a Python package that provides infrastructure to proce...
LLNL/spack
var/spack/repos/builtin/packages/py-htseq/package.py
Python
lgpl-2.1
1,030
[ "HTSeq", "pysam" ]
584310cded08e8579e9ca45af12a4d77908c78564d7a142b9f1f461d94771733
#!/usr/bin/env python # -*- coding: utf-8 -*- from cellsim16popsParams_modified_regular_input import multicompartment_params from plot_methods import network_sketch, plot_population, plot_signal_sum import analysis_params from hybridLFPy import CachedNetwork import plotting_helpers as phlp import os from matplotlib imp...
espenhgn/hybridLFPy
examples/Hagen_et_al_2016_cercor/figure_01.py
Python
gpl-3.0
5,434
[ "NEURON" ]
4679e3a52424f9dd8998e72fb0cf74e5378f45cda0b7799c73d1ec794229a40b
from __future__ import print_function if __name__ == '__main__': import matplotlib matplotlib.use('Agg') import os import sys import time import tempfile import numpy as np import fitsio from legacypipe.runbrick import main from astrometry.util.fits import fits_table def set_env(): for v in ['UNWISE_COADDS...
legacysurvey/pipeline
py/test/runbrick_test.py
Python
gpl-2.0
27,275
[ "Galaxy" ]
004eccbbe45d19ded9793dbc507beb830725823b35e12bb00a654a0018551424
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # import numpy from pyscf import gto, scf, ao2mo, mcscf ''' User-defined Hamiltonian for CASSCF module. Defining Hamiltonian once for SCF object, the derivate post-HF method get the Hamiltonian automatically. ''' mol = gto.M() mol.nelectron = 6 # ...
gkc1000/pyscf
examples/mcscf/40-customizing_hamiltonian.py
Python
apache-2.0
997
[ "PySCF" ]
443c207254cd55b981a7ca24a2d5ec197bc6ddce9e7de943c94c87a76e102844
# rgToolFactory.py # see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # copyright ross lazarus (ross stop lazarus at gmail stop com) May 2012 # # all rights reserved # Licensed under the LGPL # suggestions for improvement and bug fixes welcome at https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # ...
tiagoantao/tools-iuc
tools/rglasso/rgToolFactory.py
Python
mit
28,526
[ "Galaxy" ]
e6387b67251ed2e308ba1b19a6e85862e05e03ca5e9229136df0febddcd23e2e
from __future__ import unicode_literals import copy from six.moves import xrange from scrapi.base import XMLHarvester from scrapi.base.schemas import DOESCHEMA from scrapi.linter.document import RawDocument from scrapi.base.helpers import updated_schema, build_properties, single_result RAW_DOC = { 'doc': b'{}',...
fabianvf/scrapi
tests/utils.py
Python
apache-2.0
8,205
[ "Brian" ]
776bd157f063fa0e88184e2490248e3f687b99c0541f9ef92c93a8b1430f7be6
import numpy as np import gnumpy as gpu import pickle import os from copy import deepcopy from .train import CDTrainer from .util import Configuration, sigmoid, activation def full(name = ''): """Given the name of a network, return the default path to it.""" return os.path.join(os.path.dirname(__file__), 'n...
ggiuffre/DBNsim
DBNsite/DBNlogic/nets.py
Python
mit
4,572
[ "NEURON" ]
1c270e4295d57d23e7c85feb2f33dcad09cd7059e86737883e9005b01421747e
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime, timedelta import re from particle.common import db from HTMLParser import HTMLParser from urlparse import urlparse import pytz import requests from pprint import pprint import string import json import logging import sys import yaml from bs4 ...
abelsonlive/particle
particle/helpers.py
Python
mit
9,878
[ "ADF" ]
f8e2f16c18c82ce672abdfd7b6259976b69de249038d0c8b0be0eb6acc807d90
from __future__ import (absolute_import, division, print_function) from AbinsModules import AbinsParameters import numpy as np # noinspection PyPep8Naming class Instrument(object): _name = None def calculate_q_powder(self, input_data=None): """ Calculates Q2. :param input_data: da...
wdzhou/mantid
scripts/AbinsModules/Instruments/Instrument.py
Python
gpl-3.0
3,550
[ "Gaussian" ]
5ea78e604f15a79c0a0c214a12da06de1b46012b5f6f0df6ff0397b2c78e455b
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import glob def plot_raster_bars(t_start, t_stop, n_rec, frac_to_plot, network_pops, path, filename, conf): # PYTHON2.6: ADDED ARGUMENT network_pops, NEEDED FOR EXTRACTING FIRST # ID PER POPULATION ...
jakobj/UP-Tasks
NEST/microcircuit_task/plotting.py
Python
gpl-2.0
4,050
[ "NEURON" ]
569e2eb5c5436242705df7659ba1f67eada9a01c80eb9078db0a4c596ab67ae9
import logging import os import threading import galaxy.tools from galaxy.tools.search import ToolBoxSearch from xml.etree import ElementTree as XmlET from tool_shed.util import basic_util from tool_shed.util import common_util from tool_shed.util import shed_util_common as suc from tool_shed.util import xml_util lo...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/tool_shed/galaxy_install/tools/tool_panel_manager.py
Python
gpl-3.0
34,225
[ "Galaxy" ]
5c4611359da2bdf33fa5a6e578800c78fa1ac20c7637ecb9f3f29be5c151918e
#!/usr/bin/env python # Copyright 2014-2020 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/dft/numint.py
Python
apache-2.0
52,003
[ "CRYSTAL", "PySCF" ]
e2b774d6c2f0066d4517278d54524b830aef08fa37cfe6860630b1647ebff154
#!/usr/bin/env python """ Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ https://setuptools.readthedocs.io/en/latest/easy_install.html ""...
swjtuacmer/Ranker
Ranker/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py
Python
mit
85,901
[ "VisIt" ]
e0b39c2675b63de84530bdbf9ed7b3db7a2c2e0fe27ffd41622a9490a1f66151
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser 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 S...
neeasade/qutebrowser
scripts/dev/pylint_checkers/qute_pylint/config.py
Python
gpl-3.0
3,009
[ "VisIt" ]
c68212e076c582de7e86509511517111760afc267f00fe842da35560615634dc
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2020 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/analysis/hole2/templates.py
Python
gpl-2.0
4,474
[ "Amber", "MDAnalysis" ]
f8ad71cfab207fe1a3a44bc33924ab486370ca54af750dfe998cbeb5178e479d
# test native alignment class and fasta parser # ------------------------------------------------------------------------------ from tfbayes.alignment import * from tfbayes.interface import * from tfbayes.phylotree import * tree = pt_root_t ("alignment-test.nh") alignment = alignment_t("alignment-test.fa", tre...
pbenner/tfbayes
tfbayes/alignment/alignment-test.py
Python
gpl-2.0
837
[ "Biopython" ]
b19bbc59528422ab573c6ce0526aa29f7516667efdbbb73ba0118b88489da068
# 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.data_type' db.add_column(u'profiles_customvalue', 'data_type', self.gf('django...
216software/Profiles
communityprofiles/profiles/oldmigrations/0053_auto__add_field_customvalue_data_type.py
Python
mit
18,188
[ "MOE" ]
59484f4195917dd99c74a14808611b08846d2f49d0faaf133d037e20ad6a80a8
""" 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 that it will be useful, but WITHOU...
SamWitte/Codds_DarkMatter
src/Data/DAMA_2Bin.py
Python
gpl-2.0
1,969
[ "Gaussian" ]
dac210c9b0b4db857b35b61dc3d9f88237fc3b942563e3a2ddc7e2672fae76a3
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2004, 2006 Sean C. Gillies # Copyright (c) 2007 STFC <http://www.stfc.ac.uk> # # Authors : # Dominic Lowe <d.lowe@rl.ac.uk> # # Contact email: d.lowe@rl.ac.uk # ========================...
kalxas/OWSLib
owslib/coverage/wcs110.py
Python
bsd-3-clause
18,892
[ "NetCDF" ]
95ae351e8b7a9c0a7fa459c4587f94f15fecafd436f3325755ffe434dbd1c1e0
from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import re import socket import sys import time import xml.etree.ElementTree from ..compat import ( compat_cookiejar, compat_HTTPError, compat_http_client, compat_urllib_error, co...
Kagee/youtube-dl
youtube_dl/extractor/common.py
Python
unlicense
46,306
[ "VisIt" ]
e3725032128dcf65d951032e7975f40e56522af99dc8804379b6259676ac7a6b
""" Optimade support. """ import logging import sys from collections import namedtuple from os.path import join from typing import Dict, List, Optional, Union, Set from urllib.parse import urlparse import requests from tqdm import tqdm # from retrying import retry from pymatgen.core.periodic_table import DummySpeci...
vorwerkc/pymatgen
pymatgen/ext/optimade.py
Python
mit
23,621
[ "pymatgen" ]
296e47d41f868e9ab1ea7c38fd1f16dd2d684a4c74c5f5c27684f8e74b43c7f9
# Replace the API Key and Shared Secret with the one given for your # App by Shopify. # # To create an application, or find the API Key and Secret, visit: # - for private Apps: # https://${YOUR_SHOP_NAME}.myshopify.com/admin/api # - for partner Apps: # https://www.shopify.com/services/partners/api_clients # # Y...
daniyalzade/burgaz
shopify_settings.py
Python
mit
809
[ "VisIt" ]
0c7ccdeed5dbfb9865319e3a396eca48d9c2dc1a658e8c210d94054e5f017716
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
jdrudolph/scikit-bio
skbio/diversity/alpha/tests/test_base.py
Python
bsd-3-clause
18,232
[ "scikit-bio" ]
cbaf83d0973424c9a2aa6a676591d8f7b36b01988bc5a13b0a7e2f355cd10141
# Copyright 2008-2014 Nokia Solutions and Networks # # 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 l...
eric-stanley/robotframework
src/robot/model/keyword.py
Python
apache-2.0
2,939
[ "VisIt" ]
cd5a22404868c06629baa869f35169801951f7a938cb1844722dfdf86721fc89
# This file is part of DEAP. # # DEAP is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # DEAP is distributed...
marcioweck/PSSLib
reference/deap/examples/bbob.py
Python
lgpl-3.0
5,228
[ "Gaussian" ]
878700952ab40075e58c8c08e0ba8cba3b99b7c9434d686b6625c1f2c782774a
""" ================================= Gaussian Mixture Model Sine Curve ================================= This example highlights the advantages of the Dirichlet Process: complexity control and dealing with sparse data. The dataset is formed by 100 points loosely spaced following a noisy sine curve. The fit by the GMM...
depet/scikit-learn
examples/mixture/plot_gmm_sin.py
Python
bsd-3-clause
2,726
[ "Gaussian" ]
f92405f3dddb51a565ac218e5864918d0c02e93f20a549c0b70f38b5bd40cee0
#!/usr/bin/env python """ load mWGS DNA prep into OSDF using info from data file """ import os import re from cutlass.WgsDnaPrep import WgsDnaPrep import settings from cutlass_utils import \ load_data, get_parent_node_id, list_tags, format_query, \ write_csv_headers, values_to_node_dict, write_out_cs...
TheJacksonLaboratory/osdf_submit
nodes/WgsDnaPrep.py
Python
gpl-3.0
11,319
[ "VisIt" ]
7a3a942d3bf497a74450b1fd399c42169a5f29ff277efb565edec05f87a19ee8
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('svtyper/version.py') as f: exec(f.read()) setup( name='svtyper', version=__version__, description='Bayesian genotyper for structural variants', long_description=readm...
hall-lab/svtyper
setup.py
Python
mit
1,437
[ "pysam" ]
10bce88c87dabeb601c79b593f755ca0cf706a2fc3c24404a4414f75b3ea460e
# test_squid.py --- # # Filename: test_squid.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Wed Feb 22 00:41:36 2012 (+0530) # Version: # Last-Updated: Wed Feb 22 00:41:51 2012 (+0530) # By: Subhasis Ray # Update #: 2 # URL: # Keywords: # Compatibility: # # # Commentary: # ...
BhallaLab/moose-examples
squid/test_squid.py
Python
gpl-2.0
4,139
[ "MOOSE" ]
a311567970b423a34de2a0e585661d2218268ac0fc2c7c16b99e6f9ca1d83dff
""" ======= Plotter ======= .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> """ import matplotlib import matplotlib.pyplot import matplotlib.figure import itertools from ..config import * import numpy as np from pyspeckit.specwarnings import warn import copy import widgets import inspect interactive_help_...
keflavich/pyspeckit-obsolete
pyspeckit/spectrum/plotters.py
Python
mit
24,306
[ "Gaussian" ]
e1cad08d3f21df0f8e7dff12a0f84d1d084650ad0ab4e88e4a63d5e834c85b80
#pylint: disable=too-many-public-methods,invalid-name from __future__ import (absolute_import, division, print_function) import unittest from mantid import logger from mantid.api import ITableWorkspace from mantid.simpleapi import (SimulatedDensityOfStates, CompareWorkspaces, Scale, Creat...
wdzhou/mantid
Framework/PythonInterface/test/python/plugins/algorithms/WorkflowAlgorithms/SimulatedDensityOfStatesTest.py
Python
gpl-3.0
12,978
[ "CASTEP", "Gaussian" ]
cd3c6830e6ca4d8723a690e8c94433c42d912d2eb8e5a89e0abe1e2a9e754240
# -*- coding: utf-8 -*- # # clopath_synapse_small_network.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 ...
SepehrMN/nest-simulator
pynest/examples/clopath_synapse_small_network.py
Python
gpl-2.0
7,512
[ "Gaussian", "NEURON" ]
04188fde3e9aff09f8a40c75673895155c66a8f87ba2a7eff00571850ebc809b
# -*- coding: utf-8 -*- """ Write initial ATP Profile for an ECs Mesh in legacy VTK format as .vtk. """ import os import sys # Run in current directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) # Relative import path for the DumpATPMeshToLegacyFormat script. importPath = os.path.abspath(os.path.join(os.p...
BlueFern/DBiharMesher
meshes/c4080Murrified/50/Write4080ATPMeshHdf5.py
Python
gpl-2.0
1,014
[ "VTK" ]
1d76d360765b67b4f04b2a16d5c915ae43fba8d38912c35af8e6eb9329544cca
# # @file TestL3ModelHistory.py # @brief test for ModelHistory on any SBase object # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # $Id$ # $HeadURL$ # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated a...
alexholehouse/SBMLIntegrator
libsbml-5.0.0/src/bindings/python/test/annotation/TestL3ModelHistory.py
Python
gpl-3.0
22,879
[ "VisIt" ]
f09336ce9fa45715328e69874576e4c30032a0f7c826f81c524a894ba6243b24
__RCSID__ = "$Id$" from DIRAC import gLogger, S_OK from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.DISET.RPCClient import RPCClient AGENT_NAME = 'StorageManagement/RequestFinalizationAgent' class RequestFinalizationAgent( AgentModule ...
Sbalbp/DIRAC
StorageManagementSystem/Agent/RequestFinalizationAgent.py
Python
gpl-3.0
7,154
[ "DIRAC" ]
4788aff4ceac47af8dbb3fd1c3fb74abaf9da465caac2beb84402463cae18c66
#!/usr/bin/env python ## \file project.py # \brief package for optimization projects # \author T. Lukaczyk, F. Palacios # \version 6.1.0 "Falcon" # # The current SU2 release has been coordinated by the # SU2 International Developers Society <www.su2devsociety.org> # with selected contributions from the open-source...
drewkett/SU2
SU2_PY/SU2/opt/project.py
Python
lgpl-2.1
18,308
[ "ParaView" ]
2c4f6a3ad1bb3357a3fb70f8299a6e6afa6e3319aff6d31e2f93f20f2ac1e1c9
from sfepy.base.base import * from sfepy.applications import SimpleApp, Application from sfepy.fem.region import sort_by_dependency from coefs_base import MiniAppBase def insert_sub_reqs( reqs, levels, req_info ): """Recursively build all requirements in correct order.""" all_reqs = [] ## print '>', levels...
olivierverdier/sfepy
sfepy/homogenization/engine.py
Python
bsd-3-clause
6,244
[ "VTK" ]
fe5a9c97f91ea1e02ac480315d63c58e9b0a7d6f5286dd94f01dcbe3bd86aaa9
#!/usr/bin/env python3 import configparser import backend import json from flask import Flask from flask_restful import Resource, Api, reqparse config = configparser.ConfigParser() config.read('config.ini') print(config.sections()) recommender = backend.Recommender(config) #first_places = recommender.get_places("Wh...
giocatori86/AdamGoodPlanner
bluemix/__main__.py
Python
mit
2,419
[ "VisIt" ]
68235ce308b067a79a2aa6d6a5dc518f3dc74a3bbd7dec514a34fc5556bffb58
"""@camvtk docstring This module provides classes for visualizing CAD/CAM algorithms using VTK. This module is part of OpenCAMLib (ocl), a toolpath-generation library. Copyright 2010-2011 Anders Wallin (anders.e.e.wallin "at" gmail.com) Published under the GNU General Public License, see http://www.gnu.org/licenses/ "...
play113/swer
opencamlib-read-only/lib/camvtk.py
Python
mit
27,822
[ "VTK" ]
567e9690099b53f0844a6b76b8045ff94bc816eb29132636124592ba8a0aa33d
from DIRAC import S_OK, S_ERROR from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getAllGroups, getGroupOption from DIRAC.DataManagementSystem.DB.FileCatalogComponents.SecurityManager import SecurityManagerBase, _readMethods, _writeMethods from DIRAC.Core.Utilities.ReturnValues import returnSingleResult im...
fstagni/DIRAC
DataManagementSystem/DB/FileCatalogComponents/SecurityPolicies/VOMSPolicy.py
Python
gpl-3.0
23,475
[ "DIRAC" ]
93445a194023ff264ad8df5f807b8ccb2fa3f5845ec153026cb084ef91362635
#!/usr/bin/env python #-*- coding:utf-8 -*- # vim:ai:sta:et:ts=4:sw=4:sts=4 """kernelng 0.x Tool for maintaining customized overlays of kernel-ng.eclass-based ebuilds Copyright 2005-2014 Gentoo Foundation Copyright (C) 2005 Colin Kingsley <tercel@gentoo.org> Copyright (C) 2008 Zac Medico <zmedico@ge...
gmt/kernel-ng-util
kernelng/kngclicktextwrapper.py
Python
gpl-2.0
2,149
[ "Brian" ]
d469290498aab12622740fd3df6947bdab06d90a582c8d71c6b209527246311e
# # Copyright (C) 2017-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...
pkreissl/espresso
testsuite/python/rdf.py
Python
gpl-3.0
5,306
[ "ESPResSo" ]
cdd116e8d000346eb9692e61a414875b03872d8fa9d1bb450b22e02f1ca033a8
import numpy as np import pytest import vtk from vtky.Points import Points @pytest.fixture def vtk_points(): points = vtk.vtkPoints() points.InsertNextPoint(0., 1., 2.) points.InsertNextPoint(1., 2., 3.) points.InsertNextPoint(2., 3., 4.) return points @pytest.fixture def np_points(): points...
marcelotrevisani/vtky
tests/test_points.py
Python
mit
4,279
[ "VTK" ]
8860138280672b33ff4c7a066fcf1405dbcdfeae946b169de411eb858b2948e6
# $Id$ # # Copyright (C) 2005-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. # from __future__ import print_function ...
soerendip42/rdkit
rdkit/Chem/FeatFinderCLI.py
Python
bsd-3-clause
3,234
[ "RDKit" ]
e4e60e30de66fb48a9ac703a56cf560a28ee87de1ebb918040d6572bc4370348
# # Copyright 2013 Quantopian, 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/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
mattcaldwell/zipline
tests/test_perf_tracking.py
Python
apache-2.0
53,403
[ "COLUMBUS" ]
be0d48bc3007fb88e4afa21cb19472cf65eb8d20726765b101fd899034bf6215
''' -- imports from python libraries -- ''' # import os -- Keep such imports here import json ''' -- imports from installed packages -- ''' from django.http import HttpResponseRedirect from django.http import HttpResponse from django.http import Http404 from django.core.urlresolvers import reverse from django.shortcut...
olympian94/gstudio
gnowsys-ndf/gnowsys_ndf/ndf/views/moderation.py
Python
agpl-3.0
21,060
[ "VisIt" ]
b35f0ea8d8cf607c22325e104292eba0868191529c59f5c6d0b987ee7ba6e2d5
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import warnings from pymatgen.alchemy.filters import ContainsSpecieFilter from pymatgen.alchemy.transmuters import CifTransmuter, PoscarTransmuter from pymatgen.transformations.advanced_transformations import Super...
materialsproject/pymatgen
pymatgen/alchemy/tests/test_transmuters.py
Python
mit
3,757
[ "pymatgen" ]
8532cc6acc62449306960faa3c1db2f9f0592ed6a23f6c1e62996b5f1fe5be97
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
Karaage-Cluster/karaage
karaage/plugins/kgapplications/tests/fixtures.py
Python
gpl-3.0
1,768
[ "Brian" ]
5a2c8457a845fcfdd9caab1c1120d5695f9b43e73c39df2c5ae4670fd411f3cf
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2016-2021 Satpy developers # # This file is part of satpy. # # satpy 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 Licens...
pytroll/satpy
satpy/readers/nucaps.py
Python
gpl-3.0
17,184
[ "NetCDF" ]
f92d091e24f817cf171ee3ae81f633fb8ee0e27e3d2a7a1a05173b6711ed4272
#!/usr/bin/env python # Copyright (C) 2011 Mattias Slabanja <slabanja@chalmers.se> # # 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 l...
ThomasCOConnor/dynsf
dsf/molfile_plugin.py
Python
gpl-2.0
15,728
[ "Amber", "CHARMM", "CPMD", "Gromacs", "LAMMPS", "NAMD", "NetCDF", "Quantum ESPRESSO", "VASP", "VMD" ]
c5050d26e1c2e216528cfa12b271d5c6f8232ef291a2d44a78c5072bc23428fe
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
minhphung171093/OpenERP_V8
openerp/addons/project/project.py
Python
agpl-3.0
70,106
[ "VisIt" ]
a070fd50da0a124d71f62c4e26001ddd79d2220d976b3bad09d3f593317d7993
#!/usr/bin/env python3 # ***** BEGIN GPL LICENSE BLOCK ***** # # 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...
Microvellum/Fluid-Designer
win64-vc/2.78/Python/bin/2.78/scripts/addons/io_blend_utils/blend/blendfile_path_walker.py
Python
gpl-3.0
33,960
[ "VisIt" ]
eb7d1d7f97b5bb5aa43954c91735eb156c2f9a1922758f0d648df0b8082c7c31
# -*- coding: utf-8 -*- """ Partition Management This module provides classes and methods for managing partitions. (c) 2015, 2016 - Jaguar Land Rover. Mozilla Public License 2.0 """ import gtk import dbus import dbus.service from dbus.mainloop.glib import DBusGMainLoop import sys import time import swm import settin...
rstreif/genivi_software_management
partition_manager/partition_manager.py
Python
mpl-2.0
19,225
[ "Jaguar" ]
e6a49c4ff2e65c71ebaabd3565e27f943f52dacbbe98d56ff04a4a5e7d6da722