<commit_before>#include <stdio.h>
#include <stdlib.h>

#include <clutter/clutter.h>
#include <nbtk.h>

int
main (int argc, char *argv[])
{
  NbtkWidget *button;
  ClutterColor stage_color =  { 0xff, 0xff, 0xff, 0xff };
  NbtkPadding padding = { 0, };
  ClutterActor *stage;

  clutter_init (&argc, &argv);

  /* load the style sheet */
  nbtk_style_load_from_file (nbtk_style_get_default (),
                             "style/default.css", NULL);

  stage = clutter_stage_get_default ();
  clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);

  button = nbtk_button_new_with_label ("Hello");
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 100, 100);
  clutter_actor_set_size (CLUTTER_ACTOR (button), 100, 100);

  button = nbtk_button_new ();
  nbtk_button_set_icon_from_file (NBTK_BUTTON (button),
                                  "redhand.png");
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 300, 100);
  padding.left = CLUTTER_UNITS_FROM_DEVICE (20);
  padding.right = CLUTTER_UNITS_FROM_DEVICE (20);
  padding.top = CLUTTER_UNITS_FROM_DEVICE (20);
  padding.bottom = CLUTTER_UNITS_FROM_DEVICE (20);
  nbtk_widget_set_padding (NBTK_WIDGET (button), &padding);
  clutter_actor_set_size (CLUTTER_ACTOR (button), 100, 100);

  button = nbtk_button_new_with_label ("Toggle");
  nbtk_button_set_toggle_mode (NBTK_BUTTON (button), TRUE);
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 150, 200);
  clutter_actor_set_size (CLUTTER_ACTOR (button), 100, 100);

  clutter_actor_show (stage);

  clutter_main ();

  return EXIT_SUCCESS;
}
<commit_msg>Don't set explicit sizes on test-buttons<commit_after>#include <stdio.h>
#include <stdlib.h>

#include <clutter/clutter.h>
#include <nbtk.h>

int
main (int argc, char *argv[])
{
  NbtkWidget *button;
  ClutterColor stage_color =  { 0xff, 0xff, 0xff, 0xff };
  NbtkPadding padding = { 0, };
  ClutterActor *stage;

  clutter_init (&argc, &argv);

  /* load the style sheet */
  nbtk_style_load_from_file (nbtk_style_get_default (),
                             "style/default.css", NULL);

  padding.left = CLUTTER_UNITS_FROM_DEVICE (40);
  padding.right = CLUTTER_UNITS_FROM_DEVICE (40);
  padding.top = CLUTTER_UNITS_FROM_DEVICE (40);
  padding.bottom = CLUTTER_UNITS_FROM_DEVICE (40);

  stage = clutter_stage_get_default ();
  clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);

  button = nbtk_button_new_with_label ("Hello World!");
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 100, 100);
  nbtk_widget_set_padding (NBTK_WIDGET (button), &padding);

  button = nbtk_button_new ();
  nbtk_button_set_icon_from_file (NBTK_BUTTON (button),
                                  "redhand.png");
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 300, 100);
  nbtk_widget_set_padding (NBTK_WIDGET (button), &padding);

  button = nbtk_button_new_with_label ("Toggle");
  nbtk_button_set_toggle_mode (NBTK_BUTTON (button), TRUE);
  clutter_container_add_actor (CLUTTER_CONTAINER (stage),
                               CLUTTER_ACTOR (button));
  clutter_actor_set_position (CLUTTER_ACTOR (button), 150, 200);
  nbtk_widget_set_padding (NBTK_WIDGET (button), &padding);

  clutter_actor_show (stage);

  clutter_main ();

  return EXIT_SUCCESS;
}

{'fraction_non_alphanumeric': 0.10749868904037756, 'fraction_numerical': 0.02097535395909806, 'mean_word_length': 3.8660714285714284, 'pattern_counts': {'":': 0, '<': 11, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7018169', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1363, 'n_words': 251}