<commit_before># Setup Background Layer
bgLayer = new BackgroundLayer
	

# View: Detail Inbox Note View
page = new PageComponent
	width: Screen.wdith
	height: Screen.height
	scrollVertical: false
	
pageLayer = newLayer
	width

# View: Multiple Inbox Notes


# Interaction: Swipe to Scroll Inbox Notes


# Interaction: Swipe Up To Toss

# Interaction: Swipe Down To Toss




# Animation: Rotate Note View based on acceleration

# Remove View<commit_msg>Swipe up and Down rotates<commit_after># Setup Background Layer
bgLayer = new BackgroundLayer

# View: Detail Inbox Note View
width = Screen.width * 0.9
height = Screen.height * 0.8
# Interaction: Swipe to Scroll Inbox Notes
page = new PageComponent
	width: width
	height: Screen.height 
	scrollVertical: false
	backgroundColor: "blue"	
page.center()

# View: Multiple Inbox Notes
noteWidth = width * 0.8
noteHMargin = 0

mouseY = 0

for i in [0...5]
	layer = new Layer
		superLayer: page.content
		width: noteWidth
		height: height
		backgroundColor:'red'
		opacity: 0.5
		scale: 0.8
		x: (noteWidth + noteHMargin) * i + 50
	
	layer.centerY()
	layer.draggable.enabled = true 
	layer.draggable.horizontal = false 
	layer.on Events.DragEnd, (event, draggable, layer) ->
		print layer.draggable.velocity
		if layer.draggable.velocity.y > 2.0 || layer.draggable.velocity.y < -2.0
			this.animate
            	properties:
         	   		rotation: 360
            		curve: "spring(300,20,0)"    
			layer.on Events.AnimationEnd, ->
    	    	this.destroy()
			        
   
#TODO: CLEAN THIS CENTERING 
		
		
page.currentPage.opacity = 1
page.currentPage.scale = 1.0

page.on "change:currentPage", ->
	page.previousPage.animate
		properties:
			opacity:0.3
			scale: 0.8
		time: 0.3
	
	page.currentPage.animate
		properties:
			opacity: 1
			scale: 1
		time: 0.4 
# Interaction: Swipe Up To Toss
page.on ""

# Interaction: Swipe Down To Toss


# Animation: Rotate Note View based on acceleration

# Remove View
{'fraction_non_alphanumeric': 0.08997955010224949, 'fraction_numerical': 0.02147239263803681, 'mean_word_length': 3.199570815450644, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, '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': '4990633', 'n_tokens_mistral': 731, 'n_tokens_neox': 634, 'n_words': 197}