blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
1d4c0deb4d973c122163fe0cda9a9d913f6d0d2f
7d1cd358ef2553c4e8d4cf62f1727fd92f26f4f5
/JSON - XML converter/task/test/ConverterTest.java
5f8f33b016a3b1255821afd398765cec8947a963
[]
no_license
rabestro/jetbrains-academy-json-xml-converter
c5acd129e4ddfc9c137ea1367a9e75f0633aaaa5
9ca098535941a3e768962ed958c8ff2b7c97790f
refs/heads/master
2023-03-06T04:16:38.428666
2021-02-07T15:10:04
2021-02-07T15:10:04
336,386,286
0
0
null
2021-02-07T15:10:05
2021-02-05T20:51:28
Java
UTF-8
Java
false
false
13,677
java
import org.hyperskill.hstest.stage.StageTest; import org.hyperskill.hstest.testcase.CheckResult; import org.hyperskill.hstest.testcase.TestCase; import java.util.*; import java.util.stream.Collectors; class Clue { String answer; String input; Clue(String answer, String input) { this.answer = answer.strip(); this.input = input.strip(); } } public class ConverterTest extends StageTest<Clue> { static Map<String, String> allTests; static { allTests = new LinkedHashMap<>(); allTests.put( "<transaction>\n" + " <id>6753322</id>\n" + " <number region=\"Russia\">8-900-000-00-00</number>\n" + " <nonattr />\n" + " <nonattr></nonattr>\n" + " <nonattr>text</nonattr>\n" + " <attr id=\"1\" />\n" + " <attr id=\"2\"></attr>\n" + " <attr id=\"3\">text</attr>\n" + " <email>\n" + " <to>to_example@gmail.com</to>\n" + " <from>from_example@gmail.com</from>\n" + " <subject>Project discussion</subject>\n" + " <body font=\"Verdana\">Body message</body>\n" + " <date day=\"12\" month=\"12\" year=\"2018\"/>\n" + " </email>\n" + "</transaction>", "Element:\n" + "path = transaction\n" + "\n" + "Element:\n" + "path = transaction, id\n" + "value = \"6753322\"\n" + "\n" + "Element:\n" + "path = transaction, number\n" + "value = \"8-900-000-00-00\"\n" + "attributes:\n" + "region = \"Russia\"\n" + "\n" + "Element:\n" + "path = transaction, nonattr\n" + "value = null\n" + "\n" + "Element:\n" + "path = transaction, nonattr\n" + "value = \"\"\n" + "\n" + "Element:\n" + "path = transaction, nonattr\n" + "value = \"text\"\n" + "\n" + "Element:\n" + "path = transaction, attr\n" + "value = null\n" + "attributes:\n" + "id = \"1\"\n" + "\n" + "Element:\n" + "path = transaction, attr\n" + "value = \"\"\n" + "attributes:\n" + "id = \"2\"\n" + "\n" + "Element:\n" + "path = transaction, attr\n" + "value = \"text\"\n" + "attributes:\n" + "id = \"3\"\n" + "\n" + "Element:\n" + "path = transaction, email\n" + "\n" + "Element:\n" + "path = transaction, email, to\n" + "value = \"to_example@gmail.com\"\n" + "\n" + "Element:\n" + "path = transaction, email, from\n" + "value = \"from_example@gmail.com\"\n" + "\n" + "Element:\n" + "path = transaction, email, subject\n" + "value = \"Project discussion\"\n" + "\n" + "Element:\n" + "path = transaction, email, body\n" + "value = \"Body message\"\n" + "attributes:\n" + "font = \"Verdana\"\n" + "\n" + "Element:\n" + "path = transaction, email, date\n" + "value = null\n" + "attributes:\n" + "day = \"12\"\n" + "month = \"12\"\n" + "year = \"2018\"" ); allTests.put( "<node>\n" + " <child name = \"child_name1\" type = \"child_type1\">\n" + " <subchild id = \"1\" auth=\"auth1\">Value1</subchild>\n" + " </child>\n" + " <child name = \"child_name2\" type = \"child_type2\">\n" + " <subchild id = \"2\" auth=\"auth1\">Value2</subchild>\n" + " <subchild id = \"3\" auth=\"auth2\">Value3</subchild>\n" + " <subchild id = \"4\" auth=\"auth3\"></subchild>\n" + " <subchild id = \"5\" auth=\"auth3\"/>\n" + " </child>\n" + "</node>", "Element:\n" + "path = node\n" + "\n" + "Element:\n" + "path = node, child\n" + "attributes:\n" + "name = \"child_name1\"\n" + "type = \"child_type1\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value1\"\n" + "attributes:\n" + "id = \"1\"\n" + "auth = \"auth1\"\n" + "\n" + "Element:\n" + "path = node, child\n" + "attributes:\n" + "name = \"child_name2\"\n" + "type = \"child_type2\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value2\"\n" + "attributes:\n" + "id = \"2\"\n" + "auth = \"auth1\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value3\"\n" + "attributes:\n" + "id = \"3\"\n" + "auth = \"auth2\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"\"\n" + "attributes:\n" + "id = \"4\"\n" + "auth = \"auth3\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = null\n" + "attributes:\n" + "id = \"5\"\n" + "auth = \"auth3\"" ); allTests.put( "<node><child name=\"child_name1\" type=\"chil" + "d_type1\"><subchild id=\"1\" auth=\"auth1\">" + "Value1</subchild></child><child name=\"child" + "_name2\" type=\"child_type2\"><subchild id=\"" + "2\" auth=\"auth1\">Value2</subchild><subchil" + "d id=\"3\" auth=\"auth2\">Value3</subchild><s" + "ubchild id=\"4\" auth=\"auth3\"></subchild><su" + "bchild id=\"5\" auth=\"auth3\"/></child></node>", "Element:\n" + "path = node\n" + "\n" + "Element:\n" + "path = node, child\n" + "attributes:\n" + "name = \"child_name1\"\n" + "type = \"child_type1\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value1\"\n" + "attributes:\n" + "id = \"1\"\n" + "auth = \"auth1\"\n" + "\n" + "Element:\n" + "path = node, child\n" + "attributes:\n" + "name = \"child_name2\"\n" + "type = \"child_type2\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value2\"\n" + "attributes:\n" + "id = \"2\"\n" + "auth = \"auth1\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"Value3\"\n" + "attributes:\n" + "id = \"3\"\n" + "auth = \"auth2\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = \"\"\n" + "attributes:\n" + "id = \"4\"\n" + "auth = \"auth3\"\n" + "\n" + "Element:\n" + "path = node, child, subchild\n" + "value = null\n" + "attributes:\n" + "id = \"5\"\n" + "auth = \"auth3\"" ); allTests.put( "<transaction>\n" + " <id>6753322</id>\n" + " <number region=\"Russia\">8-900-999-00-00</number>\n" + " <email>\n" + " <to>to_example@gmail.com</to>\n" + " <from>from_example@gmail.com</from>\n" + " <subject>Project discussion</subject>\n" + " <body font=\"Verdana\">Body message</body>\n" + " <date day=\"12\" month=\"12\" year=\"2018\"/>\n" + " </email>\n" + "</transaction>", "Element:\n" + "path = transaction\n" + "\n" + "Element:\n" + "path = transaction, id\n" + "value = \"6753322\"\n" + "\n" + "Element:\n" + "path = transaction, number\n" + "value = \"8-900-999-00-00\"\n" + "attributes:\n" + "region = \"Russia\"\n" + "\n" + "Element:\n" + "path = transaction, email\n" + "\n" + "Element:\n" + "path = transaction, email, to\n" + "value = \"to_example@gmail.com\"\n" + "\n" + "Element:\n" + "path = transaction, email, from\n" + "value = \"from_example@gmail.com\"\n" + "\n" + "Element:\n" + "path = transaction, email, subject\n" + "value = \"Project discussion\"\n" + "\n" + "Element:\n" + "path = transaction, email, body\n" + "value = \"Body message\"\n" + "attributes:\n" + "font = \"Verdana\"\n" + "\n" + "Element:\n" + "path = transaction, email, date\n" + "value = null\n" + "attributes:\n" + "day = \"12\"\n" + "month = \"12\"\n" + "year = \"2018\"" ); } @Override public List<TestCase<Clue>> generate() { List<TestCase<Clue>> tests = new ArrayList<>(); for (String input : allTests.keySet()) { String answer = allTests.get(input); TestCase<Clue> test = new TestCase<>(); test.addFile("test.txt", input); test.setAttach(new Clue(answer, input)); tests.add(test); } return tests; } @Override public CheckResult check(String reply, Clue clue) { String user = reply.strip(); String answer = clue.answer.strip(); List<String> userLines = user .lines() .map(String::strip) .map(e -> e.replaceAll("\\s+", " ")) .filter(e -> e.length() > 0) .collect(Collectors.toList()); List<String> answerLines = answer .lines() .map(String::strip) .map(e -> e.replaceAll("\\s+", " ")) .filter(e -> e.length() > 0) .collect(Collectors.toList()); if (userLines.size() < answerLines.size()) { LinkedHashSet<String> answerSet = new LinkedHashSet<>(); answerSet.addAll(answerLines); for (String line : userLines) { answerSet.remove(line); } if (!answerSet.isEmpty()) { String notFoundLine = answerSet.stream().findFirst().get(); return new CheckResult(false, "The following line is not found in output:\n" + notFoundLine); } return new CheckResult(false); } else if (userLines.size() > answerLines.size()) { LinkedHashSet<String> userSet = new LinkedHashSet<>(); userSet.addAll(answerLines); for (String line : answerLines) { userSet.remove(line); } if (!userSet.isEmpty()) { String excessLine = userSet.stream().findFirst().get(); return new CheckResult(false, "The following line is not needed in output:\n" + excessLine); } return new CheckResult(false); } else { for (int i = 0; i < userLines.size(); i++) { String userLine = userLines.get(i); String answerLine = answerLines.get(i); if (!userLine.equals(answerLine)) { return new CheckResult(false, "The following line was expected:\n" + answerLine + "\n" + "The following line was given:\n" + userLine); } } return CheckResult.correct(); } } }
[ "yegor.chemisov@gmail.com" ]
yegor.chemisov@gmail.com
6bda5508dab666476dcd02cce70dd7d4053ae481
0ccbc83b1d8c6a396a16ad0b858170b7eca7a3ef
/src/test/java/hello/core/scope/SingletonTest.java
aa0dfecaab1f3686e21e33ce1097ce754aacd34e
[]
no_license
hmk219/Spring-Study-Core
de5a1a9395d367ba28c3b7b363c1314cbb0fe2c1
d5c081091e80b8eb94be528aed94771964fa48e0
refs/heads/master
2023-08-10T21:21:26.785803
2021-09-16T03:06:59
2021-09-16T03:06:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,568
java
package hello.core.scope; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Scope; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import static org.assertj.core.api.Assertions.assertThat; public class SingletonTest { @Test public void singletonBeanFind() { AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(SingletonBean.class); SingletonBean singletonBean1 = ac.getBean(SingletonBean.class); SingletonBean singletonBean2 = ac.getBean(SingletonBean.class); System.out.println("singletonBean1 = " + singletonBean1); System.out.println("singletonBean2 = " + singletonBean2); assertThat(singletonBean1).isSameAs(singletonBean2); ac.close(); //종료 } @Scope("singleton") //default라 생략해도 되지만 테스트케이스 비교를 위해 표시 static class SingletonBean { @PostConstruct public void init() { System.out.println("SingletonBean.init"); } @PreDestroy public void destroy() { System.out.println("SingletonBean.destroy"); } } } /*실행 결과 : SingletonBean.init singletonBean1 = hello.core.scope.PrototypeTest$SingletonBean@54504ecd singletonBean2 = hello.core.scope.PrototypeTest$SingletonBean@54504ecd org.springframework.context.annotation.AnnotationConfigApplicationContext - Closing SingletonBean.destroy */
[ "hmkreator219@gmail.com" ]
hmkreator219@gmail.com
074d5839c1118e847de70107d9e967852eebf0dd
57bbd40bbe3d5e3a1246ff083e32782afdc8c553
/奇数位于偶数之前/Main.java
783de1c829903b62aeed084328f5f9a5d2c98419
[]
no_license
SocialHui/Java17
43599766caa8c655585f539d9629f247b7acfb75
5cbd86e92bb46a15b3d6aea72249c83bf4cb1fb3
refs/heads/main
2023-08-03T10:12:14.175595
2021-09-15T06:33:41
2021-09-15T06:33:41
326,186,088
0
0
null
null
null
null
UTF-8
Java
false
false
818
java
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param array int整型一维数组 * @return int整型一维数组 */ public int[] reOrderArray (int[] array) { // write code here int[] nums = new int[array.length]; int j = 0; int k = array.length-1; int left = 0; int right = array.length-1; while (left < array.length && right >= 0) { if (array[left]%2 != 0) { nums[j++] = array[left]; } if (array[right]%2 == 0) { nums[k--] = array[right]; } left++; right--; } return nums; } }
[ "2933347352@qq.com" ]
2933347352@qq.com
2bc5742a1c966bd702f41375016c95af2a357d5d
88f60611ea3ec5e7c8f83ab7746fe185563de396
/src/flow/MP/AutenticaUsuario/AutenticarUsuarioInput.java
4e8169ed5255a031bcd54a9de30a336040c2651e
[]
no_license
gtau/WSTeste
ac6b8bcba4d002a2b70ac94c71940742e89c9ca2
998359cc9346e9f4a614a8552a59f5b9ce5bcf3d
refs/heads/master
2021-01-01T04:06:50.085131
2016-04-27T01:49:30
2016-04-27T01:49:30
57,174,030
0
0
null
null
null
null
UTF-8
Java
false
false
4,029
java
package flow.MP.AutenticaUsuario; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="usuario" type="{http://ebo.multiplusfidelidade.com.br/v1}Usuario" minOccurs="0"/> * &lt;element name="criptografia" type="{http://ebo.multiplusfidelidade.com.br/v1}Criptografia" minOccurs="0"/> * &lt;element name="canal-origem" type="{http://ebo.multiplusfidelidade.com.br/v1}Canal" minOccurs="0"/> * &lt;element name="propriedades-execucao" type="{http://ebo.multiplusfidelidade.com.br/v1}PropriedadesExecucao" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "usuario", "criptografia", "canalOrigem", "propriedadesExecucao" }) @XmlRootElement(name = "AutenticarUsuarioInput", namespace = "http://ebs.multiplusfidelidade.com.br/v1") public class AutenticarUsuarioInput { @XmlElement(namespace = "http://ebs.multiplusfidelidade.com.br/v1") protected Usuario usuario; @XmlElement(namespace = "http://ebs.multiplusfidelidade.com.br/v1") protected Criptografia criptografia; @XmlElement(name = "canal-origem", namespace = "http://ebs.multiplusfidelidade.com.br/v1") protected Canal canalOrigem; @XmlElement(name = "propriedades-execucao", namespace = "http://ebs.multiplusfidelidade.com.br/v1") protected PropriedadesExecucao propriedadesExecucao; /** * Gets the value of the usuario property. * * @return * possible object is * {@link Usuario } * */ public Usuario getUsuario() { return usuario; } /** * Sets the value of the usuario property. * * @param value * allowed object is * {@link Usuario } * */ public void setUsuario(Usuario value) { this.usuario = value; } /** * Gets the value of the criptografia property. * * @return * possible object is * {@link Criptografia } * */ public Criptografia getCriptografia() { return criptografia; } /** * Sets the value of the criptografia property. * * @param value * allowed object is * {@link Criptografia } * */ public void setCriptografia(Criptografia value) { this.criptografia = value; } /** * Gets the value of the canalOrigem property. * * @return * possible object is * {@link Canal } * */ public Canal getCanalOrigem() { return canalOrigem; } /** * Sets the value of the canalOrigem property. * * @param value * allowed object is * {@link Canal } * */ public void setCanalOrigem(Canal value) { this.canalOrigem = value; } /** * Gets the value of the propriedadesExecucao property. * * @return * possible object is * {@link PropriedadesExecucao } * */ public PropriedadesExecucao getPropriedadesExecucao() { return propriedadesExecucao; } /** * Sets the value of the propriedadesExecucao property. * * @param value * allowed object is * {@link PropriedadesExecucao } * */ public void setPropriedadesExecucao(PropriedadesExecucao value) { this.propriedadesExecucao = value; } }
[ "gabrieltau@365ti.com.br" ]
gabrieltau@365ti.com.br
10413935650d6c67064aefb318e0c65ac88ace37
bffd93a5b4715c020ab558f7e6421221dce43463
/src/main/java/net/bourgau/philippe/concurrency/kata/common/Output.java
dcd8d13c838d0468442f53e2a89a725749a4ea01
[ "MIT" ]
permissive
moledamaciej/concurrency-kata
190f3fc36cfff93a1e1cf03bf413752e8d3c22c2
e3f8efbcc027e476c2225efdea7625d66f47559c
refs/heads/master
2021-05-29T15:32:28.150296
2015-08-15T07:00:03
2015-08-15T07:00:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
112
java
package net.bourgau.philippe.concurrency.kata.common; public interface Output { void write(String line); }
[ "philippe.bourgau@gmail.com" ]
philippe.bourgau@gmail.com
5e63c90c76aed7d6aee027fbe03224b9917f9093
ebcfd16e708287939c542d7d5baca32a1bd31cb3
/Khadeer/CameraApplication/app/src/test/java/com/itcs/cameraapplication/ExampleUnitTest.java
591d97eba9792ee90e036e3b5f3697bb4fda42f2
[]
no_license
NeoRaysTraining/Android
1e8bbf05a3a80a7cb5f7d0a918da30e91072c4e7
c854a6fc66fee1d63644aaef017a832c75ed6ed6
refs/heads/master
2021-01-21T04:30:58.078121
2016-07-09T07:53:17
2016-07-09T07:53:17
49,486,193
0
0
null
null
null
null
UTF-8
Java
false
false
319
java
package com.itcs.cameraapplication; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "khadeer.b@neorays.com" ]
khadeer.b@neorays.com
963eaf58084240bd7c4ad1cc373491a99e77b9ed
2c8f785182b929acd22d027b0f2ae5269a58715e
/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/CannotMoveAnymoreInVehicle.java
256336634b9feab5745ffd97848bbd28ed53c1cf
[]
no_license
TiRexl2/TiRexL2
d6131a2525c55eff91cffd3c170762b73aad417e
ea549ecc4334b7b8d70728198c24790cd6e6d336
refs/heads/master
2020-04-19T07:19:22.259324
2020-01-26T01:33:50
2020-01-26T01:33:50
168,043,493
0
0
null
null
null
null
UTF-8
Java
false
false
826
java
package net.sf.l2j.gameserver.network.clientpackets; import net.sf.l2j.gameserver.model.actor.instance.Player; import net.sf.l2j.gameserver.network.serverpackets.StopMoveInVehicle; public final class CannotMoveAnymoreInVehicle extends L2GameClientPacket { private int _boatId; private int _x; private int _y; private int _z; private int _heading; @Override protected void readImpl() { _boatId = readD(); _x = readD(); _y = readD(); _z = readD(); _heading = readD(); } @Override protected void runImpl() { final Player player = getClient().getActiveChar(); if (player == null) return; if (player.isInBoat() && player.getBoat().getObjectId() == _boatId) { player.getBoatPosition().set(_x, _y, _z, _heading); player.broadcastPacket(new StopMoveInVehicle(player, _boatId)); } } }
[ "pavel_rulev@mail.ru" ]
pavel_rulev@mail.ru
32d66a4a4f32ddd0389d53a942e7c803c7d83254
ef5a063ffa04aec4697b52813216ecbce0b314eb
/src/main/java/com/bay/analystic/model/dim/key/StatsLocationDimension.java
6a8c879b17c4950252c088b47846a6107b4697ad
[]
no_license
BayMinGitHub/LogAnalystic
3a57efb4009d8b8f15bf9975677f8c061f699dbe
085459e7db19112bc3049fc4d4ee55240054cf8a
refs/heads/master
2020-03-24T02:24:51.387170
2018-08-08T18:09:21
2018-08-08T18:09:23
142,374,630
1
0
null
null
null
null
UTF-8
Java
false
false
3,147
java
package com.bay.analystic.model.dim.key; import com.bay.analystic.model.dim.base.BaseDimension; import com.bay.analystic.model.dim.base.LocationDimension; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; /** * @Description: 封装公共维度和地域维度 * Author by BayMin, Date on 2018/8/1. */ public class StatsLocationDimension extends StatsBaseDimension { private StatsCommonDimension statsCommonDimension = new StatsCommonDimension(); private LocationDimension locationDimension = new LocationDimension(); public StatsLocationDimension() { } public StatsLocationDimension(StatsCommonDimension statsCommonDimension, LocationDimension locationDimension) { this.statsCommonDimension = statsCommonDimension; this.locationDimension = locationDimension; } /** * 克隆 */ public static StatsLocationDimension clone(StatsLocationDimension dimension) { StatsCommonDimension statsCommonDimension = StatsCommonDimension.clone(dimension.statsCommonDimension); LocationDimension locationDimension = new LocationDimension(dimension.locationDimension.getCountry(), dimension.locationDimension.getProvince(), dimension.locationDimension.getCity()); return new StatsLocationDimension(statsCommonDimension, locationDimension); } @Override public int compareTo(BaseDimension o) { if (this == o) return 0; StatsLocationDimension other = (StatsLocationDimension) o; int tmp = this.statsCommonDimension.compareTo(other.statsCommonDimension); if (tmp != 0) return tmp; tmp = this.locationDimension.compareTo(other.locationDimension); return tmp; } @Override public void write(DataOutput out) throws IOException { this.statsCommonDimension.write(out); this.locationDimension.write(out); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StatsLocationDimension that = (StatsLocationDimension) o; if (!statsCommonDimension.equals(that.statsCommonDimension)) return false; return locationDimension.equals(that.locationDimension); } @Override public int hashCode() { int result = statsCommonDimension.hashCode(); result = 31 * result + locationDimension.hashCode(); return result; } @Override public void readFields(DataInput in) throws IOException { this.statsCommonDimension.readFields(in); this.locationDimension.readFields(in); } public StatsCommonDimension getStatsCommonDimension() { return statsCommonDimension; } public void setStatsCommonDimension(StatsCommonDimension statsCommonDimension) { this.statsCommonDimension = statsCommonDimension; } public LocationDimension getLocationDimension() { return locationDimension; } public void setLocationDimension(LocationDimension locationDimension) { this.locationDimension = locationDimension; } }
[ "baiyukai@vip.qq.com" ]
baiyukai@vip.qq.com
84eecfdc4ecdc12b24eea630e9795fb077894339
e7dcf88a5041f9218391ce608315a472e7033cd0
/src/main/java/org/encog/neural/pnn/AbstractPNN.java
214625574cc586334e9cdc4ae098b30b209fe0bf
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
reinierdevalk/encog-core-3.0.1
30fe2f038b47a5ed783e608949d62f5912eade20
d9352929646cf3ea1acc5b9fb29096a12cc37393
refs/heads/master
2021-03-19T13:09:00.611828
2020-07-20T20:27:07
2020-07-20T20:27:07
281,218,444
0
0
NOASSERTION
2020-10-13T23:45:15
2020-07-20T20:24:53
HTML
UTF-8
Java
false
false
4,365
java
/* * Encog(tm) Core v3.0 - Java Version * http://www.heatonresearch.com/encog/ * http://code.google.com/p/encog-java/ * Copyright 2008-2011 Heaton Research, Inc. * * 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. * * For more information on Heaton Research copyrights, licenses * and trademarks visit: * http://www.heatonresearch.com/copyright */ package org.encog.neural.pnn; import org.encog.ml.BasicML; import org.encog.ml.data.MLData; /** * Abstract class to build PNN networks upon. */ public abstract class AbstractPNN extends BasicML { /** * Input neuron count. */ private final int inputCount; /** * Output neuron count. */ private final int outputCount; /** * Kernel type. */ private final PNNKernelType kernel; /** * Output mode. */ private final PNNOutputMode outputMode; /** * Is trained. */ private boolean trained; /** * Network error. (MSE) */ private double error; /** * Confusion work area. */ private int[] confusion; /** * First derivative. */ private final double[] deriv; /** * Second derivative. */ private final double[] deriv2; /** * Index of a sample to exclude. */ private int exclude; /** * True, if we are using separate sigmas for each class. */ private boolean separateClass; /** * Constructor. * @param kernel The kernel type to use. * @param outputMode The output mode to use. * @param inputCount The input count. * @param outputCount The output count. */ public AbstractPNN(final PNNKernelType kernel, final PNNOutputMode outputMode, final int inputCount, final int outputCount) { this.kernel = kernel; this.outputMode = outputMode; this.inputCount = inputCount; this.outputCount = outputCount; this.trained = false; this.error = Double.MIN_VALUE; this.confusion = null; this.exclude = -1; this.deriv = new double[inputCount]; this.deriv2 = new double[inputCount]; if (this.outputMode == PNNOutputMode.Classification) { this.confusion = new int[this.outputCount + 1]; } } /** * Compute the output from the network. * @param input The input to the network. * @return The output from the network. */ public abstract MLData compute(MLData input); /** * @return the deriv */ public double[] getDeriv() { return this.deriv; } /** * @return the deriv2 */ public double[] getDeriv2() { return this.deriv2; } /** * @return the error */ public double getError() { return this.error; } /** * @return the exclude */ public int getExclude() { return this.exclude; } /** * @return the inputCount */ public int getInputCount() { return this.inputCount; } /** * @return the kernel */ public PNNKernelType getKernel() { return this.kernel; } /** * @return the outputCount */ public int getOutputCount() { return this.outputCount; } /** * @return the outputMode */ public PNNOutputMode getOutputMode() { return this.outputMode; } /** * @return the trained */ public boolean isTrained() { return this.trained; } /** * Reset the confusion. */ public void resetConfusion() { } /** * @param error * the error to set */ public final void setError(final double error) { this.error = error; } /** * @param exclude * the exclude to set */ public final void setExclude(final int exclude) { this.exclude = exclude; } /** * @param trained * the trained to set */ public final void setTrained(final boolean trained) { this.trained = trained; } /** * @return the separateClass */ public final boolean isSeparateClass() { return separateClass; } /** * @param separateClass the separateClass to set */ public final void setSeparateClass(boolean separateClass) { this.separateClass = separateClass; } }
[ "reinierdevalk@gmail.com" ]
reinierdevalk@gmail.com
a2a4ffbfcfe7fddb22e08f5a747551dd6ec4fa52
427b69465523bd39b1fb14b30aa5b13d86addfa7
/sp5-web/ex02/src/test/java/org/zerock/mapper/ReplyMapperTests.java
aec6c23b951810be20e97635bbe14334f7cb2b7f
[]
no_license
hansol4412/project
fb0fa7b816720fcf0bb518b91c7b2f172b3672a6
a7ec872f30844944c83bc801f7b84df200dbaa43
refs/heads/master
2023-03-16T18:55:39.423865
2021-03-06T11:42:52
2021-03-06T11:42:52
313,502,040
0
0
null
null
null
null
WINDOWS-1253
Java
false
false
1,670
java
package org.zerock.mapper; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.zerock.domain.Criteria; import org.zerock.domain.ReplyVO; import lombok.Setter; import lombok.extern.log4j.Log4j; import java.util.stream.IntStream; import java.util.List; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration("file:src/main/webapp/WEB-INF/spring/root-context.xml") @Log4j public class ReplyMapperTests { private Long[] bnoArr = { 141L, 142L, 143L, 144L, 145L}; @Setter(onMethod_ = @Autowired) private ReplyMapper mapper; @Test public void testMapper() { log.info(mapper); } /* @Test public void testCreate() { IntStream.rangeClosed(1, 100).forEach(i -> { ReplyVO vo = new ReplyVO(); vo.setBno(bnoArr[i % 5]); vo.setReply("΄ρΕ¬ ΕΧ½ΊΖ®" + i); vo.setReplyer("replyer" + i); mapper.insert(vo); }); } @Test public void testRead() { Long targetRno = 5L; ReplyVO vo = mapper.read(targetRno); log.info(vo); } @Test public void testDelete() { Long targetRno = 10L; mapper.delete(targetRno); } @Test public void testUpdate() { Long targetRno = 5L; ReplyVO vo = mapper.read(targetRno); vo.setReply("update reply"); int count = mapper.update(vo); log.info("update count::"+count); } */ @Test public void testList2() { Criteria cri = new Criteria(2,10); List<ReplyVO> replies = mapper.getListWithPaging(cri, 141L); replies.forEach(reply -> log.info(reply)); } }
[ "hansol4412@naver.com" ]
hansol4412@naver.com
12e679846c6e0691472b8fbe87ca43e05adb813b
407187db6ebba5e8028f91e4902bf2e2b9452d39
/src/main/java/com/example/demo/Repository/FuncionarioRepository.java
0c85b44096256afe63316b3e3541c79fa8ff7c22
[]
no_license
lunarktvp/estacionamento-backend
da7028c4f7bc7329d8b01a61b6d62ba81c64f75a
7f861a7b49b44571c82c93b91b3432fed04f5a48
refs/heads/main
2023-08-11T05:58:48.201630
2021-09-30T21:22:57
2021-09-30T21:22:57
378,711,932
0
0
null
null
null
null
UTF-8
Java
false
false
423
java
package com.example.demo.Repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import com.example.demo.Model.Funcionario; public interface FuncionarioRepository extends JpaRepository<Funcionario, Long> { Funcionario findById(long id); @Query(value="select (count(matricula)+1) from funcionarios", nativeQuery=true) int pegamatricula(); }
[ "84983523+PedroHenrique-ueg@users.noreply.github.com" ]
84983523+PedroHenrique-ueg@users.noreply.github.com
259ee037de7ee8399c797487e395d8c343d83c06
493ac082253a696445d71889e93c38cb936375f6
/src/oop/MathDemo.java
b1838673725635977151249858201fd15bcaac8c
[]
no_license
koushik173/oop
accdb6e7e7a09f8e919ea4a271ef14a139c5a612
3f44301fa7b0db5d522aa956c67d06dff3fb4eac
refs/heads/main
2023-09-01T18:17:18.404028
2021-10-10T07:10:42
2021-10-10T07:10:42
414,925,105
0
0
null
null
null
null
UTF-8
Java
false
false
405
java
package oop; public class MathDemo { public static void main(String [] args){ System.out.println(Math.abs(-9.5)); System.out.println(Math.sqrt(9.5)); System.out.println(Math.pow(2,3)); System.out.println(Math.PI); System.out.println(Math.log(2.0)); System.out.println(Math.max(2.0,-3)); System.out.println(Math.min(-4.5,-3)); } }
[ "cse_2012020173@lus.ac.bd" ]
cse_2012020173@lus.ac.bd
9150743b5100c2afc93247ffa8b1416451816bf2
76184a0c82158dc73e4b541b6fb7bec3e9b369e0
/domain/src/main/java/com/reign/domain/script/Script.java
ef9afc1c8ff4f5b3597266ac17c82cce9d128c64
[]
no_license
jgteng/reign
b564f7819f2356692eda12b94fc9e421b50d5934
fc678c0293af7a3bb4a12b2cf950d048c4edf513
refs/heads/master
2021-01-21T13:56:53.430672
2016-05-23T08:43:42
2016-05-23T08:43:42
49,260,159
0
0
null
null
null
null
UTF-8
Java
false
false
1,624
java
package com.reign.domain.script; import com.reign.domain.CommonBean; import java.util.Date; /** * Created by ji on 16-1-21. */ public class Script extends CommonBean{ private Long id; private String scptName; private String scptType; private String scptPath; private String description; private Integer scptVersion; private Date created; private Date modified; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getScptName() { return scptName; } public void setScptName(String scptName) { this.scptName = scptName; } public String getScptType() { return scptType; } public void setScptType(String scptType) { this.scptType = scptType; } public String getScptPath() { return scptPath; } public void setScptPath(String scptPath) { this.scptPath = scptPath; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Integer getScptVersion() { return scptVersion; } public void setScptVersion(Integer scptVersion) { this.scptVersion = scptVersion; } public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public Date getModified() { return modified; } public void setModified(Date modified) { this.modified = modified; } }
[ "jgteng@126.com" ]
jgteng@126.com
2d4ad13c41d6a0ceb2e33620238fbbed7139e3a7
69ed6f5276e94b2f3a7f20668a746ea0c5c791c6
/src/main/java/loc/aliar/monitoringsystemserver/converter/AnswerToModelConverter.java
27b65298d43c7277917c68ba1a5aba3e48e9541a
[]
no_license
Aliar1st/monitoring-system-server
8809e9c67965dc8a2bee7d62e603508553551f65
8f15f4c62e749f8082e1704a2fdba60c39c24e4d
refs/heads/master
2020-09-22T04:51:35.119434
2019-11-30T18:43:46
2020-01-19T18:49:47
225,055,239
0
0
null
null
null
null
UTF-8
Java
false
false
583
java
package loc.aliar.monitoringsystemserver.converter; import loc.aliar.monitoringsystemserver.domain.test.Answer; import loc.aliar.monitoringsystemserver.model.AnswerModel; import org.springframework.core.convert.converter.Converter; import org.springframework.stereotype.Component; @Component public class AnswerToModelConverter implements Converter<Answer, AnswerModel> { @Override public AnswerModel convert(Answer answer) { return AnswerModel.builder() .id(answer.getId()) .name(answer.getName()) .build(); } }
[ "Aliar@yandex.ru" ]
Aliar@yandex.ru
29a7732fb77c8ba06924e1fba3e0a32abde569d4
0cb1287b0ca613180bef90e60a9b6692f47f3405
/quickj-plugin/src/main/java/cn/quickj/zv/action/ZvUIActionSupport.java
02f5d43e349204a7a4bb5594b82d7cc8c1a2d07a
[]
no_license
entimm/quick
26052821348c1762634143a9576134539e464760
2079376f31caa51d4e33fbe2b9695d9096f794e4
refs/heads/master
2020-04-27T20:24:05.890830
2014-04-16T02:01:05
2014-04-16T02:01:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
121
java
package cn.quickj.zv.action; import cn.quickj.action.Action; public class ZvUIActionSupport extends Action { }
[ "Administrator@WIN-9TVACMU9D3H" ]
Administrator@WIN-9TVACMU9D3H
3411a6164fb4be39d63f4237ef264811cd4b7119
bf812baa4cfd31d22d74ac7ec1a324641a991ede
/kadry/src/main/java/beanstesty/OkresBean.java
3cbe7a27b649b464851cfe224e378e77f15d8e42
[]
no_license
brzaskun/NetBeansProjects
f5d0abc95a29681fab87e6a039a7f925edab3dc6
aa67838735901cc9171c49600348eaea8e35e523
refs/heads/masterpozmianach
2023-08-31T23:32:37.748389
2023-08-30T21:30:09
2023-08-30T21:30:09
40,359,654
0
0
null
2023-03-27T22:22:00
2015-08-07T12:35:43
Java
UTF-8
Java
false
false
3,004
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package beanstesty; import data.Data; import embeddable.Mce; import embeddable.Okres; import entity.Nieobecnosc; import java.io.Serializable; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.enterprise.context.SessionScoped; import javax.inject.Named; /** * * @author Osito */ @Named @SessionScoped public class OkresBean implements Serializable{ private static final long serialVersionUID = 1L; private static final List<Okres> okresylista; static { okresylista = generujokresy(); } public OkresBean() { } static List<Okres> generujokresy() { List<Okres> zwrot = new ArrayList<>(); Integer rokod = 2020; Integer rokdo = 2043; Integer mcod = 1; Integer mcdo = 12; int i = 1; for (int rok = rokod;rok<=rokdo;rok++) { for (int mc = mcod;mc<=mcdo;mc++) { Okres nowy = new Okres(String.valueOf(rok),Mce.getNumberToMiesiac().get(mc), i); zwrot.add(nowy); } } return zwrot; } static List<Okres> generujokresy(Nieobecnosc nieobecnosc) { List<Okres> zwrot = new ArrayList<>(); Integer rokod = Integer.parseInt(nieobecnosc.getRokod()); Integer rokdo = Integer.parseInt(nieobecnosc.getRokdo()); Integer mcod = Integer.parseInt(nieobecnosc.getMcod()); Integer mcdo = Integer.parseInt(nieobecnosc.getMcdo()); for (int rok = rokod;rok<=rokdo;rok++) { for (int mc = mcod;mc<=mcdo;mc++) { Okres nowy = new Okres(String.valueOf(rok),Mce.getNumberToMiesiac().get(mc)); zwrot.add(nowy); } } return zwrot; } public static List<Okres> pobierzokresy(String dataod, String datado) { Set<Okres> zwrot = new HashSet<>(); String rokod = Data.getRok(dataod); String mcod = Data.getMc(dataod); String rokdo = Data.getRok(datado); String mcdo = Data.getMc(datado); boolean start = false; boolean stop = false; for (Okres o : okresylista) { if (stop==false) { if (rokod.equals(o.getRok())&&mcod.equals(o.getMc())) { zwrot.add(o); start = true; } if (start) { zwrot.add(o); } if (rokdo.equals(o.getRok())&&mcdo.equals(o.getMc())) { zwrot.add(o); stop = true; } } else { break; } } return new ArrayList<>(zwrot); } public List<Okres> getOkresylista() { return okresylista; } }
[ "Osito@DESKTOP-DVFG0DI" ]
Osito@DESKTOP-DVFG0DI
b8803b14fe721e13717e0c004eaf773a6eef9446
4e23c817ebc1e09461218050e26bd5a0ae6e01c9
/src/main/java/lesson9/List2Example.java
a6b9cc87ebeec2a345793c69bdae6137a331972f
[]
no_license
serhiiyasenev/java-automation
df64bc29921d13c9845b5127a85409574ea512a0
1eb345d98121c6b9e4f5c0b49369749b065caf67
refs/heads/master
2023-03-08T01:26:18.957047
2017-12-13T20:05:00
2017-12-13T20:05:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,093
java
package lesson9; import java.util.*; public class List2Example { public static void main(String[] args) { Random random = new Random(30); TreeSet<Integer> numberSet = new TreeSet<>(); for (int i=0; i<1000; i++) { numberSet.add(random.nextInt(10)); } System.out.println(numberSet); List<Student> myStudent = new List<Student>() { @Override public int size() { return 0; } @Override public boolean isEmpty() { return false; } @Override public boolean contains(Object o) { return false; } @Override public Iterator<Student> iterator() { return null; } @Override public Object[] toArray() { return new Object[0]; } @Override public <T> T[] toArray(T[] a) { return null; } @Override public boolean add(Student student) { return false; } @Override public boolean remove(Object o) { return false; } @Override public boolean containsAll(Collection<?> c) { return false; } @Override public boolean addAll(Collection<? extends Student> c) { return false; } @Override public boolean addAll(int index, Collection<? extends Student> c) { return false; } @Override public boolean removeAll(Collection<?> c) { return false; } @Override public boolean retainAll(Collection<?> c) { return false; } @Override public void clear() { } @Override public Student get(int index) { return null; } @Override public Student set(int index, Student element) { return null; } @Override public void add(int index, Student element) { } @Override public Student remove(int index) { return null; } @Override public int indexOf(Object o) { return 0; } @Override public int lastIndexOf(Object o) { return 0; } @Override public ListIterator<Student> listIterator() { return null; } @Override public ListIterator<Student> listIterator(int index) { return null; } @Override public List<Student> subList(int fromIndex, int toIndex) { return null; } }; } }
[ "serhii.yasenev@gmail.com" ]
serhii.yasenev@gmail.com
34db83986f7e9367650e998cd0230c65a5d0c9d8
4627d514d6664526f58fbe3cac830a54679749cd
/results/randoop5/math-org.apache.commons.math.util.ResizableDoubleArray-7/RegressionTest0.java
fdbe67fb928d5ce5f6e16834dd48154d11504748
[]
no_license
STAMP-project/Cling-application
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
refs/heads/master
2022-07-27T09:30:16.423362
2022-07-19T12:01:46
2022-07-19T12:01:46
254,310,667
2
2
null
2021-07-12T12:29:50
2020-04-09T08:11:35
null
UTF-8
Java
false
false
558,262
java
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class RegressionTest0 { public static boolean debug = false; @Test public void test0001() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0001"); int int0 = org.apache.commons.math.util.ResizableDoubleArray.ADDITIVE_MODE; org.junit.Assert.assertTrue("'" + int0 + "' != '" + 1 + "'", int0 == 1); } @Test public void test0002() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0002"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 'a', (float) 100L, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0003() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0003"); int int0 = org.apache.commons.math.util.ResizableDoubleArray.MULTIPLICATIVE_MODE; org.junit.Assert.assertTrue("'" + int0 + "' != '" + 0 + "'", int0 == 0); } @Test public void test0004() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0004"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 1, (float) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0005() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0005"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (-1.0f), (float) (byte) 100, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0006() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0006"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double double3 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double3 + "' != '" + 0.0d + "'", double3 == 0.0d); } @Test public void test0007() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0007"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, (float) 10, (float) '4', (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0008() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0008"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); java.lang.Class<?> wildcardClass2 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0009() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0009"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0010() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0010"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass2 = doubleArray1.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0011() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0011"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, 0.0f, (float) 0L, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0012() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0012"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double double3 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray0.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double3 + "' != '" + 0.0d + "'", double3 == 0.0d); } @Test public void test0013() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0013"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0014() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0014"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements(10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0015() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0015"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double double3 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double3 + "' != '" + 0.0d + "'", double3 == 0.0d); } @Test public void test0016() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0016"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double double7 = resizableDoubleArray0.getElement(10); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); } @Test public void test0017() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0017"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0018() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0018"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 1, (double) ' '); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0019() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0019"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray0.getElement((-1)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0020() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0020"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); java.lang.Class<?> wildcardClass3 = resizableDoubleArray1.getClass(); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0021() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0021"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, (float) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0022() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0022"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, (float) 100L, (float) 1, (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0023() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0023"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(10, 100.0f, (float) '#', (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0024() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0024"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); double[] doubleArray7 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0025() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0025"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); resizableDoubleArray0.setElement((int) (byte) 1, (double) 'a'); // The following exception was thrown during execution in test generation try { double double9 = resizableDoubleArray0.getElement(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0026() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0026"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) '#', (float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0027() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0027"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0028() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0028"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); float float3 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0029() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0029"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0030() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0030"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, (float) (-1L), (float) (byte) 10, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0031() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0031"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0032() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0032"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); java.lang.Class<?> wildcardClass10 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0033() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0033"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0034() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0034"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { double double4 = resizableDoubleArray1.getElement((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 35 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0035() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0035"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, 0.0f, (float) ' ', 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0036() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0036"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { double double11 = resizableDoubleArray0.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0037() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0037"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0038() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0038"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, (float) 1, (float) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0039() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0039"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0040() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0040"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double double7 = resizableDoubleArray0.getElement(10); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); } @Test public void test0041() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0041"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0042() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0042"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(10, 0.0f, (float) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0043() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0043"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0044() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0044"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0045() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0045"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0046() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0046"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) (byte) 1, (float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0047() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0047"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass3 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0048() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0048"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); float float3 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0049() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0049"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); resizableDoubleArray1.addElement((double) (short) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionMode((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0050() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0050"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); double double4 = resizableDoubleArray0.addElementRolling((double) 2.0f); java.lang.Class<?> wildcardClass5 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + double4 + "' != '" + 0.0d + "'", double4 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass5); } @Test public void test0051() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0051"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { double double12 = resizableDoubleArray0.getElement((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0052() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0052"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) '4'); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionFactor(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0053() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0053"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0054() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0054"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); int int5 = resizableDoubleArray1.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0055() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0055"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', (float) ' ', (float) (byte) -1, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0056() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0056"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements(10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0057() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0057"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0058() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0058"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); float float6 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); } @Test public void test0059() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0059"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); double double4 = resizableDoubleArray0.addElementRolling((double) 2.0f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + double4 + "' != '" + 0.0d + "'", double4 == 0.0d); } @Test public void test0060() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0060"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); // The following exception was thrown during execution in test generation try { double double4 = resizableDoubleArray2.getElement((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0061() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0061"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setContractionCriteria((float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0062() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0062"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) 100L); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setContractionCriteria((float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0063() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0063"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0064() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0064"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); resizableDoubleArray0.setExpansionFactor(2.5f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0065() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0065"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 1, (double) ' '); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray0.getElement((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0066() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0066"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); int int5 = resizableDoubleArray1.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor((float) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0067() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0067"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) (-1), (float) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0068() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0068"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements((int) (short) 1); double double12 = resizableDoubleArray0.getElement((int) (byte) 0); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0069() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0069"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) '4'); java.lang.Class<?> wildcardClass3 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0070() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0070"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0071() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0071"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray0.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0072() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0072"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); double double7 = resizableDoubleArray0.addElementRolling((double) 1); int int8 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0073() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0073"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, (-1.0f), 1.0f, (int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0074() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0074"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(0, 2.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0075() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0075"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) (-1L), (float) (-1L), 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0076() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0076"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); float float8 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray9 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass10 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.0f + "'", float8 == 2.0f); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0077() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0077"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass10 = doubleArray9.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0078() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0078"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0079() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0079"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0080() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0080"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(10.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0081() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0081"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); double double9 = resizableDoubleArray0.addElementRolling((double) 10L); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.addElement(10.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0082() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0082"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0083() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0083"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); java.lang.Class<?> wildcardClass11 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0084() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0084"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0085() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0085"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); java.lang.Class<?> wildcardClass3 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0086() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0086"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setElement((int) (byte) 0, (double) 2.5f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria(1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[2.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0087() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0087"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0088() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0088"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { double double12 = resizableDoubleArray0.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0089() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0089"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) (byte) 10); double[] doubleArray3 = resizableDoubleArray2.getValues(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0090() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0090"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4', (float) 0L, (float) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0091() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0091"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.getExpansionMode(); java.lang.Class<?> wildcardClass8 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0092() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0092"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); double double7 = resizableDoubleArray0.addElementRolling((double) 1); int int8 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements(35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0093() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0093"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0094() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0094"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (-1.0f), (float) (short) 0, 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0095() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0095"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4', (float) (short) 0, (float) (short) 1, (int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0096() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0096"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(10); } @Test public void test0097() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0097"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setNumElements((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Number of elements must be zero or a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0098() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0098"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((-1), (float) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0099() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0099"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setExpansionMode(1); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray0.getElement(10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 10 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0100() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0100"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0101() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0101"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) (byte) 10, (float) ' ', (int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0102() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0102"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', (float) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0103() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0103"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); double[] doubleArray10 = resizableDoubleArray0.getElements(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0104() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0104"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); float float13 = resizableDoubleArray0.getExpansionFactor(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + float13 + "' != '" + 2.0f + "'", float13 == 2.0f); } @Test public void test0105() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0105"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', (float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0106() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0106"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', 2.5f, 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0107() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0107"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.start(); int int3 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0108() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0108"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0109() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0109"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.getExpansionMode(); java.lang.Class<?> wildcardClass6 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(wildcardClass6); } @Test public void test0110() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0110"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setElement((int) (short) -1, (double) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0111() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0111"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) (short) 0, 100.0f, 36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0112() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0112"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4', (float) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0113() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0113"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setElement((-1), (double) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0114() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0114"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, (float) 1, (float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0115() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0115"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 10 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0116() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0116"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(10, (float) 'a', (float) 1L, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0117() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0117"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) (short) 10, (float) (byte) 0, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0118() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0118"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setContractionCriteria((float) ' '); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0119() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0119"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double double7 = resizableDoubleArray0.getElement(10); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); } @Test public void test0120() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0120"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0121() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0121"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); resizableDoubleArray0.setExpansionFactor(2.5f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0122() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0122"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0123() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0123"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor((float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0124() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0124"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); double[] doubleArray7 = resizableDoubleArray0.getValues(); int int8 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setElement((int) ' ', 0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 36 + "'", int8 == 36); } @Test public void test0125() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0125"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); double[] doubleArray3 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements(1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0126() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0126"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0127() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0127"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); int int3 = resizableDoubleArray2.getNumElements(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray2.getClass(); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0128() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0128"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) (short) 100, (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0129() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0129"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(10, (float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0130() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0130"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) (short) 10); } @Test public void test0131() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0131"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0132() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0132"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); resizableDoubleArray2.setElement(0, 1.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionMode((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0133() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0133"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); resizableDoubleArray1.clear(); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray1.getElement((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 0 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0134() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0134"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(10.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0135() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0135"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) 100, 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0136() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0136"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(36, (float) 'a', (float) ' ', (int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0137() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0137"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); } @Test public void test0138() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0138"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { double double3 = resizableDoubleArray0.getElement((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0139() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0139"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0140() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0140"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); float float6 = resizableDoubleArray0.getContractionCriteria(); double double8 = resizableDoubleArray0.addElementRolling((double) 36); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); } @Test public void test0141() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0141"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0142() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0142"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); double[] doubleArray3 = resizableDoubleArray2.getElements(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0143() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0143"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0144() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0144"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, 10.0f, (float) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0145() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0145"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0146() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0146"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double double3 = resizableDoubleArray0.addElementRolling(0.0d); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray0.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double3 + "' != '" + 0.0d + "'", double3 == 0.0d); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0147() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0147"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, (float) 10L, 2.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0148() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0148"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0149() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0149"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); int int3 = resizableDoubleArray2.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionFactor((float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0150() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0150"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0151() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0151"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); double double5 = resizableDoubleArray0.addElementRolling((double) (short) 10); int int6 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0152() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0152"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0153() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0153"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); double double5 = resizableDoubleArray0.addElementRolling((double) (short) 10); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement(35); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 35 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0154() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0154"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0155() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0155"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, (float) 100); // The following exception was thrown during execution in test generation try { double double4 = resizableDoubleArray2.getElement((int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 1 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0156() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0156"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); double[] doubleArray3 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionMode((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0157() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0157"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) (short) -1, 100.5f, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0158() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0158"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement(0, (double) (byte) -1); java.lang.Class<?> wildcardClass12 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0159() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0159"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0160() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0160"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, 0.0f, (float) 'a', 36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0161() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0161"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); int int7 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) 10); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0162() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0162"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); resizableDoubleArray2.setElement((int) (byte) 0, (double) 10.0f); int int6 = resizableDoubleArray2.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.discardFrontElements(11); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0163() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0163"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(10, 0.0f, (float) (short) -1, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0164() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0164"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); int int7 = resizableDoubleArray0.start(); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement(36); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 36 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0165() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0165"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); float float3 = resizableDoubleArray0.getExpansionFactor(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0166() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0166"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) (byte) 10); resizableDoubleArray2.setExpansionMode((int) (short) 0); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray2.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0167() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0167"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); int int9 = resizableDoubleArray0.getNumElements(); float float10 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0168() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0168"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray4 = resizableDoubleArray0.getElements(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray0.getElement((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0169() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0169"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement(35, (double) 100L); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0170() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0170"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.contract(); float float5 = resizableDoubleArray0.getExpansionFactor(); int int6 = resizableDoubleArray0.getNumElements(); java.lang.Class<?> wildcardClass7 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float5 + "' != '" + 2.0f + "'", float5 == 2.0f); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 1 + "'", int6 == 1); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0171() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0171"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) (short) 0, (float) (short) -1, (int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0172() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0172"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0173() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0173"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); int int3 = resizableDoubleArray2.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.discardFrontElements((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0174() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0174"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' '); // The following exception was thrown during execution in test generation try { double double3 = resizableDoubleArray1.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0175() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0175"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (short) -1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(100.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0176() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0176"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setNumElements((int) '#'); double double5 = resizableDoubleArray0.getElement((int) (byte) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements(36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0177() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0177"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0178() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0178"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements((int) (short) 1); double double12 = resizableDoubleArray0.getElement((int) (byte) 0); resizableDoubleArray0.clear(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0179() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0179"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); int int7 = resizableDoubleArray0.start(); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0180() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0180"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); double[] doubleArray7 = resizableDoubleArray0.getValues(); int int8 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setElement((int) ' ', 0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 36 + "'", int8 == 36); } @Test public void test0181() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0181"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); double[] doubleArray3 = resizableDoubleArray1.getValues(); float float4 = resizableDoubleArray1.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor((float) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0182() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0182"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0183() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0183"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setElement((int) (short) 10, 100.0d); int int8 = resizableDoubleArray0.getNumElements(); double double10 = resizableDoubleArray0.addElementRolling((double) 0L); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 11 + "'", int8 == 11); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 35.0d + "'", double10 == 35.0d); } @Test public void test0184() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0184"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) '#', (float) 1L, (float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0185() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0185"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); double[] doubleArray7 = resizableDoubleArray0.getValues(); int int8 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setElement((int) ' ', 0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 36 + "'", int8 == 36); } @Test public void test0186() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0186"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(11, (float) (byte) 100, 100.5f); double double5 = resizableDoubleArray3.addElementRolling((double) 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0187() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0187"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setElement((-1), (double) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0188() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0188"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, 10.0f, (float) (short) 100, 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0189() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0189"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0190() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0190"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.contract(); int int6 = resizableDoubleArray0.getExpansionMode(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0191() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0191"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setNumElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Number of elements must be zero or a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0192() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0192"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); int int5 = resizableDoubleArray1.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0193() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0193"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); float float4 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0194() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0194"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0195() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0195"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0196() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0196"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0197() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0197"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 2.5f, (float) (short) 0, (int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0198() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0198"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 100); resizableDoubleArray0.addElement(0.0d); double double11 = resizableDoubleArray0.getElement((int) '4'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0199() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0199"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); double[] doubleArray12 = resizableDoubleArray0.getElements(); java.lang.Class<?> wildcardClass13 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray12); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray12), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0]"); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0200() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0200"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.setContractionCriteria((float) 'a'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0201() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0201"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) (byte) -1, 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0202() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0202"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(99, (float) (byte) -1, (float) 100, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0203() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0203"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) 102); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0204() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0204"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(100.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0205() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0205"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) 'a', (float) 102, 36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0206() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0206"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); double[] doubleArray4 = resizableDoubleArray0.getElements(); int int5 = resizableDoubleArray0.getExpansionMode(); int int6 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[-1.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 1 + "'", int6 == 1); } @Test public void test0207() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0207"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0208() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0208"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0209() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0209"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) ' ', (float) (short) 1, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0210() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0210"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, (float) 0, (float) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0211() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0211"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10); // The following exception was thrown during execution in test generation try { double double3 = resizableDoubleArray1.getElement((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 97 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0212() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0212"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) 102, (float) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0213() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0213"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) 36, (float) (byte) 100, 0); resizableDoubleArray4.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray4.setElement((-1), (double) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0214() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0214"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) '#', (float) (short) 100, 100.5f); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray3.getElement(36); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 36 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0215() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0215"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setContractionCriteria((float) ' '); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0216() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0216"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(102, (float) 99, 10.0f, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0217() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0217"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0218() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0218"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) 0, (float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0219() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0219"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); int int4 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); } @Test public void test0220() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0220"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) 99, (float) 100L, (int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0221() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0221"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (-1)); resizableDoubleArray0.addElement((double) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(11); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0222() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0222"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(35, (float) (-1), 0.0f, (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0223() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0223"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) '#', 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0224() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0224"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) (short) -1); int int7 = resizableDoubleArray0.start(); int int8 = resizableDoubleArray0.start(); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0225() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0225"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); double[] doubleArray3 = resizableDoubleArray1.getValues(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0226() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0226"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, (float) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0227() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0227"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); int int5 = resizableDoubleArray1.getExpansionMode(); int int6 = resizableDoubleArray1.start(); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray1.getElement((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 52 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0228() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0228"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) (short) -1); resizableDoubleArray0.setNumElements((int) (short) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0229() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0229"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); double[] doubleArray7 = resizableDoubleArray0.getValues(); int int8 = resizableDoubleArray0.getNumElements(); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 36 + "'", int8 == 36); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0230() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0230"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) 100L); double[] doubleArray3 = resizableDoubleArray2.getValues(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0231() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0231"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setElement((int) (short) 10, 100.0d); int int8 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements(100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0232() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0232"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); float float8 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray9 = resizableDoubleArray0.getValues(); double[] doubleArray10 = resizableDoubleArray0.getElements(); java.lang.Class<?> wildcardClass11 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.0f + "'", float8 == 2.0f); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0233() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0233"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(11, 100.0f, (float) 4, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0234() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0234"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); int int11 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); } @Test public void test0235() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0235"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(100); // The following exception was thrown during execution in test generation try { double double3 = resizableDoubleArray1.getElement(68); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 68 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0236() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0236"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, (-1.0f), 1.0f, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0237() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0237"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, 2.5f, (float) (byte) 0, (int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0238() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0238"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); double double5 = resizableDoubleArray0.addElementRolling((double) '4'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[52.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[52.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0239() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0239"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); float float8 = resizableDoubleArray0.getExpansionFactor(); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.0f + "'", float8 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0240() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0240"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) (byte) -1, (float) 100L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0241() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0241"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(36, (float) 4, 10.0f, 102); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0242() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0242"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); double[] doubleArray4 = resizableDoubleArray0.getElements(); java.lang.Class<?> wildcardClass5 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[-1.0]"); org.junit.Assert.assertNotNull(wildcardClass5); } @Test public void test0243() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0243"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 100); resizableDoubleArray0.clear(); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0244() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0244"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); int int3 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0245() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0245"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement(0, (double) (byte) -1); int int12 = resizableDoubleArray0.start(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0246() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0246"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); float float4 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0247() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0247"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(10, (float) 35, (float) 4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0248() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0248"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0249() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0249"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setNumElements(10); int int7 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { double double9 = resizableDoubleArray0.getElement((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0250() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0250"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1, (float) (short) -1, (float) 10L, (int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0251() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0251"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { double double17 = resizableDoubleArray0.getElement(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); } @Test public void test0252() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0252"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1, (float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0253() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0253"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (-1)); resizableDoubleArray0.setContractionCriteria((float) (byte) 10); double double9 = resizableDoubleArray0.addElementRolling((double) 100.5f); resizableDoubleArray0.setNumElements((int) (short) 1); java.lang.Class<?> wildcardClass12 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double9 + "' != '" + (-1.0d) + "'", double9 == (-1.0d)); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0254() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0254"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getExpansionFactor(); double double17 = resizableDoubleArray0.addElementRolling((double) (-1.0f)); java.lang.Class<?> wildcardClass18 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass18); } @Test public void test0255() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0255"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement(10.0d); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0256() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0256"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 1); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0257() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0257"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); resizableDoubleArray0.contract(); double[] doubleArray7 = resizableDoubleArray0.getElements(); // The following exception was thrown during execution in test generation try { double double9 = resizableDoubleArray0.getElement((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[]"); } @Test public void test0258() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0258"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(1); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.discardFrontElements(4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0259() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0259"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); double[] doubleArray6 = resizableDoubleArray0.getElements(); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray0.getElement(68); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 68 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 100.0]"); } @Test public void test0260() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0260"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) (byte) 10); double[] doubleArray3 = resizableDoubleArray2.getValues(); float float4 = resizableDoubleArray2.getExpansionFactor(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray2.getElement((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 32 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 10.0f + "'", float4 == 10.0f); } @Test public void test0261() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0261"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(99, 10.0f, (float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0262() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0262"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); double double6 = resizableDoubleArray0.addElementRolling((double) 99); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); } @Test public void test0263() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0263"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); int int5 = resizableDoubleArray0.start(); float float6 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements(0); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.0f + "'", float6 == 2.0f); } @Test public void test0264() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0264"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, (float) 4); } @Test public void test0265() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0265"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0266() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0266"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.setNumElements((int) 'a'); float float6 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray0.getElement(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); } @Test public void test0267() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0267"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.start(); int int8 = resizableDoubleArray0.start(); double double10 = resizableDoubleArray0.addElementRolling((double) 0L); resizableDoubleArray0.contract(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); } @Test public void test0268() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0268"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((-1), (float) 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0269() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0269"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1, (float) 4, 100.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0270() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0270"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(36, (float) (short) 100); } @Test public void test0271() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0271"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setElement((int) (byte) 0, (double) 2.5f); int int11 = resizableDoubleArray0.start(); java.lang.Class<?> wildcardClass12 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[2.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0272() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0272"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); resizableDoubleArray0.setExpansionFactor(2.5f); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray0.getElement((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 10 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0273() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0273"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) (byte) -1, (float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0274() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0274"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); float float3 = resizableDoubleArray2.getExpansionFactor(); java.lang.Class<?> wildcardClass4 = resizableDoubleArray2.getClass(); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 100.0f + "'", float3 == 100.0f); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0275() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0275"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', (float) (byte) 10, 2.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0276() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0276"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setElement(10, (double) 36); java.lang.Class<?> wildcardClass8 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0277() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0277"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (short) -1); double[] doubleArray15 = resizableDoubleArray0.getElements(); double[] doubleArray16 = resizableDoubleArray0.getElements(); int int17 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray15); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray15), "[-1.0]"); org.junit.Assert.assertNotNull(doubleArray16); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray16), "[-1.0]"); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 1 + "'", int17 == 1); } @Test public void test0278() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0278"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.setContractionCriteria((float) 'a'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements(4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0279() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0279"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); } @Test public void test0280() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0280"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) (byte) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); } @Test public void test0281() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0281"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setElement((int) (byte) 0, (double) 2.5f); int int11 = resizableDoubleArray0.start(); resizableDoubleArray0.setElement((int) '#', 1.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[2.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0282() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0282"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0283() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0283"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); float float5 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float5 + "' != '" + 2.5f + "'", float5 == 2.5f); } @Test public void test0284() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0284"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(4, 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0285() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0285"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.start(); int int6 = resizableDoubleArray0.getNumElements(); java.lang.Class<?> wildcardClass7 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0286() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0286"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(97, (float) (-1), (float) 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0287() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0287"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.start(); double[] doubleArray8 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(doubleArray8); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray8), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0288() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0288"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement(10.0d); double[] doubleArray9 = resizableDoubleArray0.getElements(); java.lang.Class<?> wildcardClass10 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[10.0]"); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0289() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0289"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(1, (float) 97, (float) 97, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0290() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0290"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); resizableDoubleArray2.setExpansionMode(1); resizableDoubleArray2.clear(); resizableDoubleArray2.contract(); } @Test public void test0291() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0291"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.setNumElements((int) 'a'); float float6 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(100.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); } @Test public void test0292() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0292"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) 35, 36.5f, 68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0293() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0293"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); resizableDoubleArray2.setElement(0, 1.0d); float float6 = resizableDoubleArray2.getContractionCriteria(); java.lang.Class<?> wildcardClass7 = resizableDoubleArray2.getClass(); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 100.5f + "'", float6 == 100.5f); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0294() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0294"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setNumElements(10); int int7 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0295() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0295"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); float float13 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + float13 + "' != '" + 2.0f + "'", float13 == 2.0f); } @Test public void test0296() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0296"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.clear(); double[] doubleArray11 = resizableDoubleArray0.getElements(); int int12 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(doubleArray11); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray11), "[]"); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0297() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0297"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(97, (float) 99, (float) 36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0298() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0298"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.contract(); int int12 = resizableDoubleArray0.getExpansionMode(); double[] doubleArray13 = resizableDoubleArray0.getElements(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(doubleArray13); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray13), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0299() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0299"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); double double5 = resizableDoubleArray0.addElementRolling((double) (short) 10); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement(1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 1 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0300() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0300"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(10, 36.5f); } @Test public void test0301() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0301"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); int int4 = resizableDoubleArray0.getNumElements(); double double6 = resizableDoubleArray0.addElementRolling((double) 1); java.lang.Class<?> wildcardClass7 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0302() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0302"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) (byte) 1); int int12 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) (byte) -1); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0303() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0303"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', (float) (short) 100); float float3 = resizableDoubleArray2.getContractionCriteria(); resizableDoubleArray2.setNumElements((int) '4'); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 100.5f + "'", float3 == 100.5f); } @Test public void test0304() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0304"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) (byte) 1); resizableDoubleArray0.addElement((double) 100L); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 100L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); } @Test public void test0305() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0305"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(36); resizableDoubleArray1.setNumElements((int) (short) 10); resizableDoubleArray1.setContractionCriteria((float) 'a'); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray1.getElement(102); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 102 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0306() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0306"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); double double6 = resizableDoubleArray0.getElement((int) (byte) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); } @Test public void test0307() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0307"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); float float3 = resizableDoubleArray2.getContractionCriteria(); int int4 = resizableDoubleArray2.getExpansionMode(); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 36.5f + "'", float3 == 36.5f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0308() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0308"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); } @Test public void test0309() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0309"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setNumElements(10); float float7 = resizableDoubleArray0.getExpansionFactor(); java.lang.Class<?> wildcardClass8 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + float7 + "' != '" + 2.0f + "'", float7 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0310() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0310"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); double[] doubleArray3 = resizableDoubleArray2.getValues(); resizableDoubleArray2.addElement(0.0d); resizableDoubleArray2.addElement((double) 36); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionFactor((float) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0]"); } @Test public void test0311() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0311"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0312() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0312"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(11, (float) (short) 10); // The following exception was thrown during execution in test generation try { double double4 = resizableDoubleArray2.getElement(4); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 4 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0313() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0313"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); double[] doubleArray12 = resizableDoubleArray0.getElements(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (byte) 10); java.lang.Class<?> wildcardClass16 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray12); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray12), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0]"); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0314() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0314"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, 10.5f, (float) ' ', 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0315() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0315"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) -1, 2.5f, (float) 97, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0316() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0316"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setNumElements(10); int int7 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0317() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0317"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.clear(); java.lang.Class<?> wildcardClass17 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0318() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0318"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.setNumElements((int) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); } @Test public void test0319() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0319"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 100L, (float) 1, 99); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0320() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0320"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) -1, (float) (byte) 0, 100.0f, (int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0321() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0321"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); resizableDoubleArray0.discardFrontElements((int) (short) 1); double double13 = resizableDoubleArray0.getElement(35); int int14 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 36); int int17 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 102); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 99 + "'", int14 == 99); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 99 + "'", int17 == 99); } @Test public void test0322() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0322"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); int int11 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 10L); int int14 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 100 + "'", int14 == 100); } @Test public void test0323() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0323"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); double[] doubleArray16 = resizableDoubleArray0.getValues(); double[] doubleArray17 = resizableDoubleArray0.getValues(); int int18 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(doubleArray16); org.junit.Assert.assertNotNull(doubleArray17); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1); } @Test public void test0324() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0324"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getExpansionMode(); double double12 = resizableDoubleArray0.addElementRolling((double) 2.0f); double[] doubleArray13 = resizableDoubleArray0.getValues(); resizableDoubleArray0.discardFrontElements((int) (byte) 100); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertNotNull(doubleArray13); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray13), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0325() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0325"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setNumElements((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Number of elements must be zero or a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0326() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0326"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); resizableDoubleArray1.setNumElements(0); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor(10.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0327() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0327"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); resizableDoubleArray2.setExpansionMode(1); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.discardFrontElements((int) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0328() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0328"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 100, (float) (byte) 10); double[] doubleArray3 = resizableDoubleArray2.getValues(); float float4 = resizableDoubleArray2.getExpansionFactor(); resizableDoubleArray2.discardFrontElements(0); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.discardFrontElements((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 10.0f + "'", float4 == 10.0f); } @Test public void test0329() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0329"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); float float6 = resizableDoubleArray0.getContractionCriteria(); double double8 = resizableDoubleArray0.addElementRolling((double) 36); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0330() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0330"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray4 = resizableDoubleArray0.getValues(); java.lang.Class<?> wildcardClass5 = doubleArray4.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass5); } @Test public void test0331() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0331"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements((int) (short) 1); resizableDoubleArray0.setElement(99, (double) 100.0f); // The following exception was thrown during execution in test generation try { double double15 = resizableDoubleArray0.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0332() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0332"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) (byte) 0, 10.0f, 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0333() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0333"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); float float5 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setElement((int) (byte) -1, (-1.0d)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float5 + "' != '" + 2.5f + "'", float5 == 2.5f); } @Test public void test0334() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0334"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(68, (float) (short) 10, (float) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0335() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0335"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); int int1 = resizableDoubleArray0.getExpansionMode(); java.lang.Class<?> wildcardClass2 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + int1 + "' != '" + 0 + "'", int1 == 0); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0336() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0336"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); double double5 = resizableDoubleArray0.addElementRolling((double) '4'); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[52.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[52.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0337() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0337"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) (short) 10, (float) 'a', (int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0338() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0338"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' ', 36.5f, (float) 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0339() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0339"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(10, (float) (byte) 1, (float) 1, (int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0340() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0340"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.contract(); float float5 = resizableDoubleArray0.getExpansionFactor(); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setNumElements(99); java.lang.Class<?> wildcardClass9 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float5 + "' != '" + 2.0f + "'", float5 == 2.0f); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 1 + "'", int6 == 1); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0341() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0341"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(11, (float) (byte) 100, (float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0342() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0342"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(99, (float) 0, (float) (-1L), 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0343() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0343"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); double[] doubleArray3 = resizableDoubleArray2.getValues(); resizableDoubleArray2.addElement(0.0d); resizableDoubleArray2.addElement((double) 36); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setContractionCriteria((float) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0]"); } @Test public void test0344() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0344"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(101, (float) (-1), 36.5f, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0345() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0345"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, (float) 4, (float) 100L, 0); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray4.getElement((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 32 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0346() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0346"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); int int8 = resizableDoubleArray0.start(); double double10 = resizableDoubleArray0.addElementRolling((double) 36.5f); java.lang.Class<?> wildcardClass11 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0347() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0347"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); double[] doubleArray3 = resizableDoubleArray0.getElements(); double double5 = resizableDoubleArray0.addElementRolling((double) 'a'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0348() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0348"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); java.lang.Class<?> wildcardClass3 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0349() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0349"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, (float) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0350() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0350"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); int int5 = resizableDoubleArray0.start(); float float6 = resizableDoubleArray0.getExpansionFactor(); double double8 = resizableDoubleArray0.getElement((int) (byte) 0); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.0f + "'", float6 == 2.0f); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 35.0d + "'", double8 == 35.0d); } @Test public void test0351() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0351"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor((float) 36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0352() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0352"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(102, (float) (short) 10); int int3 = resizableDoubleArray2.start(); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0353() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0353"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); resizableDoubleArray1.addElement((double) (short) 0); resizableDoubleArray1.addElement((double) 10.0f); resizableDoubleArray1.setElement((int) (byte) 100, (double) (short) 1); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0354() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0354"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(35, 0.0f, (float) 4, 99); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0355() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0355"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); double[] doubleArray3 = resizableDoubleArray2.getElements(); double double5 = resizableDoubleArray2.addElementRolling((double) 100.0f); double[] doubleArray6 = resizableDoubleArray2.getElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionFactor(100.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[]"); } @Test public void test0356() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0356"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(36); resizableDoubleArray1.setContractionCriteria((float) 11); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray1.getElement(36); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 36 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0357() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0357"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setNumElements(10); float float7 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (short) 1); double double11 = resizableDoubleArray0.addElementRolling((double) 100); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + float7 + "' != '" + 2.0f + "'", float7 == 2.0f); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 35.0d + "'", double11 == 35.0d); } @Test public void test0358() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0358"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.start(); resizableDoubleArray0.discardFrontElements((int) (short) 100); resizableDoubleArray0.addElement(0.0d); double double16 = resizableDoubleArray0.addElementRolling(0.0d); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0359() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0359"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 10, 100.0f, (float) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0360() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0360"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.getExpansionMode(); float float8 = resizableDoubleArray0.getContractionCriteria(); int int9 = resizableDoubleArray0.start(); java.lang.Class<?> wildcardClass10 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.5f + "'", float8 == 2.5f); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0361() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0361"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, 100.0f); java.lang.Class<?> wildcardClass3 = resizableDoubleArray2.getClass(); org.junit.Assert.assertNotNull(wildcardClass3); } @Test public void test0362() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0362"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setExpansionMode(1); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement(36, (double) 10L); resizableDoubleArray0.addElement((double) 36.5f); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(10.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0363() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0363"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); int int5 = resizableDoubleArray0.start(); float float6 = resizableDoubleArray0.getExpansionFactor(); double double8 = resizableDoubleArray0.getElement((int) (byte) 0); resizableDoubleArray0.setElement(68, 100.0d); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.0f + "'", float6 == 2.0f); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 35.0d + "'", double8 == 35.0d); } @Test public void test0364() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0364"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0365() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0365"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(35, (float) 100, (float) 0L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0366() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0366"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(11, 36.5f, 100.5f); // The following exception was thrown during execution in test generation try { resizableDoubleArray3.setExpansionFactor((float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0367() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0367"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements((int) (short) 1); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setElement((int) (short) -1, 100.0d); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0368() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0368"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100, (float) (-1L), (float) (byte) 0, 4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0369() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0369"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4', (float) 10, 100.5f, 99); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0370() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0370"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 100); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 10 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0371() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0371"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); double double5 = resizableDoubleArray0.addElementRolling(0.0d); resizableDoubleArray0.setContractionCriteria((float) 'a'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0372() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0372"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); // The following exception was thrown during execution in test generation try { double double7 = resizableDoubleArray0.getElement(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); } @Test public void test0373() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0373"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, 0.0f, (float) 99); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0374() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0374"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) ' ', (float) 35); double[] doubleArray4 = resizableDoubleArray3.getElements(); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[]"); } @Test public void test0375() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0375"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, (float) 10, (float) '4', (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0376() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0376"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0377() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0377"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); int int13 = resizableDoubleArray0.start(); double[] doubleArray14 = resizableDoubleArray0.getValues(); resizableDoubleArray0.addElement((double) (byte) 100); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertNotNull(doubleArray14); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray14), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0]"); } @Test public void test0378() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0378"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements((int) (short) 1); double double12 = resizableDoubleArray0.getElement((int) (byte) 0); double double14 = resizableDoubleArray0.addElementRolling((double) '4'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0379() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0379"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.contract(); resizableDoubleArray0.setNumElements(11); resizableDoubleArray0.contract(); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0380() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0380"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int5 = resizableDoubleArray0.start(); int int6 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.clear(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0381() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0381"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); double[] doubleArray3 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor((float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0382() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0382"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); int int4 = resizableDoubleArray0.start(); int int5 = resizableDoubleArray0.start(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0383() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0383"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); float float2 = resizableDoubleArray1.getContractionCriteria(); int int3 = resizableDoubleArray1.getExpansionMode(); float float4 = resizableDoubleArray1.getExpansionFactor(); java.lang.Class<?> wildcardClass5 = resizableDoubleArray1.getClass(); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.5f + "'", float2 == 2.5f); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass5); } @Test public void test0384() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0384"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray0.getElement((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0385() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0385"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) (short) -1); int int7 = resizableDoubleArray0.getExpansionMode(); java.lang.Class<?> wildcardClass8 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(wildcardClass8); } @Test public void test0386() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0386"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1); resizableDoubleArray1.setExpansionMode(0); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setElement((int) (byte) -1, (double) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Cannot set an element at a negative index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } } @Test public void test0387() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0387"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); float float2 = resizableDoubleArray1.getContractionCriteria(); int int3 = resizableDoubleArray1.getExpansionMode(); float float4 = resizableDoubleArray1.getExpansionFactor(); resizableDoubleArray1.contract(); double[] doubleArray6 = resizableDoubleArray1.getValues(); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray1.getElement((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.5f + "'", float2 == 2.5f); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0]"); } @Test public void test0388() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0388"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); float float8 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray9 = resizableDoubleArray0.getValues(); resizableDoubleArray0.contract(); double[] doubleArray11 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setNumElements((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Number of elements must be zero or a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.0f + "'", float8 == 2.0f); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray11); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray11), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0389() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0389"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(0, (-1.0f), (float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0390() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0390"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(68, (float) 100L, (float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0391() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0391"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setContractionCriteria((float) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0392() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0392"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(10, (float) 102, 36.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0393() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0393"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement(10.0d); resizableDoubleArray0.setExpansionMode(1); java.lang.Class<?> wildcardClass11 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0394() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0394"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); int int4 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray0.getElement(100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0395() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0395"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); int int3 = resizableDoubleArray2.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionMode(4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0396() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0396"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (-1)); resizableDoubleArray0.addElement((double) '#'); double double9 = resizableDoubleArray0.getElement(0); resizableDoubleArray0.setContractionCriteria((float) 36); resizableDoubleArray0.setExpansionMode(1); java.lang.Class<?> wildcardClass14 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double9 + "' != '" + (-1.0d) + "'", double9 == (-1.0d)); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0397() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0397"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0398() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0398"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.start(); int int8 = resizableDoubleArray0.start(); double double10 = resizableDoubleArray0.addElementRolling((double) 0L); resizableDoubleArray0.addElement((double) 100.5f); // The following exception was thrown during execution in test generation try { double double14 = resizableDoubleArray0.getElement((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); } @Test public void test0399() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0399"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); double[] doubleArray16 = resizableDoubleArray0.getValues(); double[] doubleArray17 = resizableDoubleArray0.getValues(); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(11); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(doubleArray16); org.junit.Assert.assertNotNull(doubleArray17); } @Test public void test0400() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0400"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 102); int int12 = resizableDoubleArray0.start(); java.lang.Class<?> wildcardClass13 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0401() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0401"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); double double4 = resizableDoubleArray0.addElementRolling((double) 2.0f); double[] doubleArray5 = resizableDoubleArray0.getElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + double4 + "' != '" + 0.0d + "'", double4 == 0.0d); org.junit.Assert.assertNotNull(doubleArray5); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray5), "[]"); } @Test public void test0402() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0402"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.start(); resizableDoubleArray0.setNumElements((int) (byte) 100); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement(102); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 102 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 1 + "'", int6 == 1); } @Test public void test0403() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0403"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1, 100.0f, 100.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0404() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0404"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); java.lang.Class<?> wildcardClass2 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0405() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0405"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(35, (float) 102, 2.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0406() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0406"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, (float) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0407() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0407"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); int int11 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); } @Test public void test0408() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0408"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); double[] doubleArray3 = resizableDoubleArray0.getValues(); float float4 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0409() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0409"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(35, 10.0f); } @Test public void test0410() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0410"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (byte) 100, (double) (short) 100); resizableDoubleArray0.addElement(0.0d); double double11 = resizableDoubleArray0.getElement((int) '4'); resizableDoubleArray0.setExpansionMode((int) (byte) 1); double double15 = resizableDoubleArray0.getElement(1); float float16 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setElement(0, (double) 101); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + float16 + "' != '" + 2.5f + "'", float16 == 2.5f); } @Test public void test0411() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0411"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); resizableDoubleArray2.setExpansionMode(1); resizableDoubleArray2.clear(); int int6 = resizableDoubleArray2.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionFactor((float) 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0412() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0412"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); java.lang.Class<?> wildcardClass16 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0413() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0413"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', (float) (byte) 10, (float) 10L, 4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0414() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0414"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, (double) 0.0f); resizableDoubleArray0.setExpansionFactor(2.5f); resizableDoubleArray0.contract(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0415() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0415"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0416() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0416"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(101, (float) 'a', 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0417() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0417"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4', (float) (short) 100); double[] doubleArray3 = resizableDoubleArray2.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.discardFrontElements(68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0418() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0418"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray(101, (float) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0419() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0419"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); float float8 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setContractionCriteria(100.5f); double double12 = resizableDoubleArray0.addElementRolling(10.0d); float float13 = resizableDoubleArray0.getExpansionFactor(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float8 + "' != '" + 2.0f + "'", float8 == 2.0f); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + float13 + "' != '" + 2.0f + "'", float13 == 2.0f); } @Test public void test0420() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0420"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); float float2 = resizableDoubleArray1.getContractionCriteria(); int int3 = resizableDoubleArray1.getExpansionMode(); float float4 = resizableDoubleArray1.getExpansionFactor(); resizableDoubleArray1.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setExpansionFactor(0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.5f + "'", float2 == 2.5f); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); } @Test public void test0421() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0421"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.clear(); resizableDoubleArray0.setContractionCriteria(2.0f); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); } @Test public void test0422() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0422"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); double[] doubleArray4 = resizableDoubleArray0.getElements(); int int5 = resizableDoubleArray0.getExpansionMode(); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria(2.5f); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[-1.0]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 1 + "'", int6 == 1); } @Test public void test0423() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0423"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); int int3 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { double double5 = resizableDoubleArray0.getElement((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 0 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0424() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0424"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); double double5 = resizableDoubleArray0.addElementRolling(0.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(99); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); } @Test public void test0425() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0425"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) 102, 1.0f, 4); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0426() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0426"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); double[] doubleArray16 = resizableDoubleArray0.getValues(); double[] doubleArray17 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { double double19 = resizableDoubleArray0.getElement((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(doubleArray16); org.junit.Assert.assertNotNull(doubleArray17); } @Test public void test0427() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0427"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); resizableDoubleArray0.discardFrontElements((int) (short) 1); double double13 = resizableDoubleArray0.getElement(35); int int14 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 36); int int17 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.discardFrontElements(97); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 99 + "'", int14 == 99); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 99 + "'", int17 == 99); } @Test public void test0428() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0428"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 0, (float) 4, (float) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: 0must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0429() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0429"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a', 10.0f, (float) ' ', (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0430() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0430"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); java.lang.Class<?> wildcardClass4 = resizableDoubleArray0.getClass(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0431() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0431"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setNumElements((int) (short) 100); double[] doubleArray8 = resizableDoubleArray0.getElements(); resizableDoubleArray0.setElement((int) '4', (double) (-1L)); float float12 = resizableDoubleArray0.getContractionCriteria(); double double14 = resizableDoubleArray0.addElementRolling((double) 4); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(doubleArray8); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray8), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float12 + "' != '" + 2.5f + "'", float12 == 2.5f); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0432() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0432"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, 0.0f, (float) 1L, 11); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0433() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0433"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); double[] doubleArray5 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement(35.0d); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertNotNull(doubleArray5); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray5), "[35.0]"); } @Test public void test0434() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0434"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.discardFrontElements(1); resizableDoubleArray0.setContractionCriteria(2.0f); float float15 = resizableDoubleArray0.getContractionCriteria(); double[] doubleArray16 = resizableDoubleArray0.getValues(); double[] doubleArray17 = resizableDoubleArray0.getValues(); int int18 = resizableDoubleArray0.start(); double double20 = resizableDoubleArray0.addElementRolling((double) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); org.junit.Assert.assertNotNull(doubleArray16); org.junit.Assert.assertNotNull(doubleArray17); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0435() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0435"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0436() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0436"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, (float) (-1L), (float) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0437() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0437"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) -1, (float) 100L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The initial capacity supplied: -1must be a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0438() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0438"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) -1, (float) 1, (float) (short) 10, (int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0439() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0439"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); float float3 = resizableDoubleArray0.getExpansionFactor(); int int4 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.addElement((double) 2.0f); int int7 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) (short) 10); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0440() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0440"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) (short) -1); int int7 = resizableDoubleArray0.start(); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { double double12 = resizableDoubleArray0.getElement((-1)); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: Elements cannot be retrieved from a negative array index"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[-1.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); } @Test public void test0441() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0441"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(4, (float) (short) -1, (float) 68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0442() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0442"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); int int5 = resizableDoubleArray0.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); } @Test public void test0443() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0443"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); float float2 = resizableDoubleArray1.getContractionCriteria(); int int3 = resizableDoubleArray1.getExpansionMode(); float float4 = resizableDoubleArray1.getExpansionFactor(); resizableDoubleArray1.contract(); float float6 = resizableDoubleArray1.getExpansionFactor(); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.5f + "'", float2 == 2.5f); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.0f + "'", float6 == 2.0f); } @Test public void test0444() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0444"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setExpansionMode(1); resizableDoubleArray0.contract(); resizableDoubleArray0.setElement(36, (double) 10L); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); } @Test public void test0445() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0445"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.setExpansionMode((int) (short) 1); float float12 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float12 + "' != '" + 2.5f + "'", float12 == 2.5f); } @Test public void test0446() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0446"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, (float) 1, (float) 35, (int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0447() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0447"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, 10.0f, (float) 1, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0448() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0448"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 10, (float) (-1L), (float) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0449() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0449"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray(35); java.lang.Class<?> wildcardClass2 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0450() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0450"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (-1)); resizableDoubleArray0.addElement((double) '#'); double double9 = resizableDoubleArray0.getElement(0); int int10 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double9 + "' != '" + (-1.0d) + "'", double9 == (-1.0d)); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0451() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0451"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int5 = resizableDoubleArray0.getExpansionMode(); float float6 = resizableDoubleArray0.getContractionCriteria(); double[] doubleArray7 = resizableDoubleArray0.getValues(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); org.junit.Assert.assertNotNull(doubleArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray7), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0452() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0452"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.addElement((double) '#'); resizableDoubleArray0.setElement((int) (short) 10, 100.0d); int int8 = resizableDoubleArray0.start(); int int9 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 11 + "'", int9 == 11); } @Test public void test0453() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0453"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setElement(10, (double) 36); double double9 = resizableDoubleArray0.addElementRolling((-1.0d)); double double11 = resizableDoubleArray0.getElement((int) (byte) 10); int int12 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + (-1.0d) + "'", double11 == (-1.0d)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 11 + "'", int12 == 11); } @Test public void test0454() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0454"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 1, (float) 36); resizableDoubleArray2.setNumElements(10); resizableDoubleArray2.setNumElements(11); resizableDoubleArray2.setExpansionFactor(10.5f); } @Test public void test0455() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0455"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); int int3 = resizableDoubleArray2.getExpansionMode(); float float4 = resizableDoubleArray2.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray2.setExpansionMode((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 10.0f + "'", float4 == 10.0f); } @Test public void test0456() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0456"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); resizableDoubleArray0.discardFrontElements((int) (short) 1); double double13 = resizableDoubleArray0.getElement(35); int int14 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 36); java.lang.Class<?> wildcardClass17 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 99 + "'", int14 == 99); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0457() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0457"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) 'a'); float float2 = resizableDoubleArray1.getContractionCriteria(); int int3 = resizableDoubleArray1.getExpansionMode(); float float4 = resizableDoubleArray1.getExpansionFactor(); resizableDoubleArray1.contract(); double[] doubleArray6 = resizableDoubleArray1.getValues(); float float7 = resizableDoubleArray1.getExpansionFactor(); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.5f + "'", float2 == 2.5f); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0]"); org.junit.Assert.assertTrue("'" + float7 + "' != '" + 2.0f + "'", float7 == 2.0f); } @Test public void test0458() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0458"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) '#', (float) (byte) 10, (float) '#'); // The following exception was thrown during execution in test generation try { resizableDoubleArray3.setExpansionMode(10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0459() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0459"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); double double9 = resizableDoubleArray0.addElementRolling((double) 10L); float float10 = resizableDoubleArray0.getContractionCriteria(); double double12 = resizableDoubleArray0.addElementRolling((double) 100.5f); int int13 = resizableDoubleArray0.start(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 100.0d + "'", double12 == 100.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0460() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0460"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); double[] doubleArray6 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setContractionCriteria((float) ' '); // The following exception was thrown during execution in test generation try { double double10 = resizableDoubleArray0.getElement((int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0461() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0461"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray(0, 0.0f, 97.0f, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0462() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0462"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) ' '); double double3 = resizableDoubleArray1.addElementRolling((double) 35); int int4 = resizableDoubleArray1.start(); // The following exception was thrown during execution in test generation try { double double6 = resizableDoubleArray1.getElement((int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 32 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double3 + "' != '" + 0.0d + "'", double3 == 0.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 0 + "'", int4 == 0); } @Test public void test0463() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0463"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) '4'); java.lang.Class<?> wildcardClass2 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(wildcardClass2); } @Test public void test0464() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0464"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setNumElements((int) '#'); double double5 = resizableDoubleArray0.addElementRolling((double) 'a'); float float6 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements(35); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.0f + "'", float6 == 2.0f); } @Test public void test0465() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0465"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); int int2 = resizableDoubleArray1.getExpansionMode(); resizableDoubleArray1.clear(); resizableDoubleArray1.discardFrontElements(0); int int6 = resizableDoubleArray1.start(); // The following exception was thrown during execution in test generation try { resizableDoubleArray1.setNumElements((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Number of elements must be zero or a positive integer"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0466() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0466"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) '4'); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0467() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0467"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); float float3 = resizableDoubleArray0.getExpansionFactor(); double double5 = resizableDoubleArray0.addElementRolling(0.0d); int int6 = resizableDoubleArray0.getNumElements(); int int7 = resizableDoubleArray0.start(); resizableDoubleArray0.addElement((double) 10); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); } @Test public void test0468() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0468"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); resizableDoubleArray0.setContractionCriteria((float) 'a'); java.lang.Class<?> wildcardClass6 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass6); } @Test public void test0469() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0469"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray2 = resizableDoubleArray0.getValues(); resizableDoubleArray0.clear(); double[] doubleArray4 = resizableDoubleArray0.getElements(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[]"); } @Test public void test0470() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0470"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.contract(); float float12 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setElement((int) (short) 1, 100.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor((float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + float12 + "' != '" + 2.0f + "'", float12 == 2.0f); } @Test public void test0471() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0471"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.start(); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setContractionCriteria(2.0f); int int13 = resizableDoubleArray0.start(); double[] doubleArray14 = resizableDoubleArray0.getValues(); int int15 = resizableDoubleArray0.getNumElements(); int int16 = resizableDoubleArray0.start(); java.lang.Class<?> wildcardClass17 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertNotNull(doubleArray14); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray14), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 100 + "'", int15 == 100); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0472() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0472"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0473() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0473"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); resizableDoubleArray0.clear(); int int5 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setNumElements((int) (short) 100); double[] doubleArray8 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(36); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertNotNull(doubleArray8); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray8), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0474() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0474"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); resizableDoubleArray0.addElement((double) 100.0f); resizableDoubleArray0.addElement((double) 0); double double9 = resizableDoubleArray0.addElementRolling((double) 10L); float float10 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.addElement(10.0d); resizableDoubleArray0.setNumElements(10); float float15 = resizableDoubleArray0.getExpansionFactor(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + float10 + "' != '" + 2.5f + "'", float10 == 2.5f); org.junit.Assert.assertTrue("'" + float15 + "' != '" + 2.0f + "'", float15 == 2.0f); } @Test public void test0475() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0475"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.setElement(10, (double) 36); double double9 = resizableDoubleArray0.addElementRolling((-1.0d)); double double11 = resizableDoubleArray0.getElement((int) (byte) 10); double double13 = resizableDoubleArray0.addElementRolling((double) 97); resizableDoubleArray0.setNumElements((int) 'a'); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + (-1.0d) + "'", double11 == (-1.0d)); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0476() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0476"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(99, (float) '#', (float) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0477() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0477"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int5 = resizableDoubleArray0.start(); float float6 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { double double8 = resizableDoubleArray0.getElement((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.ArrayIndexOutOfBoundsException; message: The index specified: 100 is larger than the current number of elements"); } catch (java.lang.ArrayIndexOutOfBoundsException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 0 + "'", int5 == 0); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); } @Test public void test0478() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0478"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, (float) (byte) 10, (float) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0479() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0479"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(36, 0.0f, (float) 11); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0480() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0480"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); resizableDoubleArray0.contract(); resizableDoubleArray0.clear(); resizableDoubleArray0.addElement((double) (short) -1); resizableDoubleArray0.contract(); resizableDoubleArray0.setContractionCriteria((float) (byte) 100); resizableDoubleArray0.setElement(99, (double) (byte) 100); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0481() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0481"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray1 = new org.apache.commons.math.util.ResizableDoubleArray((int) (byte) 100); double[] doubleArray2 = resizableDoubleArray1.getValues(); resizableDoubleArray1.setExpansionMode((int) (byte) 0); resizableDoubleArray1.addElement((double) (short) 0); java.lang.Class<?> wildcardClass7 = resizableDoubleArray1.getClass(); org.junit.Assert.assertNotNull(doubleArray2); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray2), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0482() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0482"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); int int2 = resizableDoubleArray0.start(); int int3 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode(97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + int2 + "' != '" + 0 + "'", int2 == 0); org.junit.Assert.assertTrue("'" + int3 + "' != '" + 0 + "'", int3 == 0); } @Test public void test0483() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0483"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.addElement(0.0d); resizableDoubleArray0.setElement((int) ' ', 10.0d); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); } @Test public void test0484() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0484"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); float float5 = resizableDoubleArray0.getExpansionFactor(); java.lang.Class<?> wildcardClass6 = resizableDoubleArray0.getClass(); org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float5 + "' != '" + 2.0f + "'", float5 == 2.0f); org.junit.Assert.assertNotNull(wildcardClass6); } @Test public void test0485() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0485"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray4 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 0, (float) 1, (float) 10L, 68); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: The expansion factor must be a number greater than 1.0"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0486() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0486"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray2 = new org.apache.commons.math.util.ResizableDoubleArray((int) (short) 1, 10.0f); double[] doubleArray3 = resizableDoubleArray2.getValues(); double[] doubleArray4 = resizableDoubleArray2.getValues(); resizableDoubleArray2.clear(); resizableDoubleArray2.contract(); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[0.0]"); org.junit.Assert.assertNotNull(doubleArray4); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray4), "[0.0]"); } @Test public void test0487() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0487"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); resizableDoubleArray0.discardFrontElements((int) (short) 1); double double13 = resizableDoubleArray0.getElement(35); int int14 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 36); int int17 = resizableDoubleArray0.getNumElements(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(100.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 99 + "'", int14 == 99); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 99 + "'", int17 == 99); } @Test public void test0488() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0488"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); double[] doubleArray9 = resizableDoubleArray0.getValues(); int int10 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.contract(); int int12 = resizableDoubleArray0.getExpansionMode(); resizableDoubleArray0.setElement((int) (byte) 1, 35.0d); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setContractionCriteria((float) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0489() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0489"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); float float2 = resizableDoubleArray0.getExpansionFactor(); double[] doubleArray3 = resizableDoubleArray0.getElements(); double double5 = resizableDoubleArray0.addElementRolling((double) (short) 10); float float6 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[10.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float2 + "' != '" + 2.0f + "'", float2 == 2.0f); org.junit.Assert.assertNotNull(doubleArray3); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray3), "[]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + float6 + "' != '" + 2.5f + "'", float6 == 2.5f); } @Test public void test0490() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0490"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); float float11 = resizableDoubleArray0.getContractionCriteria(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + float11 + "' != '" + 2.5f + "'", float11 == 2.5f); } @Test public void test0491() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0491"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getValues(); resizableDoubleArray0.setNumElements((int) '#'); double double5 = resizableDoubleArray0.getElement((int) (byte) 1); int int6 = resizableDoubleArray0.getExpansionMode(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); } @Test public void test0492() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0492"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.setElement(100, (double) (byte) 100); float float11 = resizableDoubleArray0.getContractionCriteria(); resizableDoubleArray0.addElement((double) 10.0f); resizableDoubleArray0.setElement(101, (double) 36); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float11 + "' != '" + 2.5f + "'", float11 == 2.5f); } @Test public void test0493() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0493"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.setNumElements((int) '#'); double[] doubleArray6 = resizableDoubleArray0.getValues(); int int7 = resizableDoubleArray0.start(); double[] doubleArray8 = resizableDoubleArray0.getValues(); double[] doubleArray9 = resizableDoubleArray0.getValues(); org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertNotNull(doubleArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray6), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertNotNull(doubleArray8); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray8), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertNotNull(doubleArray9); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray9), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0494() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0494"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); float float1 = resizableDoubleArray0.getExpansionFactor(); resizableDoubleArray0.addElement((double) 0.0f); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard more elements than arecontained in this array."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + float1 + "' != '" + 2.0f + "'", float1 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0495() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0495"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray(100, (float) 102, (float) 102); } @Test public void test0496() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0496"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); int int8 = resizableDoubleArray0.start(); int int9 = resizableDoubleArray0.start(); resizableDoubleArray0.setNumElements((int) (short) 1); int int12 = resizableDoubleArray0.getExpansionMode(); double[] doubleArray13 = resizableDoubleArray0.getValues(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionFactor(100.5f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(doubleArray13); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray13), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); } @Test public void test0497() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0497"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double[] doubleArray1 = resizableDoubleArray0.getElements(); resizableDoubleArray0.addElement((double) (short) -1); float float4 = resizableDoubleArray0.getExpansionFactor(); int int5 = resizableDoubleArray0.getNumElements(); org.junit.Assert.assertNotNull(doubleArray1); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray1), "[]"); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.0f + "'", float4 == 2.0f); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 1 + "'", int5 == 1); } @Test public void test0498() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0498"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray3 = new org.apache.commons.math.util.ResizableDoubleArray((-1), (float) (short) 10, 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Contraction criteria can never be smaller than the expansion factor. This would lead to a never ending loop of expansion and contraction as a newly expanded internal storage array would immediately satisfy the criteria for contraction"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0499() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0499"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); float float3 = resizableDoubleArray0.getExpansionFactor(); float float4 = resizableDoubleArray0.getContractionCriteria(); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.setExpansionMode((int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Illegal expansionMode setting."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + float3 + "' != '" + 2.0f + "'", float3 == 2.0f); org.junit.Assert.assertTrue("'" + float4 + "' != '" + 2.5f + "'", float4 == 2.5f); } @Test public void test0500() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest0.test0500"); org.apache.commons.math.util.ResizableDoubleArray resizableDoubleArray0 = new org.apache.commons.math.util.ResizableDoubleArray(); double double2 = resizableDoubleArray0.addElementRolling((double) ' '); resizableDoubleArray0.setElement((int) '#', (double) (short) 0); resizableDoubleArray0.setNumElements((int) (byte) 100); resizableDoubleArray0.contract(); int int9 = resizableDoubleArray0.getNumElements(); double[] doubleArray10 = resizableDoubleArray0.getValues(); int int11 = resizableDoubleArray0.getNumElements(); resizableDoubleArray0.setContractionCriteria((float) 10L); // The following exception was thrown during execution in test generation try { resizableDoubleArray0.discardFrontElements((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: Cannot discard a negative number of elements."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double2 + "' != '" + 0.0d + "'", double2 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(doubleArray10); org.junit.Assert.assertEquals(java.util.Arrays.toString(doubleArray10), "[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]"); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); } }
[ "P.Derakhshanfar@tudelft.nl" ]
P.Derakhshanfar@tudelft.nl
8869eacda26df21e77397d0a4564cd5e98d49154
c59ea27ec71e2dd8124d5694ac2466a8cd7e2836
/src/Game/Arena.java
096dda2f3a2d3e19e6849716fcf8b83ab54c4b6d
[]
no_license
alvinliu725/mmbnOnline
d137b756278ad2e507b70435941cf80f74c43bed
7bf0ac2f174fc1e97a0e0be1ee10a333a8a57a62
refs/heads/master
2021-01-16T22:37:04.221106
2015-03-01T05:58:06
2015-03-01T05:58:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
79
java
package Game; import Game.Tile; public class Arena { private Tile[] board; }
[ "icey.tea@live.com" ]
icey.tea@live.com
a8193ec680f5c7b47f769f9ea8db5998f18597d1
f94a3e69ecee07fb2f340e6ce959317d14c755f1
/src/main/java/com/slabcode/assessment/exception/UserNotFoundException.java
2fdc178ad1284d08fbe42bec5c64807beda9a654
[]
no_license
derrickrose/slabcode-assessment
e0f4162a7ab6fd627d2a14baef96301b4a513169
a0dd7a586c8e3b6d5a580fb862d0abc7dfcf6d00
refs/heads/master
2023-07-27T14:14:39.632179
2021-09-14T19:25:30
2021-09-14T19:25:30
371,947,082
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package com.slabcode.assessment.exception; public class UserNotFoundException extends Exception { public UserNotFoundException(String message) { super(message); } }
[ "frelin.ampilahy@cpexterne.org" ]
frelin.ampilahy@cpexterne.org
fb89bbb7480d4e10beb4e5b5c9935fab6425211b
9a12bf22dc487ed3cc54b41c84c4f183c93f53e1
/app/src/main/java/com/d4ti/lapoutta/adapter/BlogAdapter.java
950095039d7d16e5485f8fdac810a9b4b26c080e
[]
no_license
girendi/Lapoutta
c6f027b59dce694d18c22b9391cb038b08850ac6
4e3c80c4415d20e9c4e32c1ac65f7fac6e9042a7
refs/heads/master
2020-04-26T22:12:21.581544
2019-04-04T00:48:21
2019-04-04T00:48:21
173,865,025
0
0
null
null
null
null
UTF-8
Java
false
false
1,500
java
package com.d4ti.lapoutta.adapter; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.d4ti.lapoutta.R; import com.d4ti.lapoutta.modal.Blog; import java.util.List; public class BlogAdapter extends RecyclerView.Adapter<BlogAdapter.ViewHolder> { private Context context; private List<Blog> blogs; public BlogAdapter(Context context) { this.context = context; } public List<Blog> getBlogs() { return blogs; } public void setBlogs(List<Blog> blogs) { this.blogs = blogs; } @NonNull @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_list_blog, viewGroup, false); return new ViewHolder(view); } @Override public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) { viewHolder.tvBlog.setText(getBlogs().get(i).getBody()); } @Override public int getItemCount() { return blogs.size(); } public class ViewHolder extends RecyclerView.ViewHolder { private TextView tvBlog; public ViewHolder(@NonNull View itemView) { super(itemView); tvBlog = itemView.findViewById(R.id.tv_blog); } } }
[ "gideonpanjaitan4@gmail.com" ]
gideonpanjaitan4@gmail.com
7660bb9427a0e10be528392610632762d573f854
d9e930a0eea5e862aefd900e7759ec4efdd0c119
/YeloserServer/app/src/main/java/com/yeloser/yeloserserver/util/Log.java
9c8a431a59178f3388d77f6a9f427f79235575ba
[]
no_license
JainSid96/Android
ef0c652014861c4b00d5e16fe1820a68c04a729d
71c1af3903af175b43ce5a0dfa43874200a0d6e7
refs/heads/master
2021-01-22T03:54:32.544424
2015-06-19T21:07:19
2015-06-19T21:07:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,945
java
package com.yeloser.yeloserserver.util; import android.app.Activity; import android.os.Handler; import android.os.Looper; import android.widget.TextView; public class Log { private static int[] mInfoViewIds = null; private static Activity mActivity = null; public enum LogLevel { None(0), Error(1), Warn(2), Info(3), Debug(4), Verbose(5); LogLevel(int level) { this.level = level; } protected int getInt() { return this.level; } private int level; } private static LogLevel logLevel = LogLevel.None; public static void initLog(Activity activity, int[] infoViewIds, LogLevel level) { synchronized (Log.class) { mActivity = activity; mInfoViewIds = infoViewIds; logLevel = level; if (mActivity != null) { for (int i = LogLevel.Error.getInt(); i < LogLevel.Verbose.getInt(); ++i) { final int ind = i; final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[i]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText("Init log level: " + ind); } }); } } } } public static LogLevel getLogLevel() { return logLevel; } public static void e(final String tag, final String message) { if (logLevel.getInt() < LogLevel.Error.getInt()) { return; } if (mActivity != null) { final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[LogLevel.Error.getInt()]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText(message); } }); } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.e(tagInfo.toString(), message); } public static void e(final String tag, final String message, final Exception exception) { if (logLevel.getInt() < LogLevel.Error.getInt()) { return; } if (mActivity != null) { final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[LogLevel.Error.getInt()]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText(message); } }); } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.e(tagInfo.toString(), message, exception); exception.printStackTrace(); } public static void w(final String tag, final String message) { if (logLevel.getInt() < LogLevel.Warn.getInt()) { return; } if (mActivity != null) { final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[LogLevel.Warn.getInt()]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText(message); } }); } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.w(tagInfo.toString(), message); } public static void i(final String tag, final String message) { if (logLevel.getInt() < LogLevel.Info.getInt()) { return; } if (mActivity != null) { final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[LogLevel.Info.getInt()]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText(message); } }); } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.i(tagInfo.toString(), message); } public static void d(final String tag, final String message) { if (logLevel.getInt() < LogLevel.Debug.getInt()) { return; } if (mActivity != null) { final TextView info = (TextView) mActivity.findViewById(mInfoViewIds[LogLevel.Debug.getInt()]); new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { info.setText(message); } }); } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.d(tagInfo.toString(), message); } public static void v(final String tag, final String message) { if (logLevel.getInt() < LogLevel.Verbose.getInt()) { return; } StringBuilder tagInfo = new StringBuilder(); tagInfo .append(" (").append(tag).append(") ") .append(StackTraceInfo.getInvokingFileName()) .append(" [").append(StackTraceInfo.getInvokingClassName()) .append("/").append(StackTraceInfo.getInvokingMethodName()) .append("()] "); android.util.Log.v(tagInfo.toString(), message); } } // class Log
[ "boris@yieldmo.com" ]
boris@yieldmo.com
905d574f205b2ecdae77c929587669c3599d9a9f
7d6df93fd8a3ca567adb72cc6e75476899bfcbd6
/src/fourG/base/IEnemy.java
863929767d08475bdb7342676001f42d02d26ace
[]
no_license
vogi23/fourG
a3e3da086ad040eca77e70968af09f11bebc0fe4
a7946d419e6b1d7c5ee48ff112ad509af3436c03
refs/heads/master
2021-01-15T22:01:23.210784
2014-12-02T09:35:16
2014-12-02T09:35:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
304
java
package fourG.base; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author vogi */ public interface IEnemy { public void receiveMove(Move m); }
[ "chrigu@vgbau.ch" ]
chrigu@vgbau.ch
50e50e704d96c8d5a82572799dd321813f44b22b
dd827a4d42782388ab49388c0809b47886493644
/app/src/main/java/com/example/android/drroster/activities/RandomiseActivity.java
8e8ffa79a45469348318cd2571d7272c313d238e
[]
no_license
xiaoleiHou214/DrRosterV1
9ff44efac451e0d806ba61a9fbee972bde00bb34
4b5a6e6b94298c34e34cea972d7732bce52a5518
refs/heads/master
2021-05-31T16:48:08.031397
2016-05-17T19:58:51
2016-05-17T19:58:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
10,709
java
package com.example.android.drroster.activities; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; import com.example.android.drroster.MainActivity; import com.example.android.drroster.R; import com.example.android.drroster.UI.SpaceBarColorHelper; import com.example.android.drroster.databases.PersonDBHelper; import com.example.android.drroster.databases.ShiftHelper; import com.example.android.drroster.fragments.RandomListFragment; import com.example.android.drroster.models.ShiftFull; import com.example.android.drroster.utils.DateUtils; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.InterstitialAd; import org.parceler.Parcels; import java.util.ArrayList; import java.util.Date; import java.util.List; public class RandomiseActivity extends AppCompatActivity { //Constants public static final int RANDOM_FRAGMENT_NUMBER = 3; public static final int RANDOM_FRAGMENT_FIRST_CALL = 0; public static final int RANDOM_FRAGMENT_SECOND_CALL = 1; public static final int RANDOM_FRAGMENT_THIRD_CALL = 2; public static ArrayList<ArrayList<String>> shuffledTable; public static final String[] typesList = new String[]{ "Type 1", "Type 2", "Type 3", "Type 4", "Type 5" }; private int fragmentIndex = 0; Button nextButton; Button previousButton; InterstitialAd mInterstitialAd; public static int currentFragment; public static ArrayList<String> nameList; public static ArrayList<ShiftFull> mPeopleArray; public static ArrayList<String> mUnShuffledNames; public static Integer[] selectionOption = new Integer[3]; public static String[] ADArray; public static int[] monthYearNumbers; public static Boolean isThisFragmentNull = true; ArrayList<ArrayList<String>> leaveDatesArray; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_randomis); //Initialize array with 3 items - ine for each fragment shuffledTable = new ArrayList<>(3); for (int x = 0; x < 3; x++) { shuffledTable.add(new ArrayList<String>()); } //get unShuffled name list to show numbers and not items in fragment week days mUnShuffledNames = PersonDBHelper.getNameList(); //List of organized names nameList = PersonDBHelper.getNameList(); //Unparcelize the ShiftFull array from mPeopleArray = Parcels.unwrap(getIntent().getExtras().getParcelable(GenerateRosterActivity.INTENT_EXTRA_PEOPLE_ARRAY)); monthYearNumbers = getIntent().getExtras().getIntArray(GenerateRosterActivity.INTENT_EXTRA_MONTH_YEAR_ARRAY); ADArray = getIntent().getExtras().getStringArray(GenerateRosterActivity.INTENT_EXTRA_AD_ARRAY); //Build leave date array for DB leaveDatesArray = leaveDatesBuilder(mPeopleArray, monthYearNumbers); //Sets UI nextButton = (Button) findViewById(R.id.next_button_random_activity); previousButton = (Button) findViewById(R.id.previous_button_random_activity); setUI(fragmentIndex); mInterstitialAd = new InterstitialAd(this); mInterstitialAd.setAdUnitId(getResources().getString(R.string.ad_unit_id_random_activity)); mInterstitialAd.setAdListener(new AdListener() { @Override public void onAdClosed() { requestNewInterstitial(); goToMainActivity(); } }); requestNewInterstitial(); } //Build list of pairs with only leave date people and their date arrays private ArrayList<ArrayList<String>> leaveDatesBuilder(ArrayList<ShiftFull> peopleArray, int[] monthYearNumbers) { ArrayList<ArrayList<String>> namesOnDatesArray = new ArrayList<>(); int numOfDayInMonth = DateUtils.getNumberOfDayInMonth(monthYearNumbers[0], monthYearNumbers[1]); //initialize the array list with new null arrays for (int init = 0; init < numOfDayInMonth; init++) { namesOnDatesArray.add(new ArrayList<String>()); } //Iterate all FullShift Array for (ShiftFull shiftFullPerson : peopleArray) { //if current checked person isOnLeaveDate if (shiftFullPerson.getIsLeavDate()) { //Get the dates array List<Date> tempDates = shiftFullPerson.getLeaveDates(); //Iterate the dates array for (Date date : tempDates) { //Get index of day (if it's the 28 day index = 27) int dayIndex = DateUtils.getDayIndex(date); //Array of string for that particular index (index = day of month) ArrayList<String> oneDayNames; //If on that day this loop already put names - add new name to previous array if (namesOnDatesArray.get(dayIndex) != null) { //Take old names array for current day index oneDayNames = namesOnDatesArray.get(dayIndex); //Add new name for that particular name oneDayNames.add(shiftFullPerson.getName()); //Set the new array back in the parent array ("namesOnDatesArray") } //If this is first name for this date index else { //Initialize new array for that day index oneDayNames = new ArrayList<>(); //Set person name oneDayNames.add(shiftFullPerson.getName()); } } } } return namesOnDatesArray; } private void setUI(int index) { setFragmentUI(index); setButtonUI(index); SpaceBarColorHelper.setDarkColor(this); } private void setFragmentUI(int index) { FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); switch (index) { case RANDOM_FRAGMENT_FIRST_CALL: currentFragment = RANDOM_FRAGMENT_FIRST_CALL; ft.replace(R.id.fragment_place_holder_random_activity, new RandomListFragment(), RANDOM_FRAGMENT_FIRST_CALL + ""); break; case RANDOM_FRAGMENT_SECOND_CALL: currentFragment = RANDOM_FRAGMENT_SECOND_CALL; ft.replace(R.id.fragment_place_holder_random_activity, new RandomListFragment(), RANDOM_FRAGMENT_SECOND_CALL + ""); break; case RANDOM_FRAGMENT_THIRD_CALL: currentFragment = RANDOM_FRAGMENT_THIRD_CALL; ft.replace(R.id.fragment_place_holder_random_activity, new RandomListFragment(), RANDOM_FRAGMENT_THIRD_CALL + ""); } ft.commit(); } private void setButtonUI(int index) { //if first button if (index == 0) { previousButton.setVisibility(View.INVISIBLE); } //if one before last button else if (index == RANDOM_FRAGMENT_NUMBER - 1) { nextButton.setText(R.string.generate_random_acitvity_button); } //if last button else if (index == RANDOM_FRAGMENT_NUMBER) { ShiftHelper.buildShiftTable(monthYearNumbers[0], monthYearNumbers[1], shuffledTable, ADArray, leaveDatesArray); goToAds(); } //normal status else { previousButton.setVisibility(View.VISIBLE); nextButton.setText(R.string.next_button_text); } } private void goToAds() { if (mInterstitialAd.isLoaded()) { mInterstitialAd.show(); } else { goToMainActivity(); } } private void goToMainActivity() { Intent i1 = new Intent(this, MainActivity.class); startActivity(i1); } public void onNextButton(View view) { Boolean goNext = toGoNext(); if (goNext){ saveCurrentNames(); fragmentIndex++; setUI(fragmentIndex); } else { Toast.makeText(getApplicationContext(), R.string.toast_choose_random_type,Toast.LENGTH_LONG).show(); } } private Boolean toGoNext() { RandomListFragment randomListFragment = (RandomListFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_place_holder_random_activity); return randomListFragment.getGoNext(); } public void onPreviousButton(View view) { saveCurrentNames(); fragmentIndex--; setUI(fragmentIndex); } //Set in the index of current visible fragment the chosen list from the fragment instance private void saveCurrentNames() { if (!isThisFragmentNull) { shuffledTable.set(fragmentIndex, RandomListFragment.chosenRandomNameList); } } public void setActionBarGoBackButton(Boolean bool){ if (bool){ ImageButton imageButton = (ImageButton) findViewById(R.id.random_menu_go_back_btn); imageButton.setVisibility(View.VISIBLE); imageButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { goBackToGenActivity(); } }); }else { ImageButton imageButton = (ImageButton) findViewById(R.id.random_menu_go_back_btn); imageButton.setVisibility(View.GONE); } } private void goBackToGenActivity() { Intent i1 = new Intent(this, GenerateRosterActivity.class); startActivity(i1); } public void setActionBarTitle(String title) { TextView menuTitle = (TextView) findViewById(R.id.toolbar_title_rostergen); menuTitle.setText(title); } public void exitGenerator(View view) { goToMainActivity(); } private void requestNewInterstitial() { AdRequest adRequest = new AdRequest.Builder() .addTestDevice("SEE_YOUR_LOGCAT_TO_GET_YOUR_DEVICE_ID") .build(); mInterstitialAd.loadAd(adRequest); } }
[ "Nir Duan" ]
Nir Duan
fec3c1554b4026893cbea7aced775d32eb33a8f5
1fe3e0b3b7489594810f4a33a03dc02c877c006e
/app/src/main/java/org/android10/viewgroupperformance/activity/MainActivity.java
8b0e2d3383c9c4993fc1b1cff943263c073b0669
[ "Apache-2.0" ]
permissive
lixiaofeng1024/Android-AOPExample
7e2ed870bba1c4e0468786691c5e8f92b4079421
6343e8df75d75fece5640e1bd03471f73b414f73
refs/heads/master
2020-03-10T00:34:19.006197
2018-04-12T00:54:07
2018-04-12T00:54:07
129,085,146
0
0
null
null
null
null
UTF-8
Java
false
false
2,944
java
package org.android10.viewgroupperformance.activity; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Switch; import org.android10.gintonic.annotation.CollectCountMsg; import org.android10.gintonic.annotation.CollectSpentTimeAsync; import org.android10.gintonic.annotation.CollectSpentTimeSync; import org.android10.gintonic.annotation.CollectValueMsg; import org.android10.gintonic.annotation.DebugTrace; import org.android10.viewgroupperformance.R; public class MainActivity extends Activity { private Switch countSwitch; private Button countBt; private Button spentBt; private EditText valueEt; private Button valueBt; private boolean isEnd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); countSwitch = (Switch) findViewById(R.id.count_switch); countBt = (Button) findViewById(R.id.count_bt); spentBt = (Button) findViewById(R.id.spent_bt); valueEt = (EditText) findViewById(R.id.value_et); valueBt = (Button) findViewById(R.id.value_bt); countBt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (countSwitch.isChecked()) { onSuccess(); } else { onFailure(); } } }); spentBt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (!isEnd) { onSpentStart(); } else { onSpentEnd(); } isEnd = !isEnd; } }); valueBt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String s = valueEt.getEditableText().toString(); if (s.length() == 0) { return; } onValue(Float.valueOf(s)); } }); } @CollectCountMsg(target = "CollectCountMsg", isSuccess = true) public void onSuccess() { } @CollectCountMsg(target = "CollectCountMsg", isSuccess = false) @DebugTrace public void onFailure() { } @CollectSpentTimeSync(target = "CollectSpentTimeSync") @CollectSpentTimeAsync(target = "CollectSpentTimeAsync", isEndPoint = false) public void onSpentStart() { } @CollectSpentTimeSync(target = "CollectSpentTimeSync") @CollectSpentTimeAsync(target = "CollectSpentTimeAsync", isEndPoint = true) public void onSpentEnd() { } @CollectValueMsg(target = "CollectValueMsg") public float onValue(float value) { return value; } }
[ "18813293916@163.com" ]
18813293916@163.com
2d2913640caacf02bb1b19dc4323d3db3f1b6317
eeb7f2aa90bdb175b3d046f9072fa0cb9b286a5d
/jsonTest/src/cn/com/ths/dbcenter/domain/popularfeelings/PopularFeeling.java
402adbb21139b156375a49047bc6752b8310a816
[]
no_license
longtaoge/jsonTest
abd4d4f4f50185f9fa20e1b69dab6d2768ff43b8
b99075d6b232e08970caf4d33f96768b99df1acf
refs/heads/master
2020-05-28T09:56:09.250672
2014-12-01T05:35:26
2014-12-01T05:35:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,316
java
package cn.com.ths.dbcenter.domain.popularfeelings; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * 类名: PopularFeeling</br> * 包名:cn.com.ths.dbcenter.domain.popularfeelings </br> * 描述: 封装舆情页面四个列表数据的数据模型 </br> * 发布版本号:</br> * 开发人员: weiyubiao</br> * 创建时间: 2014-11-28 */ public class PopularFeeling implements Serializable { /** * 部委要闻 * ministriesNews */ private List<NewsIndex> memuMN =new ArrayList<NewsIndex>(); /** *省厅资讯 *informationMinistriesAgencies */ private List<NewsIndex> menuIMAg=new ArrayList<NewsIndex>(); /** * 今日舆情 * TodayPublicOpinion */ private List<NewsIndex> menuTPO=new ArrayList<NewsIndex>() ; /** * 舆情聚焦 * PublicOpinionFocus */ private List<NewsIndex> menuPOF=new ArrayList<NewsIndex>(); public List<NewsIndex> getMemuMN() { return memuMN; } public void setMemuMN(List<NewsIndex> memuMN) { this.memuMN = memuMN; } public List<NewsIndex> getMenuIMAg() { return menuIMAg; } public void setMenuIMAg(List<NewsIndex> menuIMAg) { this.menuIMAg = menuIMAg; } public List<NewsIndex> getMenuTPO() { return menuTPO; } public void setMenuTPO(List<NewsIndex> menuTPO) { this.menuTPO = menuTPO; } public List<NewsIndex> getMenuPOF() { return menuPOF; } public void setMenuPOF(List<NewsIndex> menuPOF) { this.menuPOF = menuPOF; } @Override public String toString() { return "PopularFeeling [memuMN=" + memuMN + ", menuIMAg=" + menuIMAg + ", menuTPO=" + menuTPO + ", menuPOF=" + menuPOF + "]"; } public PopularFeeling(List<NewsIndex> memuMN, List<NewsIndex> menuIMAg, List<NewsIndex> menuTPO, List<NewsIndex> menuPOF) { super(); this.memuMN = memuMN; this.menuIMAg = menuIMAg; this.menuTPO = menuTPO; this.menuPOF = menuPOF; } public PopularFeeling() { super(); // TODO Auto-generated constructor stub } }
[ "61852263@qq.com" ]
61852263@qq.com
93bd3b14b94f11ea34f5ac6121b5939f41c20b84
472d4823e25a07b5f1c620c59da736ef2e4f2114
/MyTestApplication/app/src/main/java/com/example/mytestapplication/widge/recyclerview/OnListLoadNextPageListener.java
5eec99fea04fea081e4c34bcab6a90f30b9b82cf
[]
no_license
yzhang108/MyTestApp
f5c646452d107d4e41070cd1a34106669d2f018a
a6956afa3c414e3a51e25d513137bb4bd631a8a5
refs/heads/master
2021-01-10T01:40:52.016677
2017-05-17T05:48:33
2017-05-17T05:48:33
53,818,319
0
0
null
null
null
null
UTF-8
Java
false
false
404
java
package com.example.mytestapplication.widge.recyclerview; import android.view.View; /** * Created by cundong on 2015/10/9. * RecyclerView/ListView/GridView 滑动加载下一页时的回调接口 */ public interface OnListLoadNextPageListener { /** * 开始加载下一页 * * @param view 当前RecyclerView/ListView/GridView */ public void onLoadNextPage(View view); }
[ "zhangyan_c@aspirecn.com" ]
zhangyan_c@aspirecn.com
6ee0e189aa70bb387eace193e0cbef584eada865
039022ca21808ff4a417ddd240d15cce4f89adae
/AbstractFactoryDesignPattern/src/factory/design/pattern/com/dp/product/Laptop.java
f92e681e302716c8a25b9071eb75ffc041021014
[]
no_license
mayuri-pxp/DesignPattern
07a0fa1c797005b908d4a3c19fdeb826b31bd7f3
7d986874d1e9ac26049f06241d0dcf0183d59b60
refs/heads/master
2023-02-04T04:29:24.989014
2020-12-18T04:10:36
2020-12-18T04:10:36
319,951,752
0
0
null
null
null
null
UTF-8
Java
false
false
1,209
java
package factory.design.pattern.com.dp.product; import factory.design.pattern.com.dp.factory.Device; public class Laptop implements Device { private String ram; private String hdd; private String cpu; private boolean isGraphicsEnabled; private boolean isBluetoothEnabled; public Laptop(String ram, String hdd, String cpu, boolean isGraphicsEnabled, boolean isBluetoothEnabled) { super(); this.ram = ram; this.hdd = hdd; this.cpu = cpu; this.isGraphicsEnabled = isGraphicsEnabled; this.isBluetoothEnabled = isBluetoothEnabled; } @Override public String ram() { return this.ram; } @Override public String hdd() { return this.hdd; } @Override public String cpu() { return this.cpu; } @Override public boolean isGraphicsEnabled() { return this.isGraphicsEnabled; } @Override public boolean isBluetoothEnabled() { return this.isBluetoothEnabled; } @Override public String toString() { return "Laptop [ram=" + ram + ", hdd=" + hdd + ", cpu=" + cpu + ", isGraphicsEnabled=" + isGraphicsEnabled + ", isBluetoothEnabled=" + isBluetoothEnabled + "]"; } @Override public void getDeviceDetails() { System.out.println(this.toString()); } }
[ "mayuri.wankhade@contentserv.com" ]
mayuri.wankhade@contentserv.com
0e2e6581f8d576f6b8344ba2fe7cb797eba325b6
de2cbaa4cd5959217973951a8f9bacf09d8b0d2b
/HelloJenkins.java
6ab0909b9f2826f7a71023eb9cee6f9de2b77a60
[]
no_license
pradeepTechStream/jenkins
21b9bf7276c00537e304ec28c02d6a8556fad563
f0cf14cd7ac9d7a87ac2e65cf205099c5d0e29e0
refs/heads/master
2022-10-28T19:35:44.995600
2022-10-20T16:57:00
2022-10-20T16:57:00
220,220,215
0
0
null
null
null
null
UTF-8
Java
false
false
135
java
public class HelloJenkins { public static void main(String[] args) { System.out.println("Hello Jenkins Life"); } }
[ "p.maurya@dsslp.com" ]
p.maurya@dsslp.com
6f71d3abbb9debfeea65c01ef1a73d6fecea6ac2
324364b1bcec3736169afad13e949217c0d494ba
/app/src/main/java/com/example/task4/Models/Result.java
060d87abb8bf4e52311f8762cd030740219c15ab
[]
no_license
Otigan/Task-4
ce9f23f75f502ad8cbf076407d7705206fd372c0
5f54cbfc8ed6900c53df12e2620dba5443162271
refs/heads/master
2022-04-15T02:49:14.958904
2020-04-11T18:20:35
2020-04-11T18:20:35
254,928,766
0
0
null
null
null
null
UTF-8
Java
false
false
688
java
package com.example.task4.Models; import java.util.ArrayList; import java.util.List; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; //Model for Json object with result items list public class Result { @SerializedName("items") @Expose private List<Item> items = new ArrayList<Item>(); @SerializedName("total") @Expose private int total; public List<Item> getItems() { return items; } public void setItems(List<Item> items) { this.items = items; } public int getTotal() { return total; } public void setTotal(int total) { this.total = total; } }
[ "braverobin98@gmail.com" ]
braverobin98@gmail.com
9357bd315703e0bb817b354383bab30f46215b63
a6bedcbc2d5b5373b5b521359b97ef3532af357c
/src/main/java/com/laptrinhjavaweb/controller/admin/NewController.java
7e61ad2f93bec8702742e3d4df851708c8318b7e
[]
no_license
TruongHungnb/javaWeb
cdd6bc31b99b8d4c84736f005c46486a164c7093
c8fc2afe0002289c4cf360a61ba4537a7c72996c
refs/heads/master
2023-07-07T13:31:41.766408
2021-08-16T10:54:46
2021-08-16T10:54:46
396,738,992
0
0
null
null
null
null
UTF-8
Java
false
false
1,265
java
package com.laptrinhjavaweb.controller.admin; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import com.laptrinhjavaweb.service.HomeService; @Controller(value = "newControllerOfAdmin") public class NewController { // @Autowired // private HomeService homeService; @RequestMapping(value = "/new/list", method = RequestMethod.GET) public ModelAndView showList() { ModelAndView mav = new ModelAndView("admin/new/list"); // mav.addObject("menu", homeService.loadMenu()); return mav; } @RequestMapping(value = "/new/edit", method = RequestMethod.GET) public ModelAndView editNew() { ModelAndView mav = new ModelAndView("admin/new/edit"); // mav.addObject("menu", homeService.loadMenu()); return mav; } // @RequestMapping(value = "/springmvc", method = RequestMethod.GET) // public ModelAndView springMVCPage() { // ModelAndView mav = new ModelAndView("admin/springmvc"); // mav.addObject("menu", homeService.loadMenu()); // return mav; // } }
[ "tienanhnguyenvn194@gmail.com" ]
tienanhnguyenvn194@gmail.com
5cc75f48daef9841e82f65fff5a77c7d8efdbeac
856a0ae474a4c29744ed14b8ad16905ca1dfa38a
/app/src/main/java/com/launcher/silverfish/launcher/homescreen/LauncherAppWidgetHost.java
abac5676f5a66c03c385deeb80a6ec4d1f69a7cb
[]
no_license
scriptjumper/androidlauncher
ec49567fc0eed663f4ba5d64e3daa7b19e50a242
8161e72141dee62e17eb2111195eae7ae41e0eff
refs/heads/master
2020-06-01T19:49:12.165275
2019-04-04T18:21:49
2019-04-04T18:21:49
190,905,519
0
0
null
null
null
null
UTF-8
Java
false
false
701
java
package com.launcher.rapidLaunch.launcher.homescreen; import android.appwidget.AppWidgetHost; import android.appwidget.AppWidgetHostView; import android.appwidget.AppWidgetProviderInfo; import android.content.Context; /** * Overrides the onCreateView to return our custom AppWidgetHostView. */ public class LauncherAppWidgetHost extends AppWidgetHost { public LauncherAppWidgetHost(Context context, int hostId) { super(context, hostId); } @Override protected AppWidgetHostView onCreateView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget) { // pass back our custom AppWidgetHostView return new LauncherAppWidgetHostView(context); } }
[ "shaeen@rapidtrade.biz" ]
shaeen@rapidtrade.biz
9f8046771fb70529b849785fc349f8ead0ea711f
c4e444f5c0d776a2ff20b267e4a24c3407dccf45
/src/main/java/com/mapper/UserMapper.java
c7a2fc9463c8e9b1d2a8b8c03c4e4d7655c567ec
[]
no_license
freedomzj/m_spring_boot
dc6d9e8fcdf37b3898fbea320c77e4d2c5219895
b504efdbda42ac1ecb3d3b43bc862bff9173803a
refs/heads/master
2021-01-21T21:32:37.369755
2017-10-26T07:40:02
2017-10-26T07:40:02
94,862,227
0
0
null
null
null
null
UTF-8
Java
false
false
758
java
package com.mapper; import com.domain.PersistentLogins; import com.domain.User; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; /** * Created by zengjie on 17/6/21. */ @Mapper public interface UserMapper extends SqlMapper { @Select("SELECT * FROM USER WHERE username = #{username}") User findByName(@Param("username") String username); @Insert("INSERT INTO USER(username, password) VALUES(#{username}, #{password})") int insert(@Param("username") String name, @Param("password") String password); User findDepartment(@Param("id") Long id); void saveToken(PersistentLogins persistentLogins); }
[ "zengjie@cengjiedeMac-mini.local" ]
zengjie@cengjiedeMac-mini.local
6bd23006aba16468c9f8880061a1439107b28090
8ab468ba25df43fcb048abf230dd1892afe7bf70
/app/src/main/java/com/tutk/P2PCam264/DELUX/activity/GridViewGalleryActivity.java
3d60887557bd71ee546025c5e5323b187a181103
[]
no_license
CMingTseng/WinCam
b34a1d2f4c6adc72a09d04684b8d8289f687ae6d
b63769fa6c6264eac1e50a50b18c89f7e0237ce2
refs/heads/master
2021-01-22T19:15:01.695358
2017-05-25T03:44:26
2017-05-25T03:44:26
85,180,868
1
0
null
null
null
null
UTF-8
Java
false
false
39,363
java
package com.tutk.P2PCam264.DELUX.activity; import android.app.ActionBar; import android.content.Context; import android.content.Intent; import android.content.res.ColorStateList; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.graphics.drawable.BitmapDrawable; import android.media.MediaPlayer; import android.media.ThumbnailUtils; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.provider.MediaStore; import android.text.format.Time; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.view.ViewGroup; import android.view.Window; import android.view.animation.AnimationUtils; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.GridView; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ListView; import android.widget.RelativeLayout; import android.widget.TextView; import com.actionbarsherlock.app.SherlockActivity; import com.tutk.Logger.Glog; import com.tutk.P2PCam264.DELUX.structure.VideoFile; import com.tutk.P2PCam264.R; import com.tutk.P2PCam264.ui.Custom_OkCancle_Dialog; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; public class GridViewGalleryActivity extends SherlockActivity implements Custom_OkCancle_Dialog.OkCancelDialogListener { private String TAG = "GridViewGalleryActivity"; private String imagesPath; private String videosPath; private ListView lvChannel; private RelativeLayout bottombar; private RelativeLayout layoutNull; private Button btnEdit; private ImageButton btnDel; private ImageView imgNull; private TextView txtNull; RelativeLayout btn_change_mode; Button btnPhoto; Button btnVideo; private boolean mThumbnaillDone = false; private boolean mIsLongPress = false; private boolean imageNeedToFresh = true; private boolean videoNeedToFresh = true; private File LongPressFile; private enum MyMode { PHOTO, VIDEO } private MyMode mMode = MyMode.PHOTO; private Time time = new Time(); /** * The Constant DEFAULT_LIST_SIZE. */ private static final int DEFAULT_LIST_SIZE = 1; /** * The Constant IMAGE_RESOURCE_IDS. */ final List<String> IMAGE_FILES = new ArrayList<String>(DEFAULT_LIST_SIZE); private List<String> imageChannelList = new ArrayList<String>(DEFAULT_LIST_SIZE); private List<String> videoChannelList = new ArrayList<String>(DEFAULT_LIST_SIZE); private List<VideoFile> videoFiles = new ArrayList<VideoFile>(DEFAULT_LIST_SIZE); private List<Boolean> multiDel_photo = new ArrayList<Boolean>(); private List<Boolean> multiDel_video = new ArrayList<Boolean>(); private HashMap<Integer, List<String>> mapImagePath = new HashMap<Integer, List<String>>(); private HashMap<Integer, List<VideoFile>> mapVideoFile = new HashMap<Integer, List<VideoFile>>(); private HashMap<Integer, List<Boolean>> map_multiDel_image = new HashMap<Integer, List<Boolean>>(); private HashMap<Integer, List<Boolean>> map_multiDel_video = new HashMap<Integer, List<Boolean>>(); private ChListAdapter adapterChannel; private ImageAdapter imageAdapter; private VideoAdapter adapterVideo; private Object mLock = new Object(); private Handler handler = new Handler(); private boolean mIsEdit = false; @Override public void onCreate(Bundle savedInstanceState) { ActionBar actionBar = getActionBar(); actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); actionBar.setCustomView(R.layout.titlebar); TextView tv = (TextView) this.findViewById(R.id.bar_text); btnEdit = (Button) findViewById(R.id.bar_right_btn); btn_change_mode = (RelativeLayout) findViewById(R.id.bar_gallery); btnPhoto = (Button) findViewById(R.id.bar_btn_photo); btnVideo = (Button) findViewById(R.id.bar_btn_video); tv.setVisibility(View.GONE); btnEdit.setText(R.string.txt_edit); btnEdit.setTextColor(Color.WHITE); btnEdit.setVisibility(View.VISIBLE); btn_change_mode.setVisibility(View.VISIBLE); btnPhoto.setBackgroundResource(R.drawable.btn_tabl_h); btnPhoto.setTextColor(Color.BLACK); btnEdit.setOnClickListener(btnEditClick); btnPhoto.setOnClickListener(mode_change); btnVideo.setOnClickListener(mode_change); super.onCreate(savedInstanceState); System.gc(); Bundle extras = this.getIntent().getExtras(); imagesPath = extras.getString("images_path"); // XXX: extras may be null and data stored in // intent directly. WTF videosPath = extras.getString("videos_path"); int enterMode = extras.getInt("mode"); setContentView(R.layout.gridviewgalleryactivity); bottombar = (RelativeLayout) findViewById(R.id.gridview_bottom); layoutNull = (RelativeLayout) findViewById(R.id.layoutNull); imgNull = (ImageView) findViewById(R.id.imgNull); txtNull = (TextView) findViewById(R.id.txtNull); btnDel = (ImageButton) findViewById(R.id.gridview_btn_delete); btnDel.setOnClickListener(btnDelClick); removeCorruptImage(); setImageRootFolder(imagesPath); setVideoRootFolder(videosPath); setPhotoData(); adapterChannel = new ChListAdapter(this); lvChannel = (ListView) findViewById(R.id.list_ch); lvChannel.setAdapter(adapterChannel); boolean hasFile = false; for (int i = 0; i < mapImagePath.size(); i++) { if (mapImagePath.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_noimage); txtNull.setText(getText(R.string.txt_no_photos)); } handler.postDelayed(new Runnable() { @Override public void run() { adapterChannel.notifyDataSetChanged(); } }, 200); if (enterMode == NicknameListActivity.GALLERY_VIDEO) { mMode = MyMode.VIDEO; mode_change(); } } private void setImageRootFolder(String path) { imageChannelList.clear(); File folder = new File(path); File[] filesByChannels = folder.listFiles(); if (filesByChannels != null) { if (filesByChannels.length > 0) { for (File mChFile : filesByChannels) { if (mChFile.isDirectory() && mChFile.getName().startsWith("CH")) { imageChannelList.add(mChFile.getName()); } } } Collections.sort(imageChannelList); } } private void setPhotoData() { for (int position = 0; position < imageChannelList.size(); position++) { setImagesPath(imagesPath + "/" + imageChannelList.get(position)); List<String> tempList = new ArrayList<String>(); tempList.addAll(IMAGE_FILES); mapImagePath.put(position, tempList); List<Boolean> tempDel = new ArrayList<Boolean>(); tempDel.addAll(multiDel_photo); map_multiDel_image.put(position, tempDel); } imageNeedToFresh = false; } public final synchronized void setImagesPath(String path) { IMAGE_FILES.clear(); multiDel_photo.clear(); File folder = new File(path); String[] imageFiles = folder.list(); if (imageFiles != null && imageFiles.length > 0) { Arrays.sort(imageFiles); for (String imageFile : imageFiles) { IMAGE_FILES.add(path + "/" + imageFile); multiDel_photo.add(false); } Collections.reverse(IMAGE_FILES); } } private void setVideoRootFolder(String path) { videoChannelList.clear(); File folder = new File(path); File[] filesByChannels = folder.listFiles(); if (filesByChannels != null) { if (filesByChannels.length > 0) { for (File mChFile : filesByChannels) { if (mChFile.isDirectory() && mChFile.getName().startsWith("CH")) { videoChannelList.add(mChFile.getName()); } } } Collections.sort(videoChannelList); } } private void setVideoData() { Thread mThread = new Thread(new Runnable() { @Override public void run() { setVideoImage(videosPath); } }); for (int position = 0; position < videoChannelList.size(); position++) { setVideoPath(videosPath + "/" + videoChannelList.get(position)); List<VideoFile> tempFileList = new ArrayList<VideoFile>(); tempFileList.addAll(videoFiles); mapVideoFile.put(position, tempFileList); List<Boolean> tempDel = new ArrayList<Boolean>(); tempDel.addAll(multiDel_video); map_multiDel_video.put(position, tempDel); } if (!mThumbnaillDone) { mThread.start(); } videoNeedToFresh = false; } private void setVideoPath(final String path) { videoFiles.clear(); multiDel_video.clear(); File folder = new File(path); String[] mFiles = folder.list(); if (mFiles != null && mFiles.length > 0) { Arrays.sort(mFiles); for (final String videofile : mFiles) { VideoFile file = new VideoFile(); file.setPath(path + "/" + videofile); file.setName(videofile); videoFiles.add(file); multiDel_video.add(false); } } } private void setVideoImage(final String path) { Glog.I(TAG, "Start to build the thumnail"); File folder; String[] videoFiles = null; for (int i = 0; i < videoChannelList.size(); i++) { folder = new File(path + "/" + videoChannelList.get(i)); videoFiles = folder.list(); int j = 0; if (videoFiles != null && videoFiles.length > 0) { Arrays.sort(videoFiles); for (final String videofile : videoFiles) { Bitmap bmp = ThumbnailUtils.createVideoThumbnail(path + "/" + videoChannelList.get(i) + "/" + videofile, MediaStore.Video.Thumbnails.MINI_KIND); mapVideoFile.get(i).get(j).setImage(bmp); File mVideo = new File(path + "/" + videoChannelList.get(i) + "/" + videofile); Uri uri = Uri.fromFile(mVideo); MediaPlayer mp = MediaPlayer.create(GridViewGalleryActivity.this, uri); if (mp != null) { time.set(mp.getDuration()); mapVideoFile.get(i).get(j).setDuration(time.format("%M:%S")); mp.release(); } j++; } Glog.I(TAG, "Thumbnaill done"); } } mThumbnaillDone = true; if (mMode == MyMode.VIDEO) { runOnUiThread(new Runnable() { @Override public void run() { adapterChannel.notifyDataSetChanged(); } }); } } public final void removeCorruptImage() { Iterator<String> it = IMAGE_FILES.iterator(); while (it.hasNext()) { String path = it.next(); Bitmap bitmap = BitmapFactory.decodeFile(path); // XXX: CA's hack, snapshot may fail and create corrupted bitmap if (bitmap == null) { it.remove(); } } } public class ChListAdapter extends BaseAdapter { private LayoutInflater mInflater; private Context mContext; public ChListAdapter(Context c) { this.mInflater = LayoutInflater.from(c); mContext = c; } public int getCount() { if (mMode == MyMode.PHOTO) { return imageChannelList.size(); } else { return videoChannelList.size(); } } public Object getItem(int position) { return null; } public long getItemId(int position) { return position; } // create a new ImageView for each item referenced by the Adapter public View getView(final int position, View convertView, ViewGroup parent) { ViewHolder holder = null; convertView = new RelativeLayout(mContext); holder = new ViewHolder(); View view = mInflater.inflate(R.layout.listview_gallery_channel, null); view.setPadding(8, 8, 8, 8); ((ViewGroup) convertView).addView(view); holder.txtCh = (TextView) convertView.findViewById(R.id.txtChannel); holder.gridview = (GridView) convertView.findViewById(R.id.gridview); if (holder != null) { if (mMode == MyMode.PHOTO) { holder.txtCh.setText(imageChannelList.get(position)); imageAdapter = new ImageAdapter(GridViewGalleryActivity.this, mapImagePath.get(position)); holder.gridview.setId(position); holder.gridview.setAdapter(imageAdapter); } else { holder.txtCh.setText(videoChannelList.get(position)); adapterVideo = new VideoAdapter(GridViewGalleryActivity.this, mapVideoFile.get(position)); holder.gridview.setId(position); holder.gridview.setAdapter(adapterVideo); } } return convertView; } public final class ViewHolder { public TextView txtCh; public GridView gridview; } } public class ImageAdapter extends BaseAdapter { private LayoutInflater mInflater; private Context mContext; private List<String> FILES = new ArrayList<String>(); public ImageAdapter(Context c) { this.mInflater = LayoutInflater.from(c); mContext = c; } public ImageAdapter(Context c, List<String> files) { this.mInflater = LayoutInflater.from(c); mContext = c; FILES = files; } public int getCount() { return FILES.size(); } public Object getItem(int position) { return null; } public long getItemId(int position) { return position; } // create a new ImageView for each item referenced by the Adapter public View getView(final int position, View convertView, final ViewGroup parent) { ViewHolder holder = null; if (convertView == null) { convertView = new RelativeLayout(mContext); holder = new ViewHolder(); View view = mInflater.inflate(R.layout.gridview_photo_item, null); // view.setPadding(8, 8, 8, 8); // view.setPadding(50, 0, 50, 0); ((ViewGroup) convertView).addView(view); holder.del_check_img = (RelativeLayout) convertView.findViewById(R.id.video_image_check); holder.photo_thumb_img = (ImageView) convertView.findViewById(R.id.video_image); if (holder.photo_thumb_img != null) { BitmapFactory.Options bfo = new BitmapFactory.Options(); bfo.inSampleSize = 4; Bitmap bitmap = BitmapFactory.decodeFile(FILES.get(position), bfo); // XXX: CA's hack, snapshot may fail and create corrupted bitmap if (bitmap == null) { for (int i = this.getCount() - 1; i >= 0; i--) { bitmap = BitmapFactory.decodeFile(FILES.get(i), bfo); if (bitmap != null) { break; } } } int bmpHeight = bitmap.getHeight(); int bmpWidth = bitmap.getWidth(); int bmpCenterOffset = (bmpWidth - bmpHeight) / 2; Bitmap square = Bitmap.createBitmap(bitmap, bmpCenterOffset, 0, bmpHeight, bmpHeight); BitmapDrawable bd = new BitmapDrawable(getResources(), square); // holder.photo_thumb_img.setImageBitmap(bitmap); holder.photo_thumb_img.setBackground(bd); holder.photo_thumb_img.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (!mIsEdit) { List<String> files = (List<String>) mapImagePath.get(parent.getId()); Intent intent = new Intent(GridViewGalleryActivity.this, PhotoViewerActivity.class); String fileName = files.get(position); int size = files.size(); Bundle bundle = new Bundle(); bundle.putStringArrayList("files", (ArrayList<String>) files); bundle.putString("filename", fileName); bundle.putInt("size", size); bundle.putInt("pos", position); intent.putExtras(bundle); startActivity(intent); overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); } else { map_multiDel_image.get(parent.getId()).set(position, !map_multiDel_image.get(parent.getId()).get(position)); adapterChannel.notifyDataSetChanged(); } } }); holder.photo_thumb_img.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { Custom_OkCancle_Dialog dlg = new Custom_OkCancle_Dialog(GridViewGalleryActivity.this, getText(R.string.dlgAreYouSureToDeleteThisSnapshot).toString()); dlg.setCanceledOnTouchOutside(false); Window window = dlg.getWindow(); window.setWindowAnimations(R.style.setting_dailog_animstyle); dlg.show(); mIsLongPress = true; LongPressFile = new File(mapImagePath.get(parent.getId()).get(position)); return true; } }); convertView.setTag(holder); } else { holder = (ViewHolder) convertView.getTag(); } List<Boolean> delList = map_multiDel_image.get(parent.getId()); if (delList.get(position)) { holder.del_check_img.setVisibility(View.VISIBLE); } else { holder.del_check_img.setVisibility(View.GONE); } } return convertView; } public final boolean deleteImageAtPosition(int position) { File file = new File(IMAGE_FILES.get(position)); boolean deleted = file.delete(); IMAGE_FILES.remove(position); this.notifyDataSetChanged(); return deleted; } public final class ViewHolder { public ImageView photo_thumb_img; public RelativeLayout del_check_img; } } public class VideoAdapter extends BaseAdapter { private LayoutInflater mInflater; private Context mContext; private List<VideoFile> FILES = new ArrayList<VideoFile>(); private Time time = new Time(); public VideoAdapter(Context c) { this.mInflater = LayoutInflater.from(c); mContext = c; } public VideoAdapter(Context c, List<VideoFile> files) { this.mInflater = LayoutInflater.from(c); mContext = c; FILES = files; } public int getCount() { return FILES.size(); } public Object getItem(int position) { return null; } public long getItemId(int position) { return position; } // create a new ImageView for each item referenced by the Adapter public View getView(final int position, View convertView, final ViewGroup parent) { ViewHolder holder = null; Bitmap bitmap = null; convertView = new RelativeLayout(mContext); holder = new ViewHolder(); View view = mInflater.inflate(R.layout.gridview_video_item, null); // view.setPadding(8, 8, 8, 8); ((ViewGroup) convertView).addView(view); holder.del_check_img = (RelativeLayout) convertView.findViewById(R.id.video_image_check); holder.video_thumb_img = (ImageView) convertView.findViewById(R.id.video_image); holder.video_dur = (TextView) convertView.findViewById(R.id.txt_video_dur); if (holder != null) { if (mThumbnaillDone) { if (mapVideoFile.get(parent.getId()).get(position).getImage() != null) { bitmap = mapVideoFile.get(parent.getId()).get(position).getImage(); int bmpHeight = bitmap.getHeight(); int bmpWidth = bitmap.getWidth(); int bmpCenterOffset = (bmpWidth - bmpHeight) / 2; Bitmap square = Bitmap.createBitmap(bitmap, bmpCenterOffset, 0, bmpHeight, bmpHeight); BitmapDrawable bd = new BitmapDrawable(getResources(), square); holder.video_thumb_img.setBackground(bd); } else { holder.video_thumb_img.setBackgroundResource(R.color.video_bg); } if (mapVideoFile.get(parent.getId()).get(position).getDuration() != null) { holder.video_dur.setText(mapVideoFile.get(parent.getId()).get(position).getDuration()); } } else { holder.video_thumb_img.setBackgroundResource(R.color.video_bg); } holder.video_thumb_img.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (!mIsEdit) { List<String> files = new ArrayList<String>(DEFAULT_LIST_SIZE); for (int i = 0; i < mapVideoFile.get(parent.getId()).size(); i++) { files.add(mapVideoFile.get(parent.getId()).get(i).getPath()); } Intent intent = new Intent(GridViewGalleryActivity.this, LocalPlaybackActivity.class); int mSize = files.size(); Bundle bundle = new Bundle(); bundle.putStringArrayList("videos", (ArrayList<String>) files); bundle.putInt("position", position); bundle.putInt("size", mSize); intent.putExtras(bundle); startActivity(intent); overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); } else { map_multiDel_video.get(parent.getId()).set(position, !map_multiDel_video.get(parent.getId()).get(position)); adapterChannel.notifyDataSetChanged(); } } }); holder.video_thumb_img.setOnLongClickListener(new OnLongClickListener() { @Override public boolean onLongClick(View v) { Custom_OkCancle_Dialog dlg = new Custom_OkCancle_Dialog(GridViewGalleryActivity.this, getText(R.string.dlgAreYouSureToDeleteThisRecord).toString()); dlg.setCanceledOnTouchOutside(false); Window window = dlg.getWindow(); window.setWindowAnimations(R.style.setting_dailog_animstyle); dlg.show(); mIsLongPress = true; LongPressFile = new File(mapVideoFile.get(parent.getId()).get(position).getPath()); return true; } }); List<Boolean> delList = map_multiDel_video.get(parent.getId()); if (delList.get(position)) { holder.del_check_img.setVisibility(View.VISIBLE); } else { holder.del_check_img.setVisibility(View.GONE); } } return convertView; } public final class ViewHolder { public ImageView video_thumb_img; public RelativeLayout del_check_img; public TextView video_dur; } } private OnClickListener mode_change = new OnClickListener() { @Override public void onClick(View v) { switch (v.getId()) { case R.id.bar_btn_photo: mMode = MyMode.PHOTO; mode_change(); break; case R.id.bar_btn_video: mMode = MyMode.VIDEO; mode_change(); break; } } }; private void mode_change() { if (mMode == MyMode.VIDEO) { if (videoNeedToFresh) { setVideoData(); } btnPhoto.setBackgroundResource(R.drawable.btn_photo); try { btnPhoto.setTextColor(ColorStateList.createFromXml(getResources(), getResources().getXml(R.drawable.txt_color_gallery))); } catch (Exception e) { e.printStackTrace(); } btnVideo.setBackgroundResource(R.drawable.btn_tabr_h); btnVideo.setTextColor(Color.BLACK); boolean hasFile = false; for (int i = 0; i < mapVideoFile.size(); i++) { if (mapVideoFile.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_novideo); txtNull.setText(getText(R.string.txt_no_videos)); } adapterChannel.notifyDataSetChanged(); } else { if (imageNeedToFresh) { setPhotoData(); } btnVideo.setBackgroundResource(R.drawable.btn_video); try { btnVideo.setTextColor(ColorStateList.createFromXml(getResources(), getResources().getXml(R.drawable.txt_color_gallery))); } catch (Exception e) { e.printStackTrace(); } btnPhoto.setBackgroundResource(R.drawable.btn_tabl_h); btnPhoto.setTextColor(Color.BLACK); removeCorruptImage(); boolean hasFile = false; for (int i = 0; i < mapImagePath.size(); i++) { if (mapImagePath.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_noimage); txtNull.setText(getText(R.string.txt_no_photos)); } adapterChannel.notifyDataSetChanged(); } } private OnClickListener btnEditClick = new OnClickListener() { @Override public void onClick(View v) { if (!mIsEdit) { bottombar.startAnimation(AnimationUtils.loadAnimation(GridViewGalleryActivity.this, R.anim.bottombar_slide_show)); bottombar.setVisibility(View.VISIBLE); btnEdit.setText(getString(R.string.cancel)); mIsEdit = true; } else { bottombar.startAnimation(AnimationUtils.loadAnimation(GridViewGalleryActivity.this, R.anim.bottombar_slide_hide)); bottombar.setVisibility(View.GONE); btnEdit.setText(R.string.txt_edit); HashMap<Integer, List<Boolean>> map_multiDel; if (mMode == MyMode.PHOTO) { map_multiDel = map_multiDel_image; } else { map_multiDel = map_multiDel_video; } for (int i = 0; i < map_multiDel.size(); i++) { for (int j = 0; j < map_multiDel.get(i).size(); j++) { map_multiDel.get(i).set(j, false); } } adapterChannel.notifyDataSetChanged(); mIsEdit = false; } } }; private boolean checkDelList() { HashMap<Integer, List<Boolean>> map_multiDel; if (mMode == MyMode.PHOTO) { map_multiDel = map_multiDel_image; } else { map_multiDel = map_multiDel_video; } for (int i = 0; i < map_multiDel.size(); i++) { for (int j = 0; j < map_multiDel.get(i).size(); j++) { if (map_multiDel.get(i).get(j)) { return true; } } } return false; } private OnClickListener btnDelClick = new OnClickListener() { @Override public void onClick(View v) { if (checkDelList()) { if (mMode == MyMode.PHOTO) { Custom_OkCancle_Dialog dlg = new Custom_OkCancle_Dialog(GridViewGalleryActivity.this, getText(R.string.dlgAreYouSureToDeleteThisSnapshot).toString()); dlg.setCanceledOnTouchOutside(false); Window window = dlg.getWindow(); window.setWindowAnimations(R.style.setting_dailog_animstyle); dlg.show(); mIsLongPress = false; } else { Custom_OkCancle_Dialog dlg = new Custom_OkCancle_Dialog(GridViewGalleryActivity.this, getText(R.string.dlgAreYouSureToDeleteThisRecord).toString()); dlg.setCanceledOnTouchOutside(false); Window window = dlg.getWindow(); window.setWindowAnimations(R.style.setting_dailog_animstyle); dlg.show(); mIsLongPress = false; } } } }; @Override public void ok() { mThumbnaillDone = false; if (mIsLongPress) { if (mMode == MyMode.PHOTO) { GridViewGalleryActivity.this.runOnUiThread(new Runnable() { @Override public void run() { File file = LongPressFile; file.delete(); setPhotoData(); boolean hasFile = false; for (int i = 0; i < mapImagePath.size(); i++) { if (mapImagePath.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_noimage); txtNull.setText(getText(R.string.txt_no_photos)); } adapterChannel.notifyDataSetChanged(); } }); } else { GridViewGalleryActivity.this.runOnUiThread(new Runnable() { @Override public void run() { File file = LongPressFile; file.delete(); if (file.exists()) { try { mLock.wait(1000); } catch (InterruptedException e) { e.printStackTrace(); } } setVideoData(); boolean hasFile = false; for (int i = 0; i < mapVideoFile.size(); i++) { if (mapVideoFile.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_novideo); txtNull.setText(getText(R.string.txt_no_videos)); } adapterChannel.notifyDataSetChanged(); } }); } } else { if (mMode == MyMode.PHOTO) { for (int i = 0; i < map_multiDel_image.size(); i++) { for (int j = 0; j < map_multiDel_image.get(i).size(); j++) { if (map_multiDel_image.get(i).get(j)) { File file = new File(mapImagePath.get(i).get(j)); file.delete(); if (file.exists()) { try { mLock.wait(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } } } setPhotoData(); boolean hasFile = false; for (int i = 0; i < mapImagePath.size(); i++) { if (mapImagePath.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_noimage); txtNull.setText(getText(R.string.txt_no_photos)); } } else { for (int i = 0; i < map_multiDel_video.size(); i++) { for (int j = 0; j < map_multiDel_video.get(i).size(); j++) { if (map_multiDel_video.get(i).get(j)) { File file = new File(mapVideoFile.get(i).get(j).getPath()); file.delete(); if (file.exists()) { try { mLock.wait(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } } } setVideoData(); boolean hasFile = false; for (int i = 0; i < mapVideoFile.size(); i++) { if (mapVideoFile.get(i).size() != 0) { hasFile = true; break; } } if (hasFile) { lvChannel.setVisibility(View.VISIBLE); layoutNull.setVisibility(View.GONE); } else { lvChannel.setVisibility(View.GONE); layoutNull.setVisibility(View.VISIBLE); imgNull.setBackgroundResource(R.drawable.ic_novideo); txtNull.setText(getText(R.string.txt_no_videos)); } } adapterChannel.notifyDataSetChanged(); bottombar.startAnimation(AnimationUtils.loadAnimation(GridViewGalleryActivity.this, R.anim.bottombar_slide_hide)); bottombar.setVisibility(View.GONE); btnEdit.setText(R.string.txt_edit); mIsEdit = false; } } @Override public void cancel() { } @Override protected void onResume() { super.onResume(); Custom_OkCancle_Dialog.SetDialogListener(this); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: finish(); overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out); return false; } return super.onKeyDown(keyCode, event); } }
[ "mingtseng.chang@huafu.com.tw" ]
mingtseng.chang@huafu.com.tw
da4b0ec71e487d24f0ef4c88b5ea16db6e191a43
4bdcd866bf6c4a98e813052cf5cd41ac517d65e0
/tuling_springIoc/src/main/java/com/lslnx/springIoc/Hi.java
2351bade479c85e9165fc941db1eb7ff7a49761d
[]
no_license
lslnx0307/tulingDemo
e239a3ec6ac12c7d4642041af8658d2d3a16f1d0
5ea2596edcdaead3bbce8fe990e995758223fa02
refs/heads/master
2020-03-27T15:49:45.080542
2019-02-21T07:26:12
2019-02-21T07:26:12
146,742,199
0
0
null
null
null
null
UTF-8
Java
false
false
296
java
package com.lslnx.springIoc;/** * Created by Administrator on 2018/8/26. */ /** * @author Tommy * Created by Tommy on 2018/8/26 **/ public class Hi { public Hi() { System.out.println("new hi"); } public void sayHi() { System.out.println("hi"); } }
[ "184576454@qq.com" ]
184576454@qq.com
e1beb4d302ffd68f8f12c5c51258e8e3bebd6b73
dd68d6ade5322df4aae9b5252cded60523303880
/server/bluenimble-server/src/main/java/com/bluenimble/platform/server/visitors/impls/checkers/ContainsConditionChecker.java
ea576428e02955f7e533da41e50e2fc389802ab9
[ "Apache-2.0" ]
permissive
bluenimble/serverless
55ac086eb7135ca3de67f25e7eba44357536914c
74247628ee41ef7f54639400561859f3715566ac
refs/heads/master
2023-08-09T03:54:52.051583
2023-07-25T11:51:24
2023-07-25T11:51:24
123,480,590
42
4
Apache-2.0
2023-02-22T07:02:41
2018-03-01T19:10:38
HTML
UTF-8
Java
false
false
1,245
java
/* * 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. */ package com.bluenimble.platform.server.visitors.impls.checkers; import com.bluenimble.platform.Lang; public class ContainsConditionChecker implements RewriteConditionChecker { private static final long serialVersionUID = 7198589858500030967L; @Override public boolean check (String value, String token) { if (Lang.isNullOrEmpty (value) || Lang.isNullOrEmpty (token)) { return false; } return value.indexOf (token) >= 0; } }
[ "mloukili@bluenimble.com" ]
mloukili@bluenimble.com
81b1b7c39feb65d383b41d5d471196aa118783a8
c779ffc760559690368b59dd7057ba22208bcedb
/TimUdemy/web31/src/transportation/Auto.java
0b21fb28f65ec460fe29fa4b991cf8ce82f1f9cf
[]
no_license
Kandelonius/Column-Safety
baf41f53ba9b5903704b6081085d0b93b34e39b3
b74af51143af77ce9c395e69369a702e7b59feaf
refs/heads/master
2021-09-25T23:02:08.533144
2021-09-24T04:54:47
2021-09-24T04:54:47
190,201,753
0
0
null
2019-06-07T03:57:35
2019-06-04T12:58:09
null
UTF-8
Java
false
false
544
java
package transportation; public class Auto extends AbstractVehicle { private String model; private int year; public Auto(int fuel, String model, int year) { super(fuel); this.model = model; this.year = year; } @Override public String getPath() { return "Road"; } @Override public String getName() { return model; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } @Override public String toString() { return "Auto "+model+" year = "+year+" fuel = "+fuel; } }
[ "shane.kaestner@yahoo.com" ]
shane.kaestner@yahoo.com
5e12807715c762e1303137dfd6c16b64dbf663a0
ac82c44a91362f66d49c9ffa2f798b9a47e75ab4
/raml-parser-2/src/main/java/org/raml/v2/api/model/v08/security/SecuritySchemePart.java
21ddf2f18443b1cfc544868b3daeee9bdc61c104
[ "Apache-2.0" ]
permissive
raml-org/raml-java-parser
0d07a5b61211dc4c7b255b3e05094f8577ce3cfb
d2935eb7eec3aee4b5badd644d51f14e09eadb3d
refs/heads/master
2023-08-29T01:04:55.495293
2022-02-12T14:27:47
2022-02-12T14:27:47
11,036,770
148
135
NOASSERTION
2020-06-09T10:37:39
2013-06-28T20:09:34
Java
UTF-8
Java
false
false
1,030
java
/* * Copyright 2013 (c) MuleSoft, Inc. * * 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. */ package org.raml.v2.api.model.v08.security; import java.util.List; import org.raml.v2.api.model.v08.methods.MethodBase; import org.raml.v2.api.model.v08.methods.TraitRef; public interface SecuritySchemePart extends MethodBase { /** * An alternate, human-friendly name for the security scheme part **/ String displayName(); /** * Instantiation of applyed traits **/ List<TraitRef> is(); }
[ "svacas@gmail.com" ]
svacas@gmail.com
8f28b0cc82fc17bdd4941a3fa0ca9c6fab3affa7
e55e8564a97528a8a75fdb8efaa3aed6ac8d2e5a
/backend/src/main/java/com/se/team21/backend/B5926329/Sprint2/Entity/ExpertLevel.java
2dc38b5435c2dbfb989496f41f8bab6147ccf89e
[]
no_license
narawichsaphimarn/Project-System-Engineering
0ba80dffeddd363e111d3ac04ced40ee5e45771a
5bbd1a5205359b98c05f609c1dc75abc95769227
refs/heads/master
2022-06-02T13:57:28.138463
2019-04-12T05:55:40
2019-04-12T05:55:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
610
java
package com.se.team21.backend.B5926329.Sprint2.Entity; import lombok.*; import javax.persistence.*; import javax.validation.constraints.NotNull; @Data @Entity @Getter @Setter @NoArgsConstructor @ToString @EqualsAndHashCode @Table(name = "ExpertLevel") public class ExpertLevel { @Id @SequenceGenerator(name = "expertlevel_seq", sequenceName = "expertlevel_seq") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "expertlevel_seq") private @NotNull Long expertLevelId; private @NotNull (message="expertLevelName must not be null to be valid") String expertLevelName; }
[ "NarawichSaphimarn@gmail.com" ]
NarawichSaphimarn@gmail.com
dae4f28268fb49dd9378fed31357f87f61cfb2fc
d79029435a0460a510c07566c5942b74bcf5dbba
/PB_moreExercise/src/MountainRunExam28Mart.java
7b4a7925615e55d3e163a84642e3ed20a0d1197b
[]
no_license
Milena-Petrova/Java-basics-2020
c888bccbb5904ba0f60cb800277abd0f209c211a
168f6c3d83c995d64fe51a088e01980f2df95da5
refs/heads/master
2023-03-20T05:36:47.240172
2021-03-13T22:05:01
2021-03-13T22:05:01
347,484,928
0
0
null
null
null
null
UTF-8
Java
false
false
2,484
java
import java.util.Scanner; public class MountainRunExam28Mart { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double record = Double.parseDouble(scanner.nextLine());//рекорд, който трябва да подобри, в секунди double distance = Double.parseDouble(scanner.nextLine());//разстояние в метри, което се изкачва double timePerMeter = Double.parseDouble(scanner.nextLine());// време за катерене на 1 метър в секунди /*. Да се напише програма, която изчислява дали се е справил със задачата, като се има предвид, че: наклона наразстоянието/ терена го забавя на всеки 50 м. с 30 секунди. Да се изчисли времето в секунди, за което Георги ще изкачи разстоянието до върха и разликата спрямо рекорда. Когато се изчислява колко пъти Георги ще се забави в резултат на наклона на терена, резултатът трябва да се закръгли надолу до най-близкото цяло число. • Ако Георги е подобрил рекорда отпечатваме: o " Yes! The new record is {времето на Георги} seconds." • Ако НЕ е подобрил рекорда отпечатваме: o "No! He was {недостигащите секунди} seconds slower." Резултатът трябва да се форматира до втория знак след десетичната запетая. */ double time = distance * timePerMeter;//времето на катерене бе забавянето //разстоянието/50 = N пъти се забавя с по 30 секунди; //времето общо = времето без забавяне + N * 30; double delay = Math.floor(distance / 50); double totalTime = time + delay*30; if (totalTime < record) { System.out.printf("Yes! The new record is %.2f seconds.", totalTime); }else{ double needTime = totalTime-record; System.out.printf("No! He was %.2f seconds slower.", needTime); } } }
[ "milipt.mp@gmail.com" ]
milipt.mp@gmail.com
42d10fadc61929f999dff4b310d91371ffcf42a8
7a96414d5b49603238e95a6b1e77809a77143082
/software/ear/src/test/java/gov/nih/nci/firebird/selenium2/pages/sponsor/annual/registration/EditAnnualRegistrationConfigurationPageHelper.java
61b837c7c8c7fcfebd4670b25dff2a96471c0486
[]
no_license
NCIP/nci-ocr
822788379a2bf0a95ee00e1667e365766cc8c794
e36adffb92fdb9833bb8835f87eab4b46594019e
refs/heads/master
2016-09-05T12:40:31.309373
2013-08-28T14:32:45
2013-08-28T14:32:45
12,298,569
2
1
null
null
null
null
UTF-8
Java
false
false
6,343
java
/** * The software subject to this notice and license includes both human readable * source code form and machine readable, binary, object code form. The NCI OCR * Software was developed in conjunction with the National Cancer Institute * (NCI) by NCI employees and 5AM Solutions, Inc. (5AM). To the extent * government employees are authors, any rights in such works shall be subject * to Title 17 of the United States Code, section 105. * * This NCI OCR Software License (the License) is between NCI and You. You (or * Your) shall mean a person or an entity, and all other entities that control, * are controlled by, or are under common control with the entity. Control for * purposes of this definition means (i) the direct or indirect power to cause * the direction or management of such entity, whether by contract or otherwise, * or (ii) ownership of fifty percent (50%) or more of the outstanding shares, * or (iii) beneficial ownership of such entity. * * This License is granted provided that You agree to the conditions described * below. NCI grants You a non-exclusive, worldwide, perpetual, fully-paid-up, * no-charge, irrevocable, transferable and royalty-free right and license in * its rights in the NCI OCR Software to (i) use, install, access, operate, * execute, copy, modify, translate, market, publicly display, publicly perform, * and prepare derivative works of the NCI OCR Software; (ii) distribute and * have distributed to and by third parties the NCI OCR Software and any * modifications and derivative works thereof; and (iii) sublicense the * foregoing rights set out in (i) and (ii) to third parties, including the * right to license such rights to further third parties. For sake of clarity, * and not by way of limitation, NCI shall have no right of accounting or right * of payment from You or Your sub-licensees for the rights granted under this * License. This License is granted at no charge to You. * * Your redistributions of the source code for the Software must retain the * above copyright notice, this list of conditions and the disclaimer and * limitation of liability of Article 6, below. Your redistributions in object * code form must reproduce the above copyright notice, this list of conditions * and the disclaimer of Article 6 in the documentation and/or other materials * provided with the distribution, if any. * * Your end-user documentation included with the redistribution, if any, must * include the following acknowledgment: This product includes software * developed by 5AM and the National Cancer Institute. If You do not include * such end-user documentation, You shall include this acknowledgment in the * Software itself, wherever such third-party acknowledgments normally appear. * * You may not use the names "The National Cancer Institute", "NCI", or "5AM" * to endorse or promote products derived from this Software. This License does * not authorize You to use any trademarks, service marks, trade names, logos or * product names of either NCI or 5AM, except as required to comply with the * terms of this License. * * For sake of clarity, and not by way of limitation, You may incorporate this * Software into Your proprietary programs and into any third party proprietary * programs. However, if You incorporate the Software into third party * proprietary programs, You agree that You are solely responsible for obtaining * any permission from such third parties required to incorporate the Software * into such third party proprietary programs and for informing Your * sub-licensees, including without limitation Your end-users, of their * obligation to secure any required permissions from such third parties before * incorporating the Software into such third party proprietary software * programs. In the event that You fail to obtain such permissions, You agree * to indemnify NCI for any claims against NCI by such third parties, except to * the extent prohibited by law, resulting from Your failure to obtain such * permissions. * * For sake of clarity, and not by way of limitation, You may add Your own * copyright statement to Your modifications and to the derivative works, and * You may provide additional or different license terms and conditions in Your * sublicenses of modifications of the Software, or any derivative works of the * Software as a whole, provided Your use, reproduction, and distribution of the * Work otherwise complies with the conditions stated in this License. * * THIS SOFTWARE IS PROVIDED "AS IS," AND ANY EXPRESSED OR IMPLIED WARRANTIES, * (INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE) ARE DISCLAIMED. IN NO * EVENT SHALL THE NATIONAL CANCER INSTITUTE, 5AM SOLUTIONS, INC. OR THEIR * AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package gov.nih.nci.firebird.selenium2.pages.sponsor.annual.registration; import gov.nih.nci.firebird.data.FormOptionality; import gov.nih.nci.firebird.data.FormType; import gov.nih.nci.firebird.selenium2.pages.sponsor.annual.registration.EditAnnualRegistrationConfigurationPage.RegistrationFormListing; import gov.nih.nci.firebird.selenium2.pages.util.FirebirdTableUtils; public class EditAnnualRegistrationConfigurationPageHelper { private EditAnnualRegistrationConfigurationPage page; public EditAnnualRegistrationConfigurationPageHelper(EditAnnualRegistrationConfigurationPage page) { this.page = page; } public RegistrationFormListing getListing(FormType formType) { return FirebirdTableUtils.getListing(page.getListings(), formType); } public void addForm(FormType formType, FormOptionality optionality) { page.selectFormType(formType); page.clickAddFormButton(); getListing(formType).setOptionality(optionality); } }
[ "mkher@fusionspan.com" ]
mkher@fusionspan.com
1e339ade2ed56e0b171f02e972c2e64844c68bf4
06c302ae0ee099de7c00897d1d8b1e48d45ecc5b
/src/com/qlzy/mainPage/login/dao/MemberJobMapper.java
2f564291ce29d6e3dfcd049c0c7d1c4c7e08841c
[]
no_license
945284941/haoxingPC
c14df3d69bca6f8b0b1f6d8af3f09b8b8686c678
af53b4afe937981d8937c21116e834e1a8e15b92
refs/heads/master
2020-03-15T11:23:22.413113
2018-05-25T05:26:35
2018-05-25T05:26:35
132,119,896
0
0
null
null
null
null
UTF-8
Java
false
false
252
java
package com.qlzy.mainPage.login.dao; import java.util.List; import com.qlzy.model.MemberJob; public interface MemberJobMapper { int insert(MemberJob record); int insertSelective(MemberJob record); List<MemberJob> gainMemberJobList(); }
[ "a945284941@qq.com" ]
a945284941@qq.com
8c49b2c55f3617e6165d01ee3515df5640afae6f
d1e2c5b90d87d138c8b3194ef3c1cd3fb70fad0f
/auctionWebserviceClient/build/generated-sources/jax-ws/web/Item.java
d13562209c50b7211931ce933392cdacc7427c19
[]
no_license
mikerooijackers/SE42
77aec7f319bfb05bb20c91b58588d7c1bfdb83ac
2a424753b389632984f6a8234fed5f9b16dac831
refs/heads/master
2021-01-10T22:06:59.262719
2015-01-12T13:59:12
2015-01-12T13:59:12
27,330,536
0
0
null
null
null
null
UTF-8
Java
false
false
1,310
java
package web; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for item complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="item"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="seller" type="{http://web/}user" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "item", propOrder = { "seller" }) public class Item { protected User seller; /** * Gets the value of the seller property. * * @return * possible object is * {@link User } * */ public User getSeller() { return seller; } /** * Sets the value of the seller property. * * @param value * allowed object is * {@link User } * */ public void setSeller(User value) { this.seller = value; } }
[ "mikerooijackers@gmail.com" ]
mikerooijackers@gmail.com
cf7b0419479ea9b1d76cce37807b427d497814f0
624c8e3a082de0ccb72951cb6b94280fc6c4bff7
/Tree/PreOrder.java
c071c11724bee0e4cc381638772da78833323ff0
[]
no_license
Murchi/Problem-Solving
b272f9be8e4b145b96760d59163846f9502b4515
3f99712fe35348e4dbffdecc8d4d8f8f2c708762
refs/heads/master
2020-09-19T17:21:12.319900
2020-03-12T18:47:27
2020-03-12T18:47:27
224,251,700
0
0
null
null
null
null
UTF-8
Java
false
false
628
java
import java.io.*; import java.util.*; class PreOrder { static class Node { int data; Node left; Node right; Node(int data) { this.data = data; this.left = null; this.right = null; } } public static void preorder_traversal(Node root) { if(root == null) return; System.out.print(root.data+" "); preorder_traversal(root.left); preorder_traversal(root.right); } static Node root; public static void main(String args[]) { root = new Node(1); root.left = new Node(2); root.right = new Node(3); root.right.left = new Node(5); root.right.right = new Node(7); preorder_traversal(root); } }
[ "murchana.23@gmail.com" ]
murchana.23@gmail.com
0b233a2ce66d47b1f4ffe5a891def191bf639f5c
6426660ea63daba2c2aab87f4f9ac034a620eeab
/Duanmau/src/UI/giaodien/quanlynguoihoc.java
2dbabe420b2ba2cfeae3a50b17e7804ecb2a22c0
[]
no_license
TAQ5302/abc
b834e6d63d846f955412754d678ce5e0664f1238
4599e64fc21677db1abc8d71e357389017c23586
refs/heads/main
2023-09-03T06:09:59.996139
2021-11-17T13:15:44
2021-11-17T13:15:44
429,047,864
0
0
null
null
null
null
UTF-8
Java
false
false
32,552
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package UI.giaodien; import DAO.NguoiHocDAO; import Model.NguoiHoc; import Tienich.Helper.DateHelper; import Tienich.Helper.DialogHelper; import Tienich.Helper.ShareHelper; import java.awt.HeadlessException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import javax.swing.table.DefaultTableModel; /** * * @author DELL-PC */ public class quanlynguoihoc extends javax.swing.JFrame { /** * Creates new form quanlynguoihoc */ public quanlynguoihoc() { initComponents(); init(); } int index = 0; NguoiHocDAO dao = new NguoiHocDAO(); void init() { setIconImage(ShareHelper.APP_ICON); setLocationRelativeTo(null); if (ShareHelper.USER != null) { load(); } else { DialogHelper.alert(this, "Vui lòng đăng nhập"); this.tabs.removeAll(); load(); } } void load() { DefaultTableModel model = (DefaultTableModel) tblGridView.getModel(); model.setRowCount(0); try { String keyword = txtTimKiem.getText(); List<NguoiHoc> list = dao.selectByKeyword(keyword); for (NguoiHoc nh : list) { Object[] row = { nh.getMaNH(), nh.getHoTen(), nh.getGioiTinh()?"Nam":"Nữ", DateHelper.toString(nh.getNgaySinh()), nh.getDienThoai(), nh.getEmail(), nh.getMaNV(), DateHelper.toString(nh.getNgayDK()) }; model.addRow(row); } } catch (Exception e) { DialogHelper.alert(this, "Lỗi truy vấn dữ liệu!"); } } void insert(){ NguoiHoc model = getModel(); try { dao.insert(model); this.load(); this.clear(); DialogHelper.alert(this, "Thêm mới thành công!"); } catch (Exception e) { DialogHelper.alert(this, "Mã người học này đã có rồi. Hãy sử dụng mã khác!"); System.out.println(e); } } void update(){ NguoiHoc model = getModel(); try { dao.update(model); this.load(); DialogHelper.alert(this, "Cập nhật thành công!"); } catch (Exception e) { DialogHelper.alert(this, "Cập nhật thất bại!"); } } void delete(){ if(DialogHelper.confirm(this, "Bạn thực sự muốn xóa người học này?")){ String manh = txtMaNH.getText(); try { dao.delete(manh); this.load(); this.clear(); DialogHelper.alert(this, "Xóa thành công!"); } catch (RuntimeException e) { DialogHelper.alert(this, "Xóa thất bại! Người học này vẫn còn trong thời gian học"); } } } private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"; public static boolean verifyEmail(String email) { if (email == null) { return false; } return email.matches(EMAIL_PATTERN); } boolean flag=false; void check() { if ((txtMaNH.getText()).length() < 7 || (txtMaNH.getText()).length() > 7) { if ((txtMaNH.getText()).equals("")) { DialogHelper.alert(this, "Mã người học không được để trống"); } else { DialogHelper.alert(this, "Mã người học phải nhập đúng 7 ký tự"); } } else if ((txtHoTen.getText()).equals("")) { DialogHelper.alert(this, "Họ tên không được để trống"); } else if (!txtHoTen.getText().matches("[a-zA-Z][a-zA-Z ]+")) { DialogHelper.alert(this, "Họ tên chỉ chứa alphabet và ký tự trắng"); } else if (txtDienThoai.getText().equals("")) { DialogHelper.alert(this, "Số điện thoại không được để trống"); } else if (txtDienThoai.getText().length() < 10 || txtDienThoai.getText().length() > 12) { DialogHelper.alert(this, "Số điện thoại phải nhập đủ 10 hoặc 11 số."); } else if (!txtDienThoai.getText().matches("[0-9]+")) { DialogHelper.alert(this, "Số điện thoại chỉ nhập số"); } else if (txtEmail.getText().equals("")) { DialogHelper.alert(this, "Email không đươc để trống"); } else if (verifyEmail(txtEmail.getText()) == false) { DialogHelper.alert(this, "Định dạng email bạn nhập không chính xác"); } else if (txtNgaySinh.getText().equals("")) { DialogHelper.alert(this, "Ngày sinh không đươc để trống"); } else if (!txtNgaySinh.getText().equals("")) { if ((txtNgaySinh.getText().length() != 10)) { DialogHelper.alert(this, "Định dạng ngày nhập vào chưa chính xác!"); } if (txtNgaySinh.getText().length() == 10) { String ngaysinh = txtNgaySinh.getText(); SimpleDateFormat DATE_FORMATER = new SimpleDateFormat("dd/MM/yyyy"); String kiemtra = ngaysinh; ParsePosition position = new ParsePosition(0); DATE_FORMATER.setLenient(false); Date ngaymua = new Date(); String ngay2 = DATE_FORMATER.format(ngaymua); int namthucte = Integer.parseInt(ngay2.substring(6, 10)); int ngaythucte = Integer.parseInt(ngay2.substring(0, 2)); int thangthucte = Integer.parseInt(ngay2.substring(3, 5)); int namngaysinh = Integer.parseInt(ngaysinh.substring(6, 10)); int thangngaysinh = Integer.parseInt(ngaysinh.substring(3, 5)); int tinhtuoi = (namthucte - namngaysinh); int tinhthangtt = 12 - thangthucte; int tingthangns = 12 - thangngaysinh; boolean chec = (thangthucte > thangngaysinh); boolean checkngay = false; try { System.out.println((DATE_FORMATER.parse(kiemtra, position)).toString()); checkngay = true; } catch (Exception e) { checkngay = false; } if (checkngay == true) { if (tinhtuoi < 16) { DialogHelper.alert(this, "Người học này chưa đủ tuổi"); } else if (tinhtuoi == 16 && chec == true) { DialogHelper.alert(this, "Người học này còn " + ((tinhthangtt + 12) - (tingthangns + 12) + " tháng nữa để đủ 16 tuổi")); } else { flag = true; } } else { DialogHelper.alert(this, "Ngày sinh không tồn tại"); } } } } void clear(){ NguoiHoc model = new NguoiHoc(); model.setMaNV(ShareHelper.USER.getMaNV()); model.setNgayDK(DateHelper.now()); this.setModel(model); } void edit() { try { String manh = (String) tblGridView.getValueAt(this.index, 0); NguoiHoc model = dao.findById(manh); if(model != null){ this.setModel(model); this.setStatus(false); } } catch (Exception e) { DialogHelper.alert(this, "Lỗi truy vấn dữ liệu!"); } } void setModel(NguoiHoc model){ txtMaNH.setText(model.getMaNH()); txtHoTen.setText(model.getHoTen()); cboGioiTinh.setSelectedIndex(model.getGioiTinh()?0:1); txtNgaySinh.setText(DateHelper.toString(model.getNgaySinh())); txtDienThoai.setText(model.getDienThoai()); txtEmail.setText(model.getEmail()); txtGhiChu.setText(model.getGhiChu()); } NguoiHoc getModel() { NguoiHoc model = new NguoiHoc(); model.setMaNH(txtMaNH.getText()); model.setHoTen(txtHoTen.getText()); model.setGioiTinh(cboGioiTinh.getSelectedIndex() == 0); model.setNgaySinh(DateHelper.toDate(txtNgaySinh.getText())); model.setDienThoai(txtDienThoai.getText()); model.setEmail(txtEmail.getText()); model.setGhiChu(txtGhiChu.getText()); model.setMaNV(ShareHelper.USER.getMaNV()); model.setNgayDK(DateHelper.now()); return model; } void setStatus(boolean insertable){ txtMaNH.setEditable(insertable); btnInsert.setEnabled(insertable); btnUpdate.setEnabled(!insertable); btnDelete.setEnabled(!insertable); boolean first = this.index > 0; boolean last = this.index < tblGridView.getRowCount() - 1; btnFirst.setEnabled(!insertable && first); btnPrev.setEnabled(!insertable && first); btnLast.setEnabled(!insertable && last); btnNext.setEnabled(!insertable && last); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); jPanel4 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); tabs = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); txtMaNH = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txtHoTen = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); cboGioiTinh = new javax.swing.JComboBox<>(); jLabel5 = new javax.swing.JLabel(); txtNgaySinh = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); txtGhiChu = new javax.swing.JTextArea(); btnFirst = new javax.swing.JButton(); btnPrev = new javax.swing.JButton(); btnNext = new javax.swing.JButton(); btnLast = new javax.swing.JButton(); btnInsert = new javax.swing.JButton(); btnUpdate = new javax.swing.JButton(); btnDelete = new javax.swing.JButton(); btnClear = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); txtDienThoai = new javax.swing.JTextField(); txtEmail = new javax.swing.JTextField(); jPanel1 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); txtTimKiem = new javax.swing.JTextField(); btnTimKiem = new javax.swing.JButton(); jScrollPane2 = new javax.swing.JScrollPane(); tblGridView = new javax.swing.JTable(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jPanel4.setBackground(new java.awt.Color(0, 102, 102)); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 153, 0)); jLabel1.setText("QUẢN LÝ NGƯỜI HỌC"); jLabel2.setText("Mã người học"); jLabel3.setText("Họ và tên"); jLabel4.setText("Giới tính"); cboGioiTinh.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Nam", "Nữ" })); jLabel5.setText("Ngày sinh (DD/MM/YYYY):"); jLabel6.setText("Ghi chú"); txtGhiChu.setColumns(20); txtGhiChu.setRows(5); jScrollPane1.setViewportView(txtGhiChu); btnFirst.setText("|<"); btnFirst.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFirstActionPerformed(evt); } }); btnPrev.setText("<<"); btnNext.setText(">>"); btnLast.setText(">|"); btnInsert.setText("Thêm"); btnInsert.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnInsertActionPerformed(evt); } }); btnUpdate.setText("Sửa"); btnUpdate.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnUpdateActionPerformed(evt); } }); btnDelete.setText("Xóa"); btnDelete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnDeleteActionPerformed(evt); } }); btnClear.setText("Mới"); btnClear.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnClearActionPerformed(evt); } }); jLabel7.setText("Điện thoại"); jLabel8.setText("Email"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(btnInsert) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnUpdate) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnDelete) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnClear) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, Short.MAX_VALUE) .addComponent(btnFirst) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btnPrev) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnNext) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnLast)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtHoTen) .addComponent(txtMaNH) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel2) .addComponent(jLabel3) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(cboGioiTinh, 0, 275, Short.MAX_VALUE) .addComponent(txtNgaySinh)) .addGap(18, 18, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7) .addComponent(txtDienThoai, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)))) .addContainerGap()))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtMaNH, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtHoTen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(cboGioiTinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtDienThoai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jLabel8)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtNgaySinh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnInsert) .addComponent(btnUpdate) .addComponent(btnDelete) .addComponent(btnClear) .addComponent(btnLast) .addComponent(btnNext) .addComponent(btnPrev) .addComponent(btnFirst)) .addGap(40, 40, 40)) ); tabs.addTab("CẬP NHẬT", jPanel2); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Tìm Kiếm")); txtTimKiem.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { txtTimKiemKeyPressed(evt); } }); btnTimKiem.setText("Tìm"); btnTimKiem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnTimKiemActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(txtTimKiem) .addGap(18, 18, 18) .addComponent(btnTimKiem) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtTimKiem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnTimKiem)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); tblGridView.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null}, {null, null, null, null, null, null, null, null} }, new String [] { "MãNH", "HỌ VÀ TÊN", "GIỚI TÍNH", "NGÀY SINH", "ĐIỆN THOẠI", "EMAIL", "MANV", "NGÀY ĐK" } )); tblGridView.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tblGridViewMouseClicked(evt); } }); jScrollPane2.setViewportView(tblGridView); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 628, Short.MAX_VALUE)) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 477, Short.MAX_VALUE)) ); tabs.addTab("DANH SÁCH", jPanel1); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 653, Short.MAX_VALUE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addContainerGap(489, Short.MAX_VALUE)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(tabs, javax.swing.GroupLayout.PREFERRED_SIZE, 653, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 618, Short.MAX_VALUE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(tabs, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE))) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }// </editor-fold>//GEN-END:initComponents private void btnInsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInsertActionPerformed check(); if(flag==true){ insert(); } }//GEN-LAST:event_btnInsertActionPerformed private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUpdateActionPerformed check(); if(flag==true){ update(); } // TODO add your handling code here: }//GEN-LAST:event_btnUpdateActionPerformed private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteActionPerformed delete(); // TODO add your handling code here: }//GEN-LAST:event_btnDeleteActionPerformed private void btnClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnClearActionPerformed clear(); txtMaNH.setEditable(true); btnInsert.setEnabled(true); btnUpdate.setEnabled(false); btnDelete.setEnabled(false); // TODO add your handling code here: }//GEN-LAST:event_btnClearActionPerformed private void btnTimKiemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTimKiemActionPerformed load(); clear(); // TODO add your handling code here: }//GEN-LAST:event_btnTimKiemActionPerformed private void tblGridViewMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblGridViewMouseClicked // TODO add your handling code here: if (evt.getClickCount() == 1) { this.index = tblGridView.rowAtPoint(evt.getPoint()); if (this.index >= 0) { this.edit(); tabs.setSelectedIndex(0); } } }//GEN-LAST:event_tblGridViewMouseClicked private void txtTimKiemKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtTimKiemKeyPressed // TODO add your handling code here: load(); }//GEN-LAST:event_txtTimKiemKeyPressed private void btnFirstActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFirstActionPerformed // TODO add your handling code here: }//GEN-LAST:event_btnFirstActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(quanlynguoihoc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(quanlynguoihoc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(quanlynguoihoc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(quanlynguoihoc.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new quanlynguoihoc().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton btnClear; private javax.swing.JButton btnDelete; private javax.swing.JButton btnFirst; private javax.swing.JButton btnInsert; private javax.swing.JButton btnLast; private javax.swing.JButton btnNext; private javax.swing.JButton btnPrev; private javax.swing.JButton btnTimKiem; private javax.swing.JButton btnUpdate; private javax.swing.JComboBox<String> cboGioiTinh; private javax.swing.Box.Filler filler1; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JTabbedPane tabs; private javax.swing.JTable tblGridView; private javax.swing.JTextField txtDienThoai; private javax.swing.JTextField txtEmail; private javax.swing.JTextArea txtGhiChu; private javax.swing.JTextField txtHoTen; private javax.swing.JTextField txtMaNH; private javax.swing.JTextField txtNgaySinh; private javax.swing.JTextField txtTimKiem; // End of variables declaration//GEN-END:variables }
[ "quantaph14262@fpt.edu.vn" ]
quantaph14262@fpt.edu.vn
9da42154e3d1bd9c20eab4ed08d40ec9b9e91196
e214cbcfb9add1602672e5a780d060923db068b6
/myProjectNoteUpdate4.2Check/app/src/main/java/com/t3h/myprojectnoteupdate/utils/AppUtils.java
eab84cb9303de70fbbf1e4162405ab5f60b5a22f
[]
no_license
JeffKi11er/SellingEquipmentWebsite
1a02792a47cecd5130341ed643bd28807ca93158
39f2250fb0d3adb7645af24a25b5d3c8cf6b1ab8
refs/heads/master
2021-05-22T01:38:09.974521
2020-04-04T04:40:31
2020-04-04T04:40:31
252,909,486
0
0
null
null
null
null
UTF-8
Java
false
false
6,247
java
package com.t3h.myprojectnoteupdate.utils; import android.app.Activity; import android.content.Context; import android.os.Handler; import android.view.inputmethod.InputMethodManager; import android.widget.Toast; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class AppUtils { public static Date getCurrentDateTime(){ try { Date currentDate = Calendar.getInstance().getTime(); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm a"); String dateString=simpleDateFormat.format(currentDate); Date ed = simpleDateFormat.parse(dateString); return ed; }catch (Exception e){ e.printStackTrace(); }return null; } // public static Date getSettingDateTime(String y, String m, String d){ // Calendar calendar = Calendar.getInstance(); // calendar.set(Integer.parseInt(y), Integer.parseInt(m)-1, Integer.parseInt(d));//calendar.set(y, m, d); // Date date = calendar.getTime(); // return date; // } public static String getFormattedDateString(Date date){ try{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); String dateString = simpleDateFormat.format(date); Date newDate = simpleDateFormat.parse(dateString); simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm a"); return simpleDateFormat.format(newDate); }catch (ParseException e){ e.printStackTrace(); } return null; } // public static String getFormattedDate2String(Date date){ // try{ // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); // String dateString = simpleDateFormat.format(date); // Date newDate = simpleDateFormat.parse(dateString); // simpleDateFormat = new SimpleDateFormat("yyyy.MMMMM.dd 'T' hh:mm aaa"); // return simpleDateFormat.format(newDate); // }catch (ParseException e){ // e.printStackTrace(); // } // return null; // } public static String getFormattedDayString(Date date){ try{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm a"); String dateString = simpleDateFormat.format(date); Date newDate = simpleDateFormat.parse(dateString); simpleDateFormat = new SimpleDateFormat("dd MMM yyyy"); return simpleDateFormat.format(newDate); }catch (ParseException e){ e.printStackTrace(); } return null; } public static String getFormattedDayStringShow(Date date){ try{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); String dateString = simpleDateFormat.format(date); Date newDate = simpleDateFormat.parse(dateString); simpleDateFormat = new SimpleDateFormat("dd MMM yyyy"); return simpleDateFormat.format(newDate); }catch (Exception e){ e.printStackTrace(); } return null; } public static String getFormattedTimeStringMenu(Date date){ try{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm a"); String dateString = simpleDateFormat.format(date); return dateString; }catch (Exception e){ e.printStackTrace(); } return null; } public static String getFormattedTimeString(Date date){ try{ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm a"); String dateString = simpleDateFormat.format(date); Date newDate = simpleDateFormat.parse(dateString); simpleDateFormat = new SimpleDateFormat("HH:mm a"); return simpleDateFormat.format(newDate); }catch (ParseException e){ e.printStackTrace(); } return null; } // public static String getFormattedTimeStringShow(Date date){ // try{ // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy"); // String dateString = simpleDateFormat.format(date); // Date newDate = simpleDateFormat.parse(dateString); // simpleDateFormat = new SimpleDateFormat("HH:mm"); // return simpleDateFormat.format(newDate); // }catch (ParseException e){ // e.printStackTrace(); // } // return null; // } public static void openKeyboard(final Context context){ new Handler().postDelayed(new Runnable() { @Override public void run() { InputMethodManager inputMethodManager = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE); if (inputMethodManager != null){ inputMethodManager .toggleSoftInput(InputMethodManager .SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY); } } },500); } public static void hideKeyboard(Activity activity){ InputMethodManager inputMethodManager = (InputMethodManager)activity.getSystemService(Activity.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(),0); } public static Date ConvertStringToDate(String date){ SimpleDateFormat format = new SimpleDateFormat("dd MMM yyyy HH:mm a"); Date date1 = null; try{ date1 = format.parse(date); }catch (ParseException e){ e.printStackTrace(); } return date1; } public static Date ConvertStringToDate2(String date){ SimpleDateFormat format = new SimpleDateFormat("dd MMM yyyy"); Date date1 = null; try{ date1 = format.parse(date); }catch (ParseException e){ e.printStackTrace(); } return date1; } }
[ "fillaytion23@gmail.com" ]
fillaytion23@gmail.com
ddd935f9db8230a485804509b54743b233740f2d
264043f215944a9c533fd321352fd2e03b80c683
/src/TesteConneciton.java
46d575ecaf779800d829bd6100b85c84b8f88911
[]
no_license
glerisonlima/Tarefas
d9d28725b81f1075a938b1951db7058203981692
a174468752084855adcb3e9e20ab8d6f059b3c09
refs/heads/master
2021-01-20T07:56:22.905134
2017-05-02T19:58:01
2017-05-02T19:58:01
90,061,516
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
import java.sql.Connection; import br.com.tarefas.dao.ConnectionFactory; public class TesteConneciton { public static void main(String[] args) { try{ Connection connection = new ConnectionFactory().getConnection(); System.out.println("Conectado com sucesso!"); }catch (Exception e) { System.out.println("Problema ao conectar"); } } }
[ "glerison@Weslleys-MacBook-Pro.local" ]
glerison@Weslleys-MacBook-Pro.local
d2797567e48a48ee684c68fc5cc77882974d6f8e
d0c02a6e6355da82480891f7370db6b540301c40
/apps/twitter/twimight-diamond-old/src/ch/ethz/twimight/activities/ConditionsActivity.java
64f37c2ab8195b95ef900a334d78b023d70f3dde
[ "MIT" ]
permissive
UWSysLab/diamond
08a914c0366c05d02159a7ebc21ba006632b1b48
1beec323c084d9d477c770ca6b9625c8f5682a39
refs/heads/master
2022-07-25T01:32:06.827340
2020-06-11T21:16:06
2020-06-11T21:16:06
66,315,962
22
5
MIT
2022-07-07T20:58:24
2016-08-22T23:35:54
Java
UTF-8
Java
false
false
1,693
java
package ch.ethz.twimight.activities; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import ch.ethz.twimight.R; public class ConditionsActivity extends Activity { static final String TERMS = "termsAccepted"; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this); boolean termsAccepted = settings.getBoolean(TERMS, false); if (termsAccepted) { startLogin(); } else { setContentView(R.layout.show_conditions); Button buttonAgree = (Button)findViewById(R.id.buttonAgree); buttonAgree.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(ConditionsActivity.this); SharedPreferences.Editor editor = settings.edit(); editor.putBoolean(TERMS, true); editor.commit(); setContentView(R.layout.show_tips); Button buttonSkip = (Button)findViewById(R.id.buttonSkip); buttonSkip.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { startLogin(); } }); } }); } } private void startLogin() { Intent intent = new Intent(this,LoginActivity.class); startActivity(intent); finish(); } }
[ "niel.lebeck@gmail.com" ]
niel.lebeck@gmail.com
5c2a8d4fdade593f1b6df7ee121b3761063d693b
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/LANG-13b-4-1-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/apache/commons/lang3/SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest_scaffolding.java
f9d5ba4c3536800d512662909045e4d4b2ef3697
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
481
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Tue Jan 21 20:37:14 UTC 2020 */ package org.apache.commons.lang3; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class SerializationUtils$ClassLoaderAwareObjectInputStream_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a105ce8d5d726ad6ea3e9f95c007482225848f9f
57f351ecc67e846a5ac26f7b903ad7eaa425d1a4
/web/src/test/java/org/eddy/test/SaleTest.java
3ac0fadc6113e16d729e56666e6e2f21ae08c8f6
[ "BSD-3-Clause" ]
permissive
Justice-love/stockAnalysis
ec7eea78e0caa92523684bc0f7422a73c33cd8d8
8df93f83a7649b7b1bee6ef72baad6470ad1858c
refs/heads/master
2022-10-02T06:23:37.669733
2022-06-29T09:56:24
2022-06-29T09:56:24
75,523,331
9
1
BSD-3-Clause
2022-09-01T22:49:09
2016-12-04T07:20:32
Java
UTF-8
Java
false
false
822
java
package org.eddy.test; import org.eddy.ApplicationStart; import org.eddy.manager.StockSaleManager; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.annotation.Transactional; /** * Created by eddy on 2016/12/17. */ @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = {ApplicationStart.class}) @ActiveProfiles(value="dev") @Transactional public class SaleTest { @Autowired private StockSaleManager stockSaleManager; @Test public void test() { stockSaleManager.shouldSale(); } }
[ "eddyxu1213@126.com" ]
eddyxu1213@126.com
9f32c2e9421ecc247eeb47915a9d7c214d9a9b96
cb808210aa5bf4f11913e735d59bfa54dd553089
/rabbit-fsh-api/src/main/java/com/rabbit/fsh/api/controller/LocalController.java
f404c97a8c59d1e7df7b417a14cc1d2abe1128ca
[]
no_license
RabbitWFly/spring-cloud-learning
0f113af63fd420ee7567be80afd350071fb58864
e22a377e2507775dd94fcc6346c8c4270032cc00
refs/heads/master
2020-04-27T12:47:58.971153
2019-04-07T14:49:08
2019-04-07T14:49:08
174,344,862
0
0
null
null
null
null
UTF-8
Java
false
false
441
java
package com.rabbit.fsh.api.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; /** * @Author chentao * Date 2019/3/26 * Description **/ @RestController public class LocalController { @GetMapping("/local/{id}") public String local(@PathVariable String id){ return id; } }
[ "chentao@daokoudai.com" ]
chentao@daokoudai.com
fcc1af88282fc9e492fc8bf8b0cd2f691e0c4b7a
ce24d258f30e89ec4cf027aa745ca8c2c841044c
/app/src/androidTest/java/ro/alinzamfiroiu/cleancodeexample/ExampleInstrumentedTest.java
f14fdba2ce2a44c773be74e85e3ab726a801ccd8
[]
no_license
zamfiroiu/CleanCodeExample
d10e21620d16c556a2852639e6f3c2d1f9438b7d
5eca1284601f0691f2c9b852f5d2b5e59dc487aa
refs/heads/master
2021-01-19T13:20:45.152187
2017-02-18T09:26:38
2017-02-18T09:26:38
82,375,867
1
0
null
null
null
null
UTF-8
Java
false
false
770
java
package ro.alinzamfiroiu.cleancodeexample; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("ro.alinzamfiroiu.cleancodeexample", appContext.getPackageName()); } }
[ "zamfiroiu@ici.ro" ]
zamfiroiu@ici.ro
b60b3e8ca9aa0744f053c7060c9567d4d466cacc
7a87644bbaa15809100203576839c078cf4cbfee
/gs-accessing-data-jpa/src/main/java/hello/ds/DoubleEndedListDemo.java
92116a3e37dd9e6cc9955f719d138555c99346f1
[]
no_license
pnsrinivas65/Work-1
4257c55aa46f9da78171acbe15f55e45f08bc7a4
baa5951048641d071f8ab7fc933bb7a120795156
refs/heads/master
2022-11-23T06:15:47.362970
2021-04-24T17:04:56
2021-04-24T17:04:56
85,466,139
1
0
null
2022-11-16T10:38:54
2017-03-19T10:00:47
Java
UTF-8
Java
false
false
325
java
package hello.ds; public class DoubleEndedListDemo { public static void main(String s[]) { DoubleEndedList dlist = new DoubleEndedList(); dlist.addAtEnd(19); dlist.addAtEnd(29); dlist.addAtEnd(9); dlist.addAtEnd(99); System.out.println("List -->"+dlist +" <-- Length -->"+dlist.getLength()); } }
[ "nagasrinivas_pothula@epam.com" ]
nagasrinivas_pothula@epam.com
a974b7e10095c84132d42963ca5ff663d9903b6e
223bd1f216dbadb44142cf4266fff3a4a1cc5665
/backend/src/main/java/com/devsuperior/dsdeliver/service/ProductService.java
c8dee0aba78cf76768765ac95b41459e73137805
[]
no_license
AbmaelFerreira/dsdeliver-sds2
f3d96f0e2a2cdfa768d9fc52adc278be309ef958
73bf55859a60f9f1d5f28d4eab1ba2315d723747
refs/heads/main
2023-02-18T01:05:26.235292
2021-01-10T20:52:31
2021-01-10T20:52:31
328,303,336
0
0
null
null
null
null
UTF-8
Java
false
false
770
java
package com.devsuperior.dsdeliver.service; import java.util.List; import java.util.stream.Collectors; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.devsuperior.dsdeliver.dto.ProductDTO; import com.devsuperior.dsdeliver.entities.Product; import com.devsuperior.dsdeliver.repository.ProductRepository; @Service public class ProductService { @Autowired private ProductRepository repository; @Transactional(readOnly = true) public List<ProductDTO> findAll(){ List<Product> list = repository.findAllByOrderByNameAsc(); return list.stream().map(x -> new ProductDTO(x)).collect(Collectors.toList()); } }
[ "abmael.ninha@gmail.com" ]
abmael.ninha@gmail.com
3ffff7293fc1fbc93aa0987d4f9a20b041dc9e93
ae86c3524294c936b9bedc3918d18aa539f46293
/baidupan-master/src/main/java/com/onewen/baidupan/util/LoadConfig.java
02cb00dd405aee57ffa7f93001bf9ad10a0ce8cc
[]
no_license
bestans/tools
41b37084d3b882c07fb6a2ed27bea79baab52ec5
762aad559164a7c560566d864a6c57f44928f2ff
refs/heads/master
2022-12-26T23:03:11.823379
2019-11-15T00:49:47
2019-11-15T00:49:47
172,180,430
1
1
null
2022-12-08T04:05:46
2019-02-23T06:32:37
Python
UTF-8
Java
false
false
379
java
package com.onewen.baidupan.util; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 初始化配置注解 * * @author 梁光运 * @date 2018年8月26日 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface LoadConfig { }
[ "632469297@qq.com" ]
632469297@qq.com
c8dfd148ab9661b04843136fecbd9b597d3ada96
e14c82cbe59b5725799643efda99f74b586da9ec
/programs/MRExer/MR_01/src/com/anu/dbInputOutputFormat/HdfsToDb.java
b90b4c2f2a123ea4d66916f268c02a430e72a042
[]
no_license
NiuCuiming/bigdata-notes
0e5dd876a631e5a394c338df79ed3a4aa3248a7b
617bd5d12840d781b3fd68c1164b2cedafe526b9
refs/heads/master
2021-09-01T05:12:30.851849
2017-12-25T01:48:34
2017-12-25T01:48:34
114,460,409
1
0
null
null
null
null
UTF-8
Java
false
false
6,671
java
package com.anu.dbInputOutputFormat; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.Reducer; import org.apache.hadoop.mapreduce.lib.db.DBConfiguration; import org.apache.hadoop.mapreduce.lib.db.DBOutputFormat; import org.apache.hadoop.mapreduce.lib.input.TextInputFormat; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; /* 调试过一直失败,原因是解析器解析的文件有问题!!!!!!!!!!!!!! */ public class HdfsToDb { public static void main(String[] args) throws Exception { Configuration conf = new Configuration(); Job job = Job.getInstance(conf); TextInputFormat.addInputPath(job, new Path("C:/MR/Weather/input/999999-99999-1990")); DBConfiguration.configureDB( job.getConfiguration(), "com.mysql.jdbc.Driver", "jdbc:mysql://172.16.0.100:3306/hadoop", "hadoop", "hadoop"); //相当于设置insert into station_tbl(year,station,temperature) values(?, ?, ?) DBOutputFormat.setOutput(job, "tbl_anu", "year", "station", "temperature"); job.setMapperClass(MaxTemperatureMapper.class); job.setMapOutputKeyClass(YearStation.class); job.setMapOutputValueClass(IntWritable.class); job.setReducerClass(MaxTemperatureReducer.class); job.setOutputKeyClass(YearStationDB.class); job.setOutputValueClass(NullWritable.class); job.setInputFormatClass(TextInputFormat.class); job.setOutputFormatClass(DBOutputFormat.class); //执行Job if (job.waitForCompletion(true)){ System.out.println("job执行结束!"); } else { System.out.println("job执行失败!"); } } static class MaxTemperatureMapper extends Mapper<LongWritable, Text,YearStation, IntWritable> { private NcdcRecordParser parser = new NcdcRecordParser(); private YearStation k = new YearStation(); private IntWritable v = new IntWritable(); public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { parser.parse(value); if (parser.isValidTemperature()) { k.set(parser.getYear(), parser.getStationId()); v.set(parser.getAirTemperature()); context.write(k, v); } } } static class MaxTemperatureReducer extends Reducer<YearStation, IntWritable, YearStationDB, NullWritable> { private YearStationDB k = new YearStationDB(); public void reduce(YearStation key, Iterable<IntWritable> values, Context context) throws IOException, InterruptedException { int maxValue = Integer.MIN_VALUE; for (IntWritable value : values) { maxValue = Math.max(maxValue, value.get()); } k.setYear(key.getYear().get()); k.setStationId(key.getStationId().toString()); k.setTemperature(maxValue); context.write(k, NullWritable.get()); } } } class YearStation implements WritableComparable<YearStation> { private IntWritable year; private Text stationId; public YearStation(){ year = new IntWritable(); stationId = new Text(); } public YearStation(YearStation ys){ year = new IntWritable(); year.set(ys.year.get()); stationId = new Text(ys.stationId); } @Override public void readFields(DataInput input) throws IOException{ year.readFields(input); stationId.readFields(input); } @Override public void write(DataOutput output)throws IOException { year.write(output); stationId.write(output); } @Override public int compareTo(YearStation ys){ return (year.compareTo(ys.year) != 0)? (year.compareTo(ys.year)) :(stationId.compareTo(ys.stationId)); } @Override public boolean equals(Object obj) { if(!(obj instanceof YearStation)){ return false; } YearStation ys = (YearStation)obj; return (year == ys.year) && (stationId.equals(ys.stationId)); } @Override public int hashCode(){ return Math.abs(year.hashCode()*127 + stationId.hashCode()); } @Override public String toString(){ return year + "\t" + stationId; } public void set(IntWritable year, Text stationId){ set(year.get(), stationId.toString()); } public void set(int year, String stationId){ this.year.set(year); this.stationId.set(stationId); } public IntWritable getYear(){return year;} public Text getStationId(){return stationId;} } /* 气象数据解析器 */ class NcdcRecordParser{ private static final int MISSING = 9999; private String stationId; private int year; private int temperature; private boolean isValidTemperature; public NcdcRecordParser(){} public void parse(String line){ if(line.length() < 93){ isValidTemperature = false; return; } stationId = line.substring(0, 15); year = Integer.parseInt(line.substring(15, 19)); if(line.charAt(87) == '+'){ temperature = Integer.parseInt( (line.substring(88, 92))); }else{ temperature = Integer.parseInt( (line.substring(87, 92))); } String quality = line.substring(92, 93); this.isValidTemperature = (temperature != MISSING) && (quality.matches("[01459]")); } public String getStationId() { return stationId; } public void setStationId(String stationId) { this.stationId = stationId; } public void parse(Text value){ parse(value.toString()); } public int getYear(){return year;} public void setYear(int year){this.year = year;} public int getAirTemperature(){return temperature;} public void setAirTemperature(int temperature){ this.temperature = temperature; } public void setValidTemperature(boolean isValidTemperature) { this.isValidTemperature = isValidTemperature; } public boolean isValidTemperature(){return isValidTemperature;} }
[ "578277507@qq.com" ]
578277507@qq.com
8777e8300aa6094c8b3e26d3d2874390c57b0074
9ac3f8ceba79e4cc19251578a167ad6856380518
/udemy/src/main/java/mn/stock/broker/com/danielprinz/broker/CustomError.java
acc4ab0f5c84fb847ad6937a9f519c2accae4955
[]
no_license
brunodixini/udemy-micronaut
6c4ccc7ee7a90f179e65dcea86677e92469d1625
c2930f8b148c91780ffae2c9bdbb6f0221eaff0f
refs/heads/main
2023-08-27T01:35:57.261780
2021-10-26T18:12:26
2021-10-26T18:12:26
414,331,371
0
0
null
null
null
null
UTF-8
Java
false
false
3,894
java
package mn.stock.broker.com.danielprinz.broker; public class CustomError { private int status; private String error; private String message; private String path; public CustomError(int status, String error, String message, String path) { this.status = status; this.error = error; this.path = path; } public CustomError() { } public static CustomErrorBuilder builder() { return new CustomErrorBuilder(); } public int getStatus() { return this.status; } public String getError() { return this.error; } public String getMessage() { return this.message; } public String getPath() { return this.path; } public void setStatus(int status) { this.status = status; } public void setError(String error) { this.error = error; } public void setMessage(String message) { this.message = message; } public void setPath(String path) { this.path = path; } public boolean equals(final Object o) { if (o == this) return true; if (!(o instanceof CustomError)) return false; final CustomError other = (CustomError) o; if (!other.canEqual((Object) this)) return false; if (this.getStatus() != other.getStatus()) return false; final Object this$error = this.getError(); final Object other$error = other.getError(); if (this$error == null ? other$error != null : !this$error.equals(other$error)) return false; final Object this$message = this.getMessage(); final Object other$message = other.getMessage(); if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false; final Object this$path = this.getPath(); final Object other$path = other.getPath(); if (this$path == null ? other$path != null : !this$path.equals(other$path)) return false; return true; } protected boolean canEqual(final Object other) { return other instanceof CustomError; } public int hashCode() { final int PRIME = 59; int result = 1; result = result * PRIME + this.getStatus(); final Object $error = this.getError(); result = result * PRIME + ($error == null ? 43 : $error.hashCode()); final Object $message = this.getMessage(); result = result * PRIME + ($message == null ? 43 : $message.hashCode()); final Object $path = this.getPath(); result = result * PRIME + ($path == null ? 43 : $path.hashCode()); return result; } public String toString() { return "CustomError(status=" + this.getStatus() + ", error=" + this.getError() + ", message=" + this.getMessage() + ", path=" + this.getPath() + ")"; } public static class CustomErrorBuilder { private int status; private String error; private String message; private String path; CustomErrorBuilder() { } public CustomErrorBuilder status(int status) { this.status = status; return this; } public CustomErrorBuilder error(String error) { this.error = error; return this; } public CustomErrorBuilder message(String message) { this.message = message; return this; } public CustomErrorBuilder path(String path) { this.path = path; return this; } public CustomError build() { return new CustomError(status, error, message, path); } public String toString() { return "CustomError.CustomErrorBuilder(status=" + this.status + ", error=" + this.error + ", message=" + this.message + ", path=" + this.path + ")"; } } }
[ "bruno.mendonca@bancointer.com.br" ]
bruno.mendonca@bancointer.com.br
30fdb59a981fba13cb286a37d8e030cc7a3c1271
c97cca3228fbf989f03d7eedd86668903b811af8
/630-M-16405600.java
acbb57c502e0de2044db510891b34b64ad454138
[]
no_license
MohamedAboBakr/Codeforces
ca2e9fd0b4c8fcc94f562c599bbe4a3fa7d6575e
e4d98d611e225ceb4fb260cc5d3a87b632e39c96
refs/heads/master
2020-03-15T15:51:52.466180
2018-05-05T06:44:51
2018-05-05T06:44:51
132,222,219
0
1
null
null
null
null
UTF-8
Java
false
false
655
java
import java.util.*; public class CodeForces { public static void main(String[] args) { Scanner in = new Scanner(System.in); long angle = in.nextLong(); if(angle < 0 ) angle = 360 - (Math.abs(angle)%360); else angle = angle%360; if(angle == 0 || angle == 360) System.out.println(0); else if( angle <= 45 || angle >= 315) System.out.println(0); else if( angle <= 135) System.out.println(1); else if( angle <= 225) System.out.println(2); else if( angle < 315) System.out.println(3); } }
[ "fares6abobakr@gmail.com" ]
fares6abobakr@gmail.com
d78b2caaa0cc7cf626c7d7ea73671cf0ab77c432
4080cfcaee222f1f829ad581d3f4a65849178729
/app/src/main/java/com/dating/app/idateu/Maps/MapsActivity.java
d556baaee30210fe839634439e0434ced2fa0b8a
[]
no_license
dinojs/idateu
741a41ae2a47477722fdf953f2ddc2f56673ab70
4be8c19f9449659a5c11661b19a10e7218a5509b
refs/heads/master
2020-04-27T19:02:19.010602
2019-07-16T00:56:06
2019-07-16T00:56:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,460
java
package com.dating.app.idateu.Maps; import android.Manifest; import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.support.v4.app.ActivityCompat; import android.support.v4.app.FragmentActivity; import android.os.Bundle; import com.dating.app.idateu.R; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import java.io.IOException; import java.util.List; public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; public LocationManager locationManager; private static final int REQUEST_LOCATION_PERMISSION = 1; Marker marker; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_maps); // Obtain the SupportMapFragment and get notified when the map is ready to be used. SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() .findFragmentById(R.id.map); assert mapFragment != null; mapFragment.getMapAsync(this); locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION); } LocationListener locationListener = new LocationListener() { @Override public void onLocationChanged(Location location) { double latitude = location.getLatitude(); double longitude = location.getLongitude(); //get the location name from latitude and longitude Geocoder geocoder = new Geocoder(getApplicationContext()); try { List<Address> addresses = geocoder.getFromLocation(latitude, longitude, 1); String result = addresses.get(0).getLocality() + ":"; result += addresses.get(0).getCountryName(); LatLng latLng = new LatLng(latitude, longitude); if (marker != null) { marker.remove(); marker = mMap.addMarker(new MarkerOptions().position(latLng).title(result)); mMap.setMaxZoomPreference(20); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12.0f)); } else { marker = mMap.addMarker(new MarkerOptions().position(latLng).title(result)); mMap.setMaxZoomPreference(20); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 21.0f)); } } catch (IOException e) { e.printStackTrace(); } } @Override public void onStatusChanged(String provider, int status, Bundle extras) { } @Override public void onProviderEnabled(String provider) { } @Override public void onProviderDisabled(String provider) { } }; locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener); } @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Brunel and move the camera //LatLng Brunel = new LatLng(51.532032, -0.465518); // mMap.addMarker(new MarkerOptions().position(Brunel).title("Marker in Brunel")); // mMap.moveCamera(CameraUpdateFactory.newLatLng(Brunel)); } }
[ "dinohossain1@gmail.com" ]
dinohossain1@gmail.com
c82712428f7bb75f42aa7c2ac9cf0cabef56468d
9f44e05b691f509d851629e5033c56ae71bc8708
/app/src/test/java/com/example/team_x/androidassistant/ExampleUnitTest.java
80cdcaf99028c0abe4a3d817a5f1fd5454ff15c9
[]
no_license
asarthaks/Droid-Assistant
3cf57bf1ea084805f6e5df68109ee8a0b7ed72e3
88f5317cd5031f17b75977919670e31608361647
refs/heads/master
2021-05-10T21:12:37.083463
2018-01-20T07:04:08
2018-01-20T07:04:08
118,218,349
0
0
null
null
null
null
UTF-8
Java
false
false
413
java
package com.example.team_x.androidassistant; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "asarthaks@gmail.com" ]
asarthaks@gmail.com
fe2ea60e40ba1f126891e05428ecd526d8629939
5c0ce294cbbb257eb89b86e730bb4da2a7b20110
/projectIA51.zip_expanded/src/main/generated-sources/sarl/fr/utbm/info/ia51/labwork1/environment/agent/EnvironmentEvent.java
fa17265c22c257af91248cf89123d9146f3356f8
[]
no_license
talanon/ia51
b9ec7bedabafb044e01d7eb26e3518cdedf78200
9a60bcd5f9fa8d8777ac12a847b49bfd1d7dd5f1
refs/heads/master
2021-01-13T05:54:23.374639
2017-06-21T07:18:30
2017-06-21T07:18:30
94,972,626
0
0
null
null
null
null
UTF-8
Java
false
false
3,143
java
/** * $Id$ * * Copyright (c) 2015-17 Stephane GALLAND. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * This program is free software; you can redistribute it and/or modify */ package fr.utbm.info.ia51.labwork1.environment.agent; import fr.utbm.info.ia51.framework.math.Point2i; import fr.utbm.info.ia51.labwork1.environment.maze.PacmanObject; import io.sarl.lang.annotation.SarlElementType; import io.sarl.lang.annotation.SarlSpecification; import io.sarl.lang.annotation.SyntheticMember; import java.util.EventObject; import java.util.Map; import java.util.UUID; import org.eclipse.xtext.xbase.lib.Pure; /** * Event that describes a change in the environment. * * @author $Author: sgalland$ * @version $FullVersion$ * @mavengroupid $GroupId$ * @mavenartifactid $ArtifactId$ */ @SarlSpecification("0.5") @SarlElementType(8) @SuppressWarnings("all") public class EnvironmentEvent extends EventObject { private final int time; private final int width; private final int height; private final Map<Point2i, PacmanObject> objects; public EnvironmentEvent(final UUID source, final int time, final int width, final int height, final Map<Point2i, PacmanObject> objects) { super(source); this.time = time; this.width = width; this.height = height; this.objects = objects; } @Pure public int getTime() { return this.time; } @Pure public int getWidth() { return this.width; } @Pure public int getHeight() { return this.height; } @Pure public Map<Point2i, PacmanObject> getObjects() { return this.objects; } @Override @Pure @SyntheticMember public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; EnvironmentEvent other = (EnvironmentEvent) obj; if (other.time != this.time) return false; if (other.width != this.width) return false; if (other.height != this.height) return false; return super.equals(obj); } @Override @Pure @SyntheticMember public int hashCode() { int result = super.hashCode(); final int prime = 31; result = prime * result + this.time; result = prime * result + this.width; result = prime * result + this.height; return result; } @SyntheticMember private final static long serialVersionUID = 3335358385L; }
[ "Léo" ]
Léo
727718f45b0ca2ff943116834d6d606ea1e57777
b65cc22c1a5f523520359359d6fee3f700b889aa
/baselibrary/src/main/java/com/wrs/gykjewm/baselibrary/iface/IPresenter.java
2b45957c790979bfadeac1492ebefd3e1362f672
[]
no_license
hxs2mr/Cashier-android
9f53f29106f935cf8aa42dfd337321dd0a0f52c2
00e82a7ba22570bdfd0b96e3d21be82ca9217eef
refs/heads/master
2020-05-17T08:01:42.556462
2019-04-26T09:00:46
2019-04-26T09:00:46
183,594,682
0
1
null
null
null
null
UTF-8
Java
false
false
448
java
package com.wrs.gykjewm.baselibrary.iface; import com.wrs.gykjewm.baselibrary.base.IBaseView; import io.reactivex.disposables.Disposable; /** * description: * <p> * author: josh.lu * created: 11/6/18 下午12:46 * email: 1113799552@qq.com * version: v1.0 */ public interface IPresenter<V extends IBaseView> { void attachView(V view); void detachView(); void addDisposable(Disposable disposable); void cancel(); }
[ "1363826037@qq.com" ]
1363826037@qq.com
11ddf549d5c003e8c6bfb5db79c3d779263ecfc2
de2da74024d81f4332e93553a627cd7702097e5b
/src/li260/InterfaceGraphique/JPanel/Menu/Menu.java
a9561caa2797c7842118348a68681c573b2bf0b2
[]
no_license
Kevcoq/li260-Course_Voiture
e0c7029cf8b64478095c81da06fed15e9ccc76bc
e038374e84a24678c4217f282c07a7512adb93f8
refs/heads/master
2016-09-06T12:16:05.858064
2013-06-09T10:36:31
2013-06-09T10:36:31
10,581,794
0
1
null
null
null
null
UTF-8
Java
false
false
1,408
java
package li260.InterfaceGraphique.JPanel.Menu; import javax.swing.JMenuBar; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemApp; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemChargement; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemCircuit; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemEdit; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemFichier; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemObs; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemSauvegarde; import li260.InterfaceGraphique.JPanel.Menu.Item.ItemVitesse; import li260.InterfaceGraphique.action.listener.Controleur; public class Menu { private Controleur cjp; public Menu(Controleur cjp) { this.cjp = cjp; } public JMenuBar jMenuBar() { ItemFichier fichier = new ItemFichier(cjp); ItemEdit edit = new ItemEdit(cjp); ItemCircuit circuit = new ItemCircuit(cjp); ItemChargement chargement = new ItemChargement(cjp); ItemSauvegarde sauvegarde = new ItemSauvegarde(cjp); ItemApp app = new ItemApp(cjp); ItemObs obs = new ItemObs(cjp); ItemVitesse vitesse = new ItemVitesse(cjp); JMenuBar menu = new JMenuBar(); menu.add(fichier.item()); menu.add(edit.item()); menu.add(circuit.item()); menu.add(chargement.item()); menu.add(sauvegarde.item()); menu.add(app.item()); menu.add(obs.item()); menu.add(vitesse.item()); return menu; } }
[ "kevcoqs@gmail.com" ]
kevcoqs@gmail.com
db0fbcbea220bd648f71f609c40f610364e5145f
fc9b223169f12ba80d782551f8b0b70d20e233d4
/src/test/java/day02/SingleSpartanTest.java
086f6b1d0c1275733bf3a93ce1b77a543cbd110b
[]
no_license
mstc90/RestAssured_B20
ac24979ec0485235b8b0e1cf26df420a2a9c1b54
8a9cf06da5f2ae029a7850aef6347df196d934af
refs/heads/master
2023-05-31T00:24:34.684063
2021-05-31T19:21:00
2021-05-31T19:21:00
320,114,667
0
0
null
null
null
null
UTF-8
Java
false
false
1,906
java
package day02; import io.restassured.http.ContentType; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import static io.restassured.RestAssured.* ; import static org.hamcrest.Matchers.* ; public class SingleSpartanTest { @BeforeAll public static void setUp(){ baseURI = "http://100.26.101.158:8000"; basePath = "/api" ; } @AfterAll public static void tearDown(){ reset(); } @DisplayName("Testing GET /spartans/{id} endpoint") @Test public void test1Spartan(){ // I want to get json result out // When i send Get request to /spartans/{id} endpoint // and expecting 200 status code given() .accept(ContentType.JSON). when() .get("/spartans/100"). then() .statusCode( is(200) ) .contentType(ContentType.JSON) ; // I want to make it obvious for // the value 100 is path variable|params // to uniquely identify the resource // this will whole Request URL o this test http://100.26.101.158:8000/api/spartans/100 given() .accept(ContentType.JSON) .pathParam("id", 100). when() .get("/spartans/{id}"). then() .assertThat() .statusCode( is(200) ) .contentType(ContentType.JSON) ; // This is the easiest one , same result given() .accept(ContentType.JSON). when() .get("/spartans/{id}", 100). then() .assertThat() .statusCode( is(200) ) .contentType(ContentType.JSON) ; } }
[ "Kalendar@2020" ]
Kalendar@2020
8cd58596b966de224bd1d36e0eae141d557f14ae
7af9c4b2c5d8cab61245a04b71d32b2d8d2257ee
/src/Codeup_1/codeup_1162.java
f6ffe1529ba8d3d39c4fcfffbdaff30d2b6ca9dd
[]
no_license
gao01java/CodeUpJava
a5f3d9285e0b0c7b52f5fea8c165b89e0cd57793
b5400d3b9665d570effdf5fd9aa2703dbbb56933
refs/heads/main
2023-06-26T10:41:00.606770
2021-07-17T12:13:48
2021-07-17T12:13:48
365,688,670
0
0
null
null
null
null
UTF-8
Java
false
false
415
java
package Codeup_1; import java.util.Scanner; public class codeup_1162 { public static void main(String[]args){ Scanner in=new Scanner(System.in); int a =in.nextInt(); int b=in.nextInt(); int c=in.nextInt(); int d=a-b+c; if(d % 10==0){ System.out.println("대박"); }else{ System.out.println("그럭저럭"); } } }
[ "60835579+gao01java@users.noreply.github.com" ]
60835579+gao01java@users.noreply.github.com
14573c015dc84dbc0361028e3c3bfbdc0c2b73b3
2c470020dd7c18210c2281b425381dbec44e538f
/nicefulfilmentprocess/testsrc/com/nice/fulfilmentprocess/test/actions/consignmentfulfilment/SendCancelMessage.java
3b30de65d8f93d7f921f33e834c2b2a188127b88
[]
no_license
fajruddinsk/nice
84397518b8ad6a4b64b5dcf16fb6896532ed9441
69cd96d9382d8e84184f9ac2a8c4428fc3bd5d00
refs/heads/master
2021-01-11T09:18:48.513403
2016-12-27T03:15:08
2016-12-27T03:15:08
77,399,415
0
1
null
null
null
null
UTF-8
Java
false
false
543
java
/* * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ package com.nice.fulfilmentprocess.test.actions.consignmentfulfilment; /** * */ public class SendCancelMessage extends AbstractTestConsActionTemp { //empty }
[ "Fajruddin Sk" ]
Fajruddin Sk
f7f41479913c29c34c33176ec46717839b51776d
d19a81be996d1f7cdaef3c20079a6ee0c4c92f61
/src/main/java/com/kk/nio/mysql/packhandler/console/Capabilities.java
2f52b1ed2a32bcdccdc7b8a0d137cc840034c341
[]
no_license
kkzfl22/NIO-kk
87df782179aed2b6108949d1b795d508d479f672
b7a2d85e4bd1daba835ed279cc5906f7cb1b4d24
refs/heads/master
2021-01-19T19:03:22.235197
2017-11-22T09:34:18
2017-11-22T09:34:18
83,712,449
0
0
null
null
null
null
UTF-8
Java
false
false
4,394
java
/* * Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software;Designed and Developed mainly by many Chinese * opensource volunteers. you can redistribute it and/or modify it under the * terms of the GNU General Public License version 2 only, as published by the * Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Any questions about this component can be directed to it's project Web address * https://code.google.com/p/opencloudb/. * */ package com.kk.nio.mysql.packhandler.console; /** * 处理能力标识定义 * * @author mycat */ public interface Capabilities { /** * server capabilities * * <pre> * server: 11110111 11111111 * client_cmd: 11 10100110 10000101 * client_jdbc:10 10100010 10001111 * * @see http://dev.mysql.com/doc/refman/5.1/en/mysql-real-connect.html * </pre> */ // new more secure passwords public static final int CLIENT_LONG_PASSWORD = 1; // Found instead of affected rows // 返回找到(匹配)的行数,而不是改变了的行数。 public static final int CLIENT_FOUND_ROWS = 2; // Get all column flags public static final int CLIENT_LONG_FLAG = 4; // One can specify db on connect public static final int CLIENT_CONNECT_WITH_DB = 8; // Don't allow database.table.column // 不允许“数据库名.表名.列名”这样的语法。这是对于ODBC的设置。 // 当使用这样的语法时解析器会产生一个错误,这对于一些ODBC的程序限制bug来说是有用的。 public static final int CLIENT_NO_SCHEMA = 16; // Can use compression protocol // 使用压缩协议 public static final int CLIENT_COMPRESS = 32; // Odbc client public static final int CLIENT_ODBC = 64; // Can use LOAD DATA LOCAL public static final int CLIENT_LOCAL_FILES = 128; // Ignore spaces before '(' // 允许在函数名后使用空格。所有函数名可以预留字。 public static final int CLIENT_IGNORE_SPACE = 256; // New 4.1 protocol This is an interactive client public static final int CLIENT_PROTOCOL_41 = 512; // This is an interactive client // 允许使用关闭连接之前的不活动交互超时的描述,而不是等待超时秒数。 // 客户端的会话等待超时变量变为交互超时变量。 public static final int CLIENT_INTERACTIVE = 1024; // Switch to SSL after handshake // 使用SSL。这个设置不应该被应用程序设置,他应该是在客户端库内部是设置的。 // 可以在调用mysql_real_connect()之前调用mysql_ssl_set()来代替设置。 public static final int CLIENT_SSL = 2048; // IGNORE sigpipes // 阻止客户端库安装一个SIGPIPE信号处理器。 // 这个可以用于当应用程序已经安装该处理器的时候避免与其发生冲突。 public static final int CLIENT_IGNORE_SIGPIPE = 4096; // Client knows about transactions public static final int CLIENT_TRANSACTIONS = 8192; // Old flag for 4.1 protocol public static final int CLIENT_RESERVED = 16384; // New 4.1 authentication public static final int CLIENT_SECURE_CONNECTION = 32768; // Enable/disable multi-stmt support // 通知服务器客户端可以发送多条语句(由分号分隔)。如果该标志为没有被设置,多条语句执行。 public static final int CLIENT_MULTI_STATEMENTS = 65536; // Enable/disable multi-results // 通知服务器客户端可以处理由多语句或者存储过程执行生成的多结果集。 // 当打开CLIENT_MULTI_STATEMENTS时,这个标志自动的被打开。 public static final int CLIENT_MULTI_RESULTS = 131072; }
[ "546064298@qq.com" ]
546064298@qq.com
6007d7746f7654b306e55d8cdd26faf39bd63e9c
4bb2c2ad2406246018773aa0651db8de90e6cad2
/src/com/beanie/stepsensors/DBAdapter.java
571c63078b862e179ee268432d5b7f6d4bb1afa6
[ "Apache-2.0" ]
permissive
sakanakun/Pedometer
f79c0232172960a77139f5a4ecd7bdca0d90aed6
7cee93614226fb0196096987eca1e4f38edf1140
refs/heads/master
2021-01-10T04:34:52.371688
2016-03-23T22:30:29
2016-03-23T22:30:29
54,597,069
0
0
null
null
null
null
UTF-8
Java
false
false
4,210
java
package com.beanie.stepsensors; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBAdapter { private static final String TAG = "DBAdapter"; //used for logging database version changes // Field Names: public static final String KEY_ROWID = "_id"; public static final String KEY_TASK = "task"; public static final String KEY_CALORIE = "calorie"; public static final String KEY_DATE = "date"; public static final String[] ALL_KEYS = new String[] {KEY_ROWID, KEY_TASK,KEY_CALORIE, KEY_DATE}; // Column Numbers for each Field Name: public static final int COL_ROWID = 0; public static final int COL_TASK = 1; public static final int COL_CALORIE = 1; public static final int COL_DATE = 3; // DataBase info: public static final String DATABASE_NAME = "dbToDo"; public static final String DATABASE_TABLE = "mainToDo"; public static final int DATABASE_VERSION = 3; // The version number must be incremented each time a change to DB structure occurs. //SQL statement to create database private static final String DATABASE_CREATE_SQL = "CREATE TABLE " + DATABASE_TABLE + " (" + KEY_ROWID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + KEY_TASK + " TEXT NOT NULL, " + KEY_CALORIE + " TEXT NOT NULL, " + KEY_DATE + " TEXT" + ");"; private final Context context; private DatabaseHelper myDBHelper; private SQLiteDatabase db; public DBAdapter(Context ctx) { this.context = ctx; myDBHelper = new DatabaseHelper(context); } // Open the database connection. public DBAdapter open() { db = myDBHelper.getWritableDatabase(); return this; } // Close the database connection. public void close() { myDBHelper.close(); } // Add a new set of values to be inserted into the database. public long insertRow(String task,String calorie, String date) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_TASK, task); initialValues.put(KEY_CALORIE, calorie); initialValues.put(KEY_DATE, date); // Insert the data into the database. return db.insert(DATABASE_TABLE, null, initialValues); } // Delete a row from the database, by rowId (primary key) public boolean deleteRow(long rowId) { String where = KEY_ROWID + "=" + rowId; return db.delete(DATABASE_TABLE, where, null) != 0; } public void deleteAll() { Cursor c = getAllRows(); long rowId = c.getColumnIndexOrThrow(KEY_ROWID); if (c.moveToFirst()) { do { deleteRow(c.getLong((int) rowId)); } while (c.moveToNext()); } c.close(); } // Return all data in the database. public Cursor getAllRows() { String where = null; Cursor c = db.query(true, DATABASE_TABLE, ALL_KEYS, where, null, null, null, null, null); if (c != null) { c.moveToFirst(); } return c; } // Get a specific row (by rowId) public Cursor getRow(long rowId) { String where = KEY_ROWID + "=" + rowId; Cursor c = db.query(true, DATABASE_TABLE, ALL_KEYS, where, null, null, null, null, null); if (c != null) { c.moveToFirst(); } return c; } // Change an existing row to be equal to new data. public boolean updateRow(long rowId, String task, String calorie, String date) { String where = KEY_ROWID + "=" + rowId; ContentValues newValues = new ContentValues(); newValues.put(KEY_TASK, task); newValues.put(KEY_CALORIE, calorie); newValues.put(KEY_DATE, date); // Insert it into the database. return db.update(DATABASE_TABLE, newValues, where, null) != 0; } private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase _db) { _db.execSQL(DATABASE_CREATE_SQL); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub } } }
[ "cheng_zhou0307@hotmail.com" ]
cheng_zhou0307@hotmail.com
6fc0a77fa88d03fd7e8a5420eb3c9c3fff046b38
0be7554bea7aa755081eeffdfa1d85b5c962bb1c
/xbj/src/Leetcode142.java
858baebd2177854bbb67d652ccfa4523273e78ee
[]
no_license
a7217107/Leetcode
3669cb3a74060bc23ef9ca037a5b1fae9334bc18
088f4eaf0ad9184781e1cd6b1dcd9ea2ad4147a3
refs/heads/master
2023-03-04T21:22:39.695154
2021-01-27T09:30:29
2021-01-27T09:30:29
277,710,195
0
0
null
2020-12-21T03:05:46
2020-07-07T03:47:15
Java
UTF-8
Java
false
false
1,689
java
/** * 给定一个链表,返回链表开始入环的第一个节点。 如果链表无环,则返回 null。 * <p> * 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。 * <p> * 说明:不允许修改给定的链表。 * <p> *   * <p> * 示例 1: * <p> * 输入:head = [3,2,0,-4], pos = 1 * 输出:tail connects to node index 1 * 解释:链表中有一个环,其尾部连接到第二个节点。 * <p> * <p> * 示例 2: * <p> * 输入:head = [1,2], pos = 0 * 输出:tail connects to node index 0 * 解释:链表中有一个环,其尾部连接到第一个节点。 * <p> * <p> * 示例 3: * <p> * 输入:head = [1], pos = -1 * 输出:no cycle * 解释:链表中没有环。 * <p> * <p> *   * <p> * 进阶: * 你是否可以不用额外空间解决此题? * <p> * 来源:力扣(LeetCode) * 链接:https://leetcode-cn.com/problems/linked-list-cycle-ii * 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 */ public class Leetcode142 { public ListNode detectCycle(ListNode head) { if (head == null || head.next == null) return null; ListNode fast = head; ListNode slow = head; do { fast = fast.next.next; slow = slow.next; } while (fast != null && fast.next != null && fast != slow); if (fast != slow) return null; while (head != fast) { head = head.next; fast = fast.next; } return fast; } }
[ "a913377355@qq.com" ]
a913377355@qq.com
f601f2e1802870217b3b394b2abae52263134607
a44d755f191d0aa1917e1d7ee62b2ecfc047c8e8
/src/automata/net/cell_lang/SlaveObjColumnUpdater.java
205eb6f84014e0a681345285c4cfedfdf97e8c2c
[ "MIT" ]
permissive
cell-lang/java
37d6d5c82ab91a59ba7e5ee7ecc251ed2551827f
3c22a68c931422d45d6b020e09e040647ff453dd
refs/heads/master
2021-12-09T12:50:35.473719
2021-11-11T18:39:37
2021-11-11T18:39:37
123,011,459
1
0
null
null
null
null
UTF-8
Java
false
false
8,589
java
package net.cell_lang; final class SlaveObjColumnUpdater { int deleteCount = 0; int[] deleteIdxs = Array.emptyIntArray; boolean deletesSorted = false; int insertCount = 0; long[] insertSurrs = Array.emptyLongArray; Obj[] insertValues = Array.emptyObjArray; boolean insertsSorted = false; int updateCount = 0; long[] updateSurrs = Array.emptyLongArray; Obj[] updateValues = Array.emptyObjArray; boolean updatesSorted; String relvarName; ObjColumn column; MasterBinaryTable master; MasterBinaryTableUpdater masterUpdater; ValueStoreUpdater store1, store2; ////////////////////////////////////////////////////////////////////////////// private static long pack(int arg1, int arg2) { return Miscellanea.pack(arg1, arg2); } public static int arg1(long slot) { return Miscellanea.low(slot); } public static int arg2(long slot) { return Miscellanea.high(slot); } ////////////////////////////////////////////////////////////////////////////// SlaveObjColumnUpdater(String relvarName, ObjColumn column, MasterBinaryTableUpdater master, ValueStoreUpdater store1, ValueStoreUpdater store2) { this.relvarName = relvarName; this.column = column; this.master = master.table; this.masterUpdater = master; this.store1 = store1; this.store2 = store2; } ////////////////////////////////////////////////////////////////////////////// public void clear() { ObjColumn.Iter it = column.getIter(); while (!it.done()) { delete(it.getIdx()); it.next(); } } public void delete1(int arg1) { //## THIS COULD BE MADE MORE EFFICIENT BY RETRIEVING JUST THE SURROGATES INSTEAD OF THE SECOND ARGUMENTS int[] arg2s = master.restrict1(arg1); for (int i=0 ; i < arg2s.length ; i++) delete12(arg1, arg2s[i]); } public void delete2(int arg2) { //## THIS COULD BE MADE MORE EFFICIENT BY RETRIEVING JUT THE SURROGATES INSTEAD OF THE FIRST ARGUMENTS int[] arg1s = master.restrict2(arg2); for (int i=0 ; i < arg1s.length ; i++) delete12(arg1s[i], arg2); } public void delete12(int arg1, int arg2) { int surr = master.surrogate(arg1, arg2); if (surr != 0xFFFFFFFF) delete(surr); } private void delete(int index) { deleteIdxs = Array.append(deleteIdxs, deleteCount++, index); } public void insert(int arg1, int arg2, Obj value) { insertSurrs = Array.append(insertSurrs, insertCount, pack(arg1, arg2)); insertValues = Array.append(insertValues, insertCount++, value); } public void update(int arg1, int arg2, Obj value) { updateSurrs = Array.append(updateSurrs, updateCount, pack(arg1, arg2)); updateValues = Array.append(updateValues, updateCount++, value); } public void apply() { for (int i=0 ; i < deleteCount ; i++) { int index = deleteIdxs[i]; column.delete(index); } for (int i=0 ; i < updateCount ; i++) { long slot = updateSurrs[i]; int arg1 = arg1(slot); int arg2 = arg2(slot); Obj value = updateValues[i]; int index = master.surrogate(arg1, arg2); column.update(index, value); } for (int i=0 ; i < insertCount ; i++) { long slot = insertSurrs[i]; int arg1 = arg1(slot); int arg2 = arg2(slot); Obj value = insertValues[i]; int index = master.surrogate(arg1, arg2); column.insert(index, value); } } ////////////////////////////////////////////////////////////////////////////// public void reset() { deleteCount = 0; insertCount = 0; updateCount = 0; deletesSorted = false; insertsSorted = false; updatesSorted = false; if (deleteIdxs.length > 2048) deleteIdxs = Array.emptyIntArray; if (insertSurrs.length > 2048) { insertSurrs = Array.emptyLongArray; insertValues = Array.emptyObjArray; } if (updateSurrs.length > 2048) { updateSurrs = Array.emptyLongArray; updateValues = Array.emptyObjArray; } } ////////////////////////////////////////////////////////////////////////////// boolean wasDeleted(int idx) { if (deleteCount > 32) { if (!deletesSorted) { Array.sort(deleteIdxs, deleteCount); deletesSorted = true; } return Array.sortedArrayContains(deleteIdxs, deleteCount, idx); } else { for (int i=0 ; i < deleteCount ; i++) if (deleteIdxs[i] == idx) return true; return false; } } boolean wasUpdated(long packedArgs) { Miscellanea._assert(updateCount <= 1 || updatesSorted); return Array.sortedArrayContains(updateSurrs, updateCount, packedArgs); } boolean contains12(int arg1, int arg2) { long packedArgs = pack(arg1, arg2); if (insertCount > 32) { if (!insertsSorted) { LongWithObjSorter.sort(insertSurrs, insertCount, insertValues); insertsSorted = true; } if (Array.sortedArrayContains(insertSurrs, insertCount, packedArgs)) return true; } else { for (int i=0 ; i < insertCount ; i++) if (insertSurrs[i] == packedArgs) return true; } if (updateCount > 32) { if (!updatesSorted) { LongWithObjSorter.sort(updateSurrs, updateCount, updateValues); updatesSorted = true; } if (Array.sortedArrayContains(updateSurrs, updateCount, packedArgs)) return true; } else { for (int i=0 ; i < updateCount ; i++) if (updateSurrs[i] == packedArgs) return true; } int assocSurr = master.surrogate(arg1, arg2); if (assocSurr == 0xFFFFFFFF || wasDeleted(assocSurr)) return false; return column.contains1(assocSurr); } ////////////////////////////////////////////////////////////////////////////// public void checkKey_12() { if (updateCount > 0) { if (!updatesSorted) { LongWithObjSorter.sort(updateSurrs, updateCount, updateValues); updatesSorted = true; } long prevPackedArgs = updateSurrs[0]; for (int i=1 ; i < updateCount ; i++) { long packedArgs = updateSurrs[i]; if (packedArgs == prevPackedArgs) { Obj obj = updateValues[i]; Obj prevObj = updateValues[i - 1]; if (!obj.isEq(prevObj)) throw cols12KeyViolationException(arg1(packedArgs), arg2(packedArgs), obj, prevObj, true); } prevPackedArgs = packedArgs; } } if (insertCount > 0) { if (!insertsSorted) { LongWithObjSorter.sort(insertSurrs, insertCount, insertValues); insertsSorted = true; } long prevPackedArgs = -1; for (int i=0 ; i < insertCount ; i++) { long packedArgs = insertSurrs[i]; if (i > 0 && packedArgs == prevPackedArgs) { Obj obj = insertValues[i]; Obj prevObj = insertValues[i - 1]; if (!obj.isEq(prevObj)) throw cols12KeyViolationException(arg1(packedArgs), arg2(packedArgs), obj, prevObj, true); } int arg1 = arg1(packedArgs); int arg2 = arg2(packedArgs); int assocSurr = master.surrogate(arg1, arg2); if (assocSurr != 0xFFFFFFFF && column.contains1(assocSurr) && !wasDeleted(assocSurr) && !wasUpdated(packedArgs)) { Obj newValue = insertValues[i]; Obj currValue = column.lookup(assocSurr); if (!newValue.isEq(currValue)) throw cols12KeyViolationException(arg1, arg2, currValue, newValue, false); } prevPackedArgs = packedArgs; } } if (insertCount > 0 & updateCount > 0) { for (int i=0 ; i < insertCount ; i++) { long packedArgs = insertSurrs[i]; int idx = Array.indexFirst(updateSurrs, updateCount, packedArgs); if (idx != -1) { Obj insertValue = insertValues[i]; Obj updateValue = updateValues[idx]; if (!insertValue.isEq(updateValue)) throw cols12KeyViolationException(arg1(packedArgs), arg2(packedArgs), insertValue, updateValue, true); } } } } ////////////////////////////////////////////////////////////////////////////// private KeyViolationException cols12KeyViolationException(int arg1, int arg2, Obj obj3, Obj otherObj3, boolean betweenNew) { Obj obj1 = masterUpdater.store1.surrToValue(arg1); Obj obj2 = masterUpdater.store2.surrToValue(arg2); Obj[] tuple1 = new Obj[] {obj1, obj2, obj3}; Obj[] tuple2 = new Obj[] {obj1, obj2, otherObj3}; return new KeyViolationException(relvarName, KeyViolationException.key_12, tuple1, tuple2, betweenNew); } }
[ "cell.lang.dev@gmail.com" ]
cell.lang.dev@gmail.com
8fec0e3e8aea240483585cd2061227bf35da5498
7eafc6d93781d0e31bb9479cd8b36d3ae7567f44
/org.osate.aadl2/src/org/osate/aadl2/BusAccess.java
d1b4bd86117df54a58b075e5916718bfe434bfe6
[]
no_license
gmcahill/osate2-core
024e10c17ade2cd0e0e11b58bd15e5df29736e5d
a0995e2ae5e958f73d1a1e28e788287f8a5c1192
refs/heads/master
2021-01-17T04:23:42.662623
2011-11-09T15:18:26
2011-11-09T15:18:26
2,180,744
1
0
null
null
null
null
UTF-8
Java
false
false
4,195
java
/** * <copyright> * Copyright 2008 by Carnegie Mellon University, all rights reserved. * * Use of the Open Source AADL Tool Environment (OSATE) is subject to the terms of the license set forth * at http://www.eclipse.org/org/documents/epl-v10.html. * * NO WARRANTY * * ANY INFORMATION, MATERIALS, SERVICES, INTELLECTUAL PROPERTY OR OTHER PROPERTY OR RIGHTS GRANTED OR PROVIDED BY * CARNEGIE MELLON UNIVERSITY PURSUANT TO THIS LICENSE (HEREINAFTER THE "DELIVERABLES") ARE ON AN "AS-IS" BASIS. * CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED AS TO ANY MATTER INCLUDING, * BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, INFORMATIONAL CONTENT, * NONINFRINGEMENT, OR ERROR-FREE OPERATION. CARNEGIE MELLON UNIVERSITY SHALL NOT BE LIABLE FOR INDIRECT, SPECIAL OR * CONSEQUENTIAL DAMAGES, SUCH AS LOSS OF PROFITS OR INABILITY TO USE SAID INTELLECTUAL PROPERTY, UNDER THIS LICENSE, * REGARDLESS OF WHETHER SUCH PARTY WAS AWARE OF THE POSSIBILITY OF SUCH DAMAGES. LICENSEE AGREES THAT IT WILL NOT * MAKE ANY WARRANTY ON BEHALF OF CARNEGIE MELLON UNIVERSITY, EXPRESS OR IMPLIED, TO ANY PERSON CONCERNING THE * APPLICATION OF OR THE RESULTS TO BE OBTAINED WITH THE DELIVERABLES UNDER THIS LICENSE. * * Licensee hereby agrees to defend, indemnify, and hold harmless Carnegie Mellon University, its trustees, officers, * employees, and agents from all claims or demands made against them (and any related losses, expenses, or * attorney's fees) arising out of, or relating to Licensee's and/or its sub licensees' negligent use or willful * misuse of or negligent conduct or willful misconduct regarding the Software, facilities, or other rights or * assistance granted by Carnegie Mellon University under this License, including, but not limited to, any claims of * product liability, personal injury, death, damage to property, or violation of any laws or regulations. * * Carnegie Mellon University Software Engineering Institute authored documents are sponsored by the U.S. Department * of Defense under Contract F19628-00-C-0003. Carnegie Mellon University retains copyrights in all material produced * under this contract. The U.S. Government retains a non-exclusive, royalty-free license to publish or reproduce these * documents, or allow others to do so, for U.S. Government purposes only pursuant to the copyright license * under the contract clause at 252.227.7013. * </copyright> * * $Id: BusAccess.java,v 1.9 2009-06-04 14:59:49 lwrage Exp $ */ package org.osate.aadl2; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Bus Access</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link org.osate.aadl2.BusAccess#getBusFeatureClassifier <em>Bus Feature Classifier</em>}</li> * </ul> * </p> * * @see org.osate.aadl2.Aadl2Package#getBusAccess() * @model * @generated */ public interface BusAccess extends Access { /** * Returns the value of the '<em><b>Bus Feature Classifier</b></em>' reference. * <p> * This feature subsets the following features: * <ul> * <li>'{@link org.osate.aadl2.Feature#getFeatureClassifier() <em>Feature Classifier</em>}'</li> * </ul> * </p> * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Bus Feature Classifier</em>' reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Bus Feature Classifier</em>' reference. * @see #setBusFeatureClassifier(BusSubcomponentType) * @see org.osate.aadl2.Aadl2Package#getBusAccess_BusFeatureClassifier() * @model ordered="false" * @generated */ BusSubcomponentType getBusFeatureClassifier(); /** * Sets the value of the '{@link org.osate.aadl2.BusAccess#getBusFeatureClassifier <em>Bus Feature Classifier</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Bus Feature Classifier</em>' reference. * @see #getBusFeatureClassifier() * @generated */ void setBusFeatureClassifier(BusSubcomponentType value); } // BusAccess
[ "lutz.wrage@gmail.com" ]
lutz.wrage@gmail.com
bfb22cf99f13de8310ed3baba452734bc66c21f7
ef87f1c3398d033e2e880f8fdfb8c2410e79f553
/abce36/src/main/java/com/fastcode/abce36/restcontrollers/core/FilmController.java
f791b524ac6a40db4899410153960bf48792c505
[]
no_license
musman013/musman013-sampleApplication-1
b40662ad1b3f78b2898381834012dd2bb17ed16a
493966ae8e5aa8666b298f7c302679bea4be9625
refs/heads/master
2023-02-08T16:28:42.116109
2021-01-01T08:46:00
2021-01-01T08:46:00
325,945,469
0
0
null
null
null
null
UTF-8
Java
false
false
10,529
java
package com.fastcode.abce36.restcontrollers.core; import lombok.NonNull; import lombok.RequiredArgsConstructor; import javax.persistence.EntityNotFoundException; import javax.validation.Valid; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.core.env.Environment; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import com.fastcode.abce36.commons.search.SearchCriteria; import com.fastcode.abce36.commons.search.SearchUtils; import com.fastcode.abce36.commons.search.OffsetBasedPageRequest; import com.fastcode.abce36.application.core.film.IFilmAppService; import com.fastcode.abce36.application.core.film.dto.*; import com.fastcode.abce36.application.core.filmactor.IFilmActorAppService; import com.fastcode.abce36.application.core.filmactor.dto.FindFilmActorByIdOutput; import com.fastcode.abce36.application.core.filmcategory.IFilmCategoryAppService; import com.fastcode.abce36.application.core.filmcategory.dto.FindFilmCategoryByIdOutput; import com.fastcode.abce36.application.core.inventory.IInventoryAppService; import com.fastcode.abce36.application.core.inventory.dto.FindInventoryByIdOutput; import com.fastcode.abce36.application.core.language.ILanguageAppService; import java.util.*; import java.time.*; import com.fastcode.abce36.commons.logging.LoggingHelper; @RestController @RequestMapping("/film") @RequiredArgsConstructor public class FilmController { @Qualifier("filmAppService") @NonNull protected final IFilmAppService _filmAppService; @Qualifier("filmActorAppService") @NonNull protected final IFilmActorAppService _filmActorAppService; @Qualifier("filmCategoryAppService") @NonNull protected final IFilmCategoryAppService _filmCategoryAppService; @Qualifier("inventoryAppService") @NonNull protected final IInventoryAppService _inventoryAppService; @Qualifier("languageAppService") @NonNull protected final ILanguageAppService _languageAppService; @NonNull protected final LoggingHelper logHelper; @NonNull protected final Environment env; @PreAuthorize("hasAnyAuthority('FILMENTITY_CREATE')") @RequestMapping(method = RequestMethod.POST, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity<CreateFilmOutput> create(@RequestBody @Valid CreateFilmInput film) { CreateFilmOutput output=_filmAppService.create(film); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("No record found"))); return new ResponseEntity(output, HttpStatus.OK); } // ------------ Delete film ------------ @PreAuthorize("hasAnyAuthority('FILMENTITY_DELETE')") @ResponseStatus(value = HttpStatus.NO_CONTENT) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, consumes = {"application/json"}) public void delete(@PathVariable String id) { FindFilmByIdOutput output = _filmAppService.findById(Integer.valueOf(id)); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("There does not exist a film with a id=%s", id))); _filmAppService.delete(Integer.valueOf(id)); } // ------------ Update film ------------ @PreAuthorize("hasAnyAuthority('FILMENTITY_UPDATE')") @RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity<UpdateFilmOutput> update(@PathVariable String id, @RequestBody @Valid UpdateFilmInput film) { FindFilmByIdOutput currentFilm = _filmAppService.findById(Integer.valueOf(id)); Optional.ofNullable(currentFilm).orElseThrow(() -> new EntityNotFoundException(String.format("Unable to update. Film with id=%s not found.", id))); film.setVersiono(currentFilm.getVersiono()); UpdateFilmOutput output = _filmAppService.update(Integer.valueOf(id),film); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("No record found"))); return new ResponseEntity(output, HttpStatus.OK); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(value = "/{id}", method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity<FindFilmByIdOutput> findById(@PathVariable String id) { FindFilmByIdOutput output = _filmAppService.findById(Integer.valueOf(id)); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("Not found"))); return new ResponseEntity(output, HttpStatus.OK); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity find(@RequestParam(value="search", required=false) String search, @RequestParam(value = "offset", required=false) String offset, @RequestParam(value = "limit", required=false) String limit, Sort sort) throws Exception { if (offset == null) { offset = env.getProperty("fastCode.offset.default"); } if (limit == null) { limit = env.getProperty("fastCode.limit.default"); } if(sort == null || sort.isEmpty()) { sort = Sort.by(Sort.Direction.ASC, "filmId"); } Pageable Pageable = new OffsetBasedPageRequest(Integer.parseInt(offset), Integer.parseInt(limit), sort); SearchCriteria searchCriteria = SearchUtils.generateSearchCriteriaObject(search); return ResponseEntity.ok(_filmAppService.find(searchCriteria,Pageable)); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(value = "/{id}/filmActors", method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity getFilmActors(@PathVariable String id, @RequestParam(value="search", required=false) String search, @RequestParam(value = "offset", required=false) String offset, @RequestParam(value = "limit", required=false) String limit, Sort sort)throws Exception { if (offset == null) { offset = env.getProperty("fastCode.offset.default"); } if (limit == null) { limit = env.getProperty("fastCode.limit.default"); } if(sort == null || sort.isEmpty()) { sort = Sort.by(Sort.Direction.ASC, "actorId"); } Pageable pageable = new OffsetBasedPageRequest(Integer.parseInt(offset), Integer.parseInt(limit), sort); SearchCriteria searchCriteria = SearchUtils.generateSearchCriteriaObject(search); Map<String,String> joinColDetails=_filmAppService.parseFilmActorsJoinColumn(id); Optional.ofNullable(joinColDetails).orElseThrow(() -> new EntityNotFoundException(String.format("Invalid join column"))); searchCriteria.setJoinColumns(joinColDetails); List<FindFilmActorByIdOutput> output = _filmActorAppService.find(searchCriteria,pageable); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("Not found"))); return new ResponseEntity(output, HttpStatus.OK); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(value = "/{id}/filmCategorys", method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity getFilmCategorys(@PathVariable String id, @RequestParam(value="search", required=false) String search, @RequestParam(value = "offset", required=false) String offset, @RequestParam(value = "limit", required=false) String limit, Sort sort)throws Exception { if (offset == null) { offset = env.getProperty("fastCode.offset.default"); } if (limit == null) { limit = env.getProperty("fastCode.limit.default"); } if(sort == null || sort.isEmpty()) { sort = Sort.by(Sort.Direction.ASC, "categoryId"); } Pageable pageable = new OffsetBasedPageRequest(Integer.parseInt(offset), Integer.parseInt(limit), sort); SearchCriteria searchCriteria = SearchUtils.generateSearchCriteriaObject(search); Map<String,String> joinColDetails=_filmAppService.parseFilmCategorysJoinColumn(id); Optional.ofNullable(joinColDetails).orElseThrow(() -> new EntityNotFoundException(String.format("Invalid join column"))); searchCriteria.setJoinColumns(joinColDetails); List<FindFilmCategoryByIdOutput> output = _filmCategoryAppService.find(searchCriteria,pageable); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("Not found"))); return new ResponseEntity(output, HttpStatus.OK); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(value = "/{id}/inventorys", method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity getInventorys(@PathVariable String id, @RequestParam(value="search", required=false) String search, @RequestParam(value = "offset", required=false) String offset, @RequestParam(value = "limit", required=false) String limit, Sort sort)throws Exception { if (offset == null) { offset = env.getProperty("fastCode.offset.default"); } if (limit == null) { limit = env.getProperty("fastCode.limit.default"); } if(sort == null || sort.isEmpty()) { sort = Sort.by(Sort.Direction.ASC, "inventoryId"); } Pageable pageable = new OffsetBasedPageRequest(Integer.parseInt(offset), Integer.parseInt(limit), sort); SearchCriteria searchCriteria = SearchUtils.generateSearchCriteriaObject(search); Map<String,String> joinColDetails=_filmAppService.parseInventorysJoinColumn(id); Optional.ofNullable(joinColDetails).orElseThrow(() -> new EntityNotFoundException(String.format("Invalid join column"))); searchCriteria.setJoinColumns(joinColDetails); List<FindInventoryByIdOutput> output = _inventoryAppService.find(searchCriteria,pageable); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("Not found"))); return new ResponseEntity(output, HttpStatus.OK); } @PreAuthorize("hasAnyAuthority('FILMENTITY_READ')") @RequestMapping(value = "/{id}/language", method = RequestMethod.GET, consumes = {"application/json"}, produces = {"application/json"}) public ResponseEntity<GetLanguageOutput> getLanguage(@PathVariable String id) { GetLanguageOutput output= _filmAppService.getLanguage(Integer.valueOf(id)); Optional.ofNullable(output).orElseThrow(() -> new EntityNotFoundException(String.format("Not found"))); return new ResponseEntity(output, HttpStatus.OK); } }
[ "info@nfinityllc.com" ]
info@nfinityllc.com
c99d5aecd66b2723f19efcfd04387822ef5cc3a2
b70550041aa9ffda577cc320141376a80cbf316f
/task_lagerApi/src/main/java/lagerApi/LagerApiApplication.java
8427f34884131aadabdacc81e2ce4ed6f10cd9ae
[]
no_license
Changzhouli3309/task_Lager_API
f7671481736a5e5893707cb9750e51287c1be443
af2b80f58312e5e0de400222d5d5a39f5358b94c
refs/heads/master
2023-04-05T06:00:10.319555
2021-04-13T11:07:43
2021-04-13T11:07:43
357,338,863
0
0
null
null
null
null
UTF-8
Java
false
false
305
java
package lagerApi; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class LagerApiApplication { public static void main(String[] args) { SpringApplication.run(LagerApiApplication.class, args); } }
[ "45784976+Changzhouli3309@users.noreply.github.com" ]
45784976+Changzhouli3309@users.noreply.github.com
771d48087561ec3cb02b764f761e7a2f852e4573
0af546f83be68c9f879554effaf907b0225f5854
/app/src/main/java/com/trainwithme/fragments/MainFragment.java
881b0ad78da2bee2bafac7f32167b7fc17f9bbb8
[]
no_license
mrugacz95/TrainWithMe
a71ae30e63225d123bf19918f299f9aa2bb11ac3
1a1b3ebd68ff4d7f2e8713beb81cab87fdf6d4ef
refs/heads/master
2020-06-19T16:35:12.749722
2016-11-27T16:23:00
2016-11-27T16:23:00
74,899,418
0
0
null
null
null
null
UTF-8
Java
false
false
3,004
java
package com.trainwithme.fragments; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import com.trainwithme.R; import com.trainwithme.activities.MainActivity; import com.trainwithme.adapters.PeopleAdapter; import com.trainwithme.adapters.TravelAdapter; import com.trainwithme.models.CurrentTravel; import com.trainwithme.models.Travel; import com.trainwithme.network.ApiManger; import org.joda.time.DateTime; import java.util.ArrayList; import java.util.List; import butterknife.BindView; import butterknife.OnClick; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; /** * A simple {@link Fragment} subclass. */ public class MainFragment extends BaseFragment { @BindView(R.id.rv_planned_travels) RecyclerView plannedTravelsRecyclerView; ApiManger.ApiInterface apiInterface = ApiManger.getInstance(getContext()); public MainFragment() {} @Override int getFragmentLayoutId() { return R.layout.fragment_main; } @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); getData(); } public void getData(){ Call<List<Travel>> call = apiInterface.getTravels(); call.enqueue(new Callback<List<Travel>>() { @Override public void onResponse(Call<List<Travel>> call, Response<List<Travel>> response) { LinearLayoutManager llm = new LinearLayoutManager(getContext()); llm.setOrientation(LinearLayoutManager.VERTICAL); plannedTravelsRecyclerView.setLayoutManager(llm); plannedTravelsRecyclerView.setAdapter(new TravelAdapter(response.body(),R.layout.item_planned_travel,getContext())); } @Override public void onFailure(Call<List<Travel>> call, Throwable t) { } }); } @OnClick(R.id.bt_find_people) void findPeople(){ Call<CurrentTravel> call = apiInterface.getCurrentTravel(); call.enqueue(new Callback<CurrentTravel>() { @Override public void onResponse(Call<CurrentTravel> call, Response<CurrentTravel> response) { if(response.code()==400 || response.code()==404){ ((MainActivity)getContext()).addFragmentToBackStack(new FormFragment()); } else if(response.code()==200) ((MainActivity)getContext()).addFragmentToBackStack(new PeopleFragment()); } @Override public void onFailure(Call<CurrentTravel> call, Throwable t) { } }); } @OnClick(R.id.bt_plan_travel) public void planTravel(){ ((MainActivity)getContext()).addFragmentToBackStack(new FormFragment()); } }
[ "ITgen4ever" ]
ITgen4ever
b7363e8a736163eb52dc11dabfefb9ef9a7795cd
f90b549183ff393db641581d698c31ba83d67075
/src/test/java/br/inatel/quotationmanagement/dto/OperationDtoTest.java
03b3a91f15ca43945af357199392ffa85bcdd2dd
[]
no_license
LuanQBarbosa/stock-quotation-management
adce8b7d8b02be22cd323228a80e30805de71040
812ccc93f67689b351e21f9eea5385e14ef015db
refs/heads/main
2023-08-01T05:53:22.153388
2021-09-25T17:58:24
2021-09-25T17:58:24
394,587,829
0
0
null
null
null
null
UTF-8
Java
false
false
1,861
java
package br.inatel.quotationmanagement.dto; import java.math.BigDecimal; import java.time.LocalDate; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import br.inatel.quotationmanagement.controller.dto.OperationDto; import br.inatel.quotationmanagement.model.Operation; import br.inatel.quotationmanagement.model.Quote; import org.junit.Assert; public class OperationDtoTest { private Operation operation; private Map<String, String> quotes; private OperationDto operationDto; @BeforeEach void beforeEach() { String stockId = "petr4"; this.operation = new Operation(); operation.setStockId(stockId); quotes = new HashMap<>(); quotes.put("2019-01-01", "10"); quotes.put("2019-01-02", "11"); List<Quote> quotesList = new ArrayList<>(); for (Map.Entry<String, String> quoteEntry : this.quotes.entrySet()) { Quote quote = new Quote(); quote.setDate(LocalDate.parse(quoteEntry.getKey())); quote.setValue(new BigDecimal(quoteEntry.getValue())); quote.setOperation(this.operation); quotesList.add(quote); } operation.setQuotes(quotesList); } @Test void shouldCreateCorrectDto() { this.operationDto = new OperationDto(this.operation); Assert.assertEquals(this.operationDto.getId(), this.operation.getId()); Assert.assertEquals(this.operationDto.getStockId(), this.operation.getStockId()); Assert.assertTrue(this.operationDto.getQuotes().equals(this.quotes)); } @Test void shouldGenerateSameLengthList() { List<Operation> operationList = new ArrayList<>(); operationList.add(this.operation); List<OperationDto> operationDtoList = OperationDto.convertToList(operationList); Assert.assertEquals(operationList.size(), operationDtoList.size()); } }
[ "luanqbarbosa@gmail.com" ]
luanqbarbosa@gmail.com
b312a533edaf475d22f36802c4dfc8a6ec60a3e7
7aafb20e47b66f309e8331c2561972fb12d71d9e
/src/main/java/io/rapidw/wheeltimer/TimerException.java
6f2f5e2dbfa5f40e7a83fcd8ca1267cca94ae6fc
[ "Apache-2.0" ]
permissive
rapidw/wheel-timer
8505837d2f6d31300ad0b522427ed1f8232fa3d7
99f7b8e9445be989b082206d93f0bd1f8bbb1b69
refs/heads/master
2023-07-24T11:23:26.439565
2023-07-09T04:09:53
2023-07-09T04:09:53
332,701,194
0
1
null
null
null
null
UTF-8
Java
false
false
162
java
package io.rapidw.wheeltimer; public class TimerException extends RuntimeException { public TimerException(String message) { super(message); } }
[ "yyz139@gmail.com" ]
yyz139@gmail.com
79ba06d5667fe498d35acbcad473fab967c6a22d
59a6f0fd30c27745b1b91721c0620e4f80672589
/src/org/pentaho/pms/ui/concept/editor/ConceptModificationEvent.java
17e6082b9fd55286fe1930b418f974e7f01c1fe0
[]
no_license
sivasakthic/pentaho-metadata-editor
26e7e5757130172503ce8df4c5c74c49e1074e6c
522713345d7a5eeb71f52cdccd86b5a67144ef90
refs/heads/master
2021-01-19T23:13:22.106281
2017-04-07T18:12:06
2017-04-07T18:12:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,069
java
/*! * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software * Foundation. * * You should have received a copy of the GNU Lesser General Public License along with this * program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * or from the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * Copyright (c) 2002-2013 Pentaho Corporation.. All rights reserved. */ package org.pentaho.pms.ui.concept.editor; import java.util.EventObject; import org.apache.commons.lang.builder.ReflectionToStringBuilder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * An event fired from the concept model when modifications are made. * @author mlowery * @see IConceptModificationListener */ public abstract class ConceptModificationEvent extends EventObject { // ~ Static fields/initializers ====================================================================================== private static final Log logger = LogFactory.getLog(ConceptModificationEvent.class); private static final long serialVersionUID = 3595437838419848420L; // ~ Instance fields ================================================================================================= // ~ Constructors ==================================================================================================== public ConceptModificationEvent(final Object source) { super(source); } // ~ Methods ========================================================================================================= public String toString() { return ReflectionToStringBuilder.toString(this); } }
[ "buildgy@pentaho.com" ]
buildgy@pentaho.com
036fbeb39edc05a4f722b91e0030807dbf493118
0dbb619c64e419b3d7e18c2e59e46a65086fba51
/src/main/java/com/htkapp/modules/merchant/pay/entity/OrderProduct.java
6cfe0673ce8903a348baa50a0c7532fb50e0fce8
[]
no_license
qdhualing/htkWeb
9d2d7606ff38dffe266960f08863a28f71fbcbb6
ae535730bca9691b81b0390699051613e293edfa
refs/heads/master
2021-09-16T09:51:56.599596
2018-06-19T02:22:58
2018-06-19T02:22:58
115,580,707
0
0
null
2018-01-24T02:18:16
2017-12-28T03:25:16
JavaScript
UTF-8
Java
false
false
1,188
java
package com.htkapp.modules.merchant.pay.entity; /** * Created by yinqilei on 17-6-29. * 订单关联的产品实体类 */ public class OrderProduct { private Integer id; //主键 private String productName; //产品名字 private Integer quantity; //产品数量 private Double price; //价格 private Integer productId; //产品id private Integer orderId; //订单id public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public Integer getQuantity() { return quantity; } public void setQuantity(Integer quantity) { this.quantity = quantity; } public Double getPrice() { return price; } public void setPrice(Double price) { this.price = price; } public Integer getOrderId() { return orderId; } public void setOrderId(Integer orderId) { this.orderId = orderId; } public Integer getProductId() { return productId; } public void setProductId(Integer productId) { this.productId = productId; } }
[ "1030542079@qq.com" ]
1030542079@qq.com
338f996f1014173e0bdb726d60f218c640b7054d
ccdf68f9b9f38ca1931a2686b339b810b5218574
/spann/spann-spring/src/test/java/com/masetta/spann/spring/integration/replace/BeanInterface.java
90098026cd1d227ee1f129f2b2719f1d0affb81d
[]
no_license
rpiterman/spann
f6ef8bc431db10ec75f96ef4089f04912ef32ab8
76ed66d1a60bc0e7c78110950a967c24b902de94
refs/heads/master
2021-05-28T21:48:46.158714
2011-11-06T08:56:12
2011-11-06T08:56:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,106
java
/** * Copyright 2010 the original author or authors. * * 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. */ package com.masetta.spann.spring.integration.replace; import com.masetta.spann.spring.base.Implement; import com.masetta.spann.spring.base.method.Replace; @Implement public interface BeanInterface extends ReplacedMethods { @Replace( methodReplacer=MethodReplacerImpl.class ) public abstract String replacedByClass(String string, int i, float f); @Replace( methodReplacerBean="methodReplacerBean") public abstract String replacedBySpringBean(String string, int i, float f); }
[ "ron.piterman@gmx.net" ]
ron.piterman@gmx.net
527e2ad34e96a415ee270de80707d616e5447d20
2646b8b8723df657bbde6954517f439e709963f4
/flume-0.9.3-cdh3u0/build/src/org/apache/jsp/fullspec_jsp.java
5eb9c25bf90e3e93118a49965cc55075f517c340
[ "Apache-2.0" ]
permissive
vanjakom/base
6d39e82335e2a25b9f44b0af4127a978cedd3bc3
f62d4bfaffdd7688be21a52b2e6fdeb6a4472a5a
refs/heads/master
2020-04-27T11:53:13.408738
2011-06-28T15:01:22
2011-06-28T15:01:22
1,966,605
0
1
null
null
null
null
UTF-8
Java
false
false
3,481
java
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import com.cloudera.flume.master.FlumeMaster; public final class fullspec_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.Vector _jspx_dependants; public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("<!--\n Licensed to Cloudera, Inc. under one\n or more contributor license agreements. See the NOTICE file\n distributed with this work for additional information\n regarding copyright ownership. Cloudera, Inc. licenses this file\n to you under the Apache License, Version 2.0 (the\n \"License\"); you may not use this file except in compliance\n with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n<!-- Retro web 1.0 flume -->\n<title>Flume Master: Multi config submission</title>\n\n"); com.cloudera.flume.master.MultiConfigCommand mcmd = null; synchronized (request) { mcmd = (com.cloudera.flume.master.MultiConfigCommand) _jspx_page_context.getAttribute("mcmd", PageContext.REQUEST_SCOPE); if (mcmd == null){ mcmd = new com.cloudera.flume.master.MultiConfigCommand(); _jspx_page_context.setAttribute("mcmd", mcmd, PageContext.REQUEST_SCOPE); } } out.write('\n'); org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("mcmd"), request); out.write(" \n<html>\n<meta HTTP-EQUIV=\"REFRESH\" content=\"5;url=flumeconfig.jsp\"/>\n\n<body>\nYou entered<br>\nSpecification: "); out.print( mcmd.getSpecification() ); out.write(" <br>\n\n</body>\n</html>\n"); FlumeMaster.getInstance().submit(mcmd.toCommand()); out.write('\n'); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "vanja@vanja-macbook.local" ]
vanja@vanja-macbook.local
d43ca3f947010acd140bdf8a242382262fe29993
f28dce60491e33aefb5c2187871c1df784ccdb3a
/src/main/java/uk/co/senab/photoview/gestures/VersionedGestureDetector.java
00285b9edbe41541768aee215635d28630176086
[ "Apache-2.0" ]
permissive
JackChan1999/boohee_v5.6
861a5cad79f2bfbd96d528d6a2aff84a39127c83
221f7ea237f491e2153039a42941a515493ba52c
refs/heads/master
2021-06-11T23:32:55.977231
2017-02-14T18:07:04
2017-02-14T18:07:04
81,962,585
8
6
null
null
null
null
UTF-8
Java
false
false
675
java
package uk.co.senab.photoview.gestures; import android.content.Context; import android.os.Build.VERSION; public final class VersionedGestureDetector { public static GestureDetector newInstance(Context context, OnGestureListener listener) { GestureDetector detector; int sdkVersion = VERSION.SDK_INT; if (sdkVersion < 5) { detector = new CupcakeGestureDetector(context); } else if (sdkVersion < 8) { detector = new EclairGestureDetector(context); } else { detector = new FroyoGestureDetector(context); } detector.setOnGestureListener(listener); return detector; } }
[ "jackychan2040@gmail.com" ]
jackychan2040@gmail.com
ac7d4d6ad30836d100f7bb7e6a2252d709163d3e
b2b2bce379623f92731466e52f190f8494ae3d74
/ODV-ItsLoru/src/at/ubisoft/odv/commands/Fly.java
4c77feda06b5d637000dad3c3a26d67937c98059
[]
no_license
UbisoftAT/ODVI
02759be69819b35dbf2968d5d80aeb80fec0bc38
92dfa2d7a49dcbc872ba6892772ee717edd8230c
refs/heads/master
2020-08-11T18:15:35.692094
2019-10-12T08:07:52
2019-10-12T08:07:52
214,606,463
0
1
null
null
null
null
ISO-8859-1
Java
false
false
925
java
package at.ubisoft.odv.commands; import java.util.ArrayList; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class Fly implements CommandExecutor { private ArrayList<Player> fly = new ArrayList<Player>(); @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player p = (Player) sender; if (p.hasPermission("ubi.team")) { if (fly.contains(p)) { fly.remove(p); p.setFlying(false); p.setAllowFlight(false); p.sendMessage("§eItsLoru §8| §cFly (inaktiv)"); } else { fly.add(p); p.setAllowFlight(true); p.setFlying(true); p.sendMessage("§eItsLoru §8| §cFly (aktiv)"); } } else { p.sendMessage("§eItsLoru §8| §cDazu hast du keine Rechte."); } return false; } }
[ "cmbqudxd.b54@20mail.it" ]
cmbqudxd.b54@20mail.it
e05eaad7cf3defd7b6b02d3e2936d6c5d51bff27
853f33cec5ac2db02dc4add6f319e8e92eded8b3
/DeviceManagement/src/org/kles/view/AbstractModelManagerController.java
8749c220ab5e5f04eccb7172141e32dd7a7b8ff5
[]
no_license
gran91/DeviceManagement
59a03c5b71bee1b1583903f59b14a55d62e81c6e
fcc4af14efff7c75ae0b08e4b7c7c2087a0b9786
refs/heads/master
2021-01-11T19:42:09.639592
2016-09-25T18:22:05
2016-09-25T18:22:05
69,182,489
0
0
null
null
null
null
UTF-8
Java
false
false
4,313
java
package org.kles.view; import org.kles.fx.custom.FxUtil; import java.util.ResourceBundle; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.scene.input.MouseEvent; import org.kles.DeviceManagement; import org.kles.model.AbstractDataModel; public abstract class AbstractModelManagerController implements IModelManagerView { // Reference to the main application. protected DeviceManagement mainApp; protected ResourceBundle resourseMessage; protected String datamodelname = ""; protected AbstractDataModel datamodel; protected ObservableList listData; /** * The constructor. The constructor is called before the initialize() * method. * * @param dataname */ public AbstractModelManagerController(String dataname) { this.listData = FXCollections.observableArrayList(); datamodelname = dataname; } /** * Initializes the controller class. This method is automatically called * after the fxml file has been loaded. */ @FXML private void initialize() { } /** * Is called by the main application to give a reference back to itself. * * @param mainApp */ public void setMainApp(DeviceManagement mainApp) { this.mainApp = mainApp; resourseMessage = mainApp.getResourceMessage(); } public <T> void setData(ObservableList<T> listData) { } /** * Called when the user clicks the new button. Opens a dialog to edit * details for a new datamodel. */ @FXML @Override public void handleNew() { datamodel = datamodel.newInstance(); boolean okClicked = mainApp.getRootController().showDataModelEditDialog(datamodel); if (okClicked) { listData.add(datamodel); } } /** * Called when the user clicks the new button. Opens a dialog to edit * details for a new datamodel. */ @FXML @Override public void handleCopy() { if (datamodel != null) { AbstractDataModel tempData = datamodel.newInstance(); tempData.populateData(datamodel.extractData()); boolean okClicked = mainApp.getRootController().showDataModelEditDialog(tempData); if (okClicked) { listData.add(tempData); } } else { FxUtil.showAlert(Alert.AlertType.WARNING, resourseMessage.getString("main.delete"), resourseMessage.getString("main.noselection"), String.format(datamodelname + ".noselection" + resourseMessage.getString(datamodelname.toLowerCase() + ".label"))); } } /** * Called when the user clicks the edit button. Opens a dialog to edit * details for the selected datamodel. */ @FXML @Override public void handleEdit() { if (datamodel != null) { boolean okClicked = mainApp.getRootController().showDataModelEditDialog(datamodel); } else { FxUtil.showAlert(Alert.AlertType.WARNING, resourseMessage.getString("main.delete"), resourseMessage.getString("main.noselection"), String.format(datamodelname + ".noselection" + resourseMessage.getString(datamodelname.toLowerCase() + ".label"))); } } @FXML protected void onKeyPressed(KeyEvent event) { if (event.isControlDown() && event.getCode().equals(KeyCode.DIGIT1)) { handleNew(); } if (event.isControlDown() && event.getCode().equals(KeyCode.DIGIT2)) { handleEdit(); } if (event.isControlDown() && event.getCode().equals(KeyCode.DIGIT3)) { handleCopy(); } if (event.isControlDown() && event.getCode().equals(KeyCode.DIGIT4)) { handleDelete(); } } @FXML protected void onMousePressed(MouseEvent event) { if (event.isPrimaryButtonDown() && event.getClickCount() == 2) { handleEdit(); } } public String getDatamodelname() { return datamodelname; } }
[ "Jeremy.CHAUT@ALFR-0074974-L.eu.corp.airliquide.com" ]
Jeremy.CHAUT@ALFR-0074974-L.eu.corp.airliquide.com
3112419e4e21246b3bc13777ee4f4dca0d778cdd
0cb290b1c39a22c2a5a8db196de5a9d7154db6a7
/practice2/src/test/java/hello/core/singleton/SingletonTest.java
11745f04d5a8b62aa1f9aceb2a2cb23bf7f437e1
[]
no_license
cocomongg/Spring_study
38c8635e9eadc8dfb84e5a854712cb40098a4b88
7a768c36120d43976d36a774fc5f663148f688e4
refs/heads/main
2023-03-15T01:56:13.243955
2021-03-16T13:01:20
2021-03-16T13:01:20
328,735,428
1
0
null
null
null
null
UTF-8
Java
false
false
2,729
java
package hello.core.singleton; import hello.core.SpringConfig; import hello.core.member.MemberService; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; public class SingletonTest { @Test @DisplayName("스프링 없는 순수한 DI 컨테이너") void pureContainer(){ SpringConfig springConfig = new SpringConfig(); //1. 조회: 호출할 때 마다 객체를 생성 MemberService memberService1 = springConfig.memberService(); //2. 조회: 호출할 때 마다 객체를 생성 MemberService memberService2 = springConfig.memberService(); //참조값이 다른 것을 확인 System.out.println("memberService1 = " + memberService1); System.out.println("memberService2 = " + memberService2); //memberService1 != memberService2 Assertions.assertThat(memberService1).isNotEqualTo(memberService2); } @Test @DisplayName("싱글톤 패턴을 적용한 객체 사용") public void singletonServiceTest(){ //new SignltonService() -> private으로 막아서 컴파일 오류 발생 //1. 조회: 호출할 때 마다 같은 객체를 반환 SingletonService singletonService1 = SingletonService.getInstance(); //2. 조회: 호출할 때 마다 같은 객체를 반환 SingletonService singletonService2 = SingletonService.getInstance(); //참조값이 같은 것을 확이 System.out.println("singletonService1 = " + singletonService1); System.out.println("singletonService2 = " + singletonService2); Assertions.assertThat(singletonService1).isSameAs(singletonService2); singletonService1.logic(); } //isSameas //isequalto 차이 @Test @DisplayName("스프링 컨테이너와 싱글톤") void springContainer(){ ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfig.class); //1 조회: 호출할 때 마다 같은 객체를 반환 MemberService memberService1 = ac.getBean("memberService", MemberService.class); //2 조회: 호출할 때 마다 같은 객체를 반환 MemberService memberService2 = ac.getBean("memberService", MemberService.class); //참조값이 같은 것을 확인 System.out.println("memberService1 = " + memberService1); System.out.println("memberService2 = " + memberService2); //memberService1 == memberService2 Assertions.assertThat(memberService1).isSameAs(memberService2); } }
[ "pjm4142@naver.com" ]
pjm4142@naver.com
45764198e964370212754d6a1664906df75f2151
d08333fbd34de69a647fa0f79a835a718019f12c
/src/test/java/se/jdr/AbstractTest.java
c8dcf50d7d9ec90d9c4a6f4d295a6569fca5862b
[]
no_license
dkemter/Taskmanager-Spring
3bbc9229e5f58f65ae98180d12cef6263c28b30a
dec8f14abfc12c4b72f2159291a52343a6450276
refs/heads/master
2021-01-25T05:57:27.629952
2017-02-17T07:55:44
2017-02-17T07:55:44
80,714,835
0
1
null
null
null
null
UTF-8
Java
false
false
452
java
package se.jdr; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = TaskmanagerSpringApplication.class) public abstract class AbstractTest { protected Logger logger = LoggerFactory.getLogger(this.getClass()); }
[ "danne2170@gmail.com" ]
danne2170@gmail.com
bd787f8600103ac9ee651a6577bce8296b883fb6
ddbcccd1a2ec31594f65b683bd16c887a3c0f9bf
/app/src/main/java/com/example/proteintracker/Hasil.java
73947f2aa3e178e2fb4cdb1f882268b75c30e144
[]
no_license
marnisaragih/Mahasiswa
fb173f82d6aca046995adbf509f05530bcca62e2
ac182ed35ca4c4686b8c411259f1eadb08a92366
refs/heads/master
2020-08-01T20:17:34.978251
2019-09-19T16:18:12
2019-09-19T16:18:12
211,103,662
0
0
null
null
null
null
UTF-8
Java
false
false
3,564
java
package com.example.proteintracker; import android.content.Context; import android.net.Uri; import android.os.Bundle; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * A simple {@link Fragment} subclass. * Activities that contain this fragment must implement the * {@link Hasil.OnFragmentInteractionListener} interface * to handle interaction events. * Use the {@link Hasil#newInstance} factory method to * create an instance of this fragment. */ public class Hasil extends Fragment { // TODO: Rename parameter arguments, choose names that match // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER private static final String ARG_PARAM1 = "param1"; private static final String ARG_PARAM2 = "param2"; // TODO: Rename and change types of parameters private String mParam1; private String mParam2; private OnFragmentInteractionListener mListener; public Hasil() { // Required empty public constructor } /** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param param1 Parameter 1. * @param param2 Parameter 2. * @return A new instance of fragment Hasil. */ // TODO: Rename and change types and number of parameters public static Hasil newInstance(String param1, String param2) { Hasil fragment = new Hasil(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (getArguments() != null) { mParam1 = getArguments().getString(ARG_PARAM1); mParam2 = getArguments().getString(ARG_PARAM2); } } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_hasil, container, false); } // TODO: Rename method, update argument and hook method into UI event public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } } @Override public void onAttach(Context context) { super.onAttach(context); if (context instanceof OnFragmentInteractionListener) { mListener = (OnFragmentInteractionListener) context; } else { throw new RuntimeException(context.toString() + " must implement OnFragmentInteractionListener"); } } @Override public void onDetach() { super.onDetach(); mListener = null; } /** * This interface must be implemented by activities that contain this * fragment to allow an interaction in this fragment to be communicated * to the activity and potentially other fragments contained in that * activity. * <p> * See the Android Training lesson <a href= * "http://developer.android.com/training/basics/fragments/communicating.html" * >Communicating with Other Fragments</a> for more information. */ public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); } }
[ "Marnisaragih06@gmail.com" ]
Marnisaragih06@gmail.com
76f6e2711c26b8a6d7fc1d04589d619e19c59229
f872ca9a122a8fb0421db245a68044b33b655312
/src/com/consumer/Student.java
780783795c5bf558516429dce78cce93bf969d5f
[]
no_license
rohitjain2233/java8Exercise
4b777f167f5fdea9a9f2c68cb2ec0da0bd52a57b
508aa2ae1cb19c44ce7c92bf964b3951b812f5df
refs/heads/master
2020-04-28T12:31:14.608731
2019-03-18T19:17:27
2019-03-18T19:17:27
175,278,110
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
package com.consumer; public class Student { String name; int marks; public Student(String name, int marks) { this.name = name; this.marks = marks; } }
[ "rohit.jain3892@gmail.com" ]
rohit.jain3892@gmail.com
b057559520153e5cf81487d00110470eb4ef1ae4
43bc58c3892d122ba58fb0a05ca0bd9970a56bb6
/leetcode/CombinationSumII.java
a7a2df53c2f6d29618a72f258934b0cc8264abab
[]
no_license
CSdlwr/OJ
8f5fe75273c685ccca381ae41a2fa7055e376e34
224ea9cdbbad6edc25695017fe52fa12f681ac09
refs/heads/master
2021-01-22T10:25:41.005901
2016-12-11T12:57:32
2016-12-11T12:57:32
68,557,794
0
0
null
null
null
null
UTF-8
Java
false
false
1,751
java
import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.ArrayList; import java.util.List; public class CombinationSumII { private List<List<Integer>> ans; private boolean[] choose; public static void main(String[] args) { CombinationSumII main = new CombinationSumII(); System.out.println(main.combinationSum2(new int[] {14,6,25,9,30,20,33,34,28,30,16,12,31,9,9,12,34,16,25,32,8,7,30,12,33,20,21,29,24,17,27,34,11,17,30,6,32,21,27,17,16,8,24,12,12,28,11,33,10,32,22,13,34,18,12}, 27)); } public List<List<Integer>> combinationSum2(int[] candidates, int target) { ans = new ArrayList<List<Integer>>(); if (candidates == null || candidates.length == 0 || target <= 0) { return ans; } choose = new boolean[candidates.length]; Arrays.sort(candidates); helper(candidates, 0, target); return ans; } private void helper(int[] candidates, int currIndex, int targetRemaining) { if (targetRemaining == 0) { List<Integer> t = new ArrayList<Integer>(); for (int i = 0; i < candidates.length; ++i) { if (choose[i]) { t.add(candidates[i]); } } ans.add(t); return; } //while (currIndex < candidates.length - 1 && candidates[currIndex] == candidates[currIndex + 1]) { //++currIndex; //} if (currIndex >= candidates.length || targetRemaining < 0) { return; } if (currIndex > 0 && candidates[currIndex - 1] == candidates[currIndex] && !choose[currIndex - 1]) { helper(candidates, currIndex + 1, targetRemaining); } else { choose[currIndex] = true; helper(candidates, currIndex + 1, targetRemaining - candidates[currIndex]); choose[currIndex] = false; helper(candidates, currIndex + 1, targetRemaining); } } }
[ "Lv.luming0858@gmail.com" ]
Lv.luming0858@gmail.com
b3d1eb217bd73c6033981acfe9dc40e5cad00977
cb67702eb01668ae620b2d520593d2302704dc30
/module-home/src/main/java/com/drz/home/adapter/HomeFragmentPageAdapter.java
c9c3adab49184b820fce83fbc1c2c29cdb1c6e63
[]
no_license
darryrzhong/Android-MvvmComponent-App
007e7c2b8187e6a8b0022f445a7126c255190b04
2ff7cddd5a402668bf2b847d7499f80d5f0bd493
refs/heads/master
2022-12-12T01:31:57.295921
2022-12-05T11:47:55
2022-12-05T11:47:55
244,142,750
1,714
455
null
2020-08-06T12:40:32
2020-03-01T12:12:09
Java
UTF-8
Java
false
false
1,445
java
package com.drz.home.adapter; import java.util.ArrayList; import java.util.List; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentPagerAdapter; /** * 应用模块: home * <p> * 类描述: 首页 - viewpager 适配器 * <p> * * @author darryrzhoong * @since 2020-02-09 */ public class HomeFragmentPageAdapter extends FragmentPagerAdapter { private String[] tables = {"发现", "推荐", "日报"}; private List<Fragment> fragments ; public HomeFragmentPageAdapter(@NonNull FragmentManager fm, int behavior) { super(fm, behavior); } public void setData(List<Fragment> fragment){ if (fragments == null){ fragments = new ArrayList<>(); } fragments.addAll(fragment); notifyDataSetChanged(); } @NonNull @Override public Fragment getItem(int position) { if (fragments != null && fragments.size() >0){ return fragments.get(position); } return null; } @Override public int getCount() { if (fragments != null && fragments.size() >0){ return fragments.size(); } return 0; } @Nullable @Override public CharSequence getPageTitle(int position) { return tables[position]; } }
[ "darryrzhong.dev@gmail.com" ]
darryrzhong.dev@gmail.com
ea768a2954ae0b6e347748cf10ed4d8a8d942af5
924b5b003d5139e6e29e0f24350d17237eeb5f93
/src/main/java/Z11_Геометрические_фигуры/Triangle.java
3788ffb13bee42bf485c4321a3a335cf76ba5436
[]
no_license
Dim-B/TasksJT
689747b3f317d03dd4623fa35978aa59ab8d676e
7ae171ecbbedf795264f8415d725639e95369265
refs/heads/master
2021-01-19T16:43:04.835620
2018-01-14T10:01:10
2018-01-14T10:01:10
100,913,922
0
0
null
null
null
null
UTF-8
Java
false
false
371
java
package Z11_Геометрические_фигуры; import java.awt.*; public class Triangle extends Shape { public Triangle(int x, int y) { super(x, y); } @Override protected void paintComponent(Graphics g) { g.setColor(Color.RED); g.fillPolygon(new int[]{x - 10, x + 10, x}, new int[]{y + 10, y + 10, y - 10}, 3); } }
[ "dimon0013@mail.ru" ]
dimon0013@mail.ru
bed490ea8f8fdff52d8fee3fc96cbe3a76fb1aeb
5597b2786d3528a2fea183776242f9ca41b57652
/instrument/src/androidTest/java/com/example/instrument/ApplicationTest.java
7b87537495c03e53ec2fd498873c26a579830de9
[]
no_license
nearor/CanvasDemo1
9ba631cd469b52806f55216780ae1b77d6374023
8d29cc26e6766d199dd1e4e93b49fdd08e1a017a
refs/heads/master
2021-01-01T05:20:28.868010
2016-05-13T08:28:46
2016-05-13T08:28:46
58,602,240
0
0
null
null
null
null
UTF-8
Java
false
false
353
java
package com.example.instrument; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
[ "linkinzhk@gmail.com" ]
linkinzhk@gmail.com
f65139b3caab80e05fc881af25efe7300ce721a6
e38e805fb30918351039812149368026a32282e7
/Problems/Cyclically shifting elements/src/Main.java
b0dc03360e1f25b49793524d3a1b4a0d3667b2bc
[]
no_license
ProkurorNSK/CoffeeMachine
6c4a5640b6c83320b620f889e5e1788c21888a5d
bb1d29e98ba652e6be74d21f9c10e493ed87d37f
refs/heads/master
2022-10-30T16:08:46.630306
2020-06-10T18:42:12
2020-06-10T18:42:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
774
java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int len = scanner.nextInt(); // reading a length int[] a = new int[len]; // creating an array with the specified length for (int i = 0; i < len; i++) { a[i] = scanner.nextInt(); // read the next number of the array } int[] b = rotate(a); for (int x : b) { System.out.print(x + " "); } } private static int[] rotate(int[] a) { int temp = a[a.length - 1]; int[] b = new int[a.length]; // creating an array with the specified length b[0] = temp; System.arraycopy(a, 0, b, 1, a.length - 1); return b; } }
[ "proka@ngs.ru" ]
proka@ngs.ru
7efb8ae94366385391f843b8d202d4f922b6b5dd
8c8299570821822815b7c2d24246507ed8fe57ad
/src/tests/StringHelperTest.java
31fca7e20c39acee23cc2e0ea3dd0b549b3f23ca
[ "MIT" ]
permissive
satr/yz-webshop
c4b1db7b97affab15326de6d04d2b1ea543dbbb8
85650588528b76990ba3da9ee8f9fa9c86b9599e
refs/heads/master
2020-07-06T03:51:06.047257
2016-11-21T06:36:53
2016-11-21T06:36:53
74,059,994
0
0
null
null
null
null
UTF-8
Java
false
false
2,692
java
package tests; import io.github.satr.yzwebshop.helpers.StringHelper; import org.junit.Assert; import org.junit.Test; public class StringHelperTest { @Test public void isInteger() throws Exception { Assert.assertTrue(StringHelper.isInteger("" + Integer.MAX_VALUE)); Assert.assertTrue(StringHelper.isInteger("" + Integer.MIN_VALUE)); Assert.assertTrue(StringHelper.isInteger("00000123")); Assert.assertTrue(StringHelper.isInteger("123")); Assert.assertTrue(StringHelper.isInteger("-00000123")); Assert.assertTrue(StringHelper.isInteger("-123")); Assert.assertFalse(StringHelper.isInteger("" + Integer.MAX_VALUE + "0")); Assert.assertFalse(StringHelper.isInteger("" + Integer.MIN_VALUE + "0")); Assert.assertFalse(StringHelper.isInteger("123.0")); Assert.assertFalse(StringHelper.isInteger("--123")); Assert.assertFalse(StringHelper.isInteger("+123")); Assert.assertFalse(StringHelper.isInteger(".0")); Assert.assertFalse(StringHelper.isInteger("abc")); } @Test public void isDouble() throws Exception { Assert.assertTrue(StringHelper.isDouble("11111111111111111111.11111111111111111111")); Assert.assertTrue(StringHelper.isDouble("-11111111111111111111.11111111111111111111")); Assert.assertTrue(StringHelper.isDouble("00000123")); Assert.assertTrue(StringHelper.isDouble("123")); Assert.assertTrue(StringHelper.isDouble("-00000123")); Assert.assertTrue(StringHelper.isDouble("-123")); Assert.assertTrue(StringHelper.isDouble("00000123.0001")); Assert.assertTrue(StringHelper.isDouble("123.12")); Assert.assertTrue(StringHelper.isDouble("123,12")); Assert.assertTrue(StringHelper.isDouble("-00000123.12")); Assert.assertTrue(StringHelper.isDouble("-123.12")); Assert.assertTrue(StringHelper.isDouble("-123,12")); Assert.assertTrue(StringHelper.isDouble(".0")); Assert.assertFalse(StringHelper.isDouble("" + Double.MAX_VALUE + "0")); Assert.assertFalse(StringHelper.isDouble("" + Double.MIN_VALUE + "0")); Assert.assertFalse(StringHelper.isDouble("--123")); Assert.assertFalse(StringHelper.isDouble("+123")); Assert.assertFalse(StringHelper.isDouble("abc")); Assert.assertFalse(StringHelper.isDouble("123..0")); Assert.assertFalse(StringHelper.isDouble("--123")); Assert.assertFalse(StringHelper.isDouble("+123")); Assert.assertFalse(StringHelper.isDouble("123.")); Assert.assertFalse(StringHelper.isDouble("..0")); Assert.assertFalse(StringHelper.isDouble("abc")); } }
[ "ssmtor@gmail.com" ]
ssmtor@gmail.com
843384cefbebd5738e088529bb173cdaeed2dd02
84b3a605e4a044157bd9ea31e7fd3fffabd67e81
/app/src/main/java/bastian/prueba2/views/main/filter/FiltersButtonsFragment.java
a7013ddb40ac79a9239dfcddb64d97a632b49596
[]
no_license
ovan66/Prueba2
bcf30ed5b5a45dbfd2a83331748ec1056bcb2acd
543a6eb1db05f6299a54c3f8a2a8224396bcde6d
refs/heads/master
2020-07-29T23:32:55.090287
2016-11-17T17:31:57
2016-11-17T17:31:57
73,653,908
0
0
null
null
null
null
UTF-8
Java
false
false
1,852
java
package bastian.prueba2.views.main.filter; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import java.util.List; import bastian.prueba2.R; import bastian.prueba2.data.PendingsData; /** * A simple {@link Fragment} subclass. */ public class FiltersButtonsFragment extends Fragment { private FiltersButtonsCallback callback; private List<String> filter; public FiltersButtonsFragment() { // Required empty public constructor } @Override public void onAttach(Context context) { super.onAttach(context); callback = (FiltersButtonsCallback) context; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_filters_buttons, container, false); } @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); final ImageButton dayBtn = (ImageButton) view.findViewById(R.id.dayBtn); dayBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { callback.day(); } }); final ImageButton nightBtn = (ImageButton) view.findViewById(R.id.nightBtn); dayBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { callback.night(); } }); } }
[ "bstian23@gmail.com" ]
bstian23@gmail.com
27bb6da16d7473646eab8923a67df502de324d0e
2cb7187bcbef4ce4d8dac997e8b6838a5265bb7a
/BetaApplications/src/aplicacion/cliente/corrector/test/_Test.java
0c3bab474febccd322b5acd5a1e559bc287d2c5e
[]
no_license
pjpincheiragr/Catalogos
cc5185e7a22c4a2c4ed1c9ebfd6d42186f996c50
d462cc5bcd740215a01f7684a5ea6cb6086ef3db
refs/heads/master
2021-01-10T06:15:27.738122
2015-12-18T13:05:54
2015-12-18T13:05:54
48,194,633
0
0
null
null
null
null
UTF-8
Java
false
false
355
java
package aplicacion.cliente.corrector.test; import aplicacion.cliente.corrector.constructor.*; import aplicacion.herramientas.conexion.conectores.MsSQL; public class _Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub _Constructor CC=new _Constructor(); CC.build(null); CC.init(); } }
[ "juli.otero01@gmail.com" ]
juli.otero01@gmail.com
f68b5b135d06976b460b030a4edd309f95dcb8f0
ff154da3eb656e6042c286dae804d7045a53c497
/src/main/java/com/marcinsikorski/paymentcrud/payment/infrastructure/config/CSVFileNameProviderService.java
6ad88a625d32bb1d63021d0d234392e4d840b479
[]
no_license
marcinsikorski/alt_payment_crud_ms
d9b85337512f06786fdbc489183b9aee918a4bdf
d68810d60aab117ef78bc7a25c3234614f5a7683
refs/heads/main
2023-07-21T15:22:44.347484
2021-08-27T07:18:29
2021-08-27T07:18:29
399,520,641
0
0
null
2021-08-25T14:44:25
2021-08-24T15:41:42
Java
UTF-8
Java
false
false
502
java
package com.marcinsikorski.paymentcrud.payment.infrastructure.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @Service public class CSVFileNameProviderService { @Value("${com.marcinsikorski.paymentcrud.csv.tableFileName}") private String SAMPLE_CSV_FILE; public String getCsvTableFileName(){ return SAMPLE_CSV_FILE; } public String getTempCsvFileName(){ return SAMPLE_CSV_FILE + "_TMP"; } }
[ "sikorski.ms@pg.com" ]
sikorski.ms@pg.com
2219993d2b2784250951e4d447e5f996845b68a8
0c72743a0650921b7e2c02f11a8f40dac1cb91ca
/InteractiveView/src/interactive/view/pagereader/ChapterChangeListener.java
5427d06f54ef68be92c3577cbedced7ad61a02fc
[]
no_license
jugo8633/InteractiveReader
4e5e552e7c2447f4723381b14bbd8c8798fd668f
db49f2cbf0132f41ad01417dd84a3017ff0e8d47
refs/heads/master
2016-08-04T14:49:03.091623
2015-12-03T03:40:31
2015-12-03T03:40:31
15,355,561
0
0
null
null
null
null
UTF-8
Java
false
false
1,045
java
package interactive.view.pagereader; import interactive.common.EventMessage; import interactive.view.pagereader.ViewPager.OnPageChangeListener; import android.os.Handler; import android.os.Message; public class ChapterChangeListener implements OnPageChangeListener { private Handler theHandler = null; public ChapterChangeListener() { super(); } public ChapterChangeListener(Handler handler) { super(); theHandler = handler; } @Override protected void finalize() throws Throwable { super.finalize(); } @Override public void onPageScrollStateChanged(int arg0) { } @Override public void onPageScrolled(int arg0, float arg1, int arg2) { } @Override public void onPageSelected(int nChapter) { notify(EventMessage.MSG_VIEW_CHANGE, nChapter); } private void notify(int nEvent, int nPosition) { if (null != theHandler) { Message msg = new Message(); msg.what = EventMessage.MSG_CHAPTER; msg.arg1 = nEvent; msg.arg2 = nPosition; msg.obj = null; theHandler.sendMessage(msg); } } }
[ "jugo.tw@gmail.com" ]
jugo.tw@gmail.com
1173e4c86a480620f5a1b7f98c8018eddeb0a564
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/com/iluwatar/proxy/WizardTest.java
484d152f06882ba77b6376887a2838b69dcbd12a
[]
no_license
STAMP-project/dspot-experiments
f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5
121487e65cdce6988081b67f21bbc6731354a47f
refs/heads/master
2023-02-07T14:40:12.919811
2019-11-06T07:17:09
2019-11-06T07:17:09
75,710,758
14
19
null
2023-01-26T23:57:41
2016-12-06T08:27:42
null
UTF-8
Java
false
false
1,600
java
/** * The MIT License * Copyright (c) 2014-2016 Ilkka Sepp?l? * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.iluwatar.proxy; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** * Tests for {@link Wizard} */ public class WizardTest { @Test public void testToString() throws Exception { final String[] wizardNames = new String[]{ "Gandalf", "Dumbledore", "Oz", "Merlin" }; for (String name : wizardNames) { Assertions.assertEquals(name, new Wizard(name).toString()); } } }
[ "benjamin.danglot@inria.fr" ]
benjamin.danglot@inria.fr
03bf56967d1ef6ce50ebb920c6ceac594e43b753
a7d2b45e72d745f51db450cc16dc332269a6b5f1
/AlmullaExchange/src/com/amg/exchange/remittance/serviceimpl/HighValueCurrencyServiceImpl.java
039d72f236d607bb7e2990874a0de20c51b2c856
[]
no_license
Anilreddyvasantham/AlmullaExchange
2974ecd53b1d752931c50b7ecd22c5a37fa05a03
b68bca218ce4b7585210deeda2a8cf84c6306ee3
refs/heads/master
2021-05-08T17:48:01.976582
2018-02-02T09:32:22
2018-02-02T09:32:22
119,484,446
1
0
null
null
null
null
UTF-8
Java
false
false
2,053
java
package com.amg.exchange.remittance.serviceimpl; import java.math.BigDecimal; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.amg.exchange.remittance.dao.IHighValueCurrencyDao; import com.amg.exchange.remittance.model.HighValueCurrencySetup; import com.amg.exchange.remittance.service.IHighValueCurrencyService; import com.amg.exchange.treasury.model.CurrencyMaster; @SuppressWarnings("serial") @Service("highValueCurrencyServiceImpl") public class HighValueCurrencyServiceImpl<T> implements IHighValueCurrencyService<T> { @Autowired IHighValueCurrencyDao<T> highValueCurrencyDao; public IHighValueCurrencyDao<T> getHighValueCurrencyDao() { return highValueCurrencyDao; } public void setHighValueCurrencyDao(IHighValueCurrencyDao<T> highValueCurrencyDao) { this.highValueCurrencyDao = highValueCurrencyDao; } public HighValueCurrencyServiceImpl() { // TODO Auto-generated constructor stub } @Transactional @Override public void save(HighValueCurrencySetup highValueCurrencySetup) { getHighValueCurrencyDao().save(highValueCurrencySetup); } @Transactional @Override public List<HighValueCurrencySetup> getAllCurrencyList(BigDecimal currencyId){ return getHighValueCurrencyDao().getAllCurrencyList(currencyId); } @Transactional @Override public List<HighValueCurrencySetup> getEnquiryList(){ return getHighValueCurrencyDao().getEnquiryList(); } @Transactional @Override public String approveReord(BigDecimal highValueId, String userName){ return getHighValueCurrencyDao().approveReord(highValueId, userName); } @Transactional @Override public void delete(BigDecimal highValueId){ getHighValueCurrencyDao().delete(highValueId); } @Transactional @Override public List<CurrencyMaster> getCurrencyList(BigDecimal currencyId) { // TODO Auto-generated method stub return getHighValueCurrencyDao().getCurrencyList(currencyId); } }
[ "anilreddy.vasantham@gmail.com" ]
anilreddy.vasantham@gmail.com
930e6b89774bddda51fd7cc8ab3c4aecdec791cf
8bcad3bc8a53c55cb1c50dc60712d2591d58eef0
/MegajanWebService/src/main/java/persistence/Product.java
377f9c92dac17efbcf275d1cccde29f7ff90a52e
[]
no_license
skorbas/Megajan
216eeb62df022c70419aa2c991a36defcf1e1523
f49409305e138609d19c9063928e2bf306bd785e
refs/heads/master
2021-01-22T09:04:36.636339
2013-02-14T14:29:45
2013-02-14T14:29:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,968
java
package persistence; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * The persistent class for the products database table. * */ @Entity @Table(name="products") public class Product implements Serializable { /** * Global entity unique identifier. */ public static final String ENTITY_QUALIFIED_NAME = "persistence.Product";//Product.class.getName(); private static final long serialVersionUID = 1L; private String id; private String code; private String name; private String brandName; private String manufacturerName; //private Brand brandBean; public Product() { } @Id @Column(unique=true, nullable=false) public String getId() { return this.id; } public void setId(String id) { this.id = id; } @Column(length=255) public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } @Column(length=255) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name="brand",length=255) public String getBrandName() { return this.brandName; } public void setBrandName(String name) { this.brandName = name; } @Column(name="manufacturer",length=255) public String getManufacturerName() { return this.manufacturerName; } public void setManufacturerName(String manufacturer) { this.manufacturerName = manufacturer; } //bi-directional many-to-one association to Brand // @JsonBackReference("brand-products") // @ManyToOne(fetch=FetchType.LAZY) // @JoinColumn(name="brand", referencedColumnName="brand_name") // public Brand getBrandBean() { // return this.brandBean; // } // @JsonBackReference("brand-products") // public void setBrandBean(Brand brandBean) { // this.brandBean = brandBean; // } }
[ "skorbas@poczta.fm" ]
skorbas@poczta.fm