<commit_before><?php

/**
 * @package         Billing
 * @copyright       Copyright (C) 2012-2013 BillRun Technologies Ltd. All rights reserved.
 * @license         GNU Affero General Public License Version 3; see LICENSE.txt
 */
require_once APPLICATION_PATH . '/application/controllers/Action/Api.php';

/**
 * Collect action class
 *
 * @package  Action
 * 
 * @since    2.6
 */
class  Run_collect_stepAction extends ApiAction {
	
	use Billrun_Traits_Api_UserPermissions;

	public function execute() {
		$this->allowed();
		Billrun_Factory::log()->log("Execute collect api call", Zend_Log::INFO);
		$request = $this->getRequest();

		try {
			$jsonAids = $request->getPost('aids', '[]');
			$aids = json_decode($jsonAids, TRUE);
			if (!is_array($aids) || json_last_error()) {<commit_msg>BRCD-1556 feat(RunCollectStep) - added support to pass AIDs as GET<commit_after><?php

/**
 * @package         Billing
 * @copyright       Copyright (C) 2012-2013 BillRun Technologies Ltd. All rights reserved.
 * @license         GNU Affero General Public License Version 3; see LICENSE.txt
 */
require_once APPLICATION_PATH . '/application/controllers/Action/Api.php';

/**
 * Collect action class
 *
 * @package  Action
 * 
 * @since    2.6
 */
class  Run_collect_stepAction extends ApiAction {
	
	use Billrun_Traits_Api_UserPermissions;

	public function execute() {
		$this->allowed();
		Billrun_Factory::log()->log("Execute collect api call", Zend_Log::INFO);
		$request = $this->getRequest();

		try {
			$jsonAids = $request->getRequest('aids', '[]');
			$aids = json_decode($jsonAids, TRUE);
			if (!is_array($aids) || json_last_error()) {
{'fraction_non_alphanumeric': 0.1391941391941392, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 3.8779761904761907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3131693', 'n_tokens_mistral': 556, 'n_tokens_neox': 507, 'n_words': 126}