<commit_before>@declareRoutes = (route, app) ->

  ## Default
  route '/', ->
    app.router.go '/onboarding/device/pin'

  ## Onboarding
  # Device
  route '/onboarding/device/plug', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDevicePlugViewController

  route '/onboarding/device/unplug', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDeviceUnplugViewController

  route '/onboarding/device/pin', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDevicePinViewController

  # Management
  route '/onboarding/management/done', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementDoneViewController

  route '/onboarding/management/welcome', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementWelcomeViewController

  route '/onboarding/management/locked', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementLockedViewController

  route '/onboarding/management/pin', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementPinViewController

  ## Wallet
  # Dashboard
  route '/wallet/dashboard/index', (params) ->
    app.navigate WALLET_LAYOUT, WalletDashboardIndexViewController

  route '/wallet/send/index', (params) ->


  route '/wallet/receive/index:#action::?params:', (params) ->
    d = new WalletOperationsDetailDialogViewController()
    d.show()

  # Accounts
  route '/wallet/accounts/index:#action::?params:', (params) ->
    app.navigate WALLET_LAYOUT, WalletAccountsAccountViewController

  # Operations
  route '/wallet/accounts/operations/index:#action::?params::#action:', (params) ->
    app.navigate WALLET_LAYOUT, WalletOperationsIndexViewController<commit_msg>Fix routes<commit_after>@declareRoutes = (route, app) ->

  ## Default
  route '/', ->
    app.router.go '/onboarding/management/pin'

  ## Onboarding
  # Device
  route '/onboarding/device/plug', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDevicePlugViewController

  route '/onboarding/device/unplug', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDeviceUnplugViewController

  route '/onboarding/device/pin', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingDevicePinViewController

  # Management
  route '/onboarding/management/done', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementDoneViewController

  route '/onboarding/management/welcome', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementWelcomeViewController

  route '/onboarding/management/locked', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementLockedViewController

  route '/onboarding/management/pin', (params) ->
    app.navigate ONBOARDING_LAYOUT, OnboardingManagementPinViewController

  ## Wallet
  # Dashboard
  route '/wallet/dashboard/index', (params) ->
    app.navigate WALLET_LAYOUT, WalletDashboardIndexViewController

  route '/wallet/send/index', (params) ->


  route '/wallet/receive/index', (params) ->
    d = new WalletOperationsDetailDialogViewController()
    d.show()

  # Accounts
  route '/wallet/accounts/index', (params) ->
    app.navigate WALLET_LAYOUT, WalletAccountsAccountViewController

  # Operations
  route '/wallet/accounts/operations/index', (params) ->
    app.navigate WALLET_LAYOUT, WalletOperationsIndexViewController
{'fraction_non_alphanumeric': 0.11599030890369473, 'fraction_numerical': 0.0, 'mean_word_length': 4.794736842105263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '3702686', 'n_tokens_mistral': 1044, 'n_tokens_neox': 972, 'n_words': 168}