<commit_before>#!/usr/bin/env ruby
 
# this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with the video library
 
# use "rp5 unpack library" at a command line to install the video library, among others
 
# tested with Ruby 1.9.2
# video file: http://bit.ly/H5yBjK
 
class VideoTest < Processing::App
  load_library :video
  include_package "processing.video"
 
  def setup
    size(640, 480, P2D)
    @movie = Movie.new(self, "data/sample.mov")
    @movie.play                                                                
  end
 
  def draw
    tint(*Array.new(3) { rand(256) })
    image(@movie, 0,0)
  end
 
  def movie_event(m)
    m.read
  end
 
end<commit_msg>Actually read the movie_event method<commit_after>#!/usr/bin/env ruby
 
# this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with the video library
 
# use "rp5 unpack library" at a command line to install the video library, among others
 
# tested with Ruby 1.9.2
# video file: http://bit.ly/H5yBjK
 
class VideoTest < Processing::App
  load_library :video
  include_package "processing.video"
 
  def setup
    size(640, 480, P2D)
    @movie = Movie.new(self, "data/sample.mov")
    @movie.play                                                                
  end
 
  def draw
    tint(*Array.new(3) { rand(256) })
    movie_event(@movie)
    image(@movie, 0,0)
  end
 
  def movie_event(m)
    m.read
  end
 
end
{'fraction_non_alphanumeric': 0.10449826989619378, 'fraction_numerical': 0.02491349480968858, 'mean_word_length': 2.3013698630136985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1405873', 'n_tokens_mistral': 517, 'n_tokens_neox': 454, 'n_words': 132}