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
""" sphinx.writers.html5 ~~~~~~~~~~~~~~~~~~~~ Experimental docutils writers for HTML5 handling Sphinx' custom nodes. :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import posixpath import sys import warnings from typing impor...
lmregus/Portfolio
python/design_patterns/env/lib/python3.7/site-packages/sphinx/writers/html5.py
Python
mit
33,898
[ "VisIt" ]
95b73a15df133258b29a93573d839847ab0699b6bbc9d8894e1bb5f36a1e355b
""" Statistical Functions ===================== This module contains a large number of probability distributions as well as a growing library of statistical functions. Each included distribution is an instance of the class rv_continous. For each given name the following methods are available. See docstring for rv_co...
jasonmccampbell/scipy-refactor
scipy/stats/info.py
Python
bsd-3-clause
8,282
[ "Gaussian" ]
80f95dba314b0b45a9a3799051594d18e39419b18bf6cd37700d66701bf723ec
import argparse import os import shutil import time from subprocess import Popen def _kill_servers(): Popen('kill -9 `lsof -ti :8000` > /dev/null', shell=True, stderr=None) Popen('kill -9 `lsof -ti :4000` > /dev/null', shell=True, stderr=None) def start_servers(test=False): """ Start the backend ...
northwest-knowledge-network/mdedit
startup.py
Python
bsd-3-clause
3,180
[ "VisIt" ]
c34fa94e4efaffe6def0770b8960082de8418634680f051ad1cf382cb97052ce
""" Package for interacting on the network at a high level. Copyright (c) 2014 Brian Muller Copyright (c) 2015 OpenBazaar """ import pickle import httplib from binascii import hexlify from twisted.internet.task import LoopingCall from twisted.internet import defer, reactor, task import nacl.signing import nacl.hash ...
JimmyMow/OpenBazaar-Server
dht/network.py
Python
mit
14,642
[ "Brian" ]
86e42f2545403599adb354db84fe0efbfc2e62532be16b7aac7077cd9dfbcfff
# -*- encoding: utf-8 -*- """ Test suite for h2o.make_metrics(). :copyright: (c) 2016 H2O.ai :license: Apache License Version 2.0 (see LICENSE for details) """ from __future__ import absolute_import, division, print_function, unicode_literals import sys sys.path.insert(1, "../../") import h2o from tests import pyun...
h2oai/h2o-3
h2o-py/tests/testdir_misc/pyunit_make_metrics.py
Python
apache-2.0
11,485
[ "Gaussian" ]
db43dc66443f5ce27cc967c174cb7f9e685092634ccb8cf9d923d25218d50efb
""" DIRAC.TransformationSystem.Client package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function
yujikato/DIRAC
src/DIRAC/TransformationSystem/Client/__init__.py
Python
gpl-3.0
159
[ "DIRAC" ]
9abc21f8f700fb734fcc4a67141f26ccf11131b2b5d741f3962a8d2801acf5ee
# -*- coding: utf-8 -*- # (c) University of Strathclyde 2021 # Author: Leighton Pritchard # # Contact: leighton.pritchard@strath.ac.uk # # Leighton Pritchard, # Strathclyde Institute for Pharmacy and Biomedical Sciences, # Cathedral Street, # Glasgow, # G4 0RE # Scotland, # UK # # The MIT License # # Copyright (c) 2021...
widdowquinn/pyani
pyani/aniblastall.py
Python
mit
3,921
[ "BLAST" ]
fbcb52fa6cfb2d1f869ce4a02e240d5b434c7f8fb5e8f7d49c5f557dac564781
# Copyright 2004-2017 Tom Rothamel <pytom@bishoujo.us> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, m...
kfcpaladin/sze-the-game
renpy/display/particle.py
Python
mit
18,092
[ "VisIt" ]
1a4cb57cc09f8cbb0b27abb8a7bd404041c487d473afe9bf326e46e6309c4bf7
#!/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@gentoo.org> Cop...
gmt/kernel-ng-util
kernelng/output.py
Python
gpl-2.0
12,218
[ "Brian" ]
d9124de95b5467f153b0db1b26fed43f0ce195dd1c7bfcfb77d8eff319b1b1b9
#Copyright Durham University and Andrew Reeves #2014 # This file is part of soapy. # soapy 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 optio...
AOtools/soapy
soapy/confParse.py
Python
gpl-3.0
51,774
[ "Gaussian" ]
2b6bd27c182ee07b2d144a6b69db40e1134db648af318dcbf41535dba64bceb6
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
jaxnerf/nerf/model_utils.py
Python
apache-2.0
12,316
[ "Gaussian" ]
8b3795a7280b2661b64f5cdf935d4369aa92f690dddf80305ac2d1d3d8dca0c7
#!/usr/bin/env python # Copyright 2014-2021 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/mp/test/test_dfmp2_native.py
Python
apache-2.0
12,762
[ "PySCF" ]
8f35cf427734c8728e8a5992e557b024d0ccdb918dae1c9f23372be122f60758
# 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): # Deleting model 'IonChannelSyn' db.delete_table('neuroelectro_ionchannelsyn') # Del...
lessc0de/neuroelectro_org
neuroelectro/south_migrations/0009_auto__del_ionchannelsyn__del_ionchannel.py
Python
gpl-2.0
10,450
[ "NEURON" ]
6fa4d1bfed7fbed1ff0f89168b01fb89245a2dcc6f92505a5c4db36861dc8170
import json import logging import os import signal import sys import urllib2 from multiprocessing.process import Process from urllib2 import HTTPError from wsgiref.simple_server import make_server sys.path.insert(0, os.path.abspath(os.path.realpath(__file__) + '/../../../')) from oauth2.compatibility import parse_qs...
candango/python-oauth2
docs/examples/resource_owner_grant.py
Python
mit
6,999
[ "VisIt" ]
8d36f6779bd46d3314ec17673e7fd8e589be80537b8acb1d587649cd7b03f711
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
KaiSzuttor/espresso
testsuite/python/pair_criteria.py
Python
gpl-3.0
4,508
[ "ESPResSo" ]
578917d5372f523d996ba9a52a6a86a3ff3507fc6c9d8c188a70025a2e57de56
""" Author: Ning Guo <ceguo@connect.ust.hk> run `mv triaxialRough.yade.gz 0.yade.gz` to generate initial RVE packing How to run this script: sudo apt install python-escript cd examples/FEMxDEM export PYTHONPATH="/usr/lib/python-escript:../../py/FEMxDEM" export LD_LIBRARY_PATH=/usr/lib/python-es...
cosurgi/trunk
examples/FEMxDEM/triaxialRough.py
Python
gpl-2.0
3,699
[ "VTK" ]
97091aee6f9aa9698ac089cf27017769aad227be1d97c1dc257227450972fe79
# coding: utf-8 # Distributed under the terms of the MIT License. from .model import AppModel from ababe.stru.element import Specie from ababe.stru.scaffold import GeneralCell from ababe.stru.sogen import OccupyGenerator from ababe.stru.io import VaspPOSCAR, YamlOutput from ababe.stru.restriction import MinDistanceRest...
unkcpz/ababe
ababe/cmdline/apps/occupytenter.py
Python
mit
4,029
[ "VASP" ]
51110b831e2d849207b63e1f4f7df3c88e6e5faf7b6689580e239dcdcd6b501f
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/scripts/tools/tool_wikidoc/WikiDoc.py
Python
gpl-3.0
16,209
[ "ORCA" ]
a3805c1cb9c54a80d6516bec9727db71cc1f9651304de617163ceaee4ab0f9ff
""" DIRAC.RequestManagementSystem.DB package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function
yujikato/DIRAC
src/DIRAC/RequestManagementSystem/DB/__init__.py
Python
gpl-3.0
161
[ "DIRAC" ]
349b46457e7381bacc9bf88fda04d0fe7505d6e100b28ad304fb02214175f6d1
import pynacolada as pcd import numpy as np import datetime as dt import sciproc as sp from time import sleep from Scientific.IO import NetCDF # purpose: A short tutorial of using pynacolada.pcd(). The example should work with COSMO-CLM data output. # author: Hendrik Wouters <hendrik.wouters@ees.kuleuven.be> print('e...
hendrikwout/pynacolada
old/examples/examplepcd.py
Python
gpl-3.0
5,639
[ "NetCDF" ]
2083f52faacdf16f064b84ef9ff9bc7f6653d986a653b31b809954c535477519
import sys import os.path from matplotlib import pyplot as plt import numpy as np # Proteus native probe proteus_gauge_file = 'combined_gauge_0_0.5_sample_all.csv' # Paraview probe paraview_gauge_file = 'probe_0.5_0.5_0.csv' global interactive interactive = True def parse_proteus_gauge_fields(header): def parse_...
erdc-cm/air-water-vv
2d/benchmarks/quiescent_water_probe_benchmark/ProbePlot.py
Python
mit
3,321
[ "ParaView" ]
d01b2cd7ebe416d87cbe789074a93086004d69598045bacbbd46ccaea32e4c06
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import galaxy.main.fields import galaxy.main.mixins class Migration(migrations.Migration): dependencies = [ ('main', '0049_auto_20161013_1744'), ] operations = [ migrations.CreateMod...
chouseknecht/galaxy
galaxy/main/migrations/0050_auto_20171024_0354.py
Python
apache-2.0
1,295
[ "Galaxy" ]
89e5a5afcb4042ce725cdfc6bdc7932a9fe835e949cbfe14f575594344e4d7ae
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module contains some math utils that are used in the chemenv package. """ __author__ = "David Waroquiers" __copyright__ = "Copyright 2012, The Materials Project" __credits__ = "Geoffroy Hautier" __ve...
mbkumar/pymatgen
pymatgen/analysis/chemenv/utils/math_utils.py
Python
mit
10,095
[ "pymatgen" ]
c6e5dd6308f074dc3b10dc72c9e6137f7d5a7a7c5e70992323b387dfcc59efb1
#!/usr/bin/env python import sys import argparse import numpy as np from mapTools import * from utilities import filesFromList, writeLog from plotTools import addImagePlot import matplotlib.pyplot as plt ''' Description: Author: Mikko Auvinen mikko.auvinen@helsinki.fi University of Helsinki & ...
saskartt/P4UL
pyRaster/rasterTileSuperposition.py
Python
mit
4,677
[ "Gaussian" ]
23e40c925f63f8dae1a3602182809b83f7253f69b929c94ba1dbc51f8b84e659
from __future__ import division from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import str from builtins import range from datetime import datetime, timedelta, date from pickle import load, dump import numpy as np import os from numpy import nan...
timduly4/pyglow
src/pyglow/generate_kpap.py
Python
mit
14,519
[ "Brian" ]
853369cee2b50e94fce72097347df2fd11d9c9648217ff4a664d23d5e6daaae3
import numpy as np from keras import backend as K def D2(X, Y): """ Calculate the pointwise (squared) distance. Arguments: X: of shape (n_sample, n_feature). Y: of shape (n_center, n_feature). Returns: pointwise distances (n_sample, n_center). """ XX = K.sum(K.square(X), a...
EigenPro/EigenPro-tensorflow
kernels.py
Python
mit
1,722
[ "Gaussian" ]
26d6133ff04d2bf66d2b1a426bed20bf92d64bbea1b5246eb20b812b65b42c47
""" Functional tests for the API. This test suite will work fine against a standard JPER install on the local machine with the default accounts. If you want to run it in a different environment you will need to modify some of the constants used in this test. """ import requests, json, os from octopus.modules.es.test...
JiscPER/jper
service/tests/functional/test_api.py
Python
apache-2.0
20,195
[ "Octopus" ]
37d558f52b5f1523cf1f8576d93d1a2ae9717d8aaf23960886d60fdb26cb30b3
# Copyright (c) 2012, James Hensman # Licensed under the BSD 3-clause license (see LICENSE.txt) from posterior import Posterior from ...util.linalg import jitchol, tdot, dtrtrs, dpotri, pdinv from ...util import diag import numpy as np from . import LatentFunctionInference log_2_pi = np.log(2*np.pi) class FITC(Latent...
TianpeiLuke/GPy
GPy/inference/latent_function_inference/fitc.py
Python
bsd-3-clause
3,029
[ "Gaussian" ]
baf90730cde5f10fc86ab154454c8390886f750f0f0afb0ef3507e9512eca6f2
from django.conf.urls import url from crystal_dashboard.dashboards.crystal.filters.filters import views urlpatterns = [ url(r'^upload_storlet/$', views.UploadStorletView.as_view(), name='upload_storlet'), url(r'^upload_native/$', views.UploadNativeView.as_view(), name='upload_native'), url(r'^download/(?P<...
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/filters/filters/urls.py
Python
gpl-3.0
601
[ "CRYSTAL" ]
1009e9908cf025b1871610ae93ff84839423a16b21e80259413ff898fa72e041
"""Fallaxy (ansible-galaxy) plugin for integration tests.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os import uuid from . import ( CloudProvider, CloudEnvironment, CloudEnvironmentConfig, ) from ..util import ( find_executable, display, ) f...
roadmapper/ansible
test/lib/ansible_test/_internal/cloud/fallaxy.py
Python
gpl-3.0
5,719
[ "Galaxy" ]
5db929e1c9c46c226371738f07bfebc77bd36e03e67c50f212f4a33d6f033368
from __future__ import absolute_import input_name = '../examples/navier_stokes/stokes_slip_bc_penalty.py' output_name = 'test_stokes_slip_bc_penalty.vtk' from tests_basic import TestInput class Test(TestInput): pass
lokik/sfepy
tests/test_input_stokes_slip_bc_penalty.py
Python
bsd-3-clause
221
[ "VTK" ]
009099089e861f35f8910881d3e798d925fc7c5f28fa9f55f7cad8f952a0d90b
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University # Berlin, 14195 Berlin, Germany. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source ...
trendelkampschroer/PyEMMA
pyemma/coordinates/data/featurizer.py
Python
bsd-2-clause
52,290
[ "MDTraj" ]
002dcccaf8d175e0615b9cfdc8eb1cd1ca3722ebb322aa9a9274f08945f846fe
"""Diffusion maps module. This module implements the diffusion maps method for dimensionality reduction, as introduced in: Coifman, R. R., & Lafon, S. (2006). Diffusion maps. Applied and Computational Harmonic Analysis, 21(1), 5–30. DOI:10.1016/j.acha.2006.04.006 """ __all__ = ['BaseDiffusionMaps', 'SparseDiffusion...
jmbr/diffusion-maps
diffusion_maps/diffusion_maps.py
Python
mit
16,572
[ "Gaussian" ]
50e10f2e4ff1fd6c50bde8aab13fb3fcf55f9d9aa8ea3d3dba64e67b2d60d88f
# Portions Copyright (c) Facebook, Inc. and its affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. # posix.py - Posix utility function implementations for Mercurial # # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others # # This s...
facebookexperimental/eden
eden/hg-server/edenscm/mercurial/posix.py
Python
gpl-2.0
36,496
[ "FEFF" ]
20cda9002004a60e481d1f5228eff005cb17dbb5d08cd1d37399cf557237efe0
# Copyright 2016, The James Hutton Insitute # Author: Leighton Pritchard # # This code is part of the pyani package, and is governed by its licence. # Please see the LICENSE file that should have been included as part of # this package. """Code to support pyani.""" import pandas as pd from . import pyani_config # C...
peterjc/pyani
pyani/pyani_tools.py
Python
mit
5,655
[ "BLAST" ]
9aac439f1559c1d42352f4f02bfbf15adce08ac967a30d1f15c844c52b50e18d
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundati...
tiagocardosos/stoq
stoqlib/gui/test/test_fiscalsearch.py
Python
gpl-2.0
2,879
[ "VisIt" ]
aae9bafb290ec78de65eb4549b46c45b2c7b09cb9bc209222ad59798b231f77b
#! /usr/bin/env python """ Library of functions required for raster warping in memory or on disk The guts of warptool.py """ """ todo: Much better type checking Implement multiprocessing! Proper vdatum tags in geotiff header filename preservation Instead of doing the 'first' stuff, check actual values before writing...
dshean/pygeotools
pygeotools/lib/warplib.py
Python
mit
20,962
[ "Gaussian" ]
bf3493a4fb63815ad326ed58135305903d9c1dc841e60d95fc5f62978eab84f0
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft = python sts = 4 ts = 4 sw = 4 et: """ANTS Apply Transforms interface Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> datadir = os....
mick-d/nipype_source
nipype/interfaces/ants/resampling.py
Python
bsd-3-clause
16,425
[ "Gaussian" ]
50922e8751f173b9ebbd9561bbd8dcd417fb6995861e613b911fd61de730eda1
# Author: Travis Oliphant 2001 # Author: Nathan Woods 2013 (nquad &c) import sys import warnings from functools import partial from . import _quadpack import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class ...
pizzathief/scipy
scipy/integrate/quadpack.py
Python
bsd-3-clause
37,361
[ "Gaussian" ]
d83ac67dc054707a95c407dfce860878cfda9ad57ec993fbf39d3a16dd6a6632
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os import logging log = logging.getLogger(__name__) repository_name = 'filtering_1470' repository_description = "Galaxy's filtering tool" repository_long_description = "Long description of Galaxy's filtering tool" category_name = 'Test 1470 - Updati...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/test/tool_shed/functional/test_1470_updating_installed_repositories.py
Python
gpl-3.0
7,770
[ "Galaxy" ]
f46c7535cbab78a235f60af9f27fb5d9bdaff92bdba72dc3d1522081f730f37f
"""A VTK XML file reader object. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import basename # Enthought library imports. from traits.api import Instance, List, Str, Bool from traitsui.api import View, G...
dmsurti/mayavi
mayavi/sources/vtk_xml_file_reader.py
Python
bsd-3-clause
14,036
[ "Mayavi", "VTK" ]
08e113c0d79ee00b54a22e31d3b07bb8a026fa3173c1bd9126ea746c34fd2c78
""" =========================== Formaldehyde mm-line fitter =========================== This is a formaldehyde 3_03-2_02 / 3_22-221 and 3_03-2_02/3_21-2_20 fitter. It is based entirely on RADEX models. This is the EWR fork of the fitter in pyspeckit. """ import numpy as np import pyspeckit.spectrum.models.hyperfi...
low-sky/h2codumb
h2co_mm.py
Python
gpl-2.0
6,796
[ "Gaussian" ]
586e6105334ffcfc2d5b7225f8b0a5ab6ac7e38ec4c018b951caa81da7fb5cd0
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module provides classes for analyzing phase diagrams. """ from six.moves import zip __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, T...
migueldiascosta/pymatgen
pymatgen/phasediagram/pdanalyzer.py
Python
mit
19,379
[ "pymatgen" ]
19fb20705b3434d653b613c892daff3e9a5dc3a62b9fb6f28027ad73564a9982
# -*- coding: utf-8 -*- u"""SRW execution template. :copyright: Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkinspect from pykern import pkio from pykern.pkcolle...
mrakitin/sirepo
sirepo/template/srw.py
Python
apache-2.0
65,049
[ "CRYSTAL" ]
f74b9d1b1d1624a232c03102b9d6b9fa7b3f64b900af74bc6f837110a66606c2
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/core/ui/printservicedialog.py
Python
gpl-2.0
8,789
[ "Brian" ]
a8f086cb168f0a820da47c10d3d0acdd5bc805ea856d3f05ec0ebd1293bf54b9
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2011 by Pawel T. Jochym <pawel.jochym@ifj.edu.pl> # # This file is part of Elastic. # Elastic 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...
jochym/Elastic
parcalc/parcalc.py
Python
gpl-3.0
24,638
[ "ASE", "CRYSTAL", "SIESTA", "VASP" ]
0c161f10339f8dfc20d24332dc022af5ea8fa6d6afcbd6ce4504545f382be44b
""" POOL XML Catalog Class This class handles simple XML-based File Catalog following the POOL project schema. It presents a DIRAC generic File Catalog interface although not complete and with several extensions """ from __future__ import print_function __RCSID__ = "$Id$" import os, xml.dom.minidom, types ...
fstagni/DIRAC
Resources/Catalog/PoolXMLCatalog.py
Python
gpl-3.0
11,135
[ "DIRAC" ]
bbec1c258d9a4d8b55325c00447458b1ba24b7f9c406afe9cbc646a0ed2ddd92
# Copyright 2015 CERN. This software is distributed under the # terms of the GNU General Public Licence version 3 (GPL Version 3), # copied verbatim in the file LICENCE.md. # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernment...
kiliakis/BLonD
__TEST_CASES/main_files/TC3_RFnoise.py
Python
gpl-3.0
5,956
[ "Gaussian" ]
50bcf280829423f9e344e0dc0be5ef2d736e0cd0b0cf0d5dafda85198f47e28f
# Copyright 2009 by Peter Cock. 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. # # This module is for reading and writing FASTQ and QUAL format files as # SeqRecord objects, and...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/SeqIO/QualityIO.py
Python
mit
74,587
[ "Biopython" ]
8aa8d8d5c572cc5c847bc0d0bdfb82d97f7694861ff3c5f366207a46a6077b45
# -*- coding: utf-8 -*- import os import re import uuid import urllib import logging import datetime import urlparse from collections import OrderedDict import warnings import pytz from flask import request from django.core.urlresolvers import reverse from HTMLParser import HTMLParser from modularodm import Q from mo...
fabianvf/osf.io
website/project/model.py
Python
apache-2.0
106,953
[ "VisIt" ]
1471be284268b0d5293bc89bd7da69214559e096477a5e2abefecba6a73c6bf1
try: from galaxy.jobs.runners.util.cli import ( CliInterface, split_params ) code_dir = 'lib' except ImportError: from pulsar.managers.util.cli import ( CliInterface, split_params ) code_dir = '.' def get_shell(params): cli_interface = CliInterface(code_dir=...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/jobs/runners/util/cli/factory.py
Python
gpl-3.0
429
[ "Galaxy" ]
49ec720ea61660a3321f8276e050ce9e7233efb2c10d57bb341780ff1df71918
#!/usr/bin/env python ''' Anh Nguyen <anh.ng8@gmail.com> 2016 ''' import os, sys os.environ['GLOG_minloglevel'] = '2' # suprress Caffe verbose prints import settings sys.path.insert(0, settings.caffe_root) import caffe import numpy as np from numpy.linalg import norm import scipy.misc, scipy.io import argparse i...
Evolving-AI-Lab/ppgn
sampling_caption.py
Python
mit
9,371
[ "NEURON" ]
774827173cb3b0a6560402567c2db08365044c0835d2d7a73a57c99791e1dc83
# Copyright (C) 2010-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 v...
psci2195/espresso-ffans
testsuite/python/minimize_energy.py
Python
gpl-3.0
3,574
[ "ESPResSo" ]
de8aebc555a9558021d3ccc3c1ba91ee94f5e0c34f3d15c38d3161e874881e84
"""Module to interact with pyrvapi""" __author__ = "Adam Simpkin & Felix Simkovic" __date__ = "06 Oct 2017" __version__ = "0.2" import logging import os import pandas import pyrvapi import subprocess import sys import uuid from simbad.util import RvapiMetadata from simbad.util import reference_manager from simbad.ut...
rigdenlab/SIMBAD
simbad/util/pyrvapi_results.py
Python
bsd-3-clause
42,330
[ "CRYSTAL" ]
f3f5762cdc39d7444061d6c01cde80a58c431f5af5ccb9a502d6db2c93712437
#!/usr/bin/env python ######################################################################## # File : dirac_setup_site.py # Author : Ricardo Graciani ######################################################################## """ Initial installation and configuration of a new DIRAC server (DBs, Services, Agents, We...
ic-hep/DIRAC
src/DIRAC/Core/scripts/dirac_setup_site.py
Python
gpl-3.0
1,953
[ "DIRAC" ]
3937543647a963c4734801b266905ab3f826a40d198d154242d11a3108d96cb9
#pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment ...
liuwenf/moose
python/MooseDocs/extensions/refs.py
Python
lgpl-2.1
5,964
[ "MOOSE" ]
d39701886dc243b46c5cdf4be9f9beb2f73823d7bcb9d3bb077e862824b2d8ea
# 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...
brianmay/karaage
karaage/plugins/kgapplications/__init__.py
Python
gpl-3.0
1,625
[ "Brian" ]
e3284a0ba44d40fcbe84d1cd5327d66605319bb888bf9ce2e4b5327b40ba7b19
# -*- coding: utf-8 -*- """Algorithms for spectral clustering""" # Author: Gael Varoquaux gael.varoquaux@normalesup.org # Brian Cheung # Wei LI <kuantkid@gmail.com> # License: BSD 3 clause import warnings import numpy as np from ..base import BaseEstimator, ClusterMixin from ..utils import check_rand...
vortex-ape/scikit-learn
sklearn/cluster/spectral.py
Python
bsd-3-clause
19,852
[ "Brian", "Gaussian" ]
6423b06872dbb0166fa6508119d82a27ca2f22988bc920d7058e37952bac2d64
# # Post-processing script QE --> EPW # 14/07/2015 - Samuel Ponce # from builtins import input import numpy as np import os # Enter the number of irr. q-points prefix = input('Enter the prefix used for PH calculations (e.g. diam)\n') # Enter the number of irr. q-points nqpt = input('Enter the number of irreducible q...
QEF/q-e_schrodinger
test-suite/epw_mob/pp.py
Python
gpl-2.0
974
[ "EPW" ]
365e2ef85960c069af6851728b6065ca05cc6bc6531e2976975a4161b605d01c
# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE). # Copyright (c) 2009-2010 Arista Networks, Inc. # http://www.logilab.fr/ -- mailto:contact@logilab.fr # 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 # ...
hpfem/agros2d
resources/python/pylint/checkers/base.py
Python
gpl-2.0
37,591
[ "VisIt" ]
1fc652dbad99a481c9f38ef78e423d9aa7c985dc61701986d64b198a02d5a6a0
""" PilotAgentsDB class is a front-end to the Pilot Agent Database. This database keeps track of all the submitted grid pilot jobs. It also registers the mapping of the DIRAC jobs to the pilot agents. Available methods are: addPilotTQReference() setPilotStatus() deletePilot() clearPilo...
Sbalbp/DIRAC
WorkloadManagementSystem/DB/PilotAgentsDB.py
Python
gpl-3.0
44,671
[ "DIRAC" ]
95a2709032a69e99abb74a6d8fc84f6b2525d22be12cd5a50d0e3f108110cd82
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. """ """ import mutex ######################################################################### class SchedulerException(Exception): pass class CyclesDetectedException(SchedulerException): pass ################...
fvpolpeta/devide
scheduler.py
Python
bsd-3-clause
28,360
[ "VisIt" ]
9d2a1e564461a18bab2507711e2dfffab01933b4a580f6d468c39bd584241f43
#=============================================================================== # # LIL.py # # This file is part of ANNarchy. # # Copyright (C) 2016-2020 Julien Vitay <julien.vitay@gmail.com>, # Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> # # This program is free software: you can redistrib...
vitay/ANNarchy
ANNarchy/generator/Projection/SingleThread/LIL.py
Python
gpl-2.0
35,737
[ "NEURON" ]
5bf395ed25513724776c4d5ef52c1cc1634218e2d383cb41d11d6dffbddb41fb
############################################################################### # Re-implementation of the ProcessPoolExecutor more robust to faults # # author: Thomas Moreau and Olivier Grisel # # adapted from concurrent/futures/process_pool_executor.py (17/02/2017) # * Backport for python2.7/3.3, # * Add an extra m...
joblib/joblib
joblib/externals/loky/process_executor.py
Python
bsd-3-clause
48,538
[ "Brian" ]
deb0c4cb72035ee6a9b8cb6648769bb604f5ef99bbbea6df356183f33c580f73
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/share/psi4/databases/HTR40.py
Python
lgpl-3.0
41,501
[ "Psi4" ]
86dc73a35d13a8d8ab3a44fc8e7d48accee578f56d6eac7cc3b6eb0141fdfa26
#! compare MemJK and DiskJK import psi4 import pytest import numpy as np import random from .utils import * @pytest.fixture(scope="module", params=["spherical", "cartesian"]) def build_system(request): mol = psi4.geometry(""" O H 1 1.00 H 1 1.00 2 103.1 """) memory = 50000 puream = requ...
ashutoshvt/psi4
tests/pytests/test_dfjk.py
Python
lgpl-3.0
1,922
[ "Psi4" ]
f1f52a483f1e6ec82bb36fa96f170bf1555426ad2b9dd9c7d90176cac3f25d06
from gpaw.atom.generator2 import _generate def derivatives(atoms): """Calculate derivatives of the energy with respect to PAW-setup parameters.""" e00 = atoms.get_potential_energy() allsetups = atoms.calc.wfs.setups.setups parameters = {} for setup in allsetups.values(): d = setup.d...
robwarm/gpaw-symm
gpaw/atom/derivatives.py
Python
gpl-3.0
2,441
[ "GPAW" ]
cc1d3a4cdde414781581c62316348653a346eb145d81f84806a7648f63e0d30e
''' This file is used to report the amount of time elapsed, and how much remains. Used like this:: progress = ProgressReporter() progress.start() for ...: ... do some work ... progress.update(percentcomplete) progress.finish() It will give a progress report every 60 second...
DavidTingley/ephys-processing-pipeline
installation/klustaviewa-0.3.0/spikedetekt2/core/progressbar.py
Python
gpl-3.0
2,771
[ "Brian" ]
e7a2439181659806e3ca882a3fe3e685f5f2e00273550c79714716d1497169fa
import json import os import os.path as op import time from ..splunktacollectorlib.common import log as stulog from ..splunktalib import kv_client as kvc from ..splunktalib.common import util def get_state_store(meta_configs, appname, collection_name="talib_states", ...
georgestarcher/TA-SyncKVStore
bin/ta_synckvstore/cloudconnectlib/splunktalib/state_store.py
Python
mit
8,446
[ "VisIt" ]
8f33aa0b68f99c21962b0c27ce73bfffd1627bf71cef7f3cb7162f057a521078
#!/usr/bin/python # # Copyright 2008 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
kdlucas/pyrering
lib/scanscripts.py
Python
apache-2.0
14,556
[ "VisIt" ]
29aa83c456347710452c005b1d31204f4a4db182613bfedf1f296465e6ec3185
""" @name: PyHouse/src/Certificates/_test/test_newcert.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: (c) 2015-2017 by D. Brian Kimmel @date: Created on Feb 24, 2015 @licencse: MIT License @summary: """ __updated__ = '2017-01-20' import unittest class Test(unittest...
DBrianKimmel/PyHouse
Project/src/Certificates/test/test_newcert.py
Python
mit
556
[ "Brian" ]
cd1ee7909c91a52a6ce7b1d41e31cf3c0ba9510c1eccd0c6a82a872a3d3e36c4
import vtkAll as vtk from vtkNumpy import addNumpyToVtk from shallowCopy import shallowCopy import numpy as np class DebugData(object): def __init__(self): self.append = vtk.vtkAppendPolyData() def write(self, filename): writer = vtk.vtkXMLPolyDataWriter() writer.SetInputConnection(s...
manuelli/director
src/python/director/debugVis.py
Python
bsd-3-clause
7,562
[ "VTK" ]
c2c9935860b3dd9715e70417e5962bfb689c9d8e4bad7634279d7f74985ca60b
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com) # 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. import sys # Add path to Bio sys.path.append('../..') """Utilities for handling, displa...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Phylo/_utils.py
Python
gpl-2.0
20,969
[ "Biopython" ]
c9347a976e9b5bee16bc2aedbcb7f39d0857cab0f268ed5cb2f6166e40b4ba1e
""" galaxy.py Copyright 2016 Brian Romanchuk 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 writ...
brianr747/Simple4Xpygame
server/galaxy.py
Python
apache-2.0
7,504
[ "Brian", "Galaxy" ]
cb2a77080dfeb0dd9fce6d069f5cfd089bb51cb3c265e16b62918fd06953751c
############################### # This file is part of PyLaDa. # # Copyright (C) 2013 National Renewable Energy Lab # # PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to # submit large numbers of jobs on supercomputers. It provides a python interface to physical input, # ...
pylada/pylada-light
tests/decorations/test_defects.py
Python
gpl-3.0
3,535
[ "CRYSTAL", "VASP" ]
68fa94cd141b9b2e2750c3909c76137db0f4de808eb06b449ca87631d4c776fc
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import * import logging import emission.core.wrapper.transition as ecwt import emissio...
shankari/e-mission-server
emission/analysis/intake/segmentation/restart_checking.py
Python
bsd-3-clause
5,341
[ "VisIt" ]
28c48f6916a9c5bf176880dfc1d6ab7283bf9e00d7e4284cafb22d97f9d8a3b9
# -*- coding: utf-8 -*- ''' CuBIC is a statistical method for the detection of higher order of correlations in parallel spike trains based on the analysis of the cumulants of the population count. Given a list sts of SpikeTrains, the analysis comprises the following steps: 1) compute the population histogram (PSTH) wi...
espenhgn/elephant
elephant/cubic.py
Python
bsd-3-clause
6,875
[ "Gaussian" ]
1f95dc2f052871628f755c5f79d59102bd8c438740c7d8ebe619a73aaf095972
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSES/BSD-3-Clause.txt file. """Autosuspend udev rule generator This script ...
ssahani/systemd
tools/chromiumos/gen_autosuspend_rules.py
Python
gpl-2.0
7,279
[ "Octopus" ]
42b046267d78146a73b21f7ff5a68a7a7d08c7380576715580b1567aa354b108
import numpy as np from numpy.polynomial.polynomial import polyfit mode_regex = r"""Y_l(?P<L>[0-9]+)_m(?P<M>[-+0-9]+)\.dat""" def pick_Ch_mass(filename="Horizons.h5"): """Deduce the best Christodoulou mass by finding the statistical "mode" (after binning).""" from h5py import File from os.path import isd...
moble/scri
scri/extrapolation.py
Python
mit
56,338
[ "Psi4" ]
187e2923391e9849d05d63416db75f2b9e85f547af9a4d6069334b58f359da84
# -*- coding: utf-8 -*- import datetime import json import os import stat from django.conf import settings from django.core.files.storage import default_storage as storage from django.core import mail from django.core.management import call_command from django.core.urlresolvers import reverse import mock from nose.to...
Joergen/zamboni
mkt/webapps/tests/test_tasks.py
Python
bsd-3-clause
24,398
[ "exciting" ]
5c8b1bb703b24e500203c4459f7a617e487c79b78af31859c7a6775b805b1644
#!/usr/local/bin/python -i # preceeding line should have path for Python on your machine # viz_pymol.py # Purpose: viz running LAMMPS simulation via PyMol # Syntax: viz_pymol.py in.lammps Nfreq Nsteps # in.lammps = LAMMPS input script # Nfreq = dump and viz shapshot every this many steps # ...
val-github/lammps-dev
python/examples/viz_pymol.py
Python
gpl-2.0
1,876
[ "LAMMPS", "PyMOL" ]
60dd5dfdb4dfdbca516bb5d7308bf9b0ad06230cd94628531c747e53271d6d36
import pytest import altair.vegalite.v4 as alt def geom_obj(geom): class Geom(object): pass geom_obj = Geom() setattr(geom_obj, "__geo_interface__", geom) return geom_obj # correct translation of Polygon geometry to Feature type def test_geo_interface_polygon_feature(): geom = { ...
altair-viz/altair
altair/vegalite/v4/tests/test_geo_interface.py
Python
bsd-3-clause
6,496
[ "BWA" ]
f4ae18aad96374ca3d66a1bf5c4cb21cc98dede2d062243fc2f593241d6696e8
# ***** 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 3 of the License, or # (at your option) any later version. # # This program is distributed ...
Microvellum/Fluid-Designer
win64-vc/2.78/scripts/addons/io_export_dxf/__init__.py
Python
gpl-3.0
1,679
[ "VisIt" ]
80892ff3c8584d6bcc178e1ff4e0d66a6da3f07a677a4a4c7082de0975d17983
#!/usr/bin/env python # Copyright 2011(c) The Ontario Institute for Cancer Research. All rights reserved. # # This program and the accompanying materials are made available under the # terms of the GNU Public License v3.0. # # You should have received a copy of the GNU General Public License along with # this program...
capsid/capsid-pipeline
capsid/subtraction.py
Python
gpl-3.0
18,660
[ "pysam" ]
6c01d41883e5ebd70c9a173bc9b3385e6148e675aade4389ae835c7ec6c66d2c
#!/usr/bin/env python """Digest sequences from a fasta file in sequences of a specified length. Usage: %program <input_file> <fragment_length> <move> <output_file> input_file: a fasta file fragment_length: length of digested fragments move: number of non-overlapping nucleotides between two consecutive fragments"...
wkh124/wkh124
fasta_digest.py
Python
gpl-3.0
1,300
[ "Biopython" ]
90138986ca5f88679b69d8856d4e61d833ee7b4d53c8c372fba9c15fede2edd8
import numpy as np from phonopy.file_IO import write_FORCE_CONSTANTS from phonopy.structure.cells import Supercell from phonopy.harmonic.force_constants import symmetrize_force_constants class FCAnalyzerBase: def __init__(self, force_constants=None, atoms=None, a...
yuzie007/upho
upho/analysis/fc_analyzer_base.py
Python
mit
2,377
[ "phonopy" ]
b5fc3404386f9581d20386b316293f002a1a9cfa72ebe672d38fc8b115530702
#!/usr/bin/env python """ A class to represent and draw gene sets """ __author__ = "Adam Richards" import os,csv,re import numpy as np import networkx as nx import matplotlib as mpl import matplotlib.pyplot as plt from htsint.database import db_connect,Gene,Taxon,GoTerm from htsint.blast import BlastMapper try: ...
ajrichards/htsint
htsint/GeneSet.py
Python
bsd-3-clause
18,200
[ "BLAST" ]
418d9f14beba9a67b834d5e5c465a1d4efc80d4234cea286b2159ae29507717b
# (c) 2013-2016, Michael DeHaan <michael.dehaan@gmail.com> # Stephen Fromm <sfromm@gmail.com> # Brian Coca <briancoca+dev@gmail.com> # Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under t...
wenottingham/ansible
lib/ansible/plugins/action/assemble.py
Python
gpl-3.0
6,491
[ "Brian" ]
f13269d108f69ff0b7769bfb251f9453f8112aee4a1010f6796568535aadfdad
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: Brian Cherinka, José Sánchez-Gallego, and Brett Andrews # @Date: 2016-04-11 # @Filename: rss.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) # # @Last modified by: José Sánchez-Gallego (gallegoj@uw.edu) # @Last modified time: 2018-...
sdss/marvin
python/marvin/api/rss.py
Python
bsd-3-clause
7,790
[ "Brian" ]
358aeb9bca46f1969110fbb9b4941a9267b0ec7036306bcec03faaa44374ddd1
# PyGISS: Misc. Python library # Copyright (c) 2013-2016 by Elizabeth Fischer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any...
citibeth/modele-control
lib/modele/accfile.py
Python
lgpl-2.1
9,575
[ "NetCDF" ]
3c99798dceee529b354cbc31be044af7214aa76d8f0c8e8d0133dd4a75cbc9e5
# Generated from DeclSpecLanguage.g4 by ANTLR 4.7 from antlr4 import * # This class defines a complete generic visitor for a parse tree produced by DeclSpecLanguageParser. class DeclSpecLanguageVisitor(ParseTreeVisitor): # Visit a parse tree produced by DeclSpecLanguageParser#statement. def visitStatement(se...
jacopoMauro/abs_deployer
decl_spec_lang/DeclSpecLanguageVisitor.py
Python
isc
4,374
[ "VisIt" ]
acd47054fa459e3d77c0003ed6ea0baccbfe20f3a1e5c7716a9d072431dd21a0
#!/usr/bin/env python # ppserver.py # # Parallel Python Software: http://www.parallelpython.com # Copyright (c) 2005-2009, Vitalii Vanovschi # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Re...
vesellov/bitdust.devel
parallelp/pp/ppserver.py
Python
agpl-3.0
12,096
[ "VisIt" ]
cbff1a251d57a344a1fcc6f681891ea7896efe0328d42b8a2e1f12438e83806d
from __future__ import (absolute_import, division, print_function) from mantid.api import PythonAlgorithm, AlgorithmFactory, IMDHistoWorkspaceProperty, PropertyMode, WorkspaceProperty, Progress from mantid.kernel import (Direction, EnabledWhenProperty, PropertyCriterion, Property, StringListValidator, FloatArrayBounded...
wdzhou/mantid
Framework/PythonInterface/plugins/algorithms/DeltaPDF3D.py
Python
gpl-3.0
15,205
[ "Gaussian" ]
cae03e00aab70b88b0286465611e99146e74eb2028977c5299bbee3289b1beb2
""" ========================================== Outlier detection with several methods. ========================================== When the amount of contamination is known, this example illustrates three different ways of performing :ref:`outlier_detection`: - based on a robust estimator of covariance, which is assum...
BiaDarkia/scikit-learn
examples/covariance/plot_outlier_detection.py
Python
bsd-3-clause
5,092
[ "Gaussian" ]
9673b1ff5927916f5a7e73f3082d86652bb9653b6b4ab6097a872a76a10cf0fc
# -*- coding: utf-8 -*- """ Unit tests for instructor.api methods. """ import datetime import ddt import functools import random import pytz import io import json import shutil import tempfile from urllib import quote from django.conf import settings from django.contrib.auth.models import User from django.core import ...
waheedahmed/edx-platform
lms/djangoapps/instructor/tests/test_api.py
Python
agpl-3.0
222,641
[ "VisIt" ]
c724057cdcdf1151a894167436f6e16b678b581c2030e614d1d726951f290df9
from __future__ import unicode_literals from frappe import _ app_name = "erpnext" app_title = "ERPNext" app_publisher = "Frappe Technologies Pvt. Ltd." app_description = """ERP made simple""" app_icon = "fa fa-th" app_color = "#e74c3c" app_email = "info@erpnext.com" app_license = "GNU General Public License (v3)" sour...
ESS-LLP/erpnext
erpnext/hooks.py
Python
gpl-3.0
28,711
[ "VisIt" ]
6bd3398f004e4932cf19c7056d5356589da743ea10a11a88d6892dc671d61d50
#!/usr/bin/python # resultsFile is a library which allows to read output files of quantum # chemistry codes and write input files. # Copyright (C) 2007 Anthony SCEMAMA # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
scemama/resultsFile
resultsFile/Modules/wfnFile.py
Python
gpl-2.0
14,222
[ "Gaussian" ]
c2a7911212de7e67b8654e77719ab1585db3d2fe16f988577863c1cb0c4211ba
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import importlib from .. import __version__ def module_info(module_name): """ Print information regarding a module, i.e version and install directory Parameters ---------- module_name: string the name of the module ""...
pierrepo/PBxplore
pbxplore/tests/__init__.py
Python
mit
1,087
[ "MDAnalysis" ]
9fdf27354f5e56f0b84eb486e71f372020ba761a2b4ce86c27776a72738845af
"""Simple test to check the VTK XML reader -- this is basically a copy of test_contour.py with just the reader changed. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005-2008, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import abspath from StringIO impor...
liulion/mayavi
integrationtests/mayavi/test_vtk_xml_reader.py
Python
bsd-3-clause
1,044
[ "Mayavi", "VTK" ]
76090cfc37eb072117abd2987742995a02a40ee30d00ae6bb84a52d3ef2b1c1b
__RCSID__ = "$Id$" from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType class Pilot(BaseAccountingType): def __init__(self): BaseAccountingType.__init__(self) self.definitionKeyFields = [('User', 'VARCHAR(32)'), ('UserGroup', 'VARCHAR(32)'),...
andresailer/DIRAC
AccountingSystem/Client/Types/Pilot.py
Python
gpl-3.0
801
[ "DIRAC" ]
6ee2a451ac6cd157f6b64e3b076b95b511c6bffc5790cc64e50f7c85fa2f59d2