<commit_before># JCoffeeScript

JCoffeeScript is a java library that compiles CoffeeScript 1.0.

### Usage
from the command prompt:
>    echo "a = 1" | java -jar jcoffeescript-1.0.jar
<pre>
      (function() {
          var a;
          a = 1;
       })();
</pre>

___
####Command Line (unix/windows): 
>    java -jar jcoffeescript-1.0.jar < foo.coffee > foo.js
___
####command line options:  
>    __--bare__   - compile the javascript without top-level function safety wrapper.  
___
####From java:
>    String javascript = new org.jcoffeescript.JCoffeeScriptCompiler().compile("a = 1");
___
####From jruby:
<code>
>     if "java" == RUBY_PLATFORM then
       # use jcoffeescript implementation
       require 'java'
       class CoffeeScriptCompiler
            def initialize
                @compiler = org.jcoffeescript.JCoffeeScriptCompiler.new
            end
            def compile(source)
                @compiler.compile(source)
            end
        end
    else
        # use shell out to coffee implementation
        require 'open3'
        class CoffeeScriptCompiler
            def compile(source)<commit_msg>update & reformat README.markdown<commit_after># JCoffeeScript

JCoffeeScript is a java library that compiles CoffeeScript 1.0.

### Usage
from the command prompt:
>    echo "a = 1" | java -jar jcoffeescript-1.0.jar
<pre>
      (function() {
          var a;
          a = 1;
       })();
</pre>

####Command Line (unix/windows): 
>    java -jar jcoffeescript-1.0.jar < foo.coffee > foo.js

####command line options:  
>    __--bare__   - compile the javascript without top-level function safety wrapper.  

####From java:
>    String javascript = new org.jcoffeescript.JCoffeeScriptCompiler().compile("a = 1");

####From jruby:
<code>
>     if "java" == RUBY_PLATFORM then
       # use jcoffeescript implementation
       require 'java'
       class CoffeeScriptCompiler
            def initialize
                @compiler = org.jcoffeescript.JCoffeeScriptCompiler.new
            end
            def compile(source)
                @compiler.compile(source)
            end
        end
    else
        # use shell out to coffee implementation
        require 'open3'
        class CoffeeScriptCompiler
            def compile(source)
{'fraction_non_alphanumeric': 0.10057344508160565, 'fraction_numerical': 0.00882223202470225, 'mean_word_length': 2.221590909090909, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '568831', 'n_tokens_mistral': 700, 'n_tokens_neox': 649, 'n_words': 187}