<commit_before>///<reference path=".d.ts"/>
"use strict";

import * as path from "path";

export class StaticConfigBase implements Config.IStaticConfig {
	public PROJECT_FILE_NAME: string = null;
	public CLIENT_NAME: string = null;
	public ANALYTICS_API_KEY: string = null;
	public ANALYTICS_INSTALLATION_ID_SETTING_NAME: string = null;
	public TRACK_FEATURE_USAGE_SETTING_NAME: string = null;
	public ERROR_REPORT_SETTING_NAME: string = null;
	public APP_RESOURCES_DIR_NAME = "App_Resources";
	public COMMAND_HELP_FILE_NAME = 'command-help.json';
	public RESOURCE_DIR_PATH = __dirname;
	public START_PACKAGE_ACTIVITY_NAME = ".TelerikCallbackActivity";
	public SYS_REQUIREMENTS_LINK: string;
	public HTML_CLI_HELPERS_DIR: string;
	public version: string = null;

	private _adbFilePath: string = null;

	constructor(protected $injector: IInjector) { }

	public get helpTextPath(): string {
		return null;
	}

	public getAdbFilePath(): IFuture<string> {
		return (() => {
			if(!this._adbFilePath) {
				this._adbFilePath = this.getAdbFilePathCore().wait();
			}

			return this._adbFilePath;
		}).future<string>()();
	}

	public get MAN_PAGES_DIR(): string {
		return path.join(__dirname, "../../", "docs", "man_pages");
	}

	public get HTML_PAGES_DIR(): string {
		return path.join(__dirname, "../../", "docs", "html");
	}

	public get HTML_COMMON_HELPERS_DIR(): string {
		return path.join(__dirname, "docs", "helpers");
	}

	public pathToPackageJson: string;

	private getAdbFilePathCore(): IFuture<string> {
		return ((): string => {
			let defaultAdbFilePath = path.join(__dirname, `resources/platform-tools/android/${process.platform}/adb`);
			let $childProcess: IChildProcess = this.$injector.resolve("$childProcess");

			try {
				let proc = $childProcess.spawnFromEvent("adb", ["version"], "exit", undefined, { throwError: false }).wait();

				if(proc.stderr) {<commit_msg>Fix path to our adb<commit_after>///<reference path=".d.ts"/>
"use strict";

import * as path from "path";

export class StaticConfigBase implements Config.IStaticConfig {
	public PROJECT_FILE_NAME: string = null;
	public CLIENT_NAME: string = null;
	public ANALYTICS_API_KEY: string = null;
	public ANALYTICS_INSTALLATION_ID_SETTING_NAME: string = null;
	public TRACK_FEATURE_USAGE_SETTING_NAME: string = null;
	public ERROR_REPORT_SETTING_NAME: string = null;
	public APP_RESOURCES_DIR_NAME = "App_Resources";
	public COMMAND_HELP_FILE_NAME = 'command-help.json';
	public RESOURCE_DIR_PATH = __dirname;
	public START_PACKAGE_ACTIVITY_NAME = ".TelerikCallbackActivity";
	public SYS_REQUIREMENTS_LINK: string;
	public HTML_CLI_HELPERS_DIR: string;
	public version: string = null;

	private _adbFilePath: string = null;

	constructor(protected $injector: IInjector) { }

	public get helpTextPath(): string {
		return null;
	}

	public getAdbFilePath(): IFuture<string> {
		return (() => {
			if(!this._adbFilePath) {
				this._adbFilePath = this.getAdbFilePathCore().wait();
			}

			return this._adbFilePath;
		}).future<string>()();
	}

	public get MAN_PAGES_DIR(): string {
		return path.join(__dirname, "../../", "docs", "man_pages");
	}

	public get HTML_PAGES_DIR(): string {
		return path.join(__dirname, "../../", "docs", "html");
	}

	public get HTML_COMMON_HELPERS_DIR(): string {
		return path.join(__dirname, "docs", "helpers");
	}

	public pathToPackageJson: string;

	private getAdbFilePathCore(): IFuture<string> {
		return ((): string => {
			let defaultAdbFilePath = path.join(__dirname, `resources/platform-tools/android/${process.platform}/adb`).replace("app.asar", "app.asar.unpacked");
			let $childProcess: IChildProcess = this.$injector.resolve("$childProcess");

			try {
				let proc = $childProcess.spawnFromEvent("adb", ["version"], "exit", undefined, { throwError: false }).wait();

				if(proc.stderr) {
{'fraction_non_alphanumeric': 0.13709043250327654, 'fraction_numerical': 0.0, 'mean_word_length': 5.15483870967742, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '1511491', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1257, 'n_words': 273}