<commit_before>package org.mozilla.webmaker.util;

import android.app.Activity;
import android.content.Intent;
import org.mozilla.webmaker.R;

public class Share {

    /**
     * Launches a share intent using a specified subject and body.
     *
     * @param url URL to be appended to the share body
     * @param activity Base activity
     */
    public static void launchShareIntent(final String url, final Activity activity) {
        final Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
        final String shareSubject = activity.getString(R.string.share_subject);
        final String shareBody = activity.getString(R.string.share_body).concat(" " + url);

        shareIntent.setType("text/plain");
        shareIntent.putExtra(Intent.EXTRA_SUBJECT, shareSubject);
        shareIntent.putExtra(Intent.EXTRA_TEXT, shareBody);

        activity.startActivity(Intent.createChooser(shareIntent, "Share"));
    }
}
<commit_msg>Clarify static method description for sharing<commit_after>package org.mozilla.webmaker.util;

import android.app.Activity;
import android.content.Intent;
import org.mozilla.webmaker.R;

public class Share {

    /**
     * Launches a share intent.
     *
     * @param url URL to be appended to the share body
     * @param activity Base activity
     */
    public static void launchShareIntent(final String url, final Activity activity) {
        final Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
        final String shareSubject = activity.getString(R.string.share_subject);
        final String shareBody = activity.getString(R.string.share_body).concat(" " + url);

        shareIntent.setType("text/plain");
        shareIntent.putExtra(Intent.EXTRA_SUBJECT, shareSubject);
        shareIntent.putExtra(Intent.EXTRA_TEXT, shareBody);

        activity.startActivity(Intent.createChooser(shareIntent, "Share"));
    }
}

{'fraction_non_alphanumeric': 0.09648662821185107, 'fraction_numerical': 0.0, 'mean_word_length': 3.5645933014354068, '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': '2491458', 'n_tokens_mistral': 526, 'n_tokens_neox': 517, 'n_words': 129}