<s> '''<STR_LIT>''' <EOL> from plyer . facades import Accelerometer <EOL> import os <EOL> import glob <EOL> import re <EOL> class LinuxAccelerometer ( Accelerometer ) : <EOL> def _enable ( self ) : <EOL> pass <EOL> def _disable ( self ) : <EOL> pass <EOL> def _get_acceleration ( self ) : <EOL> try : <EOL> pos = glob . glob ( "<STR_LIT>" ) [ <NUM_LIT:0> ] <EOL> except IndexError : <EOL> raise Exception ( '<STR_LIT>' ) <EOL> with open ( pos , "<STR_LIT:r>" ) as p : <EOL> t = p . read ( ) <EOL> coords = re . findall ( r"<STR_LIT>" , t ) <EOL> return [ float ( i ) / - <NUM_LIT:100> for i in coords ] <EOL> def instance ( ) : <EOL> return LinuxAccelerometer ( ) </s>
