-
Notifications
You must be signed in to change notification settings - Fork 0
/
path.html
90 lines (86 loc) · 4.16 KB
/
path.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<title>FastFunc UI</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="./path.js"></script>
</head>
<body>
<iframe name="this-page" id="this-page" style="display: none;"></iframe>
<div class="position-absolute top-0 start-50 translate-middle-x">
<div class="position-relative">
<br>
<center><img src="LogoHeader.png" width="69%"></center>
<br><br>
<a href="/main" class="link-primary">Function Search</a>
<h2>Path Search</h2>
<form action="/path" id="path_form" method="GET" target="this-page" class="form-inline">
<label for="name" class="col-sm-2 col-form-label">Path contains name:</label>
<input type="text" id="name" name="name"><br><br>
<label for="name_cmp" class="col-sm-2 col-form-label">Name comparison method:</label>
<select name="name_cmp" id="name_cmp">
<option value="eq">Exact</option>
<option value="re">Regex</option>
<option value="lev" selected>Levenshtein distance (total)</option>
<option value="fsubstr">Levenshtein distance (partial)</option>
<option value="substr">Substring match</option>
<option value="subseq">Subsequence match</option>
<option value="sim">NLP Sentence-wise Similarity</option>
<option value="subsim">NLP Chunk-wise Similarity</option>
</select>
<br><br>
<label for="docs" class="col-sm-2 col-form-label">Path contains doc:</label>
<input type="text" id="docs" name="docs"><br><br>
<label for="doc_cmp" class="col-sm-2 col-form-label">Doc comparison method:</label>
<select name="doc_cmp" id="doc_cmp">
<option value="eq">Exact</option>
<option value="re">Regex</option>
<option value="lev">Levenshtein distance (total)</option>
<option value="fsubstr">Levenshtein distance (partial)</option>
<option value="substr">Substring match</option>
<option value="subseq">Subsequence match</option>
<option value="sim">NLP Sentence-wise Similarity</option>
<option value="subsim" selected>NLP Chunk-wise Similarity</option>
</select>
<br><br>
<label for="inputs" class="col-sm-2 col-form-label">Input Type(s)</label>
<input type="text" id="inputs" name="inputs"><br><br>
<label for="outputs" class="col-sm-2 col-form-label">Output Type(s)</label>
<input type="text" id="outputs" name="outputs"><br><br>
<div>
<label for="path_length" class="col-sm-2 col-form-label">Maximum Path Length</label>
<div class="d-inline p-2">
<input type="range" id="path_length" name="path_length" min="1" max="99" value="5" step="1"
oninput=updatePathLen("slider")
class="custom-range">
</div>
<div class="d-inline p-2">
<input type="number" id="path_length_t" name="discard_path_length" min="1" max="99" value="5"
oninput=updatePathLen("text")
class="form-control d-inline p-2">
</div>
</div>
<br><br>
<label for="strategy" class="col-sm-2 col-form-label">Search strategy:</label>
<select name="strategy" id="strategy">
<option value="dfs">Depth first search</option>
<option value="bfs">Breadth first search</option>
<option value="bestfs">Best first search</option>
</select>
<br><br>
<label for="cycles" class="col-sm-2 col-form-label">Allow Cycles</label>
<input type="checkbox" id="cycles" name="cycles">
<br><br>
<button type="button" class="btn btn-outline-secondary" onClick="searchAndDisplay()">Submit</button>
<button type="button" class="btn btn-outline-danger" onclick="clearResults()">Reset</button>
</form>
<br>
<br>
<div id="path_msg"></div>
<div id="paths"></div>
<div id="functions"></div>
</div>
<br><br>
</div>
</body>
</html>