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. import json import os import unittest from monty.json import MontyDecoder from pymatgen.core.composition import Composition from pymatgen.apps.battery.conversion_battery import ( ConversionElectrode, ...
gmatteo/pymatgen
pymatgen/apps/battery/tests/test_conversion_battery.py
Python
mit
3,708
[ "pymatgen" ]
063d0ee8d3c4ae58aa05d641eb5de3a2fd77b73e2157562c899d09acd25c5eae
#!/usr/bin/env python from __future__ import print_function import numpy as N import libRun as LR import os def build_cmd(patches, config, filt, input, output): cmd = "assembleCoadd.py %s --output %s " % (input, output) + \ patches + " @" + filt + ".list" + " --configfile " + config + \ " --c...
DarkEnergyScienceCollaboration/ReprocessingTaskForce
scripts/run_assembleCoadd.py
Python
gpl-2.0
2,566
[ "VisIt" ]
708f6abfc40416f3f59d07707b65fd1056a9563bc5b25605b38227a06f5bff03
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/gto/test/test_ft_ao.py
Python
apache-2.0
6,775
[ "PySCF" ]
52c5b4356dab4ed94891f7d6f4d1c4e1176eebd59fa8533f6058031f3aa3c973
# $Id$ # # Copyright (C) 2001-2006 greg Landrum # # @@ 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. # """ code for dealing with resemblance (metric) ma...
adalke/rdkit
rdkit/ML/Cluster/Resemblance.py
Python
bsd-3-clause
3,242
[ "RDKit" ]
aa719a47ac65632739912ff8e00a0197f668dd3dca3570c3a2d0e9a2d31570da
#!/usr/bin/env python """ Module created to run failed jobs locally on a CVMFS-configured machine. It creates the necessary environment, downloads the necessary files, modifies the necessary files and runs the job """ import os import shutil import ssl from xml.etree import ElementTree as et from urllib.request impor...
ic-hep/DIRAC
src/DIRAC/TransformationSystem/scripts/dirac_production_runjoblocal.py
Python
gpl-3.0
4,823
[ "DIRAC" ]
4f67a6fba444eb7740a985007c985d38ca0fb2700dcabae9e8a1a9710cf4f334
""" Multivariate Conditional and Unconditional Kernel Density Estimation with Mixed Data Types. References ---------- [1] Racine, J., Li, Q. Nonparametric econometrics: theory and practice. Princeton University Press. (2007) [2] Racine, Jeff. "Nonparametric Econometrics: A Primer," Foundation and Trends in Eco...
bashtage/statsmodels
statsmodels/nonparametric/kernel_density.py
Python
bsd-3-clause
25,886
[ "Gaussian" ]
fdef64b87e3bb0d108bbbc9618a0e446ca598adae6eeed0a6b041144c58594b9
from sfepy import data_dir filename_mesh = data_dir + '/meshes/2d/special/circle_in_square.mesh' dim = 2 field_1 = { 'name' : 'a_harmonic_field', 'dtype' : 'real', 'shape' : 'scalar', 'region' : 'Omega', 'approx_order' : 1, } variables = { 't': ('unknown field', 'a_harmonic_field', 0), '...
RexFuzzle/sfepy
tests/test_msm_symbolic.py
Python
bsd-3-clause
7,356
[ "VTK" ]
b48d3ef26039d7323cc642dc354182aa819b7cc973627f1eace92aa69397ad46
"""test functions for LS-BSR tools""" import unittest from ls_bsr.util import * import os import tempfile import shutil curr_dir=os.getcwd() class Test1(unittest.TestCase): def test_get_seq_name_basic_function(self): self.assertEqual(get_seq_name("/path/to/test.fasta"), "test.fasta") """tests the con...
jasonsahl/LS-BSR
tests/test_all_functions.py
Python
gpl-3.0
36,121
[ "BLAST" ]
20864f04aff4037796f31d90c1db931d8030cbb5486b7f494089b71f932b5611
#!/usr/bin/env python2 # # Copyright 2001 - 2016 Ludek Smid [http://www.ospace.net/] # # This file is part of Outer Space. # # Outer Space 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...
ospaceteam/outerspace
tests/smoke_test.py
Python
gpl-2.0
5,987
[ "Galaxy" ]
07ed004d8f1e0bc703cde152ce9de21bc613d4f8236cad866d5e80880f7a1e8f
""" A collection of functions to find the weights and abscissas for Gaussian Quadrature. These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over ...
nonhermitian/scipy
scipy/special/orthogonal.py
Python
bsd-3-clause
58,499
[ "Gaussian" ]
004e3721fdfb6fe14d748bb00298c82135169d8fe53f4f78c8ae2f865f981376
#!/usr/bin/env python # -*- coding: utf-8 -*- """ compliance_checker/cfutil.py """ import csv import re import warnings from collections import defaultdict from functools import lru_cache, partial from cf_units import Unit from pkg_resources import resource_filename _UNITLESS_DB = None _SEA_NAMES = None VALID_LAT_...
ioos/compliance-checker
compliance_checker/cfutil.py
Python
apache-2.0
60,813
[ "NetCDF" ]
37e01c91bd115289e6274536fb3297e88e8114b0cddebb58d2db9731d944ea85
#!/usr/bin/env python ######################################################################## # File : dirac-admin-site-mask-logging # Author : Stuart Paterson ######################################################################## """ Retrieves site mask logging information. Example: $ dirac-admin-site-mask-l...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_site_mask_logging.py
Python
gpl-3.0
1,174
[ "DIRAC" ]
958f6dffffc409aa55d009d45fbbf9b65a0a90d73496655b8f73e0e227d3ef1d
#!/usr/bin/env python """ This is a script for quick VTK-based visualizations of finite element computations results. Examples -------- The examples assume that run_tests.py has been run successfully and the resulting data files are present. - view data in output-tests/test_navier_stokes.vtk $ python resv...
BubuLK/sfepy
resview.py
Python
bsd-3-clause
22,275
[ "VTK" ]
b89cc3f5523dafc214aec249b3dc0cdf150c7de37ebc14b79c5614564dd3a884
"""Test LCAO density calculation and conversion to grid. Test that the density generated by the following three procedures is the same: * basis_functions.construct_density as used in a normal calculation * axpy used on the psit_nG as constructed by lcao_to_grid * axpy used on the Phit_MG[i] * Phit_MG[j] * rho[j, i...
qsnake/gpaw
gpaw/test/lcao_density.py
Python
gpl-3.0
1,695
[ "ASE", "GPAW" ]
814b6a50fac9fd29a413939d4f3edb8fa1735b315d4edd6e990957734b52c3ee
import unittest from mock import Mock from DIRAC.DataManagementSystem.Client.ConsistencyInspector import ConsistencyInspector class UtilitiesTestCase( unittest.TestCase ): def setUp( self ): self.bkClientMock = Mock() self.bkClientMock.getFileDescendants.return_value = {'OK': True, ...
vmendez/DIRAC
DataManagementSystem/Client/test/Test_Client.py
Python
gpl-3.0
7,762
[ "DIRAC" ]
440641b90bf3662ecfdcfc5d58bc23f4d79d19fe80d904e0fe416a4f34a03b32
#!/usr/bin/env python # -*- coding: utf-8 # Core functions dealing with vertebral labeling # TODO: remove i/o as much as possible import os import logging import numpy as np import scipy.ndimage.measurements from scipy.ndimage.filters import gaussian_filter from scipy.signal import gaussian from spinalcordtoolbox.i...
neuropoly/spinalcordtoolbox
spinalcordtoolbox/vertebrae/core.py
Python
mit
24,576
[ "Gaussian" ]
bba97ec7a470f614fa646836c98e3147fc3c83bc924118626083e4b197c0c124
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 # # Copyright (C) 2020 Stoq Tecnologia <http://www.stoq.com.br> # All rights reserved # # 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;...
stoq/stoq-server
stoqserver/sentry.py
Python
gpl-2.0
4,444
[ "VisIt" ]
f9c54a96df810137a1bf447fabed36937d3bc0b7b2ed3891d74cfd6fb1b458e7
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-restart-component # Author : Ricardo Graciani ######################################################################## """ Restart DIRAC component using runsvctrl utility """ __RCSID__ = "$Id$" ...
Sbalbp/DIRAC
Core/scripts/dirac-restart-component.py
Python
gpl-3.0
1,390
[ "DIRAC" ]
c8914fbf2e5582eeb4b5f7f0e8eb8ec9ad9811542d02d0d182bcbb1a41f54c2d
# Code the classes and a test to run them from sys import exit from random import randint def quit(): print '' print bcolors.GREEN + 'See you later!' + bcolors.END print '' exit(1) class bcolors: BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' END = '\033[...
Evalle/GPP
main.py
Python
gpl-3.0
10,228
[ "BLAST" ]
d86dedec0fc403a8fa8154f698ec44aaad160106f7bdf17ce67753db8c266947
''' Created on 16/02/2010 @author: jose ''' # Copyright 2009 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia # This file is part of franklin. # franklin 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...
JoseBlanca/franklin
test/snv/snv_annotation_test.py
Python
agpl-3.0
54,305
[ "pysam" ]
6ba2c8fe5da556fefcfd2b822d7a113ebf1c4d9ce69b6114ad6ea4501cba9bfe
import cv2 from Perceptron1 import predict import numpy as np import subsampling import Blur def generarImagenesVideo(video,tamx,tamy): cap = cv2.VideoCapture(video) i = 1 while True: ret, frame = cap.read() i += 1 #Probar cambiando el tiempo if i%5 ==0: gray...
DroneSimon/inteligencia_visual
generarImagenes.py
Python
mit
2,005
[ "NEURON" ]
48d15aa9638029bc4667e6a129a2ccdad233817fa7a15c10d0066d6dfb516e77
# Description: General-purpose functions for personal use. # Author: André Palóczy # E-mail: paloczy@gmail.com __all__ = ['seasonal_avg', 'seasonal_std', 'deseason', 'blkavg', 'blkavgdir', 'blkavgt', 'blkapply', 'stripmsk', ...
apaloczy/ap_tools
utils.py
Python
mit
54,874
[ "Gaussian", "NetCDF" ]
f9ded9cebdd04b9e839ffbd9724c0df57a5b5bd9d1142d9487a45ba06faad672
"""================================ Optimizing cufflinks parameters ================================ :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python The cufflinks optimization pipeline attempts to assess the quality of a variety of transcript assemblies using various sets of parameters. Overview ====...
CGATOxford/CGATPipelines
obsolete/pipeline_cufflinks_optimization.py
Python
mit
27,762
[ "pysam" ]
d98540371bb2abbfda64e45c4e8fa369748485dfc09074879119eda36d7e92f2
import base64 import binascii import hashlib import json import os import random import re from future.moves.urllib.parse import parse_qsl, urlparse import requests from aussieaddonscommon import session as custom_session from aussieaddonscommon import utils from aussieaddonscommon.exceptions import AussieAddonsExce...
andybotting/xbmc-addon-afl-video
resources/lib/telstra_auth.py
Python
gpl-3.0
11,835
[ "VisIt" ]
5140336137337d07543041a13bdd7e3acb95133082e2bfa1c68297834ee56c57
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Derived from Cursor3D. This script increases the coverage of the # vtkImageInplaceFilter super class. # global values CURSOR_X = 20 CURSOR_Y = 20 CURSOR_Z = 20 IMAGE_MAG_X = 2 IMAG...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/TestInPlaceFilter.py
Python
gpl-3.0
1,759
[ "VTK" ]
60be17892453cf30012a50e04bafa0ae7d283b0466c38a7036e42b85bccb7b87
from __future__ import print_function from rdkit import RDConfig RDConfig.usePgSQL = 0 import unittest from rdkit.ML import InfoTheory from rdkit import DataStructs from rdkit.Dbase.DbConnection import DbConnect import os from rdkit.six.moves import cPickle as pickle def feq(v1, v2, tol2=1e-4): return abs(v1 - v2) ...
jandom/rdkit
rdkit/ML/InfoTheory/testBitRanker.py
Python
bsd-3-clause
4,058
[ "RDKit" ]
9a09b5d40177c74ecafdf3bb8fd751b3b6d2cdd41a0ee221c518e8941ed1dece
""" # Notes: - This simulation seeks to emulate the COBAHH benchmark simulations of (Brette et al. 2007) using the Brian2 simulator for speed benchmark comparison to DynaSim. However, this simulation includes CLOCK-DRIVEN synapses, for direct comparison to DynaSim's clock-driven architecture. The synaptic connec...
asoplata/dynasim-benchmark-brette-2007
Brian2/brian2_benchmark_COBAHH_clocksyn_hidens_compiled_0001.py
Python
gpl-3.0
3,932
[ "Brian" ]
62b70727cd88fd3405dc7d228476b916da06c0d7537b8755b34d9cc8ab3054d7
#!/usr/bin/env python # b 1702 b 2430 b 2475 from collections import defaultdict, deque, namedtuple import errno import getopt import heapq import htmlunit import itertools import logging import math import os import os.path import output import pdb import pydot import random import re import shutil import signal impor...
adamdoupe/enemy-of-the-state
crawler2.py
Python
gpl-2.0
94,934
[ "VisIt" ]
6c17024c312e0f34748d74706a4f3faa334679bf2005c4b12a09fdf1962d114e
#------------------------------------------------------------------------------ # Copyright (C) 2009 Richard Lincoln # # 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; version 2 dated June...
rwl/openpowersystem
cdpsm/iec61968/asset_models/to_winding_spec.py
Python
agpl-3.0
3,092
[ "exciting" ]
3990c26d1d565b56a629905420dde9cca0dffe93247c5c19a395934ac176c4ad
from ReportGenerator.Geom import Geom from ReportGenerator.Top_ReportGenerator import Top_ReportGenerator from ReportComponents.WebFile import WebFile from ReportGenerator.Charges import Charges import itertools import logging log = logging.getLogger(__name__) class Freq(Top_ReportGenerator): def __init__(self,we...
talipovm/terse
terse/ReportGenerator/Freq.py
Python
mit
5,504
[ "GAMESS" ]
bd5b4a22e4577899a6c2137e059e9537288625ae4d15b92438baf60f6f943bf1
''' Test for IO in Rebo2, Rebo2Scr ''' import unittest import numpy as np from ase import Atoms, io from atomistica import Rebo2, Rebo2Scr class IOTest(unittest.TestCase): def test_energy(self): vac = 8 dist_min = 1.2 atoms = Atoms('CC', positions=[[0, 0, 0], [dist_min, 0, 0]]) ...
Atomistica/atomistica
tests/test_io.py
Python
gpl-2.0
1,041
[ "ASE" ]
263b5e0011446eae2d95f2cfba48e095cf61f3a9c579bfae8da1dd1d67a0694b
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2007 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 Fou...
andrebellafronte/stoq
stoqlib/domain/test/test_costcenter.py
Python
gpl-2.0
5,555
[ "VisIt" ]
d9ef0d6ff24ce8329e34ad5490047ff337236632852c6a940617189677dbd545
#!/usr/bin/env python ############################################################################ # Copyright (c) 2015 Saint Petersburg State University # Copyright (c) 2011-2014 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ################################################...
NGSchool2016/ngschool2016-materials
src/SPAdes-3.9.0-Linux/bin/spades.py
Python
gpl-3.0
50,884
[ "BWA" ]
4eddec128dd798a7b61f69e09140648c9454028de101e9bedeb52c9da72e557e
#! /usr/bin/env python ######################################################################## # File : dirac-stager-monitor-file # Author : Daniela Remenska ######################################################################## """ Give monitoring information regarding a staging file uniquely identified with (L...
yujikato/DIRAC
src/DIRAC/StorageManagementSystem/scripts/dirac_stager_monitor_file.py
Python
gpl-3.0
4,335
[ "DIRAC" ]
64c3131345f2959a101cab2a303b4de499d3d7d8d4939c106e3f32aaa693c73d
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014 Arttu Kasvio <arttu@ubuntu> # # This is free and unencumbered software released into the public domain. # See LICENSE for more info and refer to <http://unlicense.org> # Requirements: pycrypto, monkeysphere, gpg import os import drbg import getpass ...
arttukasvio/deterministic
deterministicgpg.py
Python
unlicense
3,457
[ "VisIt" ]
688c374410c25e348e5461400c26c499512cc8d367b648ac437d50874f210373
# # The Python Imaging Library. # $Id$ # # Binary input/output support routines. # # Copyright (c) 1997-2003 by Secret Labs AB # Copyright (c) 1995-2003 by Fredrik Lundh # Copyright (c) 2012 by Brian Crowell # # See the README file for information on usage and redistribution. # from struct import unpack_from, pack fro...
ryfeus/lambda-packs
pytorch/source/PIL/_binary.py
Python
mit
1,822
[ "Brian" ]
5b2ff47496220336e483baca062d9ef68b3e52c3ea7203c531a1945b5c7bbcd1
""" Statistical methods ===================== - fit residuals - Computing prediction and confidence bands - Comparing goodness-of-fit of different models - operations on statistical distributions - custom statistical distributions - p-values and significance """ import numpy,scipy import scipy.stats # Residuals o...
rsnemmen/nemmen
nmmn/stats.py
Python
mit
38,544
[ "Gaussian" ]
39df429e4ca82a67db5be29635cc9de6db0a36686c4402c4bda812c2876cfbe4
from ase.calculators.emt import EMT from ase import Atoms from ase.structure import molecule a1 = Atoms('Au', calculator=EMT()) e1 = a1.get_potential_energy() a2 = molecule('C6H6', calculator=EMT()) e2 = a2.get_potential_energy() a1.translate((0, 0, 50)) a3 = a1 + a2 a3.calc = EMT() e3 = a3.get_potential_energy() print...
suttond/MODOI
ase/test/emt2.py
Python
lgpl-3.0
380
[ "ASE" ]
f74387eaf8623909b9baa0761840596ace8d6a47a81d9db75724566bb0536ab3
from Cython.Compiler import TypeSlots from Cython.Compiler.ExprNodes import not_a_constant import cython cython.declare(UtilityCode=object, EncodedString=object, BytesLiteral=object, Nodes=object, ExprNodes=object, PyrexTypes=object, Builtin=object, UtilNodes=object, Naming=object) import...
openilabs/falconlab
env/lib/python2.7/site-packages/Cython/Compiler/Optimize.py
Python
mit
155,905
[ "VisIt" ]
5ba37ff90c4421e88c22888cb0ed9dde5446d719068b71b8c46dba875add1c59
#!/usr/bin/env python #JSON {"lot": "RHF/3-21G", #JSON "scf": "PlainSCFSolver", #JSON "linalg": "DenseLinalgFactory", #JSON "difficulty": 1, #JSON "description": "Basic RHF example with dense matrices"} from horton import * # Hartree-Fock calculation # ------------------------ # Load the coordinates from file. ...
crisely09/horton
data/examples/hf_dft/rhf_water_dense.py
Python
gpl-3.0
3,062
[ "Gaussian" ]
5d3fb37e48e842dd27bb10d63f8367923452d7d00acc4628b2ffe7938fedc020
#!/usr/bin/env python #-*- coding:utf-8 -*- import logging import inspect import miasm2.expression.expression as m2_expr from miasm2.expression.simplifications import expr_simp from miasm2.expression.modint import moduint, modint from miasm2.core.utils import Disasm_Exception, pck from miasm2.core.graph import DiGra...
amohanta/miasm
miasm2/core/asmbloc.py
Python
gpl-2.0
41,073
[ "VisIt" ]
9aa7517959ee755577aa79d6e4b578ec781d83efdbeccc3a6867d16d01fd45d9
import openvoronoi as ovd import ovdvtk import time import vtk import datetime import math import random import os import sys import pickle import gzip def drawCircle(myscreen, c, r, circlecolor): ca = ovdvtk.Circle(center=(c.x, c.y, 0), radius=r, color=circlecolor, resolution=50) myscreen.addActor(ca) if ...
aewallin/openvoronoi
python_examples/ma-pocket/ma_pocket_01.py
Python
lgpl-2.1
3,741
[ "VTK" ]
d6931d5a8fa1d453086a3d55c55e634658203b77f1d4b00e18ac8cc7bd94348a
#!/usr/bin/env python """ buildChains0.py Author: Tony Papenfuss Date: Wed Sep 20 17:17:35 EST 2006 """ import os, sys, glob import blast, chaining filenames = glob.glob('blast/*.txt') for filename in filenames: hsps = blast.Blast(filename) hsps.convertBlockToGenomeCoords() chain = chaining.chainWithB...
PapenfussLab/Mungo
snippets/buildChains.py
Python
artistic-2.0
404
[ "BLAST" ]
059590c41066caabd273ec4f0b198368fde4d6dd03d357efb626c7a829f390b2
## # Copyright 2009-2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (htt...
geimer/easybuild-easyblocks
easybuild/easyblocks/b/bioconductor.py
Python
gpl-2.0
2,253
[ "Bioconductor" ]
21451805b5f41326e193e7e115088709e913bd53376c883d705eee04fa448de2
# Copyright 2006-2014 Tim Brown/TimeScience LLC # Copyright 2013-2014 Kevin Murray/Bioinfinio # Copyright 2014- The Australian National Univesity # Copyright 2014- Joel Granados # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published b...
borevitzlab/timestreamlib
timestream/manipulate/plantSegmenter.py
Python
gpl-3.0
25,186
[ "Gaussian" ]
5272e499b49d45e8b24b42d93301f8077f4ba954ac1ea836db794a5ebdfd0a25
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import config from install_package import InstallPackage import os import shutil import utils dependencies = [] DRE_BASENAME = "dre" HG_REPO = "https://code.google.com/p/devide.%s/" % (DRE_BASENAME,) # this should be the sa...
nagyistoce/devide.johannes
install_packages/ip_setupenvironment.py
Python
bsd-3-clause
6,081
[ "VTK" ]
95b83235699f99382f7af24ddb14c8abfac5dcc643effe985e231e39766f3f21
#!/usr/bin/python # -*- coding: utf-8 -*- """A canvas for drawing things on it""" import platform import sys from gi.repository import Gtk from gi.repository import Gdk from gi.repository import GObject if platform.system() != 'Windows': pass #Gtk.threads_init() import cairo from objects.document import Docum...
jmouriz/sanaviron
sanaviron/ui/canvas.py
Python
apache-2.0
23,973
[ "FLEUR" ]
f838c0cbda33ef3272e557763f5f8a6dc8abe4e57768d01db5d643ee72cf6eea
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
tgroh/incubator-beam
sdks/python/apache_beam/runners/direct/direct_runner.py
Python
apache-2.0
17,127
[ "VisIt" ]
4701d6e50b70a3272418a8d90027dc7962dd9f006b3af0d7047d406080f61694
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation030.py
Python
bsd-2-clause
4,379
[ "NEURON" ]
288c6e718ffea8de44975d1180019a2b19ee3689d7cad232f8a421be90b90986
########################################################################## # # Copyright (c) 2019, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
GafferHQ/gaffer
python/GafferUI/SpreadsheetUI/_SectionChooser.py
Python
bsd-3-clause
14,241
[ "VisIt" ]
bcf643a5f24ffd58b72767707775566994d991f15db1c1479519a773286746b6
#!/usr/bin/env python3 import os import sys import argparse from itertools import groupby import subprocess def fasta_iter(fasta_name): queries = {} queries_len = {} with open(fasta_name, 'r') as fasta_file: faiter = (x[1] for x in groupby(fasta_file, lambda line: line[0] == ">")) for header...
shahnidhi/outlier_in_BLAST_hits
src/make_edge_list.py
Python
mit
3,554
[ "BLAST" ]
3c8262f3367dafd54ae1b68985b62774ba32bd51d6cef179b2e49664d046f6f3
""" DB is a base class for multiple DIRAC databases that are based on MySQL. It uniforms the way the database objects are constructed """ from DIRAC import gLogger, gConfig from DIRAC.Core.Utilities.MySQL import MySQL from DIRAC.ConfigurationSystem.Client.Utilities import getDBParameters from DIRAC.ConfigurationSy...
andresailer/DIRAC
Core/Base/DB.py
Python
gpl-3.0
2,111
[ "DIRAC" ]
faa0eb68da3f5c5e27512e2785e669735f0ef98fbe503eff5780543969b63abc
from fov import fov import curses, random DUNGEON = """ ##### ######### # # ########### # ## ######### # # # # ######## ######## # # # ...
elemel/python-fov
src/fov_demo.py
Python
mit
6,872
[ "VisIt" ]
1c137d2ab9e18bae57e290a0577138cfa6469bed7d4bfd8d40cb8e4e9bff3b73
# -*- coding: utf-8 -*- # Copyright (C) 2003 CAMP # Please see the accompanying LICENSE file for further information. if __name__ == '__main__': print """\ You are using the wrong setup.py script! This setup.py defines a Setup class used to hold the atomic data needed for a specific atom. For building the GPAW c...
qsnake/gpaw
gpaw/setup.py
Python
gpl-3.0
38,884
[ "ASE", "GPAW" ]
2396a9a42ad1d6114d20a10d70bcb1699012e27bdb3d656ed1a2e244d2fcb75d
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
EliotBerriot/trax
config/urls.py
Python
mit
1,662
[ "VisIt" ]
958497e74fa7a6fb9f659114de8748682bca95f9a3dffc21158afa507bbd3c7e
names = ["Adam","Alex","Mariah","Martine","Columbus"] for item in names: print item
oliverwreath/Wide-Range-of-Webs
Python/A_Supermarket_Day/1. dictionary.py
Python
agpl-3.0
88
[ "COLUMBUS" ]
86f68a0e0b828d1cfff397baf808177242c16f785d55a0101098bf254944a2de
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
jotes/ansible
lib/ansible/utils/__init__.py
Python
gpl-3.0
58,346
[ "Galaxy", "VisIt" ]
ec8f5480f1c4d5fcbea40d97b90248f8c09403763f88f6808fd530034adcb234
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-compute
tests/unit/gapic/compute_v1/test_region_autoscalers.py
Python
apache-2.0
112,267
[ "Octopus" ]
ea18625562d893b640243b9c23f84116dd6ada1ab4dbce8ac299e52e7f123964
""" Extended docstrings for functions.py """ pi = r""" `\pi`, roughly equal to 3.141592654, represents the area of the unit circle, the half-period of trigonometric functions, and many other things in mathematics. Mpmath can evaluate `\pi` to arbitrary precision:: >>> from mpmath import * >>> mp.dps = 50; m...
JensGrabner/mpmath
mpmath/function_docs.py
Python
bsd-3-clause
280,518
[ "Gaussian" ]
26a15fd679380264dd6fe9817169fb78025987031efceecaaee5a2e3ff09bd61
""" DISET request handler base class for the ProductionDB. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import six from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.Core...
ic-hep/DIRAC
src/DIRAC/ProductionSystem/Service/ProductionManagerHandler.py
Python
gpl-3.0
5,730
[ "DIRAC" ]
7ff89702a25851bc6d3fecf5bc503f7447d38778603bf4245d6253da390e4dff
#!/usr/bin/env python # File: struc_to_latex.py # Created on: Thu Aug 8 15:38:23 2013 # Last Change: Thu Aug 8 16:22:31 2013 # Purpose of script: <+INSERT+> # Author: Steven Boada import cPickle as pickle galaxies = pickle.load(open('galaxies_fortable.pickle','rb')) galaxies = filter(lambda galaxy: galaxy.ston_I >30...
boada/ICD
sandbox/legacy_plot_code/struc_to_latex.py
Python
mit
1,004
[ "Galaxy" ]
5db5ae3b9c906797343bd1a9a1d9c56d06296bc1ba206fa13c46b584144d5f90
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Integration tests for experimental regridding.""" # Import iris.tests first so that some things can be initialised before #...
SciTools/iris
lib/iris/tests/integration/experimental/test_regrid_ProjectedUnstructured.py
Python
lgpl-3.0
5,073
[ "NetCDF" ]
a02c848673fea47208ecf47796da5392fe28a7d80d643b539e6e9cfa9b7b8fc7
#!/usr/bin/env python from gaussian_parsing import symbols import argparse parser = argparse.ArgumentParser(prog='create_Gaussian_scripts.py', formatter_class=argparse.RawDescriptionHelpFormatter, description=''' ________________________________________...
jeiros/Scripts
create_Gaussian_scripts.py
Python
mit
3,077
[ "Gaussian" ]
03f18ec0389251385500125de87564123e97630ab97a0b464cac7632838c26fc
# Copyright (C) 2012,2013,2015,2016 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the ...
fedepad/espressopp
src/FixedPairList.py
Python
gpl-3.0
3,551
[ "ESPResSo" ]
de814799809843b46944575072771717f43e522d6ec912db1b862a51410516f8
""" Example to create a neural network with one hidden layer for solving the classical XOR problem. Based on the lua code at https://github.com/torch/nn/blob/master/doc/training.md @author: Naimish Agarwal @dependencies: python 2.7, torch 7 """ import lutorpy as lua # set runtime options lua.LuaRuntime(unpack_r...
agarwalnaimish/deep-learning-exercises
torch/python/torch-nn-training.py
Python
mit
3,256
[ "NEURON" ]
d5ea3cebe5dac2fdc259eedb8d6deee8ab3cd8835e436fa206fd8ed6ebea5a25
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Aug 22 10:33:00 2019 @author: raf """ # IMPORT STUFF from pdb import set_trace as stop import copy import numpy as np from collections import OrderedDict import string as st import os import matplotlib.cm as cm from vison.fpa import fpa as fpamod fro...
ruymanengithub/vison
vison/metatests/nl.py
Python
gpl-3.0
29,774
[ "DIRAC" ]
376f05f040e965aadd4afae9c4e07d38ad9838d0b90831adf485872ba2530d4a
import numpy as np import numba as nb import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.animation as animation class Particles: def __init__(self, mean=[0,0,0], cov=[[1,0,0], [0,1,0], [0,0,0.1]], N=1000): self.mean = mean self.cov = cov self.N = N self.gen...
nkarast/Snippets
Python/gaussian_distro.py
Python
gpl-3.0
3,119
[ "Gaussian" ]
7e50e426e66763ae1b734f7bf9f9bbb3b19f932460561b69c39d84d52393d7e0
# 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
gfsa/automaton_builder.py
Python
apache-2.0
52,189
[ "VisIt" ]
54ecc63ecf2070b02b8e8df5840ca21f6c360230bfcd3f323794f6f8fd9d5fb0
__author__ = "grburgess <J. Michael Burgess>" from astromodels.functions.functions import DiracDelta, StepFunctionUpper import numpy as np def step_generator(intervals, parameter): """ Generates sum of step or dirac delta functions for the given intervals and parameter. This can be used to link time-ind...
giacomov/3ML
threeML/utils/step_parameter_generator.py
Python
bsd-3-clause
2,905
[ "DIRAC" ]
808b56a5ab70cd20a6346da4576558f5c6a8f7964407fdd08f999ed91a8d168b
# Copyright 2009 The Closure Library 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 requi...
dmincu/IOC
new_php/closure-library/closure/bin/build/depstree.py
Python
mit
6,564
[ "VisIt" ]
c4c80cd799a4f66eddec77b326e4d518a7087a214336eb62eb6628924d88bb37
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Charge Decomposition Analysis (CDA)""" import random import numpy from cclib.method.fragments import FragmentAnalysi...
cclib/cclib
cclib/method/cda.py
Python
bsd-3-clause
4,336
[ "cclib" ]
038046e6e6a11df1900bfffeac2e1ce63060adb2d0852f02d93373e23321ec7b
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Laurawly/tvm-1
tests/python/relay/test_pass_manager.py
Python
apache-2.0
20,408
[ "VisIt" ]
8476c5e5ded8ae48af7cdf34e4555537a16afbade42a846630a8b5e0176c3650
# Orca # # Copyright 2006-2009 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/scripts/apps/gnome-window-properties/script.py
Python
gpl-3.0
1,805
[ "ORCA" ]
a232e60d824870f817cf70b63cc40540be77b77077123aa8091a0921d1116203
# -*- Mode: python; coding: utf-8 -*- from __future__ import division #from __future__ import with_statement LAYOUT_ALGORITHM = 'neato' # ['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop'] REPRESENT_CHANNELS_AS_NODES = 1 DEFAULT_NODE_SIZE = 2.0 # default node size in meters DEFAULT_TRANSMISSIONS_MEMORY = 5 # default number o...
deepakar/ns-3-dev-ndnSIM
src/visualizer/visualizer/core.py
Python
gpl-2.0
62,070
[ "FLEUR" ]
a3213917f48b45fad86d0ec425f6cc0c30b2b1cc6fcfce3ec20cd964a29f4a0a
#!/usr/bin/python __author__ = "D.Qendri" __copyright__ = "Copyright 2015 Sensorian" __license__ = "GPL V3" __version__ = "1.0" import sys import smbus import time bus = smbus.SMBus(1) MCP79410address = 0x6f # SRAM board address MCP79410EEPROMaddress = 0x57 # EEPROM address EEPROM_WRITE = 0xae # DEV...
sensorian/sensorian-firmware
Drivers_Python/MCP79410/MCP79410RTCC.py
Python
lgpl-3.0
21,516
[ "CRYSTAL" ]
f8249e0de65beebed7538190ec6f65d5ff98dbef5a4e495bb2d89bbafde97412
from typing import Text def is_reserved_subdomain(subdomain): # type: (Text) -> bool if subdomain in ZULIP_RESERVED_SUBDOMAINS: return True if subdomain[-1] == 's' and subdomain[:-1] in ZULIP_RESERVED_SUBDOMAINS: return True if subdomain in GENERIC_RESERVED_SUBDOMAINS: return Tr...
sonali0901/zulip
zerver/lib/name_restrictions.py
Python
apache-2.0
26,687
[ "Octopus" ]
5a2960f20630f15e223475abf06d358f9b241289932839e6c30d1ad083d213ef
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2017 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
jasperges/blenderseed
ui/objects.py
Python
mit
2,701
[ "VisIt" ]
caca029d6772f0fbea622e1f47d7c0dda09db90be6f02e87287e4a213a304e6d
import os, inspect dir_external_paths = os.path.dirname(os.path.abspath(\ inspect.getfile(inspect.currentframe()))) def findPath(locations): """ Parses a list of locations, returning the first file that exists. If none exist, then None is returned. """ import os.path locations = [l for l in locations if ...
gkumar7/AlGDock
AlGDock/_external_paths.py
Python
mit
4,257
[ "Amber", "NAMD", "OpenMM", "VMD" ]
040e6dc60021cefa212fe19156d8429b2c4ca73756204b795334782198c2152d
#!/usr/bin/env python3 # (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # 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, or (at your option) # any later version. # # ...
zguangyu/rts2
scripts/u_point/u_point.py
Python
gpl-2.0
38,232
[ "Gaussian", "VisIt" ]
b0538dd7177fca418a69d62a3cd932a77c3b17e076450b34570a944b7813d29c
#!/usr/bin/python #XOOPS Module SQL scanner, checks source for md5's #Uncomment line 63 for verbose mode. If md5 found #check manually. #http://www.darkc0de.com #d3hydr8[at]gmail[dot]com import sys, urllib2, re, time print "\n\t d3hydr8[at]gmail[dot]com XOOPScan v1.0" print "\t------------------------------------...
knightmare2600/d4rkc0de
scanners/xoopscan.py
Python
gpl-2.0
7,582
[ "VisIt" ]
5bf3cf1749ab8c6848c743b993ac0b602a75cf3655ae9e813db4444d944e78ba
# -*- coding: utf-8 -*- # # Copyright (C) 2011 Tiger Soldier # # This file is part of OSD Lyrics. # # OSD Lyrics 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 ...
lenoch/osdlyrics
python/dbusext/property.py
Python
gpl-3.0
8,051
[ "VisIt" ]
0ef167ee7de3562dfa487b602a8167fcad53cecbae511fdf99dc41a7998a8746
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/source/_hasnote.py
Python
gpl-2.0
1,758
[ "Brian" ]
fd77cbb1dede552bdfa6c849c654547d83dee003a88326e61ada10b92df3ae16
# -*- coding: utf-8 -*- # Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
to266/hyperspy
hyperspy/_signals/eels.py
Python
gpl-3.0
52,140
[ "Gaussian" ]
b3fb0b3b482083c52f347bffe573eaefb822afb71debc3dc727c8367222b4f12
""" UI-level acceptance tests for OpenAssessment. """ # pylint: disable=arguments-differ, dangerous-default-value from functools import wraps import os import time import unittest from bok_choy.promise import BrokenPromise, EmptyPromise from bok_choy.web_app_test import WebAppTest import ddt import pytest from pyins...
edx/edx-ora2
test/acceptance/tests.py
Python
agpl-3.0
53,589
[ "VisIt" ]
a695c9425d7f6515d9a13ae0f984820c6be8d50b700c81d9a5281e62553c6167
""" This is the Data Integrity Client which allows the simple reporting of problematic file and replicas to the IntegrityDB and their status correctly updated in the FileCatalog. """ __RCSID__ = "$Id$" from DIRAC import S_OK, S_ERROR, gLogger, gConfig from DIRAC.Dat...
avedaee/DIRAC
DataManagementSystem/Client/DataIntegrityClient.py
Python
gpl-3.0
41,699
[ "DIRAC" ]
37cb9009c3f0b6b6b8c5824efe42ee1fe56ca72fd9463e20f11db3decf98d441
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, asse...
jonycgn/scipy
scipy/stats/tests/test_distributions.py
Python
bsd-3-clause
87,346
[ "Gaussian" ]
d5b7583fa7c0722992c03f55680913ae53d9f13066e4216583e7b5c9876298e2
from QCkit.molecule import Molecule from QCkit.atom import Atom from QCkit.thermalDesorption import simulatedTDP class TPDrestart: def __init__(self, pos_vel_file, basis, # basis set to use exchange, # exchange to use (such as B3LYP etc.) high_...
EhudTsivion/QCkit
thermalDesorption/restartJob.py
Python
lgpl-3.0
3,338
[ "Q-Chem" ]
b2d9f9dd8af27d4c4006afa573cb3bc49ab7e1dbac0cdf6894a1455b101cb088
# # Copyright (C) 2013,2014,2015,2016 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)...
tbereau/espresso
samples/python/load_properties.py
Python
gpl-3.0
4,327
[ "ESPResSo" ]
1454fb8e24bc57fa496a639e35b893bd4da1f5819d33622f99bdfbcb25115cc7
# $HeadURL$ __RCSID__ = "$Id$" import types import os import datetime from DIRAC import S_OK, S_ERROR, rootPath, gConfig, gLogger, gMonitor from DIRAC.AccountingSystem.DB.MultiAccountingDB import MultiAccountingDB from DIRAC.AccountingSystem.private.Summaries import Summaries from DIRAC.AccountingSystem.private.DataCa...
sposs/DIRAC
AccountingSystem/Service/ReportGeneratorHandler.py
Python
gpl-3.0
9,047
[ "DIRAC" ]
224003b0394eea4e0244dccf9feb2698b59656f5e363c0615cd78f4178ce5e7a
# Copyright 2017 Google LLC All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
tseaver/google-cloud-python
firestore/tests/unit/v1beta1/test_transaction.py
Python
apache-2.0
38,004
[ "Galaxy" ]
3e29533a920460add6f68edb64514f3b84ae73fe8523f5f5834a65621f907565
# -*- encoding:utf-8 -*- from __future__ import division, absolute_import, print_function import sys, textwrap from numpydoc.docscrape import NumpyDocString, FunctionDoc, ClassDoc from numpydoc.docscrape_sphinx import SphinxDocString, SphinxClassDoc from nose.tools import * if sys.version_info[0] >= 3: sixu = la...
mobiusklein/pyteomics.cythonize
docs/ext/numpydoc/tests/test_docscrape.py
Python
apache-2.0
21,449
[ "Gaussian" ]
10731617e82b0fe3ff123b2aae79497ee388c5e53e761c010752e928ed514382
#! /usr/bin/env python """Read data from a NetCDF file into a RasterModelGrid. Read netcdf +++++++++++ .. autosummary:: ~landlab.io.netcdf.read.read_netcdf """ import numpy as np import xarray as xr from landlab.io import ( MismatchGridDataSizeError, MismatchGridXYLowerLeft, MismatchGridXYSpacing, )...
landlab/landlab
landlab/io/netcdf/read.py
Python
mit
11,843
[ "NetCDF" ]
fae8b5b64ddf3ad89f8ffb207ce73474a90b561ca62b6a30cd775ead98818e2c
#!/usr/bin/env python """ Read a maf file and write out a new maf with only blocks having all of the passed in species, after dropping any other species and removing columns containing only gaps. This will attempt to fuse together any blocks which are adjacent after the unwanted species have been dropped. usage: %p...
volpino/Yeps-EURAC
tools/maf/maf_thread_for_species.py
Python
mit
1,732
[ "Galaxy" ]
24d08b91ae57aeae88c142c560ea28aeb1d9d910677d53e2c2b67405443e48d0
"""Things to do when the TurboGears server is started.""" __all__ = [ 'call_on_startup', 'call_on_shutdown', 'reloader_thread', 'start_bonjour', 'stop_bonjour', 'start_server', 'startTurboGears', 'stopTurboGears', ] import logging import os import sys from os.path import abspath, exis...
dbrattli/python-gearshift
gearshift/startup.py
Python
mit
4,548
[ "VisIt" ]
5de12522ec415cd9b3514369be99e7b2da029aa3153cd67fba56cfad005acae5
tests=[ ("python","test_list.py",{'dir':'RDGeneral'}), ("python","test_list.py",{'dir':'Geometry'}), ("python","test_list.py",{'dir':'Geometry/Wrap'}), ("python","test_list.py",{'dir':'DataStructs'}), ("python","test_list.py",{'dir':'DataStructs/Wrap'}), ("python","test_list.py",{'dir':'Query'}), ("pytho...
adalke/rdkit
Code/test_list.py
Python
bsd-3-clause
1,144
[ "RDKit" ]
7faf42a660144ce75f3b6bc9ead9fd34deb7066d5bd111fab355a7d7eac4cb55
""" Demo sequencer web application framework """ import json import os import pkg_resources import random import socket import string import sys import time pkg_resources.require( "Cheetah" ) from Cheetah.Template import Template from galaxy.web.framework import helpers from galaxy import util from galaxy.util.json...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/demo_sequencer/framework/__init__.py
Python
gpl-3.0
10,154
[ "Galaxy" ]
a2ed38ccd1e53722a60247b022c99a941744efd0350855f2935f5d8cce44a597
# ^_^ WEEK 05 FUN ^_^ # TAKE-HOME CHALLENGE # Here is a big list of names to have fun with!! # from: http://deron.meranda.us/data/census-derived-all-first.txt names = [ "Rosanna", "Kristofer", "Yesenia", "Lovie", "Reita", "Merrilee", "Glenna", "Liz", "Wen", "Danille", "Josefine", "Senaida", "Susan", "Re...
google/teknowledge
curriculum/05_lists_01_many_names_2_DAYS/05_lists_02_many_names_day_2/05_02_02_fun_guess_the_name_game.py
Python
apache-2.0
2,783
[ "COLUMBUS", "Desmond" ]
deff10b0217f0cec68292f84046281c3e35a28549cabbdd03f3d69b25f2e83e2
""" ========================== FastICA on 2D point clouds ========================== This example illustrates visually in the feature space a comparison by results using two different component analysis techniques. :ref:`ICA` vs :ref:`PCA`. Representing ICA in the feature space gives the view of 'geometric ICA': ICA...
depet/scikit-learn
examples/decomposition/plot_ica_vs_pca.py
Python
bsd-3-clause
3,293
[ "Gaussian" ]
75f1a25d3bc96db262e55488f44d324b7b8ee5207e9de8c587fbdcafaa8e809c
# Copyright (c) 2012, Cloudscaling # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
BeyondTheClouds/nova
nova/hacking/checks.py
Python
apache-2.0
26,944
[ "VisIt" ]
11406246d9516ac76495c30fd55a5a49d4a2cac29c96d624dfa82b9c65af72f1
from _bisect import bisect_right from bisect import bisect_left import logging from threading import Thread import os import time import pyper from pydap.client import open_url from geopandas import GeoDataFrame, GeoSeries from shapely.geometry import Point __author__ = 'Phil Jenkins (Tessella)' log = logging.getLogg...
NERC-CEH/ecomaps
ecomaps/analysis/code_root/ecomaps_analysis.py
Python
gpl-2.0
12,756
[ "NetCDF" ]
1c4bad153e8d67bf15010ca79580f9e1bac2d1fd162950beebacb13a891b22f3