<commit_before>#include <Elementary.h>
#include "elm_priv.h"
#include "elm_widget_plug.h"

EAPI const char ELM_PLUG_SMART_NAME[] = "elm_plug";

static const char PLUG_KEY[] = "__Plug_Ecore_Evas";

static const char SIG_CLICKED[] = "clicked";
static const char SIG_IMAGE_DELETED[] = "image.deleted";
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
   {SIG_CLICKED, ""},
   {SIG_IMAGE_DELETED, ""},
   {NULL, NULL}
};

EVAS_SMART_SUBCLASS_NEW
  (ELM_PLUG_SMART_NAME, _elm_plug, Elm_Plug_Smart_Class,
  Elm_Widget_Smart_Class, elm_widget_smart_class_get, _smart_callbacks);

static void
_sizing_eval(Evas_Object *obj)
{
   Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;

   //TODO: get socket object size
   //this reset plug's min/max size
   //evas_object_size_hint_min_set(obj, minw, minh);
   //evas_object_size_hint_max_set(obj, maxw, maxh);
}

static void
_elm_plug_disconnected(Ecore_Evas *ee)
{
   Evas_Object *plug = NULL;

   if (!ee) return;
   plug = ecore_evas_data_get(ee, PLUG_KEY);
   if (!plug) return;
   evas_object_smart_callback_call(plug, SIG_IMAGE_DELETED, NULL);
}
<commit_msg>elementary: Fix unused variable warnings<commit_after>#include <Elementary.h>
#include "elm_priv.h"
#include "elm_widget_plug.h"

EAPI const char ELM_PLUG_SMART_NAME[] = "elm_plug";

static const char PLUG_KEY[] = "__Plug_Ecore_Evas";

static const char SIG_CLICKED[] = "clicked";
static const char SIG_IMAGE_DELETED[] = "image.deleted";
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
   {SIG_CLICKED, ""},
   {SIG_IMAGE_DELETED, ""},
   {NULL, NULL}
};

EVAS_SMART_SUBCLASS_NEW
  (ELM_PLUG_SMART_NAME, _elm_plug, Elm_Plug_Smart_Class,
  Elm_Widget_Smart_Class, elm_widget_smart_class_get, _smart_callbacks);

static void
_sizing_eval(Evas_Object *obj __UNUSED__)
{
   //Evas_Coord minw = -1, minh = -1, maxw = -1, maxh = -1;

   //TODO: get socket object size
   //this reset plug's min/max size
   //evas_object_size_hint_min_set(obj, minw, minh);
   //evas_object_size_hint_max_set(obj, maxw, maxh);
}

static void
_elm_plug_disconnected(Ecore_Evas *ee)
{
   Evas_Object *plug = NULL;

   if (!ee) return;
   plug = ecore_evas_data_get(ee, PLUG_KEY);
   if (!plug) return;
   evas_object_smart_callback_call(plug, SIG_IMAGE_DELETED, NULL);
}

{'fraction_non_alphanumeric': 0.11798245614035088, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 5.336111111111111, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6136279', 'n_tokens_mistral': 938, 'n_tokens_neox': 926, 'n_words': 183}