package qa.qcri.aidr.getdata; import java.util.Arrays; import java.util.List; public class InjectorConfig { public final String host = "localhost"; public final int port = 6379; public final String channelPrefix = "aidr_predict."; public final String collectionCode = "mock_collection"; //2014-07-palestine_conflict"; public final int tweets_per_sec = 2; // -1 = no throttle control public final int duration = 20; // in mins public final int threads = 5; public final List<String>collection_list = Arrays.asList("2014-03-mh370", "2014-04-mers", "2014-05-emsc_landslides_2014", "2014-04-terremoto_chile_2014", "2014-05-serbia_bosnia_floods_may_2014"); public static final String DEFAULT_PERSISTER_FILE_PATH = "/var/www/aidr/data/persister/"; public final String singleTweet = "{\"filter_level\":\"medium\",\"text\":\"@wongt0n You in Japan now?\",\"contributors\":null,\"geo\":null,\"retweeted\":false,\"in_reply_to_screen_name\":\"wongt0n\",\"truncated\":false,\"entities\":{\"hashtags\":[],\"symbols\":[],\"urls\":[],\"user_mentions\":[{\"id\":123834194,\"indices\":[0,8],\"screen_name\":\"wongt0n\",\"id_str\":\"123834194\",\"name\":\"Lazy Wong~\"}]},\"lang\":\"en\",\"in_reply_to_status_id_str\":\"421190875260014592\",\"id\":421193072316149761,\"aidr\":{\"features\":[{\"words\":[\"\",\"2009\",\"edition\",\"_#mp3\",\"#mp3_#music\",\"408_the\",\"the_end\",\"peas_2009\",\"#mp3\",\"the\",\"edition_black\",\"end_japan\",\"eyed_peas\",\"#music_408\",\"408\",\"japan\",\"japan_edition\",\"black_eyed\",\"#music\",\"eyed\",\"end\",\"black\",\"peas\"],\"type\":\"wordvector\"}],\"crisis_code\":\"japan_chem_explosion\",\"nominal_labels\":[{\"label_name\":\"Not related to crisis\",\"source_id\":289,\"from_human\":false,\"attribute_description\":\"Informative messages enhancing situational awareness, v1.0\",\"label_code\":\"030_info\",\"confidence\":0.54,\"label_description\":\"Not related to the crisis\",\"attribute_code\":\"informative_v2\",\"attribute_name\":\"Informative v1.0\"}, {\"label_name\":\"Not related to crisis\",\"source_id\":289,\"from_human\":false,\"attribute_description\":\"Informative messages enhancing situational awareness, v1.0\",\"label_code\":\"030_info\",\"confidence\":0.8433459674,\"label_description\":\"Not related to the crisis\",\"attribute_code\":\"informative_v1\",\"attribute_name\":\"Informative v1.0\"}, {\"label_name\":\"Not related to crisis\",\"source_id\":289,\"from_human\":false,\"attribute_description\":\"Mock Attribute for Testing, v1.0\",\"label_code\":\"030_info\",\"confidence\":0.40,\"label_description\":\"related to the crisis\",\"attribute_code\":\"mock attribute\",\"attribute_name\":\"Mock Attribute\"}, {\"label_name\":\"Not related to crisis\",\"source_id\":289,\"from_human\":false,\"attribute_description\":\"Mock Attribute for Testing, v1.0\",\"label_code\":\"099_disaster\",\"confidence\":0.79,\"label_description\":\"disaster\",\"attribute_code\":\"mock attribute\",\"attribute_name\":\"Mock Attribute\"}],\"doctype\":\"twitter\",\"crisis_name\":\"Explosion at Japan chemical factory\"},\"source\":\"web\",\"in_reply_to_user_id_str\":\"123834194\",\"favorited\":false,\"in_reply_to_status_id\":421190875260014592,\"retweet_count\":0,\"created_at\":\"Thu Jan 09 08:13:48 +0000 2014\",\"in_reply_to_user_id\":123834194,\"favorite_count\":0,\"id_str\":\"421193072316149761\",\"place\":null,\"user\":{\"location\":\"\",\"default_profile\":false,\"profile_background_tile\":true,\"statuses_count\":10045,\"lang\":\"en\",\"profile_link_color\":\"1212E3\",\"profile_banner_url\":\"https://pbs.twimg.com/profile_banners/457120810/1358321901\",\"id\":457120810,\"following\":null,\"protected\":false,\"favourites_count\":7,\"profile_text_color\":\"E60ED4\",\"contributors_enabled\":false,\"verified\":false,\"description\":\"An ordinary SONE who fall in love with Taeyeon+Jessica+Sunny+Tiffany+Hyoyeon+Yuri+Sooyoung+Yoona+Seohyun = SNSD. Spazzing and sharing is my vacation on twitter.\",\"name\":\"~~\uC18C\uC2DC\uB77C\uC11C \uD589\uBCF5\uD574\uC694~~\",\"profile_sidebar_border_color\":\"FFFFFF\",\"profile_background_color\":\"EDFAFA\",\"created_at\":\"Sat Jan 07 01:51:54 +0000 2012\",\"default_profile_image\":false,\"followers_count\":47,\"geo_enabled\":false,\"profile_image_url_https\":\"https://pbs.twimg.com/profile_images/378800000219857862/9606b10e2dd7d700111f4c5be7384f63_normal.jpeg\",\"profile_background_image_url\":\"http://a0.twimg.com/profile_background_images/889556219/7456374b70ecfea67145b0214f15a988.jpeg\",\"profile_background_image_url_https\":\"https://si0.twimg.com/profile_background_images/889556219/7456374b70ecfea67145b0214f15a988.jpeg\",\"follow_request_sent\":null,\"url\":null,\"utc_offset\":28800,\"time_zone\":\"Kuala Lumpur\",\"notifications\":null,\"profile_use_background_image\":true,\"friends_count\":127,\"profile_sidebar_fill_color\":\"E1D2F5\",\"screen_name\":\"blueagle90\",\"id_str\":\"457120810\",\"profile_image_url\":\"http://pbs.twimg.com/profile_images/378800000219857862/9606b10e2dd7d700111f4c5be7384f63_normal.jpeg\",\"listed_count\":0,\"is_translator\":false},\"coordinates\":null}"; // If wish to use the following single tweet, then comment the above line and uncomment this //public final String singleTweet = "{\"filter_level\":\"medium\",\"retweeted\":false,\"in_reply_to_screen_name\":null,\"possibly_sensitive\":false,\"truncated\":false,\"lang\":\"en\",\"in_reply_to_status_id_str\":null,\"id\":500870968798375936,\"in_reply_to_user_id_str\":null,\"in_reply_to_status_id\":null,\"created_at\":\"Sun Aug 17 05:05:19 +0000 2014\",\"favorite_count\":0,\"place\":null,\"coordinates\":null,\"retweeted_status\":{\"filter_level\":\"low\",\"text\":\"One week until @RunForPalestine Please help them raise $20,000 for urgent need in Palestine!\",\"contributors\":null,\"geo\":null,\"retweeted\":false,\"in_reply_to_screen_name\":null,\"possibly_sensitive\":false,\"truncated\":false,\"entities\":{\"trends\":[],\"hashtags\":[],\"symbols\":[],\"urls\":[],\"user_mentions\":[{\"id\":2643835002,\"indices\":[15,31],\"screen_name\":\"RunForPalestine\",\"id_str\":\"2643835002\",\"name\":\"Run For Palestine \"}]},\"lang\":\"en\",\"in_reply_to_status_id_str\":null,\"id\":500675792943071233,\"source\":\"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>\",\"in_reply_to_user_id_str\":null,\"favorited\":false,\"in_reply_to_status_id\":null,\"retweet_count\":2,\"created_at\":\"Sat Aug 16 16:09:45 +0000 2014\",\"in_reply_to_user_id\":null,\"favorite_count\":0,\"id_str\":\"500675792943071233\",\"place\":null,\"user\":{\"location\":\"Toronto, Ontario, Canada\",\"default_profile\":false,\"profile_background_tile\":false,\"statuses_count\":195,\"lang\":\"en\",\"profile_link_color\":\"1F4BCF\",\"profile_banner_url\":\"https://pbs.twimg.com/profile_banners/2424909001/1408200278\",\"id\":2424909001,\"following\":null,\"protected\":false,\"favourites_count\":61,\"profile_text_color\":\"333333\",\"contributors_enabled\":false,\"description\":\"Hack for Change is a Toronto Hackathon for positive social change in the Middle East - Nov 7 2014 @ Beit Zatoun #Hack4Change\",\"verified\":false,\"name\":\"Hack For Change\",\"profile_sidebar_border_color\":\"C0DEED\",\"profile_background_color\":\"C0DEED\",\"created_at\":\"Thu Apr 03 04:39:24 +0000 2014\",\"default_profile_image\":false,\"followers_count\":301,\"geo_enabled\":false,\"profile_image_url_https\":\"https://pbs.twimg.com/profile_images/500654636114526208/_i_PIaJ2_normal.png\",\"profile_background_image_url\":\"http://abs.twimg.com/images/themes/theme1/bg.png\",\"profile_background_image_url_https\":\"https://abs.twimg.com/images/themes/theme1/bg.png\",\"follow_request_sent\":null,\"url\":\"http://www.hack4change.com\",\"utc_offset\":-14400,\"time_zone\":\"Eastern Time (US & Canada)\",\"notifications\":null,\"profile_use_background_image\":true,\"friends_count\":2000,\"profile_sidebar_fill_color\":\"DDEEF6\",\"screen_name\":\"Hack4Change_com\",\"id_str\":\"2424909001\",\"profile_image_url\":\"http://pbs.twimg.com/profile_images/500654636114526208/_i_PIaJ2_normal.png\",\"listed_count\":1,\"is_translator\":false},\"coordinates\":null},\"contributors\":null,\"text\":\"RT @Hack4Change_com: One week until @RunForPalestine Please help them raise $20,000 for urgent need in Palestine!\",\"geo\":null,\"entities\":{\"trends\":[],\"hashtags\":[],\"symbols\":[],\"urls\":[],\"user_mentions\":[{\"id\":2424909001,\"indices\":[3,19],\"screen_name\":\"Hack4Change_com\",\"id_str\":\"2424909001\",\"name\":\"Hack For Change\"},{\"id\":2643835002,\"indices\":[36,52],\"screen_name\":\"RunForPalestine\",\"id_str\":\"2643835002\",\"name\":\"Run For Palestine \"}]},\"aidr\":{\"features\":[{\"words\":[\"need\",\"raise\",\"20000_for\",\"for\",\"one\",\"palestine\",\"help_them\",\"week_until\",\"until\",\"need_in\",\"help\",\"them_raise\",\"please\",\"20000\",\"for_urgent\",\"_one\",\"urgent_need\",\"raise_20000\",\"urgent\",\"until_please\",\"in\",\"them\",\"in_palestine\",\"one_week\",\"week\",\"please_help\"],\"type\":\"wordvector\"}],\"crisis_code\":\"2014-07-palestine_conflict\",\"nominal_labels\":[{\"label_name\":\"Sympathy and Support for Palestine\",\"source_id\":486,\"from_human\":false,\"attribute_description\":\"Opinion divides\",\"label_code\":\"sympathy_for_palestine\",\"confidence\":0.8,\"label_description\":\"If the message shows sympathy or support for Palestine.\",\"attribute_code\":\"opinion_and_support_divide\",\"attribute_name\":\"Opinion and Support Divide\"},{\"label_name\":\"Other relevant information\",\"source_id\":471,\"from_human\":false,\"attribute_description\":\"Themes of palestine conflict\",\"label_code\":\"other\",\"confidence\":0.5,\"label_description\":\"Other relevant information\",\"attribute_code\":\"palestine_conflict\",\"attribute_name\":\"Palestine conflict\"}],\"doctype\":\"twitter\",\"crisis_name\":\"Palestine Conflict\"},\"source\":\"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>\",\"favorited\":false,\"retweet_count\":0,\"in_reply_to_user_id\":null,\"id_str\":\"500870968798375936\",\"user\":{\"location\":\"\",\"default_profile\":true,\"profile_background_tile\":false,\"statuses_count\":3917,\"lang\":\"en\",\"profile_link_color\":\"0084B4\",\"id\":119584881,\"following\":null,\"protected\":false,\"favourites_count\":100,\"profile_text_color\":\"333333\",\"contributors_enabled\":false,\"description\":null,\"verified\":false,\"name\":\"selma\",\"profile_sidebar_border_color\":\"C0DEED\",\"profile_background_color\":\"C0DEED\",\"created_at\":\"Thu Mar 04 02:26:54 +0000 2010\",\"default_profile_image\":false,\"followers_count\":63,\"geo_enabled\":false,\"profile_image_url_https\":\"https://pbs.twimg.com/profile_images/495415287248723968/jiP23kQy_normal.jpeg\",\"profile_background_image_url\":\"http://abs.twimg.com/images/themes/theme1/bg.png\",\"profile_background_image_url_https\":\"https://abs.twimg.com/images/themes/theme1/bg.png\",\"follow_request_sent\":null,\"url\":null,\"utc_offset\":null,\"time_zone\":null,\"notifications\":null,\"profile_use_background_image\":true,\"friends_count\":88,\"profile_sidebar_fill_color\":\"DDEEF6\",\"screen_name\":\"sk5t\",\"id_str\":\"119584881\",\"profile_image_url\":\"http://pbs.twimg.com/profile_images/495415287248723968/jiP23kQy_normal.jpeg\",\"listed_count\":0,\"is_translator\":false}}"; public final boolean useSingleTweet = true; }