<commit_before># This file connects the readers/writers to the astropy.table.Table class

from .ui import read, write
from .basic import Rdb
from .cds import Cds
from .latex import Latex
from .daophot import Daophot
from .ipac import Ipac
from ...table import io_registry

__all__ = []


# CDS
# ===

def read_cds(filename, **kwargs):
    return read(filename, Reader=Cds, **kwargs)

io_registry.register_reader('cds', read_cds)


# DAOPhot
# =======

def read_daophot(filename, **kwargs):
    return read(filename, Reader=Daophot, **kwargs)

io_registry.register_reader('daophot', read_daophot)


# LaTeX
# =====

def read_latex(filename, **kwargs):
    return read(filename, Reader=Latex, **kwargs)


def write_latex(table, filename, **kwargs):
    write(table, filename, Writer=Latex, **kwargs)

io_registry.register_reader('latex', read_latex)
io_registry.register_writer('latex', write_latex)


def is_latex(origin, args, kwargs):
    return args[0].endswith('.tex')

io_registry.register_identifier('latex', is_latex)


# RDB
# ===

def read_rdb(filename, **kwargs):
    return read(filename, Reader=Rdb, **kwargs)


def write_rdb(table, filename, **kwargs):
    write(table, filename, Writer=Rdb, **kwargs)

io_registry.register_reader('rdb', read_rdb)
io_registry.register_writer('rdb', write_rdb)


def is_rdb(origin, args, kwargs):
    return args[0].endswith('.rdb')

io_registry.register_identifier('rdb', is_rdb)<commit_msg>Added IPAC tables to registration with astropy.table<commit_after># This file connects the readers/writers to the astropy.table.Table class

from .ui import read, write
from .basic import Rdb
from .cds import Cds
from .latex import Latex
from .daophot import Daophot
from .ipac import Ipac
from ...table import io_registry

__all__ = []


# IPAC
# ====

def read_ipac(filename, **kwargs):
    return read(filename, Reader=Ipac, **kwargs)

io_registry.register_reader('ipac', read_ipac)

def is_ipac(origin, args, kwargs):
    return args[0].endswith('.tbl')

io_registry.register_identifier('ipac', is_ipac)

# CDS
# ===

def read_cds(filename, **kwargs):
    return read(filename, Reader=Cds, **kwargs)

io_registry.register_reader('cds', read_cds)


# DAOPhot
# =======

def read_daophot(filename, **kwargs):
    return read(filename, Reader=Daophot, **kwargs)

io_registry.register_reader('daophot', read_daophot)


# LaTeX
# =====

def read_latex(filename, **kwargs):
    return read(filename, Reader=Latex, **kwargs)

io_registry.register_reader('latex', read_latex)


def write_latex(table, filename, **kwargs):
    write(table, filename, Writer=Latex, **kwargs)

io_registry.register_writer('latex', write_latex)


def is_latex(origin, args, kwargs):
    return args[0].endswith('.tex')

io_registry.register_identifier('latex', is_latex)


# RDB
# ===

def read_rdb(filename, **kwargs):
    return read(filename, Reader=Rdb, **kwargs)

io_registry.register_reader('rdb', read_rdb)

def write_rdb(table, filename, **kwargs):
    write(table, filename, Writer=Rdb, **kwargs)

io_registry.register_writer('rdb', write_rdb)


def is_rdb(origin, args, kwargs):
    return args[0].endswith('.rdb')

io_registry.register_identifier('rdb', is_rdb)
{'fraction_non_alphanumeric': 0.14101758793969849, 'fraction_numerical': 0.00157035175879397, 'mean_word_length': 5.733615221987315, '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': '4121726', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1111, 'n_words': 255}