<commit_before>require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'mysql'
require '~/training-ruby/shekar/16_September/test'

get '/hi' do
  s=""
  obj=ABC.new
  s+= "Values from constructor <br>"
  s+= obj.print_values()
  obj.assign_values(100,100)
  s+= "<br>Values from methods<br>"
  s+= obj.print_values()
  return s
  erb :sample1
end<commit_msg>Modified sample code<commit_after>require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'mysql'
require '~/training-ruby/shekar/16_September/test'

get '/hi' do
  s=""
  obj=ABC.new
  s+= "Values from constructor <br>"
  s+= obj.print_values()
  obj.assign_values(100,100)
  s+= "<br>Values from methods<br>"
  s+= obj.print_values()
  s+="<br><a href=\"/hii\">link</a>"
  return s
end

get '/hii' do  
  erb :sample1
end
{'fraction_non_alphanumeric': 0.16604708798017348, 'fraction_numerical': 0.022304832713754646, 'mean_word_length': 4.572413793103448, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '7534566', 'n_tokens_mistral': 325, 'n_tokens_neox': 307, 'n_words': 75}