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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mne-tools/mne-python | mne/preprocessing/ecg.py | 9 | 15061 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD-3-Clause
import numpy as np
from ..annotations import _annotations_starts_stops
from ..utils import logger, verbose, sum_squared, warn, int... | bsd-3-clause | bf387dc0a62472a02cd9cb6dcf8e3989 | 34.437647 | 79 | 0.57712 | 3.52469 | false | false | false | false |
ergo/ziggurat_foundations | ziggurat_foundations/models/resource.py | 1 | 3700 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declared_attr
from ziggurat_foundations.exc import ZigguratException
from ziggurat_foundations.models.base import BaseModel
__all__ = ["ResourceMixin"]
class ResourceMixin(BaseModel):
... | bsd-3-clause | fee78a4d64d2724612683a69c5b0ba80 | 27.682171 | 82 | 0.585135 | 4.32243 | false | false | false | false |
mne-tools/mne-python | mne/viz/tests/test_misc.py | 5 | 11961 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Cathy Nangini <cnangini@gmail.com>
# Mainak Jas <mainak@neuro.hut.fi>
#
# License: ... | bsd-3-clause | 5b66ac64c50a92842d921704befbaaad | 40.675958 | 79 | 0.613745 | 3.233577 | false | true | false | false |
mne-tools/mne-python | mne/preprocessing/tests/test_ssp.py | 8 | 8256 | import os.path as op
import pytest
from numpy.testing import assert_array_almost_equal
import numpy as np
from mne.io import read_raw_fif, read_raw_ctf
from mne.io.proj import make_projector, activate_proj
from mne.preprocessing.ssp import compute_proj_ecg, compute_proj_eog
from mne.datasets import testing
from mne i... | bsd-3-clause | b431f20ea29ffc9ee6c7c56f9b7783e6 | 42.225131 | 79 | 0.608164 | 3.017544 | false | true | false | false |
mne-tools/mne-python | mne/datasets/eegbci/eegbci.py | 6 | 7470 | # Author: Martin Billinger <martin.billinger@tugraz.at>
# Adam Li <adam2392@gmail.com>
# Daniel McCloy <dan@mccloy.info>
# License: BSD Style.
import os
from os import path as op
import pkg_resources
import re
from pathlib import Path
from ..utils import _get_path, _do_path_update
from ...utils import... | bsd-3-clause | e94589c3f4be7d17570cbb1fb436c2a0 | 32.648649 | 116 | 0.613655 | 3.663561 | false | false | false | false |
mne-tools/mne-python | tutorials/raw/10_raw_overview.py | 9 | 26059 | # -*- coding: utf-8 -*-
"""
.. _tut-raw-class:
=======================================
The Raw data structure: continuous data
=======================================
This tutorial covers the basics of working with raw EEG/MEG data in Python. It
introduces the :class:`~mne.io.Raw` data structure in detail, including ... | bsd-3-clause | 4127bded636dee736daba98ee4a95ed7 | 44.677193 | 79 | 0.647987 | 3.404289 | false | false | false | false |
mne-tools/mne-python | mne/io/hitachi/hitachi.py | 3 | 12389 | # Authors: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD-3-Clause
import datetime as dt
import re
import numpy as np
from ..base import BaseRaw
from ..constants import FIFF
from ..meas_info import create_info, _merge_info
from ..nirx.nirx import _read_csv_rows_cols
from ..utils import _mult_cal_one
from ...... | bsd-3-clause | f0c6e5a5bb844787bf900c70245a0b2f | 36.542424 | 78 | 0.488821 | 3.736128 | false | false | false | false |
mne-tools/mne-python | mne/viz/topo.py | 1 | 39390 | """Functions to plot M/EEG data on topo (one axes per channel)."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: Simplified BSD
from c... | bsd-3-clause | a3f97a57e2ca7b81397540154dab7bef | 40.461053 | 79 | 0.578831 | 3.600037 | false | false | false | false |
mne-tools/mne-python | mne/preprocessing/nirs/tests/test_scalp_coupling_index.py | 10 | 2725 | # Authors: Robert Luke <mail@robertluke.net>
# Eric Larson <larson.eric.d@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
#
# License: BSD-3-Clause
import os.path as op
import pytest
import numpy as np
from numpy.testing import assert_allclose, assert_array_less
from mne.datasets.test... | bsd-3-clause | 9d01d1e397dac8a9ea69a49e2cf9e17e | 34.855263 | 75 | 0.625688 | 2.945946 | false | true | false | false |
mne-tools/mne-python | mne/misc.py | 11 | 2970 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Scott Burns <sburns@nmr.mgh.harvard.edu>
#
# License: BSD-3-Clause
def parse_config(fname):
"""Parse a config file (like .ave and .cov files).
Parameters
----------
fname : str
Config file name.
Returns
-------
... | bsd-3-clause | 4daa7b0d6e9ff578a720e2ec6d6127db | 28.405941 | 79 | 0.506061 | 3.740554 | false | false | false | false |
mne-tools/mne-python | examples/decoding/decoding_spoc_CMC.py | 9 | 3006 | # -*- coding: utf-8 -*-
"""
.. _ex-spoc-cmc:
====================================
Continuous Target Decoding with SPoC
====================================
Source Power Comodulation (SPoC) :footcite:`DahneEtAl2014` allows to identify
the composition of
orthogonal spatial filters that maximally correlate with a contin... | bsd-3-clause | eb45d7d343835bfb98c3d8c738b8e8bb | 31.322581 | 78 | 0.672655 | 3.15425 | false | false | false | false |
mne-tools/mne-python | mne/io/snirf/_snirf.py | 3 | 21426 | # Authors: Robert Luke <mail@robertluke.net>
#
# License: BSD-3-Clause
import re
import numpy as np
import datetime
from ..base import BaseRaw
from ..meas_info import create_info, _format_dig_points
from ..utils import _mult_cal_one
from ...annotations import Annotations
from ...utils import (logger, verbose, fill_do... | bsd-3-clause | a0516e79e20bf4410663ad8f9401647a | 42.815951 | 79 | 0.5028 | 4.023662 | false | false | false | false |
mne-tools/mne-python | examples/time_frequency/time_frequency_erds.py | 5 | 8095 | # -*- coding: utf-8 -*-
"""
.. _ex-tfr-erds:
===============================
Compute and visualize ERDS maps
===============================
This example calculates and displays ERDS maps of event-related EEG data.
ERDS (sometimes also written as ERD/ERS) is short for event-related
desynchronization (ERD) and event-r... | bsd-3-clause | 5ae2aa4b2e1076ba1d8b48eb61265f50 | 39.883838 | 79 | 0.659049 | 3.181997 | false | false | false | false |
mne-tools/mne-python | mne/channels/interpolation.py | 8 | 8836 | # Authors: Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD-3-Clause
import numpy as np
from numpy.polynomial.legendre import legval
from ..utils import logger, warn, verbose
from ..io.meas_info import _simplify_info
from ..io.pick import pick_types, pick_channels, pick_info
from ..surface import _normalize... | bsd-3-clause | 7ca348fed1000ea58ee92a228ef157d7 | 35.065306 | 78 | 0.612834 | 3.304413 | false | false | false | false |
mne-tools/mne-python | mne/viz/_mpl_figure.py | 1 | 101757 | # -*- coding: utf-8 -*-
"""Figure classes for MNE-Python's 2D plots.
Class Hierarchy
---------------
MNEFigParams Container object, attached to MNEFigure by default. Sets
close_key='escape' plus whatever other key-value pairs are
passed to its constructor.
matplotlib.figure.Figure
... | bsd-3-clause | 83330d6591bc81d9a199deeda68ea215 | 44.897517 | 94 | 0.55261 | 3.730205 | false | false | false | false |
mne-tools/mne-python | mne/time_frequency/tfr.py | 1 | 103760 | """A module which implements the time-frequency estimation.
Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM
"""
# Authors : Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Hari Bharadwaj <hari@nmr.mgh.harvard.edu>
# Clement Moutard <clement.moutard@polytechnique.org>
# ... | bsd-3-clause | fb1ce74d8882f16db262973bcd88b502 | 38.361533 | 81 | 0.561803 | 3.810393 | false | false | false | false |
mne-tools/mne-python | mne/io/tests/test_raw.py | 3 | 36397 | # -*- coding: utf-8 -*-
"""Generic tests that all raw classes should run."""
# Authors: MNE Developers
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD-3-Clause
from contextlib import redirect_stdout
from io import StringIO
import math
import os
from os import path as op
from pathlib import ... | bsd-3-clause | fe1fc607c7ad500d7460534c8acbab06 | 40.031567 | 111 | 0.578019 | 3.280602 | false | true | false | false |
mne-tools/mne-python | mne/decoding/ems.py | 8 | 7630 | # Author: Denis Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Jean-Remi King <jeanremi.king@gmail.com>
#
# License: BSD-3-Clause
from collections import Counter
import numpy as np
from .mixin import TransformerMixin, EstimatorMixin
from .base import _set_cv
... | bsd-3-clause | 9452dc5ce0ac6f0708c43372ef297a95 | 34.16129 | 79 | 0.618087 | 3.916838 | false | false | false | false |
mne-tools/mne-python | mne/viz/backends/_pyvista.py | 1 | 46684 | """
Core visualization operations based on PyVista.
Actual implementation of _Renderer and _Projection classes.
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
# Joan Massich <mailsik... | bsd-3-clause | 4038c0f13df4a226bfbaab566cb7efc3 | 37.140523 | 79 | 0.577628 | 3.983276 | false | false | false | false |
mne-tools/mne-python | mne/preprocessing/ica.py | 1 | 125844 | # -*- coding: utf-8 -*-
#
# Authors: Denis A. Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Juergen Dammers <j.dammers@fz-juelich.de>
#
# License: BSD-3-Clause
from inspect import isfunction, signature, Parameter
from collections import namedtuple
from colle... | bsd-3-clause | 6c4f85073d376df5bb9ea1cd3ce65695 | 40.558785 | 126 | 0.575707 | 3.928694 | false | false | false | false |
mne-tools/mne-python | examples/visualization/montage_sgskip.py | 11 | 2070 | # -*- coding: utf-8 -*-
"""
.. _plot_montage:
Plotting sensor layouts of EEG systems
======================================
This example illustrates how to load all the EEG system montages
shipped in MNE-python, and display it on the fsaverage template subject.
""" # noqa: D205, D400
# Authors: Alexandre Gramfort <a... | bsd-3-clause | 0b93e0fb1d2b5a65ca0fd9fe14342831 | 31.34375 | 77 | 0.675362 | 2.982709 | false | false | false | false |
mne-tools/mne-python | mne/minimum_norm/_eloreta.py | 11 | 7270 | # Authors: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD-3-Clause
from functools import partial
import numpy as np
from ..defaults import _handle_default
from ..fixes import _safe_svd
from ..utils import warn, logger, sqrtm_sym, eigh
# For the reference implementation of eLORETA (force_equal=False),
# 0 < ... | bsd-3-clause | 72001142b8916120b5cc32a72e911959 | 37.670213 | 78 | 0.579505 | 3.136324 | false | false | false | false |
mne-tools/mne-python | mne/viz/_brain/_brain.py | 1 | 153848 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Oleh Kozynets <ok7mailbox@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
# jona-sassenhagen <jona.sassenhagen@gmail.com>
# Joan Massich <mailsik@gmail.com>
#... | bsd-3-clause | b091a37be9c766a2ae58026eee2d88c3 | 39.715042 | 79 | 0.511506 | 4.101264 | false | false | false | false |
mattpap/sympy-polys | sympy/core/evalf.py | 1 | 38790 | """
Adaptive numerical evaluation of SymPy expressions, using mpmath
for mathematical functions.
"""
from sympy.mpmath.libmp import (from_int, from_rational, fzero, normalize,
bitcount, round_nearest, to_str, fone, fnone, fhalf, to_int, mpf_lt,
mpf_sqrt, mpf_cmp, mpf_abs, mpf_pow_int, mpf_shift, mpf_ad... | bsd-3-clause | 1dcfe321787f1983986b7cd72aed6945 | 33.541407 | 99 | 0.542588 | 3.501219 | false | false | false | false |
mattpap/sympy-polys | sympy/core/sympify.py | 1 | 4396 | """sympify -- convert objects SymPy internal format"""
from types import NoneType
from inspect import getmro
from core import BasicMeta
class SympifyError(ValueError):
def __init__(self, expr, base_exc=None):
self.expr = expr
self.base_exc = base_exc
def __str__(self):
if self.base_ex... | bsd-3-clause | 6117cc0b0a8086f6c8b2e1f257815319 | 27.921053 | 162 | 0.6101 | 4.112254 | false | false | false | false |
mattpap/sympy-polys | sympy/printing/pretty/pretty_symbology.py | 5 | 13716 | """Symbolic primitives + unicode/ASCII abstraction for pretty.py"""
import sys
warnings = ''
# first, setup unicodedate environment
try:
import unicodedata
# Python2.4 unicodedata misses some symbols, like subscript 'i', etc,
# and we still want SymPy to be fully functional under Python2.4
if sys.he... | bsd-3-clause | 78e659233c37802ce8c0ab6580e86c9f | 26.597586 | 95 | 0.493584 | 3.189026 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/tests/test_interval.py | 1 | 15390 | from sympy.mpmath import *
def test_interval_identity():
iv.dps = 15
assert mpi(2) == mpi(2, 2)
assert mpi(2) != mpi(-2, 2)
assert not (mpi(2) != mpi(2, 2))
assert mpi(-1, 1) == mpi(-1, 1)
assert str(mpi('0.1')) == "[0.099999999999999991673, 0.10000000000000000555]"
assert repr(mpi('0.1')) ... | bsd-3-clause | 15d60cfd3185a533c3d8d0998dcc9013 | 38.664948 | 116 | 0.518778 | 2.268573 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/graphics/vertexdomain.py | 5 | 28839 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 432292064e09b6dbee601de8c1383751 | 36.068123 | 79 | 0.598911 | 4.317216 | false | false | false | false |
mattpap/sympy-polys | sympy/polys/tests/test_specialpolys.py | 2 | 2492 | """Tests for functions for generating interesting polynomials. """
from sympy import Poly, ZZ, raises
from sympy.polys.specialpolys import (
swinnerton_dyer_poly,
cyclotomic_poly,
symmetric_poly,
fateman_poly_F_1,
dmp_fateman_poly_F_1,
fateman_poly_F_2,
dmp_fateman_poly_F_2,
fateman_po... | bsd-3-clause | da1d49048b299090ae930c923e81bad2 | 28.666667 | 83 | 0.574639 | 2.223015 | false | true | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/gl/glext_missing.py | 11 | 5393 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 6e820e2383e401386f2eb66108f678a3 | 41.464567 | 81 | 0.67124 | 3.206302 | false | false | false | false |
mattpap/sympy-polys | sympy/ntheory/factor_.py | 1 | 17811 | """
Integer factorization
"""
from sympy.core import Mul
from sympy.core.numbers import igcd
from sympy.core.power import integer_nthroot, Pow
from sympy.core.mul import Mul
import random
import math
from primetest import isprime
from generate import sieve, primerange
from sympy.utilities.iterables import iff
from sym... | bsd-3-clause | 6a9b55d048c0706b53ff9f0b7dd2dd10 | 29.868284 | 84 | 0.55971 | 3.827031 | false | false | false | false |
mattpap/sympy-polys | examples/intermediate/vandermonde.py | 10 | 4661 | #!/usr/bin/env python
"""Vandermonde matrix example
Demonstrates matrix computations using the Vandermonde matrix.
* http://en.wikipedia.org/wiki/Vandermonde_matrix
"""
from sympy import Matrix, pprint, Rational, sqrt, symbols, Symbol, zeros
def symbol_gen(sym_str):
"""Symbol generator
Generates sym_str_n... | bsd-3-clause | ea47951ae5307503cf4bbff374bcb760 | 27.078313 | 82 | 0.525209 | 3.230076 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/identification.py | 3 | 28881 | """
Implements the PSLQ algorithm for integer relation detection,
and derivative algorithms for constant recognition.
"""
from libmp import int_types, sqrt_fixed
# round to nearest integer (can be done more elegantly...)
def round_fixed(x, prec):
return ((x + (1<<(prec-1))) >> prec) << prec
class IdentificationM... | bsd-3-clause | 2d38286cb6940644ca39129b7a2a7445 | 33.382143 | 84 | 0.529414 | 3.186342 | false | false | false | false |
mattpap/sympy-polys | sympy/concrete/products.py | 1 | 3802 | from sympy.core import Expr, S, C, Mul, sympify
from sympy.polys import quo, roots
from sympy.simplify import powsimp
class Product(Expr):
"""Represents unevaluated product.
"""
def __new__(cls, term, *symbols, **assumptions):
term = sympify(term)
if term.is_Number:
if term i... | bsd-3-clause | 6e0b026fe601e8dba71daa11f5c98a25 | 25.22069 | 80 | 0.468175 | 3.907503 | false | false | false | false |
mattpap/sympy-polys | sympy/core/core.py | 1 | 7710 | """ The core's core. """
from assumptions import AssumeMeths, make__get_assumption
# used for canonical ordering of symbolic sequences
# via __cmp__ method:
# FIXME this is *so* irrelevant and outdated!
ordering_of_classes = [
# singleton numbers
'Zero', 'One','Half','Infinity','NaN','NegativeOne','NegativeIn... | bsd-3-clause | b18d496ee917142daff688a2b13f765b | 29.474308 | 85 | 0.558366 | 3.814943 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/media/drivers/directsound/__init__.py | 5 | 13783 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | e319dce1b4e747465297b0fd945dda5d | 33.982234 | 80 | 0.595952 | 3.812725 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/window/xlib/xinerama.py | 7 | 4022 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 329b497c17eaa4d2ae69885c7b32ca4e | 34.910714 | 84 | 0.702636 | 3.549868 | false | false | false | false |
mattpap/sympy-polys | sympy/printing/tests/test_conventions.py | 13 | 1648 | from sympy import symbols
from sympy.printing.conventions import split_super_sub
def test_super_sub():
assert split_super_sub("beta_13_2") == ("beta", [], ["13","2"])
assert split_super_sub("beta_132_20") == ("beta", [], ["132","20"])
assert split_super_sub("beta_13") == ("beta", [], ["13"])
assert spl... | bsd-3-clause | a41c7b0a40ed07476e8e6b0bcd448fc9 | 60.037037 | 75 | 0.456917 | 2.53149 | false | false | false | false |
mattpap/sympy-polys | sympy/functions/special/bsplines.py | 2 | 4632 | from sympy.core.basic import Basic, S, C, sympify
from sympy.core.function import expand
from sympy.functions import Piecewise, piecewise_fold
from sympy.functions.elementary.piecewise import ExprCondPair
from sympy.core.sets import Interval
def _add_splines(c, b1, d, b2):
"""Construct c*b1 + d*b2."""
if b1 =... | bsd-3-clause | c0b757d38d2b6bb5924c29070659e156 | 35.1875 | 215 | 0.552893 | 2.815805 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/window/xlib/__init__.py | 5 | 59054 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | af55512565ad56b4018f0cfb45a217e6 | 38.212483 | 80 | 0.563247 | 3.931691 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/functions/functions.py | 1 | 11974 | class SpecialFunctions(object):
"""
This class implements special functions using high-level code.
Elementary and some other functions (e.g. gamma function, basecase
hypergeometric series) are assumed to be predefined by the context as
"builtins" or "low-level" functions.
"""
defined_functi... | bsd-3-clause | 9f2af02019693eddd8877e72177a0fbe | 26.090498 | 84 | 0.52756 | 2.991257 | false | false | false | false |
mattpap/sympy-polys | sympy/polys/tests/test_galoistools.py | 2 | 22630 |
from sympy.polys.galoistools import (
gf_crt, gf_crt1, gf_crt2, gf_int,
gf_degree, gf_strip, gf_trunc, gf_normal,
gf_from_dict, gf_to_dict,
gf_from_int_poly, gf_to_int_poly,
gf_neg, gf_add_ground, gf_sub_ground, gf_mul_ground, gf_exquo_ground,
gf_add, gf_sub, gf_add_mul, gf_sub_mul, gf_mul, gf_... | bsd-3-clause | d27847e79cc091aeff274a10258a24f9 | 32.133236 | 79 | 0.456606 | 2.198795 | false | false | false | false |
mattpap/sympy-polys | sympy/polys/groebnertools.py | 3 | 16634 | """Sparse distributed multivariate polynomials and Groebner bases. """
from sympy.polys.monomialtools import (
monomial_mul,
monomial_div,
monomial_lcm,
monomial_lex_cmp as O_lex,
monomial_grlex_cmp as O_grlex,
monomial_grevlex_cmp as O_grevlex,
)
from sympy.polys.polyerrors import (
Exact... | bsd-3-clause | ccc2c22c802603cb64c72f14bc13ece5 | 24.473201 | 89 | 0.478899 | 2.934204 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/image/codecs/png.py | 39 | 3777 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 8fbc23df2b9bbb98c921d9825c9d5fb5 | 33.336364 | 78 | 0.618216 | 4.376593 | false | false | false | false |
mattpap/sympy-polys | sympy/polys/tests/test_polyroots.py | 2 | 9365 |
from sympy import S, symbols, Symbol, Integer, Rational, \
sqrt, I, raises, powsimp, Lambda
from sympy.polys import Poly
from sympy.polys.polyroots import root_factors, roots_linear, \
roots_quadratic, roots_cubic, roots_quartic, roots_binomial, \
roots_rational, roots, number_of_real_roots, RootOf, Roo... | bsd-3-clause | 859162e31ec41a6f17eec04e6d10295b | 33.94403 | 95 | 0.488841 | 2.21029 | false | false | false | false |
mattpap/sympy-polys | sympy/logic/algorithms/dpll.py | 1 | 9083 | """Implementation of DPLL algorithm
Further improvements: eliminate calls to pl_true, implement branching rules,
efficient unit propagation.
References:
- http://en.wikipedia.org/wiki/DPLL_algorithm
- http://bioinformatics.louisville.edu/ouyang/MingOuyangThesis.pdf
"""
from sympy.core import Symbol
from sympy.log... | bsd-3-clause | 763157d0833354a0ff94087484f92c51 | 30.429066 | 98 | 0.594848 | 3.577393 | false | false | false | false |
mattpap/sympy-polys | sympy/ntheory/partitions_.py | 10 | 2851 | from sympy.mpmath.libmp import (fzero,
from_man_exp, from_int, from_rational,
fone, fhalf, bitcount, to_int, to_str, mpf_mul, mpf_div, mpf_sub,
mpf_add, mpf_sqrt, mpf_pi, mpf_cosh_sinh, pi_fixed, mpf_cos)
from sympy.core.numbers import igcd
import math
def A(n, j, prec):
"""Compute the inner sum in the... | bsd-3-clause | 605c3c334e821d2f4e8de612c1f8572d | 34.197531 | 74 | 0.558401 | 2.814413 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/rational.py | 1 | 5145 | import operator
from libmp import int_types, mpf_hash, bitcount
new = object.__new__
def create_reduced(p, q, _cache={}):
key = p, q
if key in _cache:
return _cache[key]
x, y = p, q
while y:
x, y = y, x % y
if x != 1:
p //= x
q //= x
v = new(mpq)
v._mpq_ = p... | bsd-3-clause | ffca761862985597035cbb9379e50714 | 22.930233 | 66 | 0.417298 | 3.187732 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/media/avbin.py | 5 | 16893 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 28ea877778d62d26d5d919ba7c244cd1 | 34.415094 | 120 | 0.593915 | 3.80045 | false | false | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/font/freetype_lib.py | 5 | 14036 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | c61c4e415d42b65b34a4d2bdece87b35 | 31.871194 | 78 | 0.566472 | 3.249826 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/libmp/libmpf.py | 3 | 42867 | """
Low-level functions for arbitrary-precision floating-point arithmetic.
"""
__docformat__ = 'plaintext'
import math
from bisect import bisect
# Importing random is slow
#from random import getrandbits
getrandbits = None
from backend import (MPZ, MPZ_TYPE, MPZ_ZERO, MPZ_ONE, MPZ_TWO, MPZ_FIVE,
BACKEND, STRIC... | bsd-3-clause | a72dcc1e6b0318c4fd19ed131996cc0e | 30.682927 | 84 | 0.525626 | 3.537757 | false | false | false | false |
mattpap/sympy-polys | sympy/simplify/tests/test_simplify.py | 1 | 19954 | from sympy import Symbol, symbols, together, hypersimp, factorial, binomial, \
collect, Function, powsimp, separate, sin, exp, Rational, fraction, \
simplify, trigsimp, cos, tan, cot, log, ratsimp, Matrix, pi, integrate, \
solve, nsimplify, GoldenRatio, sqrt, E, I, sympify, atan, Derivative, \
... | bsd-3-clause | d5d8a8cf9cb52e89f28aa21cd2109940 | 38.66998 | 115 | 0.514183 | 2.343394 | false | true | false | false |
mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/window/carbon/types.py | 7 | 4141 | # ----------------------------------------------------------------------------
# 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:
#
# * Redistribu... | bsd-3-clause | 1dc021deec179d38f7028c69fa78fc73 | 25.044025 | 78 | 0.639459 | 3.622922 | false | false | false | false |
mattpap/sympy-polys | sympy/mpmath/libmp/libelefun.py | 1 | 43291 | """
This module implements computation of elementary transcendental
functions (powers, logarithms, trigonometric and hyperbolic
functions, inverse trigonometric and hyperbolic) for real
floating-point numbers.
For complex and interval implementations of the same functions,
see libmpc and libmpi.
"""
import math
from... | bsd-3-clause | 501419216ae7c4dad71305f40420f20c | 29.681077 | 83 | 0.497609 | 3.05124 | false | false | false | false |
mattpap/sympy-polys | sympy/ntheory/residue.py | 4 | 1679 | from sympy.core.numbers import igcd
from primetest import isprime
def totient_(n):
"""returns the number of integers less than n
and relatively prime to n"""
if n < 1:
raise ValueError("n must be a positive integer")
tot=0
for x in xrange(1,n):
if igcd(x,n)==1:
tot+=1
... | bsd-3-clause | 552e7f296d8838cdbd9a31ba38a0da4c | 25.650794 | 70 | 0.584276 | 3.173913 | false | false | false | false |
mattpap/sympy-polys | sympy/polys/monomialtools.py | 2 | 5819 | """Tools and arithmetics for monomials of distributed polynomials. """
from sympy.core.mul import Mul
from sympy.core.basic import S
from sympy.functions import factorial
from sympy.utilities import all, any
from sympy.utilities import cythonized
def monomials(variables, degree):
"""Generate a set of monomials ... | bsd-3-clause | 540b3e935e7e57724b1a5ad52193af20 | 25.939815 | 77 | 0.550266 | 3.073957 | false | false | false | false |
mattpap/sympy-polys | sympy/functions/combinatorial/factorials.py | 2 | 12073 | from sympy.core.basic import S, C, sympify
from sympy.core.function import Function
from sympy.ntheory import sieve
from math import sqrt
###############################################################################
######################## FACTORIAL and MULTI-FACTORIAL ########################
#####################... | bsd-3-clause | 3737c1cf6d51ac718e32b919aba3d068 | 29.032338 | 90 | 0.434275 | 4.276656 | false | false | false | false |
mattpap/sympy-polys | sympy/utilities/pkgdata.py | 12 | 1759 | """
pkgdata is a simple, extensible way for a package to acquire data file
resources.
The getResource function is equivalent to the standard idioms, such as
the following minimal implementation::
import sys, os
def getResource(identifier, pkgname=__name__):
pkgpath = os.path.dirname(sys.modules[pkgna... | bsd-3-clause | 3c279ccde09eceb937ad9ef4e35e140a | 31.574074 | 75 | 0.664582 | 3.952809 | false | false | false | false |
wtforms/wtforms | tests/validators/test_optional.py | 1 | 1185 | import pytest
from wtforms.validators import optional
from wtforms.validators import StopValidation
def test_input_optional_passes(dummy_form, dummy_field):
"""
optional should pause with given values
"""
validator = optional()
dummy_field.data = "foobar"
dummy_field.raw_data = ["foobar"]
... | bsd-3-clause | c3719ac4d18e5300b7115f4eaf419679 | 31.027027 | 88 | 0.670886 | 3.859935 | false | true | false | false |
wtforms/wtforms | tests/test_locale_babel.py | 1 | 2853 | from decimal import Decimal
from decimal import ROUND_UP
import pytest
from tests.common import DummyPostData
from wtforms import Form
from wtforms.fields import DecimalField
from wtforms.utils import unset_value
class TestLocaleDecimal:
class F(Form):
class Meta:
locales = ["hi_IN", "en_US"... | bsd-3-clause | 2de1b693feee81957ca74422f2c3d9ab | 33.301205 | 82 | 0.560941 | 3.549875 | false | true | false | false |
nteract/papermill | docs/conf.py | 1 | 5193 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# papermill documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 15 09:50:01 2018.
#
# 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
# ... | bsd-3-clause | 526cd7d36ab7a1a08abb6e933cbfe91e | 30.283133 | 86 | 0.672636 | 3.878267 | false | true | false | false |
nteract/papermill | papermill/clientwrap.py | 1 | 4348 | import sys
import asyncio
from nbclient import NotebookClient
from nbclient.exceptions import CellExecutionError
from traitlets import Bool, Instance
class PapermillNotebookClient(NotebookClient):
"""
Module containing a that executes the code cells
and updates outputs
"""
log_output = Bool(Fal... | bsd-3-clause | 0ca712c2b826b7206b6085a464fb0067 | 38.527273 | 100 | 0.606946 | 4.229572 | false | false | false | false |
datreant/datreant | src/datreant/tests/test_collections.py | 3 | 49853 | """Tests for Bundle.
"""
import numpy as np
import pytest
import datreant as dtr
def do_stuff(treant):
return treant.name
def return_nothing(treant):
b = treant.name
class CollectionsTests(object):
"""Mixin tests for collections"""
def test_parents(self, collection, tmpdir):
with tmpdi... | bsd-3-clause | 14b6eeb79b7bc4b09c6970619a00141a | 40.440565 | 79 | 0.486952 | 3.985371 | false | true | false | false |
datreant/datreant | src/datreant/selectionparser.py | 1 | 2710 | from pyparsing import (CaselessLiteral, Word, quotedString,
removeQuotes, infix_notation, opAssoc, stringEnd,
ParseException)
__all__ = ['parse_selection']
class UnaryOperation(object):
def __init__(self, t):
self.op, self.a = t[0]
class BinaryOperation(obj... | bsd-3-clause | 525cc2b957a7b51786cedbe746159061 | 25.831683 | 110 | 0.61845 | 3.687075 | false | false | false | false |
fredrik-johansson/mpmath | mpmath/tests/test_fp.py | 15 | 89997 | """
Easy-to-use test-generating code:
cases = '''
exp 2.25
log 2.25
'''
from mpmath import *
mp.dps = 20
for test in cases.splitlines():
if not test:
continue
words = test.split()
fname = words[0]
args = words[1:]
argstr = ", ".join(args)
testline = "%s(%s)" % (fname, argstr)
ans =... | bsd-3-clause | ef051903d7fa366579d2c478cb86b8b5 | 52.858169 | 101 | 0.681312 | 2.159444 | false | false | false | false |
fredrik-johansson/mpmath | mpmath/matrices/linalg.py | 1 | 26958 | """
Linear algebra
--------------
Linear equations
................
Basic linear algebra is implemented; you can for example solve the linear
equation system::
x + 2*y = -10
3*x + 4*y = 10
using ``lu_solve``::
>>> from mpmath import *
>>> mp.pretty = False
>>> A = matrix([[1, 2], [3, 4]])
... | bsd-3-clause | cf6a25d263f116f37128fa3450d795e1 | 33.124051 | 95 | 0.461978 | 3.568705 | false | false | false | false |
fredrik-johansson/mpmath | mpmath/functions/orthogonal.py | 15 | 16097 | from .functions import defun, defun_wrapped
def _hermite_param(ctx, n, z, parabolic_cylinder):
"""
Combined calculation of the Hermite polynomial H_n(z) (and its
generalization to complex n) and the parabolic cylinder
function D.
"""
n, ntyp = ctx._convert_param(n)
z = ctx.convert(z)
q ... | bsd-3-clause | f96018f121bda14360ed407079927924 | 31.651116 | 84 | 0.474498 | 2.543774 | false | false | false | false |
fredrik-johansson/mpmath | mpmath/calculus/approximation.py | 9 | 8817 | from ..libmp.backend import xrange
from .calculus import defun
#----------------------------------------------------------------------------#
# Approximation methods #
#----------------------------------------------------------------------------#
# The Chebyshev ap... | bsd-3-clause | d83bd46ccc217eaaa2a9550f0e3651d9 | 34.841463 | 79 | 0.587388 | 3.255908 | false | false | false | false |
fredrik-johansson/mpmath | mpmath/tests/test_matrices.py | 1 | 7944 | import pytest
import sys
from mpmath import *
def test_matrix_basic():
A1 = matrix(3)
for i in range(3):
A1[i,i] = 1
assert A1 == eye(3)
assert A1 == matrix(A1)
A2 = matrix(3, 2)
assert not A2._matrix__data
A3 = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
assert list(A3) == list(r... | bsd-3-clause | c46601a98df619d5f843c9e246421d43 | 30.399209 | 121 | 0.4786 | 2.828053 | false | true | false | false |
fredrik-johansson/mpmath | mpmath/tests/test_functions2.py | 2 | 96990 | import math
import pytest
from mpmath import *
def test_bessel():
mp.dps = 15
assert j0(1).ae(0.765197686557966551)
assert j0(pi).ae(-0.304242177644093864)
assert j0(1000).ae(0.0247866861524201746)
assert j0(-25).ae(0.0962667832759581162)
assert j1(1).ae(0.440050585744933516)
assert j1(pi).... | bsd-3-clause | 5ccec1b07dcf07364153fde21c426193 | 39.683725 | 255 | 0.706516 | 2.173445 | false | false | false | false |
fatiando/fatiando | cookbook/seismic_wavefd_rayleigh_wave.py | 9 | 2865 | """
Seismic: 2D finite difference simulation of elastic P and SV wave propagation
in a medium with a discontinuity (i.e., Moho), generating Rayleigh waves
"""
import numpy as np
from matplotlib import animation
from fatiando import gridder
from fatiando.seismic import wavefd
from fatiando.vis import mpl
# Set the para... | bsd-3-clause | 6ec742e79a7dcf3b52d8ad4e2481801f | 32.313953 | 77 | 0.670506 | 2.773475 | false | false | false | false |
fatiando/fatiando | fatiando/gridder/point_generation.py | 6 | 6022 | """
Generate points on a map as regular grids or points scatters.
"""
from __future__ import division, absolute_import, print_function
import numpy as np
def _check_area(area):
"""
Check that the area argument is valid.
For example, the west limit should not be greater than the east limit.
"""
x1,... | bsd-3-clause | bb13c01797b68e70b75e156f3253c50d | 29.261307 | 79 | 0.549983 | 3.069317 | false | false | false | false |
fatiando/fatiando | fatiando/gravmag/sphere.py | 5 | 27981 | r"""
The potential fields of a homogeneous sphere.
"""
from __future__ import division, absolute_import
import numpy as np
from ..constants import SI2MGAL, G, CM, T2NT, SI2EOTVOS
from .. import utils
from .._our_duecredit import due, Doi
due.cite(Doi("10.1017/CBO9780511549816"),
description='Forward modeli... | bsd-3-clause | 42e8e32a31e8c7e5f2d4d69958a2072f | 27.235116 | 79 | 0.562274 | 3.116618 | false | false | false | false |
fatiando/fatiando | cookbook/seismic_profile_vertical.py | 7 | 1802 | """
Seismic: Invert vertical seismic profile (VSP) traveltimes for the velocity
of a layered model.
"""
import numpy
from fatiando import utils
from fatiando.seismic.profile import layered_straight_ray, LayeredStraight
from fatiando.inversion.regularization import Damping
from fatiando.vis import mpl
# The limits in v... | bsd-3-clause | fdaa8d61aa579c2a40d48ef2b8961787 | 33.653846 | 75 | 0.724195 | 2.901771 | false | false | false | false |
fatiando/fatiando | fatiando/gravmag/euler.py | 6 | 14010 | # coding: utf-8
"""
Euler deconvolution methods for potential fields.
* :class:`~fatiando.gravmag.euler.EulerDeconv`: The classic 3D solution to
Euler's equation for potential fields (Reid et al., 1990). Runs on the whole
dataset.
* :class:`~fatiando.gravmag.euler.EulerDeconvEW`: Run Euler deconvolution on an
e... | bsd-3-clause | b16ac15de76fb13913e31e7a0c7a7146 | 35.196382 | 79 | 0.598087 | 3.605663 | false | false | false | false |
fatiando/fatiando | fatiando/mesher/geometry.py | 6 | 16438 | """
Defines geometric primitives like prisms, spheres, etc.
"""
from __future__ import division, absolute_import
from future.builtins import object, super
import copy as cp
import numpy as np
class GeometricElement(object):
"""
Base class for all geometric elements.
"""
def __init__(self, props):
... | bsd-3-clause | bebbeb00eb2aa7bdacd7df7593ae070d | 27.991182 | 79 | 0.485096 | 3.240931 | false | false | false | false |
fatiando/fatiando | fatiando/_our_duecredit.py | 6 | 1984 | # pylint: skip-file
# emacs: at the end of the file
# ex: set sts=4 ts=4 sw=4 et:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### #
"""
Stub file for a guaranteed safe import of duecredit constructs: if duecredit
is not available.
To use it, place it into your project codebase to be impo... | bsd-3-clause | ebe403c72ba29069a5781c0791be60ab | 26.178082 | 79 | 0.628024 | 3.492958 | false | false | false | false |
fatiando/fatiando | cookbook/gravmag_transform_rtp.py | 9 | 1569 | """
GravMag: Reduction to the pole of a total field anomaly using FFT
"""
from fatiando import mesher, gridder, utils
from fatiando.gravmag import prism, transform
from fatiando.vis import mpl
# Direction of the Geomagnetic field
inc, dec = -60, 0
# Make a model with only induced magnetization
model = [mesher.Prism(-1... | bsd-3-clause | 309c238594ee64a580d2428f21b061fb | 34.659091 | 78 | 0.681326 | 2.597682 | false | false | false | false |
fatiando/fatiando | fatiando/mesher/mesh.py | 6 | 32852 | """
Meshes (collections) of geometric objects.
Meshes behave like lists/arrays of geometric objects (they are iterables).
"""
from __future__ import division, absolute_import
from future.builtins import range, object, super
import numpy as np
import scipy.special
import scipy.interpolate
import copy as cp
from .. imp... | bsd-3-clause | 217ba6aac8e81d85aadd2b2cbb0b775f | 31.623635 | 79 | 0.502161 | 3.383316 | false | false | false | false |
desihub/desisim | py/desisim/quickcat.py | 1 | 28069 | '''
desisim.quickcat
================
Code for quickly generating an output zcatalog given fiber assignment tiles,
a truth catalog, and optionally a previous zcatalog.
'''
from __future__ import absolute_import, division, print_function
import os
import yaml
from collections import Counter
from pkg_resources import ... | bsd-3-clause | 1e6382d1a3a3ab30ecd64b2224e4cd4b | 37.609354 | 153 | 0.600021 | 3.291393 | false | false | false | false |
desihub/desisim | py/desisim/qso_template/qso_pca.py | 1 | 4895 | """
desisim.qso_template.qso_pca
============================
Module for generate QSO PCA templates
24-Nov-2014 by JXP
"""
from __future__ import print_function, absolute_import, division
import numpy as np
import os
import multiprocessing as mp
from astropy.io import fits
flg_xdb = True
try:
from xastropy.xuti... | bsd-3-clause | f973055dc2defdb75b806fb31743ab58 | 25.459459 | 86 | 0.544433 | 2.990226 | false | false | false | false |
desihub/desisim | py/desisim/transients.py | 1 | 24932 | """Module for defining interface to transient models.
"""
from abc import ABC, abstractmethod
from astropy import units as u
import numpy as np
from desiutil.log import get_logger, DEBUG
# Hide sncosmo import from the module.
try:
import sncosmo
log = get_logger(DEBUG)
log.info('Enabling sncosmo models.'... | bsd-3-clause | a477c4bb4d0d9670ff60265f53e26552 | 38.07837 | 97 | 0.460091 | 4.294178 | false | false | false | false |
desihub/desisim | py/desisim/archetypes.py | 1 | 5024 | """
desisim.archetypes
==================
Archetype routines for desisim.
"""
from __future__ import absolute_import, division, print_function
import os
import numpy as np
from desiutil.log import get_logger
log = get_logger()
def compute_chi2(flux, ferr=None):
"""Compute the chi2 distance matrix.
Parame... | bsd-3-clause | 9379f1fa247aa80fa433e036a22a052f | 31 | 100 | 0.57703 | 3.82344 | false | false | false | false |
desihub/desisim | py/desisim/bal.py | 1 | 5869 | """
desisim.bal
===========
Functions and methods for inserting BALs into QSO spectra.
"""
from __future__ import division, print_function
import numpy as np
class BAL(object):
"""Base class for inserting BALs into (input) QSO spectra."""
def __init__(self):
"""Read and cache the BAL template set.
... | bsd-3-clause | 4617a51014694ea9535a3eb33961a25e | 39.475862 | 155 | 0.59465 | 3.602824 | false | false | false | false |
metoppv/improver | improver/spotdata/spot_extraction.py | 3 | 16425 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | f283875d46a99785f67492bb583ad6db | 39.455665 | 91 | 0.62691 | 4.462103 | false | false | false | false |
metoppv/improver | improver/cli/construct_reliability_tables.py | 3 | 4678 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | bsd-3-clause | d13acb50b5c508add4e4d31ff3010783 | 47.226804 | 86 | 0.709491 | 4.546161 | false | false | false | false |
metoppv/improver | improver/psychrometric_calculations/cloud_condensation_level.py | 2 | 5584 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | 3916531b53a78af742c1dfa7187a0470 | 38.602837 | 88 | 0.653653 | 4.256098 | false | false | false | false |
metoppv/improver | improver/utilities/interpolation.py | 3 | 9823 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | e72512f43f14fe08be1024abd491ef77 | 39.258197 | 87 | 0.622213 | 4.664292 | false | false | false | false |
metoppv/improver | improver/psychrometric_calculations/cloud_top_temperature.py | 1 | 6910 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | fd0b34ad36170a8c9bfec8423a6244fe | 41.392638 | 97 | 0.644863 | 3.890766 | false | false | false | false |
metoppv/improver | improver/metadata/utilities.py | 2 | 8372 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | 38bb958a46dc32ae986358c1c6e043e3 | 34.176471 | 93 | 0.647516 | 4.299949 | false | false | false | false |
metoppv/improver | improver_tests/acceptance/test_blend_adjacent_points.py | 3 | 4998 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | 4af2c0d795e1bd50ad561cccbfdfe92f | 31.666667 | 79 | 0.614646 | 3.715985 | false | true | false | false |
metoppv/improver | improver/cli/orographic_enhancement.py | 3 | 5278 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | bsd-3-clause | 9f7f2b87fbf367235a1980182d15b84b | 39.6 | 84 | 0.697423 | 4.391015 | false | false | false | false |
metoppv/improver | improver_tests/blending/weighted_blend/test_PercentileBlendingAggregator.py | 3 | 12267 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | cd37ecb28f05859ed28cdddfc439915b | 37.454545 | 86 | 0.59118 | 3.302908 | false | true | false | false |
metoppv/improver | improver/cli/__init__.py | 3 | 19033 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | f9b011c417d1b87aa47488b280b9a62d | 29.599678 | 98 | 0.643146 | 4.09488 | false | false | false | false |
metoppv/improver | improver_tests/acceptance/test_cloud_top_temperature.py | 2 | 2643 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | 991951fcc172dc00a7bc0611366d767f | 41.629032 | 79 | 0.695044 | 3.933036 | false | true | false | false |
metoppv/improver | improver_tests/ensemble_copula_coupling/test_EnsembleReordering.py | 1 | 26371 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | 96af916c76de30288aec7250de22486a | 39.821981 | 88 | 0.605589 | 3.670796 | false | true | false | false |
metoppv/improver | improver/cli/generate_topography_bands_weights.py | 3 | 4407 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | bsd-3-clause | b0981943f75324dd8964136b057123e0 | 41.786408 | 81 | 0.671205 | 4.253861 | false | false | false | false |
metoppv/improver | improver/nowcasting/pysteps_advection.py | 3 | 11600 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | e22a0dd6dc2f271dafce664524c4e50c | 39 | 87 | 0.637414 | 4.270987 | false | false | false | false |
metoppv/improver | improver_tests/utilities/test_pad_spatial.py | 3 | 25212 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are me... | bsd-3-clause | e58abcb59aae624597997054739cbb95 | 42.846957 | 86 | 0.559059 | 3.017233 | false | true | false | false |
metoppv/improver | improver/cli/nowcast_optical_flow.py | 3 | 3156 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown copyright. The Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | bsd-3-clause | 4c7758f2df825360fe4bfedb2adcc627 | 39.987013 | 81 | 0.72275 | 4.120104 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.