{ "cases": [ { "bundleType":"timeContext", "templates" :[ { "_comment_": "/* 2 actions: 1 visit and 1 workout at single place (example: 1 workout overlapping more than 80% with a visit with duration 1.5 longer than the workout, visit has many photos and higher goodness socre than workout) */", "conditions":["action_count>=2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count=1", "visit_count=1","!summary_type"], "labels":["Visit and {unique_action_2}, {place}"], }, { "_comment_": "/* 2 actions: 1 visit and 1 workout at single place (example: 1 workout overlapping more than 80% with a visit with duration 1.5 longer than the workout, visit has lower goodness socre than workout) */", "conditions":["action_count>=2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count=1", "visit_count=1","!summary_type"], "labels":["{unique_action_1} and more, {place}"], }, { "_comment_": "/* 2 actions: 1 visit and 1 workout with 2 places int the same city (example: 1 workout overlapping more than 80% with a visit at place A and another visit to place B, the second visit have higher goodness score than workout) */", "conditions":["action_count>= 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=2", "unique_activity_count=1", "visit_count=1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_2} and more, {unique_city_1}"], }, { "_comment_": "/* 2 actions: 1 visit and 1 workout with 2 places (example: 1 workout overlapping more than 80% with a visit at place A and another visit to place B, the second visit have higher goodness score than workout) */", "conditions":["action_count>= 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=2", "unique_activity_count=1", "visit_count=1","!summary_type"], "labels":["{unique_action_2} and more, multiple places"], }, { "_comment_": "/* 2 actions: 1 visit and 1 workout with 2 places in the same city (example: 1 workout overlapping more than 80% with a visit at place A and another visit to place B, the second visit have lower goodness score than workout) */", "conditions":["action_count >= 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count=2", "unique_activity_count=1", "visit_count=1", "unique_city_count=1"], "labels":["{unique_action_1} and more, {unique_city_1}"], }, { "_comment_": "/* 2 actions: 1 visit and 1 workout with 2 places (example: 1 workout overlapping more than 80% with a visit at place A and another visit to place B, the second visit have lower goodness score than workout) */", "conditions":["action_count >= 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count=2", "unique_activity_count=1", "visit_count=1","!summary_type"], "labels":["{unique_action_1} and more, multiple places"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout at single place (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place A, the second visit have higher goodness score than workout)*/", "conditions":["action_count > 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count=1", "visit_count>1", "!summary_type"], "labels":["{unique_action_2} and more, {place}"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout at single place (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place A, the second visit have lower goodness score than workout) */", "conditions":["action_count > 2", "unique_action_type_1!=visit", "unique_action_type_count=2", "unique_place_count=1","unique_activity_count=1", "visit_count>1","!summary_type"], "labels":["{unique_action_1} and more, {place}"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout with 2+ place in the same city(example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place B, the second visit have lower goodness score than workout)*/", "conditions":["action_count > 2", "unique_action_type_1!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count=1", "visit_count>1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_1} and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout with 2+ place (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place B, the second visit have lower goodness score than workout)*/", "conditions":["action_count > 2", "unique_action_type_1!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count=1", "visit_count>1","!summary_type"], "labels":["{unique_action_1} and more, multiple places"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout with 2+ place in the same city (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place B, the second visit have lower goodness score than workout)*/", "conditions":["action_count > 2", "unique_action_type_2!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count=1", "visit_count>1","unique_city_count=1","!summary_type"], "labels":["{unique_action_2} and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 1+ visit and 1 workout with 2+ place (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout and another visit to place B, the second visit have lower goodness score than workout)*/", "conditions":["action_count > 2", "unique_action_type_2!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count=1", "visit_count>1","!summary_type"], "labels":["{unique_action_2} and more, multiple places"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout at single place (example: 2+ workouts overlapping more than 80% with a visit at place A with duration 1.5 longer than the total workout, only showing workout in the label) */", "conditions":["action_count > 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, {unique_place_1}"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout at single place (example: 2+ workouts overlapping more than 80% with a visit at place A with duration 1.5 longer than the total workout, only showing workout in the label)*/", "conditions":["action_count > 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, {unique_place_1}"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout at single place (example: 2+ workouts overlapping more than 80% with a visit at place A with duration 1.5 longer than the total workout, only showing workout in the label)*/", "conditions":["action_count > 2", "unique_action_type_1!=visit", "unique_action_type_2!=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, {unique_place_1}"], }, { "_comment_": "/* 3 actions: 1 visit and 2+ workout with 2+ places in the same city (example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count=1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, {unique_city_1}"], }, { "_comment_": "/* 3 actions: 1 visit and 2+ workout with 2+ places (example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, multiple places"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout with 2+ places in the same city(example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count>1", "visit_count=1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout with 2+ places (example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, multiple places"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout with 2+ places in the same city(example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_1!=visit", "unique_action_2!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count>1", "visit_count=1","unique_city_Count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 1 visit and 2+ workout with 2+ places (example: 2+ workouts overlapping more than 80% with a visit at place A with similar duration with total workouts, another visit to place B,only showing workout in the label)*/", "conditions":["action_count>2", "unique_action_type_1!=visit", "unique_action_type_2!=visit", "unique_action_type_count=2", "unique_place_count>1","unique_activity_count>1", "visit_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, multiple places"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout at a single places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, {unique_place_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout at a single places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, {unique_place_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout at a single places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_1!=visit", "unique_action_type_2!=visit", "unique_action_type_count=2", "unique_place_count=1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, {unique_place_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places in the same city(example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_1=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_2}, {unique_action_3}, and more, multiple places"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places in the same city (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_2=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_1}, {unique_action_3}, and more, multiple places"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places in the same city(example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_3=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1", "unique_city_count=1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, {unique_city_1}"], }, { "_comment_": "/* 3+ actions: 2+ visit and 2+ workout with 2+ places (example: 1 workout overlapping more than 80% with a visit at place A with duration 1.5 longer than the workout, another visit to place B, another different workout overlapping more than 80% with a visit at place B with duration 1.5 longer than the workout)*/", "conditions":["action_count > 2", "unique_action_type_3=visit", "unique_action_type_count=2", "unique_place_count>1", "unique_activity_count>1", "visit_count>1","!summary_type"], "labels":["{unique_action_1}, {unique_action_2}, and more, multiple places"], }, { "_comment_": "/* fallback for acitivty + visit */", "conditions":[ "unique_action_type_count=2","unique_activity_count>=1", "visit_count>=1","!summary_type"], "labels":["Workout"], } ] } ] }