parameters: (file)
return_statement: return dataset_name[0], _ps
docstring: Returns unique relval ID (dataset name) for a given file.
docstring_summary: Returns unique relval ID (dataset name) for a given file.
docstring_tokens: Returns unique relval ID ( dataset name ) for a given file .
function: def get_relval_id(file):
      """Returns unique relval ID (dataset name) for a given file."""
      dataset_name = re.findall('R\d{9}__([\w\D]*)__CMSSW_', file)
      __process_string = re.search('CMSSW_\d*_\d*_\d*(?:_[\w\d]*)?-([\w\d]*)_V\d*\w?(_[\w\d]*)?-v', file)
      _ps = ""
      if __process_string:
          if "PU" in __process_string.group(1) and not "FastSim" in file:
              _ps = re.search('^[^_]*_', __process_string.group(1)).group()
          elif "PU" in __process_string.group(1) and "FastSim" in file:
              return dataset_name[0]+"_", _ps ##some testing is needed
      return dataset_name[0], _ps
function_tokens: def get_relval_id ( file ) : dataset_name = re . findall ( 'R\d{9}__([\w\D]*)__CMSSW_' , file ) __process_string = re . search ( 'CMSSW_\d*_\d*_\d*(?:_[\w\d]*)?-([\w\d]*)_V\d*\w?(_[\w\d]*)?-v' , file ) _ps = "" if __process_string : if "PU" in __process_string . group ( 1 ) and not "FastSim" in file : _ps = re . search ( '^[^_]*_' , __process_string . group ( 1 ) ) . group ( ) elif "PU" in __process_string . group ( 1 ) and "FastSim" in file : return dataset_name [ 0 ] + "_" , _ps ##some testing is needed return dataset_name [ 0 ] , _ps