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 __future__ import absolute_import import diaper import fauxfactory import hashlib import iso8601 import random import re import command import yaml from contextlib import closing from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.core.mail...
psav/cfme_tests
sprout/appliances/tasks.py
Python
gpl-2.0
91,308
[ "VisIt" ]
26d41fbadceb20eadce5df64e63682ec862d97cf5d77c0bc126f5abc62330813
#!python # encoding: utf-8 # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License # Version 1.1 (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....
herove/dotfiles
sublime/Packages/SublimeCodeIntel/libs/codeintel2/util.py
Python
mit
28,763
[ "VisIt" ]
a192ae3a3a018c7d5d853c49406f504cb070dbf009f29a8b1403e10acc505182
from __future__ import print_function import numpy as np import regreg.api as rr from ...tests.instance import logistic_instance, gaussian_instance from ..selection_map import M_estimator_map from ..ci_approx_density import approximate_conditional_density from ...randomized.query import naive_confidence_intervals from...
selective-inference/selective-inference
selectinf/sandbox/approx_ci/tests/test_glm.py
Python
bsd-3-clause
4,347
[ "Gaussian" ]
2f404b13aa2151103143b542b609c48d2695bd2b86878ba266c60483f4fc16fc
# -*- coding: utf-8 -*- """ Module providing some test utilities. """ from __future__ import print_function, division, absolute_import import os import sys import miniast import specializers import minitypes import miniutils import codegen import treepath from minitypes import * from miniutils import * from xmldumpe...
shiquanwang/numba
numba/minivect/tests/testutils.py
Python
bsd-2-clause
1,785
[ "VisIt" ]
13aeb904bc61a697cc5977d22e12eb85aa764fd69ddee55a90a798e184f7bb4d
import sys import os import numpy as np import array class ploadparticles(object): def __init__(self, ns, wdir=None, datatype=None): self.ns = ns if wdir == None: self.wdir = os.getcwd()+'/' else: self.wdir = wdir if datatype == None: dat...
aywander/pluto-outflows
Tools/pyPLUTO/pyPLUTO/part_read.py
Python
gpl-2.0
7,399
[ "VTK" ]
aedad004ffd9cefc940ae0a271578ab02617b016d2c4707efefa4ce719e45191
""" A simple testing framework for lldb using python's unit testing framework. Tests for lldb are written as python scripts which take advantage of the script bridging provided by LLDB.framework to interact with lldb core. A specific naming pattern is followed by the .py script to be recognized as a module which impl...
google/llvm-propeller
lldb/packages/Python/lldbsuite/test/dotest.py
Python
apache-2.0
39,707
[ "VisIt" ]
0fc88b15b6f969971c6d1aeaa2c3aeee26608110fbd3ca372a7d34b907f8a7a7
#!/usr/bin/env python import datetime import os os.environ['DJANGO_SETTINGS_MODULE'] = 'homeworks.settings' from django import setup from django.db import transaction setup() import random from faker import Factory #from faker.providers import address fake = Factory.create() #fake.add_provider(address) from visit i...
koebbe/homeworks
junk/dummy.py
Python
mit
3,448
[ "VisIt" ]
464c64e3959843f6ca33a1579dfb5d8baa2187cff66bc72a31f43bc77e040552
#!/usr/bin/env python # coding=utf-8 from biopredyn import resources, workflow, result as res from matplotlib import pyplot as plt import numpy as np from COPASI import CCopasiMethod # required inputs - first model simulation_file = "generate_data.xml" calibration_file = "calibration_data.txt" validation_file = "vali...
TheCoSMoCompany/biopredyn
Prototype/scripts/model_discrimination.py
Python
bsd-3-clause
3,601
[ "COPASI" ]
fbe320d1c58aa46a947284f389afdd9d65e5cf6be85f5e0014aa3901eb717fe8
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # Documentation is intended to be processed by Epydoc. """ Introduction ============ The Munkres module provides an implementation of the Munkres algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm), useful for solving the Assignment Problem....
jonodrew/matchex
munkres.py
Python
mit
22,331
[ "Brian" ]
82374a3cc6d135aeb84f3dc2d71450cd510cf6432ddf46c46eb4f538135f46a2
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt import emcee import glob def simple_acf(x, y): # fit and subtract straight line AT = np.vstack((x, np.ones_like(x))) ATA = np.dot(AT, AT.T) m, b = np.linalg.solve(ATA, np.dot(AT, y)) y -= m*x + b # perfor...
RuthAngus/kalesalad
code/simple_acf.py
Python
mit
5,237
[ "Gaussian" ]
c9dde128e4327c791551e51551b60227474a3482454f4e24f521a2aabeed5a5e
from gpaw.transport.analysor import Transport_Plotter import numpy as np from pylab import * import sys plotter = Transport_Plotter() plotter.plot_setup() if len(sys.argv)<= 2: if len(sys.argv[1]) <= 2: vt = plotter.get_info('vtx', int(sys.argv[1]), 0) else: tmp = sys.argv[1].split('-') ...
qsnake/gpaw
doc/documentation/transport/transport_analysis_scripts/vtx.py
Python
gpl-3.0
619
[ "GPAW" ]
8d58562b7c33a88715a16ead1aad8c5d909befb141e123b0ee1165d35856e9ab
# # synctool.object.py WJ110 # # synctool Copyright 2015 Walter de Jong <walter@heiho.net> # # synctool COMES WITH NO WARRANTY. synctool IS FREE SOFTWARE. # synctool is distributed under terms described in the GNU General Public # License. # '''a SyncObject is a source file + matching destination path and...
walterdejong/synctool
src/synctool/object.py
Python
gpl-2.0
34,800
[ "VisIt" ]
b7c6211244482c4bd81c637c09111920b5c6fb022277c310fa85b07d7307e3eb
# -*- coding: utf-8 -*- # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals import copy import io import os import re import shutil import tempfile import threading import time import unittest import warnings from django.conf import...
sgzsh269/django
tests/cache/tests.py
Python
bsd-3-clause
87,677
[ "Brian" ]
011ff5c68bfc0e785e77ca29819400941a9bfb015f7098779407efa51f92f7da
import asyncio import logging import re from datetime import timedelta from hashlib import blake2b from inspect import cleandoc from itertools import zip_longest from math import floor import discord import pendulum import yaml import vaivora.db default_tz = 'America/New_York' regex_nonalnum = re.compile( f'[^...
dark-nova/wings-of-vaivora
vaivora/common.py
Python
mit
14,399
[ "CRYSTAL" ]
12a464af026b1951129e2e3cfe3e40fdd4fc76d85ace766a8593c63dfde2134b
"""Module symbol-table generator""" from compiler import ast from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL, SC_UNKNOWN from compiler.misc import mangle import types import sys MANGLE_LEN = 256 class Scope: # XXX how much information do I need about each name? def __init__(self, name, mo...
trivoldus28/pulsarch-verilog
tools/local/bas-release/bas,3.9/lib/python/lib/python2.3/compiler/symbols.py
Python
gpl-2.0
13,111
[ "VisIt" ]
eb3e86c22b26531844157c01565825e6932c28f4222d2477c0551a3697be2408
import random import struct class Genome(object): def __init__(self, inputs, outputs): self.size = 0 self.hue = 0 self.predator = 0 self.hidden_neurons = 0 self.hidden0_weights = [] self.output_weights = [] # These are not part of the genome but used to spee...
flexo/evolutron
evolutron/genome.py
Python
mit
5,358
[ "NEURON" ]
e849ed42a6e09a44552ed2c256dd7725770a253a73cc2288b5f6b77447400ec6
#Copyright 2008 Erik Tollerud # # 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 i...
eteq/pymodelfit
pymodelfit/builtins.py
Python
apache-2.0
52,317
[ "Gaussian", "Mayavi" ]
eeac10574f9a9b446b738b19761999ccb7a8641e9d4a35b2ebebab94ba0f2e5c
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
tmerrick1/spack
var/spack/repos/builtin/packages/netcdf/package.py
Python
lgpl-2.1
10,541
[ "NetCDF" ]
12671ed985e62bca0c12c59eb10ab3768d6927ea6d645f32ec84ba5ff0389e7c
""" Common functions for tests """ __author__ = "Dan Gunter <dkgunter@lbl.gov>" __date__ = "10/29/13" # Stdlib import json import logging import os import subprocess import sys import tempfile import traceback import unittest # Third-party from mongomock import MongoClient import pymongo # Package from pymatgen.db.q...
materialsproject/pymatgen-db
pymatgen/db/tests/common.py
Python
mit
5,001
[ "VASP", "pymatgen" ]
43e080467272c4f195f51d04a2300067518a56822a3e9743b57e17c9bf638f89
# -*- coding: ascii -*- # $Id: CNCCanvas.py,v 1.7 2014/10/15 15:04:06 bnv Exp $ # # Author: vvlachoudis@gmail.com # Date: 24-Aug-2014 from __future__ import absolute_import from __future__ import print_function import math import time import bmath try: from Tkinter import * import Tkinter except ImportError: ...
samowitsch/bCNC
bCNC/CNCCanvas.py
Python
gpl-2.0
71,221
[ "FLEUR" ]
df665b9297727a50e4491a626c22a445900bdd936ac87873fbe0abebef00416a
#!/usr/bin/env python import xml.dom.minidom #import xml.dom.ext # python 2.5 and later class VTK_XML_Serial_Unstructured: def __init__( self ): pass def createDoc( self, ( posList, radii, colors, tensors ) ): # Document and root element doc = xml.dom.minidom.Document() root_...
gfrd/gfrd
vtk_xml_serial_unstructured.py
Python
gpl-2.0
9,179
[ "ParaView", "VTK" ]
103152c1dd426378c5d30058a4b59407c0c5a8501a73dc323a25a9eba496817f
# # build the charts used in the final report # generally these assume the analysis has been done; the command to do this is included in the function # import collections import datetime import math import os import re import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import pylab import sys ...
supernifty/mgsa
mgsa/generate_all_reports.py
Python
mit
131,319
[ "BWA", "Bowtie" ]
1160c5e20ab22a596e667b273b720f7a657fc396f31d86fe2fd367d9ccc4875b
#!/usr/bin/env python """ Drop DBs from the MySQL server """ from __future__ import print_function from __future__ import absolute_import from __future__ import division from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script Script.setUsageMessage( "\n".join( [ __doc__.split("\n")[...
ic-hep/DIRAC
tests/Jenkins/dirac-drop-db.py
Python
gpl-3.0
830
[ "DIRAC" ]
17570ce795a1eaf8e1b660714cb21de09d1d816bbe2d75a75404be9cb62f18de
from __future__ import unicode_literals from six import ensure_text from .node import NodeVisitor, ValueNode, ListNode, BinaryExpressionNode from .parser import atoms, precedence atom_names = {v: "@%s" % k for (k,v) in atoms.items()} named_escapes = {"\a", "\b", "\f", "\n", "\r", "\t", "\v"} def escape(string, extr...
asajeffrey/servo
tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptmanifest/serializer.py
Python
mpl-2.0
4,498
[ "VisIt" ]
2fb36e8f5d3eefaa7c353384c682168ff3715794827c8fa2c64e8caa5c6dbe4f
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/Platform/win/win_ToPath.py
Python
gpl-3.0
1,248
[ "ORCA" ]
8e3ff773114af37aab6dbc11227404b145dbc39a960b5a71e03531b522d5761c
""" solve the diffusion equation: phi_t = k phi_{xx} with a Crank-Nicolson implicit discretization M. Zingale (2013-04-03) """ import numpy from scipy import linalg import sys import pylab class Grid1d: def __init__(self, nx, ng=1, xmin=0.0, xmax=1.0): """ grid class initialization """ ...
JeffDestroyerOfWorlds/hydro_examples
diffusion/diffusion-implicit.py
Python
bsd-3-clause
6,861
[ "Gaussian" ]
357549de4810a3b382e0e02199bb46e421c0b6af29b6d7ed31eaa448b65c2fd2
from dopamine.environments import CartPoleEnvironment, CartPoleRenderer from dopamine.agents import ReinforceAgent, ENACAgent from dopamine.adapters import IndexingAdapter, NormalizingAdapter, GaussianExplorer, LinearSDExplorer, StateEnhancingAdapter from dopamine.experiments import Experiment from dopamine.fapprox imp...
rueckstiess/dopamine
scripts/cart_enac_linear.py
Python
gpl-3.0
2,161
[ "Gaussian" ]
9229989c59c46658c02438b2a58aaf0e17526e877888d4948593cb4fbf69c630
#!/usr/bin/python # Copyright (C) 2012 Sibi <sibi@psibi.in> # # This file is part of Neuron. # # Neuron is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
psibi/Neuron
cnetwork.py
Python
gpl-3.0
2,050
[ "NEURON" ]
6a3bf2621d3507602950fd6d37cdbb421e0beba8bc3117094688fe69f3c47845
from __future__ import generators import math from nlmsa_utils import CoordsGroupStart,CoordsGroupEnd # AUTHORS: zfierstadt, leec def is_line_start(token,line): "check whether line begins with token" return token==line[:len(token)] def get_ori_letterunit(start,end,seq,gapchar='-'): """try to determine or...
ctb/pygr
pygr/parse_blast.py
Python
bsd-3-clause
8,401
[ "BLAST" ]
67dcf222426ccd6c046107679de7810027c9274222e52eaeef1660f80f1507b5
# This code is licensed under the New BSD License # 2009, Alexander Artemenko <svetlyak.40wt@gmail.com> # For other contacts, visit http://aartemenko.com """ This is a helper to work with MongoDB's documents. Author: Alexander Artemenko <svetlyak.40wt@gmail.com> """ import types from pymongo.dbref import DBRef from ...
svetlyak40wt/pymongo-bongo
mongobongo/document.py
Python
bsd-3-clause
8,579
[ "VisIt" ]
6cacfe9449a6cfdf7b5b523f09a5c2b8496c929b8d12702534212ecd6bfc3294
#!/usr/bin/python # Copyright (c) 2006-2013 Regents of the University of Minnesota. # For licensing terms, see the file LICENSE. # This script sends email reminders for the landmarks experiment. # SYNC_ME: Search: Scripts: Load pyserver. import os import sys #print 'curdir: %s' % (os.curdir,) # . #print 'abspath: %s...
lbouma/Cyclopath
scripts/daily/landmarks_experiment_email.py
Python
apache-2.0
4,526
[ "VisIt" ]
67afbf94dedd892e1da6a0831b02ae2bead1cf7c12f792a12e014f620b81462c
# Copyright 2013 by Nate Sutton. Based on code in _Phyml.py by Eric Talevich. All rights reserved. # This code is part of the Biopython distribution and governed by its license. # Please see the LICENSE file that should have been included as part of this # package. """Command-line wrapper for tree inference program F...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Phylo/Applications/_Fasttree.py
Python
gpl-2.0
26,034
[ "Biopython" ]
c922531b2b0159cbe9387b3dfeb00e65935adc738b13f972df5e467c0849427c
#!/usr/bin/env python """ DataCollectingParser subclasses ctypesparser.CtypesParser and builds Description objects from the CtypesType objects and other information from CtypesParser. After parsing is complete, a DescriptionCollection object can be retrieved by calling DataCollectingParser.data(). """ import ctypesp...
AsherBond/MondocosmOS
grass_trunk/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py
Python
agpl-3.0
13,074
[ "VisIt" ]
7b64b8b1127838c2ae3aeb4e9dd8554661eb567ade40110216e1f0ef8a413d0f
#!/usr/local/autopkg/python ''' Copyright (c) 2020, dataJAR Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
autopkg/dataJAR-recipes
Adobe 2021/Adobe2021Importer.py
Python
apache-2.0
6,942
[ "MOE" ]
674f09c874ab73e8c45026cd5079e540c955471f624b45753331747fbedde195
import math from taichi.lang import impl, matrix, ops from taichi.lang.impl import expr_init, get_runtime, static from taichi.lang.kernel_impl import func, pyfunc from taichi.lang.matrix import Matrix, Vector from taichi.types import f32, f64 @func def _randn(dt): """ Generate a random float sampled from uni...
yuanming-hu/taichi
python/taichi/_funcs.py
Python
mit
15,103
[ "Gaussian" ]
d3372e901bc9833fc368f3f42125626c665b85bb14ffdc9b18485ee958b056b5
"""MPF plugin which uses lights to represent Game functions. Typically in an EM machine""" # info_lights.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 im...
spierepf/mpf
mpf/plugins/info_lights.py
Python
mit
5,019
[ "Brian" ]
fe856559a6db860b6a2202fec2677ef82621a314a2fccc11d17fc7c863aafb0a
import copy import mynp as np import random as rd class network: # layers -list [5 10 10 5] - 5 input, 2 hidden layers (10 neurons each), 5 output def create(self, layers): theta=[0] for i in range(1, len(layers)): # for each layer from the first (skip zero layer!) theta.append(np.r...
inferrna/neurolabcl
habranet.py
Python
lgpl-3.0
6,156
[ "NEURON" ]
606a30cd98eea18d33e9414490007672184d8c4b7d294df6289183cfa5ce4134
# -*- coding: utf-8 -*- # Copyright (c) 2015-2022, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 """ Gaussian Editor ####################### Base class on top of exatomic.Editor for Gaussian Editors """ #import pandas as pd from exatomic import Editor class Editor(Editor): ...
exa-analytics/exatomic
exatomic/gaussian/editor.py
Python
apache-2.0
645
[ "Gaussian" ]
b74cc292135ed4a9fbd3826dde2b1ed6439888e23e9f6cf31738c8a33c8c5bef
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
beernarrd/gramps
gramps/gen/filters/rules/family/_hasnote.py
Python
gpl-2.0
1,759
[ "Brian" ]
207290c7bf48d1cacb5ba6951635c1e177abef0dcf30638c5f9f1daf2d843773
# -*- coding: utf-8 -*- # # This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Pub...
ben-albrecht/cclib
cclib/parser/gaussianparser.py
Python
lgpl-2.1
62,097
[ "Gaussian", "cclib" ]
2dae29536d6b4e4687a54dedf74ac2954762b04ad0cd08b6d7d88fa2dd31d970
end_string = [ "of today", "of friendship", "in-between", "intertwined", "of success", "of fortune", "at the sea", "in the rain", "in winter", "of winter", "in summer", "of summer", "of the spring", "in the spring", "the applause", "of fire", "in whisp...
d2emon/generator-pack
src/fixtures/other/haiku.py
Python
gpl-3.0
17,687
[ "Firefly" ]
b4b80984201c0b4bb03f763822c81b47fe1db65f5f321cf03f345eeed5814903
""" sendwithus - Python Client For more information, visit http://www.sendwithus.com """ import base64 import json import logging import warnings import requests import six from six import string_types from .encoder import SendwithusJSONEncoder from .exceptions import APIError, AuthenticationError, ServerError from ...
sendwithus/sendwithus_python
sendwithus/__init__.py
Python
apache-2.0
22,786
[ "VisIt" ]
197a51f9b635b56c389d7ecfa4c20320abeb37f2f7d5a74d0779f6c9cc484eb5
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Routines for lazy data handling. To avoid replicating implementation-dependent test and conversion code. """ from functo...
pp-mo/iris
lib/iris/_lazy_data.py
Python
lgpl-3.0
12,221
[ "NetCDF" ]
7dbfe59bbc5c4b5544651261a353c30d0d2ec7cdc48958273c375aaf3eb6deea
# -*- coding: utf-8 -*- # # anaspecobjects.py # ObjectModel # # Created by Alexander Rudy on 2011-10-12. # Copyright 2011 Alexander Rudy. All rights reserved. # Version 0.6.1 # # Parent Modules from .anaspec import AnalyticSpectrum from .base import AnalyticMixin # Standard Scipy Toolkits import numpy as np i...
alexrudy/AstroObject
AstroObject/anaspecobjects.py
Python
gpl-3.0
3,339
[ "Gaussian" ]
20b4146f1c3fb3ce31ce263aee478bf37821d822e195f2e30ada629044ddc1c3
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # # # ESPResSo++ Python script for H-Adress Water simulation based on # # Gromacs topology # ...
capoe/espressopp.soap
examples/hadress/hadressWaterGromacs/water.py
Python
gpl-3.0
11,362
[ "ESPResSo", "Gromacs" ]
d93db1e5e15243200b322fa5164ccfa14f07b9b2ec550f823af684683c135bc6
#!/usr/bin/env python # -*- coding: utf-8 -*- # # hot-backup.py: perform a "hot" backup of a Subversion repository # and clean any old Berkeley DB logfiles after the # backup completes, if the repository backend is # Berkeley DB. # # Subversion is a tool for revision co...
netheads/server
backup_svn-hot-backup.py
Python
gpl-2.0
10,531
[ "VisIt" ]
ef44a62c7951dd7e0017c89689b191acf334712dc7102574907f74f0f4f6f2d6
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/driver/qcdb/subsetgenerator.py
Python
lgpl-3.0
4,294
[ "Psi4" ]
f1d6907b29becbb2cc767911c3e7ad3bbb8c9cc2af2863096e232ddfe9e8149d
# -*- coding:utf-8 -*- ## src/chat_control.py ## ## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com> ## Copyright (C) 2006-2008 Yann Leboulanger <asterix AT lagaule.org> ## Jean-Marie Traissard <jim AT lapin.org> ## Nikos Kouremenos <kourem AT gmail.com> ## ...
sgala/gajim
src/chat_control.py
Python
gpl-3.0
93,383
[ "VisIt" ]
e2b658d8a2bcb61fd8a3f2ecf55cb21cdc9a8f1b08d2b2247780e13add5e6991
#!/usr/bin/env python2.6 """ nknguyen at soe ucsc edu Sep 1 """ import os, sys, re from Bio.Blast import NCBIXML def reformatTitle(title): title = title.replace("_", " ") title = title.replace(";", " ") return title def checkKeywords(title, keywords): t = title.lower() for keyword in keywords: ...
ngannguyen/immunoseq
src/parseLiteratureBlast.py
Python
mit
4,313
[ "BLAST" ]
4650f6a63d55aac084f34208e780046a59842fad007a03d98b2cc4e530e2e8f6
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CueProc main. Copyright (c) 2006-2008 by Nyaochi 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 yo...
rinrinne/cueproc-alternative
src/cueproc.py
Python
gpl-2.0
24,367
[ "VisIt" ]
fd6585a5e8b104bda060f1b4fcbc692fce82e5a269e3ead78755cad0eb11a84a
from pylab import figure,scatter,contour,show,legend,connect from numpy import array, append, arange, reshape, empty, exp from shogun import Gaussian, GMM from shogun import RealFeatures import util util.set_title('SMEM for 2d GMM example') #set the parameters max_iter=100 max_cand=5 min_cov=1e-9 max_em_iter=1000 min...
karlnapf/shogun
examples/undocumented/python/graphical/smem_2d_gmm.py
Python
bsd-3-clause
3,765
[ "Gaussian" ]
af7f4a06ef378d7c7be6aa34ed180656bb1148ff34450d9e3f0a16e91fa0d445
#!/usr/bin/env python __author__ = 'Mike McCann,Duane Edgington,Reiko Michisaki' __copyright__ = '2014' __license__ = 'GPL v3' __contact__ = 'duane at mbari.org' __doc__ = ''' Master loader for all CANON activities in September 2014 Mike McCann and Duane Edgington MBARI 22 September 2014 @var __date__: Date ...
stoqs/stoqs
stoqs/loaders/CANON/loadCANON_september2014.py
Python
gpl-3.0
14,623
[ "NetCDF" ]
c9de4ee3405eb90de52e5047cb73f4f5dbb90b203014f7e14ee599a09077ab1b
# -*- test-case-name: twisted.trial.test.test_runner -*- # Copyright (c) 2001-2010 Twisted Matrix Laboratories. # See LICENSE for details. """ A miscellany of code used to run Trial tests. Maintainer: Jonathan Lange """ import pdb import os, types, warnings, sys, inspect, imp import random, doctest, time from twis...
sorenh/cc
vendor/Twisted-10.0.0/twisted/trial/runner.py
Python
apache-2.0
29,205
[ "VisIt" ]
c57c887e7f5e95661be81c94951d83903a207c516e9d35ba52d1048ff60ae838
## # Copyright 2009-2016 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
ocaisa/easybuild-easyblocks
easybuild/easyblocks/n/neuron.py
Python
gpl-2.0
8,725
[ "NEURON" ]
ff1ba5df6f2c42e9c338136a3a6ec964466867f78ed0816cb1e8142316935d02
# -*- coding:utf-8 -*- # Copyright (c) 2015, Galaxy Authors. All Rights Reserved # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Author: wangtaize@baidu.com # Date: 2015-04-28 import subprocess import os import signal class ShellHelper(object): @classmetho...
linyvxiang/galaxy
test/integeration/utils.py
Python
bsd-3-clause
3,113
[ "Galaxy" ]
b1854f96ad12fc05afabba5c039452620f99cedd3e15d7a3dd26b100e647cd96
# -*- coding: ascii -*- # $Id: CNCCanvas.py,v 1.7 2014/10/15 15:04:06 bnv Exp $ # # Author: vvlachoudis@gmail.com # Date: 24-Aug-2014 import math import time import bmath try: from Tkinter import * import Tkinter except ImportError: from tkinter import * import tkinter as Tkinter from CNC import Tab, CNC im...
dguerizec/bCNC-4axis
CNCCanvas.py
Python
gpl-2.0
72,378
[ "FLEUR" ]
4be981b1264c909bbb2adffbcde4b06dd22ea67bc48d0ab8b5eb5b448df643c8
"""Common helper functions to run upgrade existence and scenario tests """ from functools import partial from pprint import pprint import pytest from robozilla.decorators import pytest_skip_if_bug_open from upgrade.helpers import settings from upgrade_tests.helpers.existence import assert_templates from upgrade_tests...
SatelliteQE/satellite6-upgrade
upgrade_tests/helpers/common.py
Python
gpl-3.0
3,895
[ "VisIt" ]
688378cb6b80c517051ea10d1b9e7dc002f9ad971bce07893549a71ac725879c
# # 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/chronos/test/bigdl/chronos/model/test_TCMF.py
Python
apache-2.0
9,567
[ "ORCA" ]
ac1e88d8be0c27d856a376251ff3c0f0f65a439c420a5c6adfad194da672b1a2
import tempfile from pele.landscape import DoubleEndedConnect from pele import basinhopping from pele.storage import Database from pele.takestep import RandomDisplacement, AdaptiveStepsizeTemperature from pele.utils.xyz import write_xyz from pele.optimize import lbfgs_cpp from pele.transition_states._nebdriver import ...
cjforman/pele
pele/systems/basesystem.py
Python
gpl-3.0
20,845
[ "PyMOL" ]
1fa5047cff935ae2fe0b02d6b971063f2a94e25635d1da01b2c6cc3db8f4f799
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals, division, print_function import os.path import collections import numpy as np from pymatgen.util.testing import PymatgenTest from pymatgen.io.abinit.pseudos import * ...
aykol/pymatgen
pymatgen/io/abinit/tests/test_pseudos.py
Python
mit
6,946
[ "ABINIT", "pymatgen" ]
88554001005a8a4c45e25a5717248721cef32e924c5ee4098cd8e7219c32dbff
import sys from quex.engine.misc.file_in import error_msg from quex.engine.utf8 import map_unicode_to_utf8 from quex.engine.interval_handling import NumberSet, Interval from quex.engine.unicode_db.parser import ucs_property_db from quex.exception import RegularExpressionException...
dkopecek/amplify
third-party/quex-0.65.2/quex/input/command_line/query.py
Python
gpl-2.0
13,280
[ "VisIt" ]
a250de76bfe1236c53a76ae285f34652b17000222cb9160b33f2e556f180286d
#!/usr/bin/python # Wflow is Free software, see below: # # Copyright (c) J. Schellekens/Deltares 2005-2014 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or ...
openstreams/wflow
wflow/wflow_emwaq.py
Python
gpl-3.0
124,305
[ "NetCDF" ]
8382b3de0d86e2f6e392b1f9f3c8e7f8ca9bc1676a6f67349997828a79bae0e0
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
usc-isi/extra-specs
nova/tests/api/openstack/test_xmlutil.py
Python
apache-2.0
26,041
[ "VisIt" ]
f42d1408844aaf7e23de279a08f56f4a88ea1cbd62fea27baa5126c13b033f38
""" Tests related to the cohorting feature. """ from uuid import uuid4 from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.lms.courseware import CoursewarePage from common.test.acc...
cpennington/edx-platform
common/test/acceptance/tests/discussion/test_cohorts.py
Python
agpl-3.0
6,010
[ "VisIt" ]
4c7cd954fec72f13a2b04b50bd56fa8aa7ce0f96c97ce0cbf1650fb56b557c93
from __future__ import unicode_literals from __future__ import print_function import matplotlib.pyplot as plt # from mpi4py import MPI import numpy as np from scipy.signal import argrelextrema from scipy.stats import norm from scipy.optimize import minimize, leastsq from sklearn.neighbors import KernelDensity from .u...
kjohnsson/modality
modality/critical_bandwidth_fm.py
Python
mit
15,909
[ "Gaussian" ]
bbabcb3cc28679d84f61307e53b2b694327d93a852db9c5434340a3e4d7ed1aa
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' geoloc_provider_id = fields.Many2one( 'base.geo_provider', string='API', ...
t3dev/odoo
addons/base_geolocalize/models/res_config_settings.py
Python
gpl-3.0
807
[ "VisIt" ]
21402cbff6f86efad98b773165af3e18879c52c097fce097da00f5e6dc9b18a9
# -*- coding: latin-1 -*- """ python-nmap - 2010.12.17 python-nmap is a python library which helps in using nmap port scanner. It allows to easilly manipulate nmap scan results and will be a perfect tool for systems administrators who want to automatize scanning task and reports. It also supports nmap script outputs....
CaptFrank/wi-finder
nmap/__init__.py
Python
gpl-3.0
1,284
[ "Brian" ]
991861ebd317b0de1e1e6c62a06fb0bbb033d444d06ffaa3839c8e0ded83b753
# coding=utf-8 """ audfprint_analyze.py Class to do the analysis of wave files into hash constellations. 2014-09-20 Dan Ellis dpwe@ee.columbia.edu """ from __future__ import division, print_function import os import numpy as np import scipy.signal # For reading/writing hashes to file import struct # For glob2has...
dpwe/audfprint
audfprint_analyze.py
Python
mit
22,767
[ "Gaussian" ]
46a9401e04cd31b1ffff1ce327c0dc84d852d3fb557e8195940e895d4391f9e1
"""Utilities for registering objects. This module contains utility functions to register Python objects as valid COM Servers. The RegisterServer function provides all information necessary to allow the COM framework to respond to a request for a COM object, construct the necessary Python object, and dispatch COM even...
sserrot/champion_relationships
venv/Lib/site-packages/win32com/server/register.py
Python
mit
23,084
[ "BLAST" ]
983371565c3e384d861a8ab62191c44663c7e553e219cf21c758cbce3ad41c18
# 1.13. Sorting a List of Dictionaries by a Common Key from operator import itemgetter from pprint import pprint rows = [ {'fname': 'Brian', 'lname': 'Jones', 'uid': 1003}, {'fname': 'David', 'lname': 'Beazley', 'uid': 1002}, {'fname': 'John', 'lname': 'Cleese', 'uid': 1001}, {'fname': 'Big', 'lname':...
chen2aaron/SnirteneCodes
PythonCookbookPractise/chapter1/sort_list.py
Python
gpl-2.0
1,188
[ "Brian" ]
c666ff525484036af4739dde0eea16c7f66beab9f4fb46776a3ea492e098d07d
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
gkc1000/pyscf
pyscf/nao/m_vertex_loop.py
Python
apache-2.0
3,968
[ "PySCF" ]
592a0e3f78f15b5b757b27cc09b8740fb630908ae2e919bf14ea2aa2aa956e06
# -*- coding: utf-8 -*- # Generators for geometric graphs. # Copyright (C) 2004-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # METHODS: # random_geometric_graph # waxman_graph # geographical_thresh...
IsaacLab/LaboratorioIntangible
T4/networkx.generators.geometric.py
Python
agpl-3.0
11,515
[ "Gaussian" ]
34bd83023b07c4e464ec5dca7f28d4982c47e7c8535cd9404674d385ea1c026f
from logging import info from logging import debug import array import pysam import numpy from scipy.stats import rankdata import multiprocessing import itertools BIN = 1000 # bin size for normalization purposes. def cal_normalization_constant(parameter): info ("calculating normalization constants...
shawnzhangyx/PePr
PePr/pre_processing/cal_normalization.py
Python
gpl-3.0
17,374
[ "pysam" ]
6036eb7541897335c1bc7c8cdb1920e90c62802df6f5444b0a80fd08e2cd00a4
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Brian Coca <bcoca@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.0', ...
bearstech/ansible
lib/ansible/modules/system/svc.py
Python
gpl-3.0
9,578
[ "Brian" ]
c888c0af33faa92fc37963f1e4a101618cf45c3364e965bc8fba9bd3dac19f7e
import pdb import scipy as sp import scipy.linalg import copy import sys import time from limix.core.type.observed import Observed from limix.hcache import Cached, cached from limix.core.covar import Covariance from limix.core.mean import MeanBase from limix.core.covar.cov_reml import cov_reml import limix.core.optimiz...
PMBio/limix
limix/core/gp/gp_base.py
Python
apache-2.0
8,314
[ "Gaussian" ]
504a26a2b1d930f2e9837d81ce5550628ba741f19d2c78453f7c0992468a9a6f
import sixtracklib as st import cobjects import numpy as np from cobjects import CBuffer def gaussian_dist(z, mu=0.0, sigma=1.0): assert np.all(np.abs(sigma) > 0.0) norm_z = (z - mu) / (np.sqrt(2.0) * sigma) return 1.0 / np.sqrt(2 * np.pi * sigma) * np.exp(-norm_z * norm_z) if __name__ == "__main__": ...
SixTrack/SixTrackLib
examples/python/spacecharge/line_density_profile.py
Python
lgpl-2.1
6,754
[ "Gaussian" ]
d1a6a75551488b00f70b30a43871e8f8904637bc27fda4a66b6af5457bb2fadb
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/grad/test/test_h2o.py
Python
apache-2.0
5,354
[ "PySCF" ]
62c03a5c2248c33c76f11d833f460921d5b98df13dc2c206f161d2e07b70b882
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import unicode_literals import bindings as bi import sys PY3 = sys.version_info[0] == 3 str_type = str if PY3 else (str, unicode) # ---------------------------------------------------------------------------------------------------------------------- # ...
h2oai/h2o-dev
h2o-bindings/bin/gen_R.py
Python
apache-2.0
60,430
[ "Gaussian" ]
5e091fb19fb545f73f348fc1413bbef11d719eecb90f1a07d3afb437d638aef5
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # stopfe - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of th...
heromod/migrid
mig/cgi-bin/stopfe.py
Python
gpl-2.0
1,100
[ "Brian" ]
7d222996732fb358ccc3549e85a6f8b42df031b1595c0fdb96bb6c781dc3d969
#!/usr/bin/env python """ load mWGS Raw Seq Set into OSDF using info from data file """ import os import re from cutlass.MicrobTranscriptomicsRawSeqSet \ import MicrobTranscriptomicsRawSeqSet import settings from cutlass_utils import \ load_data, get_parent_node_id, list_tags, format_query, \ wri...
JAX-GM/osdf_submit
nodes/MicrobTranscriptomicsRaw.py
Python
gpl-3.0
6,361
[ "VisIt" ]
a5f68790672dfdd493a6cdf251f505ed2f80f5dbb72a5437e8d28fd1b65e5f85
from __future__ import print_function """ based on: - http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/ExtractSelectionCells """ import vtk import signal signal.signal(signal.SIGINT, signal.SIG_DFL) def main(): """ ^y | 8----9----10---11 | / | / | / | 4----5----6----7 | / | / | ...
saullocastro/pyNastran
pyNastran/gui/vtk_examples/extract_selection_cells_ugrid.py
Python
lgpl-3.0
6,450
[ "VTK" ]
83a2d85e6ff0ea9362873cdf1be043ec27c018d046e0ddaebe6d057b07c18fe3
import matplotlib.pyplot as plt import numpy as np import random plt.xkcd() # This is adapted from Andrej Karpathy's blog: # http://karpathy.github.io/neuralnets/ # written in Python instead of JS (Obviously) # Define out unknown function we want to maximize def unknown_function(a, b): return a*b ...
medav/yatml
l1-fundamentals/p2-random-search.py
Python
mit
1,410
[ "VisIt" ]
c715b32bc7debc4ea7d590629ecc4014443b5a3045c98fbe326b3ccfc1d24175
# -*- Encoding: utf-8 -*- """ CellProfiler.CellProfilerGUI.CPFrame - Cell Profiler's main window CellProfiler is distributed under the GNU General Public License. See the accompanying file LICENSE for details. Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2015 Broad Institute All ri...
LeeKamentsky/CellProfiler
cellprofiler/gui/cpframe.py
Python
gpl-2.0
88,479
[ "VisIt" ]
649a1c21bf07b46c59b10d680fbfdc5fe7c3fb7d9c7d05b16f15bbac7dc38654
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2012 Raik Gruenberg & Johan Leckner ## ## 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 v...
ostrokach/biskit
Biskit/PDBModel.py
Python
gpl-3.0
139,359
[ "Amber" ]
6cffb401befbd79d458d3332d6f36853d96148c0c7fd830f168e2907883f31f1
# -*- coding: utf-8 -*- """QGIS Unit tests for edit widgets. .. note:: 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. """ __au...
AsgerPetersen/QGIS
tests/src/python/test_qgsrelationeditwidget.py
Python
gpl-2.0
10,743
[ "Galaxy" ]
d91be87ca00c7ed5c69b3a3fad7b52ea2cc535b9ef9a2f796810d68eba9a87cf
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import copy import json import os import py...
k0ste/ansible
test/units/galaxy/test_collection_install.py
Python
gpl-3.0
34,691
[ "Galaxy" ]
cf862067edffe49595382ed9384caa22d9fed4de82746ef4815fda7a73490c1d
# # Copyright 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # 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 Founda...
libAtoms/matscipy
matscipy/fracture_mechanics/crackpathsel.py
Python
lgpl-2.1
2,974
[ "Matscipy" ]
d43b50e0ca56637ac829de52ea65382f7b88e16403fa26bb39cebf0d2d83d4cc
import numpy as np from gpaw.mpi import world from gpaw.blacs import BlacsGrid, Redistributor from gpaw.utilities import compiled_with_sl def test(comm, M, N, mcpus, ncpus, mb, nb): grid0 = BlacsGrid(comm, 1, 1) desc0 = grid0.new_descriptor(M, N, M, N, 0, 0) A_mn = desc0.zeros(dtype=float) A_mn[:] = ...
robwarm/gpaw-symm
gpaw/test/parallel/blacsdist.py
Python
gpl-3.0
2,047
[ "GPAW" ]
9605459311ba8b41bbf485be258d528d51b99bfe304bccacde71e8ad9db5ecf4
# Copyright 2008-2010 by Peter Cock. All rights reserved. # Revisions copyright 2009 by Cymon J. Cox. All rights reserved. # # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SeqIO support for...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SeqIO/PhdIO.py
Python
gpl-2.0
6,047
[ "Biopython" ]
3f241ba7a712955e61dd7f8ccd113cd1df77793e89ffe0bffd0f37a644955b1d
#!/usr/bin/python2.5 # Copyright (C) 2007 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 la...
Censio/transitfeed
transitfeed/stop.py
Python
apache-2.0
10,449
[ "VisIt" ]
878271bb8800e47657ffbaf65a91d3300a31cd738abb22c8e6867ae87a3ef1a1
"""Compatibility fixes for older versions of libraries If you add content to this file, please give the version of the package at which the fix is no longer needed. # originally copied from scikit-learn """ # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org> # Gael Varoquaux <gael.varoquau...
pravsripad/mne-python
mne/fixes.py
Python
bsd-3-clause
37,383
[ "Gaussian" ]
c2f3478d1b8f222bc4498daa6054e3fbc9915ed1a0a90d419675ea8773c2e752
# -*- coding: utf-8 -*- """ Created on Fri Sep 9 16:36:47 2016 @author: Felipe Leno Loads everything from adhoc.py, this class only defines parameters for the visit-based ad hoc advising """ from adhoc import AdHoc import math class AdHocVisit(AdHoc): #Enum for importance metrics VISIT_IMPORTANCE, Q_IMPOR...
cowhi/HFO
experiments/agents/adhocvisit_backup.py
Python
mit
1,171
[ "VisIt" ]
74621c8ddd30a260aa9e7c28b8ebff848ab79139e9dba57602e0c25092a56215
import mock import requests from StringIO import StringIO from boto.s3.key import Key EXPECTED_TASK_STATUS_FAILED_RESPONSE = { "s3_urls": {}, "src_url": "", "state": "FAILURE", "status": "{u'exc_message': u'fp is at EOF. Use rewind option or seek() to data start.'" ", u'exc_type': u'Att...
Callek/build-relengapi
relengapi/blueprints/archiver/test_util.py
Python
mpl-2.0
3,840
[ "Brian" ]
215126f70d3a652b636d225e45c789dd1ed94f3b3c7a097b04fafa7865e46a67
#!/usr/bin/env python import math, numpy as np #from enthought.mayavi import mlab import matplotlib.pyplot as pp import matplotlib.cm as cm import matplotlib import scipy.linalg as lin import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy import tf #import hrl_lib.mayav...
tapomayukh/projects_in_python
sandbox_tapo/src/skin_related/Cody_Data/time_varying_data_two_objects_exploration.py
Python
mit
16,284
[ "Mayavi" ]
838f83703aff81a8e5986e88c42feacb8d9b2d166d7ffb6c67b44582927ae086
#!/usr/bin/env python """ gui/localize ~~~~~~~~~~~~~~~~~~~~ Graphical user interface for localizing single molecules :authors: Joerg Schnitzbauer, Maximilian Thomas Strauss, 2015-2019 :copyright: Copyright (c) 2015-2019 Jungmann Lab, MPI of Biochemistry """ import os.path import sys import yaml f...
jungmannlab/picasso
picasso/gui/localize.py
Python
mit
66,043
[ "Gaussian" ]
8e37748169ec827675cc16d8e0e20617721017e0a172dd6457cacfd5fd2b6b18
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/x2c/test/test_x2c.py
Python
apache-2.0
6,630
[ "PySCF" ]
182de8ed45d777962e70edf409266ec34214ae413b69336207ead4ec284256ce
# Copyright 2001-2004 Brad Chapman. # Revisions copyright 2009-2010 by Peter Cock. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """General mechanisms to access applications i...
bryback/quickseq
genescript/Bio/Application/__init__.py
Python
mit
25,724
[ "BLAST", "Biopython" ]
b29380c1c7e6884b2489f13801a1f419e62ff5a841ee7ab2a4347ae5baf6ff90
""" Support the ISY-994 controllers. For configuration details please visit the documentation for this component at https://home-assistant.io/components/isy994/ """ import logging from urllib.parse import urlparse from homeassistant import bootstrap from homeassistant.const import ( ATTR_DISCOVERED, ATTR_SERVICE,...
sffjunkie/home-assistant
homeassistant/components/isy994.py
Python
mit
6,873
[ "VisIt" ]
58ce11a184055f167a8b6e5d688dbc797bcb3ba3fa3539a124b4e0a6797b0e7f
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json import decimal import random from collections import namedtuple import pytest from marshmallow import Schema, fields, utils, MarshalResult, UnmarshalResult from marshmallow.exceptions import ValidationError from marshmallow.compat import Ordered...
Bachmann1234/marshmallow
tests/test_schema.py
Python
mit
56,982
[ "Brian" ]
c3f1b8c966efc14c04a79c1abb6f3a1cd958b3d5c2700947ee0f2bf0cb7b61cd
import cv2 import numpy as np import pandas as pd import math class VideoUtilities(): """ Standard functions for video cleanup """ @staticmethod def get_derivative(video, frame_stride=1): """ Take derivative of video. The derivative is calculated as: dx/dt = Frame(n + ...
pdxcycling/carv.io
video_analysis/code/video_utilities.py
Python
mit
11,400
[ "Gaussian" ]
dff33fd5202f44ebedcaa70e586923442990b380854c4814c56278b5bc8823aa