<commit_before>--- === plugins.core.controlsurfaces.resolve.prefs ===
---
--- Blackmagic DaVinci Resolve Control Surface Preferences Panel

local require                   = require

local os                        = os

local log                       = require "hs.logger".new "prefsSpeedEditor"
local inspect                   = require "hs.inspect"

local application               = require "hs.application"
local dialog                    = require "hs.dialog"
local fnutils                   = require "hs.fnutils"
local image                     = require "hs.image"
local menubar                   = require "hs.menubar"
local mouse                     = require "hs.mouse"
local speededitor               = require "hs.speededitor"

local config                    = require "cp.config"
local html                      = require "cp.web.html"
local i18n                      = require "cp.i18n"
local json                      = require "cp.json"
local tools                     = require "cp.tools"

local chooseFileOrFolder        = dialog.chooseFileOrFolder
local copy                      = fnutils.copy
local doesDirectoryExist        = tools.doesDirectoryExist
local escapeTilda               = tools.escapeTilda
local execute                   = os.execute
local imageFromAppBundle        = image.imageFromAppBundle
local imageFromPath             = image.imageFromPath
local infoForBundlePath         = application.infoForBundlePath
local mergeTable                = tools.mergeTable
local spairs                    = tools.spairs
local split                     = tools.split
local tableContains             = tools.tableContains
local webviewAlert              = dialog.webviewAlert

local mod = {}

-- SNIPPET_HELP_URL -> string
-- Constant
-- URL to Snippet Support Site
local SNIPPET_HELP_URL = "https://help.commandpost.io/advanced/snippets_for_icons"

--- plugins.core.controlsurfaces.resolve.prefs.pasteboard <cp.prop: table>
--- Field
--- Pasteboard
mod.pasteboard = json.prop(config.cachePath, "DaVinci Resolve Control Surface", "Pasteboard.cpCache", {})

--- plugins.core.controlsurfaces.resolve.prefs.lastExportPath <cp.prop: string>
--- Field
--- Last Export path.
mod.lastExportPath = config.prop("daVinciResolveControlSurface.preferences.lastExportPath", os.getenv("HOME") .. "/Desktop/")

--- plugins.core.controlsurfaces.resolve.prefs.lastImportPath <cp.prop: string>
--- Field
--- Last Import path.
mod.lastImportPath = config.prop("daVinciResolveControlSurface.preferences.lastImportPath", os.getenv("HOME") .. "/Desktop/")
<commit_msg>Updated URL for Resolve Snippets help<commit_after>--- === plugins.core.controlsurfaces.resolve.prefs ===
---
--- Blackmagic DaVinci Resolve Control Surface Preferences Panel

local require                   = require

local os                        = os

local log                       = require "hs.logger".new "prefsSpeedEditor"
local inspect                   = require "hs.inspect"

local application               = require "hs.application"
local dialog                    = require "hs.dialog"
local fnutils                   = require "hs.fnutils"
local image                     = require "hs.image"
local menubar                   = require "hs.menubar"
local mouse                     = require "hs.mouse"
local speededitor               = require "hs.speededitor"

local config                    = require "cp.config"
local html                      = require "cp.web.html"
local i18n                      = require "cp.i18n"
local json                      = require "cp.json"
local tools                     = require "cp.tools"

local chooseFileOrFolder        = dialog.chooseFileOrFolder
local copy                      = fnutils.copy
local doesDirectoryExist        = tools.doesDirectoryExist
local escapeTilda               = tools.escapeTilda
local execute                   = os.execute
local imageFromAppBundle        = image.imageFromAppBundle
local imageFromPath             = image.imageFromPath
local infoForBundlePath         = application.infoForBundlePath
local mergeTable                = tools.mergeTable
local spairs                    = tools.spairs
local split                     = tools.split
local tableContains             = tools.tableContains
local webviewAlert              = dialog.webviewAlert

local mod = {}

-- SNIPPET_HELP_URL -> string
-- Constant
-- URL to Snippet Support Site
local SNIPPET_HELP_URL = "https://help.commandpost.io/advanced/snippets_for_led_status"

--- plugins.core.controlsurfaces.resolve.prefs.pasteboard <cp.prop: table>
--- Field
--- Pasteboard
mod.pasteboard = json.prop(config.cachePath, "DaVinci Resolve Control Surface", "Pasteboard.cpCache", {})

--- plugins.core.controlsurfaces.resolve.prefs.lastExportPath <cp.prop: string>
--- Field
--- Last Export path.
mod.lastExportPath = config.prop("daVinciResolveControlSurface.preferences.lastExportPath", os.getenv("HOME") .. "/Desktop/")

--- plugins.core.controlsurfaces.resolve.prefs.lastImportPath <cp.prop: string>
--- Field
--- Last Import path.
mod.lastImportPath = config.prop("daVinciResolveControlSurface.preferences.lastImportPath", os.getenv("HOME") .. "/Desktop/")

{'fraction_non_alphanumeric': 0.09468599033816426, 'fraction_numerical': 0.0015458937198067632, 'mean_word_length': 2.1180722891566264, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2010464', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1329, 'n_words': 321}