<commit_before>AliAnalysisTask *AddTask_rbailhac_lowmass(Bool_t getFromAlien=kFALSE,
					  TString cFileName = "Config_rbailhac_lowmass.C",
					  Char_t* outputFileName="LMEE.root",
					  ULong64_t triggerMask = AliVEvent::kINT7,
					  Bool_t pileupon = kFALSE,
					  Int_t wagon = 0
                                             )
{

  //get the current analysis manager
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTask_rbailhac_test", "No analysis manager found.");
    return 0;
  }

  //Base Directory for GRID / LEGO Train
  TString configBasePath= "$ALICE_PHYSICS/PWGDQ/dielectron/macrosLMEE/";
  if(getFromAlien && (!gSystem->Exec(Form("alien_cp alien:///alice/cern.ch/user/r/rbailhac/PWGDQ/dielectron/macrosLMEE/%s .",cFileName.Data()))) ){
    configBasePath=Form("%s/",gSystem->pwd());
  }

  TString configFilePath(configBasePath+cFileName);

  std::cout << "Configpath:  " << configFilePath << std::endl;<commit_msg>DQ:LMee: Updating Raphaelles AddTask, so it can be used from other user directories<commit_after>AliAnalysisTask *AddTask_rbailhac_lowmass(Bool_t getFromAlien=kFALSE,
					  TString cFileName = "Config_rbailhac_lowmass.C",
					  Char_t* outputFileName="LMEE.root",
					  ULong64_t triggerMask = AliVEvent::kINT7,
					  Bool_t pileupon = kFALSE,
					  Int_t wagon = 0,
					  TString cAlienUserBasePath = "r/rbailhac/PWGDQ/dielectron/macrosLMEE"
                                             )
{

  //get the current analysis manager
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTask_rbailhac_test", "No analysis manager found.");
    return 0;
  }

  //Base Directory for GRID / LEGO Train
  TString configBasePath= "$ALICE_PHYSICS/PWGDQ/dielectron/macrosLMEE/";
  if(getFromAlien && (!gSystem->Exec(Form("alien_cp alien:///alice/cern.ch/user/%s/%s .",cAlienUserBasePath.Data(),cFileName.Data()))) ){
    configBasePath=Form("%s/",gSystem->pwd());
  }

  TString configFilePath(configBasePath+cFileName);

  std::cout << "Configpath:  " << configFilePath << std::endl;
{'fraction_non_alphanumeric': 0.12890995260663507, 'fraction_numerical': 0.004739336492890996, 'mean_word_length': 3.6192560175054704, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7316517', 'n_tokens_mistral': 790, 'n_tokens_neox': 708, 'n_words': 122}