<commit_before>'use strict'

import westfield from 'westfield-runtime-server'
import greenfield from './protocol/greenfield-browser-protocol'
import rtc from './protocol/rtc-browser-protocol'

import BrowserBuffer from './BrowserBuffer'
import BrowserRtcDcBuffer from './BrowserRtcDcBuffer'

export default class BrowserRtcBufferFactory extends westfield.Global {
  /**
   *
   * @param {wfs.GrBuffer} grBufferResource
   * @returns {BrowserRtcDcBuffer}
   */
  static get (grBufferResource) {
    // TODO do some kind of type check magic and return null if the implementation is not of the expected type
    return grBufferResource.implementation.browserRtcDcBuffer
  }

  /**
   * @returns {BrowserRtcBufferFactory}
   */
  static create () {
    return new BrowserRtcBufferFactory()
  }
<commit_msg>fixup jsdoc<commit_after>'use strict'

import westfield from 'westfield-runtime-server'
import greenfield from './protocol/greenfield-browser-protocol'
import rtc from './protocol/rtc-browser-protocol'

import BrowserBuffer from './BrowserBuffer'
import BrowserRtcDcBuffer from './BrowserRtcDcBuffer'

export default class BrowserRtcBufferFactory extends westfield.Global {
  /**
   *
   * @param {GrBuffer} grBufferResource
   * @returns {BrowserRtcDcBuffer}
   */
  static get (grBufferResource) {
    // TODO do some kind of type check magic and return null if the implementation is not of the expected type
    return grBufferResource.implementation.browserRtcDcBuffer
  }

  /**
   * @returns {BrowserRtcBufferFactory}
   */
  static create () {
    return new BrowserRtcBufferFactory()
  }

{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.0, 'mean_word_length': 4.242622950819672, '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': '7542668', 'n_tokens_mistral': 459, 'n_tokens_neox': 446, 'n_words': 131}