<commit_before><?php

namespace PragmaRX\Tracker\Vendor\Laravel\Models;

class Event extends Base {

	protected $table = 'tracker_events';

	protected $fillable = array(
		'name',
	);

	public function allInThePeriod($minutes, $result)
	{
		$query =
			$this
				->select(
					'tracker_events.id',
					'tracker_events.name',
					$this->getConnection()->raw('count('.$this->getEventLogTableName().'.id) as total')
				)
				->from('tracker_events')
				->period($minutes, 'tracker_events_log')
				->join('tracker_events_log', 'tracker_events_log.event_id', '=', 'tracker_events.id')
				->groupBy('tracker_events.id', 'tracker_events.name')
				->orderBy('total', 'desc');

		if ($result)
		{
			return $query->get();
		}

		return $query;
	}

    private function getEventLogTableName()
    {
        return $this->getTablePrefix() .'tracker_events_log';
    }

    /**
     * @return string
     */
    private function getTablePrefix()
    {
        return $this->getConnection()->getTablePrefix();
    }

}<commit_msg>Remove line<commit_after><?php

namespace PragmaRX\Tracker\Vendor\Laravel\Models;

class Event extends Base {

	protected $table = 'tracker_events';

	protected $fillable = array(
		'name',
	);

	public function allInThePeriod($minutes, $result)
	{
		$query =
			$this
				->select(
					'tracker_events.id',
					'tracker_events.name',
					$this->getConnection()->raw('count('.$this->getEventLogTableName().'.id) as total')
				)
				->from('tracker_events')
				->period($minutes, 'tracker_events_log')
				->join('tracker_events_log', 'tracker_events_log.event_id', '=', 'tracker_events.id')
				->groupBy('tracker_events.id', 'tracker_events.name')
				->orderBy('total', 'desc');

		if ($result)
		{
			return $query->get();
		}

		return $query;
	}

    private function getEventLogTableName()
    {
        return $this->getTablePrefix() .'tracker_events_log';
    }

    /**
     * @return string
     */
    private function getTablePrefix()
    {
        return $this->getConnection()->getTablePrefix();
    }
}
{'fraction_non_alphanumeric': 0.16609672691744015, 'fraction_numerical': 0.0, 'mean_word_length': 3.3854389721627407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '110853', 'n_tokens_mistral': 789, 'n_tokens_neox': 683, 'n_words': 111}