Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad ImportFrom alias alias alias alias alias Assign NameStore Num Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore BinOpAdd NameLoad Str If NameLoad body AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad Print NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num If CompareEq NameLoad Dict body Print Str Return Num Global identifier For NameStore Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body For NameStore Call NameLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad Num body AugAssignAdd NameStore Num Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If CompareEq NameLoad Str body Assign NameStore Str orelse Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str If CompareNotEq NameLoad Num body Print BinOpMod Str NameLoad orelse Print Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index BinOpAdd Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore SubscriptLoad Call NameLoad Index Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareEq NameLoad Num body Break Assign NameStore Num For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Num body Print BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str AttributeLoad NameLoad attr Return Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index BinOpAdd Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpBitAnd CompareEq BinOpMod AttributeLoad NameLoad attr Num NameLoad CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr keyword NameLoad Assign NameStore BinOpBitAnd CompareEq BinOpMod AttributeLoad NameLoad attr Num NameLoad CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr keyword NameLoad If CompareNotEq Call NameLoad NameLoad Num body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call AttributeLoad Str attr NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad
N/A N/A 
    Copyright (c) 2015-2016 Raj Patel(raj454raj@gmail.com), StopStalk

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
 N/A time N/A traceback N/A gevent datetime datetime gevent monkey N/A N/A N/A N/A gevent monkey patch_all thread False sites codechef codeforces spoj hackerearth hackerrank N/A N 0 N/A rows N/A _debug N/A N/A first_name last_name site custom N/A False N/A N/A 
        Advanced logging of submissions
     N/A name N/A N/A first_name last_name N/A debug_string N/A site : N/A custom N/A N/A debug_string CUS: N/A debug_string name N/A debug_string N/A get_submissions N/A N/A user_id handle stopstalk_handle submissions site custom N/A False N/A N/A 
        Get the submissions and populate the database
     N/A db N/A current db N/A count 0 N/A N/A submissions N/A N/A N/A 0 N/A 0 N/A rows N/A i N/A sorted N/A N/A N/A submissions N/A handle iterkeys N/A N/A j N/A sorted N/A N/A N/A N/A submissions N/A handle N/A i iterkeys N/A N/A submission N/A N/A N/A submissions N/A handle N/A i N/A j N/A N/A N/A len submission 7 N/A N/A count 1 N/A row N/A N/A custom N/A N/A N/A N/A row extend N/A -- user_id N/A N/A N/A N/A row extend N/A user_id -- N/A N/A N/A row extend N/A stopstalk_handle handle site N/A submission N/A 0 N/A submission N/A 2 N/A submission N/A 1 N/A submission N/A 5 N/A submission N/A 3 N/A submission N/A 4 N/A submission N/A 6 N/A encoded_row N/A N/A x row N/A N/A N/A isinstance x basestring N/A N/A tmp N/A N/A x encode ascii ignore N/A tmp N/A N/A N/A N/A tmp replace " replace ' N/A N/A tmp -- N/A N/A tmp NULL N/A N/A tmp N/A N/A " tmp " N/A N/A N/A encoded_row append tmp N/A N/A N/A N/A encoded_row append N/A str x N/A N/A N/A rows append N/A N/A ( N/A N/A ,  join encoded_row ) N/A N/A count 0 N/A N/A N/A %s count N/A N/A 0 N/A count N/A retrieve_submissions N/A N/A record custom N/A N/A N/A 
        Retrieve submissions that are not already in the database
     N/A last_retrieved N/A record last_retrieved N/A time_conversion %Y-%m-%d %H:%M:%S N/A last_retrieved N/A N/A time strptime N/A str last_retrieved time_conversion N/A list_of_submissions N/A N/A site N/A current SITES N/A N/A site_handle N/A record N/A N/A N/A N/A site lower _handle N/A site_handle N/A N/A Site N/A N/A globals N/A N/A N/A site lower N/A P N/A N/A Site Profile site_handle N/A site_method N/A P get_submissions N/A submissions N/A site_method last_retrieved N/A N/A N/A list_of_submissions append N/A site submissions N/A N/A submissions -1 N/A N/A N/A total_retrieved 0 N/A submissions list_of_submissions N/A N/A N/A N/A submissions N/A 1 -1 N/A N/A N/A N/A N/A PROBLEM  site N/A record stopstalk_handle N/A FAILURE N/A submissions list_of_submissions N/A N/A site N/A submissions N/A 0 N/A site_handle N/A record N/A N/A N/A N/A site lower _handle N/A N/A _debug N/A record first_name N/A record last_name site custom N/A total_retrieved N/A get_submissions N/A record id site_handle N/A record stopstalk_handle N/A submissions N/A 1 site custom N/A total_retrieved N/A N/A N/A __name__ __main__ N/A N/A atable N/A db auth_user N/A cftable N/A db custom_friend N/A columns N/A N/A (`user_id`, `custom_user_id`, `stopstalk_handle`,  `site_handle`, `site`, `time_stamp`, `problem_name`, `problem_link`, `lang`, `status`, `points`, `view_link`) N/A today N/A N/A datetime now N/A query N/A N/A N/A N/A atable id 3 N N/A N/A atable blacklisted False N/A registered_users N/A N/A N/A db query select N/A record registered_users N/A N/A N/A retrieve_submissions record False N/A N/A N/A N/A db query update last_retrieved today N/A query N/A N/A N/A N/A cftable id 3 N N/A N/A cftable duplicate_cu None N/A custom_users N/A N/A N/A db query select N/A record custom_users N/A N/A N/A retrieve_submissions record True N/A N/A N/A N/A db query update last_retrieved today N/A N/A N/A len rows 0 N/A N/A sql_query N/A N/A N/A N/A INSERT INTO `submission`  columns  VALUES  N/A N/A , join rows ; N/A N/A N/A N/A N/A db executesql sql_query N/A N/A N/A N/A N/A N/A traceback print_exc N/A N/A N/A N/A Error in  site  BULK INSERT for  handle