<commit_before>--- xiv-0.9/xiv.cpp
+++ xiv-0.9_modified/xiv.cpp
@@ -101,6 +101,7 @@
 bool displayQuickview=true; // Display overview
 bool refresh=false; // Need a window refresh
 bool run=true; // Keeping running while it's true
+bool slideshow=false; // slideshow mode
 
 // Histogram of current image
 int histMax;
@@ -1382,6 +1383,10 @@
 	{
 	  fullscreen=true;
 	}
+      else if(0==strcmp(argv[i],"-slideshow"))
+	{
+	  slideshow=true;
+	}
       else if(0==strcmp(argv[i],"-no-overview"))
 	{
 	  displayQuickview=false;
@@ -2104,7 +2109,11 @@
       {
 	run=false;
       }
-
+	else if(slideshow==true)
+	{
+		usleep(5000);
+		next_image(1);
+	}
   } while (run); 
   
   // Cleanup before leaving<commit_msg>moved the slideshow bit to not be an event driven thing, but to the beginning, prior to event handling<commit_after>--- xiv-0.9/xiv.cpp
+++ xiv-0.9_modified/xiv.cpp
@@ -101,6 +101,7 @@
 bool displayQuickview=true; // Display overview
 bool refresh=false; // Need a window refresh
 bool run=true; // Keeping running while it's true
+bool slideshow=false; // slideshow mode
 
 // Histogram of current image
 int histMax;
@@ -1382,6 +1383,10 @@
 	{
 	  fullscreen=true;
 	}
+      else if(0==strcmp(argv[i],"-slideshow"))
+	{
+	  slideshow=true;
+	}
       else if(0==strcmp(argv[i],"-no-overview"))
 	{
 	  displayQuickview=false;
@@ -1655,6 +1655,11 @@ int main (int argc, char** argv)
   bool leftdown=false;

   run=true;
+  else if(slideshow==true)
+  {
+    usleep(5000);
+       next_image(1);
+  }

   // Event Loop
   do{
{'fraction_non_alphanumeric': 0.17033678756476683, 'fraction_numerical': 0.05310880829015544, 'mean_word_length': 3.12, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4417081', 'n_tokens_mistral': 655, 'n_tokens_neox': 591, 'n_words': 129}