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
from __future__ import with_statement import os import re import platform import time import fnmatch import tempfile from os import environ from sos.utilities import (ImporterHelper, import_module, get_hash_name, shell_out) from sos.plug...
codificat/sos
sos/policies/__init__.py
Python
gpl-2.0
13,341
[ "VisIt" ]
40eeee31769f7df62f7f83da19204b5e2fbc6bccf4896c2b865e2171bf03cebe
import simplekml from polycircles.polycircles import Polycircle polycircle = Polycircle(latitude=40.768085, longitude=-73.981885, radius=200, number_of_vertices=36) kml = simplekml.Kml() pol = kml.newpolygon(name="Columbus Circle, Manhattan", oute...
adamatan/polycircles
examples/02-hello_kml.py
Python
mit
460
[ "COLUMBUS" ]
9a13a8c35424d2951d27109c13dda26ceb5f7ac35b77cd47c79aa9c5d7ee92a3
#coding=utf-8 from uliweb import expose, functions from uliweb.i18n import ugettext_lazy as _ @expose('/admin') class AdminView(object): def __begin__(self): functions.require_login() if not request.user.is_superuser: error('You have not permisstion to visit the page') @expose('') ...
limodou/uliweb-admin
uliweb_admin/admin/views.py
Python
bsd-2-clause
5,824
[ "VisIt" ]
67bbe950c21f83bfd0e7dade64fe1836f953c34afcb5c86c7261ea71600d5fa6
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Google OAuth2 related functions.""" import BaseHTTPServer import collections import datetime import functools import hashlib import json import logging i...
Teamxrtc/webrtc-streaming-node
third_party/depot_tools/auth.py
Python
mit
25,171
[ "VisIt" ]
5eaf86943c26d3a62e1e55e6b7aa746f3caceedbf106d0c6b48b8ab2db831e0b
# lots to do: # __ native drawLines # __ add native drawCurve method # __ native rectangle/round rect method # __ native drawEllipse # __ native drawArc # __ drawImage support (work on Pyart side of things) import pyart from rdkit.sping.pid import * from rdkit.sping.PDF import pdfmetrics import Fontmapp...
rdkit/rdkit-orig
rdkit/sping/Pyart/pidPyart.py
Python
bsd-3-clause
9,273
[ "RDKit" ]
273d5393adc7134eb9d6c20fefab0b7e115b6a95037f507025147af7a745eba3
""" ConfigurationData module is the base for cfg files management """ from __future__ import print_function from __future__ import absolute_import from __future__ import division import os.path import zlib import zipfile import six from six.moves import _thread as thread import time import DIRAC from diraccfg import ...
yujikato/DIRAC
src/DIRAC/ConfigurationSystem/private/ConfigurationData.py
Python
gpl-3.0
13,550
[ "DIRAC" ]
f05e9a531ad68ef25dd499199553501168fa3be615cb4828ea8f0d9aa85de4ba
from __future__ import print_function import unittest from DIRAC.tests.Utilities.utils import cleanTestDir from DIRAC import gLogger from DIRAC.Interfaces.API.Dirac import Dirac from DIRAC.DataManagementSystem.Client.DataManager import DataManager class IntegrationTest( unittest.TestCase ): """ Base class for the ...
chaen/DIRAC
tests/Utilities/IntegrationTest.py
Python
gpl-3.0
1,026
[ "DIRAC" ]
7b6bd2ad6b78adf1046fc2d43b5315d5cd1391c7060a31dfac7c50f75f25dd89
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() class TestPlot3D(Testing.vtkTest): def testReader3D(self): names = [("multi-ascii.xyz", "multi-ascii.q"), ("multi-bin-C.xyz", "multi-bin-C.q"), ("multi-bin.xyz", "multi-bi...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/IO/Geometry/Testing/Python/Plot3D.py
Python
gpl-3.0
3,018
[ "VTK" ]
66d57682329a8fbcaab81fc7a49eb6ab910d99bf6a30169d692e64ed3d86da80
""" Collection of utilities for dealing with security files (i.e. proxy files) """ import os import stat import tempfile from DIRAC import S_OK, S_ERROR from DIRAC.Core.Utilities import DErrno from DIRAC.Core.Security.X509Chain import X509Chain # pylint: disable=import-error from DIRAC.Core.Security.Locations import ...
DIRACGrid/DIRAC
src/DIRAC/Core/Security/ProxyFile.py
Python
gpl-3.0
3,506
[ "DIRAC" ]
ecb4d44fddcc7d1063675bf0ecbafa9d195ae44628cd31687e5eb3739c2dca54
#!/usr/local/sci/bin/python # ipython # %pdb (the debugger) # %run Convert_cfnc_AUG2014.py # this should leave everything interactive #*************************************** # 22 August 2014 KMW - v1 # Converts a netCDF file to a cf (pp) compliant netCDF # #***********************************************************...
Kate-Willett/Climate_Explorer
PYTHON/Convert_TS_cfnc_NOV2014.py
Python
cc0-1.0
15,036
[ "NetCDF" ]
257a8043ca3a3a0936794b638e70f75bd80eea015d30838ed0c525efe3f6987d
#!/usr/bin/env python # -*- 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. """Script for loading data from computational chemistry files.""" import glob import logging impor...
cclib/cclib
cclib/scripts/ccget.py
Python
bsd-3-clause
7,362
[ "cclib" ]
8cda69c438b3ae3df2e946918fc8576f92e9b1db5137f0e665d487bd714d4b9f
""" Test utils for CCX """ import datetime import pytz from django.conf import settings from student.roles import ( CourseCcxCoachRole, CourseInstructorRole, CourseStaffRole ) from student.tests.factories import ( UserFactory ) from xmodule.modulestore.django import modulestore from xmodule.modulestor...
louyihua/edx-platform
lms/djangoapps/ccx/tests/utils.py
Python
agpl-3.0
4,190
[ "VisIt" ]
d2f385e39b2006a386683b68435a4d41e99b7aaf9aaeba7fa5c250859764c548
from app.drivers import base from app.drivers.options import lookup_options, sequence_options from app.readers import spectra as spectrareader from app.readers import openms as openmsreader from app.readers import tsv as tsvreader from app.actions.lookups import spectra as spectralookup from app.actions.lookups impor...
glormph/msstitch
src/app/drivers/lookups.py
Python
mit
6,055
[ "OpenMS" ]
879bad408ca09e5b78a94cb5f6ab8318642d2ae9867d8e69a64eee8069922d9c
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
Azure/azure-sdk-for-python
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models_py3.py
Python
mit
210,928
[ "ASE" ]
2db5203387e30cf5283db4e4c6a85d8d16250e4716bf03ece42be1dcc9ef45c1
# an application to generate the .xinfo file for data # reduction from a directory full of images, optionally with scan and # sequence files which will be used to add matadata. from __future__ import annotations import collections import logging import os import sys import traceback import h5py from libtbx import ...
xia2/xia2
src/xia2/Applications/xia2setup.py
Python
bsd-3-clause
19,408
[ "CRYSTAL", "VisIt" ]
6f124219e3dae3d1c2d5c38dabcce838c0d4767265b270d2d8f331619a982f2c
# -*- coding: utf-8 -*- """Functions to make 3D plots with M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Mainak Jas <maina...
mne-tools/mne-python
mne/viz/_3d.py
Python
bsd-3-clause
138,113
[ "VTK" ]
24d5f964273e211fa01644421fc5035497f98a8932056a1688e950d1bf695f01
from sys import exit from random import randint class Scene(object): def enter(self): print "This scene is not yet configured. Subclass it and implement enrer()." exit(1) class Engine(object): def __init__(self, scene_map): self.scene_map = scene_map def play(self): curr...
tridvaodin/Assignments-Valya-Maskaliova
LPTHW/ex43.py
Python
gpl-2.0
5,149
[ "BLAST" ]
225c29adefbeaeea932f5429361ee4ed26af7817d9fbdadfec2e2b36e4864a0d
# Copyright (c) 2012, 2013, 2014 James Hensman # Licensed under the GPL v3 (see LICENSE.txt) import numpy as np from collapsed_mixture import CollapsedMixture import GPy from GPy.util.linalg import mdot, pdinv, backsub_both_sides, dpotrs, jitchol, dtrtrs from utilities import multiple_mahalanobis class MOHGP(Collapse...
mzwiessele/GPclust
GPclust/MOHGP.py
Python
gpl-3.0
13,484
[ "Gaussian" ]
f1b40601015291ace4f7443f3e48142c8f9762c9398678a27166900d0a0cc3e7
from functools import partial import numpy import pandas from recordlinkage.algorithms.distance import _1d_distance from recordlinkage.algorithms.distance import _haversine_distance from recordlinkage.algorithms.numeric import _exp_sim from recordlinkage.algorithms.numeric import _gauss_sim from recordlinkage.algori...
J535D165/recordlinkage
recordlinkage/compare.py
Python
bsd-3-clause
21,547
[ "Gaussian" ]
a4af7c0ffae04f064af38cd60ea1e892d24aeea33fbf1188f6138bd0f761cf59
#!/usr/bin/env python #-*- coding:utf-8 -*- # # nest_graph.py # # This file is part of the NNGT project to generate and analyze # neuronal networks and their activity. # Copyright (C) 2015-2019 Tanguy Fardet # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Genera...
Silmathoron/NNGT
nngt/simulation/nest_graph.py
Python
gpl-3.0
15,115
[ "NEURON" ]
bf22c1157fcf998b365df19887af61b46b18271b7a606a0eb198edd34d3da517
#!/usr/bin/env python # vim: sw=2 ts=2 import click import os import sys hexboard_sizes = ['tiny', 'xsmall', 'small', 'medium', 'large', 'xlarge'] @click.command() ### Cluster options @click.option('--cluster-id', default='demo', show_default=True, help='Cluster identifier (used for prefixing/naming v...
2015-Middleware-Keynote/demo-ansible
run.py
Python
apache-2.0
14,808
[ "VisIt" ]
681d4098ff286042ad96bfbef3735fb4abcf93bc6a51a21034b1258140b20279
#!/usr/bin/python # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
google-code/android-scripting
python/build.py
Python
apache-2.0
4,901
[ "ASE" ]
51ff3d1f84a0e5c1c99718aad5b23047b71cc6ab8c976ab0c39b1e87eabade76
"""The suite of window functions.""" import numpy as np from scipy import special, linalg from scipy.fftpack import fft __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', 'blackmanharris', 'flattop', 'bartlett', 'hanning', 'barthann', 'hamming', 'kaiser', 'gaussian', 'gene...
ygenc/onlineLDA
onlineldavb_new/build/scipy/scipy/signal/windows.py
Python
gpl-3.0
13,472
[ "Gaussian" ]
f24a175ce49ec932b63d265d59723a54d99498813856a070f9cec57bb9f28f83
# Copyright 2022 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
tensorflow/probability
tensorflow_probability/python/math/psd_kernels/exponential_curve.py
Python
apache-2.0
4,661
[ "Gaussian" ]
756c9cfe73a46542a3892389a221a7711afca2d79840d5b4821bdc2ca58fc191
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
mengxn/tensorflow
tensorflow/contrib/kernel_methods/python/mappers/random_fourier_features.py
Python
apache-2.0
6,550
[ "Gaussian" ]
bcd28220d92319c0e7eb97fc8303c8fea34acffb88e27357ba961a7f115e457a
#! /usr/bin/env python import sys import numpy as np import matplotlib.pyplot as plt import scipy.io.netcdf as netcdf from scipy.interpolate import interp1d plt.ion() dir0 = '../run/mnc_test_' file1 = 'state.0000000000.t001.nc' if len(sys.argv) > 1: dir0 = dir0 + str(format(sys.argv[1])).zfill(4) + '/' # physica...
bderembl/mitgcm_configs
gravcurrent/scripts/front_velocity.py
Python
mit
2,407
[ "NetCDF" ]
cd1eb2c9c662e6e10b769bd1b09a73680d6881d356e31b735263d9b403f2a7b0
#!/usr/bin/env python import sys import os import math # ensure that the kicad-footprint-generator directory is available #sys.path.append(os.environ.get('KIFOOTPRINTGENERATOR')) # enable package import from parent directory #sys.path.append("D:\hardware\KiCAD\kicad-footprint-generator") # enable package im...
SchrodingersGat/kicad-footprint-generator
scripts/Crystals_Resonators_SMD/make_crystal_smd.py
Python
gpl-3.0
34,432
[ "CRYSTAL" ]
1127b6aa9b328d3792bc49b71cdee8b79f735294305b214dd165d2cdb74ceda9
words = [ "abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act", "action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit", "adult", "adv...
inuitwallet/bippy
res/wordlists/bip39.py
Python
mit
19,271
[ "BLAST", "CASINO", "CRYSTAL", "Galaxy", "Jaguar", "VisIt" ]
306441fc725efe9752248f299a0efc3cc17ff115c7ce7c2dd4f3bc802d3c9f29
#!/usr/bin/env python3 ######################################################################## # Solves problem 5 from projectEuler.net. # Finds the least common multiple of the first 20 integers. # Copyright (C) 2010 Santiago Alessandri # # This program is free software: you can redistribute it and/or modif...
sanSS/programming-contests
project-euler/problem005.py
Python
gpl-3.0
1,419
[ "VisIt" ]
9f064577e6cf5c3a04dd3c6fefa811264093ca4f48a81a1cd477406069576c11
from datetime import date from django.db import models from django.utils.translation import ugettext_lazy as _ from phonenumber_field.modelfields import PhoneNumberField class Customer(models.Model): GENDERS = ( ('u', _("Unknown")), ('f', _("Female")), ('m', _("Male")), ) RELATI...
dogukantufekci/supersalon
supersalon/customers/models.py
Python
bsd-3-clause
2,495
[ "VisIt" ]
228feb95166dc2c080ce9f5f9c6499c17bb6a142eff73fdd661cb97adb4f5c29
import re import copy as cp import cStringIO from itertools import ifilter, ifilterfalse import logging import operator as op from antlr3.tree import CommonTree as AST from lib.typecheck import * import lib.const as C import lib.visit as v from .. import util from ..anno import parse_anno from . import class_nonce,...
plum-umd/pasket
pasket/meta/clazz.py
Python
mit
22,650
[ "VisIt" ]
4ce564ed36576ecee0b95a9a00d9137c7b1b29b91bc7760bfd77b89ede99b868
from distutils.core import setup import py2exe import sys import os import os.path import fnmatch import glob import subprocess import sys import tarfile import shutil #Local Imports from gui import guids userdir = os.path.join(os.path.expanduser('~'), 'eopk') #These may require updating depending o...
gryffon/eggofpanku
src/setup.py
Python
gpl-2.0
10,027
[ "VisIt" ]
15fd76762b93d56f43f2be8cd327585852912c7a42b271520a6c4a9bf4a7e7be
from pywps import Process from pywps import LiteralInput, LiteralOutput from pywps.inout.literaltypes import AllowedValue from pywps.inout.literaltypes import AnyValue from pywps.inout.literaltypes import ValuesReference # from pywps import BoundingBoxInput from pywps import BoundingBoxOutput from pywps import ComplexI...
bird-house/emu
emu/processes/wps_inout.py
Python
apache-2.0
11,089
[ "NetCDF" ]
5c20c6b7447eceabf4f8b2e8481d4320e30ec12b6e0059c9a7f2ef27042e6dd0
# This file is adapted from https://github.com/ray-project/ray/blob/master # /examples/rl_pong/driver.py # # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/zoo/examples/ray_on_spark/rl_pong/rl_pong.py
Python
apache-2.0
11,702
[ "NEURON", "ORCA" ]
8d795ed54e55d5b43a60bcbf8ec028e3e2e21c401d86feffa97f0ec76ed020a8
#!/usr/bin/env python # encoding: utf-8 # # @Author: Brian Cherinka, José Sánchez-Gallego, Brett Andrews # @Date: Oct 25, 2017 # @Filename: base.py # @License: BSD 3-Clause # @Copyright: Brian Cherinka, José Sánchez-Gallego, Brett Andrews from __future__ import absolute_import, division, print_function from astropy ...
albireox/marvin
python/marvin/utils/datamodel/drp/MPL.py
Python
bsd-3-clause
4,525
[ "Brian" ]
52ec5b2b517415e078edf7807cbad9d5dc14e9d0ac4a2001fb09f2edce882725
""" Parses the python AST below, transforms it to C, JITs it, and runs it. """ import logging logging.basicConfig(level=20) import numpy as np import ctree.np from ctypes import * from ctree.frontend import get_ast from ctree.c.nodes import * from ctree.templates.nodes import * from ctree.transformations import * f...
ucb-sejits/ctree
examples/TemplateDoubler.py
Python
bsd-2-clause
3,787
[ "VisIt" ]
f17da2e71c291d80aafd00c173a2c84f8b43224be8e9162909b9ffebd2183197
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014-2017 Vincent Noel (vincent.noel@butantan.gov.br) # # This file is part of libSigNetSim. # # libSigNetSim 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...
vincent-noel/libSigNetSim
libsignetsim/model/sbml/Unit.py
Python
gpl-3.0
5,106
[ "Avogadro" ]
0a4160ac78e6b60f50e0f08fed5414b7402e8d14338fbf7fc0c38e81e8de5a74
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from netCDF4 import Dataset #try: # from netCDF4 import Dataset #except: # from pupynere import netcdf_file as Dataset def profile_from_nc(filename, pid=None): """ Extract Argo profiles from a netCDF file If n is not given, extract ...
castelao/pyARGO
argo/argo.py
Python
bsd-3-clause
2,280
[ "NetCDF" ]
1228745c572085d01919f9f91b2f599d4890287357130644e82d111029734329
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # _generate_pyx.py to generate the docstrings for the ufuncs in # scipy.special at the C level...
Eric89GXL/scipy
scipy/special/add_newdocs.py
Python
bsd-3-clause
185,466
[ "Gaussian" ]
2c8b36843f3e789f035a5cd1cfc9f7ece3c97550661f57c47e48b4d0d3bd06c0
# -*- coding: utf-8 -*- """ Created on Thu Oct 11 16:31:29 2012 @author: Afsar This module extracts information from the bound structures involved in a complex It performs mapping between the sequences of the bound and unbound sequences which are extracted from their structure files. This is done using global se...
foxtrotmike/pairpred
getPair.py
Python
gpl-3.0
5,353
[ "Biopython" ]
e42bbc53b822db8401298072d919eede92977d11f12c790e46033545986489bf
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 ...
kdart/pycopia
WWW/pycopia/WWW/useragents.py
Python
apache-2.0
8,690
[ "VisIt" ]
610850f92017173ae918cb6d0591cf28e786d8736782c0894167319838821dac
# -*- coding: utf-8 -*- """ pytasa.anisotropy_index - measures of elastic anisotropy This module provides functions that report on the magnitude of elastic anisotropy. """ import numpy as np from .polycrystal import isotropic_limits def zenerAniso(Cij,eCij=np.zeros((6,6))): """Returns Zener anisotropy index, A...
alanfbaird/PyTASA
pytasa/anisotropy_index.py
Python
mit
1,565
[ "CRYSTAL" ]
242c6b166f6c840b05f5db51882707c3e341d794176b19f0930d75b302196f79
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
michielkleinnijenhuis/NeuroBlender
utils.py
Python
gpl-3.0
23,305
[ "Mayavi", "VTK" ]
c73b163d86941905294a60bb6ab51dabe73c6a2b3f08573f13c245a4d8867f1f
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """Death by Captcha HTTP and socket API clients. There are two types of Death by Captcha (DBC hereinafter) API: HTTP and socket ones. Both offer the same functionalily, with the socket API sporting faster responses and using way less connections. To access the socket A...
rtfm-ctf/rtfmapi
providers/captcha/deathbycaptcha.py
Python
gpl-2.0
15,730
[ "VisIt" ]
5cf9caf5b16ca3931e1b4d0485f8db57bf9b05937ce48f3fc75e7ee92d445647
# #@BEGIN LICENSE # # PSI4: an ab initio quantum chemistry software package # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later ver...
spring01/libPSI
lib/python/p4util/basislistdunning.py
Python
gpl-2.0
31,212
[ "Psi4" ]
5a1d9cd5234780b7d58419f5aba09ed7b5750c2df0329373680f745b6bc11d32
""" Generators for random graphs. """ import itertools import math import networkx as nx from networkx.utils import py_random_state from .classic import empty_graph, path_graph, complete_graph from .degree_seq import degree_sequence_tree from collections import defaultdict __all__ = [ "fast_gnp_random_graph", ...
SpaceGroupUCL/qgisSpaceSyntaxToolkit
esstoolkit/external/networkx/generators/random_graphs.py
Python
gpl-3.0
43,392
[ "VisIt" ]
a200b4425462bd8da04081e927e16f491377afd1eb48d0c2ec2b0e1ffe64f9f8
#!/galaxy/home/mgehrin/hiclib/bin/python """ Returns a bed-like translation of a CDS in which each record corresponds to a single site in the CDS and includes additional fields for site degenaracy, position ind CDS, and amino acid encoded. usage: %prog nibdir genefile [options] -o, --outfile=o: output file ...
bxlab/HiFive_Paper
Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/gene_fourfold_sites.py
Python
bsd-3-clause
7,698
[ "Amber", "Galaxy" ]
278a9848ea0c499c0a54de70f6bb48400fa6301445effe02b14e6a20477e751d
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
harterj/moose
modules/porous_flow/doc/content/modules/porous_flow/tests/poro_elasticity/terzaghi.py
Python
lgpl-2.1
5,002
[ "MOOSE" ]
9f8dc1e15909fad594dcd9b4cfef34c9938d5f070b43546d5772724b6d7e82e5
from rdkit import Chem from numpy.testing import assert_almost_equal from mordred import Calculator, ExtendedTopochemicalAtom references = { # Roy et. al. Quantitative Structure-Activity Relationships in Drug Design, # Predictive Toxicology, and Risk Assessment. p. 65 "O=Cc1c(Cl)cccc1": { "ETA...
mordred-descriptor/mordred
mordred/tests/test_ETA.py
Python
bsd-3-clause
4,162
[ "RDKit" ]
3412d17c895ca5e5ab241ee7fd3fb1c6d3aa2202617886428da90b9bf6746fde
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright (C) 1996-2019 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LICENSE.TXT. By continuing ...
FabianHahn/shoveler
thirdparty/freetype/src/tools/glnames.py
Python
mit
106,054
[ "FEFF" ]
b66828452039530dc3d3b4d5e5249fb553ff61475feb0aa6d0f6cddf41703134
#!/usr/bin/env python # ----------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------...
Jorge-C/bipy
skbio/parse/sequences/tests/test_fasta.py
Python
bsd-3-clause
4,117
[ "scikit-bio" ]
559d4c180d6585a1f2f570e4e8c8485b3daaaa639b34e24e4a352cf9508bc63c
'''DFS-iterative (G, s): //Where G is graph and s is source vertex let S be stack S.push( s ) //Inserting s in stack mark s as visited. while ( S is not empty): //Pop a vertex from stack to visit next v = S.top( ) ...
Faraaz54/python_training_problems
hacker_earth/algorithms/depth_first.py
Python
mit
1,416
[ "VisIt" ]
ae258a3c8716a5c5d7c7dcbf833b1fd6642970cac1ae47c68435ce329e621e3e
""" Ported first from the astroML project: http://astroml.org/ Ported again from the astropy project: http://astropy.org/ Bayesian Blocks for Time Series Analysis ======================================== Dynamic programming algorithm for solving a piecewise-constant model for various datasets. This is based on the al...
erh3cq/hyperspy
hyperspy/external/astropy/bayesian_blocks.py
Python
gpl-3.0
17,836
[ "Gaussian" ]
d064c80448ec59e8bda4a9b5d051f8c21db8bedd810f953369a569eada4c28bc
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/zoo/orca/learn/mxnet/estimator.py
Python
apache-2.0
14,429
[ "ORCA" ]
bc472ff4d8d400573421847e3a543f1e6ac7abda9be68947bd37789fd13a0fed
# -*- coding: utf-8 -*- """High level API functions for the PyBEL processor.""" import zlib import json import pybel import logging import requests from functools import lru_cache import pybel.constants as pc from pybel.io.sbel import add_sbel_row from .processor import PybelProcessor logger = logging.getLogger(_...
johnbachman/indra
indra/sources/bel/api.py
Python
bsd-2-clause
8,585
[ "Pybel" ]
6af64477db8bdcafbf542cfbefc68fb148d13c763d584732c44d8df289ec78a3
""" tests for the JobDB module """ #pylint: disable=protected-access, missing-docstring from __future__ import print_function import unittest from mock import MagicMock, patch from DIRAC import S_OK MODULE_NAME = "DIRAC.WorkloadManagementSystem.DB.JobDB" class JobDBTest( unittest.TestCase ): def setUp( self ): ...
petricm/DIRAC
WorkloadManagementSystem/DB/tests/Test_JobDB.py
Python
gpl-3.0
1,039
[ "DIRAC" ]
4adf09c8021271b3039091d7ffe1cce0384a436c9c47d13916155431d5f5d901
#! /usr/bin/env python # -*- coding: utf-8 -*- import warnings import numpy as np from propobject import BaseObject __all__ = ["load_cube","load_spectrum", "get_spectrum", "get_slice", "get_cube"] def load_cube(filename,**kwargs): """ Load a Cube from the given filename Returns ------- ...
MickaelRigault/pyifu
pyifu/spectroscopy.py
Python
apache-2.0
103,921
[ "Gaussian" ]
25ab52a597e4f1b6744c7b7065748c1fad5f12be9967f6bed9d4eb875b791667
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Created on Nov 14, 2012 """ __author__ = "Anubhav Jain" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Anubhav Jain" __email__ = "ajain@lbl.gov" __date__ = ...
dongsenfo/pymatgen
pymatgen/util/tests/test_io_utils.py
Python
mit
937
[ "pymatgen" ]
f90f80657d75815ad9c0b3c33d17e8df9096464f4fa0249036a47f6830bd7569
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
capoe/espressopp.soap
src/analysis/StaticStructF.py
Python
gpl-3.0
3,731
[ "ESPResSo" ]
4e9b451cb887d5b7d729bdd60a6ad4b6ca9c4377e019d4f0ade44cb98eb29abb
""" The module implements Tamaraw WF countermeasure proposed by Wang and Goldberg. """ from obfsproxy.transports.wfpadtools import const from obfsproxy.transports.wfpadtools.wfpad import WFPadTransport import obfsproxy.common.log as logging log = logging.get_obfslogger() class TamarawTransport(WFPadTransport): ...
Yawning/obfsproxy-wfpadtools
obfsproxy/transports/wfpadtools/specific/tamaraw.py
Python
bsd-3-clause
2,575
[ "VisIt" ]
0819387bf6e64d0b38da3667c6e018dd7d0c4862d7afea86de077e1c6049f743
# -*- coding: utf-8 -*- from __future__ import absolute_import import datetime from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.http import HttpResponse from django.test import TestCase from django.utils.timezone import ...
christi3k/zulip
zerver/tests/test_signup.py
Python
apache-2.0
80,490
[ "VisIt" ]
2b60972a4810cf2cac9949e98f70b45616a52ba6b7becbb447e6f5ded93c02c4
#!/usr/bin/python # --------------------------------------------------------------------------------------------------- # Copyright 2015 UCAS # # 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 ...
jCliveStewart/robotframework-DebugUI
build/lib/DebugUiLibrary/DebugUiLibrary.py
Python
apache-2.0
3,078
[ "TINKER" ]
847a2c7c66117e16f5e191780c371fe8b33c5af1640852f6121395567b5c0ea4
class World: story_text = "Hello commander!\nI see you have awoken from cryosleep. I am afraid there is some bad news...\n" \ "We have crash landed on a distant planet outside of our own Galaxy, the ship is \ndamaged and we need" \ " to find a way to survive...perhaps even return ...
CarriChapp/Nouvel-Espace
world.py
Python
mit
678
[ "Galaxy" ]
16b831323da489f98db4e1be8f67012f35b8bed39f7336867af90461f86325ca
# Made by Mr. Have fun! Version 0.2 # rewritten by Rolarga, Version 0.3 # Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project # Visit http://forum.l2jdp.com for more details import sys from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import Quest...
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/224_TestOfSagittarius/__init__.py
Python
gpl-3.0
9,723
[ "VisIt" ]
3483fd820a3e7b823ba217d6af5a556058d4485635d800890e47286349e4f5b8
######################################################################## # File: FTSJob.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/04/02 13:41:20 ######################################################################## """ .. moduleauthor:: Krzysztof.Ciba@NOSPAMgmail.com FTSJob class representing single ...
hgiemza/DIRAC
DataManagementSystem/Client/FTSJob.py
Python
gpl-3.0
27,914
[ "DIRAC" ]
0a3b19ca4f66345f158337d0e66ea4f7d38990acf110c29d316578cacd6a870b
# -*- 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-appengine-admin
tests/unit/gapic/appengine_admin_v1/test_firewall.py
Python
apache-2.0
85,557
[ "Octopus" ]
a2192cf012c3b29556a515dd9ac5a52225311b8b039a384056587036ddbfabc9
""" 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 ...
chaluemwut/fbserver
venv/lib/python2.7/site-packages/scipy/special/orthogonal.py
Python
apache-2.0
34,870
[ "Gaussian" ]
a9c55047947e77d8d5b2bba11b36120205abd1634bbfc6ece3c756afa5803174
from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import re import socket import sys import time import xml.etree.ElementTree from ..compat import ( compat_http_client, compat_urllib_error, compat_urllib_parse_urlparse, compat_urlpa...
svagionitis/youtube-dl
youtube_dl/extractor/common.py
Python
unlicense
35,542
[ "VisIt" ]
34299e65255861740b7ebbc9c8885f498bb859489d51bb8c8a61e820b645bedf
import numpy as np from ase.units import Hartree, Bohr from ase.dft.kpoints import monkhorst_pack import gpaw.mpi as mpi from gpaw.poisson import PoissonSolver, FFTPoissonSolver from gpaw.occupations import FermiDirac from gpaw.wavefunctions.pw import PW from gpaw import parsize_domain, parsize_bands, sl_default, sl_...
ajylee/gpaw-rtxs
gpaw/parameters.py
Python
gpl-3.0
8,530
[ "ASE", "GPAW" ]
e052da7725bd838db9f99568dbffc843d18048aee1577602bfadfe85923247cd
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'stereoprojUI.ui' # # Created by: PyQt4 UI code generator 4.12.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(...
mompiou/stereo-proj
stereoprojUI.py
Python
gpl-2.0
38,195
[ "CRYSTAL" ]
04eed0c1b40b2bc9b96bceedd4ef96d0e54084519ff88743926a63180653c9d3
# # Copyright (C) 2001 greg Landrum # from __future__ import print_function from rdkit.ML.Data import Quantize from rdkit.Dbase import DbConnection from rdkit import RDConfig def runIt(namesAndTypes,dbConnect,nBounds,resCol,typesToDo=['float']): results = map(lambda x:x[0],dbConnect.GetColumns(namesAndTypes[resCo...
adalke/rdkit
rdkit/ML/Data/FindQuantBounds.py
Python
bsd-3-clause
1,719
[ "RDKit" ]
a418a9ebce51acef190895667b1f621cf9af960087024ab9330a9f534ae884a7
from ase.thermochemistry import HarmonicThermo ###################################################### # Script for calculating free energies of adsorbates # ###################################################### ## more information here: https://wiki.fysik.dtu.dk/ase/ase/thermochemistry/thermochemistry.html name = ...
chemeng444/chemeng444.github.io
ASE/Transition_States/get_ads_free_energy.py
Python
gpl-2.0
1,014
[ "ASE" ]
27f22da8b42f670e77eea4257533ec9a0af97df909c0ee8745e845b6dbbdf159
import inspect from inspect import getsource import os.path as op from pkgutil import walk_packages import re import sys from unittest import SkipTest import pytest import mne from mne.utils import requires_numpydoc, _pl public_modules = [ # the list of modules users need to access for all functionality 'mne...
pravsripad/mne-python
mne/tests/test_docstring_parameters.py
Python
bsd-3-clause
10,485
[ "Mayavi" ]
36f9e4baea4fa27ecfd03421fa74c9e8665ddd4355fa825e5b739772fa65a2ec
#FILE INFORMATION """ Based mostly on the traub91proto.g by Dave Beeman Main difference is addition of Glu and NMDA channels The 1991 Traub set of voltage and concentration dependent channels Implemented as tabchannels by : Dave Beeman R.D.Traub, R. K. S. Wong, R. Miles, and H. Michelson Journal of Neurophysiolog...
BhallaLab/moose-examples
snippets/proto18.py
Python
gpl-2.0
22,511
[ "MOOSE" ]
4b4621794775d08781c23f729297fa7e4537f2115e2d7797385a5b178afebbe0
#!/usr/bin/env python ''' Created on 4 Feb 2010 @author: tcezard ''' import os, sys, logging from optparse import OptionParser import utils from utils import utils_param, utils_logging, compare_version_number,\ get_bwa_version, longest_common_substr_from_start import command_runner from utils.GenomeLoader import G...
tcezard/RADmapper
bin/run_BWA_commands.py
Python
mit
13,794
[ "BWA" ]
d2e6e0e9408689a76132908bc2c7ca087b3108a803f8a63bde6e8d9656c639e9
# # 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...
darionyaphet/spark
python/pyspark/ml/classification.py
Python
apache-2.0
110,826
[ "Gaussian" ]
31f9c63e97bf4c5db938ad78677dda8d41ab96d94bbf0bfb42e4757cad5e36a3
#!/usr/bin/env python import os import re import json import glob import shutil import argparse import subprocess import numpy as np from enum import Enum from Bio import SeqIO from cpt_gffParser import gffParse, gffWrite from Bio.SeqRecord import SeqRecord from cpt_convert_mga_to_gff3 import mga_to_gff3 from gff3 impo...
TAMU-CPT/galaxy-tools
tools/phage/autoreopen.py
Python
gpl-3.0
30,571
[ "BLAST" ]
a9fcf86e04eb3c542f2d69cd90f47e4ad42bdab4045248b03d024c9a326be427
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import numpy as np import pickle from pymatgen.util.testing import PymatgenTest from pymatgen.core.periodic_table import Element, Specie from pymatgen.core.si...
Bismarrck/pymatgen
pymatgen/core/tests/test_sites.py
Python
mit
10,854
[ "pymatgen" ]
0cca35fd61286de62b289ab041fe99f13679a8dbf9a1d678cff7788ddfee09e1
import datetime import time import zlib import hashlib import redis import re import mongoengine as mongo import random import requests import HTMLParser import tweepy from collections import defaultdict from BeautifulSoup import BeautifulSoup from mongoengine.queryset import Q from django.conf import settings from dja...
dosiecki/NewsBlur
apps/social/models.py
Python
mit
147,717
[ "BLAST" ]
6d879b127e671ec4b61db83ba74e29eed3b1c28c8c0f7627507c15aa845651e7
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: ryanss <ryanssdev@icl...
ryanss/python-holidays
holidays/countries/honduras.py
Python
mit
5,085
[ "COLUMBUS" ]
832b8f67e98b02939aa5be0f7e205688fe8c077f2abdcb021dc099d08ce12511
"""Python wrapper for GPAW's native XC functionals.""" import _gpaw from gpaw import debug codes = { 'LDA': -1, 'PBE': 0, 'revPBE': 1, 'RPBE': 2, 'PW91': 14, 'TPSS': 20, 'M06L': 21, 'revTPSS': 22 } # NOTE: when adding MGGA functionals to the above # list, self.type must be set to M...
robwarm/gpaw-symm
gpaw/xc/kernel.py
Python
gpl-3.0
2,185
[ "GPAW" ]
6cb487980565a925ef4ede7259d58def888ff77dd3b131c021b6d8bd99ffb8a4
import argparse def ParsePrep(p_prep): prep_inp = p_prep.add_argument_group('Input options') prep_inp.add_argument('-s', dest='sg', required=True, help='sgRNA Information Table (required)', metavar='<sg file>') prep_inp.add_argument('-f', dest='fwd', required=True, help='Forward Fastq File (required)', met...
bm2-lab/cage
src/ui/ui_prep.py
Python
mit
1,119
[ "BWA" ]
48e2d0469c1a0987c82042c40b2867b5c408d5b606bc5a3a5b4b1dd878a050da
# -*- coding: UTF-8 -*- # Copyright 2011-2020 Rumma & Ko Ltd # License: GNU Affero General Public License v3 (see file COPYING for details) import datetime from dateutil.easter import easter from dateutil.rrule import DAILY, WEEKLY, MONTHLY, YEARLY from django.db import models from django.conf import settings from d...
lino-framework/xl
lino_xl/lib/cal/choicelists.py
Python
bsd-2-clause
8,604
[ "VisIt" ]
45e9223e0e604304add51d8cdfbcff9b81d3f0a299a222c3f7a74f377fda2647
import collections import itertools import traceback import operator import sys import re from datetime import timedelta from urllib import urlencode from urlparse import urljoin from twisted.words.protocols import irc from twisted.internet import reactor, defer, error, protocol, task from twisted.web import xmlrpc fr...
pound-python/infobob
infobob/irc.py
Python
isc
22,005
[ "VisIt" ]
1339a05c54a923efcd9bb6718c19721cebd1ef7493330e76fb987120b7c2a2d1
from ase.lattice.surface import fcc100, add_adsorbate from ase.constraints import FixAtoms, FixedPlane from ase.calculators.emt import EMT from ase.optimize import QuasiNewton # 2x2-Al(001) surface with 3 layers and an # Au atom adsorbed in a hollow site: slab = fcc100('Al', size=(2, 2, 3)) add_adsorbate(slab, 'Au', 1...
askhl/ase
doc/tutorials/constraints/diffusion4.py
Python
gpl-2.0
932
[ "ASE" ]
da97b8c4dcab266b6e8d03ee6d204c04684269a0f7c9e4204fb57de45a2f1a6e
from satistjenesten.utils import load_area_def from satistjenesten.image import add_graticules_to_img from satistjenesten.image import add_caption_to_img from satistjenesten.image import save_reduced_jpeg from copy import deepcopy, copy from pyresample import kd_tree, geometry from osgeo import gdal, osr from PIL impor...
mitkin/satistjenesten
satistjenesten/scene.py
Python
mit
10,156
[ "Gaussian" ]
6998fcbd1daa59c4bd8ff6b783cf070e51fa6f56a06c1d4246e6b47d89799d98
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # Copyright 2015-2018 lamarpavel # # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Lic...
qutebrowser/qutebrowser
tests/unit/browser/webkit/test_cache.py
Python
gpl-3.0
6,127
[ "VisIt" ]
67b9d97f766fcdf1bb578fafc68222c95c5a589cd68483eb6ee009a4ef5c533b
import collections import datetime from merc import feature from merc import message INFO_TEMPLATE = """\ ____ __/ / /___ _ ___ ________ /_ . __/ ' \/ -_) __/ __/ /_ __/_/_/_/\__/_/ \__/ /_/_/ The Modern Extensible Relay Chat daemon, version {version}. Copyright (C) {year}, #merc-devel This softwar...
merc-devel/merc
merc/features/rfc1459/info.py
Python
mit
2,758
[ "VisIt" ]
b97f5c90a1388aa57c897dba5765032f43a9eba1c6128e0b65c01feb0fc7ba69
""" ============= DON'T MODIFY THIS FILE ============ This is the boilerplate default configuration file. Changes and additions to settings should be done in /bp_content/themes/<YOUR_THEME>/config/ rather than this config. """ import os config = { # webapp2 sessions 'webapp2_extras.sessions': {'secret_key': ...
ThomasMarcel/webapp-course
resources/gae-boilerplate/bp_includes/config.py
Python
apache-2.0
4,450
[ "VisIt" ]
ad8550542de2d8f04e8f5df447550415085410a3256ccdf18d9f4badaec39bdf
import sys import tempfile import shutil import time import os import pandas from pandas.testing import assert_frame_equal sys.path.insert(1, "../../") import h2o from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator genmodel_name = "h2o-genmodel.jar" def download_mojo(model, ...
michalkurka/h2o-3
h2o-py/tests/testdir_misc/pyunit_mojo_predict.py
Python
apache-2.0
12,620
[ "Gaussian" ]
b20fc5de5c5a76425783ccab965c8d31686ccdb375bdb81dbeaeb466df99b51a
import socket, re, sys from codecs import encode, decode from . import shared def get_whois_raw(domain, server="", previous=None, rfc3490=True, never_cut=False, with_server_list=False, server_list=None): previous = previous or [] server_list = server_list or [] # Sometimes IANA simply won't give us the right root W...
LukeMurphey/splunk-network-tools
src/bin/network_tools_app/pythonwhois/net.py
Python
apache-2.0
4,591
[ "MOE" ]
a4bbf16405d2c7b65bc41fda3bcb1726b795e3f6f8ae13ee60da3d212fcbc133
# -*- coding: utf-8 -*- """ Acceptance tests for studio related to the outline page. """ import itertools import json from datetime import datetime, timedelta from unittest import skip from nose.plugins.attrib import attr from unittest import skip from pytz import UTC from base_studio_test import StudioCourseTest fro...
Edraak/edraak-platform
common/test/acceptance/tests/studio/test_studio_outline.py
Python
agpl-3.0
84,471
[ "VisIt" ]
83a4135caa60f0f25772d5bcb87fcff44819fcd4719456f705780fcdf70670a2
#!/usr/bin/env python # pragma: no testimport ############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.or...
minesense/VisTrails
vistrails/tests/runtestsuite.py
Python
bsd-3-clause
21,059
[ "VTK" ]
23e74e1088b33bcfc96cf56b4aae0ee5a08a46958aa9a1f0edd527ece67157d8
"""Unit test for util.py""" from .. import user from ..util import lat2W from .. import util from ..weights import W, WSP from ...io.FileIO import FileIO as psopen from ... import examples as pysal_examples import numpy as np import unittest class Testutil(unittest.TestCase): def setUp(self): self.w = use...
sjsrey/pysal_core
pysal_core/weights/tests/test_util.py
Python
bsd-3-clause
7,502
[ "COLUMBUS" ]
a5026ea8e8de816436fa7da8e898c369616f9c3faeeca5bd2c87db1de9611ed9
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Access molecule geometry. Mole.natm is the total number of atoms. It is initialized in Mole.build() function. ''' from pyscf import gto mol = gto.M( atom = ''' O 0.000000 0.000000 0.117790 H 0.000000 0.755453 -0....
sunqm/pyscf
examples/gto/10-atom_info.py
Python
apache-2.0
795
[ "PySCF" ]
4b6c02d4800a49260694f548d216591dd6e842ebdf39f53d0599b5156c5ac234
#! /usr/bin/env python # # Hey guys, here's a quick demo of how to use Gem's python client library to # build something awesome and quick. Below I've outlined the specs for a simple # CLI wallet app. # # round-cli: A super simple command-line bitcoin wallet to show off Gem's API! # # Requirements: # - A user can create...
GemHQ/round-py
examples/cli.py
Python
mit
10,173
[ "VisIt" ]
d1d3a051274953035749e0c0c9ae5d0f6154df5e4fc19b6eab12d02f7c650680
""" tests for advanced course """ from bok_choy.promise import EmptyPromise from bok_choy.web_app_test import WebAppTest from unittest import skip from ...fixtures.course import CourseFixture from ...pages.common.logout import LogoutPage from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.ga_login_and_re...
nttks/edx-platform
common/test/acceptance/tests/lms/test_ga_advanced_course.py
Python
agpl-3.0
17,943
[ "VisIt" ]
b12333f3d8dd3de315eab989744c881c019a61d4bec8606a327734879a28b64e
# # Copyright (C) 2013,2014 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 l...
mgusenbauer/espresso
samples/python/lj_liquid.py
Python
gpl-3.0
6,853
[ "ESPResSo" ]
bdc5dffdf32bc15a23ba34185bc3afd05702e274b02abd1aeda2e652381efb8e
""" ConfigurationData module is the base for cfg files management """ import os.path import zlib import zipfile import _thread import time import DIRAC from diraccfg import CFG from DIRAC.Core.Utilities.File import mkDir from DIRAC.Core.Utilities import List, Time from DIRAC.Core.Utilities.ReturnValues import S_OK, S...
DIRACGrid/DIRAC
src/DIRAC/ConfigurationSystem/private/ConfigurationData.py
Python
gpl-3.0
15,213
[ "DIRAC" ]
495f9f52052c50f0889d1fb4995309893ae5d11b89edd7548276c783de86054d
# Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
rhijul/jaikuengine
common/im.py
Python
apache-2.0
11,250
[ "VisIt" ]
f6a5fa551a08a03f8e7f3522b88ddf5440d98204bd5d3f10f5b644fb8366e975