<commit_before><?php
// This is the test for a php beautifier
//space
require_once('tiki-setup.php');
require_once ('tiki-setup.php');

//array
list($a,$b,$c) = array('','','');
list($a, $b, $c) = array('', '' ,'');
$a = array($k=>'1', $l=>'2');

//block
if ($a)
	$b = 1;
if ($a)
{
	$b = 1;
}
if ($a){$b = 1;}
//vim mark
function a() // {{{
{
	$b = 1;
	return ( $b );
}

//space and operator
$a=$b+$c-($b-$c);
$a=$b.$c;
$a=fct($b,$c);
$a = fct ($a, $b );
// empty line

//space/tab identation
if ($a) {
   $b = 1;
	return $b;
}

// Comment
function fct($a) { //comment
//comment
	$a = $b;
	/* coment */
}
// long line
	function insert_image($galleryId, $name, $description, $filename, $filetype, &$data, $size, $xsize, $ysize, $user, $t_data, $t_type ,$lat=NULL, $lon=NULL, $gal_info=NULL) {
	}

//string
$a = "constant";
$sql = "SELECT `id`, `name` from `people` "
     . "WHERE `name`='Fred' OR `name`='Susan'";

// class
class a {
	//content
}

// global - for ease grep
global $statslib; include_once ('lib/stats/statslib.php');

// closing tag
?><commit_msg>[ENH] coding style : no ending tags, class definition, PHPCS<commit_after><?php
// This is the test for a php beautifier
//space
require_once('tiki-setup.php');
require_once ('tiki-setup.php');

//array
list($a,$b,$c) = array('','','');
list($a, $b, $c) = array('', '' ,'');
$a = array($k=>'1', $l=>'2');

//block
if ($a)
	$b = 1;
if ($a)
{
	$b = 1;
}
if ($a){$b = 1;}
//vim mark
function a() // {{{
{
	$b = 1;
	return ( $b );
}

//space and operator
$a=$b+$c-($b-$c);
$a=$b.$c;
$a=fct($b,$c);
$a = fct ($a, $b );
// empty line

//space/tab identation
if ($a) {
   $b = 1;
	return $b;
}

// Comment
function fct($a) { //comment
//comment
	$a = $b;
	/* coment */
}
// long line
	function insert_image($galleryId, $name, $description, $filename, $filetype, &$data, $size, $xsize, $ysize, $user, $t_data, $t_type ,$lat=NULL, $lon=NULL, $gal_info=NULL) {
	}

//string
$a = "constant";
$sql = "SELECT `id`, `name` from `people` "
     . "WHERE `name`='Fred' OR `name`='Susan'";

// class
class a
{
	//content
}

// global - for ease grep
global $statslib; include_once ('lib/stats/statslib.php');
{'fraction_non_alphanumeric': 0.26508820798514393, 'fraction_numerical': 0.0064995357474466105, 'mean_word_length': 3.5178197064989516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '6934325', 'n_tokens_mistral': 959, 'n_tokens_neox': 929, 'n_words': 238}