<commit_before>#!/usr/bin/ruby

require 'rubygems'
require 'ruby-debug'

# This demonstration code was developed while working with cocos2d, which puts the 0,0 coordinate at the bottom
# left.  I have not tested this with other coordinate systems, like the standard iOS coordinate system
# where 0,0 is the top left.  Additionally, the dimensions of the bounding box are hard-coded here to be 1024x768.
# Those dimensions can be easily changed in the find_intercept method.

def find_intercept(source, touch)
  # the dimensions of the screen are 1024 x 768
  # Cocos2d puts the 0,0 origin at the bottom left, which is good
  # so, the four lines that define the borders of the screen are:
  bounds = {
    :left =>    { :x => 0.0 },
    :right =>   { :x => 1024.0 },
    :bottom =>  { :y => 0.0 },
    :top =>     { :y => 768.0 }
  }
<commit_msg>remove rubygems requirements<commit_after>#!/usr/bin/ruby

# This demonstration code was developed while working with cocos2d, which puts the 0,0 coordinate at the bottom
# left.  I have not tested this with other coordinate systems, like the standard iOS coordinate system
# where 0,0 is the top left.  Additionally, the dimensions of the bounding box are hard-coded here to be 1024x768.
# Those dimensions can be easily changed in the find_intercept method.

def find_intercept(source, touch)
  # the dimensions of the screen are 1024 x 768
  # Cocos2d puts the 0,0 origin at the bottom left, which is good
  # so, the four lines that define the borders of the screen are:
  bounds = {
    :left =>    { :x => 0.0 },
    :right =>   { :x => 1024.0 },
    :bottom =>  { :y => 0.0 },
    :top =>     { :y => 768.0 }
  }

{'fraction_non_alphanumeric': 0.09183673469387756, 'fraction_numerical': 0.04201680672268908, 'mean_word_length': 3.2853470437017993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '6154383', 'n_tokens_mistral': 555, 'n_tokens_neox': 491, 'n_words': 230}