From patchwork Wed Feb 16 01:49:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 34329 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6838:90eb:0:0:0:0 with SMTP id a11csp825614nkf; Tue, 15 Feb 2022 17:50:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqPJF9Ungr61kfvIsjdp4rWHe+0yClXKENdRr4yJrmh7Rv85ZfqLi6Luoe8/LeC5u7ED6a X-Received: by 2002:aa7:c251:0:b0:404:769b:adb3 with SMTP id y17-20020aa7c251000000b00404769badb3mr670206edo.98.1644976200066; Tue, 15 Feb 2022 17:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644976200; cv=none; d=google.com; s=arc-20160816; b=igY8PGRYOlehYXCeUtvfjV8mcnzRv9cEvxsl5j4CmDtI9U9PD0nyYOTZ2CK2RPabFZ VLw0DGmkoZOuFV8s384UPpOqMRjC2+2zULhvcGc5u5zGmxooox9q+yIOw3WmeRIo1K6b 6p5ery8hB+zXqpq54UkHoCiKPawgnqNBCV4R1JAoKD+OnZhZdB5ONBFbI/uK/3lLvast SJFY/fb8gDySYG/qn2/BpHBpGeZ3//C3kwKcSggBiHT8OM2rLKbOcG64u5H+utlCRrK7 2hDDJiZjPKauSZvxMACTa1bZ5VugwStlgaeJ1VQOmm1ta7qsSyFCz+unJdYMPtn7Y0R4 +Jlw== 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=zzAmkiyYhGV7e3gBV50RTbMR6AIAO+M65Ssc9DxgMcY=; b=mYhY5Yt7YnJs9fP/JlUMY7x4cPcjk4sYaQMZ2QPzoWIPaMvcgQtez3S6mXeeYGbX5/ m7wqnE7N/UYmWIjavV9hHkHDnACGSy0ulmmwzVwJ98TdPdcH48INxNb75EynokTN76ts l3TDiceRKBrav7z7FTdur+/IwOrHGAaHTsD5gQcbDXktnSkEPA8SvzPFbP5PZb0LMg5I FEv2bJiO2OEyf2rdZItuvQuhabofXUb472TKW46LUc820/ES34jDjkF270wWvekuldfs ZFUcIjIbDX/eg/dN/6DazCrf9Uf5suZHUvzoLyfhJ2nn86lZwVJDOB4urhe03ks0uwlV dChQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm1 header.b=SIjQFOkJ; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=cJ8d0gKM; 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 l4si7097010ejo.586.2022.02.15.17.49.59; Tue, 15 Feb 2022 17:50:00 -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=SIjQFOkJ; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm2 header.b=cJ8d0gKM; 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 D0F7968B2A8; Wed, 16 Feb 2022 03:49:56 +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 73F5568AFC2 for ; Wed, 16 Feb 2022 03:49:49 +0200 (EET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8B3415C02E9 for ; Tue, 15 Feb 2022 20:49:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 15 Feb 2022 20:49:48 -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=SO4qL1s2Tob8+6Hwum1iuptwW+oE+OLMa0w42Bm1TlE=; b=SIjQF OkJpOHTZNGGmKo3lSdynAhLatp/Dgkzxm3mpmB75SY3X3qL8zg9MnJWNtgT/0brc TcYDLRHSGtecFUhCGy7EVB2dq0xvDJADPiS5NXZvX8sJ0ESm9VBrpMDwo5zF3K5I CrXFi3NJxSRVjRJC6E06Sk033pCA9cIrhmSJv2UJYd9egh2B9nbALY2g+MsbjaCq hYeSOvTHNxqQs+g0OgTr4xf3QiAnq+M0qBgrItK9NP0ZSZnAeuBfgzqMihrPhqbC zwQoUurxkeEPtx+E+T2wwbXq9mRgbgo/+2E0nJvLdNKyqd9KVaHv2LJEfXwMByk2 plaYcb1ktLmQo4NeA== 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=SO4qL1s2Tob8+6Hwum1iuptwW+oE+ OLMa0w42Bm1TlE=; b=cJ8d0gKMacvx2wMifGE07hqk1C24u3ZxaBqNMP8L2h4DY gJo6bkZvtW/1k+YyVTjKvIAcgTxDZHN2gTVFZ27WzY/xTJegd6Rq5dZV7RC4rGh3 S/c0HSZ4S4ckXQdzsB6rl/igijXluxagU39hVkK/jPHy+lIHOz/2NiHfkyZx8+Xp kUACAjzTMbmUaIqgC0fgwfihAn1UYGj2bbVsOGrea501qOPIBmAd9AV5iDXblk+K J8/KkRaZuIPxDHEI7htHwrHDkaktF9peUbtXqaR2ktBoF9+r2HXDzFAUquGxuSbW 4ZBm3Ct4jGeQM1pTNnrL563fOl52Xm6MsbNojmCww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeehgdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpedflfdrucffvghkkhgvrhdfuceojhguvghksehithgrnhhimhhulhdr lhhiqeenucggtffrrghtthgvrhhnpeevgeduffehgfetvdeifedutddutdefuddtffetfe eulefhhfduueefffekieehgfenucffohhmrghinhepfhhfmhhpvghgrdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhguvghksehith grnhhimhhulhdrlhhi X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 15 Feb 2022 20:49:47 -0500 (EST) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Wed, 16 Feb 2022 02:49:29 +0100 Message-Id: <20220216014930.21629-1-jdek@itanimul.li> X-Mailer: git-send-email 2.32.0 (Apple Git-132) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 1/2] 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: iK8qQC76IEh5 This script generates the current general assembly voters according to the criteria of '20 commits in the last 36 months'. Signed-off-by: J. Dekker --- doc/dev_community/community.md | 3 +++ tools/general_assembly.pl | 40 ++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tools/general_assembly.pl diff --git a/doc/dev_community/community.md b/doc/dev_community/community.md index 21e08e20e3..516ca5c05e 100644 --- a/doc/dev_community/community.md +++ b/doc/dev_community/community.md @@ -25,6 +25,9 @@ proposal by a member of the General Assembly. They are part of the GA for two years, after which they need a confirmation by the GA. +A script to generate the current members of the general assembly (minus members +voted in) can be found in `tools/general_assembly.pl`. + ## Voting Voting is done using a ranked voting system, currently running on https://vote.ffmpeg.org/ . diff --git a/tools/general_assembly.pl b/tools/general_assembly.pl new file mode 100644 index 0000000000..898a6262ef --- /dev/null +++ b/tools/general_assembly.pl @@ -0,0 +1,40 @@ +#!/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; + 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) { + $true++; # if ($commit =~ /\n[\w\/]+\.(c|h|S|asm|texi)/); + } + + 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); +}