<commit_before>/*
 * Clutter-Bullet
 * Copyright (C) 2010 <NAME>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */



#include <clutter/clutter.h>

#include "clutter-bullet.h"



static ClutterActor *stage;
static ClutterActor *group;



int
main (int   argc,
      char *argv[])
{
  ClutterColor colour[] = {
    { 0, 0, 0, 255 },
    { 255, 0, 0, 255 },
    { 0, 255, 0, 255 },
    { 0, 0, 255, 255 },
    { 255, 255, 0, 255 }
  };

  ClutterActor  *actor[2];
  ClutterVertex  pivot[2];

  clutter_init (&argc, &argv);

  cogl_set_depth_test_enabled (TRUE);

  stage = clutter_stage_get_default ();
  clutter_stage_set_color (CLUTTER_STAGE (stage), colour);
  clutter_actor_show_all (stage);

  group = clutter_bullet_group_new (100);
  clutter_container_add_actor (CLUTTER_CONTAINER (stage), group);

  actor[0] = clutter_rectangle_new_with_color (colour + 1);
  clutter_actor_set_position (actor[0], 100, 0);
  clutter_actor_set_depth (actor[0], 10);
  clutter_actor_set_size (actor[0], 100, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 20, 50, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 2);
  clutter_actor_set_position (actor[0], 150, 0);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_Y_AXIS, 90, 100, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 3);
  clutter_actor_set_position (actor[0], 0, 250);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 90, 100, 50, 0);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 4);
  clutter_actor_set_position (actor[0], 200, 350);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 90, 100, 50, 0);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 1);
  clutter_actor_set_position (actor[0], 300, -100);
  clutter_actor_set_depth (actor[0], -10);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 0, 100, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[1] = clutter_rectangle_new_with_color (colour + 2);
  clutter_actor_set_position (actor[1], 500, -50);
  clutter_actor_set_depth (actor[1], 40);
  clutter_actor_set_size (actor[1], 100, 100);
  clutter_actor_set_rotation (actor[1], CLUTTER_X_AXIS, 90, 50, 50, 0);
  actor[1] = clutter_bullet_card_new (actor[1], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[1]);

  pivot[0].x = 100;
  pivot[0].y = 50;
  pivot[0].z = 0;
  pivot[1].x = -50;
  pivot[1].y = 50;
  pivot[1].z = 0;

  clutter_bullet_pivot_new (actor[0], pivot + 0, actor[1], pivot + 1);

  clutter_bullet_group_start (CLUTTER_BULLET_GROUP (group));

  clutter_main ();

  return 0;
}<commit_msg>something is wrong with the joint mechanism<commit_after>/*
 * Clutter-Bullet
 * Copyright (C) 2010 <NAME>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */



#include <clutter/clutter.h>

#include "clutter-bullet.h"



static ClutterActor *stage;
static ClutterActor *group;



int
main (int   argc,
      char *argv[])
{
  ClutterColor colour[] = {
    { 0, 0, 0, 255 },
    { 255, 0, 0, 255 },
    { 0, 255, 0, 255 },
    { 0, 0, 255, 255 },
    { 255, 255, 0, 255 }
  };

  ClutterActor  *actor[2];
  ClutterVertex  pivot[2];

  clutter_init (&argc, &argv);

  cogl_set_depth_test_enabled (TRUE);

  stage = clutter_stage_get_default ();
  clutter_stage_set_color (CLUTTER_STAGE (stage), colour);
  clutter_actor_show_all (stage);

  group = clutter_bullet_group_new (100);
  clutter_container_add_actor (CLUTTER_CONTAINER (stage), group);

  actor[0] = clutter_rectangle_new_with_color (colour + 1);
  clutter_actor_set_position (actor[0], 100, 0);
  clutter_actor_set_depth (actor[0], 10);
  clutter_actor_set_size (actor[0], 100, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 20, 50, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 2);
  clutter_actor_set_position (actor[0], 150, 0);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_Y_AXIS, 90, 100, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 3);
  clutter_actor_set_position (actor[0], 0, 250);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 90, 100, 50, 0);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 4);
  clutter_actor_set_position (actor[0], 200, 350);
  clutter_actor_set_depth (actor[0], 0);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 90, 100, 50, 0);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[0] = clutter_rectangle_new_with_color (colour + 1);
  clutter_actor_set_position (actor[0], 300, 0);
  clutter_actor_set_depth (actor[0], -10);
  clutter_actor_set_size (actor[0], 200, 100);
  clutter_actor_set_rotation (actor[0], CLUTTER_X_AXIS, 0, 100, 50, 0);
  actor[0] = clutter_bullet_card_new (actor[0], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[0]);

  actor[1] = clutter_rectangle_new_with_color (colour + 2);
  clutter_actor_set_position (actor[1], 500, 50);
  clutter_actor_set_depth (actor[1], 40);
  clutter_actor_set_size (actor[1], 100, 100);
  clutter_actor_set_rotation (actor[1], CLUTTER_X_AXIS, 90, 50, 50, 0);
  actor[1] = clutter_bullet_card_new (actor[1], 1);
  clutter_container_add_actor (CLUTTER_CONTAINER (group), actor[1]);

  pivot[0].x = 100;
  pivot[0].y = 50;
  pivot[0].z = 0;
  pivot[1].x = -50;
  pivot[1].y = 50;
  pivot[1].z = 0;

  clutter_bullet_pivot_new (actor[0], pivot + 0, actor[1], pivot + 1);

  clutter_bullet_group_start (CLUTTER_BULLET_GROUP (group));

  clutter_main ();

  return 0;
}
{'fraction_non_alphanumeric': 0.1248770894788594, 'fraction_numerical': 0.06293018682399214, 'mean_word_length': 5.113448534936138, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5077964', 'n_tokens_mistral': 3463, 'n_tokens_neox': 2999, 'n_words': 768}