<commit_before>'use strict';


let Q = require('q'),
	Task = cb_require('tasks/task'),
	project = cb_require('project/project'),
	svu = cb_require('utils/semver');

class AppTask extends Task {

	constructor(options) {
		super(options);

		this.options = options || {};

		this.projectDir = this.options.target || process.cwd();

		this.__project = null;
	}

	prepare() {
		return Q()
			.then(() => this.fixProjectV1());
			//.then(() => this.fixProjectV2());
	}

	fixProjectV1() {
		var project = this.project.data(),
			components = project.components || {},
			platform = project.platform || {};

		if ((project.bowerComponents === undefined) && (Object.keys(components).length > 0)) {
			return;<commit_msg>Switch from 'totvs-twebchannel' to 'cloudbridge-core-js'<commit_after>'use strict';


let Q = require('q'),
	Task = cb_require('tasks/task'),
	project = cb_require('project/project'),
	svu = cb_require('utils/semver');

class AppTask extends Task {

	constructor(options) {
		super(options);

		this.options = options || {};

		this.projectDir = this.options.target || process.cwd();

		this.__project = null;
	}

	prepare() {
		return Q()
			.then(() => this.fixProjectV1())
			.then(() => this.fixProjectV2());
	}

	fixProjectV1() {
		var project = this.project.data(),
			components = project.components || {},
			platform = project.platform || {};

		if ((project.bowerComponents === undefined) && (Object.keys(components).length > 0)) {
			return;
{'fraction_non_alphanumeric': 0.18442622950819673, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 4.051724137931035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5248258', 'n_tokens_mistral': 516, 'n_tokens_neox': 462, 'n_words': 93}