<commit_before>package org.freedesktop.wayland.server.jna;

import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
import org.freedesktop.wayland.util.jna.*;

public interface WaylandServerLibrary extends WaylandUtilLibrary {
    public static final String               JNA_LIBRARY_NAME = "wayland-server";
    public static final NativeLibrary        JNA_NATIVE_LIB   = NativeLibrary.getInstance(WaylandServerLibrary.JNA_LIBRARY_NAME);
    public static final WaylandServerLibrary INSTANCE         = (WaylandServerLibrary) Native.loadLibrary(WaylandServerLibrary.JNA_LIBRARY_NAME,
                                                                                                          WaylandServerLibrary.class);

    long wl_event_loop_create();

    void wl_event_loop_destroy(long loop);

    long wl_event_loop_add_fd(long loop,
                                         int fd,
                                         int mask,
                                         wl_event_loop_fd_func_t func,
                                         long data);

    int wl_event_source_fd_update(long source,
                                  int mask);

    long wl_event_loop_add_timer(long loop,
                                            wl_event_loop_timer_func_t func,
                                            long data);

    long wl_event_loop_add_signal(long loop,
                                             int signal_number,
                                             wl_event_loop_signal_func_t func,
                                             long data);

    int wl_event_source_timer_update(long source,
                                     int ms_delay);

    int wl_event_source_remove(long source);

    void wl_event_source_check(long source);

    int wl_event_loop_dispatch(long loop,
                               int timeout);

    void wl_event_loop_dispatch_idle(long loop);

    long wl_event_loop_add_idle(long loop,
                                           wl_event_loop_idle_func_t func,
                                           Pointer data);

    int wl_event_loop_get_fd(long loop);
<commit_msg>convert stray Pointer to long<commit_after>package org.freedesktop.wayland.server.jna;

import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
import org.freedesktop.wayland.util.jna.*;

public interface WaylandServerLibrary extends WaylandUtilLibrary {
    public static final String               JNA_LIBRARY_NAME = "wayland-server";
    public static final NativeLibrary        JNA_NATIVE_LIB   = NativeLibrary.getInstance(WaylandServerLibrary.JNA_LIBRARY_NAME);
    public static final WaylandServerLibrary INSTANCE         = (WaylandServerLibrary) Native.loadLibrary(WaylandServerLibrary.JNA_LIBRARY_NAME,
                                                                                                          WaylandServerLibrary.class);

    long wl_event_loop_create();

    void wl_event_loop_destroy(long loop);

    long wl_event_loop_add_fd(long loop,
                                         int fd,
                                         int mask,
                                         wl_event_loop_fd_func_t func,
                                         long data);

    int wl_event_source_fd_update(long source,
                                  int mask);

    long wl_event_loop_add_timer(long loop,
                                            wl_event_loop_timer_func_t func,
                                            long data);

    long wl_event_loop_add_signal(long loop,
                                             int signal_number,
                                             wl_event_loop_signal_func_t func,
                                             long data);

    int wl_event_source_timer_update(long source,
                                     int ms_delay);

    int wl_event_source_remove(long source);

    void wl_event_source_check(long source);

    int wl_event_loop_dispatch(long loop,
                               int timeout);

    void wl_event_loop_dispatch_idle(long loop);

    long wl_event_loop_add_idle(long loop,
                                           wl_event_loop_idle_func_t func,
                                           long data);

    int wl_event_loop_get_fd(long loop);

{'fraction_non_alphanumeric': 0.048143982002249716, 'fraction_numerical': 0.0, 'mean_word_length': 1.394184168012924, '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': 62, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7324291', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1058, 'n_words': 210}