Drat
A distributed, parallelized (Map Reduce) wrapper around Apache RAT™ to allow it to complete on large code repositories of multiple file types where Apache RAT™ hangs forever.
Install / Use
/learn @apache/DratREADME
Apache Distributed Release Audit Tool (DRAT)™
A distributed, parallelized (Map Reduce) wrapper around Apache RAT™ (Release Audit Tool). RAT is used to check for proper licensing in software projects. However, RAT takes a prohibitively long time to analyze large repositories of code, since it can only run on one JVM. Furthermore, RAT isn't customizable by file type or file size and provides no incremental output. This wrapper dramatically speeds up the process by leveraging Apache OODT™ to parallelize and workflow the following components:
- Apache Solr™ based exploration of a CM repository (e.g., Git, SVN, etc.) and classification of that repository based on MIME type using Apache Tika™.
- A MIME partitioner that uses Apache Tika™ to automatically deduce and classify by file type and then partition Apache RAT™ jobs based on sets of 100 files per type (configurable) -- the M/R "partitioner"
- A throttle wrapper for RAT to MIME targeted Apache™ RAT. -- the M/R "mapper"
- A reducer to "combine" the produced RAT logs together into a global RAT report that can be used for stats generation. -- the M/R "reducer"
See the wiki for more information on installing and running DRAT:
- Installation instructions
- How to run
- How to re-run
- How to interact with DRAT
- Vagrant setup
- Excluding files from analysis
- Running DRAT on multiple repositories
- Running the DRAT Proteus GUI
You can clone the wiki by running
git clone https://github.com/apache/drat.wiki.git
Visit our new website drat.apache.org at the Apache Software Foundation.
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
