<commit_before>{assign var='str'  value='test12345'}
{$str}

{assign var='num'  value=777}
{$num}

{assign var='zzz'  			value='abc'}
{$zzz}

{assign 	
	value   =   'd=ef'
	var	=	'zzz'}
{$zzz}

{assign var='zzz'  			value='it\'s OK'}
{$zzz}

{assign    var	=	'zzz' value	=	"abc\"def\tghi"}
{$zzz}

{assign var=zzz value=not_in_quotes}
{$zzz}

{assign var=zzz value=$foo|replace:'bar':'abc'|upper}
{$zzz}

{assign var=zzz value=$foo|replace:'bar':'abc'|upper}
{$zzz}

{assign var=$ob['prop1'] value="test PROP"}
{$prop1}	//$prop1 == 'test PROP' 
{$ob['prop1']}

{assign var="abc{for $ccc=1 to 3}{$ccc}{/for}" value="generate name of var!"}
{$abc123}

{assign var=$foo  value='new_value_of_foo'}
[{$foo}][{$bar}]

{ assign var='num'  value=888 }
  {    assign var='num'  value=999}
  
{
assign var='num'  value=999 
}

{	assign var='num'  value=1		}


{assign var='num'  value="111"}


{$num}

{assign var="test_with_code" value=$foo}
{$test_with_code}

{assign var="test_with_code" value="$foo"}
{$test_with_code}

{assign var="test_with_code" value='$foo'}
{$test_with_code}


{assign var="test_with_code" value="{if $foo}aaa{else}zzzz{/if}"}
{$test_with_code}


{assign var="test_with_code" value="{for $z=1 to 5}[{$z}]{/for}"}
{$test_with_code}


{assign var="test_with_code" value="| {$ob.prop2.txt} + [{$foo}]"}
{$test_with_code}


{assign var="test_with_code" value="{foreach $o as $k => $v}[{$k}]({$v}) {/foreach}"}
{$test_with_code}

{assign var="testOb" value=$ob}
[{$testOb.prop1}]

{assign var="testOb" value="$ob"}
{*[{$testOb.prop1}]*}    {* TODO *}

{assign var="testOb" value='$ob'}
[{$testOb}]

{assign var='foo' value='test'}
{$foo}

{assign var=x value='\''|replace:"'":'"'}
{$x}

{assign var="y" value=$foo|default:"no value" scope=global   nocache}
{$y}

{$x = {isEmptyStr s='abc'}}<commit_msg>Assigning array is not more supported in smarty maybe. TODO<commit_after>{assign var='str'  value='test12345'}
{$str}

{assign var='num'  value=777}
{$num}

{assign var='zzz'  			value='abc'}
{$zzz}

{assign 	
	value   =   'd=ef'
	var	=	'zzz'}
{$zzz}

{assign var='zzz'  			value='it\'s OK'}
{$zzz}

{assign    var	=	'zzz' value	=	"abc\"def\tghi"}
{$zzz}

{assign var=zzz value=not_in_quotes}
{$zzz}

{assign var=zzz value=$foo|replace:'bar':'abc'|upper}
{$zzz}

{assign var=zzz value=$foo|replace:'bar':'abc'|upper}
{$zzz}

{assign var=$ob['prop1'] value="test PROP"}
{$prop1}	//$prop1 == 'test PROP' 
{$ob['prop1']}

{assign var="abc{for $ccc=1 to 3}{$ccc}{/for}" value="generate name of var!"}
{$abc123}

{assign var=$foo  value='new_value_of_foo'}
[{$foo}][{$bar}]

{ assign var='num'  value=888 }
  {    assign var='num'  value=999}
  
{
assign var='num'  value=999 
}

{	assign var='num'  value=1		}


{assign var='num'  value="111"}


{$num}

{assign var="test_with_code" value=$foo}
{$test_with_code}

{assign var="test_with_code" value="$foo"}
{$test_with_code}

{assign var="test_with_code" value='$foo'}
{$test_with_code}


{assign var="test_with_code" value="{if $foo}aaa{else}zzzz{/if}"}
{$test_with_code}


{assign var="test_with_code" value="{for $z=1 to 5}[{$z}]{/for}"}
{$test_with_code}


{assign var="test_with_code" value="| {$ob.prop2.txt} + [{$foo}]"}
{$test_with_code}


{assign var="test_with_code" value="{foreach $o as $k => $v}[{$k}]({$v}) {/foreach}"}
{$test_with_code}

{assign var="testOb" value=$ob}
[{$testOb.prop1}]

{* below line gives error
Notice: Array to string conversion in /home/prod/my/smarty/libs/sysplugins/smarty_internal_templatebase.php(171) : eval()'d code on line 168
*}
{*{assign var="testOb" value="$ob"}*}
{*[{$testOb.prop1}]*}    {* TODO *}

{assign var="testOb" value='$ob'}
[{$testOb}]

{assign var='foo' value='test'}
{$foo}

{assign var=x value='\''|replace:"'":'"'}
{$x}

{assign var="y" value=$foo|default:"no value" scope=global   nocache}
{$y}

{$x = {isEmptyStr s='abc'}}
{'fraction_non_alphanumeric': 0.23972958918356735, 'fraction_numerical': 0.019760790431617263, 'mean_word_length': 5.944043321299639, 'pattern_counts': {'":': 2, '<': 3, '<?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': '5687200', 'n_tokens_mistral': 1715, 'n_tokens_neox': 1629, 'n_words': 324}