<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
import functools
import itertools

import numpy as np

from ...tests.helper import (pytest, quantity_allclose as allclose, remote_data
                             assert_quantity_allclose as assert_allclose)
from .. import Time

@remote_data
def test_corrections():
    from ... import coordinates as coord, units as u
    wht  = coord.EarthLocation.of_site('lapalma')
    star = coord.SkyCoord("08:08:08 +32:00:00",distance=120*u.pc,unit=(u.hour,u.degree),frame='icrs')
    t = Time("2013-02-02T23:00")
    t.location = wht
    hval = t.heliocentric_correction(star)
    bval = t.barycentric_correction(star)
    assert allclose(hval.sec,461.43037870502235)
    assert allclose(bval.sec,460.58538779827836)<commit_msg>syntax error fix<commit_after># Licensed under a 3-clause BSD style license - see LICENSE.rst
import functools
import itertools

import numpy as np

from ...tests.helper import (pytest, quantity_allclose as allclose, remote_data,
                             assert_quantity_allclose as assert_allclose)
from .. import Time

@remote_data
def test_corrections():
    from ... import coordinates as coord, units as u
    wht  = coord.EarthLocation.of_site('lapalma')
    star = coord.SkyCoord("08:08:08 +32:00:00",distance=120*u.pc,unit=(u.hour,u.degree),frame='icrs')
    t = Time("2013-02-02T23:00")
    t.location = wht
    hval = t.heliocentric_correction(star)
    bval = t.barycentric_correction(star)
    assert allclose(hval.sec,461.43037870502235)
    assert allclose(bval.sec,460.58538779827836)
{'fraction_non_alphanumeric': 0.10799001248439451, 'fraction_numerical': 0.07740324594257178, 'mean_word_length': 3.8429003021148036, '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': '341407', 'n_tokens_mistral': 623, 'n_tokens_neox': 540, 'n_words': 121}