<commit_before>import BaseLfo from '../core/base-lfo';


/**
 * Utility sink to log the time, frame, metadata and/or `streamAttributes`
 *
 *
 */
class Logger extends BaseLfo {
  constructor(options) {
    super({
      time: true,
      outFrame: true,
      metadata: true,
      streamParams: true,
    }, options);

    this.addBooleanParam('time', 'static');
    this.addBooleanParam('outFrame', 'static');
    this.addBooleanParam('metadata', 'static');
    this.addBooleanParam('streamParams', 'static');
  }

  initialize(inStreamParams) {
    super.initialize(inStreamParams);

    console.log(inStreamParams);
  }

  process(time, frame, metadata) {
    if (this.getParam('time') === true)
      console.log(time);

    if (this.getParam('outFrame') === true)
      console.log(frame);

    if (this.getParam('metadata') === true)<commit_msg>changed default values<commit_after>import BaseLfo from '../core/base-lfo';


/**
 * Utility sink to log the time, frame, metadata and/or `streamAttributes`
 *
 *
 */
class Logger extends BaseLfo {
  constructor(options) {
    super({
      time: false,
      outFrame: false,
      metadata: false,
      streamParams: false,
    }, options);

    this.addBooleanParam('time', 'static');
    this.addBooleanParam('outFrame', 'static');
    this.addBooleanParam('metadata', 'static');
    this.addBooleanParam('streamParams', 'static');
  }

  initialize(inStreamParams) {
    super.initialize(inStreamParams);
    console.log(inStreamParams);
  }

  process(time, frame, metadata) {
    if (this.getParam('time') === true)
      console.log(time);

    if (this.getParam('outFrame') === true)
      console.log(frame);

    if (this.getParam('metadata') === true)
{'fraction_non_alphanumeric': 0.1561771561771562, 'fraction_numerical': 0.0, 'mean_word_length': 3.518421052631579, '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': '766970', 'n_tokens_mistral': 534, 'n_tokens_neox': 517, 'n_words': 109}