original_string: private function audioCanBeEncoded($resolution, $metainfo) {
           return
               // sample rate of file is better or as good as defined in resolution
               $resolution['audio_sample_rate'] >= $metainfo['sample_rate'] &&
               // bitrate of file is better or as good as defined in resolution
               $resolution['audio_bitrate'] <= $metainfo['max_bit_rate'] ||
               // or we allow worse quality to be used for encoding
               filter_var(
                   $resolution['allow_lower_audio_bitrate'],
                   FILTER_VALIDATE_BOOLEAN
               )
           ;
       }
code: private function audioCanBeEncoded($resolution, $metainfo) {
           return
               // sample rate of file is better or as good as defined in resolution
               $resolution['audio_sample_rate'] >= $metainfo['sample_rate'] &&
               // bitrate of file is better or as good as defined in resolution
               $resolution['audio_bitrate'] <= $metainfo['max_bit_rate'] ||
               // or we allow worse quality to be used for encoding
               filter_var(
                   $resolution['allow_lower_audio_bitrate'],
                   FILTER_VALIDATE_BOOLEAN
               )
           ;
       }
code_tokens: private function audioCanBeEncoded ( $ resolution , $ metainfo ) { return // sample rate of file is better or as good as defined in resolution $ resolution [ 'audio_sample_rate' ] >= $ metainfo [ 'sample_rate' ] && // bitrate of file is better or as good as defined in resolution $ resolution [ 'audio_bitrate' ] <= $ metainfo [ 'max_bit_rate' ] || // or we allow worse quality to be used for encoding filter_var ( $ resolution [ 'allow_lower_audio_bitrate' ] , FILTER_VALIDATE_BOOLEAN ) ; }
docstring: determines if the the audiotrack meets minimum standards to be encoded
docstring_tokens: determines if the the audiotrack meets minimum standards to be encoded