<commit_before>/*!
 * ====================================================
 * color-picker - v1.0.3 - 2015-10-21
 * https://github.com/zhangbobell/color-picker#readme
 * GitHub: git+https://github.com/zhangbobell/color-picker.git 
 * Copyright (c) 2015 ; Licensed 
 * ====================================================
 */

angular.module("ui.colorpicker",[]).directive("colorPicker",["$compile",function(a){return{restrict:"EA",link:function(b,c,d){function e(){var a=r(c);x.css(a)}function f(){return angular.isDefined(d.disabled)?!d.disabled:!0}function g(a){b.$emit("colorPicked",a),b.hoveredColor=a,p(a),b.latestColor=o()}function h(a){g(a),j()}function i(a){b.hoveredColor=a}function j(){x.css("display","none")}function k(a){var b=f();if(b){a.stopPropagation();var d=r(c);x.css(d),x.css("display","block"),x[0].focus()}}function l(a){a.stopPropagation()}function m(){var a=document.createElement("input");return a.setAttribute("type","color"),"text"!==a.type}function n(){var a=window.localStorage.getItem("ui-color-picker");if(!a)return null;try{a=JSON.parse(a)}catch(b){return null}return a}function o(){var a=n();return a?a.latestColor:[]}function p(a){var b=n()||{},c=o();if(c&&c instanceof Array){var d=c.indexOf(a);-1!=d&&c.splice(d,1),c.unshift(a)}else c=[a];c.length>10&&(c=c.slice(0,10)),b.latestColor=c,window.localStorage.setItem("ui-color-picker",JSON.stringify(b))}function q(a,b){for(var c=0,d=0,e=0,f=0;a&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)c+=a.offsetLeft,d+=a.offsetTop,b||"BODY"!==a.tagName?(e+=a.scrollLeft,f+=a.scrollTop):(e+=document.documentElement.scrollLeft||a.scrollLeft,f+=document.documentElement.scrollTop||a.scrollTop),a=a.offsetParent;return{top:d,left:c,scrollX:e,scrollY:f}}function r(a){var b,c=q(a[0]);return"top"===y?b={top:c.top-147,left:c.left}:"right"===y?b={top:c.top,left:c.left+126}:"bottom"===y?b={top:c.top+a[0].offsetHeight+2,left:c.left}:"left"===y&&(b={top:c.top,left:c.left-150}),{top:b.top+"px",left:b.left+"px"}}var s=angular.isDefined(d.defaultColor)?d.defaultColor:"#fff",t={clearText:"自动",defaultColor:s,latestText:"最近使用",commonText:"主题颜色",commonColor:[["#ffffff","#000000","#eeece1","#1f497d","#4f81bd","#c0504d","#9bbb59","#8064a2","#4bacc6","#f79646"],["#f2f2f2","#808080","#ddd8c2","#c6d9f1","#dbe5f1","#f2dbdb","#eaf1dd","#e5dfec","#daeef3","#fde9d9"],["#d9d9d9","#595959","#c4bc96","#8db3e2","#b8cce4","#e5b8b7","#d6e3bc","#ccc0d9","#b6dde8","#fbd4b4"],["#bfbfbf","#404040","#938953","#548dd4","#95b3d7","#d99594","#c2d69b","#b2a1c7","#92cddc","#fabf8f"],["#a6a6a6","#262626","#4a442a","#17365d","#365f91","#943634","#76923c","#5f497a","#31849b","#e36c0a"],["#7f7f7f","#0d0d0d","#1c1a10","#0f243e","#243f60","#622423","#4e6128","#3f3151","#205867","#974706"]],standardText:"标准颜色",standardColor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],moreText:"更多颜色.."},u=(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36),v='<div class="colorpicker-container" tabindex="-1" ng-click="keepPickerOpen($event)"><div class="colorpicker-toolbar"><div class="colorpicker-preview" ng-style="{ \'background-color\': hoveredColor }"></div><div class="colorpicker-clear" ng-bind="defaultOptions.clearText" ng-click="selectColorAndClose(defaultOptions.defaultColor)"></div></div><div class="colorpicker-title" ng-bind="defaultOptions.latestText" ng-if="latestColor.length > 0"></div><div class="colorpicker-latestcolor colorpicker-colors"><span class="colorpicker-colors-item" ng-repeat="color in latestColor" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div><div class="colorpicker-title" ng-bind="defaultOptions.commonText"></div><div class="colorpicker-commoncolor"><div class="colorpicker-colors colorpicker-colors-line{{$index}}" ng-repeat="line in defaultOptions.commonColor"><span class="colorpicker-colors-item" ng-repeat="color in line" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div></div><div class="colorpicker-title" ng-bind="defaultOptions.standardText"></div><div class="colorpicker-standardcolor colorpicker-colors"><span class="colorpicker-colors-item" ng-repeat="color in defaultOptions.standardColor" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div><div class="colorpicker-title colorpicker-morecolor" ng-if="isSupportNativeColorPicker"><label for="native-color-picker'+u+'" ng-bind="defaultOptions.moreText"></label><input id="native-color-picker'+u+'" class="native-color-picker" type="color" ng-model="nativeColor" ng-change="selectColor(nativeColor);" /></div></div>',w=angular.element,x=w(v),y=angular.isDefined(d.colorpickerPosition)?d.colorpickerPosition:"bottom";b.defaultOptions=t,b.isSupportNativeColorPicker=m(),b.latestColor=o(),b.selectColor=g,b.previewColor=i,b.selectColorAndClose=h,b.keepPickerOpen=l,b.hoveredColor=t.defaultColor,a(x)(b),w(document.body).append(x),c.on("click",k),w(document).on("click",j),b.$on("openColorPicker",k),b.$on("closeColorPicker",j),window.attachEvent?window.attachEvent("onresize",e):window.addEventListener&&window.addEventListener("resize",e)}}}]);<commit_msg>rebuild v1.0.4 to release v1.0.5<commit_after>/*!
 * ====================================================
 * color-picker - v1.0.4 - 2015-10-21
 * https://github.com/zhangbobell/color-picker#readme
 * GitHub: git+https://github.com/zhangbobell/color-picker.git 
 * Copyright (c) 2015 ; Licensed 
 * ====================================================
 */

angular.module("ui.colorpicker",[]).directive("colorPicker",["$compile",function(a){return{restrict:"EA",link:function(b,c,d){function e(){var a=r(c);x.css(a)}function f(){return angular.isDefined(d.disabled)?!d.disabled:!0}function g(a){b.$emit("colorPicked",a),b.hoveredColor=a,p(a),b.latestColor=o()}function h(a){g(a),j()}function i(a){b.hoveredColor=a}function j(){x.css("display","none")}function k(a){var b=f();if(b){a.stopPropagation();var d=r(c);x.css(d),x.css("display","block"),x[0].focus()}}function l(a){a.stopPropagation()}function m(){var a=document.createElement("input");return a.setAttribute("type","color"),"text"!==a.type}function n(){var a=window.localStorage.getItem("ui-color-picker");if(!a)return null;try{a=JSON.parse(a)}catch(b){return null}return a}function o(){var a=n();return a?a.latestColor:[]}function p(a){var b=n()||{},c=o();if(c&&c instanceof Array){var d=c.indexOf(a);-1!=d&&c.splice(d,1),c.unshift(a)}else c=[a];c.length>10&&(c=c.slice(0,10)),b.latestColor=c,window.localStorage.setItem("ui-color-picker",JSON.stringify(b))}function q(a,b){for(var c=0,d=0,e=0,f=0;a&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)c+=a.offsetLeft,d+=a.offsetTop,b||"BODY"!==a.tagName?(e+=a.scrollLeft,f+=a.scrollTop):(e+=document.documentElement.scrollLeft||a.scrollLeft,f+=document.documentElement.scrollTop||a.scrollTop),a=a.offsetParent;return{top:d,left:c,scrollX:e,scrollY:f}}function r(a){var b,c=q(a[0]);return"top"===y?b={top:c.top-147,left:c.left}:"right"===y?b={top:c.top,left:c.left+126}:"bottom"===y?b={top:c.top+a[0].offsetHeight+2,left:c.left}:"left"===y&&(b={top:c.top,left:c.left-150}),{top:b.top+"px",left:b.left+"px"}}var s=angular.isDefined(d.defaultColor)?d.defaultColor:"#fff",t={clearText:"自动",defaultColor:s,latestText:"最近使用",commonText:"主题颜色",commonColor:[["#ffffff","#000000","#eeece1","#1f497d","#4f81bd","#c0504d","#9bbb59","#8064a2","#4bacc6","#f79646"],["#f2f2f2","#808080","#ddd8c2","#c6d9f1","#dbe5f1","#f2dbdb","#eaf1dd","#e5dfec","#daeef3","#fde9d9"],["#d9d9d9","#595959","#c4bc96","#8db3e2","#b8cce4","#e5b8b7","#d6e3bc","#ccc0d9","#b6dde8","#fbd4b4"],["#bfbfbf","#404040","#938953","#548dd4","#95b3d7","#d99594","#c2d69b","#b2a1c7","#92cddc","#fabf8f"],["#a6a6a6","#262626","#4a442a","#17365d","#365f91","#943634","#76923c","#5f497a","#31849b","#e36c0a"],["#7f7f7f","#0d0d0d","#1c1a10","#0f243e","#243f60","#622423","#4e6128","#3f3151","#205867","#974706"]],standardText:"标准颜色",standardColor:["#c00000","#ff0000","#ffc000","#ffff00","#92d050","#00b050","#00b0f0","#0070c0","#002060","#7030a0"],moreText:"更多颜色.."},u=(1e6*+new Date+Math.floor(1e6*Math.random())).toString(36),v='<div class="colorpicker-container" tabindex="-1" ng-click="keepPickerOpen($event)"><div class="colorpicker-toolbar"><div class="colorpicker-preview" ng-style="{ \'background-color\': hoveredColor }"></div><div class="colorpicker-clear" ng-bind="defaultOptions.clearText" ng-click="selectColorAndClose(defaultOptions.defaultColor)"></div></div><div class="colorpicker-title" ng-bind="defaultOptions.latestText" ng-if="latestColor.length > 0"></div><div class="colorpicker-latestcolor colorpicker-colors"><span class="colorpicker-colors-item" ng-repeat="color in latestColor" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div><div class="colorpicker-title" ng-bind="defaultOptions.commonText"></div><div class="colorpicker-commoncolor"><div class="colorpicker-colors colorpicker-colors-line{{$index}}" ng-repeat="line in defaultOptions.commonColor"><span class="colorpicker-colors-item" ng-repeat="color in line" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div></div><div class="colorpicker-title" ng-bind="defaultOptions.standardText"></div><div class="colorpicker-standardcolor colorpicker-colors"><span class="colorpicker-colors-item" ng-repeat="color in defaultOptions.standardColor" ng-style="{\'background-color\': color, \'border-color\': color}" ng-click="selectColorAndClose(color)" ng-mouseover="previewColor(color)"></span></div><div class="colorpicker-title colorpicker-morecolor" ng-if="isSupportNativeColorPicker"><label for="native-color-picker'+u+'" ng-bind="defaultOptions.moreText"></label><input id="native-color-picker'+u+'" class="native-color-picker" type="color" ng-model="nativeColor" ng-change="selectColor(nativeColor);" /></div></div>',w=angular.element,x=w(v),y=angular.isDefined(d.colorpickerPosition)?d.colorpickerPosition:"bottom";b.defaultOptions=t,b.isSupportNativeColorPicker=m(),b.latestColor=o(),b.selectColor=g,b.previewColor=i,b.selectColorAndClose=h,b.keepPickerOpen=l,b.hoveredColor=t.defaultColor,a(x)(b),w(document.body).append(x),c.on("click",k),w(document).on("click",j),b.$on("openColorPicker",k),b.$on("closeColorPicker",j),window.attachEvent?window.attachEvent("onresize",e):window.addEventListener&&window.addEventListener("resize",e)}}}]);
{'fraction_non_alphanumeric': 0.27182114578481603, 'fraction_numerical': 0.0568234746157429, 'mean_word_length': 13.727023319615911, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 73, 'https://': 4, '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': '481258', 'n_tokens_mistral': 4326, 'n_tokens_neox': 4061, 'n_words': 239}