<commit_before>// @flow
import * as PIXI from 'pixi.js';

import { BKG_GRASS_IMG, CUSTOM_SHADER_SHD } from 'playground/pixi/constants/routes';

const FILTER_VEL = 0.035;

type Props = {
  app: Object,
};
export default function customFilter({ app }: Props) {
  // Create background image
  const background = PIXI.Sprite.fromImage(BKG_GRASS_IMG);

  background.width = app.renderer.width;
  background.height = app.renderer.height;
  app.stage.addChild(background);

  // Stop application wait for load to finish
  app.stop();

  PIXI.loader.add('shader', CUSTOM_SHADER_SHD).load(onLoaded);

  let filter;

  // Handle the load completed
  function onLoaded (loader, res) {
    // Create the new filter, arguments: (vertexShader, framentSource)
    filter = new PIXI.Filter(null, res.shader.data);
<commit_msg>👕 Fix a warning<commit_after>// @flow
import * as PIXI from 'pixi.js';

import { BKG_GRASS_IMG, CUSTOM_SHADER_SHD } from 'playground/pixi/constants/routes';

const FILTER_VEL = 0.035;

type Props = {
  app: Object,
};
export default function customFilter({ app }: Props) {
  // Create background image
  const background = PIXI.Sprite.fromImage(BKG_GRASS_IMG);

  background.width = app.renderer.width;
  background.height = app.renderer.height;
  app.stage.addChild(background);

  // Stop application wait for load to finish
  app.stop();

  PIXI.loader.add('shader', CUSTOM_SHADER_SHD).load(onLoaded);

  let filter;

  // Handle the load completed
  // eslint-disable-next-line no-unused-vars
  function onLoaded (loader, res) {
    // Create the new filter, arguments: (vertexShader, framentSource)
    filter = new PIXI.Filter(null, res.shader.data);

{'fraction_non_alphanumeric': 0.12117576484703059, 'fraction_numerical': 0.004799040191961607, 'mean_word_length': 4.054545454545455, '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': '3107949', 'n_tokens_mistral': 583, 'n_tokens_neox': 578, 'n_words': 139}