<commit_before>#include <gtk/gtk.h>
#include <libappindicator/app-indicator.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "indicator.h"
#include "git.h"
#include "notify-osd.h"

static GtkWidget **item;
static AppIndicator *indicator;

static gboolean update (thdata *data);

int init_ui (thdata *data)
{
    GtkWidget *indicator_menu;
    char icon_act[512], icon_att[512], *uhome_dir = getenv ("HOME");
    int i;
    strcpy (icon_act, uhome_dir);
    strcat (icon_act, "/.git-indicator/app/assets/git-waiting.png");
    strcpy (icon_att, uhome_dir);
    strcat (icon_att, "/.git-indicator/app/assets/git-attention.png");

    indicator_menu = gtk_menu_new();

    item = (GtkWidget **) malloc (data->count * sizeof (GtkWidget*));
    for (i = 0; i < data->count; i++) {
        item[i] = gtk_image_menu_item_new_with_label ("");
        gtk_menu_shell_append (GTK_MENU_SHELL (indicator_menu), item[i]);
    }

    GtkWidget *sep = gtk_separator_menu_item_new ();
    gtk_menu_shell_append (GTK_MENU_SHELL (indicator_menu), sep);
    gtk_widget_show_all (indicator_menu);

    indicator = app_indicator_new ("git_indicator", "",
                                   APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
    app_indicator_set_icon_full (indicator, icon_act, "");<commit_msg>Change image usage for application<commit_after>#include <gtk/gtk.h>
#include <libappindicator/app-indicator.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "indicator.h"
#include "git.h"
#include "notify-osd.h"

static GtkWidget **item;
static AppIndicator *indicator;

static gboolean update (thdata *data);

int init_ui (thdata *data)
{
    GtkWidget *indicator_menu;
    char icon_act[512], icon_att[512],
         *usr_dir = "/usr/local/share/git-indicator/img";
    int i;
    strcpy (icon_act, usr_dir);
    strcat (icon_act, "/git-waiting.png");
    strcpy (icon_att, usr_dir);
    strcat (icon_att, "/git-attention.png");

    indicator_menu = gtk_menu_new();

    item = (GtkWidget **) malloc (data->count * sizeof (GtkWidget*));
    for (i = 0; i < data->count; i++) {
        item[i] = gtk_image_menu_item_new_with_label ("");
        gtk_menu_shell_append (GTK_MENU_SHELL (indicator_menu), item[i]);
    }

    GtkWidget *sep = gtk_separator_menu_item_new ();
    gtk_menu_shell_append (GTK_MENU_SHELL (indicator_menu), sep);
    gtk_widget_show_all (indicator_menu);

    indicator = app_indicator_new ("git_indicator", "",
                                   APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
    app_indicator_set_icon_full (indicator, icon_act, "");
{'fraction_non_alphanumeric': 0.13666026871401152, 'fraction_numerical': 0.005374280230326296, 'mean_word_length': 3.982791586998088, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7100921', 'n_tokens_mistral': 999, 'n_tokens_neox': 960, 'n_words': 181}