parsecmonkey / repomainforpy Goto Github PK
View Code? Open in Web Editor NEWA sample program for repository mining using GitPython.
License: MIT License
A sample program for repository mining using GitPython.
License: MIT License
多い順でランキング
草
pic/frequency_words.png
赤線とかで重ねる
縦軸:コミット数
横軸:日付
すでにクローン済みです
と、表示される。解析できるのは最後にクローンしたリポジトリ。
$ exit()
終了
標準出力をファイルにする
May とかで
'Contributor',
'Commits(%)',
'+lines',
'-lines',
'First commit',
'Last commit',
'Active days',
'Ranking'
picフォルダに保存
commit_no,author,committed_datetime,hexsha,message
全てのコミット数を表示している
STOP_WORDS = [" ", " ", "[", "]", ",", ".", "、", "。", "#", "-", "_"] # ストップワード
cmd_log.pyの作成
日本語は名詞のみ出力するように
名詞連結もするように.
log
@parsecmonkey
クラス,ファイル,関数,変数の命名規則はありますか?
>> log
みたいな
コントリビュータ:[人数]
コマンド一覧を表示
縦軸:コミット数
横軸:日付
変更したファイル数:74
・追加した行数:925
・削除した行数:357
・変更行の合計:1282
diff.log: 100%|███████████████████████████████████████████████████████████████████████| 24/24 [00:01<00:00, 13.84it/s]
▼こういうの
Merge pull request #90 from nitta-lab-2021/michishitaEdit
diff
"ように", "修正", "追加", "削除", "作成", "変更", "編集", "更新", "整理", "調整"
$ clone [repository url]
とりあえず "+", "-" が最初にある行のみ
print(commit.author, commit.committed_datetime, commit.hexsha)
$ plot
こちらの環境ではseabornで読み込まれている"cmd"モジュールと,RepoMainForPyで読み込まれている,"cmd.py"のモジュールが循環参照します.
ということで,"cmd.py"を別のファイル名に書き換えておいてほしいです.
_____ _____ _
| _ |___ ___ ___ | |_|___ ___
| _| _| . | . || | | | | | _|
|_|\__|___| _|___||_|_|_|_|_|_|___| for Py
|_|
英数字と記号を除く
コミット履歴からコントリビュータをリスト化
commit.message.startswith("Merge pull request")
現在,wordcloudの機能ではフォントファイルのパスをWindowsの標準フォント先(C:\Windows\Fonts以下)に指定しています.
これでは,OSが限定されてしまったり,フォントパスを変更しているコンピュータでの実行ができなくなります.
そこで,フリーのフォントファイルを組み込みたいのですが,そのフォントファイルのパスはどこにすれば良いでしょうか?
RepoMainForPyの直下に"data"ディレクトリを作成しておいてよろしいでしょうか?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.