<commit_before>import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics';
import { getAngularWorkspace, getProject } from '../../utils/angular-utils';



export function runChecks(): Rule {
  return (host: Tree, context: SchematicContext) => {

    const projectName = getProject(host);
    const workspace = getAngularWorkspace(host);

    if(!projectName){
      throw new SchematicsException(`Checks failed. Could not get project.
        No default project given in the workspace - ${JSON.stringify(workspace, null, 2)}`);
    }


    return host;
  };
}
<commit_msg>Added more info<commit_after>import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics';
import { getAngularWorkspace, getProject } from '../../utils/angular-utils';



export function runChecks(): Rule {
  return (host: Tree, context: SchematicContext) => {

    const projectName = getProject(host);
    const workspace = getAngularWorkspace(host);

    if(!projectName){
      throw new SchematicsException(`Checks failed. Could not get project.
        No default project given in the workspace - ${JSON.stringify(workspace, null, 2)}`);
    }

    context.logger.info(`✅️ Project found, working with '${projectName}'`);

    return host;
  };
}

{'fraction_non_alphanumeric': 0.12442040185471406, 'fraction_numerical': 0.0015455950540958269, 'mean_word_length': 4.078431372549019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4327817', 'n_tokens_mistral': 366, 'n_tokens_neox': 358, 'n_words': 104}