<commit_before><?xml version="1.0" encoding="UTF-8"?>
<view xmlns="http://asyncode.com/View" xmlns:db="http://asyncode.com/DataBase" xmlns:f="http://asyncode.com/filesystem">
	<param name="name" default="dupagosia"/>
	<define name="posts" command="db:query">
		
		select *  from optimizeyourcode.articles limit 2
	</define>
	<define name="costam" command="fs:get" path="/litwo.txt"/>
	
	<define name="market">
		jakas tresc {$name} bla bla
	</define>
	<!--<define name="product" condition="rs::name is 'aaa'">-->
		<!--<id>100</id>jakas tresc {$name} bla bla-->
		<!--<id>100</id><name>blog</name>-->
	<!--</define>-->

	<define name="producent">
		<id>1</id>
		<name>producent</name>
		<card>market.asyncode.com/producent</card>
		<link>producent.com</link>
	</define>
	<define name="product">
		<id>1</id>
		<name>Aplikacja</name>
		<demo>market.asyncode.com/demoaplikacji</demo>
		<buydownload>market.asyncode.com/appbuydownload</buydownload>
		<downloadstats>482456</downloadstats><clickstats>891178</clickstats>
		<note>
			5.0
		</note>
		<docstag>
			games
		</docstag>
		<licence>
			BSD
		</licence>	
		<screenshot>
			applicationscreenshot.png
		</screenshot>
		
	</define>
	<define name="todo">
		<id>1</id>
		<content>
			Do something...
		</content>	
	</define>
	<define name="tags">
		<tag>games</tag>
	</define>	
	<define name="qa">
		<id>1</id>
		<question>
			Why in this game is so full blooded?
		</question>
		<answer>
			Becouse ....
		</answer>
		<user>
			SomeUser
		</user>
		<author>
			SomeAuthor
		</author>
	</define>
	<define name="comments">
		<id>1</id>
		<content>
			Some comment
		</content>	
	</define>
	<define  name="changelog">
		<id>1</id>
		<content>Added support for something</content>
	</define>
	<define name="information">
		<id>1</id>
		<lang>pl</lang>
		<info>Jakas tam informacja</info>
	</define>	
	<define name="layout">
		<![CDATA[<pageTitle>Main page</pageTitle>
		<block type="container" name="body">
			<widget name="product_name" type="template" datasource="product">
				<node name='id'/><node name='name'/>
			</widget>
			<widget name="producent_name_card" type="template" datasource="producent">
				<node name='id'/><node name='name'/><node name='card'/>
			</widget>
			<widget name="producent_link" type="template" datasource="producent">
				<node name='id'/><node name='link'/>
			</widget>
			<widget name="product_demo" type="template" datasource="product">
				<node name='id'/><node name='demo'/>
			</widget>
			<widget name="product_buydownload" type="template" datasource="product">
				<node name='id'/><node name='buydownload'/>
			</widget>
			<widget name="product_clickdownloadstats" type="template" datasource="product">
				<node name='id'/><node name='downloadstats'/><node name='clickstats'/>
			</widget>
			<widget name="tags" type="template" datasource="tags">
				<node name='id'/><node name='tag'/>
			</widget>
			<widget name="product_note" type="template" datasource="product">
				<node name='id'/><node name='note'/>
			</widget>
			<widget name="product_licence" type="template" datasource="product">
				<node name='id'/><node name='licence'/>
			</widget>
			<widget name="product_screenshot" type="template" datasource="product">
				<node name='id'/><node name='screenshot'/>
			</widget>
			
		</block>
		
		]]>
	</define>
	  
</view><commit_msg>add widgets and data from database<commit_after><?xml version="1.0" encoding="UTF-8"?>
<view xmlns="http://asyncode.com/View" xmlns:db="http://asyncode.com/DataBase" xmlns:fs="http://asyncode.com/filesystem">
	<param name="name" default="dupagosia"/>
	<define name="producent" command="db:query">
		select * from market.producent where id = 1
	</define>
	<define name="product" command="db:query">
		select * from market.product where id = 1
	</define>
	<define name="todo" command="db:query">
		select * from market.todo 
	</define>
	<define name="tags">
		<object>
			<tag>games</tag>
		</object>
		<object>
			<tag>blood</tag>
		</object>
		<object>
			<tag>action</tag>
		</object>
	</define>	
	<define name="qa">
		<object>
		<id>1</id>
			<question>
				Why in this game is so full blooded?
			</question>
			<answer>
				Becouse ....
			</answer>
			<user>
				SomeUser
			</user>
			<author>
				SomeAuthor
			</author>
		</object>
		<object>
			<id>2</id>
			<question>
				What is this shit?
			</question>
			<answer>
				Fuck you.
			</answer>
			<user>
				SomeUser
			</user>
			<author>
				SomeAuthor
			</author>
		</object>
	</define>
	<define name="comments">
		<id>1</id>
		<content>
			Some comment
		</content>	
	</define>
	<define  name="changelog" command="db:query">
		select * from market.changelog where id = 1
	</define>
	<define name="information" command="db:query">
		select * from market.information where id = 1
	</define>	
	<define name="layout">
		<![CDATA[<pageTitle>Main page</pageTitle>
		<block type="container" name="body">
			<widget name="product_name" type="template" datasource="product">
				<b>Product name:&#160;</b><node name='name'/>
			</widget>
			<widget name="producent_name_card" type="template" datasource="producent">
				<b>Producent: &#160;</b><node name='name'/><node name='card'/>
			</widget>
			<widget name="producent_link" type="template" datasource="producent">
				<b>Strona producenta: &#160;</b><node name='link'/>
			</widget>
			<widget name="product_demo" type="template" datasource="product">
				<b>Demo aplikacji: &#160;</b><node name='demo'/>
			</widget>
			<widget name="product_buydownload" type="template" datasource="product">
				<b>Buy or Download: &#160;</b><node name='buydownload'/>
			</widget>
			<widget name="product_clickdownloadstats" type="template" datasource="product">
				<p><b>Downloads: &#160;</b><node name='downloadstats'/></p>
				<p><b>Clicks: &#160;</b><node name='clickstats'/></p>
			</widget>
			<widget name="tags" type="template" datasource="tags">
				<b>Tagi: &#160;</b><node name='tag'/>
			</widget>
			<widget name="product_note" type="template" datasource="product">
				<b>Note: &#160;</b><node name='note'/>
			</widget>
			<widget name="product_note" type="template">
				<b>Docs tag:&#160;</b>
			</widget>
			<widget name="product_licence" type="template" datasource="product">
				<b>Licence: &#160;</b><node name='licence'/>
			</widget>
			<widget name="product_screenshot" type="template" datasource="product">
				<b>Screenshots: &#160;</b><node name='screenshot'/>
			</widget>
			<widget name="product_information" type="template" datasource="information">
				<b>Informations: &#160;</b><node name='lang'/><node name='info'/>
			</widget>
			<widget name="changelog" type="template" datasource="changelog">
				<b>Changelog: &#160;</b><node name='content'/>
			</widget>
			<widget name="todo" type="template" datasource="todo">
				<b>TODO: &#160;</b><node name='content'/>
			</widget>
			<widget name="qa" type="template" datasource="qa">
				<p><node name='user'/>&#160;:<node name='question'/></p>
			</widget>
		</block>
		
		]]>
	</define>
	  
</view>
{'fraction_non_alphanumeric': 0.20606233100896543, 'fraction_numerical': 0.012665433328589725, 'mean_word_length': 4.248693054518297, 'pattern_counts': {'":': 0, '<': 298, '<?xml version=': 2, '>': 298, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4004756', 'n_tokens_mistral': 2973, 'n_tokens_neox': 2505, 'n_words': 483}