<commit_before>package de.tum.in.securebitcoinwallet;

import android.content.Context;
import android.content.Intent;
import de.tum.in.securebitcoinwallet.address.create.CreateAddressActivity;
import de.tum.in.securebitcoinwallet.transactions.TransactionsActivity;
import de.tum.in.securebitcoinwallet.transactions.create.CreateTransactionActivity;

/**
 * A simple class responsible to navigate from one activity to another.
 *
 * @author <NAME>
 */
public class IntentStarter {

  /**
   * Navigate to the list of transaction
   *
   * @param context The context
   * @param address The address you want to dispaly the transactions for
   */
  public void showTransactions(Context context, String address) {
    Intent i = new Intent(context, TransactionsActivity.class);
    i.putExtra(TransactionsActivity.KEY_ADDRESS, address);
    context.startActivity(i);
    context.startActivity(i);
  }

  /**
   * Starts the activity to create a new address
   *
   * @param context the context
   * @param revealX the revealX position
   * @param revealY the revealY position
   */
  public void showCreateAddress(Context context, int revealX, int revealY) {
    Intent i = new Intent(context, CreateAddressActivity.class);
    i.putExtra(CreateAddressActivity.KEY_REVEAL_X, revealX);
    i.putExtra(CreateAddressActivity.KEY_REVEAL_Y, revealY);
    context.startActivity(i);
  }

  /**
   * Stats the activity to create a new Transcation (send Bitcoins)
   *
   * @param context The context
   * @param senderAddress The address from which the bicoins will be sends
   * @param revealX the revealX position
   * @param revealY ther revealY position
   */
  public void showCreateTransaction(Context context, String senderAddress, int revealX,
      int revealY) {
    Intent i = new Intent(context, CreateTransactionActivity.class);
    i.putExtra(CreateTransactionActivity.KEY_REVEAL_X, revealX);
    i.putExtra(CreateTransactionActivity.KEY_REVEAL_Y, revealY);
    i.putExtra(CreateTransactionActivity.KEY_SENDER_ADDRESS, senderAddress);
    context.startActivity(i);
  }
}
<commit_msg>remove duplicated intent start fix<commit_after>package de.tum.in.securebitcoinwallet;

import android.content.Context;
import android.content.Intent;
import de.tum.in.securebitcoinwallet.address.create.CreateAddressActivity;
import de.tum.in.securebitcoinwallet.transactions.TransactionsActivity;
import de.tum.in.securebitcoinwallet.transactions.create.CreateTransactionActivity;

/**
 * A simple class responsible to navigate from one activity to another.
 *
 * @author <NAME>
 */
public class IntentStarter {

  /**
   * Navigate to the list of transaction
   *
   * @param context The context
   * @param address The address you want to dispaly the transactions for
   */
  public void showTransactions(Context context, String address) {
    Intent i = new Intent(context, TransactionsActivity.class);
    i.putExtra(TransactionsActivity.KEY_ADDRESS, address);
    context.startActivity(i);
  }

  /**
   * Starts the activity to create a new address
   *
   * @param context the context
   * @param revealX the revealX position
   * @param revealY the revealY position
   */
  public void showCreateAddress(Context context, int revealX, int revealY) {
    Intent i = new Intent(context, CreateAddressActivity.class);
    i.putExtra(CreateAddressActivity.KEY_REVEAL_X, revealX);
    i.putExtra(CreateAddressActivity.KEY_REVEAL_Y, revealY);
    context.startActivity(i);
  }

  /**
   * Stats the activity to create a new Transcation (send Bitcoins)
   *
   * @param context The context
   * @param senderAddress The address from which the bicoins will be sends
   * @param revealX the revealX position
   * @param revealY ther revealY position
   */
  public void showCreateTransaction(Context context, String senderAddress, int revealX,
      int revealY) {
    Intent i = new Intent(context, CreateTransactionActivity.class);
    i.putExtra(CreateTransactionActivity.KEY_REVEAL_X, revealX);
    i.putExtra(CreateTransactionActivity.KEY_REVEAL_Y, revealY);
    i.putExtra(CreateTransactionActivity.KEY_SENDER_ADDRESS, senderAddress);
    context.startActivity(i);
  }
}

{'fraction_non_alphanumeric': 0.083633741888969, 'fraction_numerical': 0.0, 'mean_word_length': 4.356499356499357, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1463297', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1179, 'n_words': 325}