<commit_before>import getData from '../../utils/data/loader.js'
import getReady from '../../utils/setup/get_ready.js'
import prepareData from '../../utils/data/prepare.js'
import getChartElement from '../../utils/setup/get_chart_element.js'
import fixDimensions from '../../utils/setup/fix_dimensions.js'
import updateDimensions from '../../utils/responsive/update_dimensions.js'
import getBreakpoints from '../../utils/responsive/get_breakpoints.js'
import setUpResponsiveness from '../../utils/responsive/setup_responsiveness.js'
import initSvg from '../../utils/setup/init_svg.js'
import initG from '../../utils/setup/init_g.js'
import updateSvg from '../../utils/responsive/update_svg.js'
import resetG from '../../utils/draw/reset_g.js'
import getExtentDomain from '../../utils/domains/get_extent_domain.js'
import getScale from '../../utils/scales/get_scale.js'
import getAxis from '../../utils/axes/get_axis.js'
import renderAxis from '../../utils/axes/render_axis.js'
import renderAxisLabel from '../../utils/axes/render_axis_label.js'
import getColorFunc from '../../utils/colors/get_color.js'
import getSizeFunc from '../../utils/sizes/get_size.js'
import updateBreakpoints from '../../utils/responsive/update_breakpoints.js'
import updateBreakpointClasses from '../../utils/responsive/update_breakpoint_classes.js'

export default {
  plays: {
    getData,
    getReady,
    prepareData,
    getMultiData: () => {},  // FIXME
    getChartElement,
    fixDimensions,
    updateDimensions,
    setUpResponsiveness,
    initSvg,
    initG,
    getXDomain: getExtentDomain.bind({col: 'xCol'}),
    getYDomain: getExtentDomain.bind({col: 'yCol'}),
    getXScale: getScale.bind({axis: 'x'}),
    getYScale: getScale.bind({axis: 'y'}),
    getXAxis: getAxis.bind({kind: 'axisBottom', axis: 'x'}),
    getYAxis: getAxis.bind({kind: 'axisLeft', axis: 'y'}),
    renderXAxis: renderAxis.bind({cssClasses: 'x axis'}),
    renderYAxis: renderAxis.bind({axis: 'y', cssClasses: 'y axis'}),
    renderXLabel: renderAxisLabel.bind({axis: 'x'}),
    renderYLabel: renderAxisLabel.bind({axis: 'y'}),
    getColorFunc,
    getSizeFunc,
    getBreakpoints,
    updateBreakpoints,
    updateBreakpointClasses,
    updateSvg,
    resetG,
  },
  defaults: {
    width: 600,
    height: 400,
    cssNamespace: 'd3-playbooks',
    margin: {
      top: 20,
      right: 20,
      bottom: 30,
      left: 30
    },
    showXAxis: true,
    showYAxis: true,
    showXLabel: true,
    showYLabel: true,
    xCol: 'x',
    yCol: 'y',
    xTransform: d => Number(d),
    yTransform: d => Number(d),
    xScaleNice: true,
    yScaleNice: true,
    responsive: true,
    responsiveSvg: false,
    xTicks: 10,
    yTicks: 10,
    color: d3.schemeCategory10,
    filter: false,
    drawExtra: c => {},
    breakpoints: {
      small: 480,
      medium: 768,
      large: 1280
    }
  }
}<commit_msg>Make more properties public available via setting initial defaults<commit_after>import getData from '../../utils/data/loader.js'
import getReady from '../../utils/setup/get_ready.js'
import prepareData from '../../utils/data/prepare.js'
import getChartElement from '../../utils/setup/get_chart_element.js'
import fixDimensions from '../../utils/setup/fix_dimensions.js'
import updateDimensions from '../../utils/responsive/update_dimensions.js'
import getBreakpoints from '../../utils/responsive/get_breakpoints.js'
import setUpResponsiveness from '../../utils/responsive/setup_responsiveness.js'
import initSvg from '../../utils/setup/init_svg.js'
import initG from '../../utils/setup/init_g.js'
import updateSvg from '../../utils/responsive/update_svg.js'
import resetG from '../../utils/draw/reset_g.js'
import getExtentDomain from '../../utils/domains/get_extent_domain.js'
import getScale from '../../utils/scales/get_scale.js'
import getAxis from '../../utils/axes/get_axis.js'
import renderAxis from '../../utils/axes/render_axis.js'
import renderAxisLabel from '../../utils/axes/render_axis_label.js'
import getColorFunc from '../../utils/colors/get_color.js'
import getSizeFunc from '../../utils/sizes/get_size.js'
import updateBreakpoints from '../../utils/responsive/update_breakpoints.js'
import updateBreakpointClasses from '../../utils/responsive/update_breakpoint_classes.js'

export default {
  plays: {
    getData,
    getReady,
    prepareData,
    getMultiData: () => {},  // FIXME
    getChartElement,
    fixDimensions,
    updateDimensions,
    setUpResponsiveness,
    initSvg,
    initG,
    getXDomain: getExtentDomain.bind({col: 'xCol'}),
    getYDomain: getExtentDomain.bind({col: 'yCol'}),
    getXScale: getScale.bind({axis: 'x'}),
    getYScale: getScale.bind({axis: 'y'}),
    getXAxis: getAxis.bind({kind: 'axisBottom', axis: 'x'}),
    getYAxis: getAxis.bind({kind: 'axisLeft', axis: 'y'}),
    renderXAxis: renderAxis.bind({cssClasses: 'x axis'}),
    renderYAxis: renderAxis.bind({axis: 'y', cssClasses: 'y axis'}),
    renderXLabel: renderAxisLabel.bind({axis: 'x'}),
    renderYLabel: renderAxisLabel.bind({axis: 'y'}),
    getColorFunc,
    getSizeFunc,
    getBreakpoints,
    updateBreakpoints,
    updateBreakpointClasses,
    updateSvg,
    resetG,
  },
  defaults: {
    width: 600,
    height: 400,
    cssNamespace: 'd3-playbooks',
    margin: {
      top: 20,
      right: 20,
      bottom: 30,
      left: 30
    },
    showXAxis: true,
    showYAxis: true,
    showXLabel: true,
    showYLabel: true,
    xCol: 'x',
    yCol: 'y',
    xTransform: d => Number(d),
    yTransform: d => Number(d),
    xScaleNice: true,
    yScaleNice: true,
    responsive: true,
    responsiveSvg: false,
    xTicks: 10,
    yTicks: 10,
    color: d3.schemeCategory10,
    filter: false,
    drawExtra: c => {},
    breakpoints: {
      small: 480,
      medium: 768,
      large: 1280
    },

    // to have this also public:
    ready: false,
    data: null,
    element: null
  }
}
{'fraction_non_alphanumeric': 0.15772495755517826, 'fraction_numerical': 0.010865874363327675, 'mean_word_length': 3.219914040114613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2251631', 'n_tokens_mistral': 1968, 'n_tokens_neox': 1923, 'n_words': 423}