Petr Tsvetkov commited on
Commit
ea84073
β€’
1 Parent(s): 02ebb6e

Display the end-to-start field

Browse files
Files changed (1) hide show
  1. change_visualizer.py +5 -1
change_visualizer.py CHANGED
@@ -19,7 +19,8 @@ def update_dataset_view(diff_idx, df):
19
  df.iloc[diff_idx]['commit_msg_start'],
20
  df.iloc[diff_idx]['commit_msg_end'],
21
  df.iloc[diff_idx]['session'],
22
- f"https://github.com/{df.iloc[diff_idx]['repo']}/commit/{df.iloc[diff_idx]['hash']}")
 
23
 
24
 
25
  def update_dataset_view_manual(diff_idx):
@@ -51,6 +52,9 @@ if __name__ == '__main__':
51
  start_view = gr.Textbox(interactive=False, label="Start message", container=True)
52
  end_view = gr.Textbox(interactive=False, label="End message", container=True)
53
  session_view = gr.Textbox(interactive=False, label="Session", container=True)
 
 
 
54
  link_view = gr.Markdown()
55
 
56
  view = [
 
19
  df.iloc[diff_idx]['commit_msg_start'],
20
  df.iloc[diff_idx]['commit_msg_end'],
21
  df.iloc[diff_idx]['session'],
22
+ str(df.iloc[diff_idx]['end_to_start']),
23
+ f"https://github.com/{df.iloc[diff_idx]['repo']}/commit/{df.iloc[diff_idx]['hash']}",)
24
 
25
 
26
  def update_dataset_view_manual(diff_idx):
 
52
  start_view = gr.Textbox(interactive=False, label="Start message", container=True)
53
  end_view = gr.Textbox(interactive=False, label="End message", container=True)
54
  session_view = gr.Textbox(interactive=False, label="Session", container=True)
55
+ is_end_to_start_view = gr.Textbox(interactive=False,
56
+ label="Is generated on the 'end-to-start' synthesis step?",
57
+ container=True)
58
  link_view = gr.Markdown()
59
 
60
  view = [