<commit_before>MoveP5
=====

Prototype for an extended Processing PS Move lib based on the PS Move API
By <NAME> (Twitter: @sableRaph)


WHY?
----
The standard psmove library is a binding of the PS Move API by Thomas Perl (http://thp.io/2010/psmove/) that gets automatically compiled from the original C code using SWIG. It works great but I wanted to make it more Processing-friendly and abstract the connection to the controllers.

For example, the following code...

long [] pressed = {0};
long [] released = {0};
PSMove.get_button_events(pressed, released);
while (PSMove.poll() != 0) {
  if ((pressed[0] & Button.Btn_SELECT.swigValue()) != 0) {
        move.set_leds(0,150,255);
  }
}

... can be replaced by this:

if (move.isSelectPressedEvent())
  move.set_leds(0,150,255);


This is a work in progress and any feedback is welcome. Feel free to write your comments in the Issues section.

You can read about the functions available in the original Processing lib here: http://goo.gl/hyfQf



TO DO:
------<commit_msg>better code exemple<commit_after>MoveP5
=====

Prototype for an extended Processing PS Move lib based on the PS Move API
By <NAME> (Twitter: @sableRaph)


WHY?
----
The standard psmove library is a binding of the PS Move API by Thomas Perl (http://thp.io/2010/psmove/) that gets automatically compiled from the original C code using SWIG. It works great but I wanted to make it more Processing-friendly and abstract the connection to the controllers.

For example, the following code...

long [] pressed = {0};
long [] released = {0};
PSMove.get_button_events(pressed, released);
while (PSMove.poll() != 0) {}
if ((pressed[0] & Button.Btn_SELECT.swigValue()) != 0)
  move.set_leds(0,150,255);


... can be replaced by this:

if (move.isSelectPressedEvent())
  move.set_leds(0,150,255);


This is a work in progress and any feedback is welcome. Feel free to write your comments in the Issues section.

You can read about the functions available in the original Processing lib here: http://goo.gl/hyfQf



TO DO:
------
{'fraction_non_alphanumeric': 0.10871694417238002, 'fraction_numerical': 0.023506366307541625, 'mean_word_length': 3.9708029197080292, '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': '7000479', 'n_tokens_mistral': 658, 'n_tokens_neox': 608, 'n_words': 264}