<commit_before>package ch.pantas.billsplitter.services;

import android.content.Context;
import android.content.Intent;

import com.google.inject.Singleton;

import ch.pantas.billsplitter.model.Event;
import ch.pantas.billsplitter.model.Expense;
import ch.pantas.billsplitter.ui.AddEvent;
import ch.pantas.billsplitter.ui.AddParticipants;
import ch.pantas.billsplitter.ui.AddExpense;
import ch.pantas.billsplitter.ui.EventList;
import ch.pantas.billsplitter.ui.ExpensesList;

import static ch.pantas.billsplitter.ui.AddParticipants.EVENT_ID;
import static ch.pantas.billsplitter.ui.ExpensesList.ARGUMENT_EVENT_ID;
import static ch.pantas.billsplitter.ui.AddExpense.ARGUMENT_EXPENSE_ID;
import static com.google.inject.internal.util.$Preconditions.checkNotNull;

@Singleton
public class ActivityStarter {

    public void startAddEvent(Context context) {
        checkNotNull(context);

        Intent intent = new Intent(context, AddEvent.class);
        context.startActivity(intent);
    }

    public void startEditEvent(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddEvent.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startExpensesList(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, ExpensesList.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startAddExpense(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddExpense.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startEditExpense(Context context, Expense expense) {
        checkNotNull(context);
        checkNotNull(expense);

        Intent intent = new Intent(context, AddExpense.class);
        intent.putExtra(ARGUMENT_EXPENSE_ID, expense.getId());
        context.startActivity(intent);
    }

    public void startEventList(Context context) {
        checkNotNull(context);

        Intent intent = new Intent(context, EventList.class);
        context.startActivity(intent);
    }

    public void startAddParticipants(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddParticipants.class);
        intent.putExtra(EVENT_ID, event.getId());
        context.startActivity(intent);
    }
}<commit_msg>CHANGED: Added event to Expense Edit Intent<commit_after>package ch.pantas.billsplitter.services;

import android.content.Context;
import android.content.Intent;

import com.google.inject.Singleton;

import ch.pantas.billsplitter.model.Event;
import ch.pantas.billsplitter.model.Expense;
import ch.pantas.billsplitter.ui.AddEvent;
import ch.pantas.billsplitter.ui.AddParticipants;
import ch.pantas.billsplitter.ui.AddExpense;
import ch.pantas.billsplitter.ui.EventList;
import ch.pantas.billsplitter.ui.ExpensesList;

import static ch.pantas.billsplitter.ui.AddParticipants.EVENT_ID;
import static ch.pantas.billsplitter.ui.ExpensesList.ARGUMENT_EVENT_ID;
import static ch.pantas.billsplitter.ui.AddExpense.ARGUMENT_EXPENSE_ID;
import static com.google.inject.internal.util.$Preconditions.checkNotNull;

@Singleton
public class ActivityStarter {

    public void startAddEvent(Context context) {
        checkNotNull(context);

        Intent intent = new Intent(context, AddEvent.class);
        context.startActivity(intent);
    }

    public void startEditEvent(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddEvent.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startExpensesList(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, ExpensesList.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startAddExpense(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddExpense.class);
        intent.putExtra(ARGUMENT_EVENT_ID, event.getId());
        context.startActivity(intent);
    }

    public void startEditExpense(Context context, Expense expense) {
        checkNotNull(context);
        checkNotNull(expense);

        Intent intent = new Intent(context, AddExpense.class);
        intent.putExtra(ARGUMENT_EVENT_ID, expense.getEventId());
        intent.putExtra(ARGUMENT_EXPENSE_ID, expense.getId());
        context.startActivity(intent);
    }

    public void startEventList(Context context) {
        checkNotNull(context);

        Intent intent = new Intent(context, EventList.class);
        context.startActivity(intent);
    }

    public void startAddParticipants(Context context, Event event) {
        checkNotNull(context);
        checkNotNull(event);

        Intent intent = new Intent(context, AddParticipants.class);
        intent.putExtra(EVENT_ID, event.getId());
        context.startActivity(intent);
    }
}
{'fraction_non_alphanumeric': 0.0972069092245498, 'fraction_numerical': 0.0, 'mean_word_length': 3.7125541125541126, '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': '5045231', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1557, 'n_words': 288}