소스 검색

Add Jinja shotness img

Vadim Markovtsev 8 년 전
부모
커밋
265962999b
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      README.md
  2. BIN
      doc/jinja.png

+ 5 - 2
README.md

@@ -197,7 +197,7 @@ can be visualized with t-SNE implemented in TF Projector.
 
 
 Thanks to Babelfish, hercules is able to measure how many times each structural unit has been modified.
 Thanks to Babelfish, hercules is able to measure how many times each structural unit has been modified.
 By default, it looks at functions; refer to [UAST XPath](https://doc.bblf.sh/user/uast-querying.html)
 By default, it looks at functions; refer to [UAST XPath](https://doc.bblf.sh/user/uast-querying.html)
-manual to set an other query. **Beta**
+manual to set an other query.
 
 
 ```
 ```
 hercules --shotness [--shotness-xpath-*]
 hercules --shotness [--shotness-xpath-*]
@@ -206,10 +206,13 @@ python3 labours.py -m shotness
 
 
 Couples analysis automatically loads "shotness" data if available.
 Couples analysis automatically loads "shotness" data if available.
 
 
+![Jinja2 functions grouped by structural hotness](doc/jinja.png)
+<p align="center"><code>hercules --shotness --pb https://github.com/pallets/jinja | python3 labours.py -m couples -f pb</code></p>
+
 #### Everything in a single pass
 #### Everything in a single pass
 
 
 ```
 ```
-hercules --burndown --burndown-files --burndown-people --couples [-people-dict=/path/to/identities]
+hercules --burndown --burndown-files --burndown-people --couples --shotness [-people-dict=/path/to/identities]
 python3 labours.py -m all
 python3 labours.py -m all
 ```
 ```
 
 

BIN
doc/jinja.png