775ae12230c0a3935c93290100eb1a9f63725b79,starry/compat.py,,,#,3

Before Change

// -*- coding: utf-8 -*-

__all__ = [
    "Apply",
    "COp",
    "Op",
    "Params",
    "ParamsType",
    "Node",
    "change_flags",
    "evaluator",
]

// Suppress third-party deprecation warnings
import warnings

After Change


    from aesara.configparser import change_flags

    aesara.config.floatX = floatX
elif backend == "theano-pymc":
    import theano
    import theano.tensor as tt
    import theano.sparse as ts
    from theano.tensor import slinalg
    from theano.ifelse import ifelse
    from theano.graph.basic import Apply, Node
    from theano.graph.op import ExternalCOp as COp
    from theano.graph.op import Op
    from theano.graph.params_type import Params, ParamsType
    from theano.graph.fg import MissingInputError
    from theano.configparser import change_flags

    tt.config.floatX = floatX
elif backend == "theano":
    import theano
    import theano.tensor as tt
    import theano.sparse as ts
    from theano.tensor import slinalg
    from theano.ifelse import ifelse
    from theano.gof.graph import Apply, Node
    from theano.gof.op import COp, Op
    from theano.gof.params_type import Params, ParamsType
    from theano.gof.fg import MissingInputError

    try:
        from theano.configparser import change_flags
    except:
        change_flags = theano.config.change_flags
    tt.config.floatX = floatX
else:
    raise ImportError(
        "The `starry` package requires either `theano`, `theano-pymc`, or `aesara`."
    )


def evaluator(**kwargs):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rodluger/starry
Commit Name: 775ae12230c0a3935c93290100eb1a9f63725b79
Time: 2021-03-10
Author: rodluger@gmail.com
File Name: starry/compat.py
Class Name:
Method Name:


Project Name: hmmlearn/hmmlearn
Commit Name: 1f60373d28c427a2a05c9ea26231c717772066dc
Time: 2018-10-22
Author: anntzer.lee@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: hyperopt/hyperopt
Commit Name: 0ffbad0ae0e3d389f6d9c01c2e0e6bbea9e2018a
Time: 2012-02-14
Author: james.bergstra@gmail.com
File Name: setup.py
Class Name:
Method Name: