<commit_before>package com.irateam.vkplayer.serveces;

public class AudioService {
}<commit_msg>added AudioService and getMyAudio method<commit_after>package com.irateam.vkplayer.serveces;

import com.vk.sdk.api.VKApi;
import com.vk.sdk.api.VKRequest;
import com.vk.sdk.api.VKResponse;
import com.vk.sdk.api.model.VKApiAudio;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

public class AudioService {

    public List<VKApiAudio> getMyAudio() {
        final List<VKApiAudio> list = new ArrayList<>();
        VKApi.audio().get().executeWithListener(new VKRequest.VKRequestListener() {
            @Override
            public void onComplete(VKResponse response) {
                super.onComplete(response);
                try {
                    JSONArray array = response.json.getJSONObject("response").getJSONArray("items");
                    for (int i = 0; i < array.length(); i++)
                        list.add(new VKApiAudio().parse(array.getJSONObject(i)));
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        });
        return list;
    }

}
{'fraction_non_alphanumeric': 0.1132844335778321, 'fraction_numerical': 0.0008149959250203749, 'mean_word_length': 2.401662049861496, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '678215', 'n_tokens_mistral': 369, 'n_tokens_neox': 351, 'n_words': 67}