<commit_before>#!/usr/bin/env python3
"""
This script can be used for running performance tests on an exported Eclipse.

Put the script in the directory that contains the "eclipse" folder of
the exported application.

@author: <NAME>
"""
import subprocess
import shutil
import os
import signal
import psutil
from subprocess import TimeoutExpired
from subprocess import CalledProcessError

"""
TIMEOUT is in seconds
"""
CONST_TIMEOUT=1000

"""
RUNS determines how many times the same test is run
"""
CONST_RUNS=5

"""
Valid values for TRANSFORMATOR_TYPES:
 	"BATCH_SIMPLE",
 	"BATCH_OPTIMIZED",
 	"BATCH_VIATRA_QUERY_RETE",
 	"BATCH_VIATRA_QUERY_LOCAL_SEARCH",
 	"BATCH_VIATRA_TRANSFORMATION",
 	"INCR_VIATRA_QUERY_RESULT_TRACEABILITY",
 	"INCR_VIATRA_EXPLICIT_TRACEABILITY",
 	"INCR_VIATRA_AGGREGATED",
 	"INCR_VIATRA_TRANSFORMATION"
"""
TRANSFORMATOR_TYPES=[
    "BATCH_SIMPLE",
 	"BATCH_OPTIMIZED",
 	"BATCH_VIATRA_QUERY_RETE",
	"BATCH_VIATRA_QUERY_LOCAL_SEARCH"
 	"BATCH_VIATRA_TRANSFORMATION",
 	"INCR_VIATRA_QUERY_RESULT_TRACEABILITY",
 	"INCR_VIATRA_EXPLICIT_TRACEABILITY",
 	"INCR_VIATRA_AGGREGATED",
 	"INCR_VIATRA_TRANSFORMATION",
]


"""
SCALES are integers
"""
SCALES=[1,2,4,8,16,32,64]
#SCALES=[1,2]


"""
Valid values for GENERATOR_TYPES:
    "TEMPLATE",
    "JDT"
"""
GENERATOR_TYPES=[
    "TEMPLATE",
    "JDT"
]


def flatten(lst):<commit_msg>fix transformation list in benchmark config<commit_after>#!/usr/bin/env python3
"""
This script can be used for running performance tests on an exported Eclipse.

Put the script in the directory that contains the "eclipse" folder of
the exported application.

@author: <NAME>
"""
import subprocess
import shutil
import os
import signal
import psutil
from subprocess import TimeoutExpired
from subprocess import CalledProcessError

"""
TIMEOUT is in seconds
"""
CONST_TIMEOUT=1000

"""
RUNS determines how many times the same test is run
"""
CONST_RUNS=5

"""
Valid values for TRANSFORMATOR_TYPES:
 	"BATCH_SIMPLE",
 	"BATCH_OPTIMIZED",
 	"BATCH_VIATRA_QUERY_RETE",
 	"BATCH_VIATRA_QUERY_LOCAL_SEARCH",
 	"BATCH_VIATRA_TRANSFORMATION",
 	"INCR_VIATRA_QUERY_RESULT_TRACEABILITY",
 	"INCR_VIATRA_EXPLICIT_TRACEABILITY",
 	"INCR_VIATRA_AGGREGATED",
 	"INCR_VIATRA_TRANSFORMATION"
"""
TRANSFORMATOR_TYPES=[
    "BATCH_SIMPLE",
 	"BATCH_OPTIMIZED",
 	"BATCH_VIATRA_QUERY_RETE",
	"BATCH_VIATRA_QUERY_LOCAL_SEARCH",
 	"BATCH_VIATRA_TRANSFORMATION",
 	"INCR_VIATRA_QUERY_RESULT_TRACEABILITY",
 	"INCR_VIATRA_EXPLICIT_TRACEABILITY",
 	"INCR_VIATRA_AGGREGATED",
 	"INCR_VIATRA_TRANSFORMATION",
]


"""
SCALES are integers
"""
SCALES=[1,2,4,8,16,32,64]
#SCALES=[1,2]


"""
Valid values for GENERATOR_TYPES:
    "TEMPLATE",
    "JDT"
"""
GENERATOR_TYPES=[
    "TEMPLATE",
    "JDT"
]


def flatten(lst):
{'fraction_non_alphanumeric': 0.10294652600945799, 'fraction_numerical': 0.0130956711531466, 'mean_word_length': 6.2368421052631575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1737291', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1081, 'n_words': 214}