<commit_before>from symengine import (Integer, symbols, sin, cos, pi, E, I, Add,
    function_symbol, DenseMatrix, sympify)
from symengine.lib.symengine_wrapper import (PyNumber, PyFunction,
    sage_module, wrap_sage_function)


def test_sage_conversions():
    try:
        import sage.all as sage
    except ImportError:
        return

    x, y = sage.SR.var('x y')
    x1, y1 = symbols('x, y')

    # Symbol<commit_msg>[skip appveyor] Fix import in sage test<commit_after>from symengine import (Integer, symbols, sin, cos, pi, E, I, Add,
    function_symbol, DenseMatrix, sympify, log)
from symengine.lib.symengine_wrapper import (PyNumber, PyFunction,
    sage_module, wrap_sage_function)


def test_sage_conversions():
    try:
        import sage.all as sage
    except ImportError:
        return

    x, y = sage.SR.var('x y')
    x1, y1 = symbols('x, y')

    # Symbol
{'fraction_non_alphanumeric': 0.10352673492605233, 'fraction_numerical': 0.004550625711035267, 'mean_word_length': 3.4444444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4712149', 'n_tokens_mistral': 299, 'n_tokens_neox': 291, 'n_words': 86}