<s> import sublime <EOL> import sublime_plugin <EOL> st_version = <NUM_LIT:2> <EOL> if sublime . version ( ) == '<STR_LIT>' : <EOL> st_version = <NUM_LIT:3> <EOL> print ( '<STR_LIT>' ) <EOL> elif int ( sublime . version ( ) ) > <NUM_LIT> : <EOL> st_version = <NUM_LIT:3> <EOL> if st_version == <NUM_LIT:3> : <EOL> from . lib . api import CdnjsApiCall <EOL> from . lib . download import CdnjsDownloadFile <EOL> from . lib . search import CdnjsSearchCall <EOL> else : <EOL> from lib . search import CdnjsSearchCall <EOL> from lib . api import CdnjsApiCall <EOL> from lib . download import CdnjsDownloadFile <EOL> class CdnjsCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit ) : <EOL> CdnjsApiCall ( self . view , <NUM_LIT:30> ) . start ( ) <EOL> class CdnjsFileCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit ) : <EOL> CdnjsApiCall ( self . view , <NUM_LIT:30> , True , True ) . start ( ) <EOL> class CdnjsUrlCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit ) : <EOL> CdnjsApiCall ( self . view , <NUM_LIT:30> , True ) . start ( ) <EOL> class CdnjsPlaceTextCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit , ** args ) : <EOL> self . view . insert ( edit , self . view . sel ( ) [ <NUM_LIT:0> ] . begin ( ) , args [ "<STR_LIT>" ] ) <EOL> class CdnjsDownloadFileCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit , ** args ) : <EOL> sublime . status_message ( "<STR_LIT>" % args [ "<STR_LIT:file>" ] ) <EOL> CdnjsDownloadFile ( self . view , <NUM_LIT:30> , "<STR_LIT>" + args [ "<STR_LIT:file>" ] ) . start ( ) <EOL> class CdnjsSearchCommand ( sublime_plugin . TextCommand ) : <EOL> def run ( self , edit , ** args ) : <EOL> CdnjsSearchCall ( self . view , <NUM_LIT:30> ) . start ( ) </s>
