This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- edited from original so might be some issues--> | |
| <table id='oss_report'> | |
| <template id="row"> | |
| <tr> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| <td></td> | |
| </tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param($path, $env) | |
| #note: the metrics.exe is managed in the nuget package file for this project | |
| #note: create and use a separate .sln file with only the projects that need scanning. Exclude test projects etc. | |
| # run local command: .\"Deployment Scripts\generate_code_metrics.ps1" "E:\code\ESSO" | |
| $metrics_exe = "$path\packages\Microsoft.CodeAnalysis.Metrics.3.3.0\Metrics\Metrics.exe" | |
| $sln_file = "$path\CodeMetrics.sln" | |
| $metricsHtmlFile = "$path\codeMetrics.html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <h1></h1> | |
| <div>My Friends</div> | |
| <ul></ul> | |
| </body> | |
| <script> | |
| // the html specification calls for having the script tag in the head, but this will error out because the body.h1 element would not rendered on the page yet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pivotDFM <- function(dfm){ | |
| dfm_dt <- dfm %>% | |
| convert(to ="data.frame") %>% | |
| setDT(keep.rownames = c("docid","doc_id")) #convert to data.table | |
| pivoted <- melt(dfm_dt, id.vars = "docid") %>% | |
| mutate(document = if_else( docid == 1, .$value[1], .$value[2])) %>% | |
| setcolorder(c("docid","document","variable","value")) %>% |
OlderNewer