<s> '''<STR_LIT>''' <EOL> import sys <EOL> import re <EOL> def camel_case_to_space_case ( s ) : <EOL> '''<STR_LIT>''' <EOL> if s == '<STR_LIT>' : return s <EOL> process_character = lambda c : ( '<STR_LIT:U+0020>' + c . lower ( ) ) if c . isupper ( ) else c <EOL> return s [ <NUM_LIT:0> ] + '<STR_LIT>' . join ( process_character ( c ) for c in s [ <NUM_LIT:1> : ] ) <EOL> def camel_case_to_lower_case ( s ) : <EOL> '''<STR_LIT>''' <EOL> return re . sub ( '<STR_LIT>' , '<STR_LIT>' , s ) . lower ( ) . strip ( '<STR_LIT:_>' ) <EOL> def lower_case_to_camel_case ( s ) : <EOL> '''<STR_LIT>''' <EOL> s = s . capitalize ( ) <EOL> while '<STR_LIT:_>' in s : <EOL> head , tail = s . split ( '<STR_LIT:_>' , <NUM_LIT:1> ) <EOL> s = head + tail . capitalize ( ) <EOL> return s <EOL> def camel_case_to_upper_case ( s ) : <EOL> '''<STR_LIT>''' <EOL> return camel_case_to_lower_case ( s ) . upper ( ) <EOL> def upper_case_to_camel_case ( s ) : <EOL> '''<STR_LIT>''' <EOL> return lower_case_to_camel_case ( s . lower ( ) ) </s>
