<commit_before>import path from 'path';
import _ from 'lodash';
import fs from 'fs-extra';
import uuid from 'uuid';
import { spawn } from 'child_process';


export async function getDepthForRepo( cwd ) {
	// increase depth after clone so we can retrieve depth setting from flavio.json
	let flavioJson = {};
	if ( fs.existsSync( path.join( cwd, 'flavio.json' ) ) ) {
		flavioJson = JSON.parse( fs.readFileSync( path.join( cwd, 'flavio.json' ), 'utf8' ) );
	}
	if ( flavioJson.options && typeof flavioJson.options.depth === 'number' ) {
		return flavioJson.options.depth;
	}
	return 0;
}

function printError( err, args ) {
	let argsString = args.join( " " );
	console.error( "'git " + argsString + "'" );<commit_msg>Disable --depth option after issues<commit_after>import path from 'path';
import _ from 'lodash';
import fs from 'fs-extra';
import uuid from 'uuid';
import { spawn } from 'child_process';


export async function getDepthForRepo( cwd ) {
	// increase depth after clone so we can retrieve depth setting from flavio.json
	// NOTE: Disabled for now after issues tracking branches
	// let flavioJson = {};
	// if ( fs.existsSync( path.join( cwd, 'flavio.json' ) ) ) {
		// flavioJson = JSON.parse( fs.readFileSync( path.join( cwd, 'flavio.json' ), 'utf8' ) );
	// }
	// if ( flavioJson.options && typeof flavioJson.options.depth === 'number' ) {
		// return flavioJson.options.depth;
	// }
	return 0;
}

function printError( err, args ) {
	let argsString = args.join( " " );
	console.error( "'git " + argsString + "'" );
{'fraction_non_alphanumeric': 0.1495754408883083, 'fraction_numerical': 0.002612671456564337, 'mean_word_length': 3.848101265822785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3977853', 'n_tokens_mistral': 519, 'n_tokens_neox': 512, 'n_words': 150}