Kitxuuu commited on
Commit
982652e
·
verified ·
1 Parent(s): a5cf409

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/META-INF/services/org.apache.tika.parser.Parser +15 -0
  2. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1653-norepeat.xml +32 -0
  3. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-values.xml +26 -0
  4. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-parameterized-decorated.xml +39 -0
  5. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-throw-default.xml +30 -0
  6. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-warn-per-parser.xml +29 -0
  7. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3551-xmlreaderutils.xml +21 -0
  8. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3557-no-output-parser.xml +42 -0
  9. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3594.xml +26 -0
  10. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-fields.xml +40 -0
  11. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695.xml +33 -0
  12. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-866-invalid.xml +22 -0
  13. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/emitters-mock-throw-on-check.xml +27 -0
  14. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-config.xml +29 -0
  15. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-noname-config.xml +32 -0
  16. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/detect/tika-example.nnmodel +2 -0
  17. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/io/test.txt +1 -0
  18. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/basic_embedded.xml +35 -0
  19. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/example.xml +47 -0
  20. local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/mock_times.xml +26 -0
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/META-INF/services/org.apache.tika.parser.Parser ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ org.apache.tika.parser.mock.MockParser
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1653-norepeat.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.CompositeParser">
21
+ <parser class="org.apache.tika.parser.EmptyParser">
22
+ <mime>hello/world1</mime>
23
+ </parser>
24
+ <parser class="org.apache.tika.parser.EmptyParser">
25
+ <mime>hello/world2</mime>
26
+ </parser>
27
+ </parser>
28
+ <parser class="org.apache.tika.parser.EmptyParser">
29
+ <mime>hello/world</mime>
30
+ </parser>
31
+ </parsers>
32
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-bad-values.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DummyParameterizedParser">
21
+ <params>
22
+ <param name="xint" type="int">When in the course of human events</param>
23
+ </params>
24
+ </parser>
25
+ </parsers>
26
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-1986-parameterized-decorated.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ ~ contributor license agreements. See the NOTICE file distributed with
5
+ ~ this work for additional information regarding copyright ownership.
6
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ ~ (the "License"); you may not use this file except in compliance with
8
+ ~ the License. You may obtain a copy of the License at
9
+ ~
10
+ ~ http://www.apache.org/licenses/LICENSE-2.0
11
+ ~
12
+ ~ Unless required by applicable law or agreed to in writing, software
13
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
14
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ ~ See the License for the specific language governing permissions and
16
+ ~ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DummyParameterizedParser">
21
+ <params>
22
+ <param name="testparam" type="string">testparamval</param>
23
+ <param name="xshort" type="short">1000</param>
24
+ <param name="xint" type="int">999999999</param>
25
+ <param name="xlong" type="long">9999999999999</param>
26
+ <param name="xbigint" type="bigint">99999999999999999999999999999999999999999999999</param>
27
+ <param name="xfloat" type="float">10.2</param>
28
+ <param name="xbool" type="bool">true</param>
29
+ <param name="xdouble" type="double">4.6</param>
30
+ <param name="xurl" type="url">http://apache.org</param>
31
+ <!-- for cross platform testing, can't include / in file -->
32
+ <param name="xfile" type="file">somefile</param>
33
+ <param name="xuri" type="uri">tika://customuri?param=value</param>
34
+ </params>
35
+ <mime>application/xml</mime>
36
+ </parser>
37
+
38
+ </parsers>
39
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-throw-default.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <service-loader initializableProblemHandler="throw"/>
20
+ <parsers>
21
+ <parser-exclude class="org.apache.tika.parser.DefaultParser"/>
22
+ <parser class="org.apache.tika.parser.DummyInitializableParser">
23
+ <params>
24
+ <param name="shortA" type="short">500</param>
25
+ <param name="shortB" type="short">501</param>
26
+ </params>
27
+ </parser>
28
+
29
+ </parsers>
30
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-2389-warn-per-parser.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser-exclude class="org.apache.tika.parser.DefaultParser"/>
21
+ <parser class="org.apache.tika.parser.DummyInitializableParser" initializableProblemHandler="warn">
22
+ <params>
23
+ <param name="shortA" type="short">500</param>
24
+ <param name="shortB" type="short">501</param>
25
+ </params>
26
+ </parser>
27
+
28
+ </parsers>
29
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3551-xmlreaderutils.xml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <!-- maxEntityExpansions="..." is not defined, should take the default value -->
20
+ <xml-reader-utils poolSize="10"/>
21
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3557-no-output-parser.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.external2.ExternalParser">
21
+ <params>
22
+ <param name="supportedTypes" type="list">
23
+ <string>application/something</string>
24
+ </param>
25
+ <param name="commandLine" type="list">
26
+ <string>file</string>
27
+ <string>-b</string>
28
+ <string>--mime-type</string>
29
+ <string>${INPUT_FILE}</string>
30
+ </param>
31
+ <param name="checkCommandLine" type="list">
32
+ <string>file</string>
33
+ <string>--version</string>
34
+ </param>
35
+ <param name="checkExitValues" type="list">
36
+ <!-- which exit values confirm that the application basically works -->
37
+ <int>0</int>
38
+ </param>
39
+ </params>
40
+ </parser>
41
+ </parsers>
42
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3594.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser"/>
21
+ </parsers>
22
+ <autoDetectParserConfig>
23
+ <spoolToDisk>12345</spoolToDisk>
24
+ <outputThreshold>6789</outputThreshold>
25
+ </autoDetectParserConfig>
26
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695-fields.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser"/>
21
+ </parsers>
22
+ <autoDetectParserConfig>
23
+ <params>
24
+ <spoolToDisk>12345</spoolToDisk>
25
+ <outputThreshold>6789</outputThreshold>
26
+ </params>
27
+ <metadataWriteFilterFactory class="org.apache.tika.metadata.writefilter.StandardWriteFilterFactory">
28
+ <params>
29
+ <maxKeySize>999</maxKeySize>
30
+ <maxFieldSize>10001</maxFieldSize>
31
+ <maxTotalEstimatedBytes>241</maxTotalEstimatedBytes>
32
+ <maxValuesPerField>100</maxValuesPerField>
33
+ <includeFields>
34
+ <field>dc:creator</field>
35
+ <field>dc:title</field>
36
+ </includeFields>
37
+ </params>
38
+ </metadataWriteFilterFactory>
39
+ </autoDetectParserConfig>
40
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-3695.xml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.DefaultParser"/>
21
+ </parsers>
22
+ <autoDetectParserConfig>
23
+ <params>
24
+ <spoolToDisk>12345</spoolToDisk>
25
+ <outputThreshold>6789</outputThreshold>
26
+ </params>
27
+ <metadataWriteFilterFactory class="org.apache.tika.metadata.writefilter.StandardWriteFilterFactory">
28
+ <params>
29
+ <maxTotalEstimatedBytes>350</maxTotalEstimatedBytes>
30
+ </params>
31
+ </metadataWriteFilterFactory>
32
+ </autoDetectParserConfig>
33
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/TIKA-866-invalid.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <parsers>
20
+ <parser class="org.apache.tika.parser.AutoDetectParser"/>
21
+ </parsers>
22
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/emitters-mock-throw-on-check.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <emitters>
20
+ <emitter class="org.apache.tika.pipes.emitter.MockEmitter">
21
+ <params>
22
+ <name>mock</name>
23
+ <throwOnCheck>true</throwOnCheck>
24
+ </params>
25
+ </emitter>
26
+ </emitters>
27
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-config.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <fetchers>
20
+ <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
21
+ <name>fs1</name>
22
+ <basePath>/my/base/path1</basePath>
23
+ </fetcher>
24
+ <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
25
+ <name>fs2</name>
26
+ <basePath>/my/base/path2</basePath>
27
+ </fetcher>
28
+ </fetchers>
29
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/config/fetchers-noname-config.xml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Licensed to the Apache Software Foundation (ASF) under one or more
4
+ contributor license agreements. See the NOTICE file distributed with
5
+ this work for additional information regarding copyright ownership.
6
+ The ASF licenses this file to You under the Apache License, Version 2.0
7
+ (the "License"); you may not use this file except in compliance with
8
+ the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing, software
13
+ distributed under the License is distributed on an "AS IS" BASIS,
14
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ See the License for the specific language governing permissions and
16
+ limitations under the License.
17
+ -->
18
+ <properties>
19
+ <fetchers>
20
+ <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
21
+ <params>
22
+ <name>fs1</name>
23
+ <basePath>/my/base/path1</basePath>
24
+ </params>
25
+ </fetcher>
26
+ <fetcher class="org.apache.tika.pipes.fetcher.fs.FileSystemFetcher">
27
+ <params>
28
+ <basePath>/my/base/path2</basePath>
29
+ </params>
30
+ </fetcher>
31
+ </fetchers>
32
+ </properties>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/detect/tika-example.nnmodel ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #nn application/x-grib 256 2 1 0.0208829625450076
2
+ -0.05145498 5.127922 -3.078527 -3.988763 -0.2107816 0.8629464 -0.0002683103 3.268235 -0.1322597 2.256234 0.1585416 2.448373 -0.181859 -2.230397 -0.1796804 -3.778733 0.04216435 -5.247452 -0.07137667 4.015641 0.3369519 -2.232862 0.9872297 3.434345 0.01537457 -2.99547 0.05939847 -0.4262142 0.6431364 4.015367 -0.1052946 -0.5597504 -0.02748792 1.406441 -0.00300846 1.756262 0.09294704 -1.096173 -0.006158207 -1.221678 -0.02583992 -3.162681 0.08686034 1.269717 -0.01359701 -4.19245 -0.1400172 -3.274052 -0.0260648 -2.134415 0.02505031 -0.7995273 -0.01464903 -5.054871 0.06927952 -1.541063 -0.1199119 -1.126015 0.1847894 0.3805432 0.1132536 -1.962234 0.1468857 -0.5322409 -0.1450888 -0.1371484 3.097646 7.200917 0.17761 -0.5256572 0.8017177 0.8039271 0.2925865 3.100624 0.1743965 4.369426 0.1317674 -0.833718 0.220852 -4.685311 0.220108 1.81378 0.283003 2.38208 0.3301778 -3.338501 0.2043622 2.858757 0.1801032 -2.616795 0.5628204 1.599731 0.6208351 1.161804 0.8223767 -2.614317 0.9187943 -2.446297 1.350831 2.777917 0.8146963 -0.9438954 0.8172006 -0.3445128 0.6723926 0.9863181 0.5705485 2.406452 0.6185437 -1.202793 0.6450134 1.808502 0.4259292 -7.941289 0.6099652 3.878562 0.4132371 0.98963 0.3298724 -2.366126 0.3319441 -0.8838808 0.6854118 3.12115 0.525016 -1.727541 0.7185858 1.830994 0.03694244 -3.686851 -0.09525806 3.558239 0.4775859 1.931869 0.293615 -3.693917 0.4294216 -5.695489 0.3452209 0.6723521 0.4919632 -0.7649217 0.3818015 2.153055 0.3088684 -0.655546 0.2931553 -1.343124 0.4890785 -0.7017448 0.1028709 -2.578852 0.1097999 -0.3793636 0.3154411 -2.476895 0.3301697 -1.578032 0.4468783 0.9338115 0.3876319 0.1819231 0.3975481 2.377385 0.07344178 -0.5816987 0.4968894 -3.409108 0.4824005 -0.2253791 0.538568 0.3602099 0.1838869 0.9865417 0.2429371 -0.2590284 0.1997649 -2.825891 0.1690305 -2.876223 0.1508797 -2.025365 0.0745675 1.403832 0.1730641 -3.619998 0.02000108 -1.345008 0.1982651 -4.596162 0.08308789 -0.08156122 0.2391607 0.06438381 -0.01053187 -3.724878 1.342193 0.8912752 0.6741032 -2.038227 1.02059 1.314822 1.046652 -0.09340967 1.746544 1.748925 0.7121063 2.712003 0.7263532 -0.4646987 0.8260612 -1.657031 1.326838 2.972081 0.3091417 -0.0007440437 0.4395537 0.2231857 1.106737 -1.463802 0.912596 2.458881 1.365523 2.234517 1.385396 -0.4650663 0.7839583 2.282071 0.2386854 0.9784987 1.273242 0.6254676 1.276118 2.447344 1.575805 4.515861 0.8364591 0.6976352 0.5248962 -2.899523 0.5404893 -1.394514 0.3592697 -0.9920228 0.6932542 -0.180825 0.2744942 -0.6203262 0.2417071 -1.224851 0.1811886 -0.8900446 0.226887 -3.733405 0.1735546 -1.547938 0.112908 -8.991437 0.1115473 -4.406975 0.1178586 2.36029 0.1271653 -2.011151 0.08239845 -0.1951623 0.04392552 -3.046913 0.05452365 -1.516051 0.1397218 1.094332 0.1264289 1.933882 0.1752298 -1.989354 0.1306208 -0.9046116 0.1277338 2.303931 0.1250716 -1.277528 0.1262729 2.467187 0.1100633 -0.01313957 0.2080954 0.3508277 0.2128501 0.8266836 0.1570878 -3.358276 0.1242704 0.5336581 0.2453244 1.62488 0.1280062 -2.309668 0.1366247 -2.19346 0.1809374 -1.296981 0.1988072 1.969289 0.108966 1.910149 0.1144941 1.112991 0.1896516 3.369206 0.1071244 -1.499693 0.2437382 -0.4268651 0.2060418 2.251279 0.1191459 -0.03434586 0.173683 2.421464 0.1856368 0.8361177 0.1358361 -1.145463 0.1938676 -0.5617768 0.2014952 0.9808323 0.1261575 3.778169 0.2198753 -2.851743 0.2107957 1.588071 0.2140176 -1.231923 0.2426582 3.296147 0.1962984 1.245569 0.2223071 1.98822 0.1688889 0.5244448 0.1442813 0.5712083 0.1423984 1.580774 0.1360883 3.032353 0.1284363 0.2361942 0.2330592 0.7644741 0.1345135 -0.2284832 0.177801 0.9684574 0.1846398 -0.8217517 0.1690076 -0.1556177 0.2140797 0.9469408 0.1869065 1.540043 0.2084914 1.695791 0.1887449 0.8586018 0.2197045 2.042192 0.1317169 -0.8347201 0.1562218 -1.021943 0.1533783 1.968931 0.1491463 0.9810904 0.1098978 1.055438 0.2106167 1.022286 0.199176 0.9168212 0.03894011 -0.3426502 0.1671793 -3.521834 0.1534467 -0.2374157 0.2013961 1.556842 0.1250643 2.738925 0.1591011 1.886823 0.1626787 -0.2158393 0.2056642 3.486286 0.1987337 2.471281 0.1744332 1.152822 0.1951747 -0.989242 0.1155556 0.5867982 0.08321315 2.675081 0.1303141 -2.584626 0.1609869 -1.254465 0.122685 -2.27439 0.1415207 1.642059 0.1458468 -2.672928 0.1453881 -5.031017 0.1312302 0.2756784 0.1731334 0.8576683 0.1351911 -2.385648 0.2008109 -0.2893286 0.2062319 2.538498 0.191823 -1.739293 0.1671868 -1.622128 0.1850325 2.469388 0.2514207 2.117658 0.2225232 2.403703 0.1996269 -1.039887 0.122257 -0.6789801 0.1378511 -4.054801 0.08070226 0.2997747 0.1447362 2.234673 0.1876959 2.499773 0.1622439 0.5804301 0.1345898 0.07422866 0.09716025 -0.8710974 0.1657741 -1.370054 0.1313368 -1.671961 0.1861922 -0.9497792 0.2265888 -1.500299 0.2406933 -0.639602 0.2041045 -0.02993134 0.1440134 1.211941 0.1917053 -2.045351 0.1995012 0.4286667 0.2419866 1.319268 0.05873292 3.849816 0.1642288 3.828327 0.2147195 -0.1579602 0.2119238 -1.37588 0.142787 1.026216 0.2192122 -0.106043 0.2299229 0.5020428 0.1666804 -1.020357 0.03175325 -4.244395 0.1417808 1.535539 0.2701716 2.742496 0.2501491 1.629031 0.08584132 1.70437 0.1870297 6.293977 0.1240707 6.969766 -1.00584 -2.592914 8.495434 8.769945 -32.94919
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/org/apache/tika/io/test.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Hello, World!
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/basic_embedded.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one
5
+ or more contributor license agreements. See the NOTICE file
6
+ distributed with this work for additional information
7
+ regarding copyright ownership. The ASF licenses this file
8
+ to you under the Apache License, Version 2.0 (the
9
+ "License"); you may not use this file except in compliance
10
+ with the License. You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing,
15
+ software distributed under the License is distributed on an
16
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ KIND, either express or implied. See the License for the
18
+ specific language governing permissions and limitations
19
+ under the License.
20
+ -->
21
+
22
+ <mock>
23
+
24
+ <metadata action="add" name="dc:creator">Nikolai Lobachevsky</metadata>
25
+ <write element="p">main_content</write>
26
+ <!-- auto detection wasn't working for some reason; add content-type as
27
+ is to trigger mock on the embedded -->
28
+ <embedded filename="embed1.xml" content-type="application/mock+xml">
29
+ &lt;mock&gt;
30
+ &lt;metadata action=&quot;add&quot; name=&quot;dc:creator&quot;&gt;embeddedAuthor&lt;/metadata&gt;
31
+ &lt;write element="p"&gt;some_embedded_content&lt;/write&gt;
32
+ &lt;/mock&gt;
33
+ </embedded>
34
+
35
+ </mock>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/example.xml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one
5
+ or more contributor license agreements. See the NOTICE file
6
+ distributed with this work for additional information
7
+ regarding copyright ownership. The ASF licenses this file
8
+ to you under the Apache License, Version 2.0 (the
9
+ "License"); you may not use this file except in compliance
10
+ with the License. You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing,
15
+ software distributed under the License is distributed on an
16
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ KIND, either express or implied. See the License for the
18
+ specific language governing permissions and limitations
19
+ under the License.
20
+ -->
21
+
22
+ <mock>
23
+ <!-- this file offers all of the options as documentation
24
+ Parsing should stop at an IOException, of course
25
+ -->
26
+
27
+ <!-- action can be "add" or "set" -->
28
+ <metadata action="add" name="dc:creator">Nikolai Lobachevsky</metadata>
29
+ <!-- element is the name of the sax event to write, p=paragraph
30
+ if the element is not specified, the default is <p> -->
31
+ <write element="p">hello world! the quick brown fox jumped over the lazy dog</write>
32
+ <!-- write something to System.out -->
33
+ <print_out>writing to System.out</print_out>
34
+ <!-- write something to System.err -->
35
+ <print_err>writing to System.err</print_err>
36
+ <!-- hang
37
+ millis: how many milliseconds to pause. The actual hang time will probably
38
+ be a bit longer than the value specified. heavy: whether or not the hang should do something computationally expensive.
39
+ If the value is false, this just does a Thread.sleep(millis).
40
+ This attribute is optional, with default of heavy=false.
41
+ pulse_millis: (required if "heavy" is true), how often to check to see
42
+ whether the thread was interrupted or that the total hang time exceeded the millis
43
+ interruptible: whether or not the parser will check to see if its thread
44
+ has been interrupted; this attribute is optional with default of true
45
+ -->
46
+
47
+ </mock>
local-test-tika-delta-02/afc-tika/tika-core/src/test/resources/test-documents/mock_times.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+
3
+ <!--
4
+ Licensed to the Apache Software Foundation (ASF) under one
5
+ or more contributor license agreements. See the NOTICE file
6
+ distributed with this work for additional information
7
+ regarding copyright ownership. The ASF licenses this file
8
+ to you under the Apache License, Version 2.0 (the
9
+ "License"); you may not use this file except in compliance
10
+ with the License. You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing,
15
+ software distributed under the License is distributed on an
16
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ KIND, either express or implied. See the License for the
18
+ specific language governing permissions and limitations
19
+ under the License.
20
+ -->
21
+
22
+ <mock>
23
+
24
+ <metadata action="add" name="dc:creator">Nikolai Lobachevsky</metadata>
25
+ <write element="p" times="30"> hello </write>
26
+ </mock>