<commit_before>ypijs-.net
==========

Package
-------------------
**Ypi.Controls.YpiControl**
- Script base

**Ypi.Controls.Avatar**
- Avatar control

**Ypi.Controls.YpiPanel**
- Panel with reactions

Installation 
-------------------
- Add reference to YpiControl.dll to your asp .net application. You can obtain bin file (all you need) or compile your own from source. JavaScript and CSS is embedded. 
- Register component to your aspx page. For example.  

**Default.aspx:**

```aspx-cs
<%@ Register TagPrefix="ypi" Assembly="YpiControl" Namespace="Ypi.Controls" %>
```

Usage
-------------------
Add following controls anywhere to page content. At first add script base.
 
**Default.aspx:**
 
```aspx-cs
<ypi:YpiControl ID="ypiScriptBase" runat="server" ChapterUrl="/welcome.xml" InitState="n1" IsAutostart="true" />   
``` 
 
Then add corresponding avatar or more of them. There is tag called YpiBaseName to join with YpiControl by ID. This control can be anywhere in page body content too.

```aspx-cs
<ypi:Avatar ID="avatar1" YpiBaseName="ypiBase" Name="avatar1" BubbleId="npc_avatar_1" IdleTimeout="30000" Speed="150" Alias="<NAME>" runat="server" />
``` 
 
Finally add panel with answers. 
 
```aspx-cs
<ypi:YpiPanel runat="server"/>
```

Customize
-------------------
Package contains some predefined tags. However, it is possible to set custom property with SetProperty method (YpiControl, Avatar). 

```csharp
	protected void Page_Load(object sender, EventArgs e)
	{
		ypiScriptBase.SetProperty("attrCase","['trackId','custom']"); 		
		avatar1.SetProperty("IsCommercial", "true");
	}
```<commit_msg>More relevant use case.<commit_after>ypijs-.net
==========

Package
-------------------
**Ypi.Controls.YpiControl**
- Script base

**Ypi.Controls.Avatar**
- Avatar control

**Ypi.Controls.YpiPanel**
- Panel with reactions

Installation 
-------------------
- Add reference to YpiControl.dll to your asp .net application. You can obtain bin file (all you need) or compile your own from source. JavaScript and CSS is embedded. 
- Register component to your aspx page. For example.  

**Default.aspx:**

```aspx-cs
<%@ Register TagPrefix="ypi" Assembly="YpiControl" Namespace="Ypi.Controls" %>
```

Usage
-------------------
Add following controls anywhere to page content. At first add script base.
 
**Default.aspx:**
 
```aspx-cs
<ypi:YpiControl ID="ypiScriptBase" runat="server" ChapterUrl="/welcome.xml" InitState="n1" IsAutostart="true" />   
``` 
 
Then add corresponding avatar or more of them. There is tag called YpiBaseName to join with YpiControl by ID. This control can be anywhere in page body content too.

```aspx-cs
<ypi:Avatar ID="avatar1" YpiBaseName="ypiBase" Name="avatar1" BubbleId="npc_avatar_1" IdleTimeout="30000" Speed="150" Alias="<NAME>" runat="server" />
``` 
 
Finally add panel with answers. 
 
```aspx-cs
<ypi:YpiPanel runat="server"/>
```

Customize
-------------------
Package contains some predefined tags. However, it is possible to set custom property with SetProperty method (YpiControl, Avatar). 

```csharp
	protected void Page_Load(object sender, EventArgs e)
	{
		ypiScriptBase.SetProperty("attrCase","['trackId','custom']"); 		
		avatar1.SetProperty("Speed", "150");
	}
```
{'fraction_non_alphanumeric': 0.17648883374689825, 'fraction_numerical': 0.008995037220843672, 'mean_word_length': 3.8350824587706147, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1283099', 'n_tokens_mistral': 1060, 'n_tokens_neox': 975, 'n_words': 307}