Added R markdown
This commit is contained in:
parent
cbb326f904
commit
d07d7d3370
3 changed files with 19 additions and 2 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
setup_data <- function() {
|
||||||
|
system("get.data.bat")
|
||||||
|
diffs <- read.delim("data/diffs.txt")
|
||||||
|
commits <- read.csv("C:/Dev/Watchtower/data/commits.txt")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
10
Documentation.Rmd
Normal file
10
Documentation.Rmd
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: "Watchtower - Git Commits analysieren"
|
||||||
|
author: "Jannis von Hagen"
|
||||||
|
date: "`r Sys.Date()`"
|
||||||
|
output: html_document
|
||||||
|
---
|
||||||
|
```{r echo=FALSE}
|
||||||
|
source("Analyze.R")
|
||||||
|
setup_data()
|
||||||
|
```
|
|
@ -60,13 +60,13 @@ class Program
|
||||||
}
|
}
|
||||||
delete input;
|
delete input;
|
||||||
|
|
||||||
String cfile = new String();
|
String cfile = new String("commit,name,email,time,signed\n");
|
||||||
for(var i in commits)
|
for(var i in commits)
|
||||||
cfile.Append(scope $"{i.Data}\n");
|
cfile.Append(scope $"{i.Data}\n");
|
||||||
File.WriteAllText("../data/commits.txt", cfile);
|
File.WriteAllText("../data/commits.txt", cfile);
|
||||||
delete cfile;
|
delete cfile;
|
||||||
|
|
||||||
String dfile = new String();
|
String dfile = new String("commit add remove file\n");
|
||||||
for(var i in diffs)
|
for(var i in diffs)
|
||||||
dfile.Append(scope $"{i.Data}\n");
|
dfile.Append(scope $"{i.Data}\n");
|
||||||
File.WriteAllText("../data/diffs.txt", dfile);
|
File.WriteAllText("../data/diffs.txt", dfile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue