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

Before Change


    from theano.gof.op import COp, Op
    from theano.gof.params_type import Params, ParamsType
    from theano.gof.fg import MissingInputError
try:
    import theano

    change_flags = theano.config.change_flags
except:
    from theano.configparser import change_flags

// Force double precision
import theano.tensor as tt

tt.config.floatX = "float64"

After Change


            "Both `aesara` and `theano` seem to be installed. Defaulting to `aesara` as the backend."
        )
except ImportError:
    try:
        import theano

        if version.parse(theano.__version__) > version.parse("1.0.5"):
            backend = "theano-pymc"
        else:
            backend = "theano"
    except ImportError:
        backend = ""

// Double-precision everywhere
floatX = "float64"

if backend == "aesara":
    import aesara as theano
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: ClimbsRocks/auto_ml
Commit Name: eb2a892a391b55f11a8a2fae180cb8e6fa4afaf1
Time: 2016-10-01
Author: climbsbytes@gmail.com
File Name: auto_ml/date_feature_engineering.py
Class Name: FeatureEngineer
Method Name: transform


Project Name: bokeh/bokeh
Commit Name: 16d3d0efcc91a4206be0c3f11ede33f9fc03cda9
Time: 2020-01-16
Author: bryan@bokeh.org
File Name: bokeh/core/property/datetime.py
Class Name: Datetime
Method Name: validate