<commit_before>'use strict';

angular.module('copayApp.services').factory('configService', function(storageService, lodash, $log) {
  var root = {};

  var defaultConfig = {
    // wallet limits
    limits: {
      totalCopayers: 6,
      mPlusN: 100,
    },

    // Bitcore wallet service URL
    bws: {
        url: 'https://bws.decred.org/bws/api',
    },

    // wallet default config
    wallet: {
      requiredCopayers: 2,
      totalCopayers: 3,
      spendUnconfirmed: true,
      reconnectDelay: 5000,
      idleDurationMin: 4,
      settings: {
        unitName: 'dbits',
        unitToSatoshi: 100,
        unitDecimals: 2,
        unitCode: 'dbit',
        //alternativeName: 'US Dollar',
        //alternativeIsoCode: 'USD',
      }
    },

    // External services
    glidera: {
      enabled: false,
      dcrdtestnet: true
    },

    // Not sure what we should do with this long-term, but for now,
    // just point to something local.  No way to get rates for dcr at
    // the moment anyway.
    rates: {
      url: '',
    },
  };

  var configCache = null;


  root.getSync = function() {
    if (!configCache)
      throw new Error('configService#getSync called when cache is not initialized');

    return configCache;
  };<commit_msg>Update default unit to DCR<commit_after>'use strict';

angular.module('copayApp.services').factory('configService', function(storageService, lodash, $log) {
  var root = {};

  var defaultConfig = {
    // wallet limits
    limits: {
      totalCopayers: 6,
      mPlusN: 100,
    },

    // Bitcore wallet service URL
    bws: {
        url: 'https://bws.decred.org/bws/api',
    },

    // wallet default config
    wallet: {
      requiredCopayers: 2,
      totalCopayers: 3,
      spendUnconfirmed: true,
      reconnectDelay: 5000,
      idleDurationMin: 4,
      settings: {
        unitName: 'DCR',
        unitToSatoshi: 100000000,
        unitDecimals: 8,
        unitCode: 'dcr',
        //alternativeName: 'US Dollar',
        //alternativeIsoCode: 'USD',
      }
    },

    // External services
    glidera: {
      enabled: false,
      dcrdtestnet: true
    },

    // Not sure what we should do with this long-term, but for now,
    // just point to something local.  No way to get rates for dcr at
    // the moment anyway.
    rates: {
      url: '',
    },
  };

  var configCache = null;


  root.getSync = function() {
    if (!configCache)
      throw new Error('configService#getSync called when cache is not initialized');

    return configCache;
  };
{'fraction_non_alphanumeric': 0.1167192429022082, 'fraction_numerical': 0.014195583596214511, 'mean_word_length': 2.151552795031056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '5374124', 'n_tokens_mistral': 842, 'n_tokens_neox': 774, 'n_words': 218}