<commit_before>/*!
 * FM4cast - FM4 chromecase receiver/sender
 * http://sehaas.github.io/fm4cast
 *
 * Copyright 2013,2014 <NAME> (<EMAIL>)
 * Released under the MIT license
 *
 */

;( function( $ ) {


	$.FM4Receiver = function(element) {
		this.tag = (element instanceof $) ? element : $(element);
		this.receiver = null;
		this.remoteMedia = null;
	};


	$.FM4Receiver.prototype = {

		start : function() {
			var that = this;
			this.receiver = new cast.receiver.Receiver(
				fm4c.config.apikey, [cast.receiver.RemoteMedia.NAMESPACE], "", 5);

			this.remoteMedia = new cast.receiver.RemoteMedia();
			this.remoteMedia.addChannelFactory(
				this.receiver.createChannelFactory(cast.receiver.RemoteMedia.NAMESPACE));

			$(window).on("load", $.proxy(function() {
				this.remoteMedia.setMediaElement(this.tag.get(0));
			}, this));

			this.tag.get(0).addEventListener("loadedmetadata", function() {
				that._metaDataLoaded.call(that, that.remoteMedia);
			});

			this.receiver.start();
		},

		_metaDataLoaded : function(media) {
			var ci = media.getContentInfo();
			if (!ci) return;

			$("#tabs .tab").hide();
			$("#nowplaying").text(media.getTitle());
			switch(ci.contentType) {
				case 0:
					$("#live").show();
					$(this).trigger("trackservice-start");
					break;
				case 1:
				case 2:
					$("#ondemand").show();
					$("#tabs .description").text(ci.description);
					$(this).trigger("trackservice-stop");
					if (media.getImageUrl()) {
						$("#tabs .artwork").css("background-img", "url('{0}')".format(media.getImageUrl()));
					}
					break;
			}
		}
	};
}(jQuery));


;( function( $ ) {

	$.TrackService = function(element) {
		this.tag = (element instanceof $) ? element : $(element);
		this.timerId = null;
	};

	$.TrackService.prototype = {

		start : function() {
			this._reloadTrackService();
		},

		stop : function() {<commit_msg>fix css<commit_after>/*!
 * FM4cast - FM4 chromecase receiver/sender
 * http://sehaas.github.io/fm4cast
 *
 * Copyright 2013,2014 <NAME> (<EMAIL>)
 * Released under the MIT license
 *
 */

;( function( $ ) {


	$.FM4Receiver = function(element) {
		this.tag = (element instanceof $) ? element : $(element);
		this.receiver = null;
		this.remoteMedia = null;
	};


	$.FM4Receiver.prototype = {

		start : function() {
			var that = this;
			this.receiver = new cast.receiver.Receiver(
				fm4c.config.apikey, [cast.receiver.RemoteMedia.NAMESPACE], "", 5);

			this.remoteMedia = new cast.receiver.RemoteMedia();
			this.remoteMedia.addChannelFactory(
				this.receiver.createChannelFactory(cast.receiver.RemoteMedia.NAMESPACE));

			$(window).on("load", $.proxy(function() {
				this.remoteMedia.setMediaElement(this.tag.get(0));
			}, this));

			this.tag.get(0).addEventListener("loadedmetadata", function() {
				that._metaDataLoaded.call(that, that.remoteMedia);
			});

			this.receiver.start();
		},

		_metaDataLoaded : function(media) {
			var ci = media.getContentInfo();
			if (!ci) return;

			$("#tabs .tab").hide();
			$("#nowplaying").text(media.getTitle());
			switch(ci.contentType) {
				case 0:
					$("#live").show();
					$(this).trigger("trackservice-start");
					break;
				case 1:
				case 2:
					$("#ondemand").show();
					$("#tabs .description").text(ci.description);
					$(this).trigger("trackservice-stop");
					if (media.getImageUrl()) {
						$("#tabs .artwork").css("background-image", "url('{0}')".format(media.getImageUrl()));
					}
					break;
			}
		}
	};
}(jQuery));


;( function( $ ) {

	$.TrackService = function(element) {
		this.tag = (element instanceof $) ? element : $(element);
		this.timerId = null;
	};

	$.TrackService.prototype = {

		start : function() {
			this._reloadTrackService();
		},

		stop : function() {
{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 3.4511904761904764, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4693323', 'n_tokens_mistral': 1484, 'n_tokens_neox': 1229, 'n_words': 203}