<commit_before>Rjb is Ruby-Java bridge using Java Native Interface.

How to install

you need to install Java2 sdk, and setup JAVA_HOME enviromental varible except for OS X.
I assume that OS X's JAVA_HOME is reported by calling /usr/libexec/java_home.

then,

ruby setup.rb config
ruby setup.rb setup

(in Unix)
sudo ruby setup.rb install
or
(in win32)
ruby setup.rb install

How to test
in Win32
cd test
ruby test.rb

in Unix
see test/readme.unix 
you must set LD_LIBRARY_PATH environmental variable to run rjb.

-- Notice for opening non-ASCII 7bit filename
If you'll plan to open the non-ascii character named file by Java class through Rjb, it may require to set LC_ALL environment variable in you sciprt.
For example in Rails, set above line in production.rb as your environment.
ENV['LC_ALL'] = 'en_us.utf8' # or ja_JP.utf8 etc.
 cf: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4733494  
   (Thanks Paul for this information).

<EMAIL>
<commit_msg>fix the url of Sun Java bug database.<commit_after>Rjb is Ruby-Java bridge using Java Native Interface.

How to install

you need to install Java2 sdk, and setup JAVA_HOME enviromental varible except for OS X.
I assume that OS X's JAVA_HOME is reported by calling /usr/libexec/java_home.

then,

ruby setup.rb config
ruby setup.rb setup

(in Unix)
sudo ruby setup.rb install
or
(in win32)
ruby setup.rb install

How to test
in Win32
cd test
ruby test.rb

in Unix
see test/readme.unix 
you must set LD_LIBRARY_PATH environmental variable to run rjb.

-- Notice for opening non-ASCII 7bit filename
If you'll plan to open the non-ascii character named file by Java class through Rjb, it may require to set LC_ALL environment variable in you sciprt.
For example in Rails, set above line in production.rb as your environment.
ENV['LC_ALL'] = 'en_us.utf8' # or ja_JP.utf8 etc.
 cf: http://bugs.sun.com/view_bug.do?bug_id=4733494
   (Thanks Paul for this information).

<EMAIL>

{'fraction_non_alphanumeric': 0.06418219461697723, 'fraction_numerical': 0.015527950310559006, 'mean_word_length': 4.086842105263158, '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': '6902828', 'n_tokens_mistral': 678, 'n_tokens_neox': 617, 'n_words': 277}