<commit_before>angular.module("app").controller "MarketsController", ($scope, $state, Wallet, Blockchain, WalletAPI, MarketService) ->
    $scope.selected_market = null
    MarketService.load_recent_markets()
    $scope.recent_markets = MarketService.recent_markets
    $scope.account_name = false
    $scope.featured_markets = []

    promise = Wallet.get_current_or_first_account()
    promise.then (account)->
        $scope.account_name = account?.name
    $scope.showLoadingIndicator(promise)

    Blockchain.refresh_asset_records().then ->
        $scope.markets = Blockchain.get_markets()
        Blockchain.get_asset(0).then (main_asset) ->
            $scope.featured_markets.push "BitUSD:#{main_asset.symbol}"
            $scope.featured_markets.push "BitCNY:#{main_asset.symbol}"
            $scope.featured_markets.push "BitBTC:#{main_asset.symbol}"
            $scope.featured_markets.push "BitGOLD:#{main_asset.symbol}"

    $scope.select_market = (market) ->
        $scope.selected_market = market

    $scope.$watch 'selected_market', (newMarket, oldMarket) ->
        if newMarket and newMarket != oldMarket
            $state.go("market.buy", {name: $scope.selected_market, account: $scope.account_name})<commit_msg>added BitEUR to featured markets<commit_after>angular.module("app").controller "MarketsController", ($scope, $state, Wallet, Blockchain, WalletAPI, MarketService) ->
    $scope.selected_market = null
    MarketService.load_recent_markets()
    $scope.recent_markets = MarketService.recent_markets
    $scope.account_name = false
    $scope.featured_markets = []

    promise = Wallet.get_current_or_first_account()
    promise.then (account)->
        $scope.account_name = account?.name
    $scope.showLoadingIndicator(promise)

    Blockchain.refresh_asset_records().then ->
        $scope.markets = Blockchain.get_markets()
        Blockchain.get_asset(0).then (main_asset) ->
            $scope.featured_markets.push "BitUSD:#{main_asset.symbol}"
            $scope.featured_markets.push "BitCNY:#{main_asset.symbol}"
            $scope.featured_markets.push "BitBTC:#{main_asset.symbol}"
            $scope.featured_markets.push "BitGOLD:#{main_asset.symbol}"
            $scope.featured_markets.push "BitEUR:#{main_asset.symbol}"

    $scope.select_market = (market) ->
        $scope.selected_market = market

    $scope.$watch 'selected_market', (newMarket, oldMarket) ->
        if newMarket and newMarket != oldMarket
            $state.go("market.buy", {name: $scope.selected_market, account: $scope.account_name})
{'fraction_non_alphanumeric': 0.128125, 'fraction_numerical': 0.00078125, 'mean_word_length': 3.707720588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4870954', 'n_tokens_mistral': 809, 'n_tokens_neox': 761, 'n_words': 113}