You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by do...@apache.org on 2007/06/29 21:43:22 UTC

svn commit: r552009 - in /lucene/java/trunk: contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java src/test/org/apache/lucene/search/function/FunctionTestSetup.java

Author: doronc
Date: Fri Jun 29 12:43:19 2007
New Revision: 552009

URL: http://svn.apache.org/viewvc?view=rev&rev=552009
Log:
LUCENE-946: replace text from an online collection (used in 
few test cases) with text that is surely 100% free.

Modified:
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java
    lucene/java/trunk/src/test/org/apache/lucene/search/function/FunctionTestSetup.java

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java?view=diff&rev=552009&r1=552008&r2=552009
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleDocMaker.java Fri Jun 29 12:43:19 2007
@@ -24,17 +24,21 @@
   
   private int docID = 0;
 
-  static final String DOC_TEXT = // from a public first aid info at http://firstaid.ie.eu.org 
-    "Well it may be a little dramatic but sometimes it true. " +
-    "If you call the emergency medical services to an incident, " +
-    "your actions have started the chain of survival. " +
-    "You have acted to help someone you may not even know. " +
-    "First aid is helping, first aid is making that call, " +
-    "putting a Band-Aid on a small wound, controlling bleeding in large " +
-    "wounds or providing CPR for a collapsed person whose not breathing " +
-    "and heart has stopped beating. You can help yourself, your loved " +
-    "ones and the stranger whose life may depend on you being in the " +
-    "right place at the right time with the right knowledge.";
+  static final String DOC_TEXT =  
+    "Well, this is just some plain text we use for creating the " +
+    "test documents. It used to be a text from an online collection " +
+    "devoted to first aid, but if there was there an (online) lawyers " +
+    "first aid collection with legal advices, \"it\" might have quite " +
+    "probably advised one not to include \"it\"'s text or the text of " +
+    "any other online collection in one's code, unless one has money " +
+    "that one don't need and one is happy to donate for lawyers " +
+    "charity. Anyhow at some point, rechecking the usage of this text, " +
+    "it became uncertain that this text is free to use, because " +
+    "the web site in the disclaimer of he eBook containing that text " +
+    "was not responding anymore, and at the same time, in projGut, " +
+    "searching for first aid no longer found that eBook as well. " +
+    "So here we are, with a perhaps much less interesting " +
+    "text for the test, but oh much much safer. ";
   
   // return a new docid
   private synchronized int newdocid() throws NoMoreDataException {

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/function/FunctionTestSetup.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/function/FunctionTestSetup.java?view=diff&rev=552009&r1=552008&r2=552009
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/function/FunctionTestSetup.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/function/FunctionTestSetup.java Fri Jun 29 12:43:19 2007
@@ -49,17 +49,20 @@
   protected static final String FLOAT_FIELD = "fff";
   
   private static final String DOC_TEXT_LINES[] = {
-    // from a public first aid info at http://firstaid.ie.eu.org 
-    "Well it may be a little dramatic but sometimes it true. ",
-    "If you call the emergency medical services to an incident, ",
-    "your actions have started the chain of survival. ",
-    "You have acted to help someone you may not even know. ",
-    "First aid is helping, first aid is making that call, ",
-    "putting a Band-Aid on a small wound, controlling bleeding in large ",
-    "wounds or providing CPR for a collapsed person whose not breathing ",
-    "and heart has stopped beating. You can help yourself, your loved ",
-    "ones and the stranger whose life may depend on you being in the ",
-    "right place at the right time with the right knowledge.",
+    "Well, this is just some plain text we use for creating the ",
+    "test documents. It used to be a text from an online collection ",
+    "devoted to first aid, but if there was there an (online) lawyers ",
+    "first aid collection with legal advices, \"it\" might have quite ",
+    "probably advised one not to include \"it\"'s text or the text of ",
+    "any other online collection in one's code, unless one has money ",
+    "that one don't need and one is happy to donate for lawyers ",
+    "charity. Anyhow at some point, rechecking the usage of this text, ",
+    "it became uncertain that this text is free to use, because ",
+    "the web site in the disclaimer of he eBook containing that text ",
+    "was not responding anymore, and at the same time, in projGut, ",
+    "searching for first aid no longer found that eBook as well. ",
+    "So here we are, with a perhaps much less interesting ",
+    "text for the test, but oh much much safer. ",
   };
   
   protected Directory dir;