<commit_before>import {DateTime} from './datetime';

export enum ScaleType {
    LINEAR = 'linear' as any,
    LOG = 'log' as any,
    POW = 'pow' as any,
    SQRT = 'sqrt' as any,
    QUANTILE = 'quantile' as any,
    QUANTIZE = 'quantize' as any,
    ORDINAL = 'ordinal' as any,
    TIME = 'time' as any,
    UTC  = 'utc' as any,
}

export enum NiceTime {
    SECOND = 'second' as any,
    MINUTE = 'minute' as any,
    HOUR = 'hour' as any,
    DAY = 'day' as any,
    WEEK = 'week' as any,
    MONTH = 'month' as any,
    YEAR = 'year' as any,
}

export enum BandSize {
  FIT = 'fit' as any
}

export const BANDSIZE_FIT = BandSize.FIT;

export interface ScaleConfig {
  /**
   * If true, rounds numeric output values to integers.
   * This can be helpful for snapping to the pixel grid.
   * (Only available for `x`, `y`, `size`, `row`, and `column` scales.)
   */
  round?: boolean;

  /**
   * If true, values that exceed the data domain are clamped to either the minimum or maximum range value
   */
  clamp?: boolean;
  /**
   *  Default band width for `x` ordinal scale when is mark is `text`.
   *  @minimum 0
   */
  textBandWidth?: number;
  /**
   * Default band size for (1) `y` ordinal scale,
   * and (2) `x` ordinal scale when the mark is not `text`.
   * @minimum 0
   */
  bandSize?: number | BandSize;
  /**
   * Default range for opacity.
   */
  opacity?: number[];
  /**
   * Default padding for `x` and `y` band-ordinal scales.
   * @minimum 0
   * @maximum 1
   */
  bandPadding?: number;
  /**
   * Default padding for `x` and `y` point-ordinal scales.
   * @minimum 0
   * @maximum 1
   */
  pointPadding?: number;

  /**
   * Default spacing between faceted plots.
   * @type {integer}
   * @minimum 0
   * @maximum 1
   */
  facetSpacing?: number;

  /**
   * Uses the source data range as scale domain instead of aggregated data for aggregate axis.
   * This property only works with aggregate functions that produce values within the raw data domain (`"mean"`, `"average"`, `"stdev"`, `"stdevp"`, `"median"`, `"q1"`, `"q3"`, `"min"`, `"max"`). For other aggregations that produce values outside of the raw data domain (e.g. `"count"`, `"sum"`), this property is ignored.
   */
  useRawDomain?: boolean;
<commit_msg>Don't limit facetSpacing to 1<commit_after>import {DateTime} from './datetime';

export enum ScaleType {
    LINEAR = 'linear' as any,
    LOG = 'log' as any,
    POW = 'pow' as any,
    SQRT = 'sqrt' as any,
    QUANTILE = 'quantile' as any,
    QUANTIZE = 'quantize' as any,
    ORDINAL = 'ordinal' as any,
    TIME = 'time' as any,
    UTC  = 'utc' as any,
}

export enum NiceTime {
    SECOND = 'second' as any,
    MINUTE = 'minute' as any,
    HOUR = 'hour' as any,
    DAY = 'day' as any,
    WEEK = 'week' as any,
    MONTH = 'month' as any,
    YEAR = 'year' as any,
}

export enum BandSize {
  FIT = 'fit' as any
}

export const BANDSIZE_FIT = BandSize.FIT;

export interface ScaleConfig {
  /**
   * If true, rounds numeric output values to integers.
   * This can be helpful for snapping to the pixel grid.
   * (Only available for `x`, `y`, `size`, `row`, and `column` scales.)
   */
  round?: boolean;

  /**
   * If true, values that exceed the data domain are clamped to either the minimum or maximum range value
   */
  clamp?: boolean;
  /**
   *  Default band width for `x` ordinal scale when is mark is `text`.
   *  @minimum 0
   */
  textBandWidth?: number;
  /**
   * Default band size for (1) `y` ordinal scale,
   * and (2) `x` ordinal scale when the mark is not `text`.
   * @minimum 0
   */
  bandSize?: number | BandSize;
  /**
   * Default range for opacity.
   */
  opacity?: number[];
  /**
   * Default padding for `x` and `y` band-ordinal scales.
   * @minimum 0
   * @maximum 1
   */
  bandPadding?: number;
  /**
   * Default padding for `x` and `y` point-ordinal scales.
   * @minimum 0
   * @maximum 1
   */
  pointPadding?: number;

  /**
   * Default spacing between faceted plots.
   * @type {integer}
   * @minimum 0
   */
  facetSpacing?: number;

  /**
   * Uses the source data range as scale domain instead of aggregated data for aggregate axis.
   * This property only works with aggregate functions that produce values within the raw data domain (`"mean"`, `"average"`, `"stdev"`, `"stdevp"`, `"median"`, `"q1"`, `"q3"`, `"min"`, `"max"`). For other aggregations that produce values outside of the raw data domain (e.g. `"count"`, `"sum"`), this property is ignored.
   */
  useRawDomain?: boolean;

{'fraction_non_alphanumeric': 0.13780053428317007, 'fraction_numerical': 0.005342831700801425, 'mean_word_length': 2.7851727042965457, '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': '7338639', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1497, 'n_words': 572}