<commit_before><?php

namespace Servinow\RestaurantDrawerBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DrawerController extends Controller {

	public function indexAction($restaurantID) {
		//TODO
		
		$drawerKnowledge = array(
			'objects' => array(
				array(
					'id' => 1,
					'x' => 0,
					'y' => 0,
					'wide' => 1,
					'tall' => 1,
					'name' => 'portón'
				),
				array(
					'id' => 2,
					'x' => 7,
					'y' => 4,
					'wide' => 2,
					'tall' => 1,
					'name' => 'ventana'
				),
				array(
					'id' => 3,
					'x' => 0,
					'y' => 3,
					'wide' => 1,
					'tall' => 4,
					'name' => 'barr2a'
				),
			),
			'tables' => array()
		);
		
		return $this->render('ServinowRestaurantDrawerBundle:Drawer:index.html.twig'
						, array('restaurantID' => $restaurantID,
								'drawerKnowledge' => json_encode($drawerKnowledge)
							));
	}

}<commit_msg>Adds table examples.<commit_after><?php

namespace Servinow\RestaurantDrawerBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DrawerController extends Controller {

	public function indexAction($restaurantID) {
		//TODO
		
		$drawerKnowledge = array(
			'objects' => array(
				array(
					'id' => 1,
					'x' => 0,
					'y' => 0,
					'wide' => 1,
					'tall' => 1,
					'name' => 'portón'
				),
				array(
					'id' => 2,
					'x' => 7,
					'y' => 4,
					'wide' => 2,
					'tall' => 1,
					'name' => 'ventana'
				),
				array(
					'id' => 3,
					'x' => 0,
					'y' => 3,
					'wide' => 1,
					'tall' => 4,
					'name' => 'barr2a'
				),
			),
			'tables' => array(
				array(
					'id' => 1,
					'x' => 0,
					'y' => 3,
					'wide' => 1,
					'tall' => 4,
					'min' => 2,
					'max' => 4
				),
				array(
					'id' => 2,
					'x' => 5,
					'y' => 7,
					'wide' => 1,
					'tall' => 2,
					'min' => 2,
					'max' => 4
				),
				array(
					'id' => 4,
					'x' => 8,
					'y' => 3,
					'wide' => 2,
					'tall' => 2,
					'min' => 6,
					'max' => 8
				)
			)
		);
		
		return $this->render('ServinowRestaurantDrawerBundle:Drawer:index.html.twig'
						, array('restaurantID' => $restaurantID,
								'drawerKnowledge' => json_encode($drawerKnowledge)
							));
	}

}
{'fraction_non_alphanumeric': 0.2017897091722595, 'fraction_numerical': 0.02371364653243848, 'mean_word_length': 1.9734042553191489, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 70, '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': '7151133', 'n_tokens_mistral': 1301, 'n_tokens_neox': 871, 'n_words': 175}