<commit_before>/**
 * Creates an instance of BloggerMap.
 * This class needs a div container, in which it can render the map.
 *
 * @constructor
 * @this {BloggerMap}
 * @param {google.maps.Map} googleMap The map object
 */
function BloggerMap(googleMap){
    this.map = googleMap;
    this.colors = getDefaultColors();
    this.markerIcons = getDefaultMarkerIcons();
}

/**
 * Set the colorArray.
 *  *
 * @this {BloggerMap}
 */
BloggerMap.prototype.setColorArray = function (colorArray) {
    this.colors = colorArray;
};

/**
 * Set the colorArray.
 *  *
 * @this {BloggerMap}
 */
BloggerMap.prototype.setMarkerIcons = function (markerIconArray) {
    this.markerIcons = markerIconArray;
};
 
/**
 * Shows the posts on the map
 *
 * @this {BloggerMap}
 */
BloggerMap.prototype.showRecentPosts = function (postFeedCallback) {
    var postArray = postFeedCallback.feed.entry;
    console.log(postArray);
    initialize(postArray);
};

/**
 * Gets the default MarkerIcons
 *  *
 * @this {BloggerMap}
 * 
 * @returns {Object} Key/Value Dic with routeOption as Key and Link to Icon as Value
 */
function getDefaultMarkerIcons(){
    var markerIcons = new Object();
    markerIcons["bus"] = "http://2.bp.blogspot.com/-jRlSu6qPEU0/U7ExkItrcBI/AAAAAAAAARM/0oNJxbowwa8/s1600/bus.png"; // 173 255 47
    markerIcons["car"] = "http://4.bp.blogspot.com/-f2FQ0dmoOfE/U7ExkNJU_ZI/AAAAAAAAAR4/VtXDLErnkTo/s1600/car.png"; // 255 99 71
    markerIcons["plane"] = "http://1.bp.blogspot.com/-HHmfCLu1Hrs/U7ExkHjQ4DI/AAAAAAAAARI/6YpKzlpbHbE/s1600/airport.png"; //135 206 235
    markerIcons["ship"] = "http://3.bp.blogspot.com/-gTnneg0kVv8/U7ExkxNBh1I/AAAAAAAAARU/b9A4Rp1nqu0/s1600/ferry.png"; //25 25 112
    markerIcons["bicycle"] = "http://4.bp.blogspot.com/-lmtzVZFO-Yg/U7ExksTBYhI/AAAAAAAAARQ/0Av03jQkOlE/s1600/cycling.png"; //128 0 128
    markerIcons["afoot"] = "http://4.bp.blogspot.com/-Nx_2AaAGlus/U7ExlVaJwII/AAAAAAAAARk/WpTVzx0VA6s/s1600/walkingtour.png"; // 0 0 0<commit_msg>change signiture<commit_after>/**
 * Creates an instance of BloggerMap.
 * This class needs a div container, in which it can render the map.
 *
 * @constructor
 * @this {BloggerMap}
 * @param {google.maps.Map} googleMap The map object
 */
function BloggerMap(googleMap){
    this.map = googleMap;
    this.colors = getDefaultColors();
    this.markerIcons = getDefaultMarkerIcons();
}

/**
 * Set the colorArray.
 *  *
 * @this {BloggerMap}
 */
BloggerMap.prototype.setColorArray = function (colorArray) {
    this.colors = colorArray;
};

/**
 * Set the colorArray.
 *  *
 * @this {BloggerMap}
 */
BloggerMap.prototype.setMarkerIcons = function (markerIconArray) {
    this.markerIcons = markerIconArray;
};
 
/**
 * Shows the posts on the map
 *
 * @this {BloggerMap}
 */
BloggerMap.prototype.showloadedPosts = function (postFeedCallback) {
    var postArray = postFeedCallback.feed.entry;
    console.log(postArray);
    initialize(postArray);
};

/**
 * Gets the default MarkerIcons
 *  *
 * @this {BloggerMap}
 * 
 * @returns {Object} Key/Value Dic with routeOption as Key and Link to Icon as Value
 */
function getDefaultMarkerIcons(){
    var markerIcons = new Object();
    markerIcons["bus"] = "http://2.bp.blogspot.com/-jRlSu6qPEU0/U7ExkItrcBI/AAAAAAAAARM/0oNJxbowwa8/s1600/bus.png"; // 173 255 47
    markerIcons["car"] = "http://4.bp.blogspot.com/-f2FQ0dmoOfE/U7ExkNJU_ZI/AAAAAAAAAR4/VtXDLErnkTo/s1600/car.png"; // 255 99 71
    markerIcons["plane"] = "http://1.bp.blogspot.com/-HHmfCLu1Hrs/U7ExkHjQ4DI/AAAAAAAAARI/6YpKzlpbHbE/s1600/airport.png"; //135 206 235
    markerIcons["ship"] = "http://3.bp.blogspot.com/-gTnneg0kVv8/U7ExkxNBh1I/AAAAAAAAARU/b9A4Rp1nqu0/s1600/ferry.png"; //25 25 112
    markerIcons["bicycle"] = "http://4.bp.blogspot.com/-lmtzVZFO-Yg/U7ExksTBYhI/AAAAAAAAARQ/0Av03jQkOlE/s1600/cycling.png"; //128 0 128
    markerIcons["afoot"] = "http://4.bp.blogspot.com/-Nx_2AaAGlus/U7ExlVaJwII/AAAAAAAAARk/WpTVzx0VA6s/s1600/walkingtour.png"; // 0 0 0
{'fraction_non_alphanumeric': 0.14752851711026616, 'fraction_numerical': 0.050697084917617236, 'mean_word_length': 3.9079601990049753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 12, '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': '3043175', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1522, 'n_words': 256}