<commit_before>'use strict';

var Provider = channel.Provider;
var Consumer = channel.Consumer;

angular.module('streamium.core', [])

.service('StreamiumProvider', function(bitcore) {

  var Address = bitcore.Address;

  function StreamiumProvider() {
    this.address = this.streamId = this.rate = null;
    this.clients = [];
    this.status = this.STATUS.disconnected;
    this.config = config.peerJS;
  }

  StreamiumProvider.STATUS = {
    disconnected: 'disconnected',
    connecting: 'connecting',
    ready: 'ready',
    finished: 'finished'
  };

  StreamiumProvider.prototype.init = function(streamId, address, rate, callback) {
    if (!streamId || !address || !rate || !callback) return callback('Invalid arguments');

    address = new Address(address);
    if (!address.isValid()) return callback('Invalid address');
    alert('valid!');

    this.streamId = streamId;
    this.address = address;
    this.rate = rate;

    this.peer = new Peer(this.streamId, this.config);
    var self = this;<commit_msg>remove alert<commit_after>'use strict';

var Provider = channel.Provider;
var Consumer = channel.Consumer;

angular.module('streamium.core', [])

.service('StreamiumProvider', function(bitcore) {

  var Address = bitcore.Address;

  function StreamiumProvider() {
    this.address = this.streamId = this.rate = null;
    this.clients = [];
    this.status = this.STATUS.disconnected;
    this.config = config.peerJS;
  }

  StreamiumProvider.STATUS = {
    disconnected: 'disconnected',
    connecting: 'connecting',
    ready: 'ready',
    finished: 'finished'
  };

  StreamiumProvider.prototype.init = function(streamId, address, rate, callback) {
    if (!streamId || !address || !rate || !callback) return callback('Invalid arguments');

    address = new Address(address);
    if (!address.isValid()) return callback('Invalid address');

    this.streamId = streamId;
    this.address = address;
    this.rate = rate;

    this.peer = new Peer(this.streamId, this.config);
    var self = this;
{'fraction_non_alphanumeric': 0.13861386138613863, 'fraction_numerical': 0.0, 'mean_word_length': 3.8233890214797137, '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': '4402254', 'n_tokens_mistral': 603, 'n_tokens_neox': 585, 'n_words': 137}