<commit_before>import mat4 from 'gl-mat4'

export default function wrapperScope (regl, params) {
  const {fbo} = params
  const wrapperScope = regl({
    cull: {
      enable: true
    },
    uniforms: {
      ambientLightAmount: 0.8,
      diffuseLightAmount: 0.8,
      view: (context, props) => props.view,
      projection: (context, props) => {
        return mat4.perspective([],
          Math.PI / 4,
          context.viewportWidth / context.viewportHeight,
          0.01,
          1000)
      }
    },
    framebuffer: fbo
  })
  return wrapperScope
}
<commit_msg>feat(default params): added default parameters for wrapperScope<commit_after>import mat4 from 'gl-mat4'

export default function wrapperScope (regl, params={}) {
  const {fbo} = params
  const wrapperScope = regl({
    cull: {
      enable: true
    },
    uniforms: {
      ambientLightAmount: 0.8,
      diffuseLightAmount: 0.8,
      view: (context, props) => props.view,
      projection: (context, props) => {
        return mat4.perspective([],
          Math.PI / 4,
          context.viewportWidth / context.viewportHeight,
          0.01,
          1000)
      }
    },
    framebuffer: fbo
  })
  return wrapperScope
}

{'fraction_non_alphanumeric': 0.11452282157676348, 'fraction_numerical': 0.024896265560165973, 'mean_word_length': 2.2506738544474394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3747839', 'n_tokens_mistral': 392, 'n_tokens_neox': 379, 'n_words': 92}