<commit_before>/// <reference path="uproxypeerconnection.d.ts" />
/// <reference path="../../peerconnection/peerconnection.d.ts" />
/// <reference path="../../freedom-declarations/freedom.d.ts" />

// Note that this can't implement UproxyPeerConnection interface due to the
// continuation parameter, so we lose quite a bit of type safety.
class UproxyPeerConnectionImpl {
  // Instance under wraps.
  private pc_ :WebRtc.PeerConnection;

  constructor(
      // TODO: fix `any` type.
      private module_:any,
      // TODO: see comment in .d.ts: use real type not any.
      private dispatchEvent_:(eventType:string, eventData:any) => void,
      config:WebRtc.PeerConnectionConfig) {
    this.pc_ = new WebRtc.PeerConnection(config);<commit_msg>check for constructor args issue<commit_after>/// <reference path="uproxypeerconnection.d.ts" />
/// <reference path="../../peerconnection/peerconnection.d.ts" />
/// <reference path="../../freedom-declarations/freedom.d.ts" />

// Note that this can't implement UproxyPeerConnection interface due to the
// continuation parameter, so we lose quite a bit of type safety.
class UproxyPeerConnectionImpl {
  // Instance under wraps.
  private pc_ :WebRtc.PeerConnection;

  constructor(
      // TODO: fix `any` type.
      private module_:any,
      // TODO: see comment in .d.ts: use real type not any.
      private dispatchEvent_:(eventType:string, eventData:any) => void,
      config:WebRtc.PeerConnectionConfig) {

    // TODO: Remove when objects-for-constructors is fixed in Freedom:
    //         https://github.com/freedomjs/freedom/issues/87
    if (Array.isArray(config)) {
      // Extract the first element of this single element array.
      config = (<WebRtc.PeerConnectionConfig[]><any> config)[0];
    }

    this.pc_ = new WebRtc.PeerConnection(config);
{'fraction_non_alphanumeric': 0.1312465678198792, 'fraction_numerical': 0.0016474464579901153, 'mean_word_length': 3.2570093457943927, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 1, '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': '5518637', 'n_tokens_mistral': 535, 'n_tokens_neox': 518, 'n_words': 148}