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 -*- """ pint.util ~~~~~~~~~ Miscellaneous functions for pint. :copyright: 2013 by Pint Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import division, unicode_literals, print_function, absolute_import import re import o...
pouyana/satgen
pint/util.py
Python
mit
13,196
[ "Gaussian" ]
7dbf32c8522e9991f16394c751cb932c61fcacd9ce7cfc788a61fabcb5afeb25
# GromacsWrapper: test_amber03star.py # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. from __future__ import division, absolute_import, print_function import pytest from gromacs.exceptions import Gromacs...
jandom/GromacsWrapper
gromacs/tests/fileformats/top/test_amber03star.py
Python
gpl-3.0
1,066
[ "Gromacs" ]
2ba5122a1c152739dc813a6f1528ad85f69f9de41a832d9af59b5da5d1e669d6
# -*- coding: utf-8 -*- #!/usr/bin/python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charette <...
pmghalvorsen/gramps_branch
gramps/plugins/lib/libhtmlconst.py
Python
gpl-2.0
4,656
[ "Brian" ]
896702568206ed202c23f1ad9e3a12ec4cc825f01a0cbf4c9a9873e4c4d7f74c
#!/usr/bin/env python # #---------------------------------------------------------------------------- # Copyright 2016 Florian Schumacher (Ruhr-Universitaet Bochum, Germany) # # This file is part of ASKI version 1.2. # # ASKI version 1.2 is free software: you can redistribute it and/or modify # it under the ter...
seismology-RUB/ASKI
devel/create_gmt_shore_lines.py
Python
gpl-2.0
19,370
[ "NetCDF", "VTK" ]
65428c0d7da6940dc28beaf76d245d2b7b0ca76c93a5fb2bbee091baf101eff5
class BrowserHistory: def __init__(self, homepage: str): self.history=[homepage] self.index=0 def visit(self, url: str) -> None: if self.index<len(self.history)+1: self.history=self.history[:self.index+1] self.history.append(url) self.ind...
jianjunz/online-judge-solutions
leetcode/1582-design-browser-history.py
Python
mit
861
[ "VisIt" ]
37e127289a5013568d112ded86fe0360819b4c7d3542c906476d1e4fec99fe70
# rfc1751.py : Converts between 128-bit strings and a human-readable # sequence of words, as defined in RFC1751: "A Convention for # Human-Readable 128-bit Keys", by Daniel L. McDonald. # # Part of the Python Cryptography Toolkit # # Written by Andrew M. Kuchling and others # # =========================================...
mchristopher/PokemonGo-DesktopMap
app/pylibs/osx64/Cryptodome/Util/RFC1751.py
Python
mit
21,190
[ "Elk", "MOE" ]
b0e8dfe0fd3012703b0c596e856ddc9d84c58635d0449a003bf23d940e70753a
""" This code is snagged from Brad Chapman almost wholesale """ import bcbio.utils as utils from bipy.utils import (replace_suffix, append_stem, build_results_dir) import os import subprocess import csv from bipy.log import logger HEADER_FIELDS = ('qseqid sseqid pident length mismatch gapopen qstart qend ' ...
roryk/bipy
bipy/toolbox/blastn.py
Python
mit
5,578
[ "BLAST" ]
f5dfe08485b5073d1a302b47df3e7e1a1c5e19c44c01bad1e4dd3c46d9ba901b
import itertools import sys import re import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from cycler import cycler from matplotlib.ticker import MultipleLocator from scipy.stats import norm from scipy.interpolate import interp1d from visnav.algo import tools from visnav.iotools.readlog impor...
oknuutti/visnav-py
visnav/plots/analyze-log-v2.py
Python
mit
16,839
[ "Gaussian" ]
5a6b6e2937d1bc969b2a7a03e762886bd80c28a2bd1846734356e752c5181a14
""" Get information about a neuron from the database. In this case we are getting a list of neurons associated with each neuron type. Note how the attributes of a neuron are accessed: `list(neuron.attribute())` where attribute is one of the attributes outlined in the neuron API. Also note that, for attributes with on...
gsarma/PyOpenWorm
examples/NeuronBasicInfo.py
Python
mit
2,085
[ "NEURON" ]
17e17a2e266e3299c0c22c6e1a94651bf9ef108ee0bf4463445e4f84fde1dfe4
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2013 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/remindor-qt
remindor_qt/SimpleDialog.py
Python
gpl-3.0
3,085
[ "Brian" ]
9c8427f2fae6fac8dc3111b97d5ee96e23c07121c84b7ede1d8c4fd73ef96ae8
""" The B{0install download} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import sys from zeroinstall import SafeException, _ from zeroinstall.injector import model, requirements from zeroinsta...
timdiels/0install
zeroinstall/cmd/update.py
Python
lgpl-2.1
3,393
[ "VisIt" ]
81ecd419860b2758bc284d6b2cbe16496cb372d467f0a5470a4da36a1a9554c7
import contextlib import itertools import math import os.path import pickle import shutil import sys import tempfile import warnings from contextlib import ExitStack from io import BytesIO from pathlib import Path from typing import Optional import numpy as np import pandas as pd import pytest import xarray as xr fro...
shoyer/xray
xarray/tests/test_backends.py
Python
apache-2.0
170,423
[ "NetCDF" ]
c9af966ce700c62cfb16228588f2e3274972c4b8923f7d98fc2b04f3514b224a
# -*- coding: utf-8 -*- """ Created on Tue Aug 22 19:20:21 2017 @author: Mike prune if proposed BNN not DAG by prob) """ import pandas as pd import numpy as np import random import time from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import Flatt...
MikeDT/CNN_2_BBN
CNN_2_BBN.py
Python
apache-2.0
17,406
[ "Amber" ]
66d7b06ed81ca94f0643c68dbaf5dde3ee103e8ca634986c943e4f2f24cb150d
#!/usr/bin/env python from __future__ import print_function import sys import os import argparse from lib_mean import create_output_file, calc_monthly_mean, update_file_history """ What this script does: Calculate monthly means over a number of years from CICE output. How to run this script: ./cice_monthly_mean....
CWSL/access-cm-tools
analyse/cice_monthly_mean.py
Python
apache-2.0
1,741
[ "NetCDF" ]
ed28c9d7031dcf708541b10e1c68f5e38b1096b9578333384b1a498ccf1e11c1
# Copyright (C) 2004-2008 Paul Cochrane # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribut...
paultcochrane/pyvisi
examples/scatterPlot.py
Python
gpl-2.0
2,271
[ "VTK" ]
90543f4b051940cc23d8e5bce1d89e00e740ac026515e0be28121a4567797287
import code import os import readline import sys from octopus.shell.completer.octopus_rlcompleter import OctopusShellCompleter class OctopusInteractiveConsole(code.InteractiveConsole): def __init__(self, octopus_shell, locals=None): super().__init__(locals=locals, filename="<console>") self.octop...
octopus-platform/bjoern
python/octopus-tools/octopus/shell/octopus_console.py
Python
gpl-3.0
2,755
[ "Octopus" ]
dd2a77e56974069cde0471fd3cc1b2ed288aa0146f80b9f96edccbbc9015d760
# -*- coding: utf-8 -*- """ Tests the "preview" selector in the LMS that allows changing between Staff, Student, and Content Groups. """ from nose.plugins.attrib import attr from common.test.acceptance.tests.helpers import UniqueCourseTest, create_user_partition_json from common.test.acceptance.pages.studio.auto_aut...
synergeticsedx/deployment-wipro
common/test/acceptance/tests/lms/test_lms_user_preview.py
Python
agpl-3.0
17,053
[ "VisIt" ]
bc5694fcfba46bbffdf2832cc508a28f182d9fbd8884df8eecfbba5c5e1a101c
import ast class RemovePass(ast.NodeTransformer): """ Remove Pass keywords from source If a statement is syntactically necessary, use an empty expression instead """ def __call__(self, node): return self.visit(node) def visit_ClassDef(self, node): node.body = self.suite(node...
listyque/TACTIC-Handler
thlib/side/python_minifier/transforms/remove_pass.py
Python
epl-1.0
1,991
[ "VisIt" ]
2571da8cf76428d1c57f8fcecf05745e4d40244b116447f8a1cc96379abafb4e
import numpy as np from mayavi import mlab from BDSpace.Coordinates import Cartesian from BDSpace.Curve.Parametric import Helix from BDSpace.Pathfinder import line_between_two_points, helix_between_two_points, arc_between_two_points import BDSpaceVis as Visual coordinate_system = Cartesian() coordinate_system.rotate_...
bond-anton/Space_visualization
demo/04_pathfinder_demo.py
Python
apache-2.0
2,085
[ "Mayavi" ]
c3e89f6e735f49130cc185761af50525cfbcb30d379ce8d9b8c9e4e0e1d8469e
# -*- coding: utf-8 -*- # pylint: disable=import-outside-toplevel,unbalanced-tuple-unpacking """Utility functions for pyIEM package This module contains utility functions used by various parts of the codebase. """ from contextlib import contextmanager import os import sys import time import random import logging from ...
akrherz/pyIEM
src/pyiem/util.py
Python
mit
23,511
[ "NetCDF" ]
d049c62c695da7e2533f6fb1b398baf74a3c7ed611968e313636f795c66acf92
from celery.schedules import crontab from celery.task import periodic_task import datetime from casexml.apps.stock.models import StockTransaction from corehq.apps.commtrack.models import SupplyPointCase, StockState from corehq.apps.locations.dbaccessors import get_users_by_location_id from corehq.apps.locations.models ...
puttarajubr/commcare-hq
custom/ewsghana/alerts/alerts.py
Python
bsd-3-clause
16,788
[ "VisIt" ]
0d68220d5fdf36dedba6ad46df155d748afb46e9f25996d4a68763d3027a50ee
# Copyright (C) 2012-2014 W. Trevor King <wking@tremily.us> # # This file is part of rss2email. # # rss2email 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...
sciunto/rss2email
rss2email/__init__.py
Python
gpl-2.0
1,666
[ "Brian" ]
263534df06f2485765148a5d253c8b5be24508a5d2e2984514374ebfa3273f63
#!/usr/bin/env python -i # preceding line should have path for Python on your machine # plot.py # Purpose: plot Temp of running LAMMPS simulation via GnuPlot in Pizza.py # Syntax: plot.py in.lammps Nfreq Nsteps compute-ID # in.lammps = LAMMPS input script # Nfreq = plot data point every this many st...
akohlmey/lammps
python/examples/plot.py
Python
gpl-2.0
1,951
[ "LAMMPS" ]
1db3d0f6a6dc9612387b2c9c3a8ed526343e86de218ad94f9b1863d3a50317e8
# Date : 29th July # Author : Alexander Baker import sys from pylab import figure, show, clf, savefig, cm from numpy.fft import fft, fft2, ifft, ifft2, fftshift from optparse import OptionParser from numpy import * def generateResolution(n): return 2**n, (2**n)-1 def store_value(option, opt_str, value, parser): ...
ActiveState/code
recipes/Python/533148_Split_Step/recipe-533148.py
Python
mit
6,940
[ "Gaussian" ]
c1567ae02770d2675dca83f664d1107228f32e59cd55858ef2296ccbe32f69a1
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Author: Gabriele Girelli # Email: gigi.ga90@gmail.com # Version: 1.2.1 # Date: 20170724 # Project: RNA FISH oligo design # Description: filter BLASTN output based on: # - homology (#...
ggirelli/potpourri
blast-filter/blast_filter.py
Python
mit
10,188
[ "BLAST" ]
59a720a54ec0290896d79694dec049c21082867078eae5036107e791bf63efe4
""" MPF plugin which enables the Backbox Control Protocol (BCP) v1.0alpha""" # bcp.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # The Backbox Control Protocol was conceived and developed by: # Quinn Capen # Kevin Kel...
jabdoa2/mpf
mpf/system/bcp.py
Python
mit
35,241
[ "Brian" ]
ac276c244c84b7489d1b39bafe2f745f3990696b4b36ea1001239e4b1fe9f3f7
"""This file contains code used in "Think DSP", by Allen B. Downey, available from greenteapress.com Copyright 2013 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division import array import copy import math import numpy as np import random import...
flake123p/ProjectH
DSP/ThinkDSP/ws/thinkdsp.py
Python
gpl-3.0
45,208
[ "Gaussian" ]
4e16e727e48185e7fe47498f309f2fbc2d8d36eddcecfe94a43265fff4a747b8
# Copyright 2000 by Jeffrey Chang, Brad Chapman. All rights reserved. # Copyright 2006-2016 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. """Code to work wit...
zjuchenyuan/BioWeb
Lib/Bio/GenBank/__init__.py
Python
mit
59,453
[ "BioPerl", "Biopython" ]
2f31051645c815c0ba9f503c5aeb945802b76045adef4be00d24e06532f48aa4
# Copyright (c) 2018, Henrique Miranda # All rights reserved. # # This file is part of the yambopy project # import numpy as np def abs2(x): return x.real**2 + x.imag**2 def lorentzian(x,x0,g): height=1./(np.pi*g) return height*(g**2)/((x-x0)**2+g**2) def gaussian(x,x0,s,max_exp=50.,min_exp=-100.): ...
alexmoratalla/yambopy
yambopy/tools/funcs.py
Python
bsd-3-clause
503
[ "Gaussian" ]
ae8ac0f988ec361c8e8427ec1c9ddaa192308efc2076976887242ea71a8b2a44
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random def random_attack(): def attack(train, valid, x, y): kwargs = {} # randomly select parameters and their corresponding values if random.randint(0,1): kwargs['mtries'] = random.ran...
madmax983/h2o-3
h2o-py/tests/testdir_algos/rf/pyunit_DEPRECATED_random_attack_medium.py
Python
apache-2.0
3,533
[ "Gaussian" ]
9dbe9070902f3a5bf6838dbc5217b8a34cf6600015822b05bb1f8af3b3dd2004
#!/usr/bin/env python # version is the same as ipyrad from ipyrad import __version__ # analysis tools will have a class object that is upper case, which is # called by a convenience function which is lower case, and has the # same name as the module (file), such that when we import the function # it clobbers the fi...
dereneaton/ipyrad
ipyrad/analysis/__init__.py
Python
gpl-3.0
2,093
[ "Bioconda" ]
a7c498a1d92ca3d65fc0b00ec777db3279fc2d0063e4493569a9a7a4fe9db158
# SYSTEM LIBS from matplotlib.colors import LogNorm import matplotlib.pyplot as plt; plt.ion(); import matplotlib import numpy as np import pandas as pd # from root_pandas import read_root import sys from itertools import islice from scipy import signal # To find peaks, for edge-detecting the crystal from scipy.optimiz...
f-forcher/crystal-channeling-analysis
channeling_efficiency_wavelet.py
Python
gpl-3.0
12,559
[ "CRYSTAL", "Gaussian" ]
ebaffaa8782563a76ea814eacab2b5ed822f4d4476f96a85caca1219c81cb585
# -*- coding: utf-8 -*- """ Output Plugin for Microsoft Riff-WAVE. 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...
rinrinne/cueproc-alternative
src/ce_wave.py
Python
gpl-2.0
1,437
[ "VisIt" ]
7ba472cd6f64b9ba56115ee94c3f8af4057b2ab2f39ec3948f2990945323b76c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import abc from monty.json import MSONable, MontyDecoder import six """ Defines an abstract base class contract for Transformation object. """ __author__ = "Shyue Ping...
xhqu1981/pymatgen
pymatgen/transformations/transformation_abc.py
Python
mit
2,734
[ "pymatgen" ]
d1bee6760ad2c4091585c9e6c0a3a93eddf546d78691e74c196b65f1ad1b2ab3
from dnfpy.core.map2D import Map2D import random import sys import numpy as np from dnfpy.cellular.hardlib import HardLib class BsRsdnfMap(Map2D): """ Map to handle the CellBsRsdnf in hardlib. This map use a standard XY routing scheme with 4 router by cell A spike is interpreted as a ...
bchappet/dnfpy
src/dnfpy/cellular/bsRsdnfMap.py
Python
gpl-2.0
5,287
[ "NEURON" ]
3655df01b36824a4a9cd5eb439273f3d8be61a7bc1610210dc210b548c259337
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Logging Facility """ import logging import datetime def print_msg(msg): curtime = datetime.datetime.now() mytime = "%s/%s/%s:%s.%s.%s" % \ (str(curtime.month), str(curtime.day), str(curtime.year), str(curtime.hour), str(curtime.minute), str(c...
bdastur/utils
pystats/pystats_log.py
Python
apache-2.0
2,680
[ "Brian" ]
179bc80d1bb1fcfa93618286ea3e2bcf8ca86599c3222d92999d2d956ce6b9d1
from vtk import * from vtk import * source = vtkRandomGraphSource() source.SetNumberOfVertices(25) source.SetStartWithTree(True) source.SetIncludeEdgeWeights(True) view1 = vtkGraphLayoutView() view1.AddRepresentationFromInputConnection(source.GetOutputPort()) view1.SetColorVertices(True) view1.SetEdgeColorArrayName(...
collects/VTK
Examples/Infovis/Python/simple_selection.py
Python
bsd-3-clause
1,259
[ "VTK" ]
4d0018a3eecabc16d05d83778908283943d963abe02b91df754f0582cf7dd28c
#!/usr/bin/env python # B a r a K u d a # # Compare time-series between some experiments! # # L. Brodeau, 2013 import sys import os import numpy as nmp from netCDF4 import Dataset import barakuda_ncio as bn import barakuda_orca as bo import barakuda_plot as bp import barakuda_tool as bt DEFAULT_LEG...
brodeau/barakuda
python/exec/compare_time_series.py
Python
gpl-2.0
16,307
[ "NetCDF" ]
ba7350d735046fffd8e52ad2f3b4f1fe56e687bfe536038e35fbaa2eb2b4eecd
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from scipy._lib._util import getfullargspec_no_self as _getfullargspec import sys import keyword import re import types import warnings import inspect from itertools import zip_longest from scipy._lib import doccer...
andyfaff/scipy
scipy/stats/_distn_infrastructure.py
Python
bsd-3-clause
137,917
[ "Gaussian" ]
f3147a9849c48dc1ee2ba6095217ac9277e3e396b1dc694d43fd95c7a3f6db4c
#!/usr/bin/python # PySubSync # A small utility that takes a file .srt of subtitles and changes # the chronology and/or re-numbers the subtitles # # # Copyright (C) 2015, Andrea Mentrelli <andrea.mentrelli@unibo.it> # # This program is free software: you can redistribute it and/or modify # it under...
mentrelli/pysubsync
pysubsync.py
Python
gpl-3.0
14,815
[ "Brian" ]
d85a2393f1ef830ab4aa2b49313b42bae394654ec412c7f4414eea37b5aae3e9
__author__ = 'cos' import cPickle as pickle import os class Galaxy(object): ''' Holds the information of the different planets available and their display. ''' _dir = "maps/" _extension = ".gal" _planetInfoFile = "gui/planets/planetInfo.txt" def __init__(self, name="default"): s...
conan747/fallen-heaven
scripts/galaxy.py
Python
gpl-2.0
4,369
[ "Galaxy" ]
e29fabcfd85468415abf4a673b8cf903858db663807b77d0b8d155766e83d468
from __main__ import vtk, qt, ctk, slicer # # LabelStatistics # class BenderLabelStatistics: def __init__(self, parent): import string parent.title = "Bender Label Statistics" parent.categories = ["Quantification"] parent.contributors = ["Steve Pieper (Isomics), Johan Andruejol (Kitware)"] paren...
ricortiz/BenderCraniosynostosis
Modules/Scripted/BenderLabelStatistics/BenderLabelStatistics.py
Python
apache-2.0
18,051
[ "VTK" ]
0e915a17d0941afa9afdcaf2fab6f3440d5c284773dce22bf8ab012f45f1d44b
from __future__ import absolute_import import logging import os import time from celery import shared_task from celery.contrib import rdb from dj_experiment.models import Case as ModCase from dj_experiment.models import Experiment as ModExperiment from dj_experiment.models import FieldGroup as ModFieldGroup from dj_e...
francbartoli/dj-experiment
dj_experiment/tasks/tasks.py
Python
mit
4,736
[ "NetCDF" ]
b55e95025ac0b02ab7a225a506baf51e457e725c7805f2d7ee72c0b414ab0b21
# Copyright cf-units contributors # # This file is part of cf-units and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. import cf_units._udunits2_parser.graph as graph # noqa: E402 from cf_units._udunits2_parser import parse as _parse #...
SciTools/cf_units
cf_units/tex.py
Python
lgpl-3.0
1,325
[ "VisIt" ]
619ac8913d97fd5bdc571a5fe5086eb792e66f23cc279e7eef5e364822c71953
# -*- coding: utf-8 -*- { "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "Uma localização que especifica a área geográfica para esta região. Pode ser uma localização da hierarq...
sahana/Turkey
languages/pt.py
Python
mit
207,853
[ "VisIt" ]
c25b1722d97c4900307b261388d77f5d3848875404e1c928d6a004b4f5218855
from pywrap.ast import (Ast, Enum, Typedef, Function, Clazz, Constructor, Method, Field, Param, TemplateMethod, TemplateClass, TemplateFunction) from pywrap.utils import lines from nose.tools import assert_equal, assert_multi_line_equal def test_empty_ast_string(): ...
AlexanderFabisch/cythonwrapper
pywrap/test/test_ast.py
Python
bsd-3-clause
5,315
[ "VisIt" ]
59de13aeb124f5ebee91baf62a9e0c4952ceed86f506b9c81ed6060dd93c0725
#! /usr/bin/env python # -*- coding: utf8 -*- #=============================================================================== # Author: Walapa Muangjeen #=============================================================================== __version__ = '2.0' import sys import os import codecs import Config...
yang1fan2/nematus
mosesdecoder-master/contrib/makemteval/makemteval.py
Python
bsd-3-clause
8,012
[ "Jaguar" ]
79c6ea65d01900dcef3b807d9db1968d1d587b800e57f6f68af9f4d2efd7e4ec
''' Driver method to run the sld_mol module ''' import sys import string import os import shutil import time import sassie.calculate.sld_mol.sld_mol as sld_mol #import sld_mol as sld_mol import sassie.interface.input_filter as input_filter import sassie.interface.sld_mol.sld_mol_filter as sld_mol_filter #import sld_m...
madscatt/zazzie
src_2.7/sassie/calculate/sld_mol/gui_mimic_sld_mol.py
Python
gpl-3.0
7,405
[ "Gaussian" ]
167ef7dd2ff1423565bd8225bda88f52c2f453bdf9f73b5cae6206a322a9cac4
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
dgerod/cb4oeu
tests/functional/tests.py
Python
apache-2.0
49,000
[ "VisIt" ]
5dbf2ffa53d83dcba8573a6931f3ee382a18b0c80e9fb7fbf29d447deb497e1d
# iCraft is Copyright 2010 both # # The Archives team: # <Adam Guy> adam@adam-guy.com AKA "Adam01" # <Andrew Godwin> andrew@aeracode.org AKA "Aera" # <Dylan Lukes> lukes.dylan@gmail.com AKA "revenant" # <Gareth Coles> colesgareth2@hotmail.com...
TheArchives/Nexus
core/entities/giant.py
Python
bsd-2-clause
7,791
[ "VisIt" ]
6762eb288ab2bcefd26ff51c9a7ead3f1540b805157217f5ea2a5d64e548acfd
import numpy as np from gpaw.test import wrap_pylab wrap_pylab() import pylab as pl def plot_EELS(head): # plot EELS spectra pl.figure(figsize=(4,7)) d = np.loadtxt(head + '_q_list') q = d[:,0] ndata = q.shape[0] + 1 w = np.zeros(ndata) w2 = np.zeros(ndata) for i in range(1,ndata): ...
robwarm/gpaw-symm
gpaw/test/big/response/plot_spectra.py
Python
gpl-3.0
1,488
[ "GPAW" ]
ee1dea6ab7efbe6c6ed92cd84865c675da856d274cd1b7ce903b57429fa59f55
""":func:`~pandas.eval` parsers """ import ast import tokenize from functools import partial import pandas as pd from pandas import compat from pandas.compat import StringIO, lmap, zip, reduce, string_types from pandas.core.base import StringMixin from pandas.core import common as com from pandas.tools.util import c...
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/computation/expr.py
Python
gpl-2.0
25,480
[ "VisIt" ]
84bbd0d764687c2cf072e8b9abfe77fa0684532a89d5ebaaa68d72a30722db16
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import unittest import pickle import warnings from pymatgen.util.testing import PymatgenTest from pymatgen.core.periodic_table import Element, Specie, DummySp...
johnson1228/pymatgen
pymatgen/core/tests/test_periodic_table.py
Python
mit
13,092
[ "pymatgen" ]
83e3e6367ed1c1de1790cb220a0d983d89f5235e02e1b70bad325568713ef42e
import logging, re, os, select, signal try: import autotest.common as common except ImportError: import common from autotest.client import utils, os_dep from autotest.client.shared import error from autotest.client.shared.base_utils import VersionableClass class ServiceManagerInterface(VersionableClass): ...
spcui/autotest
client/shared/openvswitch.py
Python
gpl-2.0
18,597
[ "ASE" ]
d1a1b6ed6809202ce23e551c4b55865c423e767418b3a01305407227a6a577f9
from diagnostic import unitroot_adf import scikits.statsmodels.datasets.macrodata.data as macro macrod = macro.load().data print macro.NOTE print macrod.dtype.names datatrendli = [ ('realgdp', 1), ('realcons', 1), ('realinv', 1), ('realgovt', 1), ...
wesm/statsmodels
scikits/statsmodels/sandbox/stats/ex_newtests.py
Python
bsd-3-clause
781
[ "ADF" ]
c98062ba7224c13e555c514c0f14719e00c12417677109cda7c6eeacae2fec84
import sys sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils import pandas as pd from h2o.estimators.gbm import H2OGradientBoostingEstimator from h2o.utils.distributions import CustomDistributionGaussian def prepare_date(data, date_column): data[date_column] = pd.to_datetime(data[date_...
h2oai/h2o-3
h2o-py/tests/testdir_algos/gbm/pyunit_PUBDEV_4076_custom_distribution_demo.py
Python
apache-2.0
4,614
[ "Gaussian" ]
718f9e40310d69e451bc0f3d280165ebea90bd2c3bc79e9f2b6cd50d323b538f
# tests 19991 weighted paths of Wnt pathway plRead = open("Wnt-weighted-paths-pathlinker.txt", "r") csRead = open("Wnt-weighted-paths-cytoscape.txt", "r") # dict that stores path: weight pl = {} epsilon = 0.0001 def sameFloat(a, b): return abs(a - b) <= epsilon for line in plRead: words = line.split( ) weight =...
tmmurali/PathLinker
data/Wnt/test-files/Wnt-NLT-weighted-paths-comparison.py
Python
gpl-3.0
658
[ "Cytoscape" ]
28be328a73cf05814f5db729ae64713808385fd0303520c2ed5c63bcd1dfe97b
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
alexlo03/ansible
lib/ansible/modules/network/avi/avi_trafficcloneprofile.py
Python
gpl-3.0
4,161
[ "VisIt" ]
714f7754234ad800eb7d02d0fa6f69a7bce3ca3bfec7899bf5859cd4a77c913e
""" The StalledJobAgent hunts for stalled jobs in the Job database. Jobs in "running" state not receiving a heart beat signal for more than stalledTime seconds will be assigned the "Stalled" state. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN StalledJobAgent :end-before: ##END :dedent...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Agent/StalledJobAgent.py
Python
gpl-3.0
25,223
[ "DIRAC" ]
8933cbd83d0018fe8ae8c8b57c3e52640cf4e8729dd01145dc5c3baf22e7dbcb
# !/usr/bin/env python import vtk def get_program_parameters(): import argparse description = 'Highlighting a selected object with a silhouette.' epilogue = ''' Click on the object to highlight it. The selected object is highlighted with a silhouette. ''' parser = argparse.ArgumentParser(descript...
lorensen/VTKExamples
src/Python/Picking/HighlightWithSilhouette.py
Python
apache-2.0
4,453
[ "VTK" ]
5d463c29de543c3b684e170e0644c37c28b6150e261550e0438dffd0a236fb74
import sys import os import psycopg2 import xml.etree.ElementTree as ET from lxml import etree import math from collections import Counter from operator import itemgetter import datetime import nltk import random import collections #For use in reading LGL test sets def block(ch): ''' Return the Unicode block...
grantdelozier/TopoCluster
experimental/TestResolverV6_Pop.py
Python
apache-2.0
34,936
[ "FEFF" ]
4c256e11e4a3015e5e4f76553f9aac6f1c7a9979c3d06fd1e411488c0c4feb02
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 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 #...
rmcgibbo/psi4public
psi4/driver/qcdb/cfour.py
Python
lgpl-3.0
46,031
[ "CFOUR", "Psi4" ]
8a116c864447157dc845bbf16e3a4aa41e3a9bf274dd17d4a4aaad02f3392399
# ---------------------------------------------------------------------- # LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator # http://lammps.sandia.gov, Sandia National Laboratories # Steve Plimpton, sjplimp@sandia.gov # # Copyright (2003) Sandia Corporation. Under the terms of Contract # DE...
rbberger/lammps
python/lammps/constants.py
Python
gpl-2.0
1,394
[ "LAMMPS" ]
2d2a0ff60b4e28e7a0b4f6439075753dffc910e3901e24535c1c8a206b7f4b5c
""" bct v0.01 Bitcoin Trade Simulatorf Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot 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 ...
Pascal66/ga-bitbot
bct_alt.py
Python
gpl-3.0
39,130
[ "Brian" ]
ef14bd7f7151b65130de930673155aa3168c7ef5cd6a7bf69f525d4a44784a9d
# Collection of adjectives # September 19 2014 # Christian Bauer d = { } drev = { } num = 0 def ins(x): global num,d,drev d[num] = x drev[x] = num num = num + 1 ins('abandoned') ins('able') ins('absolute') ins('adorable') ins('adventurous') ins('academic') ins('acceptable') ins('acclaimed') ins('acco...
cjbauer/brainphrase
adjectives.py
Python
agpl-3.0
20,322
[ "exciting" ]
22740d63309a8ade8673dfdeef3a0cff58c5a1e1939afb74c5767a8f54aa2871
# vim: ai ts=2 sts=2 et sw=2 from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.test import TestCase from game.models import Bond, Charter, Exchange, Player, Territory, Resources def create_test_game(): usernames = ['arthur', 'brian', 'blacknight', 'caesar', '...
jimmyskull/ironandblood
ironandblood/game/tests.py
Python
mit
45,483
[ "Brian" ]
7fc30c79575ba4acc89086fcbd87f34d231e7da8e09dc45ce97bf703f1d8f813
from __future__ import print_function """ To add another bonded force interacton in one of the existing categories: 1. Add the force name to the appropriate forcelist 2. Define the parameters. Order should reflect the most common order. Different orderers are specified by providing a parameterlist with the sa...
shirtsgroup/InterMol
intermol/forces/forcedata.py
Python
mit
18,422
[ "Desmond", "Gromacs", "LAMMPS" ]
0ac9d54cf294852b4e5d76b85cd6bf3e40fab247ef314ec2161ec879e7d9d24b
#!/usr/bin/env python # This file is part of Androguard. # # Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com> # All Rights Reserved. # # Androguard 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 Fo...
xysec/androguard
demos/dad_emul.py
Python
apache-2.0
5,289
[ "VisIt" ]
93a214033c2cc622d6cceb789268a12b3781249e0510cd968f775fcfae8a1dda
# -*- coding: utf-8 -*- """ Example 1 for acoular library demonstrates different features of acoular, uses measured data in file example_data.h5 calibration in file example_calib.xml microphone geometry in array_56.xml (part of acoular) Copyright (c) 2006-2015 The Acoular developers. All rights reserved. ...
waynezv/ANN
example.py
Python
mit
7,342
[ "VisIt" ]
223223b7998cbe251b66fa5750db54005e1fbd98f63140e05ffef68bcf87ac5d
''' Central/Satellite galaxy assembly biased model ''' import numpy as np import os.path as path from halo_utils import load_project_halocat from Corrfunc.theory.wp import wp from halotools.sim_manager import CachedHaloCatalog from halotools.empirical_models import HodModelFactory from halotools.empirical_models impo...
mjvakili/gambly
code/biased_hod.py
Python
mit
4,117
[ "Galaxy" ]
9832f47b0db051dac5ab614ddd12773256859ddfc782d8b2ed59f284689426ef
input_name = '../examples/diffusion/subdomains.py' output_name = 'test_subdomains.vtk' from testsBasic import TestInput class Test( TestInput ): pass
olivierverdier/sfepy
tests/test_input_subdomains.py
Python
bsd-3-clause
155
[ "VTK" ]
8ecb7ec6e32574b686a49496a107320e1c17d23baebac01893934e484745137f
# -*- coding: utf-8 -*- """ codegen ~~~~~~~ Extension to ast that allow ast -> python code generation. :copyright: Copyright 2008 by Armin Ronacher. :license: BSD. """ from attest.ast import (BINOP_SYMBOLS, BOOLOP_SYMBOLS, CMPOP_SYMBOLS, UNARYOP_SYMBOLS, NodeVisitor) def ...
dag/attest
attest/codegen.py
Python
bsd-2-clause
16,297
[ "VisIt" ]
de5b5cc6588c43e968cd7a6caf10ce2c24a20bf98eb0d873c8e4f2609942eb8f
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/commoncode/filetype.py
Python
apache-2.0
7,706
[ "VisIt" ]
19442a2bacef49cae959238270d7a2bac5a886b1feb5bd150e2ed05722c3f6db
""" @name: Modules/Core/__init__.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2014-2020 by D. Brian Kimmel @note: Created on Mar 1, 2014 @license: MIT License Core is the main portion of every PyHouse node. It is always present. """ __updated__ = '2020-02-18' __versio...
DBrianKimmel/PyHouse
Project/src/Modules/Core/__init__.py
Python
mit
2,033
[ "Brian" ]
13bffd7b52252556c4c941ce17633b9a5a411a6397cd763721715c5ace7af6f2
#!/usr/bin/env python2 # encoding: utf-8 __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' ''' A parser for search queries with a syntax very similar to that used by the Google search engine. For details on the search query syntax see :class:`Sear...
elssar/calibre
src/calibre/utils/search_query_parser.py
Python
gpl-3.0
30,993
[ "Brian" ]
5431aca0ef6b146aef2c37d3c18ff16ccbc420d55b092eba5c6df119383f752f
from hic import * import networkx as nx import datetime as dt import os.path import argparse import logging import pysam import vcf import sys # log config logging.basicConfig(filename='snpNetwork.log',level=logging.DEBUG) # # Read base and quality # def read_base_and_quality(alignedRead, pos): return alignedRea...
koadman/proxigenomics
graph/src/snpNetwork.py
Python
gpl-2.0
8,497
[ "pysam" ]
92d5a2dac30ad4f6d271bd8e02b86ed4d7a24b73b08a884e67f660e62390b6d1
#!/usr/bin/env python3 import os, re, sys from glob import glob from argparse import ArgumentParser parser = ArgumentParser(prog='check-packages.py', description="Check package table completeness") parser.add_argument("-v", "--verbose", action='store_true', ...
rbberger/lammps
doc/utils/check-packages.py
Python
gpl-2.0
2,949
[ "LAMMPS" ]
005e4b6500f4bab3dfba5a7e9df38147a48497ea3b02a8446abca4b291176ae3
# -*- coding: utf-8 -*- import collections import datetime import hashlib import json import os import stat import tarfile from copy import deepcopy from tempfile import mkdtemp from django.conf import settings from django.core import mail from django.core.files.storage import default_storage as storage from django.co...
andymckay/zamboni
mkt/webapps/tests/test_tasks.py
Python
bsd-3-clause
32,416
[ "exciting" ]
fa7eb20a7b05b5e39f3bc890ac01b6199ff00a26c80279f5700354fa458e7223
import pytest from pysisyphus.helpers import geom_loader from pysisyphus.run import run_from_dict from pysisyphus.testing import using @using("xtb") def test_opt_coord_type(this_dir): preopt_ct, tsopt_ct, endopt_ct = ("dlc", "redund", "tric") run_dict = { "geom": { "type": "cart", ...
eljost/pysisyphus
tests/test_opt_coord_types/test_opt_coord_types.py
Python
gpl-3.0
1,412
[ "xTB" ]
608179dd83b08ebc27ad70dc6010a426055d2ef2bf44c0e68600d5c79360f383
""" DIRAC Workload Management System utility module to get available memory and processors from mjf """ import os import urllib2 __RCSID__ = "$Id$" def getJobFeatures(): features = {} if 'JOBFEATURES' not in os.environ: return features for item in ( 'allocated_cpu', 'hs06_job', 'shutdowntime_job', 'grace_s...
Andrew-McNab-UK/DIRAC
WorkloadManagementSystem/Utilities/JobParameters.py
Python
gpl-3.0
1,041
[ "DIRAC" ]
c9b7c70399c499a701ca5285eae8bb63b052b6eade40e551429ba2ad14b84613
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # 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. """Output of PDB files.""" from Bio._py3k import basestring from Bio.PDB.StructureBuilde...
zjuchenyuan/BioWeb
Lib/Bio/PDB/PDBIO.py
Python
mit
8,320
[ "Biopython" ]
d2c76b8a99d68095cfd5baf53ab2d9d539d0d50214d53149ada0a7709f483778
import requests from slackclient import SlackClient from kalliope import Utils from kalliope.core.NeuronModule import NeuronModule, MissingParameterException Slack_Actions = ( "POST", "READ", "USERS" ) class Slack(NeuronModule): def __init__(self, **kwargs): super(Slack, self).__init__(**k...
kalliope-project/kalliope_neuron_slack
slack.py
Python
mit
7,287
[ "NEURON" ]
ff917aa1f2c6038b538dafec63408d3f99b6875af5e710ecdf78292c10cae861
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflow/tensorflow
tensorflow/python/autograph/pyct/transformer.py
Python
apache-2.0
16,916
[ "VisIt" ]
f915d763ca06f0a9be7ee90b627e088b385c9f3333bdba9e7ede148783dbb6b2
from base import AbstractLogicalFile, AbstractFileMetaData # noqa from generic import GenericFileMetaData, GenericLogicalFile # noqa from raster import GeoRasterFileMetaData, GeoRasterLogicalFile # noqa from netcdf import NetCDFFileMetaData, NetCDFLogicalFile # noqa from geofeature import GeoFeatureFil...
ResearchSoftwareInstitute/MyHPOM
hs_file_types/models/__init__.py
Python
bsd-3-clause
530
[ "NetCDF" ]
b70e3b192620a07f5ee674e671e922857725f3cf78f371171f6df55e208f8fc4
# Copyright (c) Anand Patil, 2007 __docformat__ = 'reStructuredText' __all__ = ['GaussianProcess','GPEvaluation','GPSubmodel'] import pymc as pm import copy import numpy as np from Realization import Realization __all__ = ['GaussianProcess', 'GPEvaluation', 'GPSubmodel'] def gp_logp(x, M, C, mesh, f_eval, M_obs, ...
matthew-brett/pymc
pymc/gp/gp_submodel.py
Python
mit
7,914
[ "Gaussian" ]
5896ce5b460728919c619d4e359d00c95ee7c486b56a13ce2cf64f84956f8616
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import json import os import unittest import warnings from pymatgen.core import SETTINGS from pymatgen.alchemy.filters import ContainsSpecieFilter from pymatgen.alchemy.materials import TransformedStructure from pymatgen.core...
vorwerkc/pymatgen
pymatgen/alchemy/tests/test_materials.py
Python
mit
5,417
[ "VASP", "pymatgen" ]
427dafd4fbf31c0f617f27fdeb474fbdac95df7a0a58fb3c48cc52f409b85cec
""" Generate samples of synthetic data sets. """ # Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel, # G. Louppe, J. Nothman # License: BSD 3 clause import numbers import array from collections.abc import Iterable import numpy as np from scipy import linalg import scipy.sparse as sp fro...
glemaitre/scikit-learn
sklearn/datasets/_samples_generator.py
Python
bsd-3-clause
61,271
[ "Gaussian" ]
1131fb416e7955c2f58621dcce1458cb212e5f564e42e3d4e3f42b7e91027817
import numpy as np from numpy.testing import assert_array_equal from landlab import RasterModelGrid from landlab.io.netcdf import write_raster_netcdf try: import netCDF4 as nc except ImportError: pass def test_append_with_time(tmpdir): field = RasterModelGrid((4, 3)) field.add_field("topographic__el...
cmshobe/landlab
tests/io/netcdf/test_write_raster_netcdf.py
Python
mit
8,104
[ "NetCDF" ]
bc067343505057fa8bf7fb8dc5b49c56da197fa696fdee183248ed5c22f029d9
""" Module responsible for translating variant data into GA4GH native objects. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import glob import hashlib import json import os import random import re import pysam import ga4gh.server.ex...
saupchurch/server
ga4gh/server/datamodel/variants.py
Python
apache-2.0
52,894
[ "pysam" ]
03466d8c2edee4e2420e8bb23e8053ba9648354570216ff238bc67cd0fd6094d
from bs4 import BeautifulSoup import urllib from scraper import * import re class Galaxy(Scraper): def get_planets(self, galaxy, system): """ Get planets in the given galaxy and system """ self.logger.info('Getting data from system %s:%s' % (galaxy, system)) url = self.url_...
winiciuscota/OG-Bot
ogbot/scraping/galaxy.py
Python
mit
3,748
[ "Galaxy" ]
a93765f02c55cf404e14400c7078c1faeac488a82cdd56cffa22b2320c82c918
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
dac/utils.py
Python
apache-2.0
4,206
[ "Gaussian" ]
f5b239c760fea3d8aa046521727eb838fc00125eccb9bdb8d7257a2c5ea00378
# mutagengui.py: GTK based file tagger. # Copyright (C) 2009 Stephen Fairchild (s-fairchild@users.sourceforge.net) # # 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...
leofiore/idjc
python/mutagentagger.py
Python
gpl-2.0
26,690
[ "VisIt" ]
275bf59b06f704f106317cf87e3509c0f53bd1f16ab849ab30c845b0479eb3c6
#!/usr/bin/env python from __future__ import division, print_function from collections import defaultdict import sys # OpenMM Imports import simtk.openmm as mm import simtk.openmm.app as app import parmed as pmd # ParmEd Imports from parmed import load_file, unit as u from parmed.charmm import CharmmParameterSet from...
leelasd/OPLS-AAM_for_Gromacs
GMX_TEST/PARMED_vs_GROMACS/ARGININE/test.py
Python
mit
1,552
[ "CHARMM", "OpenMM" ]
1b947d93d0aafd8f32ab8ede4b12d3a97bc11097337cbfe446c4060ae84cbc6e
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS registration flow. """ import re import requests from bok_choy.web_app_test import WebAppTest from lms.envs.ga_bok_choy import EMAIL_FILE_PATH from ...fixtures.course import CourseFixture from ...pages.lms import BASE_URL from ...pages.lms.account_settings impor...
nttks/edx-platform
common/test/acceptance/tests/lms/test_ga_register.py
Python
agpl-3.0
8,935
[ "VisIt" ]
fa3184674d079f72760b5313d799ad06c74b1ebcd8bb3825c8342f6a91aca025
""" Does the following: 1. Generates and saves random secret key 2. Removes the taskapp if celery isn't going to be used 3. Removes the .idea directory if PyCharm isn't going to be used 4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/ TODO: this might have to be moved to a pre_gen_hook A portio...
webyneter/cookiecutter-django
hooks/post_gen_project.py
Python
bsd-3-clause
9,773
[ "GULP" ]
8296737d81671cd6f55f2a6359344ed427f8a3ef540a90eb730d9a94bd7fd761
#! /usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function # import funkcí z jiného adresáře import sys import os.path import unittest import scipy import numpy as np import logging logger = logging.getLogger(__name__) path_to_script = os.path.dirname(os.path.abspath(__file__)) sys.path.appen...
mjirik/pyseg_base
tests/graph_test.py
Python
bsd-3-clause
9,941
[ "VTK" ]
1fccdc47bc29c238bb763cb59624b93f0f5828592dd78bcefbf88aeeebd7fcff
""" Copyright (c) 2014 Brian Muller Copyright (c) 2015 OpenBazaar """ import random from twisted.internet import defer from zope.interface import implements import nacl.signing from rpcudp import RPCProtocol from dht.node import Node from dht.routing import RoutingTable from log import Logger from interfaces imp...
jorik041/Network
dht/protocol.py
Python
mit
6,596
[ "Brian" ]
780f40b5441948dcadb6c400720034273cca79e7ffc50a4d6fc386d6deb7ef6f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements representations of slabs and surfaces, as well as algorithms for generating them. If you use this module, please consider citing the following work:: R. Tran, Z. Xu, B. Radhakris...
davidwaroquiers/pymatgen
pymatgen/core/surface.py
Python
mit
87,214
[ "pymatgen" ]
3a9e11b843e2aa6bc7b8da4a6ed06fa7bf261c72c788043e5030e626d41fa6dc
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Hybrid LFP scheme example script, applying the methodology with the model of: Potjans, T. and Diesmann, M. "The Cell-Type Specific Cortical Microcircuit: Relating Structure and Activity in a Full-Scale Spiking Network Model". Cereb. Cortex (2014) 24 (3): 785-806. doi: ...
espenhgn/hybridLFPy
examples/Hagen_et_al_2016_cercor/cellsim16pops_modified_spontan.py
Python
gpl-3.0
6,661
[ "NEURON" ]
1191275b012b85b3a9ad35bd016848c627c2428d4f8f9e87f27459fa3e5b85e4
""" Window functions (:mod:`scipy.signal.windows`) ============================================== The suite of window functions for filtering and spectral estimation. .. currentmodule:: scipy.signal.windows .. autosummary:: :toctree: generated/ get_window -- Return a window of a given length and type. ...
lhilt/scipy
scipy/signal/windows/__init__.py
Python
bsd-3-clause
1,772
[ "Gaussian" ]
d48e521f461b35dfa1e67eb76305c824e535ab62ae3376ce33cf1fe64b2cf9cf