<commit_before>from __future__ import print_function, division

__all__ = ['inertia',
           'inertia_of_point_mass',
           'linear_momentum',
           'angular_momentum',
           'kinetic_energy',
           'potential_energy',
           'Lagrangian',
           'mechanics_printing',
           'mprint',
           'msprint',
           'mpprint',
           'mlatex']

from sympy.physics.vector import Vector, ReferenceFrame, Point
from sympy.physics.vector.printing import (vprint, vsprint, vpprint, vlatex,
                                           init_vprinting)
from sympy.physics.mechanics.particle import Particle
from sympy.physics.mechanics.rigidbody import RigidBody
from sympy import sympify
from sympy.core.basic import S

# These are functions that we've renamed in during the extraction of the
# basic vector calculus code from the mechanics packages.

mprint = vprint
msprint = vsprint
mpprint = vpprint
mlatex = vlatex


def mechanics_printing(**kwargs):

    # mechanics_printing has slightly different functionality in 0.7.5 but
    # shouldn't fundamentally need a deprecation warning so we do this
    # little wrapper that gives the warning that things have changed.

    # TODO : Remove this warning in SymPy 0.7.6 (or whatever the next
    # release is after 0.7.5.

    # The message is only printed if this function is called with no args,
    # as was the previous only way to call it.

    def dict_is_empty(D):
        for k in D:
            return False
        return True

    if dict_is_empty(kwargs):
        print('See the doc string for slight changes to this function, '
              'keyword args may be needed for the desired effect. Otherwise '
              'use sympy.physics.vector.init_vprinting directly.')

    init_vprinting(**kwargs)

mechanics_printing.__doc__ = init_vprinting.__doc__<commit_msg>Wrapped warning message.<commit_after>from __future__ import print_function, division

__all__ = ['inertia',
           'inertia_of_point_mass',
           'linear_momentum',
           'angular_momentum',
           'kinetic_energy',
           'potential_energy',
           'Lagrangian',
           'mechanics_printing',
           'mprint',
           'msprint',
           'mpprint',
           'mlatex']

from sympy.physics.vector import Vector, ReferenceFrame, Point
from sympy.physics.vector.printing import (vprint, vsprint, vpprint, vlatex,
                                           init_vprinting)
from sympy.physics.mechanics.particle import Particle
from sympy.physics.mechanics.rigidbody import RigidBody
from sympy import sympify
from sympy.core.basic import S

# These are functions that we've renamed in during the extraction of the
# basic vector calculus code from the mechanics packages.

mprint = vprint
msprint = vsprint
mpprint = vpprint
mlatex = vlatex


def mechanics_printing(**kwargs):

    # mechanics_printing has slightly different functionality in 0.7.5 but
    # shouldn't fundamentally need a deprecation warning so we do this
    # little wrapper that gives the warning that things have changed.

    # TODO : Remove this warning in SymPy 0.7.6 (or whatever the next
    # release is after 0.7.5.

    # The message is only printed if this function is called with no args,
    # as was the previous only way to call it.

    def dict_is_empty(D):
        for k in D:
            return False
        return True

    if dict_is_empty(kwargs):
        print('See the doc string for slight changes to this function,\n'
              'keyword args may be needed for the desired effect. Otherwise \n'
              'use sympy.physics.vector.init_vprinting directly.')

    init_vprinting(**kwargs)

mechanics_printing.__doc__ = init_vprinting.__doc__
{'fraction_non_alphanumeric': 0.06696905016008538, 'fraction_numerical': 0.0048025613660619, 'mean_word_length': 2.664711632453568, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4609436', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1034, 'n_words': 364}