<commit_before>$(function(){function e(){function e(){var e={center:y,zoom:14,minZoom:3,maxZoom:18,disableDefaultUI:!0};f=new google.maps.Map(document.getElementById("map-canvas"),e),h=new google.maps.InfoWindow({pixelOffset:new google.maps.Size(-23,-10)}),m=new google.maps.StyledMapType(styles,{name:"Styled Map"}),f.mapTypes.set("map_style",m),f.setMapTypeId("map_style")}function n(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){y={lat:e.coords.latitude,lng:e.coords.longitude},f.setCenter(y),a(y)},function(){t(!0,h,f.getCenter())}):(t(!1,h,f.getCenter()),a(y))}function t(e,n,t){a(y)}function a(e){v.nearByPlaces([]);var n=new google.maps.places.PlacesService(f);n.nearbySearch({location:e,radius:v.radius(),types:w},o)}function o(e,n,t){var a=new google.maps.LatLngBounds;if(n===google.maps.places.PlacesServiceStatus.OK){for(var o,i=0;o=e[i];i++)"political"!=o.types[o.types.length-1]&&(v.nearByPlaces.push(o),a.extend(o.geometry.location));f.fitBounds(a),w=[]}}function i(){function e(){var e=t.getPlaces();v.places(e),0!==v.places().length&&(1==v.places().length&&(a(v.places()[0].geometry.location),v.nearByPlaces().push(e[0])),document.getElementById("search-input").value="",v.keyword(""),k=google.maps.Animation.DROP)}v.places([]);var n=document.getElementById("search-input"),t=new google.maps.places.SearchBox(n);f.addListener("bounds_changed",function(){t.setBounds(f.getBounds()),y=f.getCenter()}),t.addListener("places_changed",e),w=[]}function r(e){v.markers().forEach(function(e){e.setMap(null)}),v.markers([]),e.forEach(function(e){var n={url:e.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(25,25)},t=new google.maps.Marker({map:f,icon:n,title:e.name,animation:k,position:e.geometry.location});t.addListener("click",function(){v.markers().forEach(function(e){e.setAnimation(null)}),t.setAnimation(null!==t.getAnimation()?null:google.maps.Animation.BOUNCE)}),v.markers().push(t),google.maps.event.addListener(t,"click",function(){s(e,t)})})}function s(e,n){var t=new google.maps.places.PlacesService(f);t.getDetails({placeId:e.place_id},function(e,t){u(e),t===google.maps.places.PlacesServiceStatus.OK&&(h.setContent('<div id="infoWindow" style="width: 220px; font-size: 14px; display: none;"><p><h3>'+e.name+'</h3></p><hr><p><span style="font-size: 15px">'+e.formatted_address+'</span></p><p><span style="color: #4a7ea7; font-weight: bold;">'+l(e)+'</span></p><br><div id="wiki" style="white-space: normal;"><span></span></div><br>'+c(e)+"<p><span>"+p(e)+'</span></p><p><div class="longtext"><a href="'+g(e)+'" target="_blank">'+g(e)+"<a></div>"+d(e)+"</div></p>"),h.open(f,n),$("#infoWindow").fadeIn(1e3),v.placePhotos(e.photos),document.getElementById("photoLink").addEventListener("click",function(){function n(e){o+=e,0===o?($("#prev").hide(),$("#next").show()):o==a-1?$("#next").hide():($("#prev").show(),$("#next").show()),$("#frame").children().eq(o-e).hide(),$("#frame").children().eq(o).show(),t()}function t(){$("#photoCounter").text(o+1+" / "+a)}$("#photoViewer").show();var a=e.photos.length,o=0;n(0),$("#next").click(function(){n(1)}),$("#prev").click(function(){n(-1)}),$("#close-photo").click(function(){$("#frame").children().hide(),$("#photoViewer").hide(),o=0})}),document.getElementById("reviewlink").addEventListener("click",function(){v.placeReviews([]),v.placeInFocus(e);var n=[];e.reviews.forEach(function(e){""!==e.text&&n.push(e)}),v.placeReviews(n),$("#review-page").show(),$("#reviews").children().show(),$("#close-review").click(function(){$("#reviews").children().hide(),$("#review-page").hide()})}))}),google.maps.event.addListener(h,"closeclick",function(){v.markers().forEach(function(e){e.setAnimation(null)})})}function l(e){return e.opening_hours?e.opening_hours.weekday_text[b.getDay()-1]:""}function c(e){var n="",t=v.rateImg(e);if(e.rating){n='<div><span style="color: #df6d15; padding-right: 3px;">'+e.rating+"</span>";for(var a in t)a&&(n+='<img class="rate-star" src="'+t[a].star+'" />');return n+'<a id="reviewlink" style="padding-left: 15px;" href="#"">reviews</a></div>'}return'<span style="font-style: italic;">no rating available</span>'}function p(e){return e.international_phone_number?e.international_phone_number:"<span>Location:"+e.geometry.location+"</span>"}function g(e){return e.website?e.website:""}function d(e){return e.photos&&e.photos.length>1?'<a id="photoLink" href="#"">photos<a>':'<div id="photoLink"></div>'}function u(e){var n=e.name.replace(/[\s,]/g,"%20"),t="https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles="+n,a=setTimeout(function(){console.log("Wiki API failed to load.")},3e3);$.ajax({url:t,dataType:"jsonp",success:function(e){var n=document.getElementById("wiki");for(var t in e.query.pages)void 0===e.query.pages[t].extract||""===e.query.pages[t].extract||(n.innerHTML="<span>"+e.query.pages[t].extract.substring(0,60)+'...</span><a style="display: block;" href=http://en.wikipedia.org/?curid='+e.query.pages[t].pageid+' target="_blank">read more on wikipedia</a>');clearTimeout(a)}})}var f,h,m,v=this,y={lat:53.339821,lng:-6.2362889999999425},w=[],k=google.maps.Animation.DROP,b=new Date;v.nearByPlaces=ko.observableArray([]),v.places=ko.observableArray([]),v.markers=ko.observableArray([]),v.radius=ko.observable(2e3),v.keyword=ko.observable(""),v.placeReviews=ko.observableArray([]),v.placePhotos=ko.observableArray([]),v.placeInFocus=ko.observable(),v.address=function(e){return e.vicinity?e.vicinity:e.formatted_address},v.icons=ko.computed(function(){var e=new Set,n=[];for(var t in v.nearByPlaces())t&&e.add(v.nearByPlaces()[t].icon);return e.forEach(function(e){n.push({icon:e})}),n}),v.rateImg=function(e){for(var n=Math.round(2*e.rating)/2,t=[],a=0;a<parseInt(n);a++)t.push({star:"images/full-star.png"});for(n-parseInt(n)!==0&&t.push({star:"images/half-star.png"}),a=0;a<parseInt(5-n);a++)t.push({star:"images/empty-star.png"});return t},v.displayedPlaces=function(){var e=[],n=v.keyword().toLowerCase(),t=[];if(t=v.places().length<2?v.nearByPlaces():v.places(),""!==v.keyword())for(var a in t)(-1!=t[a].name.toLowerCase().indexOf(n)||-1!=t[a].types[0].toLowerCase().indexOf(n))&&(k=null,e.push(t[a]));else e=t;return r(e),e},v.formattedType=function(e){var n=e.types[0].replace(/[_-]/g," ");return n.charAt(0).toUpperCase()+n.substr(1,n.length)},e(),n(),i(),v.clickMarker=function(e){var n=e.name.toLowerCase(),t=window.innerWidth,a=.0065,o=.003;995>t&&(a=0,o=.006),v.markers().forEach(function(e){e.title.toLowerCase()===n&&(google.maps.event.trigger(e,"click"),f.setCenter({lat:e.position.J+o,lng:e.position.M+a}))})},$("#filters").on("click","button",function(){k=google.maps.Animation.DROP;var e=$(this).children("img").attr("src").split("/"),n=e[e.length-1].split("-")[0];w=[],"fitness"==n&&w.push("gym");for(var t in googlePlaceTypes)-1!=googlePlaceTypes[t].toLowerCase().indexOf(n.substring(0,4))&&w.push(googlePlaceTypes[t]);a(f.getCenter())}),$("#reset").on("click",function(){w=[],a(f.getCenter())})}ko.applyBindings(new e),$("#hide").click(function(){var e="",n=$(this).children("span").attr("class");e="left"===n.slice(29)?n.replace("left","right"):n.replace("right","left"),$(this).siblings("div").animate({width:"toggle"},500),$(this).children("span").attr("class",e)})});<commit_msg>reset button fixed<commit_after>$(function(){function e(){function e(){var e={center:y,zoom:14,minZoom:3,maxZoom:18,disableDefaultUI:!0};f=new google.maps.Map(document.getElementById("map-canvas"),e),h=new google.maps.InfoWindow({pixelOffset:new google.maps.Size(-23,-10)}),m=new google.maps.StyledMapType(styles,{name:"Styled Map"}),f.mapTypes.set("map_style",m),f.setMapTypeId("map_style")}function n(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){y={lat:e.coords.latitude,lng:e.coords.longitude},f.setCenter(y),a(y)},function(){t(!0,h,f.getCenter())}):(t(!1,h,f.getCenter()),a(y))}function t(e,n,t){a(y)}function a(e){v.nearByPlaces([]);var n=new google.maps.places.PlacesService(f);n.nearbySearch({location:e,radius:v.radius(),types:w},o)}function o(e,n,t){var a=new google.maps.LatLngBounds;if(n===google.maps.places.PlacesServiceStatus.OK){for(var o,i=0;o=e[i];i++)"political"!=o.types[o.types.length-1]&&(v.nearByPlaces.push(o),a.extend(o.geometry.location));f.fitBounds(a),w=[]}}function i(){function e(){var e=t.getPlaces();if(v.places(e),0!==v.places().length){if(1==v.places().length)a(v.places()[0].geometry.location),v.nearByPlaces().push(e[0]);else{var n=new google.maps.LatLngBounds;v.places().forEach(function(e){n.extend(e.geometry.location),f.fitBounds(n)})}document.getElementById("search-input").value="",v.keyword(""),k=google.maps.Animation.DROP}}v.places([]);var n=document.getElementById("search-input"),t=new google.maps.places.SearchBox(n);f.addListener("bounds_changed",function(){t.setBounds(f.getBounds()),y=f.getCenter()}),t.addListener("places_changed",e),w=[]}function s(e){v.markers().forEach(function(e){e.setMap(null)}),v.markers([]),e.forEach(function(e){var n={url:e.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(25,25)},t=new google.maps.Marker({map:f,icon:n,title:e.name,animation:k,position:e.geometry.location});t.addListener("click",function(){v.markers().forEach(function(e){e.setAnimation(null)}),t.setAnimation(null!==t.getAnimation()?null:google.maps.Animation.BOUNCE)}),v.markers().push(t),google.maps.event.addListener(t,"click",function(){r(e,t)})})}function r(e,n){var t=new google.maps.places.PlacesService(f);t.getDetails({placeId:e.place_id},function(e,t){u(e),t===google.maps.places.PlacesServiceStatus.OK&&(h.setContent('<div id="infoWindow" style="width: 220px; font-size: 14px; display: none;"><p><h3>'+e.name+'</h3></p><hr><p><span style="font-size: 15px">'+e.formatted_address+'</span></p><p><span style="color: #4a7ea7; font-weight: bold;">'+l(e)+'</span></p><br><div id="wiki" style="white-space: normal;"><span></span></div><br>'+c(e)+"<p><span>"+p(e)+'</span></p><p><div class="longtext"><a href="'+g(e)+'" target="_blank">'+g(e)+"<a></div>"+d(e)+"</div></p>"),h.open(f,n),$("#infoWindow").fadeIn(1e3),v.placePhotos(e.photos),document.getElementById("photoLink").addEventListener("click",function(){function n(e){o+=e,0===o?($("#prev").hide(),$("#next").show()):o==a-1?$("#next").hide():($("#prev").show(),$("#next").show()),$("#frame").children().eq(o-e).hide(),$("#frame").children().eq(o).show(),t()}function t(){$("#photoCounter").text(o+1+" / "+a)}$("#photoViewer").show();var a=e.photos.length,o=0;n(0),$("#next").click(function(){n(1)}),$("#prev").click(function(){n(-1)}),$("#close-photo").click(function(){$("#frame").children().hide(),$("#photoViewer").hide(),o=0})}),document.getElementById("reviewlink").addEventListener("click",function(){v.placeReviews([]),v.placeInFocus(e);var n=[];e.reviews.forEach(function(e){""!==e.text&&n.push(e)}),v.placeReviews(n),$("#review-page").show(),$("#reviews").children().show(),$("#close-review").click(function(){$("#reviews").children().hide(),$("#review-page").hide()})}))}),google.maps.event.addListener(h,"closeclick",function(){v.markers().forEach(function(e){e.setAnimation(null)})})}function l(e){return e.opening_hours?e.opening_hours.weekday_text[b.getDay()-1]:""}function c(e){var n="",t=v.rateImg(e);if(e.rating){n='<div><span style="color: #df6d15; padding-right: 3px;">'+e.rating+"</span>";for(var a in t)a&&(n+='<img class="rate-star" src="'+t[a].star+'" />');return n+'<a id="reviewlink" style="padding-left: 15px;" href="#"">reviews</a></div>'}return'<span style="font-style: italic;">no rating available</span>'}function p(e){return e.international_phone_number?e.international_phone_number:"<span>Location:"+e.geometry.location+"</span>"}function g(e){return e.website?e.website:""}function d(e){return e.photos&&e.photos.length>1?'<a id="photoLink" href="#"">photos<a>':'<div id="photoLink"></div>'}function u(e){var n=e.name.replace(/[\s,]/g,"%20"),t="https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles="+n,a=setTimeout(function(){console.log("Wiki API failed to load.")},3e3);$.ajax({url:t,dataType:"jsonp",success:function(e){var n=document.getElementById("wiki");for(var t in e.query.pages)void 0===e.query.pages[t].extract||""===e.query.pages[t].extract||(n.innerHTML="<span>"+e.query.pages[t].extract.substring(0,60)+'...</span><a style="display: block;" href=http://en.wikipedia.org/?curid='+e.query.pages[t].pageid+' target="_blank">read more on wikipedia</a>');clearTimeout(a)}})}var f,h,m,v=this,y={lat:53.339821,lng:-6.2362889999999425},w=[],k=google.maps.Animation.DROP,b=new Date;v.nearByPlaces=ko.observableArray([]),v.places=ko.observableArray([]),v.markers=ko.observableArray([]),v.radius=ko.observable(2e3),v.keyword=ko.observable(""),v.placeReviews=ko.observableArray([]),v.placePhotos=ko.observableArray([]),v.placeInFocus=ko.observable(),v.address=function(e){return e.vicinity?e.vicinity:e.formatted_address},v.icons=ko.computed(function(){var e=new Set,n=[];for(var t in v.nearByPlaces())t&&e.add(v.nearByPlaces()[t].icon);return e.forEach(function(e){n.push({icon:e})}),n}),v.rateImg=function(e){for(var n=Math.round(2*e.rating)/2,t=[],a=0;a<parseInt(n);a++)t.push({star:"images/full-star.png"});for(n-parseInt(n)!==0&&t.push({star:"images/half-star.png"}),a=0;a<parseInt(5-n);a++)t.push({star:"images/empty-star.png"});return t},v.displayedPlaces=function(){var e=[],n=v.keyword().toLowerCase(),t=[];if(t=v.places().length<2?v.nearByPlaces():v.places(),""!==v.keyword())for(var a in t)(-1!=t[a].name.toLowerCase().indexOf(n)||-1!=t[a].types[0].toLowerCase().indexOf(n))&&(k=null,e.push(t[a]));else e=t;return s(e),e},v.formattedType=function(e){var n=e.types[0].replace(/[_-]/g," ");return n.charAt(0).toUpperCase()+n.substr(1,n.length)},e(),n(),i(),v.clickMarker=function(e){var n=e.name.toLowerCase(),t=window.innerWidth,a=.0065,o=.003;995>t&&(a=0,o=.006),v.markers().forEach(function(e){e.title.toLowerCase()===n&&(google.maps.event.trigger(e,"click"),f.setCenter({lat:e.position.J+o,lng:e.position.M+a}))})},$("#filters").on("click","button",function(){k=google.maps.Animation.DROP;var e=$(this).children("img").attr("src").split("/"),n=e[e.length-1].split("-")[0];w=[],"fitness"==n&&w.push("gym");for(var t in googlePlaceTypes)-1!=googlePlaceTypes[t].toLowerCase().indexOf(n.substring(0,4))&&w.push(googlePlaceTypes[t]);a(f.getCenter())}),$("#reset").on("click",function(){v.places([]),w=[],a(f.getCenter())})}ko.applyBindings(new e),$("#hide").click(function(){var e="",n=$(this).children("span").attr("class");e="left"===n.slice(29)?n.replace("left","right"):n.replace("right","left"),$(this).siblings("div").animate({width:"toggle"},500),$(this).children("span").attr("class",e)})});
{'fraction_non_alphanumeric': 0.29235412474849093, 'fraction_numerical': 0.017974513749161636, 'mean_word_length': 12.883612662942271, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 107, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3155368', 'n_tokens_mistral': 5798, 'n_tokens_neox': 5629, 'n_words': 271}