From patchwork Tue Feb 15 11:50:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 34305 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:90eb:0:0:0:0 with SMTP id a11csp220474nkf; Tue, 15 Feb 2022 03:50:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJykb6IqnrPQoAlcbjTKQvfnSFSoab9x0TuYaLOSNtHeP/64erWBsDlC/jHqNIEyuMkj9Sof X-Received: by 2002:a17:907:a089:: with SMTP id hu9mr2716065ejc.680.1644925828555; Tue, 15 Feb 2022 03:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644925828; cv=none; d=google.com; s=arc-20160816; b=jwy2kk0nljLDszM/0A67Gxch94VDYyu+9qmXJMh5M6TQlcI0wlpuje1CQplcqDdCIs uLqZFkbQ+qy3zqnrPNFAa6XdJDyD/04RSQJMtsRObXsBlFH61rAmIAIj/OYPPuNHkQt3 wmEB2afoETpw0niPKbXHPakJZZtE6kqUG79LrjW46B0N8jR+IVNxqI3KhcVeuxGgvjhB sF1TGiu3vpdlhDO74rirVLkYLCqO1n5pBMD2L4xClqThXTPyqhCMg769Ub2obj68CzX7 B5lDz70WnmJ5xySzOP+88Te3/gZRMveQvjUXiEPQfh8kKZkvxDK/r59Tt1rX+9JHpo+c xKeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:dkim-signature:delivered-to; bh=/SJHEy6IS5jGYLCyO8cXoByxd7w7zTqjN2qAUhdL9z0=; b=cYk/geF1iV0TqpwCNJTHrHyOnXHgPGqM1Tag/5iZS4JIzN871kwkZ20wAo7oYfIJMf gxE/obOTTLsL5QC8unm4a8DwNU7AAuOeNAqUpI5GGZ/uLVcl5ufKZL2ph659Vr3c1XsF 6xliagUr8hv2T7HWyeYV18k5/25WICFhqOsBfTqHAXRXT5espgSmQWTuRHM9ny+Myanv VvY15lB/JUsNelqHK4DgUr7qE15YwZ7knh9c98yyjI1EcWrXQ2Nxx0/RO470fo2PVKhP 65azangActqqXcaeqrOZqDoE/DH6g3BEIlbx7qFkvauN/Uf27KQZRC0mwWi5rD6UjMCb o1aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm1 header.b=R4pSL9lF; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=DmUkzllq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dp13si15047215ejc.716.2022.02.15.03.50.28; Tue, 15 Feb 2022 03:50:28 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm1 header.b=R4pSL9lF; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=DmUkzllq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5A8DE68B2D4; Tue, 15 Feb 2022 13:50:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8F3F768B223 for ; Tue, 15 Feb 2022 13:50:19 +0200 (EET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 087F25C0302 for ; Tue, 15 Feb 2022 06:50:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 15 Feb 2022 06:50:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=73ObxinPD8s/5fv4cbci6hY3b0CndU44o/CNMmGaqxA=; b=R4pSL 9lFrHa8CVAv4oSczOWwmHGZ2ruHEtMG/cz1nrzaoZgMI5bdPh4/XSgeCfZeaXVvY uYvdJd9XXTjSFRBrDmoLzupBW95YXZOFfyZQI2Q95bDmkFS+GED+X7gaSw1rjXmw +J6d0lD4daoQD1caNhE72oEECSXJk7nLx+0zOVxORcmH9yUaC4GLS8rol85Gmg4o P8L9/dFa82Ipax+7typF6c6BPMpg+nt5p8SlUCNQSWrQwcg+dx1Pd3S9dCupQBfB BaKZ4bDnC7vNLRmuMbwcE3VEK83NHuE4s6oM+4rt+4Q2f3qhTg+xc0uZCBppp4iG D2MPK6KdCrX/H9upw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=73ObxinPD8s/5fv4cbci6hY3b0Cnd U44o/CNMmGaqxA=; b=DmUkzllqEf5yIu2OQ6KYAvETt4/X4M4twgx85WMZEaE97 DdS5TGVCJDJQHKnDjGMY6za6oInG3MmEAQ79Ac7N8E7lvsF6rA9OLp1zSYccfbsN wY/3bSACorVrLcw80fEl8vXd99JKi+9AUol3DPBIoTmhpdMx++lB8+Bk4zQlOVEQ nqcsleADYYfYuek+rNjoq1Frb9y3VTgORwIIAD/HpiC8qXxXDT/g/wSkShBnLH0U +1qoeiweIQScWi1rbqLySltVT+EE2hAeXqFAB8HpWIeoryjIF7efHokX/EqMr7e9 1ZkiqiR9UAAz37dRfontsyXrGRD7CGtL7VOGxR/iw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeeggdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpedflfdrucffvghkkhgvrhdfuceojhguvghksehithgrnhhimhhulhdr lhhiqeenucggtffrrghtthgvrhhnpefgveejjeevffehgfeiieetffeuudffgfffgeevje euhfeiuddvjefgteffveejgfenucffohhmrghinhepuhhpuggrthgvugdrthhoohhlshen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjuggvkh esihhtrghnihhmuhhlrdhlih X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 15 Feb 2022 06:50:15 -0500 (EST) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Tue, 15 Feb 2022 12:50:01 +0100 Message-Id: <20220215115001.18900-1-jdek@itanimul.li> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] tools: add general_assembly.pl X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 2jFacI5enfwE This script generates the current general assembly voters according to the criteria of '20 code commits in the last 36 months'. Signed-off-by: J. Dekker --- This was rejected last time but I would really like to get this in the tools or at least publicly recorded on mailing list since the script was updated. tools/general_assembly.pl | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tools/general_assembly.pl diff --git a/tools/general_assembly.pl b/tools/general_assembly.pl new file mode 100644 index 0000000000..c3aea14d79 --- /dev/null +++ b/tools/general_assembly.pl @@ -0,0 +1,45 @@ +#!/usr/bin/env perl + +use warnings; +use strict; + +use POSIX qw(strftime); +use Encode qw(decode); +use Data::Dumper; + +sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; + +my @shortlog = split /\n/, decode('UTF-8', `git log --pretty=format:"%aN <%aE>" --since="last 36 months" | sort | uniq -c | sort -r`, Encode::FB_CROAK); +my %assembly = (); + +foreach my $line (@shortlog) { + my ($count, $name, $email) = $line =~ m/^ *(\d+) *(.*?) <(.*?)>/; + + if ($count < 20) { + next; + } + + $name = trim $name; + + # assume people with 50 commits have at least 20 source commits + if ($count < 50) { + my $true = 0; + my @commits = split /(^|\n)commit [a-z0-9]{40}(\n|$)/, decode('UTF-8', `git log --name-only --use-mailmap --author="$email" --since="last 36 months"`, Encode::FB_CROAK); + foreach my $commit (@commits) { + if ($commit =~ /\n[\w\/]+\.(c|h|S|asm)/) { + $true++; + } + } + + if ($true < 20) { + next; + } + } + + $assembly{$name} = $email; +} + +printf("# %s %s", strftime("%Y-%m-%d", localtime), decode('UTF-8', `git rev-parse HEAD`, Encode::FB_CROAK)); +foreach my $email (sort values %assembly) { + printf("%s\n", $email); +}