ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">extension</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">ext</span> }
    <span class="ruby-identifier">most_frequent_ct</span> = <span class="ruby-identifier">content_types_arr</span>.<span class="ruby-identifier">group_by</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">ct</span><span class="ruby-operator">|</span> <span cl