<commit_before>require 'pocketbeuter/conf'
require "net/http"
require "json"
require "colorize"

module Pocketbeuter
  class Pocket
    def initialize
    end
    def create_app
      puts "Good day Sir/Madam before you can use pocketbeuter, you'll first"
      puts "need to register your application. Please follow below steps:"
      puts "    1. Log in into Pocket site."
      puts "    2. Create an Application - complete required fields and click"
      puts "       \"CREATE APPLICATION\" button."
      puts "       NOTE: application must have unique name (I recommend: <login>/pocketbeuter)"
  end
end

#module Pocket
#  def all
#    uri = URI.parse(Conf::GET_URL)
#    http = Net::HTTP.new(uri.host, uri.port)
#    request = Net::HTTP::Post.new(uri.request_uri)
#    request.set_form_data("consumer_key" => Conf.config[:consumer_key],
#                          "state" => "all",
#                          "access_token" => Conf.config[:access_token])
#    http.use_ssl = true
#    res = http.request(request)
#    json = JSON.parse(res.body)
#    puts json['status']
#    puts json['complete']
#    json['list'].each do |a|
#      Hash[*a].each do |k,v|
#        # {"item_id"=>"4158604",<commit_msg>remove create_app from Pocket class<commit_after>require 'pocketbeuter/conf'
require "net/http"
require "json"
require "colorize"

module Pocketbeuter
  class Pocket
    def initialize
    end
  end
end

#module Pocket
#  def all
#    uri = URI.parse(Conf::GET_URL)
#    http = Net::HTTP.new(uri.host, uri.port)
#    request = Net::HTTP::Post.new(uri.request_uri)
#    request.set_form_data("consumer_key" => Conf.config[:consumer_key],
#                          "state" => "all",
#                          "access_token" => Conf.config[:access_token])
#    http.use_ssl = true
#    res = http.request(request)
#    json = JSON.parse(res.body)
#    puts json['status']
#    puts json['complete']
#    json['list'].each do |a|
#      Hash[*a].each do |k,v|
#        # {"item_id"=>"4158604",
{'fraction_non_alphanumeric': 0.1382925611582626, 'fraction_numerical': 0.00798801797304044, 'mean_word_length': 2.781132075471698, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5599412', 'n_tokens_mistral': 668, 'n_tokens_neox': 658, 'n_words': 159}