<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

import os
import fnmatch
from collections import defaultdict
from glob import glob

# from pilot.common.exception import PilotException
from pilot.util.constants import UTILITY_WITH_PAYLOAD, UTILITY_AFTER_PAYLOAD
from pilot.util.container import execute
from pilot.user.atlas.setup import should_pilot_prepare_asetup, get_asetup, \
    get_asetup_options, is_standard_atlas_job
from pilot.util.filehandling import remove
from pilot.user.atlas.utilities import get_memory_monitor_setup, get_network_monitor_setup

import logging
logger = logging.getLogger(__name__)


def get_payload_command(job):
    """
    Return the full command for execuring the payload, including the sourcing of all setup files and setting of
    environment variables.

    :param job: job object
    :return: command (string)
    """

    # Should the pilot do the asetup or do the jobPars already contain the information?
    prepareasetup = should_pilot_prepare_asetup(job.noexecstrcnv, job.jobparams)

    # Is it a user job or not?
    userjob = job.is_analysis()

    # Get the platform value
    platform = job.infosys.queuedata.platform
<commit_msg>Flake8 corrections<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

import os
import fnmatch
from collections import defaultdict
from glob import glob

# from pilot.common.exception import PilotException
from pilot.util.constants import UTILITY_BEFORE_PAYLOAD, UTILITY_WITH_PAYLOAD, UTILITY_AFTER_PAYLOAD
from pilot.util.container import execute
from pilot.user.atlas.setup import should_pilot_prepare_asetup, get_asetup, \
    get_asetup_options, is_standard_atlas_job
from pilot.util.filehandling import remove
from pilot.user.atlas.utilities import get_memory_monitor_setup, get_network_monitor_setup

import logging
logger = logging.getLogger(__name__)


def get_payload_command(job):
    """
    Return the full command for execuring the payload, including the sourcing of all setup files and setting of
    environment variables.

    :param job: job object
    :return: command (string)
    """

    # Should the pilot do the asetup or do the jobPars already contain the information?
    prepareasetup = should_pilot_prepare_asetup(job.noexecstrcnv, job.jobparams)

    # Is it a user job or not?
    userjob = job.is_analysis()

    # Get the platform value
    platform = job.infosys.queuedata.platform

{'fraction_non_alphanumeric': 0.07031520609629373, 'fraction_numerical': 0.005888465535157603, 'mean_word_length': 4.521988527724665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3798302', 'n_tokens_mistral': 871, 'n_tokens_neox': 837, 'n_words': 288}