<commit_before>#### This simple example server should run on JRuby, while the client can be run
### either on Ruby or JRuby


require 'sinatra/base'
require 'bio-band'
require 'JSON'
java_import 'java.util.Random'

class Trial < Sinatra::Base
  use Rack::Session::Pool

  # list created datasets or classifiers
  get '/list/:data_class' do
    session[params[:data_class]].keys.join(",\t")
  end<commit_msg>eliminate java_import Random on server<commit_after>#### This simple example server should run on JRuby, while the client can be run
### either on Ruby or JRuby


require 'sinatra/base'
require 'bio-band'
require 'JSON'
#java_import 'java.util.Random'

class Trial < Sinatra::Base
  use Rack::Session::Pool

  # list created datasets or classifiers
  get '/list/:data_class' do
    session[params[:data_class]].keys.join(",\t")
  end
{'fraction_non_alphanumeric': 0.11785714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 4.8, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2946571', 'n_tokens_mistral': 272, 'n_tokens_neox': 259, 'n_words': 89}