<commit_before>from kivy.uix.button import Button 
from kivy.uix.pagelayout import PageLayout 
from kivy.uix.anchorlayout import AnchorLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.stencilview import StencilView 
from kivy.lang import Builder
from kivy.uix.scrollview import ScrollView
from kivy.app import App
from kivy.animation import Animation
from kivy.animation import AnimationTransition
Builder.load_string(
'''
<TransitionWidget>:
	border: '0dp'
	page: 1
    Button:
        
        background_color: 1, 1, 1, 0
        AnchorLayout:
        	size: self.parent.size
        	pos: self.parent.pos
        	anchor_x: 'right'
        	anchor_y: 'top'
        	Button:
        		size_hint: None, None
        		height: '60dp'
        		width: '60dp'
        		on_press: root.page = 1
        		background_color: 0, 0.99, 0.59, 1
        		BoxLayout:
        			size: self.parent.size
        			pos: self.parent.pos
		        	Image: 
		        		source: 'next.png'
		        		pos: self.pos
		        		size: self.size
	BoxLayout:
		id: second_layout
		orientation: 'vertical'
		Button:
			text: 'anime'
			on_press: root.anime()
			size_hint: None, None
			height: '50dp'
			width: '50dp'
			background_color: 0, 0.99, 0 ,1
		Label:
			id: head
			text: 'This is to animate'
			font_size: 40
			size_hint_y: None
			height: '20dp'
			# pos_hint_x: None
			# pos_hint_y: None
			markup: True
			halign: 'left'
			valign: 'top'

		ScrollView:
			bar_color: 1, 0 , 0, 1
			bar_width: 4
			Label:
		        text: 'my name is Yash '*100
		        font_size: 50
		        text_size: self.width, None
		        size_hint_y: None
		        height: self.texture_size[1]
		        # onscroll_stop: root.anime()
		        onscroll_start: root.anime()
		        # background_color: 1, 0, 0, 1
		        AnchorLayout:
		        	size: self.parent.size
		        	pos: self.parent.pos
		        	anchor_x: 'right'
		        	anchor_y: 'top'
		        	Button:
		        		id: cross
		        		size_hint: None, None
		        		height: '60dp'
		        		width: '60dp'
		        		on_press: root.page = 0
		        		background_color: 0, 0.99, 0.59, 1
		        		BoxLayout:
		        			size: self.parent.size
		        			pos: self.parent.pos
				        	Image: 
				        		source: 'cross.png'
				        		pos: self.pos
				        		size: self.size


''')

class TransitionWidget(PageLayout):
	def anime(self):
		lab = self.ids['head']
		ani = Animation(pos=(-150,500), size=(60, 60), t = 'out_bounce',duration=0.5) + Animation(pos=(-230,480), t = 'linear',duration=1)
		ani.start(lab)
class ScreenApp(App):

	def build(self):
		return	TransitionWidget()
ScreenApp().run()<commit_msg>new feature<commit_after>from kivy.uix.button import Button 
from kivy.uix.pagelayout import PageLayout 
from kivy.uix.anchorlayout import AnchorLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.stencilview import StencilView 
from kivy.lang import Builder
from kivy.uix.scrollview import ScrollView
from kivy.app import App
from kivy.animation import Animation
from kivy.animation import AnimationTransition
Builder.load_string(
'''
<TransitionWidget>:
	border: '0dp'
	page: 1
    Button:
        
        background_color: 1, 1, 1, 0
        AnchorLayout:
        	size: self.parent.size
        	pos: self.parent.pos
        	anchor_x: 'right'
        	anchor_y: 'top'
        	Button:
        		size_hint: None, None
        		height: '60dp'
        		width: '60dp'
        		on_press: root.page = 1
        		background_color: 0, 0.99, 0.59, 1
        		BoxLayout:
        			size: self.parent.size
        			pos: self.parent.pos
		        	Image: 
		        		source: 'next.png'
		        		pos: self.pos
		        		size: self.size
	BoxLayout:
		id: second_layout
		orientation: 'vertical'
		Button:
			text: 'anime'
			on_press: root.anime()
			size_hint: None, None
			height: '50dp'
			width: '50dp'
			background_color: 0, 0.99, 0 ,1
		Label:
			id: head
			text: 'This is to animate'
			font_size: 40
			size_hint_y: None
			height: '20dp'
			# pos_hint_x: None
			# pos_hint_y: None
			markup: True
			halign: 'left'
			valign: 'top'

		ScrollView:
			bar_color: 1, 0 , 0, 1
			bar_width: 4
			on_scroll_start: root.anime(root.page)
			Label:
		        text: 'my name is Yash '*100
		        font_size: 50
		        text_size: self.width, None
		        size_hint_y: None
		        height: self.texture_size[1]
		        
		        
		        # background_color: 1, 0, 0, 1
		        AnchorLayout:
		        	size: self.parent.size
		        	pos: self.parent.pos
		        	anchor_x: 'right'
		        	anchor_y: 'top'
		        	Button:
		        		id: cross
		        		size_hint: None, None
		        		height: '60dp'
		        		width: '60dp'
		        		on_press: root.page = 0
		        		background_color: 0, 0.99, 0.59, 1
		        		BoxLayout:
		        			size: self.parent.size
		        			pos: self.parent.pos
				        	Image: 
				        		source: 'cross.png'
				        		pos: self.pos
				        		size: self.size


''')

class TransitionWidget(PageLayout):
	def anime(self,page):
		flag = 0
		print page 
		if flag == 0 and page == 1:
			lab = self.ids['head']
			ani = Animation(pos=(-150,500), size=(60, 60), t = 'out_bounce',duration=0.5) + Animation(pos=(-230,480), t = 'linear',duration=1)
			ani.start(lab)
			flag = 1
class ScreenApp(App):

	def build(self):
		return	TransitionWidget()
ScreenApp().run()
{'fraction_non_alphanumeric': 0.10248901903367497, 'fraction_numerical': 0.030014641288433383, 'mean_word_length': 1.9717237629146276, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6127552', 'n_tokens_mistral': 2308, 'n_tokens_neox': 1911, 'n_words': 470}