"""simple docstring"""


import io
import json
import subprocess


__A       			=      [
    ["""en""", """ru"""],
    ["""ru""", """en"""],
    ["""en""", """de"""],
    ["""de""", """en"""],
]

__A       			=      8

def 						UpperCamelCase				(	_lowerCAmelCase   :							Optional[Any]				, _lowerCAmelCase   :							Optional[int]						):
    __a			      =						{}
    for src, tgt in pairs:
        __a			      =						f"""{src}-{tgt}"""
        __a			      =						f"""sacrebleu -t wmt19 -l {pair} --echo src""".split()
        __a			      =						subprocess.run(_lowerCAmelCase				, stdout=subprocess.PIPE						).stdout.decode("""utf-8"""						).splitlines()
        __a			      =						f"""sacrebleu -t wmt19 -l {pair} --echo ref""".split()
        __a			      =						subprocess.run(_lowerCAmelCase				, stdout=subprocess.PIPE						).stdout.decode("""utf-8"""						).splitlines()
        __a			      =						{"""src""": src_lines[:n_objs], """tgt""": tgt_lines[:n_objs]}
    return text


__A       			=      get_all_data(pairs, n_objs)
__A       			=      """./fsmt_val_data.json"""
with io.open(filename, """w""", encoding="""utf-8""") as f:
 __A       			=      json.dump(text, f, indent=2, ensure_ascii=False)

"""simple docstring"""


from doctest import testmod
from math import sqrt

def 						UpperCamelCase				(	_lowerCAmelCase   :							int						):
    __a			      =						[]
    if num < 1:
        return facs
    facs.append(1						)
    if num == 1:
        return facs
    facs.append(_lowerCAmelCase						)
    for i in range(2				, int(sqrt(_lowerCAmelCase						)						) + 1						):
        if num % i == 0:  # If i is a factor of num
            facs.append(_lowerCAmelCase						)
            __a			      =						num // i  # num//i is the other factor of num
            if d != i:  # If d and i are distinct
                facs.append(_lowerCAmelCase						)  # we have found another factor
    facs.sort()
    return facs


if __name__ == "__main__":
 testmod(name="""factors_of_a_number""", verbose=True)
