Module Import alias ImportFrom alias Assign NameStore TupleLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign SubscriptStore NameLoad Index Str ListLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareIn NameLoad Call AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str For NameStore ListLoad Str Str Str Str Str body If CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Print Str decorator_list decorator_list
N/A N/A re mongodb_migrations.base BaseMigration N/A ALL_SUPPORTTED_SYNTAX N/A N/A bash bash Bash N/A java java Java N/A cpp cpp C++ N/A xml xml XML N/A spec spec RPMSpec N/A sql sql SQL N/A json json JSON N/A sass sass Sass N/A coffee-script coffee-script CoffeeScript N/A vim vim VimL N/A scala scala Scala N/A css css CSS N/A less css LESS N/A c c C N/A yaml yaml YAML N/A text text Text only N/A dart dart Dart N/A diff diff Diff N/A swift swift Swift N/A js js JavaScript N/A puppet puppet Puppet N/A groovy groovy Groovy N/A gradle groovy Gradle N/A python python Python N/A scss scss SCSS N/A lua lua Lua N/A go go Go N/A perl perl Perl N/A ini ini INI N/A nginx nginx Nginx configuration file N/A php php PHP N/A erb erb ERB N/A html html HTML N/A rst rst reStructuredText N/A make make Makefile N/A rb rb Ruby N/A docker docker Docker N/A kotlin kotlin Kotlin N/A erlang erlang Erlang N/A clojure clojure Clojure N/A csharp csharp C# N/A objective-c objective-c Objective-C N/A OLD_SYNTAX_NEW_SYNTAX N/A less access-log vim-script gradle nginx text LESS Text only VimL Gradle Nginx configuration file Text only Migration N/A BaseMigration N/A upgrade N/A N/A self N/A N/A N/A 
        1. get all codes
        2. set codes into pastes
        3. add key to tag
        :return:
         N/A new_syntax_keys N/A N/A syntax N/A 0 N/A syntax ALL_SUPPORTTED_SYNTAX N/A N/A N/A N/A N/A self db syntax drop N/A syntax ALL_SUPPORTTED_SYNTAX N/A N/A N/A N/A N/A N/A self db syntax save N/A key syntax name N/A syntax N/A 0 N/A syntax N/A 1 N/A syntax N/A 2 N/A codes N/A N/A code N/A N/A N/A N/A self db code find N/A N/A N/A codes N/A N/A str N/A code N/A _id code N/A N/A N/A N/A N/A self db code drop N/A N/A N/A N/A N/A self db tag drop N/A user_likes N/A N/A like N/A N/A N/A N/A self db like find N/A N/A paste N/A N/A N/A N/A self db paste find_one N/A _id N/A N/A N/A like N/A Paste N/A _ref id N/A user_id N/A str N/A like N/A user N/A N/A user_id user_likes N/A N/A N/A user_likes N/A user_id N/A N/A N/A N/A N/A user_likes N/A user_id append N/A paste N/A hash_id N/A new_pastes N/A N/A self get_new_pastes codes new_syntax_keys N/A N/A N/A N/A N/A self db paste drop N/A paste new_pastes N/A N/A N/A N/A N/A N/A self db paste save paste N/A N/A N/A self update_user_likes user_likes N/A N/A N/A N/A N/A self db like drop N/A N/A N/A N/A N/A self db rate drop N/A update_user_likes N/A N/A self user_likes N/A N/A N/A user N/A N/A N/A N/A self db user find N/A N/A N/A user N/A likes N/A N/A user_id N/A str N/A user N/A _id N/A N/A user_id N/A N/A user_likes keys N/A N/A paste_id N/A user_likes N/A user_id N/A N/A paste N/A N/A N/A N/A self db paste find_one N/A hash_id paste_id N/A N/A N/A N/A user N/A likes append N/A paste N/A _id N/A i N/A favourites paste_likes_count pastes_count watched_users oauths N/A N/A N/A i user N/A N/A N/A user N/A i N/A N/A N/A N/A N/A self db user save user N/A get_new_pastes N/A N/A self codes new_syntax_keys N/A N/A N/A new_pastes N/A N/A paste N/A N/A N/A N/A self db paste find N/A N/A new_paste N/A N/A N/A new_paste N/A created_at N/A paste N/A created_at N/A N/A new_paste N/A updated_at N/A paste N/A updated_at N/A N/A new_paste N/A title N/A paste N/A title N/A N/A new_paste N/A user N/A paste N/A user N/A N/A new_paste N/A hash_id N/A paste N/A hash_id N/A N/A new_paste N/A is_private N/A paste N/A is_private N/A N/A new_paste N/A views N/A paste N/A views N/A N/A new_paste N/A codes N/A N/A code_ids N/A N/A str code N/A code N/A paste N/A codes N/A tags N/A N/A code_id code_ids N/A N/A code N/A codes N/A code_id N/A old_syntax N/A code N/A tag N/A N/A old_syntax new_syntax_keys N/A N/A syntax N/A N/A N/A N/A self db syntax find_one N/A key N/A N/A re compile old_syntax N/A re IGNORECASE N/A N/A N/A old_syntax N/A N/A OLD_SYNTAX_NEW_SYNTAX keys N/A N/A syntax N/A N/A N/A N/A self db syntax find_one N/A name N/A N/A re compile N/A OLD_SYNTAX_NEW_SYNTAX N/A old_syntax N/A re IGNORECASE N/A N/A re_string N/A N/A old_syntax replace + \+ N/A syntax N/A N/A N/A N/A self db syntax find_one N/A name N/A N/A re compile re_string N/A re IGNORECASE N/A tag N/A N/A N/A N/A self db tag find_one N/A key N/A syntax N/A key N/A tag N/A N/A N/A N/A tags append N/A tag N/A _id N/A N/A tag N/A N/A tag N/A N/A N/A N/A self db tag save N/A key name N/A syntax N/A key N/A syntax N/A name N/A N/A N/A tags append tag N/A N/A N/A N/A new_paste N/A codes append N/A title content syntax N/A code N/A title N/A code N/A content N/A syntax N/A _id N/A N/A new_paste N/A tags tags N/A N/A N/A new_pastes append new_paste N/A new_pastes N/A downgrade N/A N/A self N/A N/A N/A I'm in downgrade - migration2 N/A N/A