<commit_before>package de.stephanlindauer.criticalmaps.utils;

import android.content.ContentResolver;
import android.content.Intent;
import android.os.Build;

public class GpxUtils {

    public static void persistPermissionOnFile(Intent data, ContentResolver contentResolver) {
        final int permissionFlags = data.getFlags()
                & (Intent.FLAG_GRANT_READ_URI_PERMISSION
                | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && data.getData() != null) {
            contentResolver.takePersistableUriPermission(data.getData(), permissionFlags);
        }
    }
}<commit_msg>Remove persisting of unnecessary permission<commit_after>package de.stephanlindauer.criticalmaps.utils;

import android.content.ContentResolver;
import android.content.Intent;
import android.os.Build;

public class GpxUtils {

    public static void persistPermissionOnFile(Intent data, ContentResolver contentResolver) {
        final int permissionFlags = data.getFlags() & Intent.FLAG_GRANT_READ_URI_PERMISSION;
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && data.getData() != null) {
            contentResolver.takePersistableUriPermission(data.getData(), permissionFlags);
        }
    }
}
{'fraction_non_alphanumeric': 0.08927173061863743, 'fraction_numerical': 0.0, 'mean_word_length': 4.112, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4333708', 'n_tokens_mistral': 363, 'n_tokens_neox': 354, 'n_words': 65}