<commit_before>#!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
# - <NAME>, <EMAIL>, 2017
# - <NAME>, <EMAIL>, 2018

import os
import logging
import errno

from pilot.common.exception import StageInFailure, StageOutFailure
from pilot.util.container import execute
from pilot.copytool.common import get_copysetup

logger = logging.getLogger(__name__)

require_replicas = True  ## indicate if given copytool requires input replicas to be resolved


def is_valid_for_copy_in(files):
    return True  ## FIX ME LATER
    for f in files:
        if not all(key in f for key in ('name', 'source', 'destination')):
            return False<commit_msg>Added PilotException to lsm<commit_after>#!/usr/bin/env python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Authors:
# - <NAME>, <EMAIL>, 2017
# - <NAME>, <EMAIL>, 2018

import os
import logging
import errno

from pilot.common.exception import StageInFailure, StageOutFailure, PilotException
from pilot.util.container import execute
from pilot.copytool.common import get_copysetup

logger = logging.getLogger(__name__)

require_replicas = True  ## indicate if given copytool requires input replicas to be resolved


def is_valid_for_copy_in(files):
    return True  ## FIX ME LATER
    for f in files:
        if not all(key in f for key in ('name', 'source', 'destination')):
            return False
{'fraction_non_alphanumeric': 0.09421965317919075, 'fraction_numerical': 0.013872832369942197, 'mean_word_length': 4.07624633431085, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '730840', 'n_tokens_mistral': 527, 'n_tokens_neox': 498, 'n_words': 197}