<commit_before>from __future__ import absolute_import

import pandas as pd

from ...pivot_table import pivot_table
from ...properties import Any, Bool, Int, String, Enum, Instance, List, Dict
from ...enums import ColumnType
from ..widget import Widget
from ..sources import DataSource

class TableWidget(Widget):
    source = Instance(DataSource)

class TableColumn(Widget):
    pass

class DataTable(TableWidget):
    columns = List(Instance(TableColumn))

class PivotTable(Widget):
    source = Instance(DataSource)
    title = String("Pivot Table")
    description = String("")
    data = Dict(String, Any)
    fields = List(Any) # List[{name: String, dtype: String}]
    rows = List(Any)<commit_msg>Make TableColumn inherit from HasProps (not Widget)<commit_after>from __future__ import absolute_import

import pandas as pd

from ...pivot_table import pivot_table
from ...properties import HasProps, Any, Bool, Int, String, Enum, Instance, List, Dict
from ...enums import ColumnType
from ..widget import Widget
from ..sources import DataSource

class TableWidget(Widget):
    source = Instance(DataSource)

class TableColumn(HasProps):
    pass

class DataTable(TableWidget):
    columns = List(Instance(TableColumn))

class PivotTable(Widget):
    source = Instance(DataSource)
    title = String("Pivot Table")
    description = String("")
    data = Dict(String, Any)
    fields = List(Any) # List[{name: String, dtype: String}]
    rows = List(Any)
{'fraction_non_alphanumeric': 0.10370879120879122, 'fraction_numerical': 0.0, 'mean_word_length': 4.477443609022556, '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': '6319476', 'n_tokens_mistral': 413, 'n_tokens_neox': 411, 'n_words': 138}