Skip to content

Commit

Permalink
fix filtering
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Feb 3, 2022
1 parent 17cca2a commit e4bdc90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,14 @@ <h2>Similarity of error messages</h2>


function generate_plot(filename, height_extent, include_pre, include_post, height_added) {

d3.csv(filename, function(data) {

// Custom params per visualization
if (height_extent != 0) {
height_extent = height_extent || 150
}
height_added = height_added || 0
include_pre = include_pre || true
include_post = include_post || true

console.log(height_extent)

// Load topics, meta, and languages for each repo
Expand Down Expand Up @@ -424,6 +422,7 @@ <h2>Similarity of error messages</h2>
if (source_file == "(None,)") {
source_file = "none"
}

html = "<strong>source:</strong><br>" + source_file + "<br>"
if ((include_pre == true) || (include_pre == "true")) {
html += "<strong>pre:</strong><br> <span class='alert alert-info'>" + d.pre.replace("\n", "<br>") + "</span><br>"
Expand Down Expand Up @@ -530,6 +529,8 @@ <h2>Similarity of error messages</h2>
var height_extent = parseInt($(this).find(':selected').attr('data-height'))
var include_pre = $(this).find(':selected').attr('data-include-pre')
var include_post = $(this).find(':selected').attr('data-include-post')
console.log(include_pre)
console.log(include_post)
generate_plot(model_file, height_extent, include_pre, include_post, height_added)
});
generate_plot("text-software-embeddings.csv", 150, false, false, 0)
Expand Down

0 comments on commit e4bdc90

Please sign in to comment.