<commit_before>'use strict';
var decryptWalletCtrl = function($scope, $sce, walletService) {
    $scope.walletType = "";
    $scope.requireFPass = $scope.requirePPass = $scope.showFDecrypt = $scope.showPDecrypt = $scope.showAOnly = $scope.showParityDecrypt = false;
    $scope.filePassword = "";
    $scope.fileContent = "";
    $scope.Validator = Validator;
    $scope.isSSL = window.location.protocol == 'https:';
    $scope.ajaxReq = ajaxReq;
    $scope.nodeType = $scope.ajaxReq.type;
    $scope.HDWallet = {
        numWallets: 0,
        walletsPerDialog: 5,
        wallets: [],
        id: 0,
        hdk: null,
        dPath: '',
        defaultDPath:      "m/44'/60'/0'/0",       // first address: m/44'/60'/0'/0/0
        alternativeDPath:  "m/44'/60'/0'",         // first address: m/44'/60'/0/0
        customDPath:       "m/44'/60'/1'/0",       // first address: m/44'/60'/1'/0/0
        ledgerPath:        "m/44'/60'/0'",         // first address: m/44'/60'/0/0
        ledgerClassicPath: "m/44'/60'/160720'/0'", // first address: m/44'/60'/160720'/0/0
        trezorTestnetPath: "m/44'/1'/0'/0",        // first address: m/44'/1'/0'/0/0
        trezorClassicPath: "m/44'/61'/0'/0",       // first address: m/44'/61'/0'/0/0
        trezorPath:        "m/44'/60'/0'/0",       // first address: m/44'/60'/0'/0/0
        hwUbqPath:         "m/44'/108'/0'/0",      // first address: m/44'/40'/0'/0/0
        hwExpansePath:     "m/44'/40'/0'/0",       // first address: m/44'/40'/0'/0/0
        hwEllaismPath:     "m/44'/163'/0'/0",      // first address: m/44'/163'/0'/0/0
        hwPirlPath:        "m/44'/164'/0'/0",      // first address: m/44'/164'/0'/0/0
        hwEtherGemPath:    "m/44'/1987'/0'/0",     // first address: m/44'/1987'/0'/0/0
        hwCallistoPath:    "m/44'/820'/0'/0",      // first address: m/44'/820'/0'/0/0
        hwSocialPath:      "m/44'/1128'/0'/0",     // first address: m/44'/1128'/0'/0/0
        hwMusicoinPath:    "m/44'/184'/0'/0",      // first address: m/44'/184'/0'/0/0
        singularDTVPath:   "m/0'/0'/0'",           // first address: m/0'/0'/0'/0
        goPath:            "m/44'/6060'/0'/0",     // first address: m/44'/6060'/0'/0/0
        hwEOSClassicPath:  "m/44'/2018'/0'/0",     // first address: m/44'/2018'/0'/0/0
        hwAkromaPath:      "m/44'/200625'/0'/0",   // first address: m/44'/200625'/0'/0/0
        hwESNetworkPath:   "m/44'/31102'/0'/0",    // first address: m/44'/31102'/0'/0/0
        hwEther1Path:      "m/44'/1313114'/0'/0",  // first address: m/44'/1313114'/0'/0/0
        hwAtheiosPath:     "m/44'/1620'/0'/0",     // first address: m/44'/1620'/0'/0/0
    };
    $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
    $scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
    $scope.$watch('ajaxReq.type', function() {
        $scope.nodeType = $scope.ajaxReq.type;
        $scope.setdPath();
    });
    $scope.$watch('walletType', function() {
        $scope.setdPath();
    });
    $scope.setdPath = function() {
        if ($scope.walletType == "ledger") {
            switch ($scope.nodeType) {
                case nodes.nodeTypes.ETH:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
                    break;
                case nodes.nodeTypes.ETC:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerClassicPath;
                    break;
                case nodes.nodeTypes.CLO:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwCallistoPath;
                    break;
                case nodes.nodeTypes.EXP:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
                    break;
                case nodes.nodeTypes.UBQ:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
                    break;
                case nodes.nodeTypes.POA:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
                    break;
                case nodes.nodeTypes.AKROMA:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwAkromaPath;
                    break;
                case nodes.nodeTypes.PIRL:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwPirlPath;
                    break;
                case nodes.nodeTypes.ETHO:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwEther1Path;
                    break;
                case nodes.nodeTypes.ATH:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwAtheiosPath;
                case nodes.nodeTypes.EGEM:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwEtherGemPath;
                    break;
                default:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
            }
        } else if ($scope.walletType == "trezor") {
            switch ($scope.nodeType) {
                case nodes.nodeTypes.ETH:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
                    break;
                case nodes.nodeTypes.ETC:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorClassicPath;
                    break;
                case nodes.nodeTypes.Ropsten:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.Rinkeby:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.Kovan:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.EXP:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
                    break;
                case nodes.nodeTypes.UBQ:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
                    break;<commit_msg>BUG FIX: Fix missing break after bad merge conflict resolution<commit_after>'use strict';
var decryptWalletCtrl = function($scope, $sce, walletService) {
    $scope.walletType = "";
    $scope.requireFPass = $scope.requirePPass = $scope.showFDecrypt = $scope.showPDecrypt = $scope.showAOnly = $scope.showParityDecrypt = false;
    $scope.filePassword = "";
    $scope.fileContent = "";
    $scope.Validator = Validator;
    $scope.isSSL = window.location.protocol == 'https:';
    $scope.ajaxReq = ajaxReq;
    $scope.nodeType = $scope.ajaxReq.type;
    $scope.HDWallet = {
        numWallets: 0,
        walletsPerDialog: 5,
        wallets: [],
        id: 0,
        hdk: null,
        dPath: '',
        defaultDPath:      "m/44'/60'/0'/0",       // first address: m/44'/60'/0'/0/0
        alternativeDPath:  "m/44'/60'/0'",         // first address: m/44'/60'/0/0
        customDPath:       "m/44'/60'/1'/0",       // first address: m/44'/60'/1'/0/0
        ledgerPath:        "m/44'/60'/0'",         // first address: m/44'/60'/0/0
        ledgerClassicPath: "m/44'/60'/160720'/0'", // first address: m/44'/60'/160720'/0/0
        trezorTestnetPath: "m/44'/1'/0'/0",        // first address: m/44'/1'/0'/0/0
        trezorClassicPath: "m/44'/61'/0'/0",       // first address: m/44'/61'/0'/0/0
        trezorPath:        "m/44'/60'/0'/0",       // first address: m/44'/60'/0'/0/0
        hwUbqPath:         "m/44'/108'/0'/0",      // first address: m/44'/40'/0'/0/0
        hwExpansePath:     "m/44'/40'/0'/0",       // first address: m/44'/40'/0'/0/0
        hwEllaismPath:     "m/44'/163'/0'/0",      // first address: m/44'/163'/0'/0/0
        hwPirlPath:        "m/44'/164'/0'/0",      // first address: m/44'/164'/0'/0/0
        hwEtherGemPath:    "m/44'/1987'/0'/0",     // first address: m/44'/1987'/0'/0/0
        hwCallistoPath:    "m/44'/820'/0'/0",      // first address: m/44'/820'/0'/0/0
        hwSocialPath:      "m/44'/1128'/0'/0",     // first address: m/44'/1128'/0'/0/0
        hwMusicoinPath:    "m/44'/184'/0'/0",      // first address: m/44'/184'/0'/0/0
        singularDTVPath:   "m/0'/0'/0'",           // first address: m/0'/0'/0'/0
        goPath:            "m/44'/6060'/0'/0",     // first address: m/44'/6060'/0'/0/0
        hwEOSClassicPath:  "m/44'/2018'/0'/0",     // first address: m/44'/2018'/0'/0/0
        hwAkromaPath:      "m/44'/200625'/0'/0",   // first address: m/44'/200625'/0'/0/0
        hwESNetworkPath:   "m/44'/31102'/0'/0",    // first address: m/44'/31102'/0'/0/0
        hwEther1Path:      "m/44'/1313114'/0'/0",  // first address: m/44'/1313114'/0'/0/0
        hwAtheiosPath:     "m/44'/1620'/0'/0",     // first address: m/44'/1620'/0'/0/0
    };
    $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath;
    $scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel'));
    $scope.$watch('ajaxReq.type', function() {
        $scope.nodeType = $scope.ajaxReq.type;
        $scope.setdPath();
    });
    $scope.$watch('walletType', function() {
        $scope.setdPath();
    });
    $scope.setdPath = function() {
        if ($scope.walletType == "ledger") {
            switch ($scope.nodeType) {
                case nodes.nodeTypes.ETH:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
                    break;
                case nodes.nodeTypes.ETC:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerClassicPath;
                    break;
                case nodes.nodeTypes.CLO:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwCallistoPath;
                    break;
                case nodes.nodeTypes.EXP:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
                    break;
                case nodes.nodeTypes.UBQ:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
                    break;
                case nodes.nodeTypes.POA:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
                    break;
                case nodes.nodeTypes.AKROMA:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwAkromaPath;
                    break;
                case nodes.nodeTypes.PIRL:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwPirlPath;
                    break;
                case nodes.nodeTypes.ETHO:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwEther1Path;
                    break;
                case nodes.nodeTypes.ATH:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwAtheiosPath;
                    break;
                case nodes.nodeTypes.EGEM:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwEtherGemPath;
                    break;
                default:
                    $scope.HDWallet.dPath = $scope.HDWallet.ledgerPath;
            }
        } else if ($scope.walletType == "trezor") {
            switch ($scope.nodeType) {
                case nodes.nodeTypes.ETH:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorPath;
                    break;
                case nodes.nodeTypes.ETC:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorClassicPath;
                    break;
                case nodes.nodeTypes.Ropsten:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.Rinkeby:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.Kovan:
                    $scope.HDWallet.dPath = $scope.HDWallet.trezorTestnetPath;
                    break;
                case nodes.nodeTypes.EXP:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwExpansePath;
                    break;
                case nodes.nodeTypes.UBQ:
                    $scope.HDWallet.dPath = $scope.HDWallet.hwUbqPath;
                    break;
{'fraction_non_alphanumeric': 0.15516661056883205, 'fraction_numerical': 0.05974419387411646, 'mean_word_length': 1.5068550938620544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '360033', 'n_tokens_mistral': 4492, 'n_tokens_neox': 3937, 'n_words': 549}