<commit_before>#!/usr/bin/env python

import gtk
import webkit
import ctypes



libsoup = ctypes.CDLL('/usr/lib/i386-linux-gnu/libsoup-gnome-2.4.so.1')
libwebkit = ctypes.CDLL('/usr/lib/libwebkitgtk-1.0.so.0')


webView = webkit.WebView()
webView.open('https://www.evernote.com/Home.action')
window = gtk.Window()

icon_theme=gtk.icon_theme_get_default()
window.set_icon(icon_theme.load_icon("evernote", 96, 0))

window.set_size_request(1000,600)
window.set_title('Webrnote - Simple WebView Client for Evernote')

window.connect("destroy",window.destroy)
window.connect("delete_event", lambda w,e: gtk.main_quit())

s = gtk.ScrolledWindow()

s.add(webView)
window.add(s)

session = libwebkit.webkit_get_default_session()
cookiejar = libsoup.soup_cookie_jar_text_new('cookies/cookies.txt',False)
libsoup.soup_session_add_feature(session, cookiejar)

window.show_all()
gtk.mainloop()<commit_msg>Moved to Gobject Introspection Bindings Soup libraries and Gtk libraries updated.<commit_after>#!/usr/bin/env python

import ctypes

import gi
gi.require_version('WebKit', '3.0')
from gi.repository import Gtk, WebKit, Soup



webView = WebKit.WebView()
webView.open('https://www.evernote.com/Home.action')
window = Gtk.Window()

icon_theme=Gtk.IconTheme.get_default()
window.set_icon(icon_theme.load_icon("evernote", 96, 0))

window.set_size_request(1000,600)
window.set_title('Webrnote - Simple WebView Client for Evernote')

window.connect("delete-event", Gtk.main_quit)

s = Gtk.ScrolledWindow()

s.add(webView)
window.add(s)

cookiejar = Soup.CookieJarText.new("cookies/cookies.wbr", False)
cookiejar.set_accept_policy(Soup.CookieJarAcceptPolicy.ALWAYS)
session = WebKit.get_default_session()
session.add_feature(cookiejar)

window.show_all()
Gtk.main();
{'fraction_non_alphanumeric': 0.14049114791547687, 'fraction_numerical': 0.01770416904625928, 'mean_word_length': 6.6173913043478265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5027838', 'n_tokens_mistral': 689, 'n_tokens_neox': 641, 'n_words': 99}