<commit_before>#include "ecore_xcb_private.h"
#ifdef ECORE_XCB_SHAPE
# include <xcb/shape.h>
#endif

/* external variables */
int _ecore_xcb_event_shape = -1;

void 
_ecore_xcb_shape_init(void) 
{
   LOGFN(__FILE__, __LINE__, __FUNCTION__);

#ifdef ECORE_XCB_SHAPE
   xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_shape_id);
#endif
}

void 
_ecore_xcb_shape_finalize(void) 
{
#ifdef ECORE_XCB_SHAPE
   const xcb_query_extension_reply_t *ext_reply;
#endif

   LOGFN(__FILE__, __LINE__, __FUNCTION__);

#ifdef ECORE_XCB_SHAPE
   ext_reply = xcb_get_extension_data(_ecore_xcb_conn, &xcb_shape_id);
   if ((ext_reply) && (ext_reply->present)) 
     {
        xcb_shape_query_version_cookie_t cookie;
        xcb_shape_query_version_reply_t *reply;
        Eina_Bool _shape_avail = EINA_FALSE;

        cookie = xcb_shape_query_version_unchecked(_ecore_xcb_conn);
        reply = xcb_shape_query_version_reply(_ecore_xcb_conn, cookie, NULL);
        if (reply) 
          {
             if ((reply->major_version >= XCB_SHAPE_MAJOR_VERSION) && 
                 (reply->minor_version >= XCB_SHAPE_MINOR_VERSION))
               _shape_avail = EINA_TRUE;

             free(reply);
          }

        if (_shape_avail)<commit_msg>Ecore_X: Remove check for shape extension version.<commit_after>#include "ecore_xcb_private.h"
#ifdef ECORE_XCB_SHAPE
# include <xcb/shape.h>
#endif

/* external variables */
int _ecore_xcb_event_shape = -1;

void 
_ecore_xcb_shape_init(void) 
{
   LOGFN(__FILE__, __LINE__, __FUNCTION__);

#ifdef ECORE_XCB_SHAPE
   xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_shape_id);
#endif
}

void 
_ecore_xcb_shape_finalize(void) 
{
#ifdef ECORE_XCB_SHAPE
   const xcb_query_extension_reply_t *ext_reply;
#endif

   LOGFN(__FILE__, __LINE__, __FUNCTION__);

#ifdef ECORE_XCB_SHAPE
   ext_reply = xcb_get_extension_data(_ecore_xcb_conn, &xcb_shape_id);
   if ((ext_reply) && (ext_reply->present)) 
     {
        xcb_shape_query_version_cookie_t cookie;
        xcb_shape_query_version_reply_t *reply;
        Eina_Bool _shape_avail = EINA_FALSE;

        cookie = xcb_shape_query_version_unchecked(_ecore_xcb_conn);
        reply = xcb_shape_query_version_reply(_ecore_xcb_conn, cookie, NULL);
        if (reply) 
          {
             _shape_avail = EINA_TRUE;
             free(reply);
          }

        if (_shape_avail)
{'fraction_non_alphanumeric': 0.08662420382165605, 'fraction_numerical': 0.0008492569002123143, 'mean_word_length': 3.75, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5613256', 'n_tokens_mistral': 905, 'n_tokens_neox': 894, 'n_words': 132}