<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi all,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I completed an initial version of a web code snippet verification script. It can be found in the SciJava common repository at:</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> <a href="https://github.com/scijava/scijava-common/blob/master/bin/verify-code-snippets.pl">https://github.com/scijava/scijava-common/blob/master/bin/verify-code-snippets.pl</a></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
The initial use case was to verify that code snippets from the ImgLib2 examples page (<a href="http://fiji.sc/ImgLib2_Examples">http://fiji.sc/ImgLib2_Examples</a>) stay in sync with code in the Git repository (<a href="https://github.com/imagej/imglib/tree/master/imglib2/examples/src/main/java">https://github.com/imagej/imglib/tree/master/imglib2/examples/src/main/java</a>).</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
The script works by looking for a link to code on GitHub (of the form "<a href="https://github.com/.../blob/..">https://github.com/.../blob/..</a>.") preceding each code snippet.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">It is working well for the ImgLib2 Examples, so I have set up a Jenkins job to run it daily:</div><div style="background-color:rgb(255,255,255)">
<font color="#222222" face="arial, sans-serif"> <a href="http://jenkins.imagej.net/job/ImageJ-ImgLib-code-snippets/">http://jenkins.imagej.net/job/ImageJ-ImgLib-code-snippets/</a></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Later, I will update the various code snippets on <a href="http://developer.imagej.net">developer.imagej.net</a> as well and add them to the Jenkins job.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Regards,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Curtis</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">P.S. to Tobias: The script caught your recent changes to Examples 4 & 6. I updated the wiki page to match!</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div>