<commit_before>""" Mesh File

This module contains the implentation to store, acces,
and modify a file storing mesh data

"""
import tables
import uuid

from simphony.cuds.mesh import Point
from simphony.cuds.mesh import Edge
from simphony.cuds.mesh import Face
from simphony.cuds.mesh import Cell

MAX_POINTS_IN_EDGE = 2
MAX_POINTS_IN_FACE = 3
MAX_POINTS_IN_CELL = 4


class _PointDescriptor(tables.IsDescription):
    """ Descriptor for storing Point information

    Provides the column definition to store Point
    information (x, y, z).

    """

    uuid = tables.StringCol(32, pos=1)
    coordinates = tables.Float64Col(
        pos=2, shape=(3,)
        )


class _EdgeDescriptor(tables.IsDescription):
    """ Descriptor for storing Edge information
<commit_msg>Temoraly set 20 as the max number of points in every element subclass<commit_after>""" Mesh File

This module contains the implentation to store, acces,
and modify a file storing mesh data

"""
import tables
import uuid

from simphony.cuds.mesh import Point
from simphony.cuds.mesh import Edge
from simphony.cuds.mesh import Face
from simphony.cuds.mesh import Cell

MAX_POINTS_IN_EDGE = 20
MAX_POINTS_IN_FACE = 20
MAX_POINTS_IN_CELL = 20


class _PointDescriptor(tables.IsDescription):
    """ Descriptor for storing Point information

    Provides the column definition to store Point
    information (x, y, z).

    """

    uuid = tables.StringCol(32, pos=1)
    coordinates = tables.Float64Col(
        pos=2, shape=(3,)
        )


class _EdgeDescriptor(tables.IsDescription):
    """ Descriptor for storing Edge information

{'fraction_non_alphanumeric': 0.07485963817841547, 'fraction_numerical': 0.015595757953836557, 'mean_word_length': 3.9968847352024923, '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': '889080', 'n_tokens_mistral': 515, 'n_tokens_neox': 482, 'n_words': 164}