<commit_before>#include <ppapi/c/ppb_url_loader.h>
#include <stddef.h>
#include "trace.h"


static
PP_Resource
ppb_url_loader_create(PP_Instance instance)
{
    trace_info("[PPB] {zilch} %s instance=%d\n", __func__, instance);
    return 0;
}

static
PP_Bool
ppb_url_loader_is_url_loader(PP_Resource resource)
{
    trace_info("[PPB] {zilch} %s resource=%d\n", __func__, resource);
    return PP_TRUE;
}

static
int32_t
ppb_url_loader_open(PP_Resource loader, PP_Resource request_info,
                    struct PP_CompletionCallback callback)
{
    trace_info("[PPB] {zilch} %s loader=%d, request_info=%d, callback={.func=%p, .user_data=%p, "
               ".flags=%d}\n", __func__, loader, request_info, callback.func, callback.user_data,
               callback.flags);
    return 0;
}

static
int32_t
ppb_url_loader_follow_redirect(PP_Resource loader, struct PP_CompletionCallback callback)
{
    trace_info("[PPB] {zilch} %s loader=%d, callback={.func=%p, .user_data=%p, .flags=%d}\n",<commit_msg>impl ppb_url_loader_create and ppb_url_loader_is_url_loader<commit_after>#include <ppapi/c/ppb_url_loader.h>
#include <stddef.h>
#include "trace.h"
#include "pp_resource.h"


static
PP_Resource
ppb_url_loader_create(PP_Instance instance)
{
    trace_info("[PPB] {full} %s instance=%d\n", __func__, instance);
    return pp_resource_allocate(PP_RESOURCE_URL_LOADER);
}

static
PP_Bool
ppb_url_loader_is_url_loader(PP_Resource resource)
{
    trace_info("[PPB] {full} %s resource=%d\n", __func__, resource);
    return PP_RESOURCE_URL_LOADER == pp_resource_get_type(resource);
}

static
int32_t
ppb_url_loader_open(PP_Resource loader, PP_Resource request_info,
                    struct PP_CompletionCallback callback)
{
    trace_info("[PPB] {zilch} %s loader=%d, request_info=%d, callback={.func=%p, .user_data=%p, "
               ".flags=%d}\n", __func__, loader, request_info, callback.func, callback.user_data,
               callback.flags);
    return 0;
}

static
int32_t
ppb_url_loader_follow_redirect(PP_Resource loader, struct PP_CompletionCallback callback)
{
    trace_info("[PPB] {zilch} %s loader=%d, callback={.func=%p, .user_data=%p, .flags=%d}\n",
{'fraction_non_alphanumeric': 0.13093591516828032, 'fraction_numerical': 0.005071461502996773, 'mean_word_length': 4.977961432506887, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3669664', 'n_tokens_mistral': 794, 'n_tokens_neox': 789, 'n_words': 143}