translation = {
    'i1':'chleb',
    'i2':'piwo',
    'i3':'paluszki',
    'i4':'śledź',
    'i5':'chipsy',
    'i6':'masło',
    'M':'Mango',
    'O':'Onion',
    'N':'Nintendo',
    'K':'Key-chain',
    'E':'Eggs',
    'Y':'Yo-yo',
    'D':'Doll',
    'A':'Apple',
    'U':'Umbrella',
    'C':'Corn',
    'I':'Ice-cream',
    'B':'Beans',
    'T':'Tomatoes',
    'S':'Squash',
}

set1 = [  
    ['i2','i3','i4'],
    ['i1','i2','i5'],
    ['i2','i3','i5'],
    ['i1','i2','i4'],
    ['i2','i3','i5','i6'],
    ['i2','i4','i6'],
    ['i1','i4','i5'],
    ['i2','i3','i5'],
    ['i1','i2','i6'],
    ['i2','i4','i6'],
    ['i3','i5','i6']
]

set2 = [  
    ['i1','i2','i5'],
    ['i2','i4'],
    ['i2','i3'],
    ['i1','i2','i4'],
    ['i1','i3'],
    ['i2','i3'],
    ['i1','i3'],
    ['i1','i2','i3','i5'],
    ['i1','i2','i3']
]

set3 = [
    ['M', 'O', 'N', 'K', 'E', 'Y'],
    ['D', 'O', 'N', 'K', 'E', 'Y'],
    ['M', 'A', 'K', 'E'],
    ['M', 'U', 'C', 'K', 'Y'],
    ['C', 'O', 'O', 'K', 'I', 'E']
]

set4 = [
    ['r','z','h','j','p'],
    ['z','y','x','w','v','u','t','s'],
    ['z'],
    ['r','x','n','o','s'],
    ['y','r','x','z','q','t','p'],
    ['y','z','x','e','q','s','t','m']
]

set5 = [
    ['1', '3', '4'],
    ['2', '3', '5'],
    ['1', '2', '3', '5'],
    ['2', '5'],
    ['1', '2', '3', '5']
]

set6 = [
    ['B' , 'A' , 'T'],
    ['A' , 'C'],
    ['A' , 'S'],
    ['B' , 'A' , 'C'],
    ['B' , 'S'],
    ['A' , 'S'],
    ['B' , 'S'],
    ['B' , 'A' , 'S' , 'T'],
    ['B' , 'A' , 'S']
]

set7 = [
    ['A', 'B'],
    ['B', 'C', 'D'],
    ['A', 'C', 'D', 'E'],
    ['A', 'D', 'E'],
    ['A', 'B', 'C']
]

set8 = [
    ['I1','I2','I5'],
    ['I2','I4'],
    ['I2','I3'],
    ['I1','I2','I4'],
    ['I1','I3'],
    ['I2','I3'],
    ['I1','I3'],
    ['I1','I2','I3','I5'],
    ['I1','I2','I3']
]

test = {
    'set1':[set1, 2],
    'set2':[set2, 2],
    'set3':[set3, 3],
    'set4':[set4, 3],
    'set5':[set5, 2],
    'set6':[set6, 2],
    'set7':[set7, 2],
    'set8':[set8, 4],
}

set9 = [
    ['p1', 'p2', 'p5'], 
    ['p2', 'p1', 'p4'], 
    ['p1', 'p2', 'p3'], 
    ['p2', 'p3', 'p1'], 
    ['p2', 'p1', 'p3', 'p4'], 
    ['p3', 'p1', 'p2', 'p5'], 
    ['p2', 'p1', 'p2', 'p3'], 
    ['p3', 'p1', 'p3'], 
    ['p2', 'p3', 'p2', 'p1'], 
    ['p3', 'p1', 'p2', 'p4'], 
    ['p3', 'p1', 'p2', 'p1', 'p3'], 
    ['p3', 'p1', 'p2', 'p4', 'p5'], 
    ['p1', 'p2', 'p1', 'p2', 'p5'], 
    ['p3', 'p1', 'p4', 'p1'], 
    ['p2', 'p1', 'p3', 'p4'] 
]

set10 = [
    ['p1', 'p2', 'p5', 'p1'],
    ['p2', 'p4'], 
    ['p2', 'p3', 'p4'], 
    ['p1', 'p2', 'p4'], 
    ['p1', 'p3'], 
    ['p2', 'p3', 'p4'], 
    ['p1', 'p3'], 
    ['p1', 'p2', 'p3', 'p5'],
    ['p1', 'p2', 'p3']
]


aprioriS_sets = [
    (set9, 2),
    (set10, 2)
]

set11 = [
    ['105', '112', '01/26/98', '30'], 
    ['106', '113', '01/26/98', '10'], 
    ['106', '113', '01/26/98', '20'], 
    ['105', '114', '02/01/98', '90'], 
    ['106', '115', '02/10/98', '30'], 
    ['106', '116', '03/08/98', '40'], 
    ['106', '116', '03/08/98', '60'], 
    ['106', '116', '03/08/98', '70'], 
    ['200', '117', '03/09/98', '30'], 
    ['200', '117', '03/09/98', '50'], 
    ['200', '117', '03/09/98', '70'], 
    ['220', '118', '03/09/98', '30'], 
    ['300', '119', '03/10/98', '90'], 
    ['220', '120', '03/15/98', '40'], 
    ['220', '120', '03/15/98', '70'], 
    ['220', '121', '03/18/98', '90'], 
]

set12 = [
    ['1', 'Jan 4', ['A']],
    ['1', 'Feb 5', ['A']],
    ['2', 'Jan 5', ['A']],
    ['2', 'Feb 7', ['B']],
    ['2', 'Mar 3', ['C', 'E']],
    ['3', 'Feb 11', ['A', 'E']],
    ['4', 'Jan 2', ['A']],
    ['4', 'Jan 22', ['C', 'D', 'E']],
    ['4', 'Mar 11', ['A']],
    ['5', 'Jun 5', ['A']],
]

aprioriAll_sets = [
    (set12, 0.25),
]