<commit_before>import { Component } from '@angular/core';
import { NavParams, ViewController } from 'ionic-angular';

//providers
import { WalletProvider } from '../../providers/wallet/wallet';
import { ProfileProvider } from '../../providers/profile/profile';


@Component({
  selector: 'page-payrpo',
  templateUrl: 'paypro.html',
})
export class PayProPage {

  public tx: any;
  public wallet: any;

  constructor(
    private navParams: NavParams,
    private viewCtrl: ViewController,
    private profileProvider: ProfileProvider,
    private walletProvider: WalletProvider,
  ) {
    this.tx = this.navParams.data.tx;
    this.wallet = this.profileProvider.getWallet(this.navParams.data.wallet.id);
    this.tx.paypro.toAddress = this.walletProvider.getAddressView(this.wallet, this.tx.paypro.toAddress);
  }

  close() {
    this.viewCtrl.dismiss();
  }<commit_msg>refactor code<commit_after>import { Component } from '@angular/core';
import { NavParams, ViewController } from 'ionic-angular';

//providers
import { WalletProvider } from '../../providers/wallet/wallet';

@Component({
  selector: 'page-payrpo',
  templateUrl: 'paypro.html',
})
export class PayProPage {

  public tx: any;
  public wallet: any;

  constructor(
    private navParams: NavParams,
    private viewCtrl: ViewController,
    private walletProvider: WalletProvider,
  ) {
    this.tx = this.navParams.data.tx;
    this.wallet = this.navParams.data.wallet;
    this.tx.paypro.toAddress = this.walletProvider.getAddressView(this.wallet, this.tx.paypro.toAddress);
  }

  close() {
    this.viewCtrl.dismiss();
  }
{'fraction_non_alphanumeric': 0.1340012523481528, 'fraction_numerical': 0.0, 'mean_word_length': 4.009404388714733, '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': '3278519', 'n_tokens_mistral': 498, 'n_tokens_neox': 501, 'n_words': 102}