<commit_before><?php
class Search extends Kiel_Controller
{

	public function index_get()
	{
		$this->load_model('feed_model');

		$required = array('loc','name','message','query');
		$data = $this->get_args;
		$this->required_fields($required,$data);

		$str = '';
		if($data['loc'] === "1"){
			$str .= " place_tag like '%{$data['query']}%' OR";
		}
		if($data['name'] === "1"){
			$str .= " sender like '%{$data['query']}%' OR";
		}
		if($data['message'] === "1"){
			$str .= " message like '%{$data['query']}%'";
		}

		$str = rtrim($str, 'OR');
<commit_msg>added tag search<commit_after><?php
class Search extends Kiel_Controller
{

	public function index_get()
	{
		$this->load_model('feed_model');

		$required = array('loc','name','message','query');
		$data = $this->get_args;
		$this->required_fields($required,$data);

		$str = '';
		if($data['loc'] === "1"){
			$str .= " place_tag like '%{$data['query']}%' OR";
		}
		if($data['name'] === "1"){
			$str .= " sender like '%{$data['query']}%' OR";
		}
		if($data['message'] === "1"){
			$str .= " message like '%{$data['query']}%' OR";
		}
		$str .= "  tags like '%{$data['query']}%' "

		$str = rtrim($str, 'OR');

{'fraction_non_alphanumeric': 0.27721088435374147, 'fraction_numerical': 0.00510204081632653, 'mean_word_length': 4.3744292237442925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3376884', 'n_tokens_mistral': 486, 'n_tokens_neox': 429, 'n_words': 83}