<commit_before>/*jshint browserify:true*/
'use strict';

var util = require('./util'),
    rect = require('./rect'),
    query = require('./query'),
    Rect = rect.Rect;

global.__gemini = exports;

exports.query = query;

// Terminology
// - clientRect - the result of calling getBoundingClientRect of the element
// - extRect - clientRect + outline + box shadow
// - elementCaptureRect - sum of extRects of the element and its pseudo-elements
// - captureRect - sum of all elementCaptureRect for each captureSelectors
<commit_msg>fix window.global<commit_after>/*jshint browserify:true*/
'use strict';

var util = require('./util'),
    rect = require('./rect'),
    query = require('./query'),
    Rect = rect.Rect;

if (typeof window === 'undefined') {
    global.__gemini = exports;
} else {
    window.__gemini = exports;
}

exports.query = query;

// Terminology
// - clientRect - the result of calling getBoundingClientRect of the element
// - extRect - clientRect + outline + box shadow
// - elementCaptureRect - sum of extRects of the element and its pseudo-elements
// - captureRect - sum of all elementCaptureRect for each captureSelectors

{'fraction_non_alphanumeric': 0.12575888985255854, 'fraction_numerical': 0.0, 'mean_word_length': 3.4555984555984556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5883123', 'n_tokens_mistral': 324, 'n_tokens_neox': 323, 'n_words': 108}