<commit_before>/**
 * @license
 * Copyright (c) 2015 MediaMath Inc. All rights reserved.
 * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt

*/
/* test.js */
Polymer({
	is:"mm-icon",

	behaviors: [
		StrandTraits.Stylable
	],

	properties: {
		ver:{
			type:String,
			value:"<<version>>",
		},
		type: {
			type:String,
			value:"plus", 
			reflectAsAttribute:true 
		},
		width:{
			type:Number, 
			value: 28
		},
		height: {
			type:Number, 
			value: 28
		},
		primaryColor: {
			type:String, 
			value: Colors.A2 
		},
		hoverColor: {
			type:String, 
			value:null 
		},
		uid: {
			type: String,
			value: function() { 
				var timestamp = new Date().valueOf(),
					rndNum	= Math.floor((Math.random()*99)+1),
					id = 'id_' + rndNum + '_' + timestamp;
				return id;
			}
		}
	},

	updateClass: function(uid, type) {
		var o = {};
		o["icon-"+type] = true;
		o["_mm_icon"] = true;
		o[this.uid] = true;
		return this.classList(o);
	},

	updateStyle: function(width, height) {
		return this.styleList({
			minWidth: width + "px",
			minHeight: height + "px", 
			lineHeight: height + "px",
			fontSize: height + "px"
		});
	},

	updateInternalStyle: function(uid, hoverColor, primaryColor) {
		return "._mm_icon."+uid+" { color: "+primaryColor+";}._mm_icon."+uid+":hover {color: "+hoverColor+";}";
	}

});<commit_msg>export for icon<commit_after>/**
 * @license
 * Copyright (c) 2015 MediaMath Inc. All rights reserved.
 * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt

*/
(function (scope) {
	
	scope.Icon = Polymer({
		is:"mm-icon",

		behaviors: [
			StrandTraits.Stylable
		],

		properties: {
			ver:{
				type:String,
				value:"<<version>>",
			},
			type: {
				type:String,
				value:"plus", 
				reflectAsAttribute:true 
			},
			width:{
				type:Number, 
				value: 28
			},
			height: {
				type:Number, 
				value: 28
			},
			primaryColor: {
				type:String, 
				value: Colors.A2 
			},
			hoverColor: {
				type:String, 
				value:null 
			},
			uid: {
				type: String,
				value: function() { 
					var timestamp = new Date().valueOf(),
						rndNum	= Math.floor((Math.random()*99)+1),
						id = 'id_' + rndNum + '_' + timestamp;
					return id;
				}
			}
		},

		updateClass: function(uid, type) {
			var o = {};
			o["icon-"+type] = true;
			o["_mm_icon"] = true;
			o[this.uid] = true;
			return this.classList(o);
		},

		updateStyle: function(width, height) {
			return this.styleList({
				minWidth: width + "px",
				minHeight: height + "px", 
				lineHeight: height + "px",
				fontSize: height + "px"
			});
		},

		updateInternalStyle: function(uid, hoverColor, primaryColor) {
			return "._mm_icon."+uid+" { color: "+primaryColor+";}._mm_icon."+uid+":hover {color: "+hoverColor+";}";
		}

	});

})(window.Strand=window.Strand || {}); 
{'fraction_non_alphanumeric': 0.17413793103448275, 'fraction_numerical': 0.008275862068965517, 'mean_word_length': 2.8577127659574466, 'pattern_counts': {'":': 2, '<': 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': '1840691', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1058, 'n_words': 223}