<commit_before>define(function(require, exports) {
	'use strict';

	// ------------------------------------------------------------------------
	// Modules

	const { AppConfig } = require('./config');
	const { WindowEvents, GlobalEvents } = require('./utils/global-events');

	const { SessionSyncUI } = require('./session-sync-ui');
	const { SessionSyncModel } = require ('./components/session-sync-model');

	const { BookmarkManager } = require('./session/bookmarks');

	// ------------------------------------------------------------------------
	// API

	var findSessionSync = function findSessionSync(callback)
	{
		BookmarkManager.searchBookmarks({title: 'SessionSync'})
		.then(
			function success(bookmarks) {
				if (bookmarks.length == 0)
				{
					BookmarkManager.searchBookmarks({ title: 'Bookmarks Menu'})
					.then(function (menus) {
						BookmarkManager.createBookmark({
							title: 'SessionSync',
							parentId: menus.length > 0 ? menus[0].id : undefined
						}).then(callback);
					});
				}
				else
				{
					callback(bookmarks[0]);
				}<commit_msg>[bugfix #42] Fixed parentId for root storage bookmark creation when non English Firefox builds are used<commit_after>define(function(require, exports) {
	'use strict';

	// ------------------------------------------------------------------------
	// Modules

	const { AppConfig } = require('./config');
	const { WindowEvents, GlobalEvents } = require('./utils/global-events');

	const { SessionSyncUI } = require('./session-sync-ui');
	const { SessionSyncModel } = require ('./components/session-sync-model');

	const { BookmarkManager } = require('./session/bookmarks');

	// ------------------------------------------------------------------------
	// API

	var findSessionSync = function findSessionSync(callback)
	{
		BookmarkManager.searchBookmarks({title: 'SessionSync'})
		.then(
			function success(bookmarks) {
				if (bookmarks.length == 0)
				{
					BookmarkManager.createBookmark({
						title: 'SessionSync',
						parentId: 'menu________'
					}).then(callback, function error() {
						BookmarkManager.createBookmark({
							title: 'SessionSync',
						}).then(callback);
					});
				}
				else
				{
					callback(bookmarks[0]);
				}
{'fraction_non_alphanumeric': 0.25985663082437277, 'fraction_numerical': 0.0035842293906810036, 'mean_word_length': 2.0463847203274215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '5068024', 'n_tokens_mistral': 721, 'n_tokens_neox': 576, 'n_words': 116}