#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('k')  # the loop variable. this was added after an
add_changeable('c')  # error ocurred. see ERROR below
add_changeable('g')
add_changeable('g1')  # random string/number
add_changeable('l')  # list of random string letters
add_changeable('n')  # list of random numbers
add_changeable('20')  # the list length

# answers list name
add_changeable(r'\verb+a+')

# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
コード例 #2
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('123456')  # seed
add_changeable('a')  # the list
add_changeable('n')  # the loop variable. this was added after an
# error ocurred. see ERROR below
add_changeable('1000')  # the list length
add_changeable('100')  # the list length
add_changeable('200')  # the list length

# answers list name
add_changeable(r'\verb+a+')

# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
add_changeable(r'\verb+4+')
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135')    # seed
add_changeable('a')      # the list with vectors
add_changeable('n')      # the loop variable. this was added after an

add_changeable('20')      # the list length



# answers list name
add_changeable(r'\verb+a+')
# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
add_changeable(r'\verb+4+')
add_changeable(r'\verb+5+')
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('c')  # the list
add_changeable('d')  # range variable
add_changeable('o')  # the loop variable. this was added after an
# error ocurred. see ERROR below
add_changeable('11')  # the list min length
add_changeable('55')  # the list max length
add_changeable('333')  # the randint value

# answers list name
add_changeable(r'\verb+a+')

# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('b')  # the list a with reversed values
add_changeable('c')  # the list b with reversed values
add_changeable('r')  # reverser class
add_changeable('i')  # the loop variable. this was added after an
# error ocurred. see ERROR below
add_changeable('13')  # the list length

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+b+')
add_changeable(r'\verb+c+')

# answers (indexes)
add_changeable(r'\verb+1+')
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list w/ numbers dimension 9
add_changeable('b')  # the 2nd list w/numbers
add_changeable('f')  # the list with result of comparation of a nd b
add_changeable('c')  # the loop variable. this was added after an
add_changeable('d')  # error ocurred. see ERROR below
add_changeable('e')
add_changeable('30')  # the list length

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+f+')
# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135')    # seed
add_changeable('a')      # the list with numbers
add_changeable('b')      # the list with strings
add_changeable('d')      # 2nd list with numbers
add_changeable('l')      # string to be generated
add_changeable('k')      # loop variable
add_changeable('i')
add_changeable('3')      # multiplier
add_changeable('10')     # the list length
add_changeable('20')     # second for range
add_changeable('50')     # max int number


# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+b+')
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('b')  # the list
add_changeable('c')  # the list
add_changeable('d')  # the list
add_changeable('e')  # the list
add_changeable('f')  # the list
add_changeable('n')  # the loop variable
add_changeable('numpy_func')

add_changeable('13')  # the list length
add_changeable('3')  # the min value
add_changeable('23')  # the max value
add_changeable('33')  # the 2nd list length

# answers list name
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135')    # seed
add_changeable('a')      # the list w/ result of func i
add_changeable('b')      # the list w/ numbers random
add_changeable('f')      # the list w/ numbers random
add_changeable('c')      # the loop variable. this was added after an
add_changeable('d')      # error ocurred. see ERROR below
add_changeable('e')
add_changeable('300')    # the list length
add_changeable('125')    # the randint max value 


# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+b+')
# answers (indexes)
add_changeable(r'\verb+1+')
コード例 #10
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('e')  # global variable
add_changeable('M')  # class
add_changeable('m')  # class variable
add_changeable('x')  # the loop variable in list comprehensions
add_changeable('n')  # the loop variable. this was added after an
# error ocurred. see ERROR below

add_changeable('13')  # the list length
add_changeable('33')  # min int num
add_changeable('66')  # max int num
add_changeable('35')  # global var to change
add_changeable('36')  # global var to change

# answers list name
コード例 #11
0
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135')    # seed
add_changeable('a')      # the list
add_changeable('n')      # the loop variable
add_changeable('x')      # the loop variable
add_changeable('d')      # the dictionary variable
add_changeable('dic')    # the dictionary class variable
add_changeable('str_a')  # the list of strings
add_changeable('int_a')  # the list of ints

add_changeable('13')     # the list length
add_changeable('3')      # the min int value
add_changeable('33')     # the max int value

# answers list name
add_changeable(r'\verb+a+')
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135') # seed
add_changeable('a')      # the list
add_changeable('b')      # result of longest_consecutive_sequence()
add_changeable('c')      # result consecutive_sequences()
add_changeable('d')      # result de filtered_consecutive_sequences()
add_changeable('e')      # result de distinc_numbers_in_sequence()
add_changeable('i')      # the loop variable. this was added after an
                         # error ocurred. see ERROR below
add_changeable('150')    # the list length
add_changeable('70')     # min randint value
add_changeable('450')    # max randint value

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+b+')
add_changeable(r'\verb+c+')
コード例 #13
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list with vectors
add_changeable('i')  # the loop variable. this was added after an
add_changeable('k')  # error ocurred. see ERROR below
add_changeable('s')  # result from random_string_generator()
add_changeable('m')  # optimized message
add_changeable('l')  # chars of msg
add_changeable('13')  # the list length

# answers list name
add_changeable(r'\verb+a+')
# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
add_changeable(r'\verb+4+')
コード例 #14
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('b')  # the filtered list
add_changeable('c')  # the list of merge result of filtered list
add_changeable('d')  # the list of merge result
add_changeable('e')  # the list of c intervals
add_changeable('i')  # the loop variable. this was added after an
# error ocurred. see ERROR below
add_changeable('13')  # the list length
add_changeable('3')  # the list length
add_changeable('9')  # the list length
add_changeable('18')  # the list length

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+c+')
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # function atribute
add_changeable('c')
add_changeable('counter')  # global variable
add_changeable('d')  # global list
add_changeable('3')
add_changeable('5')  # range in print_indexes function
add_changeable('7')  # counter number
add_changeable('15')  # range in for_cicle function

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+c+')
add_changeable(r'\verb+d+')

# answers (indexes)
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('n')  # the loop variable. this was added after an
# error ocurred. see ERROR below
add_changeable('13')  # the list length
add_changeable('133')  # matrix min value
add_changeable('255')  # matrix max value

# answers list name
add_changeable(r'\verb+a+')

# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')
add_changeable(r'\verb+4+')
コード例 #17
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('i')  # the loop variable
add_changeable('n')  # the loop variable
add_changeable('p')  # class variable
add_changeable('P')  # class name

add_changeable('13')  # the list length
add_changeable('3')  # min num value
add_changeable('33')  # max num value

# answers class name
add_changeable(r'\verb+classP+')
add_changeable(r'\verb+classp+')

# answers list name
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('i')  # the loop variable. this was added after an
add_changeable('k')  # error ocurred. see ERROR below
add_changeable('l')  # result of random_string_generator()
add_changeable('m')  # optimized message

add_changeable('10')  # the list length
add_changeable('15')  # max length of a string

# answers list name
add_changeable(r'\verb+a+')

# answer index
add_changeable(r'\verb+b+')
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135')    # seed
add_changeable('la')     # the image list
add_changeable('lb')     # the grayScale list
add_changeable('lc')     # the list after filter
add_changeable('i')      # loop variable
                         # error ocurred. see ERROR below
add_changeable('10')     # the image list length


# answers list name
add_changeable(r'\verb+la+')
add_changeable(r'\verb+lb+')
add_changeable(r'\verb+lc+')

# treshold limiar
add_changeable(r'\verb+limTreshold+')
コード例 #20
0
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify





# in the question (program)
add_changeable('135') # seed
add_changeable('a')      # the list
add_changeable('k')      # index where to rotate list
add_changeable('n')      # the loop variable. this was added after an
                         # error ocurred. see ERROR below
add_changeable('13')     # the list length
add_changeable('33')      # min num value
add_changeable('66')      # max num value

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+k+')
add_changeable(r'\verb+k_val+')
add_changeable(r'\verb+dist+')

# answers (indexes)
コード例 #21
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('b')  # the 2nd list
add_changeable('n')  # the loop variable
add_changeable('i')  # the loop variable
add_changeable('__var')  # class's global variable
add_changeable('P')  # class name
add_changeable('p')  # class variable
add_changeable('13')  # the list length
add_changeable('33')  # the list length
add_changeable('3')  # the list length

# answers list name
add_changeable(r'\verb+a+')
add_changeable(r'\verb+b+')
コード例 #22
0
#from text_transformer.tt_text_transformer_interface import change_all_occurrences
from text_transformer.tt_text_transformer_interface import change_one_occurrence

# # this import removes an import error. I don't know why (jbs
# # 2018/12/12). see pt_import_tests.py and try to correct the problem.
# import py_transformer.ast_processor

# from python_transformer.pt_python_transformer_interface import change_identifier_all_occurrences
# from python_transformer.pt_python_transformer_interface import change_all_occurrences_in_strings
from python_transformer.pt_python_transformer_interface import change_token_all_occurrences
from python_transformer.pt_python_transformer_interface import change_all_occurrences

#from sympy import latex, sympify

# in the question (program)
add_changeable('135')  # seed
add_changeable('a')  # the list
add_changeable('n')  # the loop variable.
add_changeable('c')  # the while loop variable.

add_changeable('13')  # the list length
add_changeable('3')  # num min value
add_changeable('33')  # num max value

# answers list name
add_changeable(r'\verb+a+')

# answers (indexes)
add_changeable(r'\verb+1+')
add_changeable(r'\verb+2+')
add_changeable(r'\verb+3+')