<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2002-2004 The Apache Software Foundation or its licensors,
  as applicable.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document> 
  <header> 
    <title>Welcome to the org.apache.forrest.plugin.gallery Plugin</title> 
  </header> 
  <body> 
    <section>
      <title>Apache Forrest - org.apache.forrest.plugin.gallery Plugin</title>
      <p>This plugin creates a photo album from photographs.</p>
      
      <p>The pictures are expected under 
      <code>{project:content.xdocs}/images/gallery/**</code> in 
      folders called <code>preview</code>, <code>small</code> and  
      <code>big</code>.</p>
      
      <p>To view a screen of thumbnails (generated from the <code>preview</code>
      directory), you need to request an URL in the form of 
      <code>gallery/**/index.html</code>. By default 20 pictures will be 
      displayed. If you have more than 20 then you will need to use an URL in
      the form of <code>gallery/**/index_X.html</code> (where X is the page 
      number you want to view). 
      See our <a href="gallery/demo/index_1.html">demo index</a> for an example.</p>
      
      <p>To view a single picture at a size optimised for the delivery mecahnism 
      (generated from the <code>small</code> directory), you need to request an 
      URL in the form of <code>gallery/**/pic_PICTURE_NUMBER.html</code>,
      where PICTURE_NUMBER is the number of the picture you want to display.
      See our <a href="gallery/demo/pic_1.html">demo one picture</a>,
      <a href="gallery/demo/pic_2.html">demo two picture</a>, 
      <a href="gallery/demo/pic_3.html">demo three picture</a> for examples.</p>
      
      <p>To view a single picture at its natural size 
      (generated from the <code>big</code> directory), you need to request an 
      URL in the form of <code>gallery/**/fullPic_PICTURE_NUMBER.html</code>.
      See our <a href="gallery/demo/fullPic_1.html">demo one picture</a>,
      <a href="gallery/demo/fullPic_2.html">demo two picture</a>, 
      <a href="gallery/demo/fullPic_3.html">demo three picture</a> for examples.</p>
      
      <note>To create the relevant directory stuctures for your gallery simply
      run the following script (unix only). We hope to enhance this plugin
      so that it will automatically create the relevant images for you, but
      for now you must do it by hand.
      <code>
      for i; do
        echo -n "Converting:" $i "... ";
        convert -size 100x100 $i -resize 100x100 preview/$i;
        convert -size 400x400 $i -resize 100x100 small/$i;
        convert -size 800x800 $i -resize 100x100 big/$i;
        echo "done.";</code> 
</note>
    </section><commit_msg>Add missing 'done' to shell script example.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2002-2004 The Apache Software Foundation or its licensors,
  as applicable.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document> 
  <header> 
    <title>Welcome to the org.apache.forrest.plugin.gallery Plugin</title> 
  </header> 
  <body> 
    <section>
      <title>Apache Forrest - org.apache.forrest.plugin.gallery Plugin</title>
      <p>This plugin creates a photo album from photographs.</p>
      
      <p>The pictures are expected under 
      <code>{project:content.xdocs}/images/gallery/**</code> in 
      folders called <code>preview</code>, <code>small</code> and  
      <code>big</code>.</p>
      
      <p>To view a screen of thumbnails (generated from the <code>preview</code>
      directory), you need to request an URL in the form of 
      <code>gallery/**/index.html</code>. By default 20 pictures will be 
      displayed. If you have more than 20 then you will need to use an URL in
      the form of <code>gallery/**/index_X.html</code> (where X is the page 
      number you want to view). 
      See our <a href="gallery/demo/index_1.html">demo index</a> for an example.</p>
      
      <p>To view a single picture at a size optimised for the delivery mecahnism 
      (generated from the <code>small</code> directory), you need to request an 
      URL in the form of <code>gallery/**/pic_PICTURE_NUMBER.html</code>,
      where PICTURE_NUMBER is the number of the picture you want to display.
      See our <a href="gallery/demo/pic_1.html">demo one picture</a>,
      <a href="gallery/demo/pic_2.html">demo two picture</a>, 
      <a href="gallery/demo/pic_3.html">demo three picture</a> for examples.</p>
      
      <p>To view a single picture at its natural size 
      (generated from the <code>big</code> directory), you need to request an 
      URL in the form of <code>gallery/**/fullPic_PICTURE_NUMBER.html</code>.
      See our <a href="gallery/demo/fullPic_1.html">demo one picture</a>,
      <a href="gallery/demo/fullPic_2.html">demo two picture</a>, 
      <a href="gallery/demo/fullPic_3.html">demo three picture</a> for examples.</p>
      
      <note>To create the relevant directory stuctures for your gallery simply
      run the following script (unix only). We hope to enhance this plugin
      so that it will automatically create the relevant images for you, but
      for now you must do it by hand.
      <code>
      for i; do
        echo -n "Converting:" $i "... ";
        convert -size 100x100 $i -resize 100x100 preview/$i;
        convert -size 400x400 $i -resize 100x100 small/$i;
        convert -size 800x800 $i -resize 100x100 big/$i;
        echo "finished.";
      done
      </code> 
</note>
    </section>
{'fraction_non_alphanumeric': 0.10902921215697846, 'fraction_numerical': 0.01947477131897315, 'mean_word_length': 2.9458672875436553, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 2, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '5532720', 'n_tokens_mistral': 2125, 'n_tokens_neox': 1944, 'n_words': 753}