<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed');

class App_images extends CI_Controller
{	
	public function index(){
		// load library with config
		$this->load->library('dynamic_image', array(
			'cache_dir' => APPPATH.'cache/image_cache',
			'create_sub_dir' => true,
			'image_quality' => '100%',
			'qstr_mode' => false
		));
		
		// set watermark
		$this->dynamic_image->setWaterMark(array(
			'text' => 'Sujeet',
			'color' => '0066FF',
			'font_path' => 'system/fonts/Bullpen3D.ttf',
			'smart_wm' => true
		));
		
		// or set custom watermark config complying with CodeIgniter Image_Lib watermark
		/* $this->dynamic_image->setWaterMark(array(
			'smart_wm' => true,
			'custom_config' => array(
				'wm_text'			=> 'Sujeet',
				'wm_type'			=> 'text',
				'wm_font_path'		=> BASEPATH.'fonts/Bullpen3D.ttf',
				'wm_font_size'		=> '12',
				'wm_font_color'		=> '0066FF',
				'wm_vrt_alignment'	=> 'top',
				'wm_hor_alignment'	=> 'left',
				'wm_padding'		=> '4'
			)
		)); */
		
		// render image
		$this->dynamic_image->render();
	}
}

/* End of file App_images.php */<commit_msg>updated script<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed');

class App_images extends CI_Controller
{	
	public function index(){
		// load library and initialize with config
		$this->load->library('dynamic_image', array(
			'cache_dir' => APPPATH.'cache/image_cache',
			'create_sub_dir' => true,
			'image_quality' => '100%',
			'qstr_mode' => false
		));
		
		// set watermark
		$this->dynamic_image->setWaterMark(array(
			'text' => 'Sujeet',
			'color' => '0066FF',
			'font_path' => 'system/fonts/Bullpen3D.ttf',
			'smart_wm' => true
		));
		
		// or set custom watermark config complying with CodeIgniter Image_Lib watermark
		/* $this->dynamic_image->setWaterMark(array(
			'smart_wm' => true,
			'custom_config' => array(
				'wm_text' => 'Sujeet',
				'wm_type' => 'text',
				'wm_font_path' => BASEPATH.'fonts/Bullpen3D.ttf',
				'wm_font_size' => '12',
				'wm_font_color' => '0066FF',
				'wm_vrt_alignment' => 'top',
				'wm_hor_alignment' => 'left',
				'wm_padding' => '4'
			)
		)); */
		
		// render image
		$this->dynamic_image->render();
	}
}

/* End of file App_images.php */
{'fraction_non_alphanumeric': 0.17787610619469027, 'fraction_numerical': 0.01415929203539823, 'mean_word_length': 3.595528455284553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, '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': '6480645', 'n_tokens_mistral': 990, 'n_tokens_neox': 833, 'n_words': 159}