http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/clirr-ignored.xml ---------------------------------------------------------------------- diff --git a/clirr-ignored.xml b/clirr-ignored.xml deleted file mode 100644 index ed97259..0000000 --- a/clirr-ignored.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You 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. ---> - -<differences> - -</differences>
http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/clirr-ignored.xml ---------------------------------------------------------------------- diff --git a/commons-rng-core/clirr-ignored.xml b/commons-rng-core/clirr-ignored.xml new file mode 100644 index 0000000..ed97259 --- /dev/null +++ b/commons-rng-core/clirr-ignored.xml @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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. +--> + +<differences> + +</differences> http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/findbugs-exclude-filter.xml ---------------------------------------------------------------------- diff --git a/commons-rng-core/findbugs-exclude-filter.xml b/commons-rng-core/findbugs-exclude-filter.xml new file mode 100644 index 0000000..99b2e8a --- /dev/null +++ b/commons-rng-core/findbugs-exclude-filter.xml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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. +--> + +<!-- + This file contains some false positive bugs detected by findbugs. Their + false positive nature has been analyzed individually and they have been + put here to instruct findbugs it must ignore them. +--> +<FindBugsFilter> + + +</FindBugsFilter> http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/pmd-ruleset.xml ---------------------------------------------------------------------- diff --git a/commons-rng-core/pmd-ruleset.xml b/commons-rng-core/pmd-ruleset.xml new file mode 100644 index 0000000..c637ef7 --- /dev/null +++ b/commons-rng-core/pmd-ruleset.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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. +--> +<ruleset name="commons-rng-customized" + xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> + <description> + This ruleset checks the code for discouraged programming constructs. + </description> + + <rule ref="rulesets/java/basic.xml"/> + + <rule ref="rulesets/java/braces.xml"/> + + <rule ref="rulesets/java/comments.xml"> + <exclude name="CommentSize"/> + </rule> + <rule ref="rulesets/java/comments.xml/CommentSize"> + <properties> + <property name="maxLines" value="200"/> + <property name="maxLineLength" value="256"/> + </properties> + </rule> + + <rule ref="rulesets/java/empty.xml"/> + + <rule ref="rulesets/java/finalizers.xml"/> + + <rule ref="rulesets/java/imports.xml"/> + + <rule ref="rulesets/java/typeresolution.xml"/> + + <rule ref="rulesets/java/clone.xml"/> + + <rule ref="rulesets/java/unnecessary.xml"> + <!-- We do use extra parentheses there as most people do not recall operator precedence, + this means even if the parentheses are useless for the compiler, we don't consider + them useless for the developer. This is the reason why we disable this rule. --> + <exclude name="UselessParentheses"/> + </rule> + +</ruleset> http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/pom.xml ---------------------------------------------------------------------- diff --git a/commons-rng-core/pom.xml b/commons-rng-core/pom.xml new file mode 100644 index 0000000..f3f3dfd --- /dev/null +++ b/commons-rng-core/pom.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + + <groupId>org.apache.commons</groupId> + <artifactId>commons-rng-core</artifactId> + <version>1.0-SNAPSHOT</version> + <name>Apache Commons RNG Core</name> + <url>http://maven.apache.org</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <inceptionYear>2016</inceptionYear> + <description>The Apache Commons RNG Core module includes implementations of random numbers generators.</description> + + <scm> + <connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-rng.git</connection> + <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-rng.git</developerConnection> + <url>https://git-wip-us.apache.org/repos/asf?p=commons-rng.git</url> + </scm> + +</project> http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/entries ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/entries b/commons-rng-core/site-content/.svn/entries new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/commons-rng-core/site-content/.svn/entries @@ -0,0 +1 @@ +12 http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/format ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/format b/commons-rng-core/site-content/.svn/format new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/commons-rng-core/site-content/.svn/format @@ -0,0 +1 @@ +12 http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/00/001c4ecbc3243b8640484e6354da097399cb7188.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/00/001c4ecbc3243b8640484e6354da097399cb7188.svn-base b/commons-rng-core/site-content/.svn/pristine/00/001c4ecbc3243b8640484e6354da097399cb7188.svn-base new file mode 100644 index 0000000..1721fef --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/00/001c4ecbc3243b8640484e6354da097399cb7188.svn-base @@ -0,0 +1,139 @@ +# +# RNG: org.apache.commons.rng.internal.source32.KISSRandom +# +# Java: 1.8.0_66 +# Runtime: 1.8.0_66-b17 +# JVM: Java HotSpot(TM) 64-Bit Server VM 25.66-b17 +# OS: Linux 3.16.0-4-amd64 amd64 +# +# Analyzer: /usr/bin/dieharder -a -g 200 -Y 1 -k 2 +# +#=============================================================================# +# dieharder version 3.31.1 Copyright 2003 Robert G. Brown # +#=============================================================================# + rng_name |rands/second| Seed | +stdin_input_raw| 1.42e+07 | 306768236| +#=============================================================================# + test_name |ntup| tsamples |psamples| p-value |Assessment +#=============================================================================# + diehard_birthdays| 0| 100| 100|0.95938677| PASSED + diehard_operm5| 0| 1000000| 100|0.66772938| PASSED + diehard_rank_32x32| 0| 40000| 100|0.52997102| PASSED + diehard_rank_6x8| 0| 100000| 100|0.78579044| PASSED + diehard_bitstream| 0| 2097152| 100|0.33883210| PASSED + diehard_opso| 0| 2097152| 100|0.77277213| PASSED + diehard_oqso| 0| 2097152| 100|0.91784968| PASSED + diehard_dna| 0| 2097152| 100|0.62396148| PASSED +diehard_count_1s_str| 0| 256000| 100|0.18765069| PASSED +diehard_count_1s_byt| 0| 256000| 100|0.93046283| PASSED + diehard_parking_lot| 0| 12000| 100|0.54735549| PASSED + diehard_2dsphere| 2| 8000| 100|0.76320883| PASSED + diehard_3dsphere| 3| 4000| 100|0.00674838| PASSED + diehard_squeeze| 0| 100000| 100|0.83615915| PASSED + diehard_sums| 0| 100| 100|0.19575313| PASSED + diehard_runs| 0| 100000| 100|0.20659767| PASSED + diehard_runs| 0| 100000| 100|0.92640183| PASSED + diehard_craps| 0| 200000| 100|0.05047870| PASSED + diehard_craps| 0| 200000| 100|0.95841488| PASSED + marsaglia_tsang_gcd| 0| 10000000| 100|0.36063236| PASSED + marsaglia_tsang_gcd| 0| 10000000| 100|0.96042553| PASSED + sts_monobit| 1| 100000| 100|0.85591157| PASSED + sts_runs| 2| 100000| 100|0.88417820| PASSED + sts_serial| 1| 100000| 100|0.46263283| PASSED + sts_serial| 2| 100000| 100|0.46133372| PASSED + sts_serial| 3| 100000| 100|0.27323569| PASSED + sts_serial| 3| 100000| 100|0.11122412| PASSED + sts_serial| 4| 100000| 100|0.54294935| PASSED + sts_serial| 4| 100000| 100|0.94755493| PASSED + sts_serial| 5| 100000| 100|0.74283442| PASSED + sts_serial| 5| 100000| 100|0.86009009| PASSED + sts_serial| 6| 100000| 100|0.08650673| PASSED + sts_serial| 6| 100000| 100|0.78892523| PASSED + sts_serial| 7| 100000| 100|0.83368583| PASSED + sts_serial| 7| 100000| 100|0.93353272| PASSED + sts_serial| 8| 100000| 100|0.93776031| PASSED + sts_serial| 8| 100000| 100|0.45677951| PASSED + sts_serial| 9| 100000| 100|0.98961644| PASSED + sts_serial| 9| 100000| 100|0.64111158| PASSED + sts_serial| 10| 100000| 100|0.86891089| PASSED + sts_serial| 10| 100000| 100|0.84762219| PASSED + sts_serial| 11| 100000| 100|0.46866459| PASSED + sts_serial| 11| 100000| 100|0.15215803| PASSED + sts_serial| 12| 100000| 100|0.45761563| PASSED + sts_serial| 12| 100000| 100|0.30032272| PASSED + sts_serial| 13| 100000| 100|0.81644559| PASSED + sts_serial| 13| 100000| 100|0.65610163| PASSED + sts_serial| 14| 100000| 100|0.88113376| PASSED + sts_serial| 14| 100000| 100|0.70639792| PASSED + sts_serial| 15| 100000| 100|0.33956457| PASSED + sts_serial| 15| 100000| 100|0.23602793| PASSED + sts_serial| 16| 100000| 100|0.10823710| PASSED + sts_serial| 16| 100000| 100|0.50955112| PASSED + rgb_bitdist| 1| 100000| 100|0.07615676| PASSED + rgb_bitdist| 2| 100000| 100|0.33840829| PASSED + rgb_bitdist| 3| 100000| 100|0.93750009| PASSED + rgb_bitdist| 4| 100000| 100|0.02820448| PASSED + rgb_bitdist| 5| 100000| 100|0.25123272| PASSED + rgb_bitdist| 6| 100000| 100|0.91247484| PASSED + rgb_bitdist| 7| 100000| 100|0.98247872| PASSED + rgb_bitdist| 8| 100000| 100|0.74133972| PASSED + rgb_bitdist| 9| 100000| 100|0.17724938| PASSED + rgb_bitdist| 10| 100000| 100|0.97235498| PASSED + rgb_bitdist| 11| 100000| 100|0.30931579| PASSED + rgb_bitdist| 12| 100000| 100|0.26004044| PASSED +rgb_minimum_distance| 2| 10000| 1000|0.70119337| PASSED +rgb_minimum_distance| 3| 10000| 1000|0.62548510| PASSED +rgb_minimum_distance| 4| 10000| 1000|0.46540327| PASSED +rgb_minimum_distance| 5| 10000| 1000|0.25242262| PASSED + rgb_permutations| 2| 100000| 100|0.56363821| PASSED + rgb_permutations| 3| 100000| 100|0.15453064| PASSED + rgb_permutations| 4| 100000| 100|0.25010854| PASSED + rgb_permutations| 5| 100000| 100|0.86764454| PASSED + rgb_lagged_sum| 0| 1000000| 100|0.99651443| WEAK + rgb_lagged_sum| 0| 1000000| 200|0.12683559| PASSED + rgb_lagged_sum| 1| 1000000| 100|0.46456967| PASSED + rgb_lagged_sum| 2| 1000000| 100|0.81479454| PASSED + rgb_lagged_sum| 3| 1000000| 100|0.81911702| PASSED + rgb_lagged_sum| 4| 1000000| 100|0.14314587| PASSED + rgb_lagged_sum| 5| 1000000| 100|0.15425203| PASSED + rgb_lagged_sum| 6| 1000000| 100|0.68825313| PASSED + rgb_lagged_sum| 7| 1000000| 100|0.78989811| PASSED + rgb_lagged_sum| 8| 1000000| 100|0.18061833| PASSED + rgb_lagged_sum| 9| 1000000| 100|0.84390268| PASSED + rgb_lagged_sum| 10| 1000000| 100|0.48936577| PASSED + rgb_lagged_sum| 11| 1000000| 100|0.97546145| PASSED + rgb_lagged_sum| 12| 1000000| 100|0.86054400| PASSED + rgb_lagged_sum| 13| 1000000| 100|0.82857936| PASSED + rgb_lagged_sum| 14| 1000000| 100|0.98496453| PASSED + rgb_lagged_sum| 15| 1000000| 100|0.15440205| PASSED + rgb_lagged_sum| 16| 1000000| 100|0.92581778| PASSED + rgb_lagged_sum| 17| 1000000| 100|0.84953608| PASSED + rgb_lagged_sum| 18| 1000000| 100|0.18640564| PASSED + rgb_lagged_sum| 19| 1000000| 100|0.41293134| PASSED + rgb_lagged_sum| 20| 1000000| 100|0.97535585| PASSED + rgb_lagged_sum| 21| 1000000| 100|0.41863444| PASSED + rgb_lagged_sum| 22| 1000000| 100|0.76795356| PASSED + rgb_lagged_sum| 23| 1000000| 100|0.54007861| PASSED + rgb_lagged_sum| 24| 1000000| 100|0.40156199| PASSED + rgb_lagged_sum| 25| 1000000| 100|0.49164236| PASSED + rgb_lagged_sum| 26| 1000000| 100|0.36704289| PASSED + rgb_lagged_sum| 27| 1000000| 100|0.40084697| PASSED + rgb_lagged_sum| 28| 1000000| 100|0.03666861| PASSED + rgb_lagged_sum| 29| 1000000| 100|0.91924890| PASSED + rgb_lagged_sum| 30| 1000000| 100|0.46134728| PASSED + rgb_lagged_sum| 31| 1000000| 100|0.67119233| PASSED + rgb_lagged_sum| 32| 1000000| 100|0.73621111| PASSED + rgb_kstest_test| 0| 10000| 1000|0.92878107| PASSED + dab_bytedistrib| 0| 51200000| 1|0.21387590| PASSED + dab_dct| 256| 50000| 1|0.69310311| PASSED +Preparing to run test 207. ntuple = 0 + dab_filltree| 32| 15000000| 1|0.44932036| PASSED + dab_filltree| 32| 15000000| 1|0.77976826| PASSED +Preparing to run test 208. ntuple = 0 + dab_filltree2| 0| 5000000| 1|0.13685452| PASSED + dab_filltree2| 1| 5000000| 1|0.25240145| PASSED +Preparing to run test 209. ntuple = 0 + dab_monobit2| 12| 65000000| 1|0.41430684| PASSED +# +# Test duration: 92.97588297101667 minutes +# http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d1b3113a/commons-rng-core/site-content/.svn/pristine/00/00c1d48c024ee33f07bd2934c2ae69675918ae2d.svn-base ---------------------------------------------------------------------- diff --git a/commons-rng-core/site-content/.svn/pristine/00/00c1d48c024ee33f07bd2934c2ae69675918ae2d.svn-base b/commons-rng-core/site-content/.svn/pristine/00/00c1d48c024ee33f07bd2934c2ae69675918ae2d.svn-base new file mode 100644 index 0000000..cc7861c --- /dev/null +++ b/commons-rng-core/site-content/.svn/pristine/00/00c1d48c024ee33f07bd2934c2ae69675918ae2d.svn-base @@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<title>RandomLongSource xref</title> +<link type="text/css" rel="stylesheet" href="../../../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../../apidocs/org/apache/commons/rng/internal/source64/RandomLongSource.html">View Javadoc</a></div><pre> +<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em> +<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em> +<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em> +<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em> +<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em> +<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em> +<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em> +<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em> +<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em> +<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em> +<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em> +<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em> +<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em> +<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em> +<a class="jxr_linenumber" name="L17" href="#L17">17</a> +<a class="jxr_linenumber" name="L18" href="#L18">18</a> <strong class="jxr_keyword">package</strong> org.apache.commons.rng.internal.source64; +<a class="jxr_linenumber" name="L19" href="#L19">19</a> +<a class="jxr_linenumber" name="L20" href="#L20">20</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L21" href="#L21">21</a> <em class="jxr_javadoccomment"> * Source of randomness that generates values of type {@code long}.</em> +<a class="jxr_linenumber" name="L22" href="#L22">22</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L23" href="#L23">23</a> <em class="jxr_javadoccomment"> * @since 1.0</em> +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../../../org/apache/commons/rng/internal/source64/RandomLongSource.html">RandomLongSource</a> { +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> * @return the next random value.</em> +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">long</strong> next(); +<a class="jxr_linenumber" name="L30" href="#L30">30</a> } +</pre> +<hr/> +<div id="footer">Copyright © 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +</body> +</html> \ No newline at end of file