<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-

import pytest
import numpy as np

import astropy.units as u
from astropy import table
from astropy import __minimum_asdf_version__
from astropy.table.tests.test_operations import skycoord_equal

asdf = pytest.importorskip('asdf', minversion=__minimum_asdf_version__)
from asdf.tests import helpers
from asdf.tags.core.ndarray import NDArrayType

from astropy.time import Time

from ...tests.helpers import run_schema_example_test


def test_table(tmpdir):
    data_rows = [(1, 2.0, 'x'),
                 (4, 5.0, 'y'),
                 (5, 8.2, 'z')]
    t = table.Table(rows=data_rows, names=('a', 'b', 'c'),
                    dtype=('i4', 'f8', 'S1'))<commit_msg>Add ASDF test for Table with SkyCoord mixin<commit_after># Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-

import pytest
import numpy as np

import astropy.units as u
from astropy import table
from astropy.time import Time
from astropy.coordinates import SkyCoord
from astropy import __minimum_asdf_version__
from astropy.table.tests.test_operations import skycoord_equal

asdf = pytest.importorskip('asdf', minversion=__minimum_asdf_version__)
from asdf.tests import helpers
from asdf.tags.core.ndarray import NDArrayType

from ...tests.helpers import run_schema_example_test


def test_table(tmpdir):
    data_rows = [(1, 2.0, 'x'),
                 (4, 5.0, 'y'),
                 (5, 8.2, 'z')]
    t = table.Table(rows=data_rows, names=('a', 'b', 'c'),
                    dtype=('i4', 'f8', 'S1'))
{'fraction_non_alphanumeric': 0.11833952912019827, 'fraction_numerical': 0.01734820322180917, 'mean_word_length': 3.486111111111111, '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': '5445436', 'n_tokens_mistral': 553, 'n_tokens_neox': 535, 'n_words': 156}