<s> import django <EOL> if django . get_version ( ) < '<STR_LIT>' : <EOL> import os <EOL> from re import sub <EOL> from django . contrib . staticfiles . storage import AppStaticStorage <EOL> class NamespacedAngularAppStorage ( AppStaticStorage ) : <EOL> """<STR_LIT>""" <EOL> source_dir = '<STR_LIT>' <EOL> def __init__ ( self , app , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> self . prefix = os . path . join ( * ( app . split ( '<STR_LIT:.>' ) ) ) <EOL> super ( NamespacedAngularAppStorage , self ) . __init__ ( app , * args , ** kwargs ) <EOL> def path ( self , name ) : <EOL> name = sub ( '<STR_LIT>' + self . prefix + os . sep . encode ( '<STR_LIT>' ) , '<STR_LIT>' , name ) <EOL> return super ( NamespacedAngularAppStorage , self ) . path ( name ) <EOL> class NamespacedE2ETestAppStorage ( AppStaticStorage ) : <EOL> """<STR_LIT>""" <EOL> source_dir = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def __init__ ( self , app , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> prefix_args = [ self . source_dir ] + app . split ( '<STR_LIT:.>' ) <EOL> self . prefix = os . path . join ( * prefix_args ) <EOL> super ( NamespacedE2ETestAppStorage , self ) . __init__ ( app , * args , ** kwargs ) <EOL> class NamespacedLibTestAppStorage ( AppStaticStorage ) : <EOL> """<STR_LIT>""" <EOL> source_dir = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def __init__ ( self , app , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> prefix_args = app . split ( '<STR_LIT:.>' ) + [ '<STR_LIT>' ] <EOL> self . prefix = os . path . join ( * prefix_args ) <EOL> super ( NamespacedLibTestAppStorage , self ) . __init__ ( app , * args , ** kwargs ) </s>
