From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wNXSLTY22l4VEQAA0tVLHw (envelope-from ) for ; Fri, 05 Jun 2020 12:10:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yGyhKTY22l40FQAA1q6Kng (envelope-from ) for ; Fri, 05 Jun 2020 12:10:30 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C28039401CD for ; Fri, 5 Jun 2020 12:10:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 703806DE1370; Fri, 5 Jun 2020 05:10:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CNkCCq_5eruB; Fri, 5 Jun 2020 05:10:25 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 5DD336DE0A43; Fri, 5 Jun 2020 05:10:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 51A226DE0A43 for ; Fri, 5 Jun 2020 05:10:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0B56mEJxubLS for ; Fri, 5 Jun 2020 05:10:21 -0700 (PDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by arlo.cworth.org (Postfix) with ESMTPS id 41B356DE0126 for ; Fri, 5 Jun 2020 05:10:21 -0700 (PDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id C928C1B00093; Fri, 5 Jun 2020 15:10:19 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1591359019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fvUrXnRqoKoivhGezVoVUb5/HgfDUUDxeZW3+K+RtTw=; b=Hd+6rmJPhMj0Yhw312ncu0shak6zXiObnuzKhuDgxfq2QB1WEImYXiyBNx/HagD7Lu+fKJ s7uNA4Ub6nDn+if6ijjCrWIY6sx+MW4PWwf+n208CCyF6jbHNtg33jXxHQN2mZivroxbNN 64tRiI1rW+MmYOUJXukP0f6cM5FXm1bg2a55sS5C4Elg5XKT5kNQl11g4OrMYNsAMd52XF GGRjyzq4K2Zimrg395xBY6rTlVzQCryy2Ns2wDWELyKfhDSWzcJmStKSNTCzKkDklrlZnN NYi2csrkO/+EoOC6Pz1EcEagPBtua5JWlbP1Bd9ABNrlHJo+6YiRdHPfTSB1MA== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] devel: script to calculate a list of authors. In-Reply-To: <20200605100733.1872255-1-david@tethera.net> References: <20200605100733.1872255-1-david@tethera.net> User-Agent: Notmuch/0.28.3+84~g41389bb (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1591359019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fvUrXnRqoKoivhGezVoVUb5/HgfDUUDxeZW3+K+RtTw=; b=wjBR008AoBww214u5wACdBwM0AZ48GIomIch9yVEArt0dbJoWl+k05u0zZejfjp4cUAvFc gQLGaG4F3OpRuFmYD7AaW7lpaiPFL2E7wgYE2PXxv/Naea3J2zwZovP0IkF3QHZ+xOap1G MhxfWNs9yF61y7YjUKlfjDSqzNwMMFQifBhkf/tnLnk68RmEjzQsUMX22UCqIL3VbL+bYn Pkksvy7sAIGSUl6XtDtZCQAHXf3UxX8VJyOJ1xidkjh75F2DmbhUZPw6XebFMeDJNrleHF 6u6hgYN3cs4Jhdx1S2BpfMvjIss/n1hZ8At3a1dnHU1rjx8QLAP8/wb9beS26g== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1591359019; a=rsa-sha256; cv=none; b=aHeIMdktf7aqmPZOt4hzaJcmOv9eevJMpQxdG3Lj/W1d2zh8J/vyJMVJv6o841jFSEwGDH fXDfTi4qjf8msifIWtgtuwDfuxz50ikMrtJtCbEM9BPHFvTSjRBWvGu0un9knGNrtDdooE TXq9EGLw9K97TviiWu7HGu9LVSWbmEcEeyV6D6eES2VNMk8LUuRFs43ibWtKYPjOjOjxwH pErCXNg3vqKTT0QIPCwIa30ngLHyYmkxh3R2JKPuQKmlqu6flST4pLBGtkIGuUp2zz79v6 AHnkTjZHrxRtbFr1xYXCYdoUQMTdmyw01Vlk/GFVYlcTW+ZSXUibK13X5aQMig== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=Hd+6rmJP; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.99 X-TUID: yFusxgN+Jyg6 On Fri, Jun 05 2020, David Bremner wrote: > As an initial heuristic, report anyone with at least 15 lines of code > in the current source tree. Test corpora are excluded, although > probabably this doesn't change much about the list of authors > produced. > --- > devel/author-scan.sh | 11 +++++++++++ > 1 file changed, 11 insertions(+) > create mode 100644 devel/author-scan.sh > > diff --git a/devel/author-scan.sh b/devel/author-scan.sh > new file mode 100644 > index 00000000..2d9c4af8 > --- /dev/null > +++ b/devel/author-scan.sh > @@ -0,0 +1,11 @@ > +#!/bin/sh > + > +FILE_EXCLUDE='corpora' > +AUTHOR_EXCLUDE='uncrustify' > +# based on the FSF guideline, for want of a better idea. > +THRESHOLD=15 > + > +git ls-files | grep -v -e "$FILE_EXCLUDE" | xargs -n 1 -d \\n \ > + git blame -w --line-porcelain -- | \ It worked !? =D -- good -- this indentation in line above is interesting... Tomi > + sed -n "/$AUTHOR_EXCLUDE/d; s/^[aA][uU][tT][hH][Oo][rR] //p" | \ > + sort -fd | uniq -ic | awk "\$1 >= $THRESHOLD" | sort -nr > -- > 2.26.2