<commit_before>//Define Modules here first
angular.module("omniConfig")
  .factory("TESTNET",["$location",function TestnetFactory($location){
    if($location.host().match('testnet') != null){
      Bitcoin.setNetwork('test');
      return true;
    } else
      return false;
  }])
  .factory("TX_DATA_URL",["TESTNET", function TxDataUrlFactory(TESTNET){
    if(TESTNET)
      return "http://tbtc.blockr.io/tx/info/";
    else
      return "https://blockchain.info/tx/";
  }]);

angular.module("omniFactories", ["omniConfig"]);
angular.module("omniServices", ["omniConfig", "omniFactories"]);
angular.module("omniControllers", ["omniConfig", "omniFactories", "omniServices"]);

var app = angular.module('omniwallet', [
  'ngRoute',
  'ui.bootstrap',
  'ui.bootstrap.modal',
  'ngNumeraljs',
  'vr.filters.passwordStrength',
  'ngIdle',
  'reCAPTCHA',
  'pascalprecht.translate',
  'omniConfig',
  'omniFactories',
  'omniServices',
  'omniControllers'
], function($routeProvider, $locationProvider, $httpProvider) {

  if (!$httpProvider.defaults.headers.get)
        $httpProvider.defaults.headers.get = {};    
  $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache, no-store, must-revalidate'; 
  $httpProvider.defaults.headers.get['Pragma'] = 'no-cache'; 
  $httpProvider.defaults.headers.get['Expires'] = '0'; 
  $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
  $httpProvider.defaults.transformRequest = [TransformRequest];

  if (document.location.href.match('testnet') != null) {
    Bitcoin.setNetwork('test');
    TESTNET=true;
  } else {
    TESTNET=false;
  }

  $routeProvider.when('/assets/:page?', {
      templateUrl: function(route) {
        //new views added here
        var availableViews = ['issue','crowdsale'];

        var view;
        var viewFound = availableViews.indexOf(route.page);
        if (viewFound != -1)
          view = '/partials/wallet_assets_' + route.page + '.html';
        else
          view = '/partials/explorer_assets.html';

        ga('send', 'event', 'button', 'click', route.page);
        return view;
      }
    }).otherwise({
      redirectTo:'/explorer/assets'
    });

  $routeProvider.when('/wallet/:page?', {
      templateUrl: function(route) {
        //new views added here
        var availableViews = ['overview', 'addresses', 'trade', 'history', 'send', 'myoffers', 'settings'];

        var viewFound = availableViews.indexOf(route.page);
        if (viewFound == -1)
          route.page = 'overview';

        var view = '/partials/wallet_' + route.page + '.html';
        //DEBUG console.log(view, route.page, view == '/wallet_addresses.html')

        ga('send', 'event', 'button', 'click', route.page);
        return view
      }
    }).otherwise({
    redirectTo: '/wallet'
  });
<commit_msg>Changed the file name in the routeprovider for the 'my assets' page in app.js<commit_after>//Define Modules here first
angular.module("omniConfig")
  .factory("TESTNET",["$location",function TestnetFactory($location){
    if($location.host().match('testnet') != null){
      Bitcoin.setNetwork('test');
      return true;
    } else
      return false;
  }])
  .factory("TX_DATA_URL",["TESTNET", function TxDataUrlFactory(TESTNET){
    if(TESTNET)
      return "http://tbtc.blockr.io/tx/info/";
    else
      return "https://blockchain.info/tx/";
  }]);

angular.module("omniFactories", ["omniConfig"]);
angular.module("omniServices", ["omniConfig", "omniFactories"]);
angular.module("omniControllers", ["omniConfig", "omniFactories", "omniServices"]);

var app = angular.module('omniwallet', [
  'ngRoute',
  'ui.bootstrap',
  'ui.bootstrap.modal',
  'ngNumeraljs',
  'vr.filters.passwordStrength',
  'ngIdle',
  'reCAPTCHA',
  'pascalprecht.translate',
  'omniConfig',
  'omniFactories',
  'omniServices',
  'omniControllers'
], function($routeProvider, $locationProvider, $httpProvider) {

  if (!$httpProvider.defaults.headers.get)
        $httpProvider.defaults.headers.get = {};    
  $httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache, no-store, must-revalidate'; 
  $httpProvider.defaults.headers.get['Pragma'] = 'no-cache'; 
  $httpProvider.defaults.headers.get['Expires'] = '0'; 
  $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
  $httpProvider.defaults.transformRequest = [TransformRequest];

  if (document.location.href.match('testnet') != null) {
    Bitcoin.setNetwork('test');
    TESTNET=true;
  } else {
    TESTNET=false;
  }

  $routeProvider.when('/assets/:page?', {
      templateUrl: function(route) {
        //new views added here
        var availableViews = ['issue','crowdsale'];

        var view;
        var viewFound = availableViews.indexOf(route.page);
        if (viewFound != -1)
          view = '/partials/wallet_assets_' + route.page + '.html';
        else
          view = '/views/wallet/assets.html';

        ga('send', 'event', 'button', 'click', route.page);
        return view;
      }
    }).otherwise({
      redirectTo:'/explorer/assets'
    });

  $routeProvider.when('/wallet/:page?', {
      templateUrl: function(route) {
        //new views added here
        var availableViews = ['overview', 'addresses', 'trade', 'history', 'send', 'myoffers', 'settings'];

        var viewFound = availableViews.indexOf(route.page);
        if (viewFound == -1)
          route.page = 'overview';

        var view = '/partials/wallet_' + route.page + '.html';
        //DEBUG console.log(view, route.page, view == '/wallet_addresses.html')

        ga('send', 'event', 'button', 'click', route.page);
        return view
      }
    }).otherwise({
    redirectTo: '/wallet'
  });

{'fraction_non_alphanumeric': 0.1744287458573173, 'fraction_numerical': 0.0013954299668585382, 'mean_word_length': 3.397239263803681, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1145766', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1817, 'n_words': 315}