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 -*- from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils.translation import ugettext_lazy as _ class VisitManager(models.Manager): """ Simplify some common function to get ...
piotrek-golda/CivilHubIndependantCopy
hitcounter/models.py
Python
gpl-3.0
1,696
[ "VisIt" ]
353594365eb2c85bde21e1e2185d1a490ea5432e3c38be7d7b3c7e7cf9a98c49
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('contacts', '0004_auto_20160206_1558'), ] operations = [ migrations.AddField( model_name='scheduledphonecall', ...
I-TECH-UW/mwachx
contacts/migrations_old/0005_auto_add_visit_status.py
Python
apache-2.0
1,114
[ "VisIt" ]
cc9fd4da1418770bbf118c972020f388431d8b5154ed148b8bb2c49441f35d42
# Copyright 2011 by Andreas Wilm. All rights reserved. # Based on ClustalW wrapper copyright 2009 by Cymon J. Cox. # # Wrapper for Clustal Omega by Andreas Wilm (2011). Used _Clustalw.py # as template. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that s...
bryback/quickseq
genescript/Bio/Align/Applications/_ClustalOmega.py
Python
mit
7,249
[ "Biopython" ]
fc49521f231a32971f81b1ea60613cc716905911a4de57dc3f15135c89825a4d
#!/usr/bin/python #Python script to analyze dihedrals. Usage: "python dihedral_analyze.py (list of files to plot). D. Mobley, 5/16/07" from numpy import zeros, arange, outer, inner, float32, int16, sqrt, floor, mean, std, log, add, average, nonzero, cov, transpose, resize, array, reshape, max, array2string, sum, histog...
chris-lee-mc/MutInf
dihedral_mutent_permut_inside_calc_mutinf.py
Python
gpl-3.0
53,418
[ "Gromacs" ]
c8e47463492d159b695ab347493bba1130a751b192c80433d1c5a443ea7b1da6
try: from opencog.atomspace import AtomSpace, types, Atom, TruthValue import opencog.cogserver except ImportError: from atomspace_remote import AtomSpace, types, Atom, TruthValue from tree import * from util import * from pprint import pprint from collections import defaultdict # to debug within the cogse...
misgeatgit/opencog
opencog/python/learning/fishgram/adaptors.py
Python
agpl-3.0
21,592
[ "BLAST" ]
072e94c0f7ef665ab12ca6259cc418da625da721b11f4c19533dcd6d17d3b8a8
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements Compatibility corrections for mixing runs of different functionals. """ import abc import os import warnings from collections import defaultdict from typing import Optional, Sequence,...
gmatteo/pymatgen
pymatgen/entries/compatibility.py
Python
mit
60,598
[ "VASP", "pymatgen" ]
cfedec18c8cd0de1b90b336db302dca9a6a43167bb32d40616bc78f7e3a3f6ae
from time import time import numpy as np import matplotlib.pyplot as plt from matplotlib import rcParams import math from scipy.spatial.distance import pdist, squareform from sklearn.decomposition import PCA import os from tsptw_with_ortools import Solver from config import get_config, print_config # C...
MichelDeudon/neural-combinatorial-optimization-rl-tensorflow
Ptr_Net_TSPTW/dataset.py
Python
mit
14,639
[ "Gaussian" ]
20a7f7ddc9a2205a36cae8084714fa3a76fe0f04b389a35cc8b48f49c21d1910
"""#Takes a Python AST and converts it into a Python AST with logging. Takes a StencilModel and transforms it back into a Python AST but with rigged iterators Maybe take a PythonAST only only transform the parts necessary? This is kind of hard... """ import asp.codegen.python_ast as ast # Converts from stencil coords...
richardxia/asp-multilevel-debug
specializers/stencil/stencil_logging_transform.py
Python
bsd-3-clause
3,111
[ "VisIt" ]
8cb83ee52bac57f63f8d399789b8c124503844dff852b57b013c2984f96c2277
# This file is part of Androguard. # # Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com> # 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://...
kanpol/abugfinder
tools/modified/androguard/decompiler/dad/writer.py
Python
gpl-3.0
25,634
[ "VisIt" ]
6f4a2bca8c54b5c5b2cbacf6ada3e0f53bdea498ac99e2341b1e871fddd24733
# -*- coding: utf-8 -*- # # Neo4j.rb documentation build configuration file, created by # sphinx-quickstart on Mon Mar 9 22:41:19 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
thermistor/neo4j
docs/conf.py
Python
mit
10,659
[ "Brian" ]
52e851e78348abe484f95adf8bf543e58e5ba921e20c4fc3c90258c42cf24cdf
# /usr/bin/env python # -*- coding: utf-8 -*- """ LISA - organ segmentation tool. Liver Surgery Analyser python organ_segmentation.py python organ_segmentation.py -mroi -vs 0.6 Author: Miroslav Jirik Email: miroslav.jirik@gmail.com """ # from loguru import logger # # logger = logging.getLogger() # from loguru i...
mjirik/lisa
lisa/organ_segmentation.py
Python
bsd-3-clause
91,578
[ "Gaussian", "VTK" ]
14e72d8b9572089ebc1812da6e5ffad908a8ff6cef016f221db56960f421cd64
from InputParameters import InputParameters from Job import Job import os, sys, subprocess, shutil class PBSJob(Job): def getValidParams(): params = Job.getValidParams() params.addRequiredParam('chunks', "The number of PBS chunks.") # Only one of either of the next two paramteres can be specified p...
amburan/moose
framework/scripts/ClusterLauncher/PBSJob.py
Python
lgpl-2.1
5,409
[ "MOOSE" ]
ef07d232f562c364f8cf4a7aa39111a640a7bc8e2078caf80a1a5c9b5374bad7
#!/usr/bin/env python """ Script to prepare input files for Amber thermodynamic integration calculations """ import argparse import numpy as np import os import shutil # omg imports import omg.amber ###user input### def get_args(): "Argument parser for amb_ti_create_inputs.py" parser = argparse.ArgumentParse...
eduardoftoliveira/qt_scripts
scripts/amb_ti_create_inputs.py
Python
gpl-3.0
3,348
[ "Amber" ]
de2b1b42f0b684b84672fdf06453eac9609c4f96bc7b5550cc247ca071253b56
""" This is a test of the chain PilotsLoggingClient -> PilotsLoggingHandler -> PilotsLoggingDB It supposes that the DB is present, and that the service is running """ import unittest import sys from DIRAC.WorkloadManagementSystem.Client.PilotsLoggingClient import PilotsLoggingClient from DIRAC.Core.Base.Scr...
petricm/DIRAC
tests/Integration/WorkloadManagementSystem/Test_PilotsLoggingClient.py
Python
gpl-3.0
5,293
[ "DIRAC" ]
89b9ad000447957e0181d800fd8bad9e7532a4c70f004be1d6d0b5d93a2c4675
# NOTE: This example uses the next generation Twilio helper library - for more # information on how to download and install this version, visit # https://www.twilio.com/docs/libraries/python from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account account = "ACXXXXXXXXXXXXXXXXXXXXX...
teoreteetik/api-snippets
notifications/rest/bindings/create-binding/create-binding.6.x.py
Python
mit
702
[ "VisIt" ]
2930ee334bfde583118ff6d79a8686978c6924a392b0e71ecc5350c17d8d9936
# gp_bases.py """Utilities module containing various useful functions for use in other modules. """ import numpy as np from enterprise.signals.parameter import function ###################################### # Fourier-basis signal functions ##### ###################################### __all__ = [ "createfourierd...
nanograv/enterprise
enterprise/signals/gp_bases.py
Python
mit
8,014
[ "Gaussian" ]
e35656dec27154601117d3637d41f4900a21e40d70f3b8f4102a8e919a49abd1
import time, sys, os import numpy as np np.errstate(invalid='ignore') from prospect.models import model_setup from prospect.io import write_results from prospect import fitting from prospect.likelihood import lnlike_spec, lnlike_phot, write_log from dynesty.dynamicsampler import stopping_function, weight_function, _kl...
bd-j/prospector
scripts/prospector_dynesty.py
Python
mit
6,908
[ "Gaussian" ]
7cc418225fbaa965b01dba26560f4474fb8d62627acced41fcabccee671528dc
import unittest import tensorflow as tf from pymatgen.core import Lattice, Structure from megnet.utils.data import get_graphs_within_cutoff class TestGeneralUtils(unittest.TestCase): def test_model_load(self): s = Structure(Lattice.cubic(3.6), ["Mo", "Mo"], [[0.5, 0.5, 0.5], [0, 0, 0]]) center_i...
materialsvirtuallab/megnet
megnet/utils/tests/test_data.py
Python
bsd-3-clause
621
[ "pymatgen" ]
792cccc6a69d4b17ce36472f6019fdef41ef7fcbbcecb0fa72fd10b5e9b679b9
# //======================================================================= # // Copyright JobPort, IIIT Delhi 2015. # // Distributed under the MIT License. # // (See accompanying file LICENSE or copy at # // http://opensource.org/licenses/MIT) # //======================================================================...
IIIT-Delhi/jobport
placement/jobport/models.py
Python
mit
8,336
[ "VisIt" ]
fbae5cb986620a013cfc6d3a8f8d6cdf6b808629dc480096ae3343bea9927613
"""Provides class for evaluating hand pose accuracy. HandposeEvaluation provides interface for evaluating the hand pose accuracy. ICVLHandposeEvaluation, NYUHandposeEvaluation are specific instances for different datasets. Copyright 2015 Markus Oberweger, ICG, Graz University of Technology <oberweger@icg.tugraz.at> ...
moberweger/deep-prior-pp
src/util/handpose_evaluation.py
Python
gpl-3.0
48,347
[ "VTK" ]
49d43f9b9a4bbf5e494409077013a29160fa322952db71382e051bff3d486f47
""" Integrates download callbacks with an external mainloop. While things are being downloaded, Zero Install returns control to your program. Your mainloop is responsible for monitoring the state of the downloads and notifying Zero Install when they are complete. To do this, you supply a L{Handler} to the L{policy}. "...
afb/0install
zeroinstall/injector/handler.py
Python
lgpl-2.1
9,160
[ "VisIt" ]
e5366e2a89e9d0f1194fa097bf6d48fe04ff96d77384977a95f955bf42478ad1
"""Setup script for Bokeh.""" #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENCE.txt, distributed with this software. #---------...
satishgoda/bokeh
setup.py
Python
bsd-3-clause
19,300
[ "GULP" ]
385ce7f63ee4ed351c460a8ce705f858eb15ee77343de56f54340f8bb40fddce
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.2 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
skg-net/ansible
lib/ansible/modules/network/avi/avi_gslbgeodbprofile.py
Python
gpl-3.0
4,215
[ "VisIt" ]
1004a52fa125210425088f116b82c2fd7582a654b2d5fdae70a10f4f5a3e9526
# Data_Error_Gen # Adds Gaussian errors to (z, vz) data # Method: take (z, vz) points for each star as centres of Gaussians with spread # sigma_z, sigma_vz. Then resample the star's (z, vz) data from that Gaussian import numpy as np import numpy.random as rand import pdb in_filename = '/home/hsilverw/LoDaM/darcoda/...
PascalSteger/gravimage
programs/reducedata/gr_data_error_gen.py
Python
gpl-2.0
1,073
[ "Gaussian" ]
90c7ec4278d98eb75b7612cd58c61c28928c481c13bd700c583e677611099761
from __future__ import print_function """ INSTRUCTIONS This file is used to generate the test credentials The following environment variables are required: export FBUTILS_APP_ID=xxxxxxxxx export FBUTILS_APP_SECRET=xxxxxxxxxx export FBUTILS_APP_SECRETPROOF=1 export FBUTILS_APP_SCOPE=email export ...
jvanasco/facebook_utils
tests/generate_credentials.py
Python
bsd-3-clause
2,758
[ "VisIt" ]
806a865dc0b2f4d612a2c5821b24d945d5231137cf29bbe3b81843250a10ee51
""" Analyses of XMLs from a Galaxy (from directory created with get_xmls_from_galaxy.py) Need to be improved: * how many tools have a version in the tool tag ? """ ########### Import ########### import json import os import sys import re import argparse from lxml import etree import pandas as pd import numpy as n...
khillion/galaxyxml-analysis
galaxyxml_analysis/analyse_xmls.py
Python
mit
8,359
[ "Galaxy" ]
eb1e0bd4a27cc8598df7ab97c14555212abc9ff12d1bf5f3992a77b5bea4b907
# # 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...
saltstar/spark
python/pyspark/ml/regression.py
Python
apache-2.0
64,074
[ "Gaussian" ]
df3139bb06ce49cc6cf295b2b40155d6f623c7fd8cc3f9c9c2c9b4c318406fb1
#!/usr/bin/env python3 # # netcdfextractor.py # # used to read data from netcdf files in a folder import os, fnmatch, pickle, math, time, datetime, numpy from scipy.io import netcdf from dateutil import tz from multiprocessing import Pool, cpu_count from pyhspf.forecasting.nrcm import NRCMGrid class N...
kbrannan/PyHSPF
src/pyhspf/forecasting/netcdfextractor.py
Python
bsd-3-clause
14,508
[ "NetCDF" ]
e40a5368d8f13c187f794863b2b14c216d11d3d2e9fcc69cf9a6b8ed43ac44d8
# Copyright (c) 2003-2014 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, o...
si618/pi-time
node_modules/grunt-pylint/tasks/lib/pylint/checkers/variables.py
Python
gpl-3.0
51,705
[ "VisIt" ]
ac2621723ee18fd682e2e79b1d6abe7513444d5c34f06764047975639f60a15c
# Dutch / Nederlands - Translations from seleniumbase import BaseCase from seleniumbase import MasterQA class Testgeval(BaseCase): def __init__(self, *args, **kwargs): super(Testgeval, self).__init__(*args, **kwargs) self._language = "Dutch" def openen(self, *args, **kwargs): # open(...
mdmintz/SeleniumBase
seleniumbase/translate/dutch.py
Python
mit
21,024
[ "VisIt" ]
c45eb13643e01cb505c06d8c1446d34c02281e1917c462631f368c4fc50b4b40
from __future__ import division, absolute_import, print_function import os import sys import types import re import warnings from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype from numpy.core import ndarray, ufunc, asarray import numpy as np # getargspec and formatargspec were removed in Python...
tynn/numpy
numpy/lib/utils.py
Python
bsd-3-clause
36,337
[ "VisIt" ]
3f651b78649426421dd2a32bd36bb411dbd4afeea0344b42eac6b0e22607e03b
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>' import httplib, hashlib, zlib, string from io import BytesIO from tempfile i...
silentfuzzle/calibre
src/calibre/srv/tests/http.py
Python
gpl-3.0
14,483
[ "MOOSE" ]
66be1028568b6742da3eb13ca1bafde18fabce76024919f571cfbfdea350e9fb
"""This module defines an ASE interface to SIESTA. http://www.uam.es/departamentos/ciencias/fismateriac/siesta """ import os from os.path import join, isfile, islink, getmtime from cmath import exp import array import numpy as np from ase.data import chemical_symbols from ase.units import Rydberg, fs from ase.io.si...
JConwayAWT/PGSS14CC
lib/python/multimetallics/ase/calculators/siesta.py
Python
gpl-2.0
31,027
[ "ASE", "SIESTA", "VASP" ]
3ff6fee0e9a1b4af164d0391c2aa500ea7a2d7859ac24824247fedeba63b2bee
""" An utility to load modules and objects in DIRAC and extensions, being sure that the extensions are considered """ __RCSID__ = "$Id$" import re import imp import pkgutil import collections from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities import DErrno from DIRAC.Core.Utilities import List, DIRAC...
chaen/DIRAC
Core/Utilities/ObjectLoader.py
Python
gpl-3.0
7,675
[ "DIRAC" ]
3e652e50dacb3d231358b2597ba713f9e5fb94835cc796f61459cb4f8c3d38b8
''' Find files of interest and rangle them into a list of input_dicts Julia Signell 2015-05-07 ''' from __init__ import * from process_files import * def already_processed(path, f): '''Return True if a file has already been processed to netcdf.''' try: processed_file = posixpath.join(path, 'processe...
jsignell/MpalaTower
munging/find_files.py
Python
mit
5,271
[ "NetCDF" ]
525b4ec7d0b9d6f8265c755a1c42cfdb5ec927d8a70b04914db807089f425ab0
#!/usr/bin/env python ''' X2C can be solved in different AO basis: the (j-adapted) spinor basis and the spin-orbital real-spherical GTO basis. Ideally, they should converge to the same SCF solutions. However, different solutions may be found in many open-shell systems. It often caused by symmetry (the z-component of t...
sunqm/pyscf
examples/x2c/03-x2c_ghf.py
Python
apache-2.0
1,334
[ "PySCF" ]
7054acd2da9171434ed19deb5c178cc5bfc68092c765950234ffaf424b631856
import unittest import pylab as pl import matplotlib as mpl import itertools import sys import math import timeit import copy import time import struct import scipy.stats.mstats as stats import ConfigParser import os.path import getopt from em import * from all_pairs_BIC_score import AllPairsBicScore MINVALUEFORMINU...
mbdriscoll/asp-old
cluster_on_cloud.py
Python
bsd-3-clause
27,634
[ "Gaussian" ]
6b38781810950cc5ea01726b8ac1345371dff32b0c16066b897fa347765ced46
""" Methods related to aligning reads. This module was created because of a circular import issue with celery. ... File "/home/glebk/Projects/churchlab/genome-designer-v2/genome_designer/pipeline/read_alignment.py", line 9, in <module> from main.models import clean_filesystem_location File "/home/glebk/Proje...
woodymit/millstone
genome_designer/pipeline/read_alignment_util.py
Python
mit
2,508
[ "BWA" ]
66fa6ba02bedfe01e335e3c349a92bfb70ef1ca49d5ea37dd8f8df1f6d20865f
######################## # Network to study pattern # Learning with heterogenous connectivity # Ramon Martinez 19 / 03 / 2014 ######################## import numpy as np import matplotlib.pyplot as plt import h5py from distance_functions import * from time import localtime def gradient(initial, end, N): ''' C...
h-mayorquin/Neural_Pattern_Doursat
network_5.py
Python
gpl-2.0
3,449
[ "NEURON" ]
877bdde8626c44b4dd8497be93dd34f9b6843efe0d9f8d2a0c447822b2cd1d0d
#!/usr/bin/env python ''' Created on Mar 13, 2012 ''' from pymatgen import Structure, Lattice __author__ = "Anubhav Jain" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Anubhav Jain" __email__ = "ajain@lbl.gov" __date__ = "Mar 13, 2012" import pymongo import os import ...
mp-interns/ga_optimization_ternary
db_setup/initialize_db.py
Python
mit
4,244
[ "pymatgen" ]
b3bb2dfc92596529ceefbcebdc94ddbdf8c21af53ef2b340580ef3a23655475a
# -*- coding: utf-8 -*- """ ========================================== Brainstorm Elekta phantom dataset tutorial ========================================== Here we compute the evoked from raw for the Brainstorm Elekta phantom tutorial dataset. For comparison, see [1]_ and: http://neuroimage.usc.edu/brainstorm/Tu...
mne-tools/mne-tools.github.io
0.17/_downloads/705f11964a18d8f3bd8d70a13ef43d36/plot_brainstorm_phantom_elekta.py
Python
bsd-3-clause
7,008
[ "Mayavi" ]
a8f431458c3bb9356b625b736986df814437494783669aa0a50f0b1fa1d18753
# # Copyright 2016 The BigDL 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 in ...
intel-analytics/BigDL
python/orca/example/learn/tf/transfer_learning/transfer_learning.py
Python
apache-2.0
6,835
[ "ORCA" ]
3f163aa294de80ae512bfc68a86d0b17f81d5e9c8b1afffa0db9e7a92213b433
from __future__ import division import numpy as np from numpy.linalg import solve from scipy import optimize #from scipy.optimize import approx_fprime MEAN_SHIFT = True def cov_mat(x1, x2, a, b): return a * np.exp(-b * (x1[:, np.newaxis] - x2)**2) def reg_cov_mat(x, a, b, c): return cov_mat(x, x, a, b) + c...
mlds-lab/egk
gp.py
Python
mit
5,875
[ "Gaussian" ]
828b288b7e504ca382c640dfabcf2ae07610ed11509871374b12797d1a266df2
# leaves.py # DNF plugin for listing installed packages not required by any other # installed package. # # Copyright (C) 2015 Emil Renner Berthing # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public ...
jsilhan/dnf-plugins-extras
plugins/leaves.py
Python
gpl-2.0
4,877
[ "VisIt" ]
bc4f861ba15643aaf6d88f7add2a1672cc6c0e81a79bb0a0306df6aaa8e110e9
""" GlobalDeclarations gathers top-level declarations. """ from pythran.passmanager import ModuleAnalysis from beniget import DefUseChains class SilentDefUseChains(DefUseChains): def unbound_identifier(self, name, node): pass class GlobalDeclarations(ModuleAnalysis): """ Gather all kind of identi...
serge-sans-paille/pythran
pythran/analyses/global_declarations.py
Python
bsd-3-clause
1,209
[ "VisIt" ]
ee60a5deb14a1f070b52dc389c31cccbe7640248450f028c60472fdca4a23a1e
# -*- coding: utf-8 -*- from __future__ import absolute_import import diaper import fauxfactory import hashlib import iso8601 import random import re import command import yaml from collections import namedtuple from contextlib import closing from django.core.cache import cache from django.core.exceptions import Obje...
RedHatQE/cfme_tests
sprout/appliances/tasks.py
Python
gpl-2.0
107,025
[ "VisIt" ]
cd98c3fa11b88da928469cb723a3faa46ecb1fe31004078fb4e9d90a4a2deb92
#!/usr/bin/env python3 ## -*- coding: utf-8 -*- ## Copyright (C) 2014 Petri Heinilä, LGPL 2.1 import sys # http://docs.python.org/py3k/library/sys.html import argparse # http://docs.python.org/py3k/library/argparse.html import logging # http://docs.python.org/py3k/library/logging.html import datetime log = loggi...
hevi9/pynames
pynames/main.py
Python
lgpl-2.1
2,032
[ "VisIt" ]
566a3db7c604e57791dd7a56b9a3d62d92da67ad67c5734f881eef9bafbf5bdc
from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import MoveTargetOutOfBoundsException from selenium.common.exceptions import TimeoutException from selenium.webdriver.c...
natasasdj/OpenWPM
automation/Commands/browser_commands.py
Python
gpl-3.0
13,890
[ "VisIt" ]
4fbec8d2b60c8c7cb7ed58fe175bbbab01412e22652632b76b4185aa79ccd0c4
""" Helper for the CS Resources section """ __RCSID__ = "$Id$" import re import urlparse from distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error from DIRAC import S_OK, S_ERROR, gConfig from DIRAC.ConfigurationSystem.Client.Helpers.Path import cfgPath from DIRAC.Core.Utilities.Li...
fstagni/DIRAC
ConfigurationSystem/Client/Helpers/Resources.py
Python
gpl-3.0
10,903
[ "DIRAC" ]
b094f054703388553948a0e784cff6443774733ea86fba2fa9bfaf9963e746dc
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2013 Async Open Source ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public License ## as published by the Free Software Foundation; either version 2 ## of the Licens...
andrebellafronte/stoq
stoqlib/gui/search/searchdialog.py
Python
gpl-2.0
19,732
[ "VisIt" ]
ee2ebcf110884ce66bb9a56e57d0e4b148c35be0d8db9a4cdef4f0a5a300566a
import os import socket import tempfile import subprocess from adsws.testsuite import unittest, make_test_suite, run_test_suite from adsws import factory from threading import Thread import requests from splinter import Browser from adsws.core import db def run_server(server): server.serve_forever() DEBUG = F...
ehenneken/adsws
adsws/tests/check_deployment.py
Python
gpl-2.0
5,812
[ "VisIt" ]
219fa8e216ae3513110dcac4843cdda5e0f9da3401672cac9a09cbb06b9cbcdb
# -*- coding: utf-8 -*- """ Created on Fri Sep 16 12:45:25 2016 @author: cparr """ # import the necessary packages import os from skimage import io from skimage.util import random_noise from scipy import ndimage import matplotlib.pyplot as plt import numpy as np import cv2 def block_mean(ar, fact): # funct...
charparr/tundra-snow
gsmd.py
Python
mit
4,454
[ "Gaussian" ]
a15571126ce7c196bfe200e5014527197b8f9543219045305aa3534d1d442fa0
import sys from lib2to3.main import main if __name__ == '__main__': sys.exit(main("fixes")) def ten2eleven(*files): """Convert MDAnalysis 0.10.0 scripts to 0.11.0 Usage: ten2eleven('myscript.py') """ main('MDAnalysis.migration.fixes', ['-w'] + list(files))
alejob/mdanalysis
package/MDAnalysis/migration/ten2eleven.py
Python
gpl-2.0
287
[ "MDAnalysis" ]
3ba21e736f354c4bd3049f4d19da52a934021e72bca981eba746b3c4c3cd3a49
############################################################################### ## ## 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.org ## ## This file is part of VisTrails. ## ## ...
VisTrails/VisTrails
vistrails/packages/vtk/vtk_wrapper/wrapper.py
Python
bsd-3-clause
2,554
[ "VTK" ]
7d03814ac28287cb9f8d87e1e146ec4e133d29b168a3d8c0fd33346f8c039186
#!/bin/env python """ solvationtoolkit: Tools for setting up mixtures of small organic molecules for AMBER, GROMACS, OpenMM and others. ###################################################################### # SolvationToolkit: A toolkit for setting up molecular simulations of mixtures # Copyright 2011-2016 UC Irvine...
nividic/SolvationToolkit
solvationtoolkit/__init__.py
Python
lgpl-2.1
1,394
[ "Amber", "Gromacs", "OpenMM" ]
69d1b1da794aa1dbc488c7f87cd7f523de6b77c6ae22dcd76fb691977daf4d59
#!/usr/bin/env python # This example demonstrates the generation of a streamsurface. import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Read the data and specify which scalars and vectors to read. pl3d = vtk.vtkPLOT3DReader() pl3d.SetXYZFileName(VTK_DATA_ROOT + "/Data/combxyz.bin"...
CMUSV-VisTrails/WorkflowRecommendation
examples/vtk_examples/VisualizationAlgorithms/streamSurface.py
Python
bsd-3-clause
2,589
[ "VTK" ]
58a07e95031fbed0a6642acf1f9f0cda9c56ce13a3cfe03dea674baccd07fb5d
# 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_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
sargas/scipy
scipy/special/add_newdocs.py
Python
bsd-3-clause
44,029
[ "Gaussian" ]
10a9ef7d2fc744a88ee90c568abf8459bf243102248b165d76f44dd0401e07c5
"""Support for control of Elk-M1 connected thermostats.""" from elkm1_lib.const import ThermostatFan, ThermostatMode, ThermostatSetting from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, HVAC_MODE_AUTO...
lukas-hetzenecker/home-assistant
homeassistant/components/elkm1/climate.py
Python
apache-2.0
6,319
[ "Elk" ]
3f5dc4fdc7dba754b9e960fb303e3dc968776bded8b096662e9fc3f4dddc9d67
""" Miscellaneous tools for the pipeline. Some may eventually be refactored into their own modules. """ import re import itertools import argparse import pysam import pandas as pd import os import hashlib from . import procOps from .pipeline import ProcException, Procline from distutils.version import StrictVersion ...
ComparativeGenomicsToolkit/Comparative-Annotation-Toolkit
tools/misc.py
Python
apache-2.0
5,360
[ "pysam" ]
e041bc19f5fddf9fba289a4d5e995c483de1b1878f810e7f0a292fa4f96c047a
"""Contains the Transition base class.""" # transition.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import time from mpf.media_controller.core.slide im...
spierepf/mpf
mpf/media_controller/core/transition.py
Python
mit
5,391
[ "Brian" ]
3be2c6ae18317a8981af43bf0dc716ffcb9e4da5364ad48fd3953d3f0f3ad51a
# This file is part of Merlin/Arthur. # Merlin/Arthur is the Copyright (C)2011 of Elliot Rosemarine. # Individual portions may be copyright by individual contributors, and # are included in this collective work with permission of the copyright # owners. # This program is free software; you can redistribute it and/or ...
ellonweb/merlin
Arthur/views/graphs.py
Python
gpl-2.0
10,037
[ "Galaxy" ]
cba00594a644e00d7988293aa8790e2eee139bdf551a8b24600bc8a6bed9b0cd
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) #...
MDAnalysis/mdanalysis
testsuite/MDAnalysisTests/transformations/test_fit.py
Python
gpl-2.0
9,602
[ "MDAnalysis" ]
f1838ac09f5de7d93221753a8af9bea36add5a66f69450816a0fa948f30f1c14
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © 2017 Mark Wolf # # This file is part of Xanespy. # # Xanespy 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 # ...
canismarko/xanespy
tests/test_fitting.py
Python
gpl-3.0
12,700
[ "Gaussian" ]
10b9d95ea2be2116f48aaebba64bccbacd853bc793197d293218927a66ab19c9
def causeNameError(): ''' Causes a NameError ''' return moose def causeTypeError(): ''' Causes a TypeError ''' notAString = 45315 for letter in notAString: print letter def causeAttributeError(): a = 5 a.sort() def causeSyntaxError(): ''' Causes a SyntaxErr...
AmandaMoen/AmandaMoen
students/JoshuaFrailey/break_me.py
Python
gpl-2.0
373
[ "MOOSE" ]
cb3f0e2213b87e19f5853653b23385d8904e061d4725086e799f0755af0aeea7
# Copyright (C) 2012,2013,2016,2018 # 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 term...
espressopp/espressopp
src/interaction/__init__.py
Python
gpl-3.0
4,042
[ "ESPResSo" ]
5e75eb1a3f89202c385ed6ce274820f14dfde1564217cc37cb1c0b7d1f9f7b03
# coding: utf-8 from __future__ import division, unicode_literals """ This module defines the VaspInputSet abstract base class and a concrete implementation for the parameters used by the Materials Project and the MIT high throughput project. The basic concept behind an input set is to specify a scheme to generate a...
yanikou19/pymatgen
pymatgen/io/vaspio_set.py
Python
mit
61,008
[ "VASP", "pymatgen" ]
3853f4d96c82503d7ee4398616c0aebe2ea626236d0de8b727c63e8243ed4d22
"""Tests for main module ot """ # Author: Remi Flamary <remi.flamary@unice.fr> # # License: MIT License import warnings import numpy as np import pytest from scipy.stats import wasserstein_distance import ot from ot.datasets import make_1D_gauss as gauss def test_emd_dimension_mismatch(): # test emd and emd2 ...
rflamary/POT
test/test_ot.py
Python
mit
10,314
[ "Gaussian" ]
9bb30d2d452c18ee0b06e97a9810d7c56a4d5c7d0a5ae84ff522d3a83919d29c
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
CDSherrill/psi4
psi4/driver/qcdb/libmintsmolecule.py
Python
lgpl-3.0
121,875
[ "Elk", "Psi4" ]
ddfb95a594b008b187fb06cc850c2e65aaf01f3d205d689218acdd907e5692ff
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time import datetime as dt from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox import _remapping class nctime(object): pass def remap_bdry(src_var...
kshedstrom/pyroms
examples/CCS1_SODA3.3.1/Boundary/remap_bdry.py
Python
bsd-3-clause
7,999
[ "NetCDF" ]
b14a9ccb61c82fbaa0a4c7b8a37bd6d0708ee064ef0946af8f347d063b450ad1
#!/usr/bin/env python __author__ = 'Mike McCann' __copyright__ = '2013' __license__ = 'GPL v3' __contact__ = 'mccann at mbari.org' __doc__ = ''' Master loader for all BEDS Canyon Event data. Mike McCann MBARI 29 March 2014 @var __date__: Date of last svn commit @undocumented: __doc__ parser @status: producti...
stoqs/stoqs
stoqs/loaders/BEDS/loadBEDS_CanyonEvents.py
Python
gpl-3.0
3,884
[ "NetCDF" ]
f57e02f9d182ffa76ac067bcd0d7affeb33aef29703aa5c056c9a6e3997a304c
# -*- coding: utf-8 -*- import os, sys import numpy as np sys.path.append(os.path.normpath('../../')) from pychoacoustics.pysdt import* def virtualObserver(x, midpoint=0, slope=1, guess=0.5, lapse=0, funType="Logistic", funFit="Linear"): if funType == "Logistic": if funFit == "Linear": probCor...
sam81/pychoacoustics
tests/UML_tests/virtual_observer.py
Python
gpl-3.0
1,884
[ "Gaussian" ]
924a32bc181d00929ff63cab1d1e1fb3a7e4acc18f475d084d288985571e5953
""" Unit tests for enrollment methods in views.py """ import ddt from mock import patch from nose.plugins.attrib import attr from django.contrib.auth.models import User from django.core.urlresolvers import reverse from courseware.tests.helpers import LoginEnrollmentTestCase from xmodule.modulestore.tests.factories i...
tiagochiavericosta/edx-platform
lms/djangoapps/instructor/tests/test_legacy_enrollment.py
Python
agpl-3.0
15,101
[ "VisIt" ]
ec827e67e0bfff63da0361594c3ea9e44a98af485fd68463c8b85dee69fbf31f
""" Tests: 1. Galaxies positions are all within the light-cone geometry 2. The number of Galaxies in Catalogue 0 matches the expected number (optional) 3. The galaxy ids are unique across all light-cones (optional) """ import logging from tao_validate import ValidateJob logger = logging.getLogger('detest.'+__name__)...
IntersectAustralia/asvo-tao
web/tao/deployment_tests/cone_basic.py
Python
gpl-3.0
3,740
[ "Galaxy" ]
eb1eddfad88893e025d968f8cca04089ca1b920380e248907c7a77dd17e94441
""" Copyright (C) 2016, LSST Dark Energy Science Collaboration (DESC) All rights reserved. This software may be modified and distributed under the terms of the modified BSD license. See the LICENSE file for details. """ # ============================================================================= from __future__ i...
DarkEnergyScienceCollaboration/Monitor
python/desc/monitor/monitor.py
Python
bsd-3-clause
43,129
[ "VisIt" ]
2c92579f6513e3d8c712fa329296e56c5e2dd7a86fbe4295f3809a2bde77a2c4
#! /usr/bin/python3 import sys try: from setuptools import setup except ImportError: print("Missing package setuptools. Please install to continue\n(https://pypi.python.org/pypi/setuptools)") sys.exit('Exiting now!!') DESCRIPTION = 'Command-line torrent search program for Windows, Linux and MacO...
datafanatic/torrench
setup.py
Python
gpl-3.0
1,536
[ "VisIt" ]
8240c1418028b2434e2deb167e7dd1e2071ec98c7147b8d442faa88f76d6d025
#!/usr/bin/env python """Test script to check for required functionality. Execute this code at the command line by typing: python installation_test_2.py Run the script and follow the instructions it prints at the end. This script requires at least Python 2.6. You can check the version of Python that you have in...
p-chambers/Python_OOP_Workshop
installation_test_2.py
Python
mit
35,015
[ "Mayavi" ]
d1ca358f680da84202a2877832bdcdacfa5a54212e309e5415cbc111c3754770
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2006, 2008 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
arunkgupta/gramps
gramps/plugins/export/exportftree.py
Python
gpl-2.0
6,625
[ "Brian" ]
98107bccbf9fa691600d89156d19a918167b59b81d41699cf6a405aba9737006
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
jensreeder/scikit-bio
skbio/sequence/tests/test_nucleotide_sequence.py
Python
bsd-3-clause
7,828
[ "scikit-bio" ]
2b6f9b444cd3b86426a375c835947da1e2623a06b4df595ee2da47e92f2fd2c7
"""Effective medium theory potential.""" from math import sqrt, exp, log import numpy as np from ase.data import chemical_symbols from ase.units import Bohr from ase.calculators.neighborlist import NeighborList from ase.calculators.calculator import Calculator parameters = { # E0 s0 V0 eta2 ...
grhawk/ASE
tools/ase/calculators/emt.py
Python
gpl-2.0
7,399
[ "ASE" ]
6ccc5d6f1186d009fff09081934fe2791874c866513dde6af8cf50d6229454da
######################################################################## # File: DIRACSingleton.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2011/11/24 13:40:38 ######################################################################## """ :mod: DIRACSingleton .. module: DIRACSingleton :synopsis: metaclass sing...
yujikato/DIRAC
src/DIRAC/Core/Utilities/DIRACSingleton.py
Python
gpl-3.0
1,738
[ "DIRAC" ]
4df2817bce00621cb4b8223c61f72d78102dfbf98a3811d39cb1d9a16caf4903
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
KaiSzuttor/espresso
samples/chamber_game.py
Python
gpl-3.0
17,909
[ "ESPResSo" ]
b0e33bf4268ad79b76e4c171f4631a04a8c8daa1ecf9788dec14bd8829ff4a0f
#!python # usage: python detectors2VTK.py exp flag tt flag1 # exp: experiment flag # flag: time flag, split in timesteps if flag = 0 # tt: number of timesteps to plot, starting from 0 # flag1: 0 all particles, 1 only center (for triplets) import fluidity_tools import pyvtk import myfun import numpy as np import os imp...
jungla/ICOM-fluidity-toolbox
Detectors/detectors2VTK.py
Python
gpl-2.0
2,378
[ "VTK" ]
1ca2798d642666d974e1bfdb88ef9be8f2dc2fa0d136ebe53032848eb9e868fb
# Built-in import os import shutil import requests import warnings # Common import numpy as np __all__ = [ 'step01_search_online', 'step01_search_online_by_wavelengthA', 'step02_download', 'step02_download_all', 'clear_downloads', ] # Check whether a local .tofu/ repo exists _URL = 'https://op...
ToFuProject/tofu
tofu/openadas2tofu/_requests.py
Python
mit
24,831
[ "ADF" ]
a0de671db69e8351a2d2da86559ef2f30d43dafd80924e848c7fb8becbddb55b
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
espressomd/espresso
testsuite/python/dpd.py
Python
gpl-3.0
13,822
[ "ESPResSo" ]
794caa2d1a6ab19be644e8fbcd48154046e8508bf29ea4a6bb171484449d2359
######################################################################## # $HeadURL$ # Author: Stuart Paterson # eMail : Stuart.Paterson@cern.ch ######################################################################## """ The Watchdog class is used by the Job Wrapper to resolve and monitor the system CPU and mem...
Sbalbp/DIRAC
WorkloadManagementSystem/JobWrapper/WatchdogLinux.py
Python
gpl-3.0
4,118
[ "DIRAC" ]
e5b1dfb6d77998546bf7d7adc46b82c3d2dd04688ff5afc24562d06d2a21f24b
# -*- coding: utf-8 -*- # *********************************************************************** # Copyright (C) 2014 - 2019 Oscar Gerardo Lazo Arjona * # <oscar.lazoarjona@physics.ox.ac.uk> * # ...
oscarlazoarjona/fast
fast/electric_field.py
Python
gpl-3.0
15,398
[ "Gaussian" ]
bf128b2906e428763798328703b9357a7403c3199eef8d067edcc2b38f70a6d6
######################################################################## # $HeadURL $ # File: FileCatalogHandler.py ######################################################################## """ :mod: FileCatalogHandler .. module: FileCatalogHandler :synopsis: FileCatalogHandler is a simple Replica and Metadata Cat...
fibbo/DIRAC
DataManagementSystem/Service/FileCatalogHandler.py
Python
gpl-3.0
24,191
[ "DIRAC" ]
81ef3f1cc766535bd57eb0d890bcec6f42465631e32181be164a9852bfcbb2f5
#! /usr/bin/env python import re import math import collections import numpy as np import time import operator from scipy.io import mmread, mmwrite from random import randint from sklearn import cross_validation from sklearn import linear_model from sklearn.grid_search import GridSearchCV from sklearn import preproces...
Goodideax/CS249
new.py
Python
bsd-3-clause
14,678
[ "Gaussian" ]
5b1552a2fba83cb110a794ec2be5d28ad2cff7c300aff1f4012354d1fb882928
""" Acceptance tests for Studio. """ import uuid from base_studio_test import StudioCourseTest from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.studio.asset_index import AssetInde...
fintech-circle/edx-platform
common/test/acceptance/tests/studio/test_studio_general.py
Python
agpl-3.0
12,062
[ "VisIt" ]
b94d17c73d11848bd7d592a4096135189c3667ce87f6fd79fa25456fdac816ce
from parsimonious.grammar import Grammar from parsimonious.nodes import NodeVisitor from time import mktime from datetime import datetime import parsedatetime from .grammar import QUERY_PEG class Parser(object): """ Parses a Wire program into step definitions and connections. """ def __init__(self, code): ...
ginkgobioworks/curious
curious/parser.py
Python
mit
5,882
[ "VisIt" ]
9dabc5813e80b6e4346404725e847599413fe74d0d0398956db6979b063fe8b6
#!/usr/bin/env python # This file is part of the Minecraft Overviewer. # # Minecraft Overviewer 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 op...
eminence/Minecraft-Overviewer
overviewer.py
Python
gpl-3.0
21,778
[ "VisIt" ]
64cfe25b64294fc1ad5ff9edca26a2d4c0a79cd040d946e88d1d1a01886ff262
""" Class that contains client access to the JobManager handler. """ from DIRAC.Core.Base.Client import Client class JobManagerClient(Client): """JobManagerClient sets url for the JobManagerHandler. """ def __init__(self, url=None, **kwargs): """ Sets URL for JobManager handler :param self: self r...
andresailer/DIRAC
WorkloadManagementSystem/Client/JobManagerClient.py
Python
gpl-3.0
600
[ "DIRAC" ]
bb9eac1c413df8ce5249e3fc07e871210c403ca7d5d1da4c9d55cf47dd5ae413
# pylint: disable=missing-docstring # pylint: disable=redefined-outer-name from lettuce import world, step from common import * from terrain.steps import reload_the_page from selenium.common.exceptions import InvalidElementStateException from contentstore.utils import reverse_course_url from nose.tools import assert_i...
vismartltd/edx-platform
cms/djangoapps/contentstore/features/grading.py
Python
agpl-3.0
6,921
[ "VisIt" ]
7f9ce24eeeb6c6fbca7b7e775219f37546e4cfe5df37e3dd5a6c524e1eaffe92
#!/usr/bin/env python import code import copy import cpp import cpp_file_parser import util class PureVirtualFunctionExtractor(cpp_file_parser.RecursionVisitor): def __init__(self, data, scope): self.data = data self.scope = scope def visit_function(self,function_): function = copy.d...
lubkoll/friendly-type-erasure
type_erasure/handle_detail.py
Python
mit
9,513
[ "VisIt" ]
86fa62a4f98674f6c6dd229fe6517a35c5f4ba98c2941a23d26e10fa1253be5f
import os import unittest import dalton import urllib dalton.inject() here = os.path.abspath(os.path.dirname(__file__)) class TestInject(unittest.TestCase): def _makeHttp(self, host): from httplib import HTTPConnection return HTTPConnection(host) def testPlainRequest(self): """Test to...
bbangert/Dalton
dalton/tests/__init__.py
Python
mit
6,038
[ "Dalton" ]
f17274f0df464461c981f1e1d346a87700d87dfc014dc59c3278a1ed87aa9b4d
# Least common ancestor Problem #http://www.ics.uci.edu/~eppstein/261/BenFar-LCA-00.pdf # http://code.activestate.com/recipes/498243-finding-eulerian-path-in-undirected-graph/ # http://codereview.stackexchange.com/questions/104074/eulerian-tour-in-python # Store Arrays: Parents: P[i] is the parent of i # ...
tristan-hunt/UVaProblems
DataStructures/ac.py
Python
gpl-3.0
6,305
[ "VisIt" ]
71f6627af09693e6ffbfdd1e68f1fafbca12486a606c599a9955d0e17f57c332
# Copyright 2015 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...
sarvex/tensorflow
tensorflow/python/ops/image_grad_test_base.py
Python
apache-2.0
25,786
[ "Gaussian" ]
f76c6d6ef94b4ebdf637a2548060bb520ee7a39a36018f19afde73b039c80331
# $HeadURL: $ ''' Command Base class for all commands. ''' from DIRAC import gLogger, S_OK __RCSID__ = '$Id: $' class Command( object ): ''' The Command class is a simple base class for all the commands for interacting with the clients ''' def __init__( self, args = None, clients = None ): ...
vmendez/DIRAC
ResourceStatusSystem/Command/Command.py
Python
gpl-3.0
2,215
[ "DIRAC" ]
f08fadd875358ea7b6a123c2bae4d595cb61cf26a7e4a0197fbe2e2751cbb143
import chainerx from chainerx import _docs def set_docs(): _docs_creation() _docs_evaluation() _docs_indexing() _docs_linalg() _docs_logic() _docs_loss() _docs_manipulation() _docs_math() _docs_sorting() _docs_statistics() _docs_connection() _docs_normalization() _d...
niboshi/chainer
chainerx/_docs/routines.py
Python
mit
127,367
[ "Gaussian" ]
c854439a5ec2ee130383b67436c33692922b2fc443f062f5fb8da7f0073fc499
''' Brian Kirk - National Radio Astronomy Observatory - Assosciated Universities Inc. This is a rudimentary attempt at auto-masking and cleaning.. let's see how it goes. This is written using the CASA Toolkit tools. They are functions in CASA for Imaging Analysis (ie. ia.function) This should be run within CASA ''' #-...
bmarshallk/NAASC
various_scripts/AutoMask.py
Python
gpl-3.0
16,841
[ "Brian" ]
52c3cef3232869f881a56d674f51b6470c90467244916c333b58d60cf6e9de97