<commit_before>package ru.quickresto.qrcp.mapper;

import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

import ru.quickresto.qrcp.Cache;
import ru.quickresto.qrcp.annotations.ResolverEntity;

public class Mapper {

    private ContentResolver getContentResolver() {
        return Cache.getContext().getContentResolver();
    }

    private Uri getUri(String url) {
        return Uri.parse(url);
    }

    public <T> List<T> query(Class<T> cls) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
        return query(cls, null, null);
    }

    public <T> List<T> query(Class<T> cls, String selection, String[] selectionArgs) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
        List<T> result = new ArrayList<>();

        if (cls.isAnnotationPresent(ResolverEntity.class)) {
            Uri uri = getUri(cls.getAnnotation(ResolverEntity.class).url());
            String[] fields = {};
<commit_msg>queryAll<commit_after>package ru.quickresto.qrcp.mapper;

import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

import ru.quickresto.qrcp.Cache;
import ru.quickresto.qrcp.annotations.ResolverEntity;

public class Mapper {

    private ContentResolver getContentResolver() {
        return Cache.getContext().getContentResolver();
    }

    private Uri getUri(String url) {
        return Uri.parse(url);
    }

    public <T> T query(Class<T> cls) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
        return null;
    }

    public <T> List<T> queryAll(Class<T> cls) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
        return queryAll(cls, null, null);
    }

    public <T> List<T> queryAll(Class<T> cls, String selection, String[] selectionArgs) throws IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchMethodException {
        List<T> result = new ArrayList<>();

        if (cls.isAnnotationPresent(ResolverEntity.class)) {
            Uri uri = getUri(cls.getAnnotation(ResolverEntity.class).url());
            String[] fields = {};

{'fraction_non_alphanumeric': 0.10135396518375242, 'fraction_numerical': 0.0, 'mean_word_length': 4.455696202531645, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2363050', 'n_tokens_mistral': 719, 'n_tokens_neox': 703, 'n_words': 158}