def get_language_percentages(langs)
      total = 0
      langs.each { |_, b| total += b }
      lang_percents = {}
      langs.each do |l, b|
        percent = self.class.calculate_percent(b, total.to_f)
        lang_percents[l] = percent.round(2)
      end
      lang_percents
    end
def get_language_percentages(langs)
      total = 0
      langs.each { |_, b| total += b }
      lang_percents = {}
      langs.each do |l, b|
        percent = self.class.calculate_percent(b, total.to_f)
        lang_percents[l] = percent.round(2)
      end
      lang_percents
    end
Gets the percentages for each language in a hash.
 @param langs [Hash] The language hash obtained by the get_langs methods.
 @return [Hash] The language percentages formatted as
   { Ruby: 50%, CoffeeScript: 50% }