<commit_before>// Copyright 2014 <NAME> <<EMAIL>>.
// All rights reserved.
// Use of this source code is governed by a Apache
// license that can be found in the LICENSE file.

var BaseObject = require('base_object');

var QuickConnect = require('rtc-quickconnect');
var Settings = require("./settings")
var Swarm = require('./swarm')
var log = require('./log').getInstance()

class P2PManager extends BaseObject {
  constructor(params) {
    this.connectionSettings = {'room': params.swarm, iceServers: Settings.stunServers, debug: false}
    var tracker = (params.tracker || params.bemtvTracker) || Settings.tracker
    log.info("Initializing P2PManager with " + tracker)
    var connection = QuickConnect(tracker, this.connectionSettings)
    this.swarm = new Swarm()<commit_msg>p2pmanager: remove bemtvTracker embed parameter<commit_after>// Copyright 2014 <NAME> <<EMAIL>>.
// All rights reserved.
// Use of this source code is governed by a Apache
// license that can be found in the LICENSE file.

var BaseObject = require('base_object');

var QuickConnect = require('rtc-quickconnect');
var Settings = require("./settings")
var Swarm = require('./swarm')
var log = require('./log').getInstance()

class P2PManager extends BaseObject {
  constructor(params) {
    this.connectionSettings = {'room': params.swarm, iceServers: Settings.stunServers, debug: false}
    log.info("Initializing P2PManager with " + Settings.tracker)
    var connection = QuickConnect(Settings.tracker, this.connectionSettings)
    this.swarm = new Swarm()
{'fraction_non_alphanumeric': 0.12418725617685306, 'fraction_numerical': 0.008452535760728219, 'mean_word_length': 4.658088235294118, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3665361', 'n_tokens_mistral': 440, 'n_tokens_neox': 429, 'n_words': 138}