Welcome to mirror list, hosted at ThFree Co, Russian Federation.

merge-auto-explain-logs « scripts - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0dff4fb33f8062c9492c071f679bccaeb57dd0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby
# frozen_string_literal: true

require "set"
require "json"

fingerprints = Set.new

ARGF.each_line do |line|
  fingerprint = JSON.parse(line)['fingerprint']
  $stdout.puts(line) && $stdout.flush if fingerprints.add?(fingerprint)
end

warn("auto_explain log contains #{fingerprints.size} entries")