<commit_before>const fs = require('fs')
const path = require('path')
const inquirer = require('inquirer')

const { FsUtils, LogUtils, GitUtils } = require('../../shared/utils')
const { FolderNotEmpty, FileNotDirectory } = require('../../shared/errors')

const { InitStopedByUser } = require('./init-stop-by-user.error')

const URL_REGEX = /^((?:(https?):\/\/)?((?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9]))|(?:(?:(?:\w+\.){1,2}[\w]{2,3})))(?::(\d+))?((?:\/[\w]+)*)(?:\/|(\/[\w]+\.[\w]{3,4})|(\?(?:([\w]+=[\w]+)&)*([\w]+=[\w]+))?|\?(?:(wsdl|wadl))))$/
const PATH_REGEX = /^(?:(?:~|\.{1,2})?\/)+(?:[a-zA-Z\.\-\_]+\/?)*$/

module.exports = exports = configService => options => {
  const userForceOverwrite = options.force || false
  const questions = [
    {
      name: 'overwrite_file',
      message: 'A configuration file already exist. Do you want to continue ?',
      type: 'confirm',
      when: () => configService.configFileExist() && !userForceOverwrite
    },
    {
      name: 'repo_url',
      message: 'Repository url:',<commit_msg>Remove useless escape in regex<commit_after>const fs = require('fs')
const path = require('path')
const inquirer = require('inquirer')

const { FsUtils, LogUtils, GitUtils } = require('../../shared/utils')
const { FolderNotEmpty, FileNotDirectory } = require('../../shared/errors')

const { InitStopedByUser } = require('./init-stop-by-user.error')

const URL_REGEX = /^((?:(https?):\/\/)?((?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9]))|(?:(?:(?:\w+\.){1,2}[\w]{2,3})))(?::(\d+))?((?:\/[\w]+)*)(?:\/|(\/[\w]+\.[\w]{3,4})|(\?(?:([\w]+=[\w]+)&)*([\w]+=[\w]+))?|\?(?:(wsdl|wadl))))$/
const PATH_REGEX = /^(?:(?:~|\.{1,2})?\/)+(?:[a-zA-Z.\-_]+\/?)*$/

module.exports = exports = configService => options => {
  const userForceOverwrite = options.force || false
  const questions = [
    {
      name: 'overwrite_file',
      message: 'A configuration file already exist. Do you want to continue ?',
      type: 'confirm',
      when: () => configService.configFileExist() && !userForceOverwrite
    },
    {
      name: 'repo_url',
      message: 'Repository url:',
{'fraction_non_alphanumeric': 0.35589785164167004, 'fraction_numerical': 0.0713417105796514, 'mean_word_length': 3.9065606361829026, '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': '2470907', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1117, 'n_words': 123}