<commit_before>export namespace Table {
  export const SUMMARY = 'summary';
  export const SOURCE = 'source';
  export const STACKED = 'stacked';
}

// export enum Enctype {
//   X, Y, COL, ROW, SIZE, SHAPE, COLOR, TEXT, DETAIL
// }

export namespace Enctype {
  export const X = 'x';
  export const Y = 'y';
  export const ROW = 'row';
  export const COL = 'col';
  export const SHAPE = 'shape';
  export const SIZE = 'size';
  export const COLOR = 'color';
  export const TEXT = 'text';
  export const DETAIL = 'detail';

  export const LIST = [
    Enctype.X, Enctype.Y,
    Enctype.ROW, Enctype.COL,
    Enctype.SIZE, Enctype.SHAPE, Enctype.COLOR,
    Enctype.TEXT, Enctype.DETAIL
  ];
}

export namespace Type {
  export const QUANTITATIVE = 'quantitative';
  export const ORDINAL = 'ordinal';
  export const TEMPORAL = 'temporal';
  export const NOMINAL = 'nominal';

  /**
   * Mapping from full type names to short type names.
   * @type {Object}
   */
  export const SHORT_TYPE = {
    quantitative: 'Q',
    temporal: 'T',
    nominal: 'N',
    ordinal: 'O'
  };
  /**
   * Mapping from short type names to full type names.
   * @type {Object}
   */
  export const TYPE_FROM_SHORT_TYPE = {
    Q: QUANTITATIVE,
    T: TEMPORAL,
    O: ORDINAL,
    N: NOMINAL
  };
}

export const TIMEUNITS = [
  'year', 'month', 'day', 'date', 'hours', 'minutes', 'seconds'
];

// TODO: see if there is a nice way to import from Vega schema
export const AGGREGATE_OPS = [
  'values', 'count', 'valid', 'missing', 'distinct',
  'sum', 'mean', 'average', 'variance', 'variancep', 'stdev',
  'stdevp', 'median', 'q1', 'q3', 'modeskew', 'min', 'max',
  'argmin', 'argmax'
];

// TODO: remove
export var MAXBINS_DEFAULT = 15;

export const SHORTHAND = {
  Delim: '|',
  Assign: '=',
  Type: ',',
  Func: '_'
};<commit_msg>make maxbins a constants<commit_after>export namespace Table {
  export const SUMMARY = 'summary';
  export const SOURCE = 'source';
  export const STACKED = 'stacked';
}

// export enum Enctype {
//   X, Y, COL, ROW, SIZE, SHAPE, COLOR, TEXT, DETAIL
// }

export namespace Enctype {
  export const X = 'x';
  export const Y = 'y';
  export const ROW = 'row';
  export const COL = 'col';
  export const SHAPE = 'shape';
  export const SIZE = 'size';
  export const COLOR = 'color';
  export const TEXT = 'text';
  export const DETAIL = 'detail';

  export const LIST = [
    Enctype.X, Enctype.Y,
    Enctype.ROW, Enctype.COL,
    Enctype.SIZE, Enctype.SHAPE, Enctype.COLOR,
    Enctype.TEXT, Enctype.DETAIL
  ];
}

export namespace Type {
  export const QUANTITATIVE = 'quantitative';
  export const ORDINAL = 'ordinal';
  export const TEMPORAL = 'temporal';
  export const NOMINAL = 'nominal';

  /**
   * Mapping from full type names to short type names.
   * @type {Object}
   */
  export const SHORT_TYPE = {
    quantitative: 'Q',
    temporal: 'T',
    nominal: 'N',
    ordinal: 'O'
  };
  /**
   * Mapping from short type names to full type names.
   * @type {Object}
   */
  export const TYPE_FROM_SHORT_TYPE = {
    Q: QUANTITATIVE,
    T: TEMPORAL,
    O: ORDINAL,
    N: NOMINAL
  };
}

export const TIMEUNITS = [
  'year', 'month', 'day', 'date', 'hours', 'minutes', 'seconds'
];

// TODO: see if there is a nice way to import from Vega schema
export const AGGREGATE_OPS = [
  'values', 'count', 'valid', 'missing', 'distinct',
  'sum', 'mean', 'average', 'variance', 'variancep', 'stdev',
  'stdevp', 'median', 'q1', 'q3', 'modeskew', 'min', 'max',
  'argmin', 'argmax'
];

// TODO: remove
export const MAXBINS_DEFAULT = 15;

export const SHORTHAND = {
  Delim: '|',
  Assign: '=',
  Type: ',',
  Func: '_'
};
{'fraction_non_alphanumeric': 0.15350756533700138, 'fraction_numerical': 0.002200825309491059, 'mean_word_length': 3.237762237762238, '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': '4574073', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1306, 'n_words': 403}