<commit_before>import * as path from 'path';

function relative(pathname: string) {
  try {
    return path.relative(process.cwd(), pathname) || path.basename(pathname) || '.';
  } catch (error) {
    return pathname;
  }
}

export class Translation {

  static PRESS_ENTER = ' or press enter';
  static QUIT = 'back';
  static ENTER_SOMETHING = `Please enter a `;
  static CANCEL: string = 'Cancel';
  static NOT_VALID: string = `Your Input is not valid`;
  static EXIT_TO_HOME: string = 'Back to Home';
  static NPM_INSTALL = `Performing npm install which may take a while...`;

  static GENERAL_HELP_TABLEHEADERS = ['Group', 'Command', 'Parameters', 'Description'];

  /**
   * Server Command
   */
  static SERVER_ADD: string = 'Add a new Server to the config';
  static SERVER_LIST: string = 'List all available Server from config';
  static SERVER_LIST_TABLEHEADERS = ['Server', 'URL', 'Default', 'Username'];
  static SERVER_RM: string = 'Remove a Server from the config';
  static SERVER_UPDATE: string = 'Update a exists server from the Server list';
  static SERVER_CLIENTCERT: string = 'Specify a client certificate for contacting a Server';
  static SERVER_CLIENTCERT_NOT_FOUND = 'File not found.';

  /*
   * Environment
   */
  static ENV_LIST_TABLEHEADERS = ['Environment Name', 'Description'];
  static ENV_UPDATE = 'Add a new key value pair to your Environment.';
  static ENV_COPY = 'copy a exists Environment';
  static ENV_IS_CREATED(name: string): string {
    return `Environment ${name} is generated.`;
  }
  static ENV_UPDATE_COMPLETE = `Update complete`;
  static ENV_ADD_FIRSTLY = `Please add an Environment firstly!`;

  /*
   * New Command
   */
  static NEW_CREATE = `create a new Project in Folder`;

  /*
   * Deploy Command
   */
  static DEPLOY_PUBLISH = `deploy your Baas to the server`;
  static DEPLOY_NO_ORGA = `Organization has no defaultRoles. This will cause problems creating applications. Operation not permitted.`;
  static DEPLOY_SUCCESS = 'Deployment completed.';
  static DEPLOY_FAILED = 'Deployment failed!';
  static DEPLOY_APPURL = 'Your application is available at';
  static DEPLOY_ENV_NOT_EXISTS(env: string): string {
    return `${env} not exists in Environments!`;
  }
  /*
   * Debugger Command
   */
  static DEBUGGER_OPEN_DESCRIPTION = 'open the node inspector with a specific Server.';
  static DEBUGGER_OPEN_WHY = `You are not in a relution Project Folder`;
  /*
   * Connection Command
   */
  static CONNECTION_ADD_LABEL = `new connection`;
  static CONNECTION_ADD_DESCRIPTION = `Create a new connection.`;
  static CONNECTION_API_LIST_LABEL = `assign calls`;
  static CONNECTION_API_LIST_DESCRIPTION = `assign some calls to the choosen connection.`;
  static CONNECTION_ADD_CONNECTION_BEFORE = `Please add first a connection for this feature.`;
  static CONNECTION_ADD_SERVER_BEFORE = `Please add first a Server to create a Connection.`;
  static CONNECTION_LIST_TABLEHEADERS = ['Connection Name', 'Description'];
  static CONNECTION_RENDER_METAMODEL_LABEL = 'add Metamodelcontainer';
  /**
   * Logger Command
   */<commit_msg>Rename 'add Metamodelcontainer' to 'generate code' in Translation.ts file<commit_after>import * as path from 'path';

function relative(pathname: string) {
  try {
    return path.relative(process.cwd(), pathname) || path.basename(pathname) || '.';
  } catch (error) {
    return pathname;
  }
}

export class Translation {

  static PRESS_ENTER = ' or press enter';
  static QUIT = 'back';
  static ENTER_SOMETHING = `Please enter a `;
  static CANCEL: string = 'Cancel';
  static NOT_VALID: string = `Your Input is not valid`;
  static EXIT_TO_HOME: string = 'Back to Home';
  static NPM_INSTALL = `Performing npm install which may take a while...`;

  static GENERAL_HELP_TABLEHEADERS = ['Group', 'Command', 'Parameters', 'Description'];

  /**
   * Server Command
   */
  static SERVER_ADD: string = 'Add a new Server to the config';
  static SERVER_LIST: string = 'List all available Server from config';
  static SERVER_LIST_TABLEHEADERS = ['Server', 'URL', 'Default', 'Username'];
  static SERVER_RM: string = 'Remove a Server from the config';
  static SERVER_UPDATE: string = 'Update a exists server from the Server list';
  static SERVER_CLIENTCERT: string = 'Specify a client certificate for contacting a Server';
  static SERVER_CLIENTCERT_NOT_FOUND = 'File not found.';

  /*
   * Environment
   */
  static ENV_LIST_TABLEHEADERS = ['Environment Name', 'Description'];
  static ENV_UPDATE = 'Add a new key value pair to your Environment.';
  static ENV_COPY = 'copy a exists Environment';
  static ENV_IS_CREATED(name: string): string {
    return `Environment ${name} is generated.`;
  }
  static ENV_UPDATE_COMPLETE = `Update complete`;
  static ENV_ADD_FIRSTLY = `Please add an Environment firstly!`;

  /*
   * New Command
   */
  static NEW_CREATE = `create a new Project in Folder`;

  /*
   * Deploy Command
   */
  static DEPLOY_PUBLISH = `deploy your Baas to the server`;
  static DEPLOY_NO_ORGA = `Organization has no defaultRoles. This will cause problems creating applications. Operation not permitted.`;
  static DEPLOY_SUCCESS = 'Deployment completed.';
  static DEPLOY_FAILED = 'Deployment failed!';
  static DEPLOY_APPURL = 'Your application is available at';
  static DEPLOY_ENV_NOT_EXISTS(env: string): string {
    return `${env} not exists in Environments!`;
  }
  /*
   * Debugger Command
   */
  static DEBUGGER_OPEN_DESCRIPTION = 'open the node inspector with a specific Server.';
  static DEBUGGER_OPEN_WHY = `You are not in a relution Project Folder`;
  /*
   * Connection Command
   */
  static CONNECTION_ADD_LABEL = `new connection`;
  static CONNECTION_ADD_DESCRIPTION = `Create a new connection.`;
  static CONNECTION_API_LIST_LABEL = `assign calls`;
  static CONNECTION_API_LIST_DESCRIPTION = `assign some calls to the choosen connection.`;
  static CONNECTION_ADD_CONNECTION_BEFORE = `Please add first a connection for this feature.`;
  static CONNECTION_ADD_SERVER_BEFORE = `Please add first a Server to create a Connection.`;
  static CONNECTION_LIST_TABLEHEADERS = ['Connection Name', 'Description'];
  static CONNECTION_RENDER_METAMODEL_LABEL = 'generate code';
  /**
   * Logger Command
   */
{'fraction_non_alphanumeric': 0.09738488689234719, 'fraction_numerical': 0.0, 'mean_word_length': 4.292020373514431, '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': '6170926', 'n_tokens_mistral': 1951, 'n_tokens_neox': 1899, 'n_words': 632}