<commit_before><?php
/* Copyright (C) NAVER <http://www.navercorp.com> */

/**
 * @class  profilerAdminController
 * @author NAVER (<EMAIL>)
 * @brief  Profiler module admin controller class.
 */

class profilerAdminController extends profiler
{
	function init()
	{
	}

	function procProfilerAdminInsertConfig()
	{
	}

	function procProfilerAdminDeleteTrigger()
	{
		// 고급 삭제 옵션
		$advanced = Context::get('advanced') == 'Y' ? TRUE : FALSE;

		// 삭제할 트리거 목록 불러오기
		$oProfilerAdminModel = getAdminModel('profiler');
		$delete_trigger_list = $oProfilerAdminModel->getDeleteTriggerList($advanced);

		// 트리거 삭제
		foreach ($delete_trigger_list as $trigger)
		{
			$output = executeQueryArray('profiler.deleteTrigger', $trigger);
			if (!$output->toBool())
			{
				return $output;
			}<commit_msg>#7 잘못된 함수 사용 수정<commit_after><?php
/* Copyright (C) NAVER <http://www.navercorp.com> */

/**
 * @class  profilerAdminController
 * @author NAVER (<EMAIL>)
 * @brief  Profiler module admin controller class.
 */

class profilerAdminController extends profiler
{
	function init()
	{
	}

	function procProfilerAdminInsertConfig()
	{
	}

	function procProfilerAdminDeleteTrigger()
	{
		// 고급 삭제 옵션
		$advanced = Context::get('advanced') == 'Y' ? TRUE : FALSE;

		// 삭제할 트리거 목록 불러오기
		$oProfilerAdminModel = getAdminModel('profiler');
		$delete_trigger_list = $oProfilerAdminModel->getDeleteTriggerList($advanced);

		// 트리거 삭제
		foreach ($delete_trigger_list as $trigger)
		{
			$output = executeQuery('profiler.deleteTrigger', $trigger);
			if (!$output->toBool())
			{
				return $output;
			}
{'fraction_non_alphanumeric': 0.1396083385975995, 'fraction_numerical': 0.0006317119393556538, 'mean_word_length': 4.19344262295082, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4306730', 'n_tokens_mistral': 614, 'n_tokens_neox': 634, 'n_words': 114}