<commit_before>Worker = cuesport:get_worker(index),
%%##AppKey = <<"51aigegou#aggrelease">>,
%%User = <<"17601597971">>, 

AppKey = <<"tusou001#v40">>,
User = <<"szygbd__18818773499">>,
{ok, R} = eredis:q(Worker, [hgetall, iolist_to_binary(["unread:", AppKey, "_" , User, "@easemob.com/mobile"])]),
io:format("~p~n",[R]),
lists:foreach(fun(M) ->
		      {ok, List} = eredis:q(Worker, [lrange, iolist_to_binary(["index:unread:", AppKey, "_", User, "@easemob.com/mobile:", M]), 0,-1]),
		      io:format("queue ~p ~n", [M]),
		      lists:foreach(
			fun(MID) ->
				io:format("       MID is ~p~n", [MID]),
				Meta = msync_msg:decode_meta(message_store:read(MID)),
				io:format("       BODY is ~p~n", [Meta ])
			end, List)
	      end, R).<commit_msg>update get_offline.erl to accept args<commit_after>[User, App, Org] =
case Args of
    [_, _, _] -> Args;
    [_, _] -> [Args | "easemob-demo"];
    [_] -> [Args | "chatdemoui", "easemob-demo"]
end,

Worker = cuesport:get_worker(index),
{ok, R} = eredis:q(Worker, [hgetall, iolist_to_binary(["unread:", AppKey, "_" , User, "@easemob.com/mobile"])]),
io:format("~p~n",[R]),
lists:foreach(fun(M) ->
                      {ok, List} = eredis:q(Worker, [lrange, iolist_to_binary(["index:unread:", AppKey, "_", User, "@easemob.com/mobile:", M]), 0,-1]),
                      io:format("queue ~p ~n", [M]),
                      lists:foreach(
                        fun(MID) ->
                                io:format("       MID is ~p~n", [MID]),
                                Meta = msync_msg:decode_meta(message_store:read(MID)),
                                io:format("       BODY is ~p~n", [Meta ])
                        end, List)
              end, R).
{'fraction_non_alphanumeric': 0.21153846153846154, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 2.5622406639004147, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5179277', 'n_tokens_mistral': 702, 'n_tokens_neox': 641, 'n_words': 112}