<commit_before># -*- coding: utf-8 -*-

module Polaris

  module Nlp
    module_function

    # init method is called in first setup.
    def init
    end

  end
end<commit_msg>update init task<commit_after># -*- coding: utf-8 -*-

require 'sqlite3'
require 'open-uri'

module Polaris

  module Nlp
    module_function

    @home = Dir.home

    # init method is called in first setup.
    def init

      unless Dir.exists?("#{@home}/.polaris")
        Dir.mkdir("#{@home}/.polaris")
      end
      ja_text = open('http://www.lr.pi.titech.ac.jp/%7Etakamura/pubs/pn_ja.dic').read.encode('utf-8')
      en_text = open('http://www.lr.pi.titech.ac.jp/%7Etakamura/pubs/pn_en.dic').read.encode('utf-8')

      unless File.exists?("#{@home}/.polaris/features.sqlite3")
      end

    end

    def clean
    end

  end
end
{'fraction_non_alphanumeric': 0.15073529411764705, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 2.5064377682403434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1271698', 'n_tokens_mistral': 311, 'n_tokens_neox': 292, 'n_words': 61}