<commit_before>--------------------------------------------------------------------------------
-- 
-- 
-- 
--------------------------------------------------------------------------------

local Layer = require("core.Layer")
local Group = require("core.Group")
local Event = require("core.Event")
local Executors = require("core.Executors")
local UIEvent = require("gui.UIEvent")
local UIObjectBase = require("gui.UIObjectBase")
local InputMgr = require("core.InputMgr")
local math = math

--------------------------------------------------------------------------------
-- forward declarations
--------------------------------------------------------------------------------
local CircularArray
local Coverflow

local ScrollView = class(UIObjectBase, Group)

ScrollView.HORIZONTAL = "horizontal"
ScrollView.VERTICAL = "vertical"
ScrollView.BOTH = "both"
ScrollView.TOP = "top"
ScrollView.LEFT = "left"
ScrollView.RIGHT = "right"
ScrollView.BOTTOM = "bottom"
ScrollView.CENTER = "center"

---
-- Example usage
-- 
-- scrollView = ScrollView {
--      size = {400, 300}, 
--      clipRect = {xMin, yMin, xMax, yMax}, -- scissor rect, which is propagated to children
--      items = { child1, child2 }, 
--      contentRect = {xMin, yMin, xMax, yMax},-- size of the scroll container, defines scroll bounds
--      damping = 0.95,
--      maxVelocity = 20,
--      minVelocity = 0.3,
--      rubberEffect = false,
--      direction = ScrollView.HORIZONTAL, -- ScrollView.VERTICAL, ScrollView.BOTH<commit_msg>begin rubber effect strngth for scrollview<commit_after>--------------------------------------------------------------------------------
-- 
-- 
-- 
--------------------------------------------------------------------------------

local Layer = require("core.Layer")
local Group = require("core.Group")
local Event = require("core.Event")
local Executors = require("core.Executors")
local UIEvent = require("gui.UIEvent")
local UIObjectBase = require("gui.UIObjectBase")
local InputMgr = require("core.InputMgr")
local math = math

--------------------------------------------------------------------------------
-- forward declarations
--------------------------------------------------------------------------------
local CircularArray
local Coverflow

local ScrollView = class(UIObjectBase, Group)

ScrollView.HORIZONTAL = "horizontal"
ScrollView.VERTICAL = "vertical"
ScrollView.BOTH = "both"
ScrollView.TOP = "top"
ScrollView.LEFT = "left"
ScrollView.RIGHT = "right"
ScrollView.BOTTOM = "bottom"
ScrollView.CENTER = "center"

---
-- Example usage
-- 
-- scrollView = ScrollView {
--      size = {400, 300}, 
--      clipRect = {xMin, yMin, xMax, yMax}, -- scissor rect, which is propagated to children
--      items = { child1, child2 }, 
--      contentRect = {xMin, yMin, xMax, yMax},-- size of the scroll container, defines scroll bounds
--      damping = 0.95,
--      maxVelocity = 20,
--      minVelocity = 0.3,
--      rubberEffect = false,
--      rubberEffectStrength = 4,
--      direction = ScrollView.HORIZONTAL, -- ScrollView.VERTICAL, ScrollView.BOTH
{'fraction_non_alphanumeric': 0.3180487804878049, 'fraction_numerical': 0.010081300813008131, 'mean_word_length': 1.5870479394449117, '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': '6400994', 'n_tokens_mistral': 830, 'n_tokens_neox': 793, 'n_words': 202}