<commit_before><?php

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @copyright <NAME> 2013, 2014
 * @copyright <NAME> 2016 - 2021
 */

namespace OCA\Music\Controller;

use \OCA\Music\Tests\Utility\ControllerTestUtility;
use \OCP\AppFramework\Http\JSONResponse;

use OCA\Music\DB\Artist;
use OCA\Music\DB\Album;
use OCA\Music\DB\Track;

class ShivaApiControllerTest extends ControllerTestUtility {
	private $trackBusinessLayer;
	private $artistBusinessLayer;
	private $albumBusinessLayer;
	private $collectionHelper;
	private $request;
	private $controller;
	private $userId = 'john';
	private $appname = 'music';
	private $urlGenerator;
	private $l10n;
	private $scanner;
	private $coverHelper;
	private $detailsHelper;
	private $lastfmService;
	private $maintenance;
	private $userMusicFolder;
	private $userFolder;
	private $logger;

	protected function setUp() : void {
		$this->request = $this->getMockBuilder('\OCP\IRequest')
			->disableOriginalConstructor()
			->getMock();
		$this->urlGenerator = $this->getMockBuilder('\OCP\IURLGenerator')
			->disableOriginalConstructor()
			->getMock();
		$this->urlGenerator<commit_msg>Clean up unused member variables from a unit test<commit_after><?php

/**
 * ownCloud - Music app
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @copyright <NAME> 2013, 2014
 * @copyright <NAME> 2016 - 2021
 */

namespace OCA\Music\Controller;

use \OCA\Music\Tests\Utility\ControllerTestUtility;
use \OCP\AppFramework\Http\JSONResponse;

use OCA\Music\DB\Artist;
use OCA\Music\DB\Album;
use OCA\Music\DB\Track;

class ShivaApiControllerTest extends ControllerTestUtility {
	private $trackBusinessLayer;
	private $artistBusinessLayer;
	private $albumBusinessLayer;
	private $request;
	private $controller;
	private $userId = 'john';
	private $appname = 'music';
	private $urlGenerator;
	private $l10n;
	private $logger;

	protected function setUp() : void {
		$this->request = $this->getMockBuilder('\OCP\IRequest')
			->disableOriginalConstructor()
			->getMock();
		$this->urlGenerator = $this->getMockBuilder('\OCP\IURLGenerator')
			->disableOriginalConstructor()
			->getMock();
		$this->urlGenerator
{'fraction_non_alphanumeric': 0.12881915772089184, 'fraction_numerical': 0.01568951279933939, 'mean_word_length': 4.86682808716707, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 37, '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': '4259350', 'n_tokens_mistral': 827, 'n_tokens_neox': 768, 'n_words': 197}