<commit_before>Pebble.addEventListener('showConfiguration', function() {
  var toQueryString = function(obj){
    var parts = [];
    for (var i in obj) {
      if (obj.hasOwnProperty(i) && obj[i] !== null) {
        parts.push(encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]));
      }
    }
    return parts.join('&');
  };

  var getSavedColor = function(attr){
    var color = localStorage.getItem(attr + '_color');
    return color ? '#' + color.toString(16) : null;
  };
  var getSavedBool = function(attr){
    var savedValue = localStorage.getItem(attr + '_bool');
    if(savedValue){
      return savedValue.toLowerCase();
    }
    return null;
  };
  var getSavedInt = function(attr){
    return localStorage.getItem(attr + '_int');
  };
  var getSaved = function(attr){
    return localStorage.getItem(attr);
  }

  var url = 'https://cdn.rawgit.com/groyoh/minimalin/dbf2fd8fa48551b2cd28a688c9f64740167070b9/config/index.html?';
  var params = {
    minute_hand_color: getSavedColor('MinuteHand'),
    hour_hand_color: getSavedColor('HourHand'),
    date_displayed: getSavedBool('DateDisplayed'),
    bluetooth_icon: getSavedInt('BluetoothIcon'),
    weather_enabled: getSavedInt('WeatherEnabled'),
    temperature_unit: getSavedInt('TemperatureUnit'),
    rainbow_mode: getSavedBool('RainbowMode'),
    dark_mode: getSavedBool('DarkMode'),
    background_color: getSavedColor('Background'),
    date_color: getSavedColor('Date'),<commit_msg>Update config url<commit_after>Pebble.addEventListener('showConfiguration', function() {
  var toQueryString = function(obj){
    var parts = [];
    for (var i in obj) {
      if (obj.hasOwnProperty(i) && obj[i] !== null) {
        parts.push(encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]));
      }
    }
    return parts.join('&');
  };

  var getSavedColor = function(attr){
    var color = localStorage.getItem(attr + '_color');
    return color ? '#' + color.toString(16) : null;
  };
  var getSavedBool = function(attr){
    var savedValue = localStorage.getItem(attr + '_bool');
    if(savedValue){
      return savedValue.toLowerCase();
    }
    return null;
  };
  var getSavedInt = function(attr){
    return localStorage.getItem(attr + '_int');
  };
  var getSaved = function(attr){
    return localStorage.getItem(attr);
  }

  var url = 'https://cdn.rawgit.com/groyoh/minimalin/f0101d8c65224b130e1249caf4ed95a9b66139f1/config/index.html?';
  var params = {
    minute_hand_color: getSavedColor('MinuteHand'),
    hour_hand_color: getSavedColor('HourHand'),
    date_displayed: getSavedBool('DateDisplayed'),
    bluetooth_icon: getSavedInt('BluetoothIcon'),
    weather_enabled: getSavedInt('WeatherEnabled'),
    temperature_unit: getSavedInt('TemperatureUnit'),
    rainbow_mode: getSavedBool('RainbowMode'),
    dark_mode: getSavedBool('DarkMode'),
    background_color: getSavedColor('Background'),
    date_color: getSavedColor('Date'),
{'fraction_non_alphanumeric': 0.14207650273224043, 'fraction_numerical': 0.0194672131147541, 'mean_word_length': 4.335154826958106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6110428', 'n_tokens_mistral': 989, 'n_tokens_neox': 972, 'n_words': 159}