repo_name
stringlengths
7
65
path
stringlengths
5
185
copies
stringlengths
1
4
size
stringlengths
4
6
content
stringlengths
977
990k
license
stringclasses
14 values
hash
stringlengths
32
32
line_mean
float64
7.18
99.4
line_max
int64
31
999
alpha_frac
float64
0.25
0.95
ratio
float64
1.5
7.84
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
sfepy/sfepy
sfepy/tests/test_assembling.py
4
3377
import numpy as nm import scipy.sparse as sps import pytest import sfepy.base.testing as tst @pytest.fixture(scope='module') def data(): from sfepy.base.base import Struct conn = nm.array([[0, 1, 2], [2, 3, 4]], dtype=nm.int32) num = conn.max() + 1 iels = nm.array([0, 1], dtype=...
bsd-3-clause
1669a2b0bc960ac134244750d1bdc4cf
33.459184
78
0.568552
2.793218
false
true
false
false
sfepy/sfepy
sfepy/examples/diffusion/poisson_periodic_boundary_condition.py
4
4192
r""" Transient Laplace equation with a localized power source and periodic boundary conditions. This example is using a mesh generated by gmsh. Both the .geo script used by gmsh to generate the file and the .mesh file can be found in meshes. The mesh is suitable for periodic boundary conditions. It consists of a cyli...
bsd-3-clause
367b6aaf4cd810b9b84611764a172698
26.761589
79
0.581823
2.897028
false
false
false
false
sfepy/sfepy
sfepy/discrete/iga/plot_nurbs.py
5
6344
from __future__ import absolute_import import numpy as nm import matplotlib.pyplot as plt from sfepy.discrete.fem.geometry_element import GeometryElement from sfepy.mesh.mesh_generators import get_tensor_product_conn import sfepy.postprocess.plot_dofs as pd from sfepy.postprocess.plot_dofs import _get_axes from sfepy...
bsd-3-clause
846bb6edde47b2c3aca8af7ee90c28e2
27.321429
78
0.530895
2.984008
false
false
false
false
sfepy/sfepy
sfepy/mesh/mesh_generators.py
3
27210
from __future__ import print_function from __future__ import absolute_import import numpy as nm import sys from six.moves import range sys.path.append('.') from sfepy.base.base import output, assert_ from sfepy.base.ioutils import ensure_path from sfepy.linalg import cycle from sfepy.discrete.fem.mesh import Mesh from...
bsd-3-clause
c59f16916c079e9b5b9cfebcad455234
30.566125
79
0.508784
3.124713
false
false
false
false
sfepy/sfepy
sfepy/examples/linear_elasticity/linear_elastic_probes.py
4
5169
r""" This example shows how to use the post_process_hook to probe the output data. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) = 0 \;, \quad \forall \ul{v} \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\delta_{il} \delta_{jk}) + \l...
bsd-3-clause
0c25f60e1e8090bbb5032d2b66c5810c
29.952096
78
0.54556
3.647848
false
false
false
false
sfepy/sfepy
sfepy/examples/navier_stokes/navier_stokes2d.py
4
2349
# -*- coding: utf-8 -*- r""" Navier-Stokes equations for incompressible fluid flow in 2D. Find :math:`\ul{u}`, :math:`p` such that: .. math:: \int_{\Omega} \nu\ \nabla \ul{v} : \nabla \ul{u} + \int_{\Omega} ((\ul{u} \cdot \nabla) \ul{u}) \cdot \ul{v} - \int_{\Omega} p\ \nabla \cdot \ul{v} = 0 \;, ...
bsd-3-clause
a7f983ec180e2e67f99d8b2eb13abe56
22.49
69
0.510004
2.561614
false
false
false
false
sfepy/sfepy
sfepy/solvers/solvers.py
4
12018
""" Base (abstract) solver classes. """ from __future__ import absolute_import import numpy as nm from sfepy.base.base import Struct, output, structify import six def make_get_conf(conf, kwargs): def _get_conf_item(name, default=None, msg_if_none=None): return kwargs.get(name, conf.get(name, default=defaul...
bsd-3-clause
c616fe92021f6bfab58a52b66f66c99c
31.393531
79
0.560825
3.907022
false
false
false
false
sfepy/sfepy
sfepy/discrete/conditions.py
4
11554
""" The Dirichlet, periodic and linear combination boundary condition classes, as well as the initial condition class. """ from __future__ import absolute_import import numpy as nm from sfepy.base.base import basestr, Container, Struct, is_sequence from sfepy.discrete.functions import Function import six def get_cond...
bsd-3-clause
68408bdc12289cc074ecd329bf9dee93
29.647215
79
0.5547
4.101526
false
false
false
false
sfepy/sfepy
tools/gen_legendre_simplex_base.py
4
2398
#!/usr/bin/env python """ Generate simplex legendre 2D basis coffecients and exponents matrices and save them to legendre2D_simplex_coefs.txt and legendre2D_simplex_expos.txt """ from argparse import ArgumentParser from sympy import symbols from sympy import jacobi_poly as jacobi_P from sympy import expand_mul as expan...
bsd-3-clause
2caecbc67b67719aa50c6e4ac82367c1
32.774648
74
0.586739
3.012563
false
false
false
false
sfepy/sfepy
sfepy/base/log.py
2
18849
from __future__ import absolute_import import time import os import atexit import six from six.moves import range try: import multiprocessing as mp except ImportError: mp = None import numpy as nm from sfepy.base.base import sfepy_config_dir, ordered_iteritems from sfepy.base.base import output, get_default...
bsd-3-clause
e460b410c21e85f750f70796aae0f96f
30.10396
80
0.491061
3.854601
false
false
false
false
sfepy/sfepy
sfepy/examples/linear_elasticity/linear_elastic_damping.py
4
1989
r""" Time-dependent linear elasticity with a simple damping. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} c\ \ul{v} \cdot \pdiff{\ul{u}}{t} + \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) = 0 \;, \quad \forall \ul{v} \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\...
bsd-3-clause
e84c23f537b4e8662e64138eddd41a6d
22.678571
80
0.580191
2.662651
false
false
false
false
sfepy/sfepy
sfepy/scripts/simple.py
2
14161
#!/usr/bin/env python # 12.01.2007, c """ Solve partial differential equations given in a SfePy problem definition file. Example problem definition files can be found in ``sfepy/examples/`` directory of the SfePy top-level directory. In the examples below it is supposed that sfepy is installed. When using the in-plac...
bsd-3-clause
856403a038d42cd565cb47605a8a706f
41.525526
110
0.59219
3.963336
false
false
false
false
sfepy/sfepy
doc/conf.py
4
12364
# -*- coding: utf-8 -*- # # SfePy documentation build configuration file, created by # sphinx-quickstart on Wed Oct 14 00:02:22 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
bsd-3-clause
a42c10dab02d88b6ebf718b82fbdcb14
32.058824
176
0.646878
3.272631
false
true
false
false
sfepy/sfepy
sfepy/linalg/check_derivatives.py
5
1529
""" Utilities for checking derivatives of functions. """ from __future__ import print_function from __future__ import absolute_import import numpy as nm from six.moves import range def check_fx(x0, fx, fx_args, dfx, dfx_args=None, delta=1e-5): """ Check derivatives of a (vectorized) scalar function of a scala...
bsd-3-clause
5ac1f227529aeddf6c6a0a0fe1d65bcd
22.166667
77
0.567037
2.795247
false
false
false
false
sfepy/sfepy
sfepy/tests/test_volume.py
4
2568
""" Test computing volumes by volume or surface integrals. """ import numpy as nm import pytest from sfepy import data_dir import sfepy.base.testing as tst filename_mesh = data_dir + '/meshes/3d/elbow.mesh' fields = { 'scalar' : ('real', 'scalar', 'Omega', 1), 'vector' : ('real', 'vector', 'Omega', 1), } in...
bsd-3-clause
f9629f199335ade2ad331774d1af581f
24.68
68
0.553738
3.154791
false
true
false
false
sfepy/sfepy
sfepy/discrete/common/mappings.py
4
6249
""" Reference-physical domain mappings. """ import numpy as nm from sfepy.base.base import Struct class PhysicalQPs(Struct): """ Physical quadrature points in a region. """ def __init__(self, num=0): Struct.__init__(self, num=num, shape=(0, 0, 0)) self.values = nm.empty(self.shape, dt...
bsd-3-clause
0980e46ca40dea7a46431243b36add57
27.022422
80
0.582973
4.160453
false
false
false
false
sfepy/sfepy
sfepy/examples/linear_elasticity/dispersion_analysis.py
4
35028
#!/usr/bin/env python """ Dispersion analysis of a heterogeneous finite scale periodic cell. The periodic cell mesh has to contain two subdomains Y1 (with the cell ids 1), Y2 (with the cell ids 2), so that different material properties can be defined in each of the subdomains (see ``--pars`` option). The command line ...
bsd-3-clause
10e52a057df2dd7c489efe08756092f7
39.777648
350
0.557668
3.490583
false
false
false
false
sfepy/sfepy
sfepy/mechanics/tensors.py
3
10769
""" Functions to compute some tensor-related quantities usual in continuum mechanics. """ import numpy as nm import numpy.linalg as nla from sfepy.base.base import assert_, Struct from sfepy.linalg \ import apply_to_sequence, dot_sequences, make_axis_rotation_matrix def dim2sym(dim): """ Given the space ...
bsd-3-clause
d79ee15053fd6a0c233b984026f79395
26.263291
81
0.535147
3.318644
false
false
false
false
sfepy/sfepy
sfepy/discrete/fem/facets.py
4
7174
""" Helper functions related to mesh facets and Lagrange FE approximation. Line: ori - iter: 0 - iter0 1 - iter1 Triangle: ori - iter: 0 - iter21 1 - iter12 3 - iter02 4 - iter20 6 - iter10 7 - iter01 Possible couples: 1, 4, 7 <-> 0, 3, 6 Square: ori - iter: 0 - iter10x01y 7 - iter10y01x 11 - iter01y01x 30 - ...
bsd-3-clause
66eb45eda3e057dace86b359f2375a8a
20.543544
78
0.554502
2.664933
false
false
false
false
sfepy/sfepy
sfepy/tests/test_poly_spaces.py
4
13525
""" Test continuity of polynomial basis and its gradients along an edge on :math:`y` line (2D) or on a face in :math:`x`-:math:`y` plane (3D) between two elements aligned with the coordinate system, stack one on top of the other. The evaluation occurs in several points shifted by a very small amount from the boundary b...
bsd-3-clause
3675e08e2b0ed648f701dc3567d103e1
32.982412
79
0.505582
3.174883
false
false
false
false
sfepy/sfepy
sfepy/examples/linear_elasticity/shell10x_cantilever.py
4
3811
r""" Bending of a long thin cantilever beam computed using the :class:`dw_shell10x <sfepy.terms.terms_shells.Shell10XTerm>` term. Find displacements of the central plane :math:`\ul{u}`, and rotations :math:`\ul{\alpha}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}, \ul{\beta}) e_{kl}(\ul{u}, \ul...
bsd-3-clause
d9aed10c78b6062914d167c80333344d
24.75
79
0.578064
2.674386
false
false
false
false
nyaruka/smartmin
test_runner/blog/models.py
1
1763
import uuid from django.db import models from django.utils.timezone import now from smartmin.models import SmartModel, ActiveManager class Post(SmartModel): title = models.CharField(max_length=128, help_text="The title of this blog post, keep it relevant") body = models.TextFiel...
bsd-3-clause
29c13561f46824f1af3a889adfd4b764
32.903846
106
0.642655
3.997732
false
false
false
false
dieseldev/diesel
diesel/convoy/consensus/client.py
1
5571
from uuid import uuid4 from itertools import chain from diesel import Client, fork, call, send, until_eol from diesel.util.queue import Queue import random nodeid = str(uuid4()) class ConvoyGetRequest(object): def __init__(self, key): self.key = key class ConvoySetRequest(object): def __init__(self, ...
bsd-3-clause
b4cf76fa22672e39f34ac548fb40915e
28.791444
100
0.538503
3.718959
false
false
false
false
dieseldev/diesel
diesel/protocols/irc.py
1
5439
'''Experimental support for Internet Relay Chat''' from diesel import Client, call, sleep, send, until_eol, receive, first, Loop, Application, ConnectionClosed, quickstop from OpenSSL import SSL import os, pwd from types import GeneratorType LOCAL_HOST = os.uname()[1] DEFAULT_REAL_NAME = "Diesel IRC" DEFAULT_USER = p...
bsd-3-clause
206d378cdd77c883cb9d0f9d34a87db8
30.258621
119
0.503401
3.753623
false
false
false
false
owtf/owtf
owtf/plugins/web/passive/Spiders_Robots_and_Crawlers@OWTF-IG-001.py
1
1620
""" Robots.txt analysis """ import logging from owtf.requester.base import requester from owtf.managers.resource import get_resources from owtf.plugin.helper import plugin_helper DESCRIPTION = "robots.txt analysis through third party sites" def run(PluginInfo): Content = plugin_helper.Requestlink_list( ...
bsd-3-clause
48b72ddd368b6c8cd69a828a5cd6e344
35
76
0.646914
4.343164
false
false
false
false
owtf/owtf
owtf/plugins/web/semi_passive/Testing_for_Cross_site_flashing@OWTF-DV-004.py
1
1065
""" Cross Site Flashing semi passive plugin: Tries to retrieve the crossdomain.xml file and display it for review """ from owtf.requester.base import requester from owtf.managers.target import get_targets_as_list from owtf.plugin.helper import plugin_helper DESCRIPTION = "Normal requests for XSF analysis" def run(Pl...
bsd-3-clause
ab9807eba2c917d782f84f5f7b2cc363
41.6
79
0.716432
3.901099
false
false
false
false
owtf/owtf
owtf/models/plugin.py
1
4053
""" owtf.models.plugin ~~~~~~~~~~~~~~~~~~ """ from sqlalchemy import Column, String, ForeignKey, UniqueConstraint, or_ from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import relationship from owtf.db.model_base import Model from owtf.utils.timer import timer from owtf.models import test_group c...
bsd-3-clause
4180a8435443e00f55e33e9d1eb66794
31.95122
120
0.587713
3.973529
false
false
false
false
owtf/owtf
owtf/api/handlers/auth.py
1
18404
""" owtf.api.handlers.auth ~~~~~~~~~~~~~~~~~~~~~~~~ """ from sqlalchemy.sql.functions import user from owtf.models.user_login_token import UserLoginToken from owtf.api.handlers.base import APIRequestHandler from owtf.lib.exceptions import APIError from owtf.models.user import User from datetime import datetime, timede...
bsd-3-clause
5c5b8d458fdb641fcf923b61cf3505e9
31.401408
158
0.549717
4.127383
false
false
false
false
owtf/owtf
owtf/settings.py
1
7151
""" owtf.settings ~~~~~~~~~~~~~ It contains all the owtf global configs. """ import os import re try: FileNotFoundError except NameError: FileNotFoundError = IOError import yaml HOME_DIR = os.path.expanduser("~") OWTF_CONF = os.path.join(HOME_DIR, ".owtf") ROOT_DIR = os.path.dirname(os.path.realpath(__file_...
bsd-3-clause
ce9504b490ada1d035d75e339f672419
32.260465
114
0.682003
2.725229
false
false
false
false
owtf/owtf
owtf/shell/base.py
1
8831
""" owtf.shell.base ~~~~~~~~~~~~~~~ The shell module allows running arbitrary shell commands and is critical to the framework in order to run third party tools """ import logging import os import signal import subprocess from collections import defaultdict from sqlalchemy.exc import SQLAlchemyError from owtf.managers...
bsd-3-clause
c4e66ffe32eae11ebdf8c0413fa18635
34.043651
131
0.572529
4.211254
false
false
false
false
owtf/owtf
tests/utils.py
1
1218
""" tests.utils ~~~~~~~~~~~ Miscellaneous functions for test cases """ import os import shutil import subprocess DIR_OWTF_REVIEW = "owtf_review" DIR_OWTF_LOGS = "logs" def db_setup(cmd): """Reset OWTF database.""" if cmd not in ["clean", "init"]: return formatted_cmd = "make db-{}".format(cmd) ...
bsd-3-clause
8a7c073d674bb64647ca9f5b834f363b
21.555556
74
0.58867
3.230769
false
false
false
false
owtf/owtf
owtf/workers/local.py
1
1989
""" owtf.worker.local ~~~~~~~~~~~~~~~~~ """ import logging import sys import traceback try: import queue except ImportError: import Queue as queue from owtf.workers import BaseWorker from owtf.lib.owtf_process import OWTFProcess from owtf.models.error import Error from owtf.managers.target import target_manag...
bsd-3-clause
a77d4802034450c26cdbc86a4e322c97
31.606557
110
0.544997
4.277419
false
false
false
false
owtf/owtf
owtf/plugins/auxiliary/dos/Direct_DoS_Launcher@OWTF-ADoS-001.py
1
1356
from owtf.config import config_handler from owtf.plugin.helper import plugin_helper from owtf.plugin.params import plugin_params DESCRIPTION = "Denial of Service (DoS) Launcher -i.e. for IDS/DoS testing-" CATEGORIES = [ "HTTP_WIN", "HTTP", "DHCP", "NTFS", "HP", "MDNS", "PPTP", "SAMBA", ...
bsd-3-clause
1d6a4cf62534c49b661a66bdfc7511a0
24.111111
87
0.556047
3.198113
false
true
false
false
owtf/owtf
owtf/managers/transaction.py
1
27271
""" owtf.managers.transaction ~~~~~~~~~~~~~~~~~~~~~~~~~ The DB stores HTTP transactions, unique URLs and more. """ import base64 from collections import defaultdict import json import logging import re from hrt.interface import HttpRequestTranslator from sqlalchemy import asc, desc from owtf.config import config_hand...
bsd-3-clause
be74aeaa5e941b6d26b36ce230603850
32.667901
99
0.614426
4.081263
false
false
false
false
owtf/owtf
owtf/api/handlers/session.py
1
5183
""" owtf.api.handlers.session ~~~~~~~~~~~~~~~~~~~~~~~~~ """ from owtf.api.handlers.base import APIRequestHandler from owtf.models.session import Session from owtf.lib import exceptions from owtf.lib.exceptions import APIError from owtf.managers.session import ( add_session, add_target_to_session, delete_se...
bsd-3-clause
c80a518d168b8e339c64eb02b68e39eb
29.133721
116
0.546788
4.37384
false
false
false
false
owtf/owtf
owtf/db/utils.py
1
5255
import math from collections import namedtuple from sqlalchemy.sql import and_, or_ def filter_none(kwargs): """ Remove all `None` values froma given dict. SQLAlchemy does not like to have values that are None passed to it. :param kwargs: Dict to filter :return: Dict without any 'None' values ...
bsd-3-clause
49af6a99ae985e90e94eafef28e11c59
26.657895
101
0.630447
3.912882
false
false
false
false
radio-astro-tools/spectral-cube
spectral_cube/ytcube.py
5
11170
from __future__ import print_function, absolute_import, division import six import os import subprocess import numpy as np import time from astropy.utils.console import ProgressBar from astropy import log import warnings __all__ = ['ytCube'] class ytCube(object): """ Light wrapper of a yt object with ability to ...
bsd-3-clause
6294b294292f0bc337ccae8754375e58
37.650519
101
0.549597
4.253618
false
false
false
false
radio-astro-tools/spectral-cube
spectral_cube/lower_dimensional_structures.py
3
41212
from __future__ import print_function, absolute_import, division import warnings import numpy as np from numpy.ma.core import nomask import dask.array as da from astropy import convolution from astropy import units as u from astropy import wcs #from astropy import log from astropy.io.fits import Header, HDUList, Pri...
bsd-3-clause
3cdebda7e89d5752a90e1d1554631b76
35.214411
121
0.534262
4.2614
false
false
false
false
topazproject/topaz
topaz/modules/ffi/pointer.py
1
5040
from topaz.modules.ffi.abstract_memory import W_AbstractMemoryObject from topaz.module import ClassDef from topaz.coerce import Coerce from rpython.rtyper.lltypesystem import rffi from rpython.rtyper.lltypesystem import lltype import sys NULLPTR = lltype.nullptr(rffi.VOIDP.TO) def coerce_pointer(space, w_pointer):...
bsd-3-clause
6e3adae00afaa5f91f97512c6089982d
34.744681
72
0.627579
3.475862
false
false
false
false
desihub/desispec
py/desispec/scripts/badcolumn_mask.py
1
2340
#!/usr/bin/env python import os,sys import argparse import numpy as np import fitsio import scipy.ndimage from astropy.table import Table from desiutil.log import get_logger from desispec.io import read_xytraceset,read_frame,write_frame from desispec.badcolumn import add_badcolumn_mask def parse(options=None): ...
bsd-3-clause
dca900d7599d46a22eb87cce7f872735
39.344828
155
0.647863
3.946037
false
false
false
false
desihub/desispec
py/desispec/quicklook/quickfiberflat.py
1
2203
""" desispec.quickfiberflat Here will be the fiberflat routines specific to quicklook. G. Dhungana, 2016 """ import numpy as np from desiutil.log import get_logger def compute_fiberflat(): """ computes fiberflat: A boss like algorithm writing in progress and will fit in here. Args: """ def app...
bsd-3-clause
91cd62d2708ede5a5ff1a0e936e8da1c
33.421875
163
0.667272
3.327795
false
false
false
false
desihub/desispec
py/desispec/pipeline/tasks/__init__.py
1
2602
# # See top-level LICENSE.rst file for Copyright information # # -*- coding: utf-8 -*- """ desispec.pipeline.tasks ========================= Classes that describe pipeline tasks. """ from __future__ import absolute_import, division, print_function # On first import, load all the classes that we have, based on the fi...
bsd-3-clause
8eb75906d5b6e21d5aab2d5bf41c9ec7
38.424242
78
0.639508
4.059282
false
false
false
false
desihub/desispec
py/desispec/qproc/qframe.py
1
6470
""" desispec.qproc.qframe ===================== Lightweight wrapper class for spectra extract with qextract, row-by-row extraction (boxcar or profile) """ from __future__ import absolute_import, division import numbers import numpy as np from desispec import util from desispec.frame import Frame from desispec.inter...
bsd-3-clause
b9bf3febf6724ce18ea91df51a4f641b
37.742515
136
0.576507
3.761628
false
false
false
false
desihub/desispec
py/desispec/pipeline/plan.py
1
19288
# # See top-level LICENSE.rst file for Copyright information # # -*- coding: utf-8 -*- """ desispec.pipeline.plan ============================= Tools for planning pipeline runs. """ from __future__ import absolute_import, division, print_function import os import stat import sys import re import numpy as np from d...
bsd-3-clause
e710f729df7c5909a9ac30b46e47d5ef
38.044534
120
0.596485
4.081253
false
false
false
false
desihub/desispec
py/desispec/scripts/qa_exposure.py
1
3122
# Script for generating QA for a full exposure from __future__ import absolute_import, division from desiutil.log import get_logger import argparse from desispec.qa import __offline_qa_version__ def parse(options=None): parser = argparse.ArgumentParser(description="Generate Exposure Level QA [v{:s}]".format(__of...
bsd-3-clause
022cd8d459c4ab09c02781625d3aaf6b
35.729412
138
0.626842
3.430769
false
false
false
false
desihub/desispec
py/desispec/scripts/sky.py
1
6350
from __future__ import absolute_import, division from desispec.io import read_frame from desispec.io import read_fiberflat from desispec.io import write_sky from desispec.io.qa import load_qa_frame from desispec.io import write_qa_frame from desispec.io import shorten_filename from desispec.io import write_skycorr fr...
bsd-3-clause
ad8292f8db55275ea0dc6a0f6857ce7c
43.405594
171
0.652441
3.599773
false
false
false
false
desihub/desispec
py/desispec/workflow/proc_dashboard_funcs.py
1
30756
import os,glob import json import sys import re import time,datetime import numpy as np from os import listdir from astropy.table import Table from astropy.io import fits ######################## ### Helper Functions ### ######################## from desispec.io import rawdata_root, specprod_root from desispec.io.util...
bsd-3-clause
fb6a0389d9c8df5bb16ccfc3373e0909
38.583012
165
0.538236
3.666667
false
false
false
false
desihub/desispec
py/desispec/specstatus.py
1
3582
""" Update surveyops/ops/tile-specstatus.ecsv with spectro pipeline tiles.csv """ import numpy as np from astropy.table import Table, vstack from desiutil.log import get_logger def update_specstatus(specstatus, tiles, update_all=False): """ return new specstatus table, updated with tiles table Args: ...
bsd-3-clause
4a2f28c7ad7264c93e76b78e79638594
37.934783
102
0.657454
3.501466
false
false
false
false
desihub/desispec
py/desispec/scripts/tile_redshifts.py
1
14629
import sys, os, glob import re import subprocess import argparse import numpy as np from astropy.table import Table, vstack from desispec.io.util import parse_cameras from desispec.workflow.redshifts import read_minimal_exptables_columns, \ create_desi_zproc_batch_script from d...
bsd-3-clause
2178d57713c72448893b2e8263d39817
42.281065
112
0.600109
3.7762
false
false
false
false
desihub/desispec
py/desispec/pipeline/tasks/rawdata.py
1
2024
# # See top-level LICENSE.rst file for Copyright information # # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from collections import OrderedDict from ..defs import (task_name_sep, task_state_to_int, task_int_to_state) from ...util import option_list from ...io import find...
bsd-3-clause
2de9bb317ff741d5d1faf835e0d4448a
22
79
0.543972
3.833333
false
false
false
false
desihub/desispec
py/desispec/scripts/editexptable.py
1
22450
from desispec.workflow.exptable import get_exposure_table_name,get_exposure_table_path, \ get_exposure_flags, get_last_step_options, get_exposure_table_column_defs, \ keyval_change_reporting, deconstruct_keyval_reporting from desispec.workfl...
bsd-3-clause
0e783be4a7293d995af6bb95d942b1a3
52.452381
123
0.646147
4.014664
false
false
false
false
desihub/desispec
py/desispec/database/redshift.py
1
59315
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ desispec.database.redshift ========================== Code for loading spectroscopic pipeline results (specifically redshifts) into a database. Notes ----- * Future devlopment: - Plan for how to support fuji+guadalupe combi...
bsd-3-clause
06d29d7509f89a10b6492fc5f2a6ff27
42.138182
221
0.617432
3.507066
false
false
false
false
desihub/desispec
py/desispec/skymag.py
1
5677
""" desispec.skymag ============ Utility function to compute the sky magnitude per arcmin2 based from the measured sky model of an exposure and a static model of the instrument throughput. """ import os,sys import numpy as np import fitsio from astropy import units, constants from desiutil.log import get_logger from...
bsd-3-clause
8a98a852393f44a5e11aa94a954a6b92
38.699301
144
0.634314
3.347288
false
false
false
false
desihub/desispec
py/desispec/tile_qa.py
1
17135
""" desispec.exposure_qa ============ Utility functions to compute an exposure QA scores. """ import os,sys import numpy as np from astropy.table import Table,vstack import fitsio import yaml from pkg_resources import resource_filename import glob from desiutil.log import get_logger from desispec.exposure_qa import...
bsd-3-clause
cd95b0f49b8814f87423cf2c8e5313a6
44.450928
229
0.62597
3.126254
false
false
false
false
desihub/desispec
py/desispec/pipeline/run.py
1
21929
# # See top-level LICENSE.rst file for Copyright information # # -*- coding: utf-8 -*- """ desispec.pipeline.run ========================= Tools for running the pipeline. """ from __future__ import absolute_import, division, print_function import os import sys import time import random import signal import numpy as...
bsd-3-clause
f77ee71b0f62d15af2602285e1c0ccf9
34.94918
181
0.615076
4.065443
false
false
false
false
desihub/desispec
py/desispec/io/iotime.py
1
5454
""" iotime: Utilities for parsing and plotting I/O timing from logfiles """ import os import re import datetime import numpy as np def format(readwrite, filename, duration): """Return standardized I/O timing message string for logging Args: readwrite (str): either "read" or "write" filename (...
bsd-3-clause
b561375457502076c78fb9839d3cd521
28.165775
98
0.618262
3.87358
false
false
false
false
desihub/desispec
etc/desi_bundle.py
1
1254
#!/usr/bin/env python """ This bundles up scripts with pyinstaller. Run this from the top level of the desispec source tree. This same functionality could be trivially added to a normal setup.py install target, but DESI does not currently support "python setup.py install". """ import sys import os import numpy as...
bsd-3-clause
df09dede999ccfe5aa15cebc35c51dbd
28.162791
143
0.653907
3.732143
false
false
false
false
desihub/desispec
py/desispec/desi_bias_dark_1d_model.py
1
6516
from astropy.io import fits import pdb import matplotlib.pyplot as plt import numpy as np import copy import desispec.preproc import argparse """ Usage: python3 desi_bias_dark_1d_model.py """ parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter, description="Search all bias and dark i...
bsd-3-clause
78bcdb3bfc374bb0be4fa8bfbe08e94c
35.606742
162
0.552793
3.056285
false
false
false
false
desihub/desispec
py/desispec/scripts/tile_redshifts_bash.py
1
27788
import sys, os, glob import re import subprocess import argparse import numpy as np from astropy.table import Table, vstack from desispec.workflow.redshifts import read_minimal_exptables_columns, \ get_tile_redshift_script_pathname, get_tile_redshift_relpath, \ get_tile_redshift_script_suffix from desiutil.lo...
bsd-3-clause
bad3df1cf8ec98fc6b4471a17edbfe67
38.248588
247
0.625378
3.40581
false
false
false
false
desihub/desispec
py/desispec/qa/qa_brick.py
1
3627
""" Classes to organize and execute QA for a DESI exposure """ from __future__ import print_function, absolute_import, division import numpy as np class QA_Brick(object): def __init__(self, name='None', in_data=None): """ Class to organize and execute QA for a DESI brick x.flavor, x.data...
bsd-3-clause
455e9a0ab2823f0fd9bad34fef11891d
31.383929
88
0.53598
4.102941
false
false
false
false
dokterbob/satchmo
satchmo/apps/payment/modules/cod/config.py
5
1369
from livesettings import * from django.utils.translation import ugettext_lazy as _ # this is so that the translation utility will pick up the string gettext = lambda s: s PAYMENT_GROUP = ConfigurationGroup('PAYMENT_COD', _('COD Payment Module Settings'), ordering = 100) config_register_list( BooleanValue...
bsd-3-clause
d66dc0acca440dcf84b3acf14d962fdd
28.12766
99
0.625274
4.459283
false
false
false
false
dokterbob/satchmo
satchmo/apps/satchmo_ext/productratings/queries.py
6
2797
"""Product queries using ratings.""" from django.contrib.comments.models import Comment from django.contrib.sites.models import Site from keyedcache import cache_get, cache_set, NotCachedError from livesettings import config_value from product.models import Product from satchmo_ext.productratings.utils import average i...
bsd-3-clause
be6bb537617e2eed5930cb3904a3477d
31.917647
87
0.579192
4.162202
false
false
false
false
dokterbob/satchmo
satchmo/apps/satchmo_ext/newsletter/forms.py
13
1173
"""Base forms for use in newsletter subscribing""" from django import forms from django.utils.translation import ugettext_lazy as _ from satchmo_ext.newsletter import update_subscription from satchmo_ext.newsletter.models import get_contact_or_fake _NOTSET = object() class OptionalBoolean(forms.BooleanField): de...
bsd-3-clause
0a33079e102bbe06f25484cfed816438
36.83871
85
0.677749
3.923077
false
false
false
false
dokterbob/satchmo
satchmo/apps/satchmo_ext/product_feeds/templatetags/satchmo_feed.py
15
4527
from django import template import re try: from django.utils.safestring import mark_safe except ImportError: mark_safe = lambda s:s register = template.Library() def rfc3339_date(date): return date.strftime('%Y-%m-%dT%H:%M:%SZ') register.filter('atom_date', rfc3339_date) def atom_tag_uri(url, date=None)...
bsd-3-clause
91b7d1fa1e4c3622e55e7d2065f3a08e
43.392157
104
0.616744
3.152507
false
false
false
false
dokterbob/satchmo
satchmo/apps/satchmo_ext/tieredpricing/models.py
4
6825
from decimal import Decimal from django.contrib.auth.models import Group from django.db import models from django.utils.translation import ugettext_lazy as _ from product import signals from product.models import Product from product.prices import PriceAdjustment, PriceAdjustmentCalc from satchmo_utils.fields import Cu...
bsd-3-clause
ecddbaa577ba6a104027b0dc94ee5a51
40.615854
202
0.61978
4.202586
false
false
false
false
dokterbob/satchmo
satchmo/apps/payment/views/payship.py
6
7740
#################################################################### # Second step in the order process: Capture the billing method and shipping type ##################################################################### from django import http from django.conf import settings from django.shortcuts import render_to_res...
bsd-3-clause
d44bd62b12853f12fae7645463b9e92d
39.3125
115
0.600646
4.236453
false
false
false
false
dokterbob/satchmo
satchmo/apps/product/migrations/0008_remove_discount_validproducts_field.py
13
24701
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing M2M table for field validProducts on 'Discount' db.delete_table('product_discount_validProducts') ...
bsd-3-clause
ae029b106835349519c5c90f249f25fc
83.017007
198
0.553864
3.726203
false
false
false
false
dokterbob/satchmo
satchmo/apps/l10n/admin.py
13
1406
from l10n.models import Country, AdminArea from django.contrib import admin from django.utils.translation import get_language, ugettext_lazy as _ class AdminArea_Inline(admin.TabularInline): model = AdminArea extra = 1 class CountryOptions(admin.ModelAdmin): def make_active(self, request, queryset):...
bsd-3-clause
08bf22d1ca6604101855c3c5d9b40176
37
89
0.651494
3.983003
false
false
false
false
dokterbob/satchmo
satchmo/apps/satchmo_store/shop/views/home.py
5
1252
from django.core.paginator import Paginator, EmptyPage from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.translation import ugettext as _ from livesettings import config_value from product.views import display_featured from satchmo_utils.views import bad_or_mis...
bsd-3-clause
078f6d8a9792fb89cfa54cdfb3d11449
28.809524
67
0.652556
4.132013
false
false
false
false
dokterbob/satchmo
satchmo/apps/product/listeners.py
1
3846
from decimal import Decimal, InvalidOperation from django.contrib.sites.models import Site from django.db.models import Q from product.models import Product, Category, Discount import logging log = logging.getLogger('search listener') def default_product_search_listener(sender, request=None, category=None, keywords=[...
bsd-3-clause
6770f809389a3e5ecc978485f5c45b14
34.284404
120
0.624285
4.38041
false
false
false
false
dokterbob/satchmo
satchmo/apps/payment/modules/base.py
8
14617
from datetime import datetime from decimal import Decimal from django.utils.translation import ugettext_lazy as _ from satchmo_store.shop.models import OrderAuthorization, OrderPayment, OrderPaymentFailure, OrderPendingPayment, OrderStatus import logging log = logging.getLogger('payment.modules.base') class BasePayme...
bsd-3-clause
7f2fda881fb2dba2dcd7784ed1c34949
37.164491
125
0.617021
4.382909
false
false
false
false
lepture/mistune
benchmark/bench.py
1
3218
import os import sys import time ROOT_DIR = os.path.dirname(__file__) sys.path.insert(0, os.path.join(ROOT_DIR, '..')) CASES = {} def load_case(filename): if filename == 'readme.txt': filepath = os.path.join(ROOT_DIR, '../README.md') else: filepath = os.path.join(ROOT_DIR, 'cases', filename...
bsd-3-clause
362df04461d7bb9e5b00d381c7d8afd3
22.489051
76
0.547234
3.750583
false
false
false
false
scrapinghub/shub
shub/utils.py
1
29849
from __future__ import absolute_import import setuptools # noqa: F401 import contextlib import datetime import errno import json import os import subprocess import sys import re import time from collections import deque from six.moves.configparser import SafeConfigParser from distutils.spawn import find_executable fr...
bsd-3-clause
f999332ed8f4cdf70ff3a44b9549fad3
34.408066
102
0.615699
3.842065
false
false
false
false
scrapinghub/shub
shub/log.py
1
1705
from __future__ import absolute_import import logging from datetime import datetime from shub.utils import job_resource_iter, get_job import click HELP = """ Given a job ID, fetch the log of that job from Scrapy Cloud and print it. A job ID consists of the Scrapinghub project ID, the numerical spider ID, and the j...
bsd-3-clause
5b90104981d817e0729aed80b8845a33
28.396552
96
0.646921
3.50823
false
false
false
false
scrapinghub/shub
tests/test_end_to_end.py
1
1456
#!/usr/bin/env python # coding=utf-8 from __future__ import absolute_import import unittest from click.testing import CliRunner from shub import tool import os @unittest.skipUnless(os.getenv('USING_TOX'), 'End to end tests only run via TOX') class ShubEndToEndTests(unittest.TestCase): def se...
bsd-3-clause
4f921507f935914cb85e9c14249a0232
32.860465
63
0.653846
3.630923
false
true
false
false
scrapinghub/shub
shub/deploy_reqs.py
1
2262
from __future__ import absolute_import import click import os import tempfile import shutil from shub import DEPLOY_DOCS_LINK from shub.config import get_target_conf from shub.utils import (build_and_deploy_eggs, decompress_egg_files, download_from_pypi) HELP = """ Build eggs of your project'...
bsd-3-clause
bad91e8034c9285ea4336d93d86d213c
31.314286
77
0.695402
3.660194
false
false
false
false
django/djangosnippets.org
cab/migrations/0001_initial.py
1
4829
# -*- coding: utf-8 -*- from __future__ import unicode_literals import taggit.managers from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("taggit", "0002_auto_20150616_2121"), migrations.swappable_dependency(settings...
bsd-3-clause
d338dc4e9bc4841f258949d04bbf10bd
38.909091
114
0.451232
4.68835
false
false
false
false
django/djangosnippets.org
ratings/templatetags/ratings_tags.py
1
1452
from django import template from django.contrib.contenttypes.models import ContentType from django.urls import reverse register = template.Library() @register.filter def rating_score(obj, user): """ Returns the score a user has given an object """ if not user.is_authenticated or not hasattr(obj, "_ra...
bsd-3-clause
8735018d2c91afc63649065e56f31c3a
22.803279
78
0.628788
3.903226
false
false
false
false
glumpy/glumpy
examples/gloo-atlas.py
3
1324
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gloo, g...
bsd-3-clause
fe108e7fbfe40b6b9bc8c5367d443edc
24.960784
79
0.543807
3.17506
false
false
false
false
glumpy/glumpy
glumpy/geometry/path.py
3
5694
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import re import string from . import arc, curves ...
bsd-3-clause
0a77b21cfef4dc2e0a29aa788cd0fb62
33.095808
85
0.460133
3.657033
false
false
false
false
glumpy/glumpy
examples/snippet-cubes.py
3
4043
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy.geometry import pri...
bsd-3-clause
65621ee2444abc3e167ef40801c10f4e
25.253247
84
0.593619
2.944647
false
false
false
false
glumpy/glumpy
glumpy/graphics/collections/raw_path_collection.py
3
4567
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import gl, library ...
bsd-3-clause
9e8d7f5b162e5c25ca88c1b93e7f7657
32.580882
86
0.517845
4.374521
false
false
false
false
glumpy/glumpy
examples/brain.py
3
2653
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gl, glo...
bsd-3-clause
991d1758774af56f42b0997a6643f098
27.836957
79
0.619676
3.092075
false
false
false
false
glumpy/glumpy
glumpy/graphics/svg/shapes.py
3
1171
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import re class Rect(object): def __init__(s...
bsd-3-clause
3b0adf9cb4cb02641cb0c135efcaae9d
21.09434
79
0.446627
3.423977
false
false
false
false
glumpy/glumpy
examples/app-events.py
3
1800
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app window = app.Window() @wi...
bsd-3-clause
a71bf0bc0aff2fda863f1b6b9a60904c
28.032258
90
0.59
2.889246
false
false
false
false
glumpy/glumpy
glumpy/graphics/collections/agg_point_collection.py
3
1852
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- """ Antigrain Geometry Point Collection This coll...
bsd-3-clause
6d1649f258a7f5ac4f65a9c23f15ade1
33.296296
79
0.569654
5.276353
false
false
false
false
glumpy/glumpy
examples/font-atlas.py
3
1422
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy.log import log from glumpy import app,...
bsd-3-clause
3523d442cbb18a39647b6365fb8acdb6
26.882353
79
0.544304
3.401914
false
false
false
false
glumpy/glumpy
examples/movie-reader.py
3
1579
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gl, glo...
bsd-3-clause
8bb176321745afb6e75d76bc95e54c95
28.240741
79
0.583281
3.289583
false
false
false
false
glumpy/glumpy
glumpy/app/clock.py
2
29288
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
bsd-3-clause
bcd5c3905b675b8ff24c78badf802564
33.783848
80
0.606938
4.279994
false
false
false
false
glumpy/glumpy
examples/filter-compose.py
3
2574
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy.geometry import pri...
bsd-3-clause
0d14fed83c77f87681211c10e2a481a4
24.485149
81
0.608003
3.035377
false
false
false
false
glumpy/glumpy
examples/gloo-rain.py
3
2416
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gloo, g...
bsd-3-clause
65e6dc5a9d0d1ff0fda610e7cbbcb602
22.456311
79
0.567467
2.964417
false
false
false
false
glumpy/glumpy
glumpy/transforms/_trackball.py
4
9258
# -*- coding: utf-8 -*- # # Copyright (c) 2014 Nicolas Rougier # 2008 Roger Allen # 1993, 1994, Silicon Graphics, Inc. # ALL RIGHTS RESERVED # Permission to use, copy, modify, and distribute this software for # any purpose and without fee is hereby granted, provided that the above # copyr...
bsd-3-clause
629f2fd6e93d56b83a2e393f04b442b8
35.738095
79
0.578635
2.904015
false
false
false
false
glumpy/glumpy
glumpy/geometry/curves.py
4
12246
# ---------------------------------------------------------------------------- # Anti-Grain Geometry (AGG) - Version 2.5 # A high quality rendering engine for C++ # Copyright (C) 2002-2006 Maxim Shemanarev # Contact: mcseem@antigrain.com # mcseemagg@yahoo.com # http://antigrain.com # # AGG is...
bsd-3-clause
c94abc37efa8088935e8896a049982a7
35.664671
92
0.480647
3.338604
false
false
false
false
glumpy/glumpy
glumpy/transforms/pvm_projection.py
3
5437
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from . transform import Transfo...
bsd-3-clause
ec229d6f4a14bdb5603acfc9be614a60
26.459596
79
0.537061
4.211464
false
false
false
false
glumpy/glumpy
examples/collection-segment.py
3
1170
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, glm fro...
bsd-3-clause
9396f8f974881ff9aff5f0ae8108ff65
34.454545
81
0.629915
3.431085
false
false
false
false
glumpy/glumpy
glumpy/app/parser.py
3
4011
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- """ Default argument parser for any glumpy program...
bsd-3-clause
14d3053025e5fd4b6bda4427f4adc718
29.618321
79
0.453254
5.103053
false
false
false
false
glumpy/glumpy
glumpy/app/__init__.py
2
10359
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- """ """ import os import re import sys import logg...
bsd-3-clause
cff6d213130aad5589107df9cf38ce44
27.616022
80
0.53258
4.309068
false
true
false
false
glumpy/glumpy
examples/transform-power-scale.py
3
1093
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app from glu...
bsd-3-clause
fc9ec07de31c1b2cd5cdb08ac4ee93d0
29.361111
79
0.602013
3.607261
false
false
false
false
glumpy/glumpy
examples/gpuimage.py
3
1945
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Copyright (c) 2015, Dzhelil Rufat. All Rights Reserved. # Distributed under the (new) BSD License. # ----------------------------------------------...
bsd-3-clause
2137c06d23f962fb15a6dff95c400f6d
24.933333
79
0.500771
3.043818
false
false
false
false
glumpy/glumpy
glumpy/app/viewport.py
3
18885
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- """ """ from . window impo...
bsd-3-clause
fac0eb44e5e103793e70fc51b68bdd86
30.037829
86
0.546394
3.743503
false
false
false
false