<commit_before>package jobs.generation;

class Utilities {

  def static getFolderName(def project) {
    return project.replace('/', '_')
  }
  
  def static getFullJobName(def project, def jobName, def isPR, def folder = '') {
    def projectJobName = project.replace('/', '_')
    def jobSuffix = ''
    if (isPR) { 
      jobSuffix = '_prtest'
    }
    
    def folderPrefix = ''
    if (folder != '') {
        folderPrefix = "${folder}/"
    } else {
        folderPrefix = getProjectName(project) + "/"
    }

    if (jobName == '') {
      return "${folderPrefix}${projectJobName}${jobSuffix}"
    }
    else {
      return "${folderPrefix}${projectJobName}_${jobName}${jobSuffix}"
    }<commit_msg>Use relative job generation instead of explicit folder names by default<commit_after>package jobs.generation;

class Utilities {

  def static getFolderName(def project) {
    return project.replace('/', '_')
  }
  
  def static getFullJobName(def project, def jobName, def isPR, def folder = '') {
    def jobSuffix = ''
    if (isPR) { 
      jobSuffix = '_prtest'
    }
    
    def folderPrefix = ''
    if (folder != '') {
        folderPrefix = "${folder}/"
    }

    if (jobName == '') {
      return "${folderPrefix}innerloop${jobSuffix}"
    }
    else {
      return "${folderPrefix}${jobName}${jobSuffix}"
    }
{'fraction_non_alphanumeric': 0.14650638617580766, 'fraction_numerical': 0.0, 'mean_word_length': 2.773371104815864, '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': '5979646', 'n_tokens_mistral': 416, 'n_tokens_neox': 406, 'n_words': 94}