<commit_before>#include "e.h"

static E_Config_Dialog_View *_config_view_new();

static void *_create_data(E_Config_Dialog *cfd);
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
static void _fill_data(E_Config_Dialog_Data *cfdata);
static void _basic_apply_border(E_Config_Dialog_Data *cfdata);

struct _E_Config_Dialog_Data 
{
   E_Border *border;
   E_Container *container;
   char *bordername;
   int remember_border;
};

EAPI E_Config_Dialog *
e_int_config_borders(E_Container *con) 
{
   E_Config_Dialog *cfd;
   E_Config_Dialog_View *v;

   if (e_config_dialog_find("E", "_config_border_style_dialog")) return NULL;
   v = _config_view_new();
   if (!v) return NULL;
   cfd = e_config_dialog_new(con, _("Default Border Style"), 
			     "E", "_config_border_style_dialog", 
			     "enlightenment/windows", 0, v, con);
   return cfd;
}

EAPI E_Config_Dialog *
e_int_config_borders_border(E_Border *bd) 
{
   E_Config_Dialog *cfd;
   E_Config_Dialog_View *v;

   cfd = e_config_dialog_get("E", "_config_border_border_style_dialog");
   if (cfd) 
     {
	E_Border *bd2;
	
	bd2 = cfd->data;
	if (!e_util_strcmp(e_border_name_get(bd2), e_border_name_get(bd)))
	  return NULL;
     }
   
   v = _config_view_new();
   if (!v) return NULL;
   cfd = e_config_dialog_new(bd->zone->container, 
			     _("Window Border Selection"), 
			     "E", "_config_border_border_style_dialog", 
			     "enlightenment/windows", 0, v, bd);
   bd->border_border_dialog = cfd;
   return cfd;
}

static E_Config_Dialog_View *
_config_view_new() 
{
   E_Config_Dialog_View *v;
   
   v = E_NEW(E_Config_Dialog_View, 1);
   if (!v) return NULL;
   v->create_cfdata = _create_data;<commit_msg>Remove the border->border_dialog checks..this is handled in e_border.c actually.<commit_after>#include "e.h"

static E_Config_Dialog_View *_config_view_new();

static void *_create_data(E_Config_Dialog *cfd);
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
static void _fill_data(E_Config_Dialog_Data *cfdata);
static void _basic_apply_border(E_Config_Dialog_Data *cfdata);

struct _E_Config_Dialog_Data 
{
   E_Border *border;
   E_Container *container;
   char *bordername;
   int remember_border;
};

EAPI E_Config_Dialog *
e_int_config_borders(E_Container *con) 
{
   E_Config_Dialog *cfd;
   E_Config_Dialog_View *v;

   if (e_config_dialog_find("E", "_config_border_style_dialog")) return NULL;
   v = _config_view_new();
   if (!v) return NULL;
   cfd = e_config_dialog_new(con, _("Default Border Style"), 
			     "E", "_config_border_style_dialog", 
			     "enlightenment/windows", 0, v, con);
   return cfd;
}

EAPI E_Config_Dialog *
e_int_config_borders_border(E_Border *bd) 
{
   E_Config_Dialog *cfd;
   E_Config_Dialog_View *v;
   
   v = _config_view_new();
   if (!v) return NULL;
   cfd = e_config_dialog_new(bd->zone->container, 
			     _("Window Border Selection"), 
			     "E", "_config_border_border_style_dialog", 
			     "enlightenment/windows", 0, v, bd);
   bd->border_border_dialog = cfd;
   return cfd;
}

static E_Config_Dialog_View *
_config_view_new() 
{
   E_Config_Dialog_View *v;
   
   v = E_NEW(E_Config_Dialog_View, 1);
   if (!v) return NULL;
   v->create_cfdata = _create_data;
{'fraction_non_alphanumeric': 0.10590182018753447, 'fraction_numerical': 0.002482073910645339, 'mean_word_length': 4.955665024630542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2465602', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1362, 'n_words': 265}