<commit_before>﻿// ==UserScript==
// @name           translate.google tooltip
// @namespace      trespassersW
// @author      trespassersW
// @copyright   trespassersW
// @license     MIT
// @description    Translates selected text into a `tooltip' via Google translate 
// @include        *
//  about:config -> greasemonkey.fileIsGreaseable <- true
// /homepahe https://github.com/trespassersW/UserScripts/blob/master/show/translate.google_tooltip.md
// @version 17.11.30
//* This is a descendant of lazyttrick's  http://userscripts.org/scripts/show/36898.
// 17.11.30 * syncronous XmlHttpRequest for Fx57/GM4.1
// 17.03.11 + keep text formatting 
// 16.10.26 + phonetic transcription
// 16.09.01 + 'previous translation' button; [*] top of tooltip at top of client window
// 16.08.26 + option for left/right tooltip position; keeps tooltip position after dragging
// 16.08.16 + Word Definition is shown when source_language == target_language
// 16.03.09   + bookmarlets interface -- javascript:postMessage('tgtooltip/auto/fr','*')
// 16.01.17-2 *+ translation from input/textarea fields
// 16.01.16.1 + alternative translation
// 3.7.2 2015-04-20 * TTS: alt-select text inside tooltip and [ctrl/shift]-click language icon below
//   * [shift] tts window in IFRAME 
//   * [ctrl] tts window in new tab
// 3.0.0  - national flags icons -- from www.senojflags.com
// 2.3  - new editable 'source text' field
// 2.2.2  - backward translation - select text inside tooltip and click the icon under your selection.
// 2.2.1  - Ctrl-Alt-click removes item from the history of translations
//  - Ability to change translation in the history -
//    select desired translation in the tooltip window using ctrl or alt -
//    which one is checked in your settings - then click on the icon below the selection.
// 2.0.0c Alt key option added
// If something goes wrong:
// Tools->SQLite manager-> Database-> Connect_database->
//  %YourBrowserProfile%\gm_scripts\translate.google_tooltip.db ->
//  scriptvals->  alt/ctrl <- false
// 2.0.0b 
// - exit by ESC
// - 1k letters limit -- don't strain your Google
//*/
// @grant GM_getValue
// @grant GM_openInTab
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// @connect translate.google.com
// @connect cdn.rawgit.com
// @icon  data:image/jpg;base64, R0lGODlhIAARALP/AAAAAP///xMYfAqf////Zv/qDuCeH8VmB8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAAgABEAQASdEMlJgb00awkMKQZYjB8RBsE4AtLQvtt0sXHcEcT1pbxK0hsXRmYIGUUgA3DiQjQtssInRAjglMsa4ibtlqSGgECQymmaAwDYUhSFfKoQDQ3LdA6Hoh6qbW4sJHpFWTUAOEA3Vj1WZjF+HQU9X18oPxl0Wx4kXoFiZF1zMEJgbW8qJnAHoU4takocpW5IIISYGh1HRlh9hRZ4eIRaEQA7
//
// ==/UserScript==

if(document.body){ 

var main = function (){ "use strict";

var   GTsuffix=".com"; // ".fr" ".de" ".ru" ".com"<commit_msg>translate.google tooltip<commit_after>﻿// ==UserScript==
// @name           translate.google tooltip
// @namespace      trespassersW
// @author      trespassersW
// @copyright   trespassersW
// @license     MIT
// @description    Translates selected text into a `tooltip' via Google translate 
// @include        *
//  about:config -> greasemonkey.fileIsGreaseable <- true
// /homepahe https://github.com/trespassersW/UserScripts/blob/master/show/translate.google_tooltip.md
// @version 17.11.301
//* This is a descendant of lazyttrick's  http://userscripts.org/scripts/show/36898.
// 17.11.301 * syncronous XmlHttpRequest for Fx57/GM4.1; gm4-polyfill
// 17.03.11 + keep text formatting 
// 16.10.26 + phonetic transcription
// 16.09.01 + 'previous translation' button; [*] top of tooltip at top of client window
// 16.08.26 + option for left/right tooltip position; keeps tooltip position after dragging
// 16.08.16 + Word Definition is shown when source_language == target_language
// 16.03.09   + bookmarlets interface -- javascript:postMessage('tgtooltip/auto/fr','*')
// 16.01.17-2 *+ translation from input/textarea fields
// 16.01.16.1 + alternative translation
// 3.7.2 2015-04-20 * TTS: alt-select text inside tooltip and [ctrl/shift]-click language icon below
//   * [shift] tts window in IFRAME 
//   * [ctrl] tts window in new tab
// 3.0.0  - national flags icons -- from www.senojflags.com
// 2.3  - new editable 'source text' field
// 2.2.2  - backward translation - select text inside tooltip and click the icon under your selection.
// 2.2.1  - Ctrl-Alt-click removes item from the history of translations
//  - Ability to change translation in the history -
//    select desired translation in the tooltip window using ctrl or alt -
//    which one is checked in your settings - then click on the icon below the selection.
// 2.0.0c Alt key option added
// If something goes wrong:
// Tools->SQLite manager-> Database-> Connect_database->
//  %YourBrowserProfile%\gm_scripts\translate.google_tooltip.db ->
//  scriptvals->  alt/ctrl <- false
// 2.0.0b 
// - exit by ESC
// - 1k letters limit -- don't strain your Google
//*/
// @grant GM_getValue
// @require https://greasemonkey.github.io/gm4-polyfill/gm4-polyfill.js
// @grant GM_openInTab
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// @connect translate.google.com
// @connect cdn.rawgit.com
// @icon  data:image/jpg;base64, R0lGODlhIAARALP/AAAAAP///xMYfAqf////Zv/qDuCeH8VmB8DAwAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAAgABEAQASdEMlJgb00awkMKQZYjB8RBsE4AtLQvtt0sXHcEcT1pbxK0hsXRmYIGUUgA3DiQjQtssInRAjglMsa4ibtlqSGgECQymmaAwDYUhSFfKoQDQ3LdA6Hoh6qbW4sJHpFWTUAOEA3Vj1WZjF+HQU9X18oPxl0Wx4kXoFiZF1zMEJgbW8qJnAHoU4takocpW5IIISYGh1HRlh9hRZ4eIRaEQA7
//
// ==/UserScript==
alert('xyJlu');
if(document.body){ 

var main = function (){ "use strict";

var   GTsuffix=".com"; // ".fr" ".de" ".ru" ".com"
{'fraction_non_alphanumeric': 0.1244343891402715, 'fraction_numerical': 0.04751131221719457, 'mean_word_length': 3.5074509803921567, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 2, 'substrings_counts': 2, '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': '4424064', 'n_tokens_mistral': 2218, 'n_tokens_neox': 2011, 'n_words': 492}