HenryStephen commited on
Commit
8a9743b
1 Parent(s): fe7d3f5

Update cosine distance

Browse files
app.py CHANGED
@@ -137,6 +137,10 @@ def load_code_kmeans_model():
137
 
138
  @st.cache_resource(show_spinner="Loading SimilarityCal model...")
139
  def load_similaritycal_model():
 
 
 
 
140
  sim_cal_model = PairClassifier()
141
  sim_cal_model.load_state_dict(torch.load(SIMILARITY_CAL_MODEL_PATH, map_location=device))
142
  sim_cal_model = sim_cal_model.to(device)
@@ -429,8 +433,8 @@ if __name__ == "__main__":
429
  {
430
  "name": query_doc.name,
431
  "topics": query_doc.topics,
432
- "topic cluster": topic_cluster_number,
433
  "code cluster": code_cluster_number,
 
434
  "stars": query_doc.stars,
435
  "license": query_doc.license,
436
  }
 
137
 
138
  @st.cache_resource(show_spinner="Loading SimilarityCal model...")
139
  def load_similaritycal_model():
140
+ """
141
+ The function to load SimilarityCal model
142
+ :return: the SimilarityCal model
143
+ """
144
  sim_cal_model = PairClassifier()
145
  sim_cal_model.load_state_dict(torch.load(SIMILARITY_CAL_MODEL_PATH, map_location=device))
146
  sim_cal_model = sim_cal_model.to(device)
 
433
  {
434
  "name": query_doc.name,
435
  "topics": query_doc.topics,
 
436
  "code cluster": code_cluster_number,
437
+ "topic cluster": topic_cluster_number,
438
  "stars": query_doc.stars,
439
  "license": query_doc.license,
440
  }
data/index_developing.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:18302406f5602e82bddf51bb37223a309f7f93bd518ff252f9ed4331a6d3cc6c
3
- size 226460129
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3837b4cb3f10cd0ff035201ef44ab655608b2877e5c89efc5cc63a69b666c415
3
+ size 226172318
data/kmeans_model_code_unixcoder.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb534645bce9fb19975873003be27e0b386df7550693caed46ee0f1822b16533
3
- size 967215
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45a9cc8a2e348d81a32ca5fda4e9690b1915d11347f1a343bc4124ae000b38de
3
+ size 500271
data/kmeans_model_topic_scibert.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:48272b4172b3dba079348462044f72f19a004ff65d6cd9222ef424468261f1fb
3
- size 967215
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36a1852f52907a12cb18fc90fe8b36d3049e123172d9c061c80b4b679685173e
3
+ size 500271
data/repo_code_clusters.json CHANGED
The diff for this file is too large to render. See raw diff
 
data/repo_code_clusters_developing.json CHANGED
The diff for this file is too large to render. See raw diff
 
data/repo_topic_clusters.json CHANGED
The diff for this file is too large to render. See raw diff
 
data/repo_topic_clusters_developing.json CHANGED
The diff for this file is too large to render. See raw diff