anchor.diff:        if (pv == null) continue;
   
         final analysisView = analysisViews[i];
  -      final double popularity =
  -          popularityStorage.lookup(pv.package) ?? mockScores[pv.package] ?? 0.0;
  +      final double popularity = popularityStorage.lookup(pv.package) ??
  +          mockScores[pv.package]?.toDouble() ??
  +          0.0;
         final double maintenance = _calculateMaintenance(p, pv);
   
         results[i] = new PackageDocument(
  
positive.code:   final Storage storage;
    final Bucket bucket;
  
    final Map<String, double> _values = {};
  
    PopularityStorage(this.storage, this.bucket);
  
  
negative.code:     final summary = new Summary(rawTotals.values);
      for (String package in rawTotals.keys) {
        final int raw = rawTotals[package];
        _values[package] = summary.bezierScore(raw).toDouble();
      }
      _logger.info('Popularity updated for ${items.length} packages.');
    }
  