<commit_before>#! /bin/sh /usr/share/dpatch/dpatch-run
## 08_fix_cxx_includes.dpatch by <NAME> <<EMAIL>>
##
## DP: Add in missing include files for C++ examples to fix compile errors
## DP: with gcc 4.3. (This patch was taken from the upstream SVN repository.)

@DPATCH@

--- examples/c++/plc++demos.h	(revision 8091)
+++ examples/c++/plc++demos.h	(working copy)
@@ -8,7 +8,14 @@
 
 /* common includes */
 #include "plstream.h"
+
+/* plplot actually includes the C versions of these 2, but
+ * add here for completeness */
+#include <cstdio>
+#include <cstdlib>
+
 #include <iostream>
+#include <cstring>
 #include <cmath>
 
 /* common defines */
--- examples/c++/x21.cc	(revision 8092)
+++ examples/c++/x21.cc	(working copy)
@@ -27,7 +27,7 @@
 //---------------------------------------------------------------------------//
 
 #include "plc++demos.h"
-#include <time.h>
+#include <ctime>
 
 #if !defined(HAVE_ISNAN)
   #define isnan(x) ((x) != (x))
<commit_msg>Fixed paths of the hunks<commit_after>#! /bin/sh /usr/share/dpatch/dpatch-run
## 08_fix_cxx_includes.dpatch by <NAME> <<EMAIL>>
##
## DP: Add in missing include files for C++ examples to fix compile errors
## DP: with gcc 4.3. (This patch was taken from the upstream SVN repository.)

@DPATCH@

--- plplot-5.8.0.orig/examples/c++/plc++demos.h	(revision 8091)
+++ plplot-5.8.0/examples/c++/plc++demos.h	(working copy)
@@ -8,7 +8,14 @@
 
 /* common includes */
 #include "plstream.h"
+
+/* plplot actually includes the C versions of these 2, but
+ * add here for completeness */
+#include <cstdio>
+#include <cstdlib>
+
 #include <iostream>
+#include <cstring>
 #include <cmath>
 
 /* common defines */
--- plplot-5.8.0.orig/examples/c++/x21.cc	(revision 8092)
+++ plplot-5.8.0/examples/c++/x21.cc	(working copy)
@@ -27,7 +27,7 @@
 //---------------------------------------------------------------------------//
 
 #include "plc++demos.h"
-#include <time.h>
+#include <ctime>
 
 #if !defined(HAVE_ISNAN)
   #define isnan(x) ((x) != (x))

{'fraction_non_alphanumeric': 0.2563845768652979, 'fraction_numerical': 0.03405107661492238, 'mean_word_length': 2.7206703910614527, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4926730', 'n_tokens_mistral': 795, 'n_tokens_neox': 723, 'n_words': 188}