blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
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
689M
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
131 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
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
1a27c7917d6f028b08eeb7335cca7dd294094897
38e5df4c2c55b55199c15e2034c1e5fec14d8324
/AibangBus/src/com/dlt/json/JSON_Utils.java
6090d53d392b209557060b71f1cba49961fff9de
[]
no_license
dltdgh/JAVA
13d082597ce23a7ff718f2aed26a15035460636d
678a23b7706519fff735cd324bedc383f154ed7b
refs/heads/master
2021-01-21T14:04:18.343761
2016-05-27T09:21:19
2016-05-27T09:21:19
51,840,611
0
0
null
null
null
null
UTF-8
Java
false
false
2,426
java
package com.dlt.json; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import com.dlt.http.AibangBus; import com.dlt.http.HTTP_Utils; import com.dlt.pojo.BusSegment; import com.dlt.pojo.BusTransfer; import net.sf.json.JSONArray; import net.sf.json.JSONObject; public class JSON_Utils { public static JSONObject createJsonObj(String jsonStr){ JSONObject jsonObj = JSONObject.fromObject(jsonStr); return jsonObj; } /* * 深搜遍历jsonobj 并将查询到的结果设置到map里 */ public static void dfsJson(Map<String, String> map, JSONObject jsonObj){ @SuppressWarnings("unchecked") Iterator<String> iterator = jsonObj.keys(); while (iterator.hasNext()) { String key = iterator.next(); Object object = jsonObj.get(key); if(object instanceof JSONObject){ dfsJson(map, (JSONObject)object); } else if(object instanceof JSONArray){ JSONArray jsonArray = (JSONArray)object; for(int i = 0; i < jsonArray.size(); i++){ Object obj = jsonArray.get(i); if(obj instanceof String){ // System.out.println(key+": "+(String)obj); if(map.get(key) == null){ map.put(key, obj.toString()); } else { map.put(key, map.get(key)+","+obj.toString()); } } else if(obj instanceof JSONObject){ dfsJson(map, (JSONObject)obj); } else{ if(map.get(key) == null){ map.put(key, obj.toString()); } else { map.put(key, map.get(key)+","+obj.toString()); } // System.out.println(obj.toString()); } } } else{ // System.out.println(key+": "+object.toString()); if(map.get(key) == null){ map.put(key, object.toString()); } else { map.put(key, map.get(key)+","+object.toString()); } } } } public static void main(String[] args) { HTTP_Utils utils = new HTTP_Utils(); String json = null; try { json = utils.getStringFromInputstream(new FileInputStream(new File("test.json"))); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } JSONObject jsonObj = createJsonObj(json); if (jsonObj == null) { System.out.println("null"); } else { System.out.println(jsonObj.getString("message")); } } }
a46471cdabbf5016badf306dc36a50515e917611
cbed73111754e54d117300bcf8ec18ff8edeb356
/core/src/test/java/com/diary/dao/DailyRecordDaoTest.java
6967b546a4d17331b8db25944c1e61bec5ed4f24
[]
no_license
Cajova-Houba/Diary
7b5c5f1d09fdd769cbb37a983ab9bdd5d8553cc8
b4e64a05dc538a399637c645269dacc6f0e3e4c3
refs/heads/master
2021-01-13T01:03:02.670581
2015-11-11T23:20:24
2015-11-11T23:20:24
46,015,676
0
0
null
null
null
null
UTF-8
Java
false
false
1,921
java
package com.diary.dao; import static org.junit.Assert.*; import java.sql.Date; import java.util.List; import java.util.Set; import org.appfuse.dao.BaseDaoTestCase; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import com.diary.dao.DailyRecordDao; import com.diary.model.Activity; import com.diary.model.DailyRecord; public class DailyRecordDaoTest extends BaseDaoTestCase { @Autowired(required = true) private DailyRecordDao dailyRecordDao; @Test public void testGetDailyRecordsFrom() { /*Theres one daily record from 2015-5-15 for member with ID=1L*/ List<DailyRecord> dr = dailyRecordDao.getDailyRecordsFrom(Date.valueOf("2015-5-15"),1L); assertFalse(dr.isEmpty()); } @Test public void testGetTodayDailyRecord() { //there are no records for today for member with ID=0, so the method will have to create a new one, save it into database and return it DailyRecord dr = dailyRecordDao.getTodayDailyRecord(0L); assertNotNull(dr); //right now, there should be exactly one record for member with ID=0 //test will try to call getTodayDailyRecord(0L) again and if dr.getID() is different from id, this test will fail. long id = dr.getID(); dr = dailyRecordDao.getTodayDailyRecord(0L); assertEquals(id, dr.getID().longValue()); } @Test public void testCanAccess() { //daily record with ID=-5L has memberID=1L so the member with ID=1L should be able to access it assertTrue(dailyRecordDao.canAccess(1L, -5L)); assertFalse(dailyRecordDao.canAccess(2L, -5L)); //member with ID=2 shouldn't //there is no member with ID=-10L and no daily record with ID=-10L assertFalse(dailyRecordDao.canAccess(-10L, -10L)); } @Test public void testGetActivitiesFor() { //there is one activity assigned to daily record with ID=-5 Set<Activity> activities = dailyRecordDao.getActivitiesFor(-5L); assertFalse(activities.isEmpty()); } }
8adc45439d6e51ca607f9800c2ea011e6b403b28
5e93f4ea1dea9f63ad819a41796ed54ebca0f704
/H071201070/TUGAS PRAKTIKUM -2/Soal1PP.java
47b96ad54a7d5959c4f9a5910e7b0d6c33625bf3
[]
no_license
rendy2731/PP2020
3e24e20204dc0bf3553e745f1ec39875749df5cc
8f57fe6bec86bc71aadabe5f6247e5aa153495db
refs/heads/main
2023-02-02T13:41:58.956706
2020-12-18T03:24:30
2020-12-18T03:24:30
301,129,888
3
15
null
2020-12-17T13:52:28
2020-10-04T12:55:51
Java
UTF-8
Java
false
false
3,784
java
import java.util.Scanner; class Soal1pp{ public static void main(String[] args) { Scanner inputan = new Scanner(System.in); try{ int genap = 0; int ganjil = 0; int positif = 0; int negatif = 0; int a = inputan.nextInt(); int b = inputan.nextInt(); int c = inputan.nextInt(); int d = inputan.nextInt(); int e = inputan.nextInt(); if (a>0){ if ((a%2==0)){ genap+=1; positif+=1; } else { ganjil+=1; positif+=1; } } else if (a<0) { if ((a%2==0)){ genap+=1; negatif+=1; } else { ganjil+=1; negatif+=1; } } else { genap+=1; } if (b>0){ if ((b%2==0)){ genap+=1; positif+=1; } else { ganjil+=1; positif+=1; } } else if (b<0) { if ((b%2==0)){ genap+=1; negatif+=1; } else { ganjil+=1; negatif+=1; } } else { genap+=1; } if (c>0){ if ((c%2==0)){ genap+=1; positif+=1; } else { ganjil+=1; positif+=1; } } else if (c<0) { if ((c%2==0)){ genap+=1; negatif+=1; } else { ganjil+=1; negatif+=1; } } else { genap+=1; } if (d>0){ if ((d%2==0)){ genap+=1; positif+=1; } else { ganjil+=1; positif+=1; } } else if (d<0) { if ((d%2==0)){ genap+=1; negatif+=1; } else { ganjil+=1; negatif+=1; } } else { genap+=1; } if (e>0){ if ((e%2==0)){ genap+=1; positif+=1; } else { ganjil+=1; positif+=1; } } else if (e<0) { if ((e%2==0)){ genap+=1; negatif+=1; } else { ganjil+=1; negatif+=1; } } else { genap+=1; } System.out.println(genap + " Angka Genap"); System.out.println(ganjil + " Angka Ganjil"); System.out.println(positif + " Angka Positif"); System.out.println(negatif + " Angka Negatif"); } catch (Exception exception_e) { System.out.println("Inputan Tidak Valid"); } } }
4448cea4ebd272788e449507a364c9ce8dda9598
d1cf136c792c669657c0589856b517bf2e8f79cc
/app/src/main/java/br/com/kiks/charades/activities/SettingsActivity.java
823bf01159a7f81a3240faf5f197781767bec815
[]
no_license
mrtrz/charades
0fad08476a3a44920fedfbd8d9affac88c9a4e29
2dcebd1800d7361f0ac2808fb54247ce0b643b50
refs/heads/master
2021-01-18T20:26:18.131439
2016-08-16T13:58:19
2016-08-16T13:58:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,052
java
package br.com.kiks.charades.activities; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.ListPreference; import android.preference.MultiSelectListPreference; import android.preference.Preference; import android.preference.PreferenceFragment; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.MenuItem; import com.google.common.base.Joiner; import com.kiks.charades.R; import java.util.Map; public class SettingsActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_settings); Toolbar toolbar = (Toolbar) findViewById(R.id.settings_toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == android.R.id.home) { finish(); return true; } return super.onOptionsItemSelected(item); } public static class PrefsFragment extends PreferenceFragment implements SharedPreferences.OnSharedPreferenceChangeListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.pref_general); Map<String, ?> prefs = getPreferenceManager().getSharedPreferences().getAll(); for (String key : prefs.keySet()) { Preference pref = findPreference(key); if (pref != null) { updateSummary(pref); } } } @Override public void onResume() { super.onResume(); getPreferenceManager() .getSharedPreferences() .registerOnSharedPreferenceChangeListener(this); } @Override public void onPause() { super.onPause(); getPreferenceManager() .getSharedPreferences() .unregisterOnSharedPreferenceChangeListener(this); } @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { Preference pref = findPreference(key); updateSummary(pref); } private void updateSummary(Preference pref) { if (pref instanceof ListPreference) { ListPreference listPref = (ListPreference)pref; pref.setSummary(listPref.getEntry()); } if (pref instanceof MultiSelectListPreference) { MultiSelectListPreference multiPref = (MultiSelectListPreference)pref; pref.setSummary(Joiner.on(", ").join(multiPref.getEntries())); } } } }
9c2bc18c44f931412081ae586f038594ed0b2d43
8b3aa39d81a6697b357ab61f53be831422e6dc03
/src/main/java/org/xbib/classloader/directory/DirectoryResourceHandle.java
f7faff5f111429b188b5264fa63522230bfb938b
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
PlumpMath/classloader-9
c2fc2159e8064c970abaac23029b4ec6675c2e50
746633d558e0302aaf04b4fa048622fcec6f01a6
refs/heads/master
2021-01-20T09:51:54.667169
2016-11-23T10:32:35
2016-11-23T10:32:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,121
java
package org.xbib.classloader.directory; import org.xbib.classloader.AbstractResourceHandle; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import java.security.cert.Certificate; import java.util.jar.Attributes; import java.util.jar.Manifest; /** * */ class DirectoryResourceHandle extends AbstractResourceHandle { private final String name; private final File file; private final Manifest manifest; private final URL url; private final URL codeSource; DirectoryResourceHandle(String name, File file, File codeSource, Manifest manifest) throws MalformedURLException { this.name = name; this.file = file; this.codeSource = codeSource.toURI().toURL(); this.manifest = manifest; url = file.toURI().toURL(); } @Override public String getName() { return name; } @Override public URL getUrl() { return url; } @Override public URL getCodeSourceUrl() { return codeSource; } @Override public boolean isDirectory() { return file.isDirectory(); } @Override public InputStream getInputStream() throws IOException { if (file.isDirectory()) { return new EmptyInputStream(); } return new FileInputStream(file); } @Override public int getContentLength() { if (file.isDirectory() || file.length() > Integer.MAX_VALUE) { return -1; } else { return (int) file.length(); } } @Override public Manifest getManifest() throws IOException { return manifest; } @Override public Attributes getAttributes() throws IOException { if (manifest == null) { return null; } return manifest.getAttributes(getName()); } /** * Always return null. This could be implementd by verifing the signatures * in the manifest file against the actual file, but we don't need this * right now. * * @return null */ @Override public Certificate[] getCertificates() { return null; } private static final class EmptyInputStream extends InputStream { @Override public int read() { return -1; } @Override public int read(byte[] b) { return -1; } @Override public int read(byte[] b, int off, int len) { return -1; } @Override public long skip(long n) { return 0; } @Override public int available() { return 0; } @Override public void close() { // empty } @Override public void mark(int readlimit) { // empty } @Override public void reset() { // empty } @Override public boolean markSupported() { return false; } } }
dadc4748d28de7d5c8d493b30b19dfe8d7b456e4
82a8411e64669a3edd8808d0fb29721e641a619e
/src/com/yangyuan/blog/entity/AccessLog.java
8cf3fa831b8e2361f48f5696afdce214bc7c2708
[ "Apache-2.0" ]
permissive
yangyuan6/blog
54cb43d84181557eb3c68b441823621907ec74c1
1bd24f8367ae55c1c53db583d779367d4e3d9c84
refs/heads/master
2020-05-09T12:30:29.271033
2019-06-23T14:40:54
2019-06-23T14:40:54
181,114,007
0
0
null
null
null
null
UTF-8
Java
false
false
955
java
package com.yangyuan.blog.entity; import java.security.Timestamp; import java.util.Date; public class AccessLog { private Date accessTime; // private Timestamp accessTime; private String ipAddress; private String location; private String userAgent; public Date getAccessTime() { return accessTime; } public void setAccessTime(Date accessTime) { this.accessTime = accessTime; } /* public Timestamp getAccessTime() { return accessTime; } public void setAccessTime(Timestamp accessTime) { this.accessTime = accessTime; }*/ public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public String getUserAgent() { return userAgent; } public void setUserAgent(String userAgent) { this.userAgent = userAgent; } }
97af46c285cfb34dcfdb5b34b7ddc4f4ba7b3f80
5bc38ac0130822d3e3c7480b1f618ff34ede706e
/src/wordpress/Login.java
d82dde75e5ded722552d874986b42b6ef6526f72
[]
no_license
adamut/WordPress
692bab418e1a7537ded9194bda062a88e7835a7e
3437a26900b4f8f424ff73f7f2f3821ef96079ef
refs/heads/master
2021-01-22T06:18:44.430343
2017-05-28T15:44:45
2017-05-28T15:44:45
92,537,107
0
0
null
2017-05-28T15:08:19
2017-05-26T18:17:04
Java
UTF-8
Java
false
false
11,250
java
package wordpress; import java.sql.*; import javax.swing.*; public class Login extends javax.swing.JFrame { Connection conn = null; PreparedStatement pst = null; ResultSet rs = null; public Login() { initComponents(); } /** * 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() { UsernameLabel = new javax.swing.JLabel(); PasswordLabel = new javax.swing.JLabel(); SubmitUser = new javax.swing.JTextField(); SubmitPassword = new javax.swing.JPasswordField(); LoginButton = new javax.swing.JButton(); SignButton = new javax.swing.JButton(); GuestButton = new javax.swing.JButton(); WordPressLabel = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); UsernameLabel.setText("User Name"); PasswordLabel.setText("Password"); LoginButton.setText("Login"); LoginButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { LoginButtonActionPerformed(evt); } }); SignButton.setText("Sign In"); SignButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { SignButtonActionPerformed(evt); } }); GuestButton.setText("Guest"); GuestButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { GuestButtonActionPerformed(evt); } }); WordPressLabel.setFont(new java.awt.Font("Vrinda", 0, 36)); // NOI18N WordPressLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); WordPressLabel.setText("WordPress"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGap(199, 199, 199) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGap(161, 161, 161) .addComponent(GuestButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(UsernameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PasswordLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(LoginButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(SignButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(SubmitPassword) .addComponent(SubmitUser))))) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(WordPressLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(219, 219, 219)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(68, 68, 68) .addComponent(WordPressLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE) .addGap(43, 43, 43) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(SubmitUser) .addComponent(UsernameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(PasswordLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(SubmitPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(LoginButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SignButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(GuestButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(173, 173, 173)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void LoginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoginButtonActionPerformed Wordpress a=new Wordpress(); conn = a.ConnectDB(); String Sql = "Select * from user where username=? and password=?"; try { pst = conn.prepareStatement(Sql); pst.setString(1, SubmitUser.getText()); pst.setString(2, SubmitPassword.getText()); rs = pst.executeQuery(); //search for input SubmitUser and SubmitPassword in MySQL database if (rs.next()) { int id_user= rs.getInt("iduser"); JOptionPane.showMessageDialog(null, "Welcome " + SubmitUser.getText()); MainMenu m = new MainMenu(id_user); m.setVisible(true); setVisible(false); dispose(); } else { //User and Password not found JOptionPane.showMessageDialog(null, "Invalid username or password", "Access Denied", JOptionPane.ERROR_MESSAGE); SubmitUser.setText(""); SubmitPassword.setText(""); } } catch (Exception e) { JOptionPane.showMessageDialog(null, e); } finally { try { rs.close(); } catch (Exception e) { /* ignored */ } try { pst.close(); } catch (Exception e) { /* ignored */ } try { conn.close(); } catch (Exception e) { /* ignored */ } }//GEN-LAST:event_LoginButtonActionPerformed } private void SignButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SignButtonActionPerformed //Redirecting towards SignIn Pannel SignIn sign = new SignIn(); sign.setVisible(true); setVisible(false); dispose(); }//GEN-LAST:event_SignButtonActionPerformed private void GuestButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_GuestButtonActionPerformed Guest guest= new Guest(); guest.showArticle(); guest.setVisible(true); //article.getEditArticleButton().setVisible(false); //article.getDeleteArticleButton().setVisible(false); setVisible(false); //dispose(); }//GEN-LAST:event_GuestButtonActionPerformed /** * @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(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new Login().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton GuestButton; private javax.swing.JButton LoginButton; private javax.swing.JLabel PasswordLabel; private javax.swing.JButton SignButton; private javax.swing.JPasswordField SubmitPassword; private javax.swing.JTextField SubmitUser; private javax.swing.JLabel UsernameLabel; private javax.swing.JLabel WordPressLabel; // End of variables declaration//GEN-END:variables }
71c79322e58eac1a470a0c990995ea819ac2d936
d77e4d2162691fb4d316bd29910bcc269cfc39e4
/src/main/java/com/livekazan/redis/lock/EnableRedisLock.java
2c9ec3841c15e6679c1215dd928bc73121150888
[ "MIT" ]
permissive
livekazan/redis-distributed-lock
df83955911f1ab85ace5b29eba0ad0b3ec7e9139
5bcdf1050cddae6819f5874e9da3b42da6dfc0aa
refs/heads/master
2020-09-24T07:26:10.292345
2019-12-04T09:14:22
2019-12-04T09:14:22
225,701,448
0
0
null
null
null
null
UTF-8
Java
false
false
437
java
package com.livekazan.redis.lock; import java.lang.annotation.Retention; import java.lang.annotation.Target; import org.springframework.context.annotation.Import; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Annotation to auto configure library */ @Target(TYPE) @Retention(RUNTIME) @Import(RedisLockConfiguration.class) public @interface EnableRedisLock { }
556c626880d7c1d763c637f76c2ecb95089b5176
b2d75d7c42614cbc8a704129c88f4fc0cada7f10
/src/com/gao/ming/MarkovDecisionProcess.java
243809eed3027502200a04a22ccd171207b5a2b7
[]
no_license
gaominghui/MDP_Value_Iteraion
6e34fe793e0398b47292dfc0d66930a5d7c60fa8
4858cba9b2cefa9220ac4591f74d29ea271be1d1
refs/heads/master
2021-01-01T16:56:06.604399
2015-09-22T11:21:25
2015-09-22T11:21:25
42,928,351
0
0
null
null
null
null
UTF-8
Java
false
false
19,046
java
package com.gao.ming; /* * Created on Aug 16, 2004 * * $Log: MarkovDecisionProcess.java,v $ * Revision 1.4 2004/08/25 02:19:35 bh * Added a few getters. * Added transit(), getRandomState(), getCoincideState(). * * Revision 1.3 2004/08/24 01:12:26 bh * Changed getNextState and getStartState. Because the serialization has * been done in compileStates, those two functions simply return the right * states in the vector. * * Source clean. * * Revision 1.2 2004/08/23 15:47:00 bh * Major redesign of transition model. * * Revision 1.1 2004/08/19 03:19:19 bh * Tested against the textbook 3x4 world. The transition model is still * not ideal. * */ import java.util.*; /** * A model a 2D Markov Decision Process. * * @author bh */ public class MarkovDecisionProcess { int rows, cols; State[][] grid; Vector reachableStates; int numReachableStates = 0; static final int ACTION_UP = 0; static final int ACTION_RIGHT = 1; static final int ACTION_DOWN = 2; static final int ACTION_LEFT = 3; static final int ACTION_STAY = 4; //stay is not an action per se. static final int numActions = 4; /** * For each action, there is a resulting state. Plus 1 because it's * possible that the action is not allowed at boundaries and the resulting * state is the originating state itself. */ static final int numResultingStates = numActions+1; /** * The actions array contains all valid movements in the environment and * provides a level of abstraction, so the client * of this class doesn't have to worry about specific kinds of actions. */ Action[] actions; /** * Translate two absolute coordinates (r,c) and (r',c') to relative * positions (UP,RIGHT,DOWN,LEFT). Note the order of the relative * positions are the same as the actions[] array. * <pre> * dr dc | dr+1 dc+1 | direction | code * -1 -1 | 0 0 | x | -1 * -1 0 | 0 1 | DOWN | 2 * -1 +1 | 0 2 | x | -1 * 0 -1 | 1 0 | LEFT | 3 * 0 0 | 1 1 | STAY | 4 * 0 +1 | 1 2 | RIGHT | 1 * +1 -1 | 2 0 | x | -1 * +1 0 | 2 1 | UP | 0 * +1 +1 | 2 2 | x | -1 * </pre> */ int[][] abs2relative = {{-1,2,-1},{3,4,1}, {-1,0, 1}}; int[][] rel2absolute = {{1,0}, {0,1}, {-1,0},{0,-1}, {0, 0}}; /** * The transition function is a big (4*N^2) sparse matrix. Reduce the * last dimension to 5, number of actions+1 (stay) */ double[][][] transitionModel; Vector transitions; /** * Variables for the iterator methods: getNextAction() and * getNextState(). */ int currentStateIndex; int currentAction; /** * discount factor */ double gamma=1.0; public MarkovDecisionProcess(int rows, int cols){ this.rows = rows; this.cols = cols; grid = new State[rows][cols]; for(int i=0; i<rows; ++i) for(int j=0; j<cols; ++j){ grid[i][j] = new State(i,j, 0.0, 0.0); } actions = new Action[4]; actions[0] = new Action(ACTION_UP); actions[1] = new Action(ACTION_RIGHT); actions[2] = new Action(ACTION_DOWN); actions[3] = new Action(ACTION_LEFT); reachableStates = new Vector(rows*cols); } /** * Set specified grid point null, meaning unreachable states * * @param row Row number, starting from 1, of the hole. * @param col Column number, starting from 1, of the hole. */ public void punchHole(int row, int col){ // dangling references will be collected by the GC grid[row-1][col-1] = null; } /** * For testing only. * @param r * @param c * @return */ public State getState(int r, int c){ return grid[r-1][c-1]; } /** * the following three methods ({@link #countReableSize} and {@link #getNextReachableState} * perform a scanline order travesal of the environment. The order of * the traversal can be arbitrary. * * @return Start state. */ public State getStartState() { currentStateIndex = 0; return (State)reachableStates.get(0); } /** * The function is actually part of construction of this object. Better * to put it explicitly in the constructor, instead of wishing the user * to call this voluntarily. * It serializes all the states (in a 2D array) into a vector and initializing * the transition model (a 3D array). * */ public void compileStates() { State s; int index = 0; reachableStates.clear(); for(int i=0; i<rows; ++i) for(int j=0; j<cols; ++j) { s = grid[i][j]; // A hole if(s == null) continue; s.index = index; index ++; reachableStates.add(s); } // Allocate space for the transition model. // The size of the array is based on the assumption that // only numActions of states (s') can be reached from state s, // although at first glance, the size is index*numActions*index. // The size of last dimension is numActions+1 is because we // need to consider stay too. transitionModel = new double[index][numActions][numResultingStates]; // The following is unnecessary. But that Java does it for us // doesn't mean we shouldn't do it, for the correctness of this // model for(int i=0; i<index; ++i) for(int j=0; j<numActions; ++j) for(int k=0; k<numResultingStates; ++k) transitionModel[i][j][k] = 0.; // A list of probability-state pairs. See Transition.java transitions = new Vector(); this.numReachableStates = index; } public int getReachableSize() { return numReachableStates; } /** * Get next reachable state following a scanline travesal. Any state * other than a hole is reachable. * * @return Next reachable state, <tt>null</tt> if no more state to visit. */ public State getNextState() { currentStateIndex ++; if(currentStateIndex == numReachableStates) return null; else return (State)reachableStates.get(currentStateIndex); } /** * Because only (in theory) this class know the details of Action, this * method belongs inside the MDP class. * * @return A random valid action. */ public Action getRandomAction() { // Don't need a fancy RNG here. Use Math.random() int a = (int)Math.round(Math.random()*numActions-0.5); return actions[a]; } /** * Generate a proper policy, which of course isn't necessarily optimal. * A multi-path maze tracing problem. */ public void generateProperPolicy(){ Stack stack = new Stack(); for(State s=getStartState(); s!=null; s=getNextState()){ if(s.action != null) continue; stack.push(s); while(!stack.empty()) { State currentState = (State)stack.peek(); currentState.visited = true; int a; for(a=0; a<numActions; ++a){ if(currentState.actionTaken[a]) continue; currentState.actionTaken[a] = true; State nextState = move(currentState, a); if(nextState == currentState) continue; else if(/*nextState.action != null||*/nextState.terminate){ currentState.action = actions[a]; stack.pop(); break; }else if(nextState.visited) continue; else { currentState.action = actions[a]; stack.push(nextState); break; } } if(a == 4){ currentState.visited = false; for(int i=0; i<4; ++i) currentState.actionTaken[i]=false; stack.pop(); } } } } /** * This function is entirely for debugging purpose. It requires the caller * to know about the internal (action coding) of this class. * * @param row The row number of the state. * @param col The col number of the state. * @param a Action coding. */ public void setAction(int row, int col, int a){ grid[row-1][col-1].action = actions[a]; } /** * The function is for setting the action of the state * @param s The state. * @param a The action. */ public void setAction(State s, Action a) { if(s.terminate) return; s.action = a; } /** * * @param s The state. * @return The action of state s. */ public Action getAction(State s) { return s.action; } /** * Iterator. * @return The first valid action. */ public Action getStartAction() { currentAction = 0; return actions[0]; } /** * Go through all possible actions. * @return Next applicable actions, <tt>null</tt> if no more action's possible. */ public Action getNextAction() { currentAction ++; if(currentAction == numActions) return null; else return actions[currentAction]; } /** * Set a state to terminate state. * @param row Row number of the state. * @param col Column number of the state. */ public void setTerminateState(int row, int col) { grid[row-1][col-1].setTerminate(); grid[row-1][col-1].utility = grid[row-1][col-1].reward; } /** * This function is only intended for setting up the process. An * algorithm (user of this class) should use the next one. * @param row Row number, starting from 1, not 0. * @param col Column number, starting from 1. * @param r Reward. */ public void setReward(int row, int col, double r) { State s = grid[row-1][col-1]; // If s is null, s is a hole. So no warning is issued. if(s != null){ s.reward = r; // for terminate states, the (initial) reward value // is its utility value. Remember this function is // used for initilizing the MDP. if(s.terminate) s.utility = r; } } /** * Set reward value. * @param s The state to be set value to. * @param r The reward value. */ public void setReward(State s, double r) { s.reward = r; } /** * * @param s The state. * @return The reward value of the state. */ public double getReward(State s) { return s.reward; } /** * Set utility of a state. If the state is a terminate state, its * utility value keeps unchanged. * @param s The state. * @param u The utility. */ public void setUtility(State s, double u){ if(s.terminate){ //TODO the assignment is redundant s.utility = s.reward; }else s.utility = u; } /** * Used (solely) by policy evaluation. Setting the utility value of a state. * @param index The index of the state. * @param u The utility value. */ public void setUtility(int index, double u) { ((State)reachableStates.get(index)).utility = u; } /** * @param s The state. * @return The utility value of the state. */ public double getUtility(State s) { return s.utility; } /** * @return Returns the gamma. */ public double getGamma() { return gamma; } /** * @param gamma The gamma to set. */ public void setGamma(double gamma) { this.gamma = gamma; } public void accumTransitionProbability(int r, int c, Action a, int rp, int cp, double prob) { State s = grid[r-1][c-1]; if(s.terminate) return; int nextStateIndex = abs2relative[rp-r+1][cp-c+1]; transitionModel[s.index][a.action][nextStateIndex] += prob; } public void accumTransitionProbability(State s, Action a, State sp, double p) { accumTransitionProbability(s.row+1, s.col+1, a, sp.row+1, sp.col+1, p); } /** * This function is for setting up the transition model. * @param r Row number (starts from 1) of current state. * @param c Column number (starts from 1) of current state. * @param a Action to be taken. * @param rp Row number of next state, after the action is performed. * @param cp Column number of next state. * @param prob The probability of this chain of action: T(s,a,s'). */ public void setTransitionProbability(int r, int c, Action a, int rp, int cp, double prob) { State s = grid[r-1][c-1]; if(s.terminate) return; int nextStateIndex = abs2relative[rp-r+1][cp-c+1]; transitionModel[s.index][a.action][nextStateIndex] = prob; } /** * Set T(s,a,s'). * @param s The source state. * @param a The action to be taken. * @param sp The destination state. * @param p The probability. */ public void setTransitionProbability(State s, Action a, State sp, double p) { setTransitionProbability(s.row+1, s.col+1, a, sp.row+1, sp.col+1, p); } /** * This is the transition function, T(s,a,s') in the textbook. * * @param s The current state. * @param a Action to be taken. * @return A list of (probability,next-state) pairs. */ public Vector getTransition(State s, Action a) { transitions.clear(); // If s is a terminate state, no transition function for it. // Return an empty vector. if(s.terminate) return transitions; double p; State nextState; for(int i=0; i<numResultingStates; ++i) { p = transitionModel[s.index][a.action][i]; // i is also the kind of action needs to be taken to // get to the next state. // nextState = grid[rel2absolute[i][0]][rel2absolute[i][1]] // won't work, because we have to consider boundaries. Whereas // the method move() takes care of that. // Now, that i, which refers to resulting states, happens to // be action types as well, is a very unfortunate design. It // makes the method move() to do extra work (STAY). // A slightly better way to call move() is move(s, actions[i].action) // or move(s, actions[i]) if we define an overloaded move(). nextState = move(s, i); transitions.add(new Transition(p, nextState)); } return transitions; } /** * Display the MDP in simple text format. * */ public void dump(){ for(int i=rows-1; i>=0; --i){ for(int j=0; j<cols; ++j){ if(grid[i][j] != null){ if(grid[i][j].terminate) System.out.print(grid[i][j].reward+"/"+grid[i][j].utility+"* "); else System.out.print(grid[i][j].reward+"/"+grid[i][j].utility + " "); } else System.out.print(" N "); } System.out.println(); } } /** * Display the MDP in an HTML table. * @param showHeader Whether to print out HTML headers. * */ public void dumpHTML(boolean showHeader) { if(showHeader) System.out.println("<html><head></head><body>"); System.out.println("<table border=1 cellspacing=0 cellpadding=3>"); for(int i=rows-1; i>=0; --i){ System.out.println("<tr>"); for(int j=0; j<cols; ++j){ System.out.print("<td>"); if(grid[i][j] != null){ if(grid[i][j].terminate) System.out.print(grid[i][j].utility); else System.out.print(grid[i][j].utility+":"+grid[i][j].action); } else System.out.print(" N "); System.out.println("</td>"); } System.out.println("</tr>"); } System.out.println("</table>"); if(showHeader) System.out.println("</body></html>"); } /** * For testing only. * */ public void dumpTransitionModel() { System.out.println("<html><head></head><body>"); System.out.println("<table border=1 cellspacing=0 cellpadding=3>"); State s; for(int i=rows-1; i>=0; --i){ System.out.println("<tr>"); for(int j=0; j<cols; ++j){ System.out.print("<td>"); if((s=grid[i][j]) != null){ for(int a=0; a<4; ++a) { Action act = actions[a]; Vector t=getTransition(s, act); System.out.print(act+":"); for(int k=0; k<t.size(); k++){ Transition tr=(Transition)t.get(k); System.out.print(tr.probability+"/"); } System.out.println("<br>"); } } else System.out.print(" N "); System.out.println("</td>"); } System.out.println("</tr>"); } System.out.println("</table></body></html>"); } public State move(State s, Action a) { return move(s, a.action); } /** * Move on the environment. It'll never return a null (a unreachable * state). * * @param s Current state. * @param action Type of movement. * @return Next state after the movement. */ public State move(State s, int action){ int row = s.row; int col = s.col; if (action == ACTION_STAY) return s; // If the movement is not possible, it stays where it was. // This is a hidden rule and should be revealed to the outside // world through some interface(s). // If there's a hole, it'll return null. All taken care of // by grid[][]. switch (action) { case ACTION_UP: row += 1; if(row > rows-1) row = rows-1; break; case ACTION_RIGHT: col += 1; if(col > cols-1) col = cols-1; break; case ACTION_DOWN: row -= 1; if(row < 0) row = 0; break; case ACTION_LEFT: col -= 1; if(col < 0) col = 0; break; } // if the destination is a hole, stay where it was. if(grid[row][col] == null) return s; else return grid[row][col]; } /** * @return Total number of valid actions. */ public int getNumberActions() { return numActions; } /** * This is like move(), only taking the transition model into account. * That is, if you move upwards, you could end up at the cell to the * left. * @param s Current state. * @param a Action to be taken. * @return Next state. */ public State transit(State s, Action a) { double[] dist = new double[numResultingStates]; // Create the distribution of T(s,a,s') int sIndex = s.getIndex(); int aIndex = a.getIndex(); dist[0] = transitionModel[sIndex][aIndex][0]; for(int i=1; i<numResultingStates; ++i) dist[i] = dist[i-1] + transitionModel[sIndex][aIndex][i]; // Pull out a value (probability) from a unifrom distribution // Hopefully. double p = Math.random(); int next=0; if(p<dist[0]) { // Next state is the one UP next = 0; }else { for(int i=1; i<numResultingStates; ++i){ if(dist[i-1]<=p && p<=dist[i]){ next = i; break; } } } int dr = rel2absolute[next][0]; int dc = rel2absolute[next][1]; // Don't have to use move() for the bounced-back situations // It's all in the transition model already. return grid[s.row+dr][s.col+dc]; } /** * * @return Number of rows of this MDP. */ public int getRows() { return rows; } /** * @return Number of columns of this MDP. */ public int getCols() { return cols; } /** * Copy the the layout of this MDP, meaning the size, holes and * terminate states. * * @return A new MDP */ public MarkovDecisionProcess copyLayout() { MarkovDecisionProcess newMDP = new MarkovDecisionProcess(this.rows, this.cols); for(int i=0; i<rows; ++i) for(int j=0; j<cols; ++j) { if(this.grid[i][j] == null) newMDP.grid[i][j] = null; else if(this.grid[i][j].terminate) { newMDP.grid[i][j].setTerminate(); } } newMDP.compileStates(); return newMDP; } /** * Given a state belongs to another MDP, find the state of this * MDP at the same position. * @param otherState * @return */ public State getCoincideState(State otherState) { int r = otherState.getRow(); int c = otherState.getCol(); return this.grid[r][c]; } /** * @return A random reachable state. */ public State getRandomReachableState() { int i = (int)(Math.random()*numReachableStates); return (State)reachableStates.get(i); } }
4e5c6a95184c38883fa3e54c39f1a6a88b17d9b2
42ad1cc380aacff4ec8091f6b6873971c16ff9f3
/search-api/src/main/java/com/finanse/search/api/EsConfig.java
2dcb759ab6dc1a16a93da86bab95ed3f75b25252
[]
no_license
dudkos/expenses
c850c059180e86949d2431aa502201b807644773
7c49776c15df3228493849a84bcdb08431dc6871
refs/heads/master
2021-09-06T00:01:16.853871
2018-01-31T20:56:29
2018-01-31T20:56:29
112,942,253
0
0
null
null
null
null
UTF-8
Java
false
false
1,184
java
package com.finanse.search.api; import com.finanse.search.api.util.SearchApiConstants; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; import org.elasticsearch.transport.client.PreBuiltTransportClient; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.net.InetAddress; import java.net.UnknownHostException; @Configuration public class EsConfig implements SearchApiConstants { @Value("${elasticsearch.host}") private String host; @Value("${elasticsearch.port}") private int port; @Value("${elasticsearch.cluster.name}") private String clusterName; @Bean public TransportClient transportClient() throws UnknownHostException { Settings settings = Settings.builder().put(CLUSTER_NAME, clusterName).build(); return new PreBuiltTransportClient(settings) .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(host), port)); } }
e8a7ea07ebbde5e5996bf717ad87b5c5698745c6
76f1515ec9d6a1fad9e8d0d7424c0ffcd7f58b62
/app/src/main/java/com/example/marketapp/fragment/OffersFragment.java
05597853c9da4a49525358cd059beed86eb6c4e8
[]
no_license
DuyNguyenDeveloper/MarketApp
bace0998df82356d4ed6bca83e7fe3ff895d05be
53826cecd363815891e36990f6241292bd59d7af
refs/heads/master
2023-08-29T15:58:31.916944
2021-09-28T03:49:26
2021-09-28T03:49:26
410,766,856
1
0
null
2021-11-07T12:48:54
2021-09-27T06:28:08
Java
UTF-8
Java
false
false
2,082
java
package com.example.marketapp.fragment; import android.os.Bundle; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.marketapp.R; /** * A simple {@link Fragment} subclass. * Use the {@link OffersFragment#newInstance} factory method to * create an instance of this fragment. */ public class OffersFragment 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; public OffersFragment() { // 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 OffersFragment. */ // TODO: Rename and change types and number of parameters public static OffersFragment newInstance(String param1, String param2) { OffersFragment fragment = new OffersFragment(); 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_offers, container, false); } }
8cee2b2b92115803d6a78779907873500dccc0af
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/2.6-stable4/code/base/common/tests.unit/com/tc/config/schema/repository/StandardBeanRepositoryTest.java
e77b43eb3885f0b93b44d67a80313892452e9dc1
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
6,233
java
/* * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved. */ package com.tc.config.schema.repository; import org.apache.xmlbeans.SchemaType; import org.apache.xmlbeans.XmlException; import org.apache.xmlbeans.XmlObject; import org.apache.xmlbeans.XmlOptions; import com.tc.config.schema.MockSchemaType; import com.tc.config.schema.MockXmlObject; import com.tc.config.schema.listen.MockConfigurationChangeListener; import com.tc.config.schema.validate.MockConfigurationValidator; import com.tc.test.TCTestCase; import com.tc.util.TCAssertionError; /** * Unit test for {@link StandardBeanRepository}. */ public class StandardBeanRepositoryTest extends TCTestCase { private static class MyXmlObject extends MockXmlObject { // DO NOT REMOVE THIS TO FIX THE WARNING. We have to have public static final 'type' fields on both MockXmlObject // and MyXmlObject, because that's the way XMLBeans does it; various classes use reflection to find this, and so // you'll break tests if you change it. If you know of a way to simply get Eclipse to ignore the warning, // please, by all means, do so. public static final SchemaType schemaType = new MockSchemaType(); private boolean returnedValidate; public MyXmlObject() { super(); this.returnedValidate = true; } public void setReturnedValidate(boolean validate) { this.returnedValidate = validate; } public boolean validate(XmlOptions arg0) { return this.returnedValidate; } } private StandardBeanRepository repository; private MockConfigurationChangeListener listener1; private MockConfigurationChangeListener listener2; private MockConfigurationValidator validator1; private MockConfigurationValidator validator2; public void setUp() throws Exception { this.repository = new StandardBeanRepository(MyXmlObject.class); this.listener1 = new MockConfigurationChangeListener(); this.listener2 = new MockConfigurationChangeListener(); this.validator1 = new MockConfigurationValidator(); this.validator2 = new MockConfigurationValidator(); } public void testConstruction() throws Exception { try { new StandardBeanRepository(null); fail("Didn't get NPE on no required class"); } catch (NullPointerException npe) { // ok } } public void testComponents() throws Exception { this.repository.ensureBeanIsOfClass(MyXmlObject.class); this.repository.ensureBeanIsOfClass(MockXmlObject.class); this.repository.ensureBeanIsOfClass(Object.class); try { this.repository.ensureBeanIsOfClass(String.class); fail("Didn't get TCAE on wrong bean class"); } catch (TCAssertionError tcae) { // ok } } public void testAll() throws Exception { MyXmlObject bean1 = new MyXmlObject(); MyXmlObject bean2 = new MyXmlObject(); try { this.repository.setBean(bean1, null); fail("Didn't get NPE on no source"); } catch (NullPointerException npe) { // ok } try { this.repository.setBean(bean1, ""); fail("Didn't get IAE on empty source"); } catch (IllegalArgumentException iae) { // ok } try { this.repository.setBean(bean1, " "); fail("Didn't get IAE on blanksource"); } catch (IllegalArgumentException iae) { // ok } try { this.repository.setBean(new MockXmlObject(), "foobar"); fail("Didn't get TCAE on wrong class"); } catch (TCAssertionError tcae) { // ok } try { this.repository.addListener(null); fail("Didn't get NPE on no listener"); } catch (NullPointerException npe) { // ok } try { this.repository.addValidator(null); fail("Didn't get NPE on no validator"); } catch (NullPointerException npe) { // ok } this.repository.setBean(bean1, "foobar"); assertSame(bean1, this.repository.bean()); this.repository = new StandardBeanRepository(MyXmlObject.class); this.repository.addListener(listener1); this.repository.addListener(listener2); this.repository.addValidator(validator1); this.repository.addValidator(validator2); checkNoListeners(); this.repository.setBean(bean1, "foobar"); checkListeners(null, bean1); this.repository.setBean(bean2, "baz"); checkListeners(bean1, bean2); this.repository.setBean(null, "bonk"); checkListeners(bean2, null); this.repository.setBean(bean2, "bonk"); checkListeners(null, bean2); bean1.setReturnedValidate(false); try { this.repository.setBean(bean1, "foo"); fail("Didn't get XmlException on failed schema validation"); } catch (XmlException xmle) { // ok } assertSame(bean2, this.repository.bean()); checkNoListeners(); bean1.setReturnedValidate(true); validator1.setThrownException(new XmlException("fooBAR")); try { this.repository.setBean(bean1, "quux"); fail("Didn't get XmlException on failed validator validation"); } catch (XmlException xmle) { assertContains("fooBAR", xmle.getMessage()); } assertSame(bean2, this.repository.bean()); checkNoListeners(); validator1.setThrownException(null); validator2.setThrownException(null); this.repository.setBean(bean1, "Whatever"); assertSame(bean1, this.repository.bean()); checkListeners(bean2, bean1); } private void checkNoListeners() { assertEquals(0, this.listener1.getNumConfigurationChangeds()); assertEquals(0, this.listener2.getNumConfigurationChangeds()); } private void checkListeners(XmlObject expectedOld, XmlObject expectedNew) { assertEquals(1, this.listener1.getNumConfigurationChangeds()); assertSame(expectedOld, this.listener1.getLastOldConfig()); assertSame(expectedNew, this.listener1.getLastNewConfig()); assertEquals(1, this.listener2.getNumConfigurationChangeds()); assertSame(expectedOld, this.listener2.getLastOldConfig()); assertSame(expectedNew, this.listener2.getLastNewConfig()); this.listener1.reset(); this.listener2.reset(); } }
[ "hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
hhuynh@7fc7bbf3-cf45-46d4-be06-341739edd864
2e2a2832e31c62fcb650b6d261f2d5722a324bbb
c503ce3a4b293bec215742cdda21cf850b5fb919
/src/main/java/net/fast/travel/blocks/TeleporterEntity.java
7a500221f38a04818338f81af8ad6d682411a234
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
wiauxb/FastTravel
550f4efb72987a516713305aefc2c2e02397aee6
03740ee28088e3935410d65163a2180ce38dfc4a
refs/heads/master
2023-04-24T14:02:11.510059
2021-05-14T15:07:49
2021-05-14T15:07:49
288,413,534
0
0
null
null
null
null
UTF-8
Java
false
false
2,269
java
package net.fast.travel.blocks; import net.fast.travel.FastTravel; import net.minecraft.block.BlockState; import net.minecraft.block.entity.BlockEntity; import net.minecraft.nbt.CompoundTag; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.Identifier; import net.minecraft.util.math.BlockPos; import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.RegistryKey; import net.minecraft.world.World; public class TeleporterEntity extends BlockEntity { private RegistryKey<World> targetWorldKey = World.OVERWORLD; private BlockPos targetPos = BlockPos.ORIGIN; public TeleporterEntity() { super(FastTravel.TELEPORTER_ENTITY); } @Override public CompoundTag toTag(CompoundTag tag) { super.toTag(tag); tag.putInt("targetX", targetPos.getX()); tag.putInt("targetY", targetPos.getY()); tag.putInt("targetZ", targetPos.getZ()); tag.putString("targetWorld", targetWorldKey.getValue().toString()); return tag; } @Override public void fromTag(BlockState state, CompoundTag tag) { super.fromTag(state, tag); int x = tag.getInt("targetX"); int y = tag.getInt("targetY"); int z = tag.getInt("targetZ"); String strWorldKey = tag.getString("targetWorld"); targetWorldKey = RegistryKey.of(Registry.DIMENSION, new Identifier(strWorldKey)); targetPos = new BlockPos(x, y, z); } public TeleporterEntity getTarget(World world) throws IllegalAccessException { if (targetWorldKey == World.OVERWORLD && targetPos == BlockPos.ORIGIN) return null; if(world instanceof ServerWorld){ World targetWorld = ((ServerWorld) world).getServer().getWorld(targetWorldKey); return FastTravel.TELEPORTER_ENTITY.get(targetWorld, targetPos); } else { throw new java.lang.IllegalAccessException("BlockEntity should be used by logical server"); } } public void setTarget(TeleporterEntity target) { if (target == null) { throw new NullPointerException(); } targetWorldKey = target.getWorld().getRegistryKey(); targetPos = target.getPos(); markDirty(); } }
53f3af0753a8ec5567abc8df8bf036ec68a3872d
5a72071f7edfcdbbd850bce7e067caad1fe07a61
/permission/src/main/java/com/mmall/model/SysRoleAcl.java
8e6b42d55d2b1e40dcf9138d464a1981f595a3a9
[]
no_license
yashuabinbin/authDemo
42dd2874c16a35c8d9dc1f95a1bccf8c765d6cc9
1546b8292c5f2d7608648cf8d1586908b13560da
refs/heads/master
2021-09-07T19:46:50.690264
2018-02-28T03:29:44
2018-02-28T03:29:44
119,020,392
0
0
null
null
null
null
UTF-8
Java
false
false
383
java
package com.mmall.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.Date; @Data @NoArgsConstructor @AllArgsConstructor public class SysRoleAcl { private Integer id; private Integer roleId; private Integer aclId; private String operator; private Date operateTime; private String operateIp; }
802600284f21235c707f1ec034c4c964bf2cff56
a24fa1f3927e33d3cbedb0d2573272f7d1b50d36
/src/main/java/cn/ubibi/jettyboot/demotest/controller/parser/CurrentUser.java
be968cbd40110bbe290b54765f243a188de246aa
[]
no_license
linushp/jettyboot-demo
239d096b1430171e670d8186c3bbe6c8a545f847
3606ae1b773491830934ab6d9c9b7019edf88a83
refs/heads/master
2020-03-09T17:36:02.153408
2018-10-01T14:34:39
2018-10-01T14:34:39
128,912,244
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
package cn.ubibi.jettyboot.demotest.controller.parser; public class CurrentUser { private String name; public CurrentUser(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
0b40fa82020f53696a642b3967f970eebfcc12f8
27e1c52b1cdeda25cd2e2f15e1049cb0cfb990e0
/phase2/physicsEngine/simulator/Simulator.java
d3010f9a4c37e2958d5230b92e9d2ea2ae6782e0
[]
no_license
ovmo/titan
ce0aef3a113781117b13accd9c49ac4ac9c1a5c5
0704a6d1e3f6988f4eb3808cdaba0631cd00e36d
refs/heads/main
2023-04-05T20:31:09.516708
2021-05-11T07:48:18
2021-05-11T07:48:18
347,131,767
1
3
null
2021-03-19T07:55:39
2021-03-12T16:39:08
Java
UTF-8
Java
false
false
3,836
java
package simulator; import titan.Vector3dInterface; public class Simulator { static boolean PRINT = true; static boolean DETAIL = false; public static void main(String args[]){ //initialize positions of all objects in solarSystem PlanetStart2020 planetStart2020 = new PlanetStart2020(); //new probeSimulator ProbeSimulator probeSimulator = new ProbeSimulator(); //initial parameters to start the mission - 20 seems to be the limit for h double tf = 31536000; //final time point of the mission ins seconds (31636000s = one year) double h = 20; //step size with which everything is updated (86400s = 1 day) double initVel = 60000; //initial (undirected) velocity of the probe in m/s //calculate take off point of the probe TakeOffPoint takeOffPoint = new TakeOffPoint(); takeOffPoint.calculateTakeOffPoint(initVel, (Vector3d) Planet.planets[8].posVector); Vector3dInterface p0 = takeOffPoint.startPos; //initial position here Vector3dInterface v0 = takeOffPoint.startVel; //initial velocity here //calculate trajectory of the probe Vector3dInterface[] trajectory = probeSimulator.trajectory(p0, v0, tf, h); //retrieve positions of earth and titan Vector3d[] titanPos = probeSimulator.titanPos; if(PRINT){ System.out.println(); System.out.println(); System.out.println("START OF MISSION TO TITAN"); System.out.println(); System.out.println(); System.out.println("tf = " + tf); System.out.println("step size = " + h); System.out.println(); System.out.println(); System.out.println("position of earth at start: " + Planet.planets[3].posVector); System.out.println("position of titan at start: " + titanPos[0]); System.out.println(); System.out.println(); System.out.println("probe launched at: \nposition: " + takeOffPoint.startPos.toString() + "\nvelocity: " + initVel + ", " + takeOffPoint.startVel.toString()); System.out.println(); System.out.println(); System.out.println("probe at start: " + trajectory[0].toString()); System.out.println("titan at start: " + titanPos[0]); System.out.println("euclidean distance probe to titan at start: " + trajectory[0].dist(titanPos[0])); System.out.println("distance vector probe to titan at start: " + trajectory[0].sub(titanPos[0])); System.out.println(); System.out.println(); System.out.println("probe at end: " + trajectory[trajectory.length-1].toString()); System.out.println("titan at end: " + titanPos[titanPos.length-1]); System.out.println("euclidean distance probe to titan at end: " + trajectory[trajectory.length-1].dist(titanPos[titanPos.length-1])); System.out.println("distance vector probe to titan at end: " + trajectory[trajectory.length-1].sub(titanPos[titanPos.length-1])); System.out.println(); System.out.println(); if(DETAIL) { System.out.println("DETAILED TRAJECTORY"); System.out.println(); System.out.println(); for (int i = 0; i < trajectory.length; i++) { if (i % 1000 == 0) { //print every 1 days System.out.println("probe at " + i + ": " + trajectory[i].toString()); System.out.println("titan at " + i + ": " + titanPos[i]); System.out.println("euclidean distance probe to titan: " + trajectory[i].dist(titanPos[i])); } } } } } }
d42777f6ca509d471bac7c0647490278d7b682ba
5f05d45c2e0c95390f8dbc002b5ae1ad74878210
/Main.java
eb60f9684ea372e541d11f3923da9a41c8d51a91
[]
no_license
lucNovais/PopUp-Simulator
58230fd5b005968de931a8572c9a48d902e38183
cad73ebcaef896c27ec256ab7dc6503af7d35800
refs/heads/master
2022-03-27T00:13:58.554802
2019-10-14T23:32:29
2019-10-14T23:32:29
213,942,855
0
0
null
null
null
null
UTF-8
Java
false
false
159
java
package PopUp-Simulator; public class Main { public static void main(String[] args) { Window window = new Window("PopUp Simulator!"); } }
eb6aa9ef02e5bade80f108936eb9ccbb4a2aff6e
1af04c36ae6e2d44a5c3129db117873a3e1c0a70
/src/main/java/com/leapcode/service/SpeakerService.java
579968706eb034a3d967a8a43262a5e09ba78d21
[]
no_license
dannycyf9/SpringHelloWorldRepo
feefc4f3c575ee56048b5ba2379a8ee065c1c986
9484ff39ead55464ce06a9cb73ca6d2b7fcfdfb5
refs/heads/main
2023-03-15T05:51:52.684586
2021-02-28T02:19:28
2021-02-28T02:19:28
342,999,606
0
0
null
2021-02-28T02:19:30
2021-02-28T01:57:22
Java
UTF-8
Java
false
false
165
java
package com.leapcode.service; import com.leapcode.model.Speaker; import java.util.List; public interface SpeakerService { List<Speaker> findAll(); }
bea30c66f70a7b565149f8041d0eaa91caad7aec
d1e27692c858fbd3a2433fd6e8ed15f86050a642
/Renowalk_Backup_09292016/HomeDepot_Renowalk/src-botched/com/qc/IVersionedEntitiesFactory.java
260ba897b7b4823c1a5c12c230f31c832b655842
[]
no_license
saikrishna89/IndeedProject
7d734aebd18713e48f2db7460503a7892d1b19a1
e68d284e5f0294af42c3247905e98909269018de
refs/heads/master
2021-01-23T03:34:35.490743
2017-12-21T06:07:07
2017-12-21T06:07:07
86,095,699
0
0
null
null
null
null
UTF-8
Java
false
false
2,153
java
package com.qc ; import com4j.*; /** * For HP use. Extends a factory by providing services for version control. */ @IID("{87B013CA-DE17-495F-B9D5-D8B7901FCB4D}") public interface IVersionedEntitiesFactory extends Com4jObject { // Methods: /** * <p> * For HP use. Returns the specified version of the item. Applies only to the Test entity. * </p> * @param itemKey Mandatory java.lang.Object parameter. * @param versionNumber Mandatory int parameter. * @return Returns a value of type com4j.Com4jObject */ @DISPID(1) //= 0x1. The runtime will prefer the VTID if present @VTID(7) @ReturnValue(type=NativeType.Dispatch) com4j.Com4jObject viewVersion( @MarshalAs(NativeType.VARIANT) java.lang.Object itemKey, int versionNumber); /** * <p> * Returns the number of entities of the type managed by this factory that are checked out by the current user. * </p> * <p> * Getter method for the COM property "CheckedOutEntitiesCount" * </p> * @return Returns a value of type int */ @DISPID(2) //= 0x2. The runtime will prefer the VTID if present @VTID(8) int checkedOutEntitiesCount(); /** * <p> * For HP use. Multiple check-in of entities. * </p> * @param pList Mandatory com.qc.IList parameter. * @param comments Mandatory java.lang.String parameter. */ @DISPID(3) //= 0x3. The runtime will prefer the VTID if present @VTID(9) void checkInEntities( com.qc.IList pList, java.lang.String comments); /** * <p> * For HP use. Multiple check out of entities. * </p> * @param pList Mandatory com.qc.IList parameter. * @param comments Mandatory java.lang.String parameter. */ @DISPID(4) //= 0x4. The runtime will prefer the VTID if present @VTID(10) void checkOutEntities( com.qc.IList pList, java.lang.String comments); /** * <p> * For HP use. Multiple undo check out of entities. * </p> * @param pList Mandatory com.qc.IList parameter. */ @DISPID(5) //= 0x5. The runtime will prefer the VTID if present @VTID(11) void undoCheckOutEntities( com.qc.IList pList); // Properties: }
91406f765ff391e04d39e62bb1e3f128a729a6c7
2ec905b5b130bed2aa6f1f37591317d80b7ce70d
/ihmc-model-file-loader/src/main/java/us/ihmc/modelFileLoaders/SdfLoader/xmlDescription/package-info.java
5a89a74f48c2f7e4e36851d97063cc4a20a9d898
[ "Apache-2.0" ]
permissive
ihmcrobotics/ihmc-open-robotics-software
dbb1f9d7a4eaf01c08068b7233d1b01d25c5d037
42a4e385af75e8e13291d6156a5c7bebebbecbfd
refs/heads/develop
2023-09-01T18:18:14.623332
2023-09-01T14:16:26
2023-09-01T14:16:26
50,613,360
227
91
null
2023-01-25T21:39:35
2016-01-28T21:00:16
Java
UTF-8
Java
false
false
60
java
package us.ihmc.modelFileLoaders.SdfLoader.xmlDescription;
4ea09631a45f03add7c76f104207ba50be5b27c4
e72b064b2d7d83b51e420618a8ec4ee4e028eb0d
/src/edu/upenn/cis455/indexer/distributor/IndexerNodeFactory.java
c316dd07bcaa630f76092119750255e4c572b629
[]
no_license
jonleung/Ferrari
cf9bae174fe11adab1d3920ebc2460ab458e6910
8fbb03207d1a77e1dc19b31a644eae3362f4a08f
refs/heads/master
2021-01-06T20:45:51.968033
2013-04-29T23:04:56
2013-04-29T23:04:56
9,395,622
0
0
null
null
null
null
UTF-8
Java
false
false
3,438
java
package edu.upenn.cis455.indexer.distributor; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import edu.upenn.cis455.storage.NodeIDAccess; import rice.p2p.commonapi.Node; import rice.environment.Environment; import rice.pastry.NodeHandle; import rice.pastry.Id; import rice.pastry.NodeIdFactory; import rice.pastry.PastryNode; import rice.pastry.socket.SocketPastryNodeFactory; import rice.pastry.standard.RandomNodeIdFactory; /** * A simple class for creating multiple Pastry nodes in the same * ring * * * @author Nick Taylor * */ public class IndexerNodeFactory { Environment env; NodeIdFactory nidFactory; SocketPastryNodeFactory factory; NodeHandle bootHandle; int createdCount = 0; int port; // InetSocketAddress boot; IndexerNodeFactory(int port) { this(new Environment(), port); } public IndexerNodeFactory(int port, InetSocketAddress bootAddress) { this(port); // boot = bootAddress; bootHandle = factory.getNodeHandle(bootAddress); } IndexerNodeFactory(Environment env, int port) { this.env = env; this.port = port; nidFactory = new RandomNodeIdFactory(env); try { factory = new SocketPastryNodeFactory(nidFactory, port, env); } catch (java.io.IOException ioe) { ioe.printStackTrace(); throw new RuntimeException(ioe.getMessage(), ioe); } } public NodeHandle getBootHandle(){ return bootHandle; } public Node getNode() { try { synchronized (this) { if (bootHandle == null && createdCount > 0) { InetAddress localhost = InetAddress.getLocalHost(); InetSocketAddress bootaddress = new InetSocketAddress(localhost, port); bootHandle = factory.getNodeHandle(bootaddress); } } PastryNode node = null; String nodeID = null; NodeIDAccess accessID = new NodeIDAccess(ReverseIndexCollectionNode.db.getEnv()); nodeID = accessID.getID("storedID"); if(nodeID == null) { node = factory.newNode(bootHandle); nodeID = node.getId().toStringFull(); accessID.putID("storedID", nodeID); } else { //Constructor, which takes the output of a toStringFull() and converts it back into an Id. Id id = Id.build(nodeID); node = factory.newNode(bootHandle, id); } // PastryNode node = factory.newNode(bootHandle); /* while (!node.isReady()) { Thread.sleep(100); }*/ synchronized (node) { while (!node.isReady() && ! node.joinFailed()) { node.wait(500); if (node.joinFailed()) { throw new IOException("Could join the FreePastry ring. Reason:"+node.joinFailedReason()); } } } synchronized (this) { ++createdCount; } return node; } catch (Exception e) { throw new RuntimeException(e.getMessage(), e); } } public void shutdownNode(Node n) { ((PastryNode) n).destroy(); } public Id getIdFromBytes(byte[] material) { return Id.build(material); } public Id getIdFromString(String keyString) { MessageDigest md = null; try { md = MessageDigest.getInstance("SHA"); } catch (NoSuchAlgorithmException e) { // TODO Auto-generated catch block e.printStackTrace(); } byte[] content = keyString.getBytes(); md.update(content); byte shaDigest[] = md.digest(); //rice.pastry.Id keyId = new rice.pastry.Id(shaDigest); return Id.build(shaDigest); } }
1cf25562ca8ea935bbfdf5d25d9b545f988dac9c
14fe9f16128c68dff19ced5b1c5a4ab7c8d1a06f
/Registros/src/dao/TabelaDao.java
8cdcf2beb83d3d796b5073aac9913cbc6eaa5908
[]
no_license
nynonet/Java
b69e01f63fd31ac7c9ad34c5fc02dfcf14f2cc85
ee6ad68d8413cafe3ef328dea8bc01d9abefac9a
refs/heads/master
2021-01-18T16:45:50.021193
2019-08-30T20:17:35
2019-08-30T20:17:35
86,764,588
1
0
null
null
null
null
UTF-8
Java
false
false
4,455
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 dao; import Model.Tabela; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Calendar; import java.util.List; /** * * @author Andeson */ public class TabelaDao implements Dao<Tabela> { Connection con; public TabelaDao(Connection con) { this.con = con; } @Override public void Inserir(Tabela obj) { String sql = "INSERT INTO tabela (nome, valor,ativo, data) " + "VALUES (?,?,?,?)"; try { PreparedStatement ps = con.prepareStatement(sql); ps.setString(1, obj.getNome()); ps.setDouble(2, obj.getValor()); ps.setBoolean(3, obj.isAtivo()); Date d = new Date( obj.getData().getInstance().getTime().getTime() ); System.out.println("Antes da Hora D "+ d.toString()); ps.setDate(4, d); ps.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } } @Override public void Atualizar(Tabela obj) { String sql = "UPDATE tabela SET nome =?, valor =?, ativo =?, data=? " + " WHERE id = ?"; try { PreparedStatement ps = con.prepareStatement(sql); ps.setString(1, obj.getNome()); ps.setDouble(2, obj.getValor()); ps.setBoolean(3, obj.isAtivo()); ps.setDate(4, new Date( obj.getData().getInstance().getTimeInMillis() )); ps.setInt(5, obj.getId()); ps.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } } @Override public void Deletar(Tabela obj) { String sql = "DELETE FROM tabela WHERE id = ?"; try { PreparedStatement ps = con.prepareStatement(sql); ps.setInt(1, obj.getId()); ps.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } } @Override public List<Tabela> getRegistro() { String SQL = "SELECT id, nome, valor, ativo, data FROM tabela"; List<Tabela> retorno = new ArrayList<>(); try { PreparedStatement ps = con.prepareStatement(SQL); ResultSet rs = ps.executeQuery(); while (rs.next()) { Tabela t = new Tabela(); t.setAtivo(rs.getBoolean("ativo")); t.setId(rs.getInt("id")); t.setNome(rs.getString("nome")); t.setValor(rs.getDouble("valor")); Calendar d = Calendar.getInstance(); d.setTime( rs.getDate("data") ); t.setData(d); retorno.add(t); } } catch (SQLException ex) { ex.printStackTrace(); } return retorno; } @Override public Tabela getRegistro(int Id) { String SQL = "SELECT nome, valor, ativo, data FROM tabela WHERE id=?"; Tabela retorno = new Tabela(); try { PreparedStatement ps = con.prepareStatement(SQL); ps.setInt(1, Id); ResultSet rs = ps.executeQuery(); while (rs.next()) { retorno.setAtivo(rs.getBoolean("ativo")); retorno.setId(rs.getInt("id")); retorno.setNome(rs.getString("nome")); retorno.setValor(rs.getDouble("valor")); Calendar d = Calendar.getInstance(); d.setTime( rs.getDate("data") ); retorno.setData(d); } } catch (SQLException ex) { ex.printStackTrace(); } return retorno; } public Object getValor( String campo ) { String SQL = "SELECT "+campo+" FROM tabela"; Object retorno = null; try { PreparedStatement ps = con.prepareStatement(SQL); ResultSet rs = ps.executeQuery(); while (rs.next()) { retorno = rs.getObject(1); } } catch (SQLException ex) { ex.printStackTrace(); } return retorno; } }
09af4a95e6f7b791e4545adc8f0bb92277c7d7ca
48e835e6f176a8ac9ae3ca718e8922891f1e5a18
/benchmark/training/org/opentripplanner/common/model/GenericLocationTest.java
2aeada87b7ab7a363b34ec139075189ddb18ced1
[]
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
7,620
java
package org.opentripplanner.common.model; import org.junit.Assert; import org.junit.Test; import org.locationtech.jts.geom.Coordinate; public class GenericLocationTest { @Test public void testEmpty() { GenericLocation loc = new GenericLocation(); Assert.assertEquals("", loc.name); Assert.assertEquals("", loc.place); NamedPlace np = loc.getNamedPlace(); Assert.assertEquals("", np.name); Assert.assertEquals("", np.place); Assert.assertNull(loc.lat); Assert.assertNull(loc.lng); Assert.assertNull(loc.getCoordinate()); Assert.assertFalse(loc.hasName()); Assert.assertFalse(loc.hasPlace()); } @Test public void testFromNamePlace() { GenericLocation loc = new GenericLocation("name", "12345"); Assert.assertEquals("name", loc.name); Assert.assertEquals("12345", loc.place); NamedPlace np = loc.getNamedPlace(); Assert.assertEquals("name", np.name); Assert.assertEquals("12345", np.place); Assert.assertFalse(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); Assert.assertTrue(loc.hasName()); Assert.assertTrue(loc.hasPlace()); Assert.assertNull(loc.lat); Assert.assertNull(loc.lng); Assert.assertNull(loc.getCoordinate()); } @Test public void testFromNamePlaceWithCoord() { GenericLocation loc = new GenericLocation("name", "-1.0,2.5"); Assert.assertEquals("name", loc.name); Assert.assertEquals("-1.0,2.5", loc.place); NamedPlace np = loc.getNamedPlace(); Assert.assertEquals("name", np.name); Assert.assertEquals("-1.0,2.5", np.place); Assert.assertTrue(loc.hasName()); Assert.assertTrue(loc.hasPlace()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); Assert.assertEquals(new Double((-1.0)), loc.lat); Assert.assertEquals(new Double(2.5), loc.lng); Assert.assertEquals(new Coordinate(2.5, (-1.0)), loc.getCoordinate()); loc = new GenericLocation("name", "1.0,-2.5"); Assert.assertEquals(new Double(1.0), loc.lat); Assert.assertEquals(new Double((-2.5)), loc.lng); Assert.assertEquals(new Coordinate((-2.5), 1.0), loc.getCoordinate()); } @Test public void testFromOldStyleString() { GenericLocation loc = GenericLocation.fromOldStyleString("name::12345"); Assert.assertEquals("name", loc.name); Assert.assertEquals("12345", loc.place); NamedPlace np = loc.getNamedPlace(); Assert.assertEquals("name", np.name); Assert.assertEquals("12345", np.place); Assert.assertTrue(loc.hasName()); Assert.assertTrue(loc.hasPlace()); Assert.assertFalse(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); Assert.assertNull(loc.lat); Assert.assertNull(loc.lng); Assert.assertNull(loc.getCoordinate()); } @Test public void testFromStringWithEdgeAndHeading() { String s = "40.75542978896869,-73.97618338000376 heading=29.028895183287617 edgeId=2767"; GenericLocation loc = GenericLocation.fromOldStyleString(s); Assert.assertEquals(29.028895183287617, loc.heading, 1.0E-5); Assert.assertEquals(2767, loc.edgeId.intValue()); Assert.assertEquals(40.75542978896869, loc.lat, 1.0E-5); Assert.assertEquals((-73.97618338000376), loc.lng, 1.0E-5); } @Test public void testFromOldStyleStringWithCoord() { GenericLocation loc = GenericLocation.fromOldStyleString("name::1.0,2.5"); Assert.assertEquals("name", loc.name); Assert.assertEquals("1.0,2.5", loc.place); NamedPlace np = loc.getNamedPlace(); Assert.assertEquals("name", np.name); Assert.assertEquals("1.0,2.5", np.place); Assert.assertTrue(loc.hasName()); Assert.assertTrue(loc.hasPlace()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); Assert.assertEquals(new Double(1.0), loc.lat); Assert.assertEquals(new Double(2.5), loc.lng); Assert.assertEquals(new Coordinate(2.5, 1.0), loc.getCoordinate()); } @Test public void testToString() { String input = "name::1.0,2.5"; GenericLocation loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals(input, loc.toString()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); input = "name::12345"; loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals(input, loc.toString()); Assert.assertFalse(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); input = "name"; loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals(input, loc.toString()); Assert.assertFalse(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); } @Test public void testFromLatLng() { GenericLocation loc = new GenericLocation(1.0, 2.0); Coordinate expectedCoord = new Coordinate(2.0, 1.0); Assert.assertEquals(expectedCoord, loc.getCoordinate()); Assert.assertEquals("1.0,2.0", loc.toString()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); Assert.assertFalse(loc.hasName()); Assert.assertFalse(loc.hasPlace()); } @Test public void testFromLatLngHeading() { GenericLocation loc = new GenericLocation(1.0, 2.0, 137.2); Coordinate expectedCoord = new Coordinate(2.0, 1.0); Assert.assertEquals(expectedCoord, loc.getCoordinate()); Assert.assertEquals(137.2, loc.heading.doubleValue(), 0.0); Assert.assertEquals("1.0,2.0", loc.toString()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertTrue(loc.hasHeading()); Assert.assertFalse(loc.hasName()); Assert.assertFalse(loc.hasPlace()); } @Test public void testFromCoord() { Coordinate expectedCoord = new Coordinate(2.0, 1.0); GenericLocation loc = new GenericLocation(expectedCoord); Assert.assertEquals(expectedCoord, loc.getCoordinate()); Assert.assertEquals("1.0,2.0", loc.toString()); Assert.assertTrue(loc.hasCoordinate()); Assert.assertFalse(loc.hasHeading()); } @Test public void testClone() { Coordinate expectedCoord = new Coordinate(2.0, 1.0); GenericLocation loc = new GenericLocation(expectedCoord); loc.heading = 137.2; GenericLocation cloned = loc.clone(); Assert.assertEquals(expectedCoord, cloned.getCoordinate()); Assert.assertEquals(loc.heading, cloned.heading); Assert.assertEquals(loc.getNamedPlace().name, cloned.getNamedPlace().name); Assert.assertEquals(loc.getNamedPlace().place, cloned.getNamedPlace().place); } @Test public void testFromOldStyleStringIncomplete() { String input = "0::"; GenericLocation loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals("0", loc.name); Assert.assertEquals("", loc.place); input = "::1"; loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals("", loc.name); Assert.assertEquals("1", loc.place); input = "::"; loc = GenericLocation.fromOldStyleString(input); Assert.assertEquals("", loc.name); Assert.assertEquals("", loc.place); } }
a8d4b0376bf362dca2a89b0f3936e15d35f2071c
4627d514d6664526f58fbe3cac830a54679749cd
/results/randoop5/math-org.apache.commons.math.distribution.HypergeometricDistributionImpl-18/RegressionTest1.java
08034f191ad96140ed8f8a1e3e911a5940039e42
[]
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
709,152
java
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class RegressionTest1 { public static boolean debug = false; @Test public void test0501() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0501"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(35, (-1), (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0502() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0502"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setPopulationSize(10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0); hypergeometricDistributionImpl3.setPopulationSize(95); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0503() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0503"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) (short) 0, (int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(100); } @Test public void test0504() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0504"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0505() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0505"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((-1), 100, (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0506() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0506"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100.0f); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability(10.0d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0507() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0507"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) 'a', 1); double double5 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 1.0d + "'", double5 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 97 + "'", int8 == 97); } @Test public void test0508() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0508"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(1); int int17 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double19 = hypergeometricDistributionImpl3.probability((double) 35); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0509() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0509"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double18 = hypergeometricDistributionImpl3.probability((double) 0L); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 1.0d + "'", double20 == 1.0d); } @Test public void test0510() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0510"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); double double11 = hypergeometricDistributionImpl3.probability((double) 1); double double13 = hypergeometricDistributionImpl3.probability(100); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0511() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0511"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 0, (int) (byte) -1, 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0512() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0512"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { int int14 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 100 + "'", int12 == 100); } @Test public void test0513() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0513"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability(1.0d); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); java.lang.Class<?> wildcardClass18 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(wildcardClass18); } @Test public void test0514() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0514"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '#'); double double8 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); java.lang.Class<?> wildcardClass9 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass9); } @Test public void test0515() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0515"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) ' '); int int13 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0516() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0516"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 10, 0, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); } @Test public void test0517() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0517"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); double double5 = hypergeometricDistributionImpl3.probability((int) (byte) -1); double double7 = hypergeometricDistributionImpl3.probability(0); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 32); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.02999999999999997d + "'", double7 == 0.02999999999999997d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0518() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0518"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(100); java.lang.Class<?> wildcardClass16 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0519() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0519"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); double double19 = hypergeometricDistributionImpl3.probability((double) 0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0520() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0520"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.probability(0.0d); int int8 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0521() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0521"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 100, (int) (byte) 0); hypergeometricDistributionImpl3.setSampleSize((int) ' '); } @Test public void test0522() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0522"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0523() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0523"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.probability((int) (byte) 0); double double9 = hypergeometricDistributionImpl3.cumulativeProbability(0.02999999999999997d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0524() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0524"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1, (double) (byte) 100); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0525() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0525"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) -1, 1, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0526() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0526"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1, 1); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize(0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0527() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0527"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double16 = hypergeometricDistributionImpl3.probability(97); double double18 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); int int19 = hypergeometricDistributionImpl3.getPopulationSize(); int int20 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 10 + "'", int19 == 10); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 35 + "'", int20 == 35); } @Test public void test0528() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0528"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); double double11 = hypergeometricDistributionImpl3.probability((double) 1); hypergeometricDistributionImpl3.setSampleSize((int) '#'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0529() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0529"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) 'a'); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((int) (byte) 10); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0530() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0530"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10, (double) 10L); double double16 = hypergeometricDistributionImpl3.probability(0.9699999999999995d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0531() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0531"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0532() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0532"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100.0f); int int16 = hypergeometricDistributionImpl3.getSampleSize(); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1, (double) 105); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 98 + "'", int16 == 98); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0533() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0533"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '#'); java.lang.Class<?> wildcardClass7 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass7); } @Test public void test0534() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0534"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) -1, (int) (short) -1, 6); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0535() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0535"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) 'a', 1); int int4 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 0); double double8 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(97); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 97 + "'", int4 == 97); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 1.0d + "'", double6 == 1.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); } @Test public void test0536() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0536"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 10, 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(95); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0537() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0537"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0538() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0538"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); double double21 = hypergeometricDistributionImpl3.probability((int) 'a'); // The following exception was thrown during execution in test generation try { int int23 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0539() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0539"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); // The following exception was thrown during execution in test generation try { double double16 = hypergeometricDistributionImpl3.cumulativeProbability(105, (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0540() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0540"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100, (int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); } @Test public void test0541() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0541"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int14 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); } @Test public void test0542() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0542"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability(95, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0543() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0543"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.probability(0.0d); double double17 = hypergeometricDistributionImpl3.probability((int) '#'); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 100); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0544() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0544"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); int int15 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability(105, (int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0545() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0545"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); double double15 = hypergeometricDistributionImpl3.probability(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); int int18 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { double double21 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 100 + "'", int18 == 100); } @Test public void test0546() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0546"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass16 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0547() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0547"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); hypergeometricDistributionImpl3.setSampleSize(100); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) (byte) 1); int int14 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1)); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0548() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0548"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.probability((int) (byte) 0); double double10 = hypergeometricDistributionImpl3.probability((int) (short) 100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); double double14 = hypergeometricDistributionImpl3.probability((int) 'a'); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0549() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0549"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); // The following exception was thrown during execution in test generation try { int int21 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0550() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0550"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.probability(100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0551() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0551"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 10 + "'", int17 == 10); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); } @Test public void test0552() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0552"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, 0, (int) (byte) 0); } @Test public void test0553() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0553"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 10, 1); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); int int5 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a', (int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); org.junit.Assert.assertTrue("'" + int5 + "' != '" + 1 + "'", int5 == 1); } @Test public void test0554() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0554"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 10); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability((int) (byte) 1); // The following exception was thrown during execution in test generation try { int int22 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0555() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0555"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1, 10); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0556() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0556"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (short) 10); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0557() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0557"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) -1, 105, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0558() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0558"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(0); hypergeometricDistributionImpl3.setSampleSize((int) '#'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0559() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0559"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1, (double) 35); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0560() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0560"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(105, (int) (byte) 0, (int) (short) 10); java.lang.Class<?> wildcardClass4 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0561() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0561"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0562() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0562"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1, (double) 95); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10, 100.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); } @Test public void test0563() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0563"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); int int15 = hypergeometricDistributionImpl3.getPopulationSize(); double double17 = hypergeometricDistributionImpl3.probability((double) (byte) 0); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 100 + "'", int14 == 100); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 100 + "'", int15 == 100); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0564() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0564"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double12 = hypergeometricDistributionImpl3.probability((int) '#'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0565() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0565"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 10); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); } @Test public void test0566() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0566"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); hypergeometricDistributionImpl3.setSampleSize(1); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1.0f, (double) 98); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0567() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0567"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); int int12 = hypergeometricDistributionImpl3.getSampleSize(); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0568() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0568"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); int int12 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setPopulationSize(97); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0569() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0569"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.probability((int) (byte) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0570() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0570"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10, 35); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0571() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0571"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); // The following exception was thrown during execution in test generation try { double double13 = hypergeometricDistributionImpl3.cumulativeProbability(1, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); } @Test public void test0572() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0572"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); double double15 = hypergeometricDistributionImpl3.probability((int) (short) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0573() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0573"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 10); int int7 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 0); // The following exception was thrown during execution in test generation try { double double10 = hypergeometricDistributionImpl3.cumulativeProbability((double) ' ', (double) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int7 + "' != '" + 6 + "'", int7 == 6); } @Test public void test0574() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0574"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 10); double double7 = hypergeometricDistributionImpl3.probability((double) 0L); double double9 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); double double11 = hypergeometricDistributionImpl3.probability((double) (-1L)); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0575() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0575"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) -1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0576() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0576"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); double double13 = hypergeometricDistributionImpl3.probability((double) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) 100.0f); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((-1.0d)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0577() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0577"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(95, 35, (int) (byte) 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 95 + "'", int4 == 95); } @Test public void test0578() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0578"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) '4'); double double18 = hypergeometricDistributionImpl3.probability(0.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0579() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0579"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1L); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0580() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0580"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0581() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0581"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.probability(97); int int12 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' ', (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0582() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0582"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); int int14 = hypergeometricDistributionImpl3.getSampleSize(); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0583() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0583"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int9 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1.0f); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0, (int) (short) 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); } @Test public void test0584() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0584"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(100); double double17 = hypergeometricDistributionImpl3.probability(0.02999999999999997d); double double19 = hypergeometricDistributionImpl3.probability((int) (short) -1); double double21 = hypergeometricDistributionImpl3.probability((double) 100.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("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0585() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0585"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.probability((double) 10); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 100 + "'", int14 == 100); } @Test public void test0586() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0586"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#', 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0587() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0587"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setNumberOfSuccesses(105); hypergeometricDistributionImpl3.setPopulationSize(1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0588() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0588"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); double double15 = hypergeometricDistributionImpl3.probability((int) '4'); int int16 = hypergeometricDistributionImpl3.getPopulationSize(); double double19 = hypergeometricDistributionImpl3.cumulativeProbability(0.8999999999999996d, (double) 35); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0589() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0589"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); int int7 = hypergeometricDistributionImpl3.getSampleSize(); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); } @Test public void test0590() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0590"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) 'a', 1); int int4 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 0); int int7 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double10 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1, (double) (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 97 + "'", int4 == 97); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 1.0d + "'", double6 == 1.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); } @Test public void test0591() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0591"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0592() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0592"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double12 = hypergeometricDistributionImpl3.probability(100); java.lang.Class<?> wildcardClass13 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0593() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0593"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1, 6); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0594() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0594"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); double double11 = hypergeometricDistributionImpl3.probability((double) ' '); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0595() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0595"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, (int) '#'); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability(35); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(100); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); } @Test public void test0596() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0596"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int8 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0.0f); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); // The following exception was thrown during execution in test generation try { int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1)); } @Test public void test0597() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0597"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, (int) '#'); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability(35); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); int int17 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); } @Test public void test0598() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0598"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0L, (double) (byte) 1); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability(97, 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); } @Test public void test0599() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0599"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); // The following exception was thrown during execution in test generation try { int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); } @Test public void test0600() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0600"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 0, (int) (short) 0, (int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0601() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0601"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0602() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0602"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) '#', 98, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0603() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0603"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.probability((double) ' '); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); int int15 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1); } @Test public void test0604() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0604"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); java.lang.Class<?> wildcardClass11 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0605() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0605"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability(35); int int21 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); double double25 = hypergeometricDistributionImpl3.upperCumulativeProbability((-1)); double double27 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); org.junit.Assert.assertTrue("'" + double25 + "' != '" + 1.0d + "'", double25 == 1.0d); org.junit.Assert.assertTrue("'" + double27 + "' != '" + 0.0d + "'", double27 == 0.0d); } @Test public void test0606() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0606"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 0, (int) (short) 1, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0607() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0607"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) 'a'); double double11 = hypergeometricDistributionImpl3.probability((int) ' '); // The following exception was thrown during execution in test generation try { int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0608() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0608"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 1 + "'", int17 == 1); } @Test public void test0609() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0609"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) -1, (int) '4', 6); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0610() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0610"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); double double11 = hypergeometricDistributionImpl3.probability((double) 1); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) (short) 100); int int15 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0611() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0611"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, 10, 95); } @Test public void test0612() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0612"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.probability(100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0613() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0613"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0614() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0614"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int18 = hypergeometricDistributionImpl3.getPopulationSize(); int int19 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setPopulationSize(6); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); } @Test public void test0615() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0615"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 100, (double) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double16 = hypergeometricDistributionImpl3.probability(1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0616() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0616"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(95); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); java.lang.Class<?> wildcardClass20 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass20); } @Test public void test0617() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0617"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1L); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) -1, (double) 100L); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100, 0.10309278350515466d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0618() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0618"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int15 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a', (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0619() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0619"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) ' ', (int) '4', 52); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0620() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0620"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); int int15 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 0); java.lang.Class<?> wildcardClass18 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertNotNull(wildcardClass18); } @Test public void test0621() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0621"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); double double17 = hypergeometricDistributionImpl3.probability((double) 'a'); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 98); java.lang.Class<?> wildcardClass21 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 1.0d + "'", double20 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass21); } @Test public void test0622() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0622"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setSampleSize(95); java.lang.Class<?> wildcardClass13 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0623() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0623"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0624() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0624"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1L); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); // The following exception was thrown during execution in test generation try { int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((-1.0d)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1); } @Test public void test0625() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0625"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); double double14 = hypergeometricDistributionImpl3.probability((double) (short) 1); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(98, (int) (byte) 100); int int18 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 100 + "'", int18 == 100); } @Test public void test0626() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0626"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, (int) (byte) 0, (int) (short) 1); } @Test public void test0627() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0627"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0628() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0628"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0629() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0629"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(100); hypergeometricDistributionImpl3.setPopulationSize(95); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability(95, 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0630() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0630"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1, (double) '#'); // The following exception was thrown during execution in test generation try { double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) 96, (double) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0631() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0631"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int16 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0632() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0632"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(95, 98, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0633() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0633"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability(0.0d); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0634() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0634"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1L); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1L, (double) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); 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 + "' != '" + 1 + "'", int12 == 1); } @Test public void test0635() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0635"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(98); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0, (int) (byte) 100); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0636() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0636"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setPopulationSize(1); int int9 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(0.8969072164948454d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0637() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0637"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize(1); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0L); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0638() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0638"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.probability(0); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double12 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0639() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0639"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setSampleSize(1); int int15 = hypergeometricDistributionImpl3.getSampleSize(); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97, 100.0d); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int21 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 35 + "'", int21 == 35); } @Test public void test0640() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0640"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, 32, 35); } @Test public void test0641() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0641"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.probability(10); int int15 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0642() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0642"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); hypergeometricDistributionImpl3.setSampleSize(100); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(35); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); java.lang.Class<?> wildcardClass17 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0643() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0643"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0L, (double) (byte) 1); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0644() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0644"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 0); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); int int24 = hypergeometricDistributionImpl3.getSampleSize(); double double26 = hypergeometricDistributionImpl3.probability(0.8999999999999996d); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); org.junit.Assert.assertTrue("'" + int24 + "' != '" + 0 + "'", int24 == 0); org.junit.Assert.assertTrue("'" + double26 + "' != '" + 0.0d + "'", double26 == 0.0d); } @Test public void test0645() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0645"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); double double13 = hypergeometricDistributionImpl3.probability((-1)); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) 52); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0646() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0646"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) 'a', (int) '#', (int) 'a'); java.lang.Class<?> wildcardClass4 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0647() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0647"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(95); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0648() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0648"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(6, 98, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0649() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0649"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 10, 96, (int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0650() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0650"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); hypergeometricDistributionImpl3.setSampleSize(1); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass11 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0651() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0651"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); double double21 = hypergeometricDistributionImpl3.probability((int) 'a'); double double23 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); org.junit.Assert.assertTrue("'" + double23 + "' != '" + 0.0d + "'", double23 == 0.0d); } @Test public void test0652() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0652"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.probability(100); hypergeometricDistributionImpl3.setSampleSize(98); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0653() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0653"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 10); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); } @Test public void test0654() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0654"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) '#'); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); } @Test public void test0655() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0655"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(100, (int) '#', 6); } @Test public void test0656() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0656"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1L); hypergeometricDistributionImpl3.setSampleSize(1); int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); java.lang.Class<?> wildcardClass16 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + (-1) + "'", int15 == (-1)); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0657() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0657"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); int int15 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 0); // The following exception was thrown during execution in test generation try { double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) 96, 0.0d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0658() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0658"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, (int) (short) 10, (int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0659() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0659"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(1); hypergeometricDistributionImpl3.setSampleSize(105); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); } @Test public void test0660() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0660"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 0); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); int int24 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); org.junit.Assert.assertTrue("'" + int24 + "' != '" + 97 + "'", int24 == 97); } @Test public void test0661() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0661"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); hypergeometricDistributionImpl3.setSampleSize(0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0662() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0662"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1, 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0663() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0663"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 10, 1); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.probability(0); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 'a', 100.0d); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10L, (double) 96); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.8999999999999996d + "'", double6 == 0.8999999999999996d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0664() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0664"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0665() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0665"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double20 = hypergeometricDistributionImpl3.probability(0.8999999999999996d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0666() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0666"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int18 = hypergeometricDistributionImpl3.getPopulationSize(); double double20 = hypergeometricDistributionImpl3.probability((double) (-1L)); java.lang.Class<?> wildcardClass21 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 1 + "'", int18 == 1); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass21); } @Test public void test0667() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0667"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); double double22 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(96); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); } @Test public void test0668() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0668"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); // The following exception was thrown during execution in test generation try { double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#', 6); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0669() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0669"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1L); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((-1), 97); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); // The following exception was thrown during execution in test generation try { int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 35); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0670() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0670"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability(6, (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0671() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0671"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { int int10 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0672() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0672"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, (int) (byte) 100, (int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0673() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0673"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(100, 32, 98); } @Test public void test0674() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0674"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double13 = hypergeometricDistributionImpl3.probability((double) (byte) 10); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); } @Test public void test0675() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0675"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability(0); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 10); // The following exception was thrown during execution in test generation try { double double27 = hypergeometricDistributionImpl3.cumulativeProbability((double) 6, (double) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0676() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0676"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(95); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); int int20 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); java.lang.Class<?> wildcardClass23 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 1 + "'", int20 == 1); org.junit.Assert.assertNotNull(wildcardClass23); } @Test public void test0677() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0677"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); int int11 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 98 + "'", int11 == 98); } @Test public void test0678() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0678"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, (int) '#'); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 1, (double) 95); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(0.02999999999999997d); int int17 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); } @Test public void test0679() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0679"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) -1, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0680() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0680"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 10); // The following exception was thrown during execution in test generation try { int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 100.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0681() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0681"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1, (double) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double19 = hypergeometricDistributionImpl3.probability((int) '#'); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0682() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0682"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 10); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0683() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0683"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) ' '); double double11 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((-1)); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); double double21 = hypergeometricDistributionImpl3.cumulativeProbability(97); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); } @Test public void test0684() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0684"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 1); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0685() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0685"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 98 + "'", int16 == 98); } @Test public void test0686() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0686"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setPopulationSize((int) ' '); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0687() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0687"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) '#', (-1), 6); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0688() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0688"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setSampleSize(95); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); // The following exception was thrown during execution in test generation try { int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); } @Test public void test0689() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0689"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 100, (double) 100); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.10309278350515466d, 0.8999999999999996d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0690() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0690"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((-1.0d), (double) 98); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0691() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0691"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(100); double double15 = hypergeometricDistributionImpl3.probability((double) 10); java.lang.Class<?> wildcardClass16 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass16); } @Test public void test0692() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0692"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, 32, (int) (short) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0693() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0693"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(52, 95, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0694() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0694"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int8 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0.0f); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0, (double) 10.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int8 + "' != '" + (-1) + "'", int8 == (-1)); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0695() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0695"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, (int) (byte) 1, 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0696() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0696"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 1); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 0); hypergeometricDistributionImpl3.setSampleSize((int) (short) 0); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); } @Test public void test0697() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0697"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) -1, (int) 'a', (int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0698() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0698"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); // The following exception was thrown during execution in test generation try { int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 10.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0699() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0699"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f), (double) (byte) 10); java.lang.Class<?> wildcardClass18 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass18); } @Test public void test0700() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0700"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double13 = hypergeometricDistributionImpl3.probability((int) 'a'); int int14 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { int int16 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 95); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); } @Test public void test0701() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0701"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int14 = hypergeometricDistributionImpl3.getSampleSize(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0702() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0702"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 1); hypergeometricDistributionImpl3.setSampleSize(95); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0703() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0703"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0, (int) (byte) 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); } @Test public void test0704() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0704"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) '4', (int) ' ', (int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0705() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0705"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int19 = hypergeometricDistributionImpl3.getPopulationSize(); int int21 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 1 + "'", int19 == 1); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); } @Test public void test0706() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0706"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 98); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); } @Test public void test0707() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0707"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double13 = hypergeometricDistributionImpl3.probability((int) 'a'); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); int int15 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0708() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0708"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass10 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0709() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0709"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int15 = hypergeometricDistributionImpl3.getSampleSize(); double double17 = hypergeometricDistributionImpl3.probability(0); double double19 = hypergeometricDistributionImpl3.cumulativeProbability(100); java.lang.Class<?> wildcardClass20 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass20); } @Test public void test0710() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0710"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) 'a', 1); int int4 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 0); double double8 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); int int10 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.09999999999999998d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 97 + "'", int4 == 97); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 1.0d + "'", double6 == 1.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); } @Test public void test0711() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0711"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double13 = hypergeometricDistributionImpl3.probability((int) (byte) 10); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) -1, (double) 'a'); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10, (double) 1L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0712() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0712"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(1); int int18 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setPopulationSize((int) ' '); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); } @Test public void test0713() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0713"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double12 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1.0f); double double16 = hypergeometricDistributionImpl3.probability((double) 96); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0714() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0714"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); int int15 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize(35); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); } @Test public void test0715() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0715"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(32, (int) (byte) 1, (int) (byte) 0); } @Test public void test0716() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0716"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double18 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 0); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); } @Test public void test0717() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0717"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); hypergeometricDistributionImpl3.setSampleSize(100); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 10, (int) '4'); int int14 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); } @Test public void test0718() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0718"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setNumberOfSuccesses(100); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); } @Test public void test0719() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0719"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 10); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); double double21 = hypergeometricDistributionImpl3.upperCumulativeProbability(6); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0720() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0720"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.probability((int) (short) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(98); int int16 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1); } @Test public void test0721() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0721"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 95); int int13 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 95); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 97 + "'", int13 == 97); } @Test public void test0722() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0722"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.cumulativeProbability(10); // The following exception was thrown during execution in test generation try { double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100, (double) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0723() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0723"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 96); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0724() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0724"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability(0.0d); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 10, (double) (short) 100); int int18 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + (-1) + "'", int18 == (-1)); } @Test public void test0725() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0725"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int13 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 32 + "'", int12 == 32); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 98 + "'", int13 == 98); } @Test public void test0726() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0726"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); hypergeometricDistributionImpl3.setSampleSize(10); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); } @Test public void test0727() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0727"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setPopulationSize(95); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); } @Test public void test0728() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0728"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(0, (int) 'a'); double double13 = hypergeometricDistributionImpl3.probability((int) (byte) 10); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) (short) 10); // The following exception was thrown during execution in test generation try { int int18 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0729() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0729"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1L)); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0730() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0730"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setPopulationSize(97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100.0f); double double19 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0731() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0731"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double11 = hypergeometricDistributionImpl3.probability((int) 'a'); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(105); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0732() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0732"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double12 = hypergeometricDistributionImpl3.probability((-1.0d)); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); } @Test public void test0733() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0733"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0734() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0734"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 10, (double) ' '); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10.0d); hypergeometricDistributionImpl3.setPopulationSize(32); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0735() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0735"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 10, (double) ' '); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10.0d); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); } @Test public void test0736() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0736"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0737() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0737"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(1); int int17 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double20 = hypergeometricDistributionImpl3.cumulativeProbability(35, (int) 'a'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0738() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0738"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(96, (-1), 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0739() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0739"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double11 = hypergeometricDistributionImpl3.probability((int) 'a'); // The following exception was thrown during execution in test generation try { int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 10L); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0740() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0740"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0, (double) (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); } @Test public void test0741() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0741"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) -1); hypergeometricDistributionImpl3.setNumberOfSuccesses(95); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability(105, 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0742() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0742"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 0); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10, (double) 10); int int18 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); } @Test public void test0743() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0743"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.probability(97); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0744() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0744"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.probability((double) '4'); // The following exception was thrown during execution in test generation try { double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); } @Test public void test0745() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0745"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0746() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0746"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(96, (int) (byte) 1, 98); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0747() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0747"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass17 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0748() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0748"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0749() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0749"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(95); int int17 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 95 + "'", int17 == 95); } @Test public void test0750() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0750"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(10.0d); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 100); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1)); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0751() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0751"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability((double) (short) 1); int int21 = hypergeometricDistributionImpl3.getSampleSize(); double double24 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0, 0.8969072164948454d); int int25 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); org.junit.Assert.assertTrue("'" + double24 + "' != '" + 0.0d + "'", double24 == 0.0d); org.junit.Assert.assertTrue("'" + int25 + "' != '" + 97 + "'", int25 == 97); } @Test public void test0752() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0752"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); java.lang.Class<?> wildcardClass13 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 100 + "'", int12 == 100); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0753() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0753"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); double double11 = hypergeometricDistributionImpl3.probability((double) ' '); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0754() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0754"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); int int12 = hypergeometricDistributionImpl3.getSampleSize(); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability(96); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0755() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0755"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); } @Test public void test0756() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0756"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.probability(0.0d); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.probability((int) '4'); // The following exception was thrown during execution in test generation try { int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); } @Test public void test0757() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0757"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1L)); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0758() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0758"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0759() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0759"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.probability((int) (byte) 0); double double12 = hypergeometricDistributionImpl3.probability(97); java.lang.Class<?> wildcardClass13 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass13); } @Test public void test0760() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0760"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.probability((int) (short) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 0); double double20 = hypergeometricDistributionImpl3.probability((int) (byte) -1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0761() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0761"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 0, (int) (short) 100, 52); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0762() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0762"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double12 = hypergeometricDistributionImpl3.probability(100); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); } @Test public void test0763() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0763"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability(35); int int21 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 0 + "'", int21 == 0); } @Test public void test0764() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0764"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); double double20 = hypergeometricDistributionImpl3.probability((double) '4'); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0765() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0765"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); hypergeometricDistributionImpl3.setSampleSize(97); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); } @Test public void test0766() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0766"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); double double22 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100); double double24 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); double double26 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); org.junit.Assert.assertTrue("'" + double24 + "' != '" + 1.0d + "'", double24 == 1.0d); org.junit.Assert.assertTrue("'" + double26 + "' != '" + 1.0d + "'", double26 == 1.0d); } @Test public void test0767() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0767"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); double double17 = hypergeometricDistributionImpl3.probability((int) (short) 100); int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 1); java.lang.Class<?> wildcardClass20 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); org.junit.Assert.assertNotNull(wildcardClass20); } @Test public void test0768() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0768"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); double double11 = hypergeometricDistributionImpl3.probability((double) 1); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1); } @Test public void test0769() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0769"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.probability(1); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); java.lang.Class<?> wildcardClass10 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0770() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0770"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) 'a'); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(100); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); } @Test public void test0771() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0771"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); double double19 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double21 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '#'); int int22 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double24 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); org.junit.Assert.assertTrue("'" + double24 + "' != '" + 0.0d + "'", double24 == 0.0d); } @Test public void test0772() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0772"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int11 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 35 + "'", int11 == 35); } @Test public void test0773() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0773"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { int int10 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 6); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0774() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0774"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(95, 0, 96); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0775() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0775"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 0, 0, 97); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0776() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0776"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(6, (int) (short) 100, (int) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0777() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0777"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) ' '); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); } @Test public void test0778() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0778"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double13 = hypergeometricDistributionImpl3.probability((int) 'a'); double double15 = hypergeometricDistributionImpl3.probability((double) 105); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0.0f); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); } @Test public void test0779() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0779"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setPopulationSize((int) 'a'); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); } @Test public void test0780() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0780"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses(95); double double18 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) ' '); java.lang.Class<?> wildcardClass19 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass19); } @Test public void test0781() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0781"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); // The following exception was thrown during execution in test generation try { int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); } @Test public void test0782() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0782"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); hypergeometricDistributionImpl3.setPopulationSize(52); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); } @Test public void test0783() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0783"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); double double15 = hypergeometricDistributionImpl3.probability((double) (byte) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0784() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0784"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); double double13 = hypergeometricDistributionImpl3.probability(1.0d); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(97); double double19 = hypergeometricDistributionImpl3.probability((int) (byte) 1); double double21 = hypergeometricDistributionImpl3.upperCumulativeProbability(96); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.10309278350515466d + "'", double19 == 0.10309278350515466d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0785() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0785"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, 105, (int) (short) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0786() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0786"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(35, 95, (int) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0787() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0787"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) ' ', (-1), 96); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0788() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0788"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.8999999999999996d); int int16 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0789() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0789"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); hypergeometricDistributionImpl3.setPopulationSize(6); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0790() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0790"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double17 = hypergeometricDistributionImpl3.probability((double) 0L); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setSampleSize((int) (short) 0); // The following exception was thrown during execution in test generation try { double double24 = hypergeometricDistributionImpl3.cumulativeProbability((double) 'a', (double) 96); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0791() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0791"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.8999999999999996d); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0792() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0792"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int12 = hypergeometricDistributionImpl3.getPopulationSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(0); double double16 = hypergeometricDistributionImpl3.probability(35); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 100, (double) 9); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 1 + "'", int12 == 1); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0793() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0793"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); double double13 = hypergeometricDistributionImpl3.probability((double) (-1L)); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0794() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0794"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); double double8 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 1); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(10, 95); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability(97); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0795() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0795"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(95); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); int int20 = hypergeometricDistributionImpl3.getPopulationSize(); java.lang.Class<?> wildcardClass21 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 1 + "'", int20 == 1); org.junit.Assert.assertNotNull(wildcardClass21); } @Test public void test0796() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0796"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0, (int) (byte) 1); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 10); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0, (-1.0d)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0797() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0797"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); double double19 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double21 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '#'); double double23 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); org.junit.Assert.assertTrue("'" + double23 + "' != '" + 1.0d + "'", double23 == 1.0d); } @Test public void test0798() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0798"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 95); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 10 + "'", int14 == 10); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 10 + "'", int17 == 10); } @Test public void test0799() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0799"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize(95); double double13 = hypergeometricDistributionImpl3.probability((double) 98); // The following exception was thrown during execution in test generation try { double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) ' ', (double) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0800() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0800"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); double double22 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100); double double24 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); int int25 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); org.junit.Assert.assertTrue("'" + double24 + "' != '" + 1.0d + "'", double24 == 1.0d); org.junit.Assert.assertTrue("'" + int25 + "' != '" + 52 + "'", int25 == 52); } @Test public void test0801() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0801"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) '#', (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0802() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0802"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 98); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); } @Test public void test0803() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0803"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.probability(0); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0804() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0804"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); double double14 = hypergeometricDistributionImpl3.probability((double) (short) 1); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(98, (int) (byte) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0805() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0805"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(32, (int) (byte) 100); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0806() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0806"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) ' '); double double11 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); int int16 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1); } @Test public void test0807() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0807"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(100, 97, (int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); } @Test public void test0808() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0808"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(0.8999999999999996d); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 0); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0809() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0809"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double18 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); int int20 = hypergeometricDistributionImpl3.inverseCumulativeProbability(1.0d); int int22 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); // The following exception was thrown during execution in test generation try { double double25 = hypergeometricDistributionImpl3.cumulativeProbability((double) 6, 0.0d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 97 + "'", int20 == 97); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 96 + "'", int22 == 96); } @Test public void test0810() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0810"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(105, (-1), 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0811() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0811"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.probability((double) ' '); double double14 = hypergeometricDistributionImpl3.probability((double) (-1L)); double double16 = hypergeometricDistributionImpl3.probability((int) '#'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0812() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0812"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize(95); // The following exception was thrown during execution in test generation try { int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0813() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0813"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(10.0d); double double13 = hypergeometricDistributionImpl3.probability(32); double double15 = hypergeometricDistributionImpl3.probability((-1.0d)); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(1); double double19 = hypergeometricDistributionImpl3.cumulativeProbability(1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); } @Test public void test0814() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0814"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability(35); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.probability((double) 0.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0815() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0815"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.probability(0.0d); double double17 = hypergeometricDistributionImpl3.probability((int) '#'); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) 96); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); } @Test public void test0816() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0816"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); int int6 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 100 + "'", int6 == 100); } @Test public void test0817() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0817"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability(0); double double22 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1); java.lang.Class<?> wildcardClass23 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 0.0d + "'", double22 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass23); } @Test public void test0818() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0818"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.probability((double) ' '); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double15 = hypergeometricDistributionImpl3.probability((int) (byte) -1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0819() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0819"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.8969072164948454d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + (-1) + "'", int13 == (-1)); } @Test public void test0820() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0820"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.probability((int) (short) 1); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 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 test0821() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0821"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); hypergeometricDistributionImpl3.setSampleSize(0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0822() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0822"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); } @Test public void test0823() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0823"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); int int15 = hypergeometricDistributionImpl3.inverseCumulativeProbability(1.0d); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); java.lang.Class<?> wildcardClass18 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass18); } @Test public void test0824() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0824"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int9 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1.0f); hypergeometricDistributionImpl3.setSampleSize(32); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0825() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0825"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); double double20 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(6); int int23 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 1.0d + "'", double20 == 1.0d); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 100 + "'", int23 == 100); } @Test public void test0826() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0826"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int9 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1.0f); double double11 = hypergeometricDistributionImpl3.probability((int) '4'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '4'); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0827() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0827"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int15 = hypergeometricDistributionImpl3.getSampleSize(); double double17 = hypergeometricDistributionImpl3.probability((int) (byte) 10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0828() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0828"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 0, 0, (int) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0829() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0829"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(95); double double18 = hypergeometricDistributionImpl3.probability((int) (byte) 10); // The following exception was thrown during execution in test generation try { double double21 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0830() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0830"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); double double5 = hypergeometricDistributionImpl3.probability(1.0d); double double7 = hypergeometricDistributionImpl3.probability(0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.9699999999999995d + "'", double5 == 0.9699999999999995d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.02999999999999997d + "'", double7 == 0.02999999999999997d); } @Test public void test0831() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0831"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(100); double double17 = hypergeometricDistributionImpl3.probability(0.02999999999999997d); double double19 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); // The following exception was thrown during execution in test generation try { int int21 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1.0f)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0832() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0832"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.probability(0.0d); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(105); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0833() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0833"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, (int) '#'); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 1, (double) 95); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(0.02999999999999997d); double double18 = hypergeometricDistributionImpl3.probability(1.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0834() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0834"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); hypergeometricDistributionImpl3.setSampleSize(10); hypergeometricDistributionImpl3.setNumberOfSuccesses(32); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); } @Test public void test0835() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0835"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); // The following exception was thrown during execution in test generation try { int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); } @Test public void test0836() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0836"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); int int16 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0837() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0837"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); double double5 = hypergeometricDistributionImpl3.probability((int) (byte) -1); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(98); int int8 = hypergeometricDistributionImpl3.getSampleSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); java.lang.Class<?> wildcardClass10 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 97 + "'", int8 == 97); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertNotNull(wildcardClass10); } @Test public void test0838() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0838"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(97, (int) 'a', 1); double double5 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double7 = hypergeometricDistributionImpl3.probability((int) (byte) -1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 1.0d + "'", double5 == 1.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 97 + "'", int8 == 97); } @Test public void test0839() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0839"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98, 52); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0840() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0840"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setNumberOfSuccesses(100); // The following exception was thrown during execution in test generation try { double double13 = hypergeometricDistributionImpl3.cumulativeProbability(97, (int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0841() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0841"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10, (double) 10L); double double16 = hypergeometricDistributionImpl3.probability(1.0d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0842() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0842"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setPopulationSize(10); double double11 = hypergeometricDistributionImpl3.probability((double) 97); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0843() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0843"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); // The following exception was thrown during execution in test generation try { double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1, (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 1 + "'", int17 == 1); } @Test public void test0844() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0844"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int5 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 0); hypergeometricDistributionImpl3.setSampleSize(1); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int5 + "' != '" + (-1) + "'", int5 == (-1)); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); } @Test public void test0845() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0845"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0846() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0846"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double13 = hypergeometricDistributionImpl3.probability((double) (byte) 10); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); hypergeometricDistributionImpl3.setSampleSize((int) ' '); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); } @Test public void test0847() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0847"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); } @Test public void test0848() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0848"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); int int16 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); int int19 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 35 + "'", int19 == 35); } @Test public void test0849() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0849"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability(0.0d); double double15 = hypergeometricDistributionImpl3.probability((double) (byte) 1); double double17 = hypergeometricDistributionImpl3.probability(1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0850() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0850"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double8 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 10); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); } @Test public void test0851() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0851"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); // The following exception was thrown during execution in test generation try { double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 33, (double) 32); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0852() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0852"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(95); double double18 = hypergeometricDistributionImpl3.probability((int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); hypergeometricDistributionImpl3.setSampleSize(98); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0853() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0853"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 10, (double) ' '); double double13 = hypergeometricDistributionImpl3.probability((int) 'a'); double double15 = hypergeometricDistributionImpl3.probability((double) 100.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0854() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0854"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(1); int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.9699999999999995d); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + (-1) + "'", int17 == (-1)); } @Test public void test0855() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0855"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.probability(10); // The following exception was thrown during execution in test generation try { double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 100, 0.9699999999999995d); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0856() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0856"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 100, (int) '#', (int) 'a'); java.lang.Class<?> wildcardClass4 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertNotNull(wildcardClass4); } @Test public void test0857() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0857"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.probability((double) 1.0f); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0858() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0858"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) (byte) -1); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); int int12 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize(1); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0859() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0859"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double18 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); hypergeometricDistributionImpl3.setSampleSize(1); int int21 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 100 + "'", int21 == 100); } @Test public void test0860() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0860"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); int int18 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 100 + "'", int17 == 100); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 100 + "'", int18 == 100); } @Test public void test0861() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0861"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); double double10 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); hypergeometricDistributionImpl3.setSampleSize(95); double double14 = hypergeometricDistributionImpl3.probability((double) (short) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0862() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0862"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize(95); double double13 = hypergeometricDistributionImpl3.probability((double) 98); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4', (int) 'a'); int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 93 + "'", int19 == 93); } @Test public void test0863() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0863"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); double double8 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); } @Test public void test0864() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0864"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100.0d); java.lang.Class<?> wildcardClass12 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass12); } @Test public void test0865() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0865"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double17 = hypergeometricDistributionImpl3.probability((double) 0L); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setPopulationSize(9); int int23 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 1L); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 26 + "'", int23 == 26); } @Test public void test0866() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0866"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(93); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0867() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0867"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(98); int int9 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 1); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.8969072164948454d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 97 + "'", int11 == 97); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 96 + "'", int13 == 96); } @Test public void test0868() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0868"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.probability((int) (byte) 0); double double10 = hypergeometricDistributionImpl3.probability((int) (short) 100); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 1); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); double double16 = hypergeometricDistributionImpl3.probability((double) (byte) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0869() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0869"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.probability((double) 10.0f); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); } @Test public void test0870() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0870"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(32, 9, 6); } @Test public void test0871() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0871"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double9 = hypergeometricDistributionImpl3.probability((-1.0d)); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 95); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 52); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); 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 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0872() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0872"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); hypergeometricDistributionImpl3.setSampleSize(35); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(100.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); 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); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0873() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0873"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) ' '); double double11 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((-1)); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); double double21 = hypergeometricDistributionImpl3.cumulativeProbability(0); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0874() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0874"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 1); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability(10); java.lang.Class<?> wildcardClass17 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0875() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0875"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0876() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0876"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); double double19 = hypergeometricDistributionImpl3.probability((double) (byte) -1); int int20 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double23 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4', (int) (short) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); org.junit.Assert.assertTrue("'" + double23 + "' != '" + 0.0d + "'", double23 == 0.0d); } @Test public void test0877() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0877"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 0, 10, (int) (byte) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0878() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0878"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 1, (int) 'a', (int) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0879() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0879"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 100 + "'", int15 == 100); } @Test public void test0880() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0880"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 10); double double16 = hypergeometricDistributionImpl3.probability(33); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); } @Test public void test0881() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0881"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setNumberOfSuccesses(100); int int11 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) -1, 0.8969072164948454d); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0882() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0882"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 95); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(95); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '4'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 97 + "'", int13 == 97); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0883() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0883"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((double) 0L); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); double double17 = hypergeometricDistributionImpl3.probability(1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0884() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0884"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10L); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int12 + "' != '" + (-1) + "'", int12 == (-1)); } @Test public void test0885() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0885"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); double double21 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); int int22 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); } @Test public void test0886() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0886"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.probability(1); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 'a'); double double11 = hypergeometricDistributionImpl3.probability(0.0d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0887() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0887"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0.0f); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 1, (double) (short) 100); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0888() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0888"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability(0.0d); double double15 = hypergeometricDistributionImpl3.probability((int) '4'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((-1.0d)); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0889() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0889"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); hypergeometricDistributionImpl3.setSampleSize(0); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(32); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0890() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0890"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0891() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0891"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); int int12 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setPopulationSize(35); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0892() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0892"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getSampleSize(); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); } @Test public void test0893() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0893"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 1); hypergeometricDistributionImpl3.setSampleSize(10); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); int int11 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.probability(97); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 10 + "'", int11 == 10); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0894() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0894"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 0, (int) (byte) 0, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0895() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0895"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setPopulationSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) '#'); double double20 = hypergeometricDistributionImpl3.probability((double) '4'); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0896() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0896"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 100); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); // The following exception was thrown during execution in test generation try { double double11 = hypergeometricDistributionImpl3.cumulativeProbability(52, (int) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); } @Test public void test0897() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0897"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); double double19 = hypergeometricDistributionImpl3.probability((double) (byte) -1); double double21 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) '#'); double double23 = hypergeometricDistributionImpl3.probability(0); int int24 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize((int) (short) 0); double double28 = hypergeometricDistributionImpl3.probability((-1)); java.lang.Class<?> wildcardClass29 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); org.junit.Assert.assertTrue("'" + double23 + "' != '" + 0.0d + "'", double23 == 0.0d); org.junit.Assert.assertTrue("'" + int24 + "' != '" + 10 + "'", int24 == 10); org.junit.Assert.assertTrue("'" + double28 + "' != '" + 0.0d + "'", double28 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass29); } @Test public void test0898() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0898"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int16 = hypergeometricDistributionImpl3.getSampleSize(); double double18 = hypergeometricDistributionImpl3.probability((int) (short) 0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); } @Test public void test0899() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0899"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.probability(0); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(97); int int25 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int25 + "' != '" + 100 + "'", int25 == 100); } @Test public void test0900() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0900"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.probability(0.0d); double double17 = hypergeometricDistributionImpl3.probability((int) '#'); hypergeometricDistributionImpl3.setSampleSize(97); double double21 = hypergeometricDistributionImpl3.probability(128); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0901() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0901"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0, 0); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 0); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int17 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 0 + "'", int17 == 0); } @Test public void test0902() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0902"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0903() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0903"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setPopulationSize(97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100.0f); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double21 = hypergeometricDistributionImpl3.probability((double) 0.0f); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0904() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0904"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) -1); hypergeometricDistributionImpl3.setPopulationSize(97); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100.0f); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double21 = hypergeometricDistributionImpl3.cumulativeProbability(98); int int22 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass23 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 0 + "'", int22 == 0); org.junit.Assert.assertNotNull(wildcardClass23); } @Test public void test0905() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0905"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); java.lang.Class<?> wildcardClass17 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass17); } @Test public void test0906() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0906"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses(95); double double18 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) ' '); // The following exception was thrown during execution in test generation try { int int20 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0907() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0907"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) 'a', (int) (byte) 1, 95); } @Test public void test0908() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0908"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int11 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0909() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0909"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int17 = hypergeometricDistributionImpl3.getPopulationSize(); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#', (int) (byte) 100); java.lang.Class<?> wildcardClass21 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 1 + "'", int17 == 1); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass21); } @Test public void test0910() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0910"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 95); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(95); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 97 + "'", int13 == 97); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0911() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0911"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 10); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double13 = hypergeometricDistributionImpl3.probability((int) 'a'); double double15 = hypergeometricDistributionImpl3.probability(10); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability(6, (int) (byte) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0912() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0912"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(1); int int18 = hypergeometricDistributionImpl3.getSampleSize(); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) -1); double double22 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double24 = hypergeometricDistributionImpl3.probability((double) (short) 100); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 1); // The following exception was thrown during execution in test generation try { double double29 = hypergeometricDistributionImpl3.cumulativeProbability((double) ' ', (double) 1.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 0.0d + "'", double22 == 0.0d); org.junit.Assert.assertTrue("'" + double24 + "' != '" + 0.0d + "'", double24 == 0.0d); } @Test public void test0913() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0913"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); double double13 = hypergeometricDistributionImpl3.probability((double) 0.0f); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 0); double double17 = hypergeometricDistributionImpl3.probability((double) 100); // The following exception was thrown during execution in test generation try { double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a', 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0914() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0914"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses(9); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0915() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0915"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) ' '); double double11 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((-1)); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1); double double21 = hypergeometricDistributionImpl3.probability(0.0d); double double23 = hypergeometricDistributionImpl3.cumulativeProbability(100); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); org.junit.Assert.assertTrue("'" + double23 + "' != '" + 1.0d + "'", double23 == 1.0d); } @Test public void test0916() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0916"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); double double12 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 1); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1, (int) (byte) 10); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0917() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0917"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 10, 1); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.probability(0); hypergeometricDistributionImpl3.setPopulationSize(98); // The following exception was thrown during execution in test generation try { double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) 33, (double) 1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.8999999999999996d + "'", double6 == 0.8999999999999996d); } @Test public void test0918() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0918"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(98); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); java.lang.Class<?> wildcardClass11 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass11); } @Test public void test0919() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0919"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (short) 1, (int) 'a'); double double5 = hypergeometricDistributionImpl3.probability((int) (byte) -1); double double7 = hypergeometricDistributionImpl3.probability(0); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); double double13 = hypergeometricDistributionImpl3.probability((double) 35); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability(33); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.02999999999999997d + "'", double7 == 0.02999999999999997d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 100 + "'", int9 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0920() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0920"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability((double) 0); // The following exception was thrown during execution in test generation try { double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); } @Test public void test0921() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0921"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize(95); double double18 = hypergeometricDistributionImpl3.probability((int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (short) 100); double double22 = hypergeometricDistributionImpl3.cumulativeProbability(35); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setSampleSize((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); } @Test public void test0922() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0922"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, 1, 95); // The following exception was thrown during execution in test generation try { int int5 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0923() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0923"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) -1, (double) 10.0f); // The following exception was thrown during execution in test generation try { double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100, (int) '#'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0924() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0924"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); int int7 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double10 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); double double12 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 1); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1, (int) (byte) 10); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) ' '); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 0 + "'", int7 == 0); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 1.0d + "'", double10 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0925() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0925"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(9, (int) (byte) 10, 32); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0926() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0926"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); int int12 = hypergeometricDistributionImpl3.getSampleSize(); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 32 + "'", int13 == 32); } @Test public void test0927() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0927"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (short) 10, 105, (int) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0928() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0928"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setSampleSize(95); double double13 = hypergeometricDistributionImpl3.probability((double) 98); hypergeometricDistributionImpl3.setNumberOfSuccesses(32); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); } @Test public void test0929() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0929"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 10); double double17 = hypergeometricDistributionImpl3.probability((int) 'a'); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) (byte) 1); int int21 = hypergeometricDistributionImpl3.getPopulationSize(); int int23 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.8999999999999996d); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int21 + "' != '" + 1 + "'", int21 == 1); org.junit.Assert.assertTrue("'" + int23 + "' != '" + 8 + "'", int23 == 8); } @Test public void test0930() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0930"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize(0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); } @Test public void test0931() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0931"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 10, 100); int int13 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 10 + "'", int13 == 10); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0932() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0932"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100.0f); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability(52, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 10 + "'", int12 == 10); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); } @Test public void test0933() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0933"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (byte) 10); hypergeometricDistributionImpl3.setNumberOfSuccesses(35); hypergeometricDistributionImpl3.setPopulationSize(52); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0934() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0934"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 10, 1); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.probability(0); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 'a', 100.0d); // The following exception was thrown during execution in test generation try { int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.8999999999999996d + "'", double6 == 0.8999999999999996d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); } @Test public void test0935() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0935"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); int int19 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double22 = hypergeometricDistributionImpl3.cumulativeProbability((double) '4', (double) 33); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); } @Test public void test0936() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0936"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); int int16 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { int int18 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (-1L)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0937() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0937"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) 'a'); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0938() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0938"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); // The following exception was thrown during execution in test generation try { int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0939() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0939"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(96, (int) (byte) 0, 33); } @Test public void test0940() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0940"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); double double15 = hypergeometricDistributionImpl3.probability((double) (-1)); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); // The following exception was thrown during execution in test generation try { int int19 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 100); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0941() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0941"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) ' ', 52, 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0942() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0942"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(98); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); double double13 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 1); double double15 = hypergeometricDistributionImpl3.probability((int) '4'); int int16 = hypergeometricDistributionImpl3.getPopulationSize(); double double18 = hypergeometricDistributionImpl3.probability((double) (-1L)); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 1 + "'", int16 == 1); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0943() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0943"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((double) 0L); int int13 = hypergeometricDistributionImpl3.getPopulationSize(); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1L), (double) (-1L)); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 1 + "'", int13 == 1); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0944() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0944"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int13 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (short) 1); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); double double18 = hypergeometricDistributionImpl3.cumulativeProbability(33, (int) (short) 100); double double20 = hypergeometricDistributionImpl3.upperCumulativeProbability(9); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0945() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0945"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.probability((double) 10); double double15 = hypergeometricDistributionImpl3.probability((double) 98); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); // The following exception was thrown during execution in test generation try { double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) 35, (double) (short) 10); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0946() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0946"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((int) ' '); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); java.lang.Class<?> wildcardClass15 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 100 + "'", int14 == 100); org.junit.Assert.assertNotNull(wildcardClass15); } @Test public void test0947() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0947"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setNumberOfSuccesses(93); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); } @Test public void test0948() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0948"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double17 = hypergeometricDistributionImpl3.probability((double) 0L); hypergeometricDistributionImpl3.setSampleSize(35); java.lang.Class<?> wildcardClass20 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass20); } @Test public void test0949() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0949"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); } @Test public void test0950() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0950"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize(0); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) ' '); double double11 = hypergeometricDistributionImpl3.probability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((int) '4'); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) 0); double double19 = hypergeometricDistributionImpl3.probability(0.0d); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0951() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0951"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) ' '); int int19 = hypergeometricDistributionImpl3.getSampleSize(); int int20 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double22 = hypergeometricDistributionImpl3.cumulativeProbability(32); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); org.junit.Assert.assertTrue("'" + int20 + "' != '" + 0 + "'", int20 == 0); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); } @Test public void test0952() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0952"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); double double11 = hypergeometricDistributionImpl3.probability((double) 1); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.probability((double) (byte) 1); // The following exception was thrown during execution in test generation try { double double18 = hypergeometricDistributionImpl3.cumulativeProbability((double) 52, (double) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0953() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0953"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); double double11 = hypergeometricDistributionImpl3.probability((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.probability((int) (short) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(98); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 0); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); } @Test public void test0954() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0954"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setSampleSize(105); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0955() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0955"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.probability(97); int int12 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize(0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); } @Test public void test0956() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0956"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); int int12 = hypergeometricDistributionImpl3.getSampleSize(); double double14 = hypergeometricDistributionImpl3.upperCumulativeProbability(35); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (short) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0957() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0957"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(1); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 1, (int) (short) 1); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test0958() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0958"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(1); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(0, (int) 'a'); double double13 = hypergeometricDistributionImpl3.cumulativeProbability((double) 'a'); int int14 = hypergeometricDistributionImpl3.getPopulationSize(); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((-1)); hypergeometricDistributionImpl3.setPopulationSize((int) ' '); int int19 = hypergeometricDistributionImpl3.getSampleSize(); double double21 = hypergeometricDistributionImpl3.cumulativeProbability(0); int int22 = hypergeometricDistributionImpl3.getPopulationSize(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 1 + "'", int14 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 0.0d + "'", double16 == 0.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 1.0d + "'", double21 == 1.0d); org.junit.Assert.assertTrue("'" + int22 + "' != '" + 32 + "'", int22 == 32); } @Test public void test0959() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0959"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(100, 0, 97); // The following exception was thrown during execution in test generation try { double double6 = hypergeometricDistributionImpl3.cumulativeProbability(98, 26); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0960() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0960"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) '#', 35, 0); } @Test public void test0961() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0961"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int11 = hypergeometricDistributionImpl3.getSampleSize(); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.cumulativeProbability((double) 98); // The following exception was thrown during execution in test generation try { int int17 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 96); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: p must be between 0 and 1.0 (inclusive)"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 100 + "'", int11 == 100); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0962() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0962"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100, 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(98); hypergeometricDistributionImpl3.setSampleSize((int) ' '); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); } @Test public void test0963() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0963"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) -1); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) '#'); double double10 = hypergeometricDistributionImpl3.probability((double) (byte) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + double10 + "' != '" + 0.0d + "'", double10 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); } @Test public void test0964() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0964"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setPopulationSize((int) 'a'); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 33); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); } @Test public void test0965() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0965"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(0); int int6 = hypergeometricDistributionImpl3.getSampleSize(); double double8 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setPopulationSize(96); int int11 = hypergeometricDistributionImpl3.getSampleSize(); // The following exception was thrown during execution in test generation try { double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 33, (double) 0.0f); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int6 + "' != '" + 0 + "'", int6 == 0); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 0.0d + "'", double8 == 0.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 0 + "'", int11 == 0); } @Test public void test0966() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0966"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setPopulationSize(10); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); hypergeometricDistributionImpl3.setNumberOfSuccesses(10); hypergeometricDistributionImpl3.setNumberOfSuccesses(6); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability(33); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); } @Test public void test0967() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0967"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, 128, (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0968() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0968"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((-1.0d), (double) 98); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 0); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 1.0d + "'", double14 == 1.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); } @Test public void test0969() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0969"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int14 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0.0f); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability(0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int14 + "' != '" + (-1) + "'", int14 == (-1)); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0970() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0970"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); int int11 = hypergeometricDistributionImpl3.getPopulationSize(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(35); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setPopulationSize(0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: population size must be positive."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + int11 + "' != '" + 1 + "'", int11 == 1); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0971() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0971"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, 100, 96); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0972() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0972"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(100.0d); // The following exception was thrown during execution in test generation try { double double14 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1, (-1)); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0973() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0973"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((int) 'a'); int int17 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 35 + "'", int17 == 35); } @Test public void test0974() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0974"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1, (int) (byte) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double13 = hypergeometricDistributionImpl3.probability(0.0d); double double15 = hypergeometricDistributionImpl3.probability((int) '4'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((-1.0d)); // The following exception was thrown during execution in test generation try { double double20 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 100, (double) '4'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0975() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0975"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); hypergeometricDistributionImpl3.setSampleSize(100); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(1, (int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(35); double double16 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) -1); hypergeometricDistributionImpl3.setSampleSize((int) '#'); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); } @Test public void test0976() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0976"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(35); java.lang.Class<?> wildcardClass14 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 1.0d + "'", double13 == 1.0d); org.junit.Assert.assertNotNull(wildcardClass14); } @Test public void test0977() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0977"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); hypergeometricDistributionImpl3.setSampleSize(0); double double15 = hypergeometricDistributionImpl3.probability((int) (short) 1); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0978() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0978"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, (int) (short) -1, 105); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: sample size must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0979() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0979"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.probability((double) 'a'); double double11 = hypergeometricDistributionImpl3.probability((double) '4'); double double14 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) (short) 10); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); } @Test public void test0980() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0980"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.upperCumulativeProbability(98); double double11 = hypergeometricDistributionImpl3.probability((int) (short) 100); double double13 = hypergeometricDistributionImpl3.probability(100); double double15 = hypergeometricDistributionImpl3.probability(0.0d); double double17 = hypergeometricDistributionImpl3.probability((int) '#'); int int18 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double20 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) -1); int int22 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.8969072164948454d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 0.0d + "'", double11 == 0.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + int18 + "' != '" + 0 + "'", int18 == 0); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertTrue("'" + int22 + "' != '" + (-1) + "'", int22 == (-1)); } @Test public void test0981() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0981"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 1); hypergeometricDistributionImpl3.setPopulationSize((int) '#'); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) ' '); double double17 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) ' '); double double22 = hypergeometricDistributionImpl3.cumulativeProbability((-1), (int) (short) 0); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double22 + "' != '" + 1.0d + "'", double22 == 1.0d); } @Test public void test0982() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0982"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) '#', (int) 'a', (int) 'a'); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0983() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0983"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double8 = hypergeometricDistributionImpl3.cumulativeProbability((int) (short) 100); int int9 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + double8 + "' != '" + 1.0d + "'", double8 == 1.0d); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 0 + "'", int9 == 0); } @Test public void test0984() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0984"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); int int7 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses(32); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.0d + "'", double6 == 0.0d); org.junit.Assert.assertTrue("'" + int7 + "' != '" + 1 + "'", int7 == 1); } @Test public void test0985() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0985"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 1); hypergeometricDistributionImpl3.setPopulationSize(1); double double18 = hypergeometricDistributionImpl3.probability((double) 0L); double double20 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) (short) 100); java.lang.Class<?> wildcardClass21 = hypergeometricDistributionImpl3.getClass(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); org.junit.Assert.assertTrue("'" + double20 + "' != '" + 0.0d + "'", double20 == 0.0d); org.junit.Assert.assertNotNull(wildcardClass21); } @Test public void test0986() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0986"); // The following exception was thrown during execution in test generation try { org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(0, (int) (byte) 100, 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be less than or equal to population size"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } } @Test public void test0987() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0987"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); hypergeometricDistributionImpl3.setPopulationSize(100); double double7 = hypergeometricDistributionImpl3.probability((int) (short) 10); double double9 = hypergeometricDistributionImpl3.probability((double) 1L); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 100); double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10.0f, (double) 100.0f); double double16 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0.0f); int int17 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double14 + "' != '" + 0.0d + "'", double14 == 0.0d); org.junit.Assert.assertTrue("'" + double16 + "' != '" + 1.0d + "'", double16 == 1.0d); org.junit.Assert.assertTrue("'" + int17 + "' != '" + 100 + "'", int17 == 100); } @Test public void test0988() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0988"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100L, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 100); int int10 = hypergeometricDistributionImpl3.getSampleSize(); int int12 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) 0L); hypergeometricDistributionImpl3.setSampleSize(95); int int15 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 1 + "'", int4 == 1); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 100 + "'", int10 == 100); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 98 + "'", int12 == 98); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 0 + "'", int15 == 0); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 0 + "'", int16 == 0); } @Test public void test0989() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0989"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) (byte) 100, (int) (byte) 10, 1); int int4 = hypergeometricDistributionImpl3.getPopulationSize(); double double6 = hypergeometricDistributionImpl3.probability(0); hypergeometricDistributionImpl3.setSampleSize(98); org.junit.Assert.assertTrue("'" + int4 + "' != '" + 100 + "'", int4 == 100); org.junit.Assert.assertTrue("'" + double6 + "' != '" + 0.8999999999999996d + "'", double6 == 0.8999999999999996d); } @Test public void test0990() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0990"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); double double12 = hypergeometricDistributionImpl3.probability((double) 0L); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double18 = hypergeometricDistributionImpl3.cumulativeProbability(0.8999999999999996d, (double) (short) 100); int int19 = hypergeometricDistributionImpl3.getSampleSize(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); org.junit.Assert.assertTrue("'" + int19 + "' != '" + 0 + "'", int19 == 0); } @Test public void test0991() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0991"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.probability((double) (short) 100); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 100); int int8 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); int int9 = hypergeometricDistributionImpl3.getPopulationSize(); double double11 = hypergeometricDistributionImpl3.cumulativeProbability(10.0d); double double13 = hypergeometricDistributionImpl3.probability(32); double double15 = hypergeometricDistributionImpl3.probability((int) '#'); hypergeometricDistributionImpl3.setNumberOfSuccesses(6); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 0 + "'", int8 == 0); org.junit.Assert.assertTrue("'" + int9 + "' != '" + 1 + "'", int9 == 1); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); } @Test public void test0992() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0992"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl((int) 'a', 95, 0); int int5 = hypergeometricDistributionImpl3.inverseCumulativeProbability((double) (byte) 0); hypergeometricDistributionImpl3.setNumberOfSuccesses(96); // The following exception was thrown during execution in test generation try { hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) -1); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: number of successes must be non-negative."); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + int5 + "' != '" + (-1) + "'", int5 == (-1)); } @Test public void test0993() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0993"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); double double9 = hypergeometricDistributionImpl3.probability((int) 'a'); double double11 = hypergeometricDistributionImpl3.cumulativeProbability((double) (short) 0); // The following exception was thrown during execution in test generation try { double double14 = hypergeometricDistributionImpl3.cumulativeProbability((double) 98, (double) (short) 0); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 0.0d + "'", double9 == 0.0d); org.junit.Assert.assertTrue("'" + double11 + "' != '" + 1.0d + "'", double11 == 1.0d); } @Test public void test0994() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0994"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int11 = hypergeometricDistributionImpl3.inverseCumulativeProbability(0.0d); int int12 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); hypergeometricDistributionImpl3.setSampleSize(1); int int15 = hypergeometricDistributionImpl3.getSampleSize(); double double18 = hypergeometricDistributionImpl3.cumulativeProbability((double) 97, 100.0d); hypergeometricDistributionImpl3.setSampleSize((int) '#'); // The following exception was thrown during execution in test generation try { double double23 = hypergeometricDistributionImpl3.cumulativeProbability((double) 100, (double) 52); org.junit.Assert.fail("Expected exception of type java.lang.IllegalArgumentException; message: lower endpoint must be less than or equal to upper endpoint"); } catch (java.lang.IllegalArgumentException e) { // Expected exception. } org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int11 + "' != '" + (-1) + "'", int11 == (-1)); org.junit.Assert.assertTrue("'" + int12 + "' != '" + 0 + "'", int12 == 0); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 0.0d + "'", double18 == 0.0d); } @Test public void test0995() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0995"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability(10); int int8 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) 'a'); double double12 = hypergeometricDistributionImpl3.cumulativeProbability((double) 95); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(0.02999999999999997d); hypergeometricDistributionImpl3.setSampleSize(1); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) (byte) 10); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 1.0d + "'", double7 == 1.0d); org.junit.Assert.assertTrue("'" + int8 + "' != '" + 1 + "'", int8 == 1); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 0.0d + "'", double12 == 0.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 97 + "'", int13 == 97); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 0.0d + "'", double15 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 1.0d + "'", double19 == 1.0d); } @Test public void test0996() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0996"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); hypergeometricDistributionImpl3.setSampleSize((int) (short) 10); int int15 = hypergeometricDistributionImpl3.getPopulationSize(); double double18 = hypergeometricDistributionImpl3.cumulativeProbability(9, 93); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int15 + "' != '" + 1 + "'", int15 == 1); org.junit.Assert.assertTrue("'" + double18 + "' != '" + 1.0d + "'", double18 == 1.0d); } @Test public void test0997() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0997"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); double double17 = hypergeometricDistributionImpl3.cumulativeProbability((int) (byte) 1); hypergeometricDistributionImpl3.setSampleSize((int) (byte) 0); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); } @Test public void test0998() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0998"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); int int10 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double13 = hypergeometricDistributionImpl3.cumulativeProbability(10, (int) ' '); int int14 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); double double17 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 10); hypergeometricDistributionImpl3.setPopulationSize((int) (byte) 10); double double21 = hypergeometricDistributionImpl3.probability(1); hypergeometricDistributionImpl3.setPopulationSize((int) '4'); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 0 + "'", int10 == 0); org.junit.Assert.assertTrue("'" + double13 + "' != '" + 0.0d + "'", double13 == 0.0d); org.junit.Assert.assertTrue("'" + int14 + "' != '" + 0 + "'", int14 == 0); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 1.0d + "'", double17 == 1.0d); org.junit.Assert.assertTrue("'" + double21 + "' != '" + 0.0d + "'", double21 == 0.0d); } @Test public void test0999() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test0999"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.upperCumulativeProbability(1); double double9 = hypergeometricDistributionImpl3.probability((int) (short) 0); int int10 = hypergeometricDistributionImpl3.getPopulationSize(); hypergeometricDistributionImpl3.setSampleSize((int) '#'); int int13 = hypergeometricDistributionImpl3.getSampleSize(); double double15 = hypergeometricDistributionImpl3.cumulativeProbability(100); double double17 = hypergeometricDistributionImpl3.probability(0.02999999999999997d); double double19 = hypergeometricDistributionImpl3.cumulativeProbability((double) 0L); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + int10 + "' != '" + 1 + "'", int10 == 1); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 35 + "'", int13 == 35); org.junit.Assert.assertTrue("'" + double15 + "' != '" + 1.0d + "'", double15 == 1.0d); org.junit.Assert.assertTrue("'" + double17 + "' != '" + 0.0d + "'", double17 == 0.0d); org.junit.Assert.assertTrue("'" + double19 + "' != '" + 0.0d + "'", double19 == 0.0d); } @Test public void test1000() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest1.test1000"); org.apache.commons.math.distribution.HypergeometricDistributionImpl hypergeometricDistributionImpl3 = new org.apache.commons.math.distribution.HypergeometricDistributionImpl(1, 0, 0); double double5 = hypergeometricDistributionImpl3.upperCumulativeProbability((int) 'a'); double double7 = hypergeometricDistributionImpl3.cumulativeProbability((double) (-1.0f)); double double9 = hypergeometricDistributionImpl3.cumulativeProbability((double) 10); double double12 = hypergeometricDistributionImpl3.cumulativeProbability(0.0d, (double) 100); int int13 = hypergeometricDistributionImpl3.getSampleSize(); hypergeometricDistributionImpl3.setNumberOfSuccesses((int) (byte) 10); int int16 = hypergeometricDistributionImpl3.getNumberOfSuccesses(); org.junit.Assert.assertTrue("'" + double5 + "' != '" + 0.0d + "'", double5 == 0.0d); org.junit.Assert.assertTrue("'" + double7 + "' != '" + 0.0d + "'", double7 == 0.0d); org.junit.Assert.assertTrue("'" + double9 + "' != '" + 1.0d + "'", double9 == 1.0d); org.junit.Assert.assertTrue("'" + double12 + "' != '" + 1.0d + "'", double12 == 1.0d); org.junit.Assert.assertTrue("'" + int13 + "' != '" + 0 + "'", int13 == 0); org.junit.Assert.assertTrue("'" + int16 + "' != '" + 10 + "'", int16 == 10); } }
717e846d48a9e8722b25bea8272993ee3fd74eeb
f46a0ec54bdde0d7271eadb4a3e234c2ea5c006f
/app/src/main/java/vn/edu/poly/bookmanagerr/activity/ListActivity.java
b05a7168bf471bbb760b0bd61c5bae62ffa351bf
[]
no_license
huuhuybn/BookManagerr
c50016912df7fa672680cc79081bc2a127e1daa5
5f1f9ad33748b3b7e58e3a0ddf2c763b06cb195b
refs/heads/master
2020-04-16T22:54:21.620866
2019-01-16T06:46:55
2019-01-16T06:46:55
165,989,256
0
0
null
null
null
null
UTF-8
Java
false
false
1,122
java
package vn.edu.poly.bookmanagerr.activity; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.TextView; import vn.edu.poly.bookmanagerr.R; import vn.edu.poly.bookmanagerr.base.BaseActivity; public class ListActivity extends BaseActivity implements View.OnClickListener { private TextView tvUser; private TextView tvType; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_list); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); tvUser = findViewById(R.id.tvUser); tvType = findViewById(R.id.tvType); tvUser.setOnClickListener(this); } @Override public void onClick(View view) { int id = view.getId(); if (id == R.id.tvUser) { }else if (id == R.id.tvType){ } } }
e702a2ee1d87fd9e2e7d536d051ca7192022ec3e
b61cfd8d0eb8fc6d4423e980c682af78383993eb
/vehicle-compliance/src/it/java/uk/gov/caz/vcc/domain/service/FuelTypeServiceTestIT.java
db71b097962fa945fbf3d8925220f92f9aacf29e
[ "OGL-UK-3.0" ]
permissive
DEFRA/clean-air-zones-api
984e6ba7d16cc484e74dd57b1fab6150e230ce1c
e6437781ff5dc71b01ffce9fd6f8bec2226ee0a6
refs/heads/master
2023-07-24T13:59:03.152029
2021-05-06T16:24:20
2021-05-06T16:24:20
232,327,284
0
2
NOASSERTION
2023-07-13T17:02:58
2020-01-07T13:10:59
Java
UTF-8
Java
false
false
2,752
java
package uk.gov.caz.vcc.domain.service; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import java.util.Collection; import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.springframework.beans.factory.annotation.Autowired; import uk.gov.caz.definitions.exceptions.UnrecognisedFuelTypeException; import uk.gov.caz.vcc.annotation.IntegrationTest; @IntegrationTest public class FuelTypeServiceTestIT { @Autowired private FuelTypeService fuelTypeService; @ParameterizedTest @MethodSource("exemptionFuelType") void givenValidFuelThenPositiveExemptionCheck(String fuelType) { assertTrue(fuelTypeService.isExemptFuelType(fuelType)); } private static Stream<Arguments> exemptionFuelType() { Collection<String> exemptFuelTypes = Arrays.asList("steam","electricity","fuel cells","gas", "STEAM","ELECTRICITY","FUEL CELLS","GAS"); return exemptFuelTypes .stream() .map(fuelType -> Arguments.of(fuelType)); } @ParameterizedTest @MethodSource("nonExemptionFuelType") void givenInValidFuelThenNegativeExemptionCheck(String fuelType) { assertFalse(fuelTypeService.isExemptFuelType(fuelType)); } private static Stream<Arguments> nonExemptionFuelType() { return Stream.of(Arguments.of(""), Arguments.of("non-exemption-fuel-type")); } @ParameterizedTest @MethodSource("validFuelTypes") void givenValidFuelsThenGetFuelTypesDoesNotThrowException(String fuelType) { assertDoesNotThrow(() -> fuelTypeService.getFuelType(fuelType)); } private static Stream<Arguments> validFuelTypes() { Collection<String> fuelTypes = Arrays.asList("petrol", "hybrid electric", "gas bi-fuel", "gas/petrol","diesel", "heavy oil", "electric diesel", "gas diesel"); return fuelTypes .stream() .map(fuelType -> Arguments.of(fuelType)); } @ParameterizedTest @MethodSource("invalidFuelTypes") void givenInvalidFuelsThenGetFuelTypesDoesThrowException(String fuelType) { assertThrows(UnrecognisedFuelTypeException.class, () -> fuelTypeService.getFuelType(fuelType)); } private static Stream<Arguments> invalidFuelTypes() { Collection<String> fuelTypes = Arrays.asList("", "invalid-fuel-type"); return fuelTypes .stream() .map(fuelType -> Arguments.of(fuelType)); } }
0061d791b0d1c4144bf4b5a9ef6722ccc90d8272
549167036e7eb306514ea0fd48d346c33ded077d
/CurrencyConvertion/src/main/CurrencyConverter.java
ae94b44dc72b93c88587fcdb70ce9750ba0e00c2
[]
no_license
WandratschDavid/htlw3-sew
a1a6cd2a4f372a12c048584b92f69953d8210b02
3e666f94a632a8af727026cbff15f27663b96144
refs/heads/master
2023-08-15T13:25:49.356811
2021-09-17T05:53:00
2021-09-17T05:53:00
407,284,599
0
1
null
null
null
null
UTF-8
Java
false
false
136
java
package main; public class CurrencyConverter { public double euroToYen(double euro) { return euro * 124.173659; } }
accd78b69e09c04ee793c5220fbd668661bf7ae6
44c164e0939728137e11b746957dad6cf631ced4
/leetcode/src/search/bfs/Problem3.java
6a07db09615502952fedcaf7ae529d3c1eef6970
[]
no_license
wangyou2550/LeetCode
5e1d6ff0e60556d72191b3dca87571f42a25201c
d0d29684e029bc2447d45dea0fdae57ae6def8a6
refs/heads/master
2022-11-21T11:40:50.106524
2020-07-12T00:54:57
2020-07-12T00:54:57
273,352,825
0
0
null
null
null
null
UTF-8
Java
false
false
1,873
java
package search.bfs; import java.util.*; /** * @Description: 最短单词路径 * @Author: wangyou * @Date: 2020/7/9 */ //思路;bfs:把相差一个的入队,然后通过从队列中移除掉它,表示以访问过,不在访问 // 删除不可靠,置标志位吧 public class Problem3 { public int ladderLength(String start, String end, List<String> wordList){ if(wordList==null||wordList.size()==0)return 0; Queue<String>queue=new LinkedList<>(); boolean []vis=new boolean[wordList.size()]; queue.add(start); int res=0; while(!queue.isEmpty()){ res++; int size=queue.size(); for (int i = 0; i <size ; i++) { String cur=queue.poll(); for (int j = 0; j <wordList.size() ; j++) { if(vis[j])continue; String s=wordList.get(j); if(oneDiff(cur,s)){ if(s.equals(end))return res+1; vis[j]=true; queue.add(s); } } } } return 0; } public boolean oneDiff(String s,String t){ if(s.length()!=t.length())return false; int cnt=0; for (int i = 0; i <s.length() ; i++) { if(s.charAt(i)!=t.charAt(i)){ cnt++; } } return cnt==1; } public static void main(String[] args) { Scanner sc=new Scanner(System.in); Problem3 p=new Problem3(); while(sc.hasNext()){ String start=sc.nextLine(); String end=sc.nextLine(); String[] list=sc.nextLine().split(" "); List<String>wordList=Arrays.asList(list); System.out.println(p.ladderLength(start,end,wordList)); } } }
8654b76ce2dc9c1ac46a7b14ca2279a4cee91c7f
ab9a2266e3d5c909436aff4d70b1673c4ffad9cd
/app/src/main/java/com/example/android/movieappstage2/Utils/Trailer.java
4ae5afe4baab2b4a6f8c68c83deb3514ebb061e5
[]
no_license
minaessam2015/MovieAppStage2
38317745e3b263a720cb8ff7f9f803c625e4bd92
e47880c8a0efadb858b15ef0401076c444a296b2
refs/heads/master
2021-01-20T02:05:37.099243
2017-07-23T12:20:53
2017-07-23T12:20:53
89,371,770
0
0
null
null
null
null
UTF-8
Java
false
false
548
java
package com.example.android.movieappstage2.Utils; /** * Created by mina essam on 24-Apr-17. */ public class Trailer { private String name; private String key; private String quality; public Trailer(String name,String key,String quality){ this.name=name; this.key=key; this.quality=quality; } public String getName() { return name; } public String getKey() { return key; } public String getQuality() { return quality; } }
ddb21f6e324662c928c856bf4546a137dc273425
6d8df5b29dae78d43a5b91219be7ae676f62e38b
/src/internit/Arrayl16.java
f5a0c7ba84edc504cc39759219be013d29b50a6b
[]
no_license
jarvis149/Array-l1
756a5fa34a3878c60f6804e1fdffa09d7c2a1616
c61e792ddc2a0a6f14a826c35a75a504f644ef63
refs/heads/master
2022-09-26T10:43:15.935544
2020-06-04T12:21:47
2020-06-04T12:21:47
269,346,894
0
0
null
null
null
null
UTF-8
Java
false
false
849
java
package internit; import java.util.Scanner; public class Arrayl16 { public static void main(String[] args){ int ele,loc = 0,count=0,i,sum=0,arr[]; Scanner obj=new Scanner(System.in); arr=new int[10]; System.out.println("Enter the elements of the array:"); for(i=0;i<10;i++){ arr[i]=obj.nextInt(); } System.out.println("Enter The Element to be searched:"); ele=obj.nextInt(); for(i=0;i<10;i++){ if(arr[i]==ele){ count=1; loc=i; break; } } if(count==1){ System.out.println("The element has been found in: "+(loc+1)+" location."); } else{ System.out.println("The Element has not been found."); } } }
95bb2a46d814600cc71937209c23c926cc3cac83
2c831c1093fbfa7c7cd9e7b04f38d7d8f0ecaa1a
/SpringDataJPA/src/main/java/com/admin/jpa/model/Employee.java
65e5b637be5d44a831390e87235ab91df8565707
[]
no_license
Son-Hust/Github
d08e2c199d7d38cc2040a743bd481a0e01fc074f
85eff26300e2748fd9ed8e328e5725328bd65a11
refs/heads/master
2021-01-05T11:42:05.821104
2020-06-14T18:27:49
2020-06-14T18:27:49
241,011,454
0
0
null
null
null
null
UTF-8
Java
false
false
352
java
package com.admin.jpa.model; import lombok.AllArgsConstructor; import lombok.ToString; import javax.persistence.*; @Entity @AllArgsConstructor @ToString public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; @OrderBy private String name; @ManyToOne private Employee employee; }
a6e8f6753c5bf006df4a3697eee3bf1b529f81d4
5fa63309ebff8b37240fb4afd48261c12129e201
/Suma/src/suma/SumaMain.java
6470fe97f09067be1e8785d77e55e623b044ffc4
[]
no_license
AlezDiaz/JavaIntermedio
d1587c31fb7294bff5c9e14609f539dd2aa14c03
a66aeea185ec7c3c7ce9cf54b85f67fd11e176f9
refs/heads/master
2020-03-27T13:32:43.066776
2018-08-29T15:00:50
2018-08-29T15:00:50
146,615,471
0
0
null
null
null
null
UTF-8
Java
false
false
454
java
package suma; import java.util.Scanner; public class SumaMain { public static void main(String[] args) { Scanner entrada = new Scanner(System.in); System.out.println("Dame el primer valor: "); int valorUno = entrada.nextInt(); System.out.println("Dame el segundo valor: "); int valorDos = entrada.nextInt(); Suma valores = new Suma(valorUno, valorDos); valores.Imprimir(); } }
cda9a530627f3265025888d39a0eb77f418b57a4
0dee0930c8eec86e76b769de70e89761c592ad78
/android/app/src/main/java/com/msm_sgsg_4717_dev_14475/MainActivity.java
1479389430eaeaa6705c71e2aa04a9b40eab6147
[]
no_license
crowdbotics-apps/msm-sgsg-4717-dev-14475
1fc6a60aa726d567ec44584698409458c9ba3306
9c7811fae96e01482abc8ba3e78195ad139fdade
refs/heads/master
2023-01-08T10:30:51.696194
2020-11-03T05:26:28
2020-11-03T05:26:28
309,577,143
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.msm_sgsg_4717_dev_14475; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ @Override protected String getMainComponentName() { return "msm_sgsg_4717_dev_14475"; } }
4aaf32e413991dab5a2af2e7137fa75c1e789719
2d664ab6b6db6048d225af966e3f191f757ca10b
/JavaBasics2/src/Assignment1.java
a226975949ea3002d9afdb4574885ca4bb2c4bd2
[]
no_license
asernass/assignments
fdb895f30dfafe87faa17ba3a9ec26dc9c975599
62dceb71ed64e6e20c0965400a6f911c12aa3113
refs/heads/main
2023-06-01T22:34:40.498749
2021-06-14T20:13:38
2021-06-14T20:13:38
373,197,992
0
0
null
null
null
null
UTF-8
Java
false
false
547
java
public class Assignment1 { public static int sum(String[] data) { int sumData = 0; for (String string : data) { try { sumData += Integer.parseInt(string); } catch (Exception e) { continue; } } return sumData; } public static void main(String[] args) { if (args.length != 0) { System.out.println(sum(args)); } else { System.out.println("Please add arguments to the program."); } } }
1bff7034ac33f906ee0118c98f574e455399e3c8
2481d8c57b43b95d70c6d1a28ee90dd4d6ae1372
/temp/src/minecraft/net/minecraft/src/TexturePackList.java
9da5d4851cfd872b0ce60077965a9dba916ee76a
[]
no_license
UserCake/Gallifrey
c20bc8c6e75dc3a6b61301458ba5704d2db5872a
2a55cb6106224b274f3326d7f5802540063bfa66
refs/heads/master
2021-01-20T21:53:10.901777
2012-03-28T05:58:35
2012-03-28T05:58:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,591
java
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode fieldsfirst package net.minecraft.src; import java.io.File; import java.io.IOException; import java.util.*; import net.minecraft.client.Minecraft; // Referenced classes of package net.minecraft.src: // TexturePackDefault, GameSettings, TexturePackBase, TexturePackCustom, // TexturePackFolder public class TexturePackList { private List field_6533_b; private TexturePackBase field_6539_c; public TexturePackBase field_6534_a; private Map field_6538_d; private Minecraft field_6537_e; private File field_6536_f; private String field_6535_g; public TexturePackList(Minecraft p_i340_1_, File p_i340_2_) { field_6533_b = new ArrayList(); field_6539_c = new TexturePackDefault(); field_6538_d = new HashMap(); field_6537_e = p_i340_1_; field_6536_f = new File(p_i340_2_, "texturepacks"); if(field_6536_f.exists()) { if(!field_6536_f.isDirectory()) { field_6536_f.delete(); field_6536_f.mkdirs(); } } else { field_6536_f.mkdirs(); } field_6535_g = p_i340_1_.field_6304_y.field_6524_j; func_6532_a(); field_6534_a.func_6482_a(); } public boolean func_6531_a(TexturePackBase p_6531_1_) { if(p_6531_1_ == field_6534_a) { return false; } else { field_6534_a.func_6480_b(); field_6535_g = p_6531_1_.field_6487_a; field_6534_a = p_6531_1_; field_6537_e.field_6304_y.field_6524_j = field_6535_g; field_6537_e.field_6304_y.func_1041_b(); field_6534_a.func_6482_a(); return true; } } public void func_6532_a() { ArrayList arraylist = new ArrayList(); field_6534_a = null; arraylist.add(field_6539_c); if(field_6536_f.exists() && field_6536_f.isDirectory()) { File afile[] = field_6536_f.listFiles(); File afile1[] = afile; int i = afile1.length; for(int j = 0; j < i; j++) { File file = afile1[j]; if(file.isFile() && file.getName().toLowerCase().endsWith(".zip")) { String s = (new StringBuilder()).append(file.getName()).append(":").append(file.length()).append(":").append(file.lastModified()).toString(); try { if(!field_6538_d.containsKey(s)) { TexturePackCustom texturepackcustom = new TexturePackCustom(file); texturepackcustom.field_6488_d = s; field_6538_d.put(s, texturepackcustom); texturepackcustom.func_6485_a(field_6537_e); } TexturePackBase texturepackbase1 = (TexturePackBase)field_6538_d.get(s); if(texturepackbase1.field_6487_a.equals(field_6535_g)) { field_6534_a = texturepackbase1; } arraylist.add(texturepackbase1); } catch(IOException ioexception) { ioexception.printStackTrace(); } continue; } if(!file.isDirectory() || !(new File(file, "pack.txt")).exists()) { continue; } String s1 = (new StringBuilder()).append(file.getName()).append(":folder:").append(file.lastModified()).toString(); try { if(!field_6538_d.containsKey(s1)) { TexturePackFolder texturepackfolder = new TexturePackFolder(file); texturepackfolder.field_6488_d = s1; field_6538_d.put(s1, texturepackfolder); texturepackfolder.func_6485_a(field_6537_e); } TexturePackBase texturepackbase2 = (TexturePackBase)field_6538_d.get(s1); if(texturepackbase2.field_6487_a.equals(field_6535_g)) { field_6534_a = texturepackbase2; } arraylist.add(texturepackbase2); } catch(IOException ioexception1) { ioexception1.printStackTrace(); } } } if(field_6534_a == null) { field_6534_a = field_6539_c; } field_6533_b.removeAll(arraylist); TexturePackBase texturepackbase; for(Iterator iterator = field_6533_b.iterator(); iterator.hasNext(); field_6538_d.remove(texturepackbase.field_6488_d)) { texturepackbase = (TexturePackBase)iterator.next(); texturepackbase.func_6484_b(field_6537_e); } field_6533_b = arraylist; } public List func_6530_b() { return new ArrayList(field_6533_b); } }
166c9215931c9df352055ee63ef3fa21016b87cc
c2efacd889f56763712dda60dfd80cac9e5bcce2
/bee_core/src/main/java/com/bee/commons/IntegralMachine.java
700fa4c52098c64748790954ad79fd4b71db8655
[]
no_license
caocf/bee_parent
70c1d54e657a7b2ccd0e8696f293719b133ad8cc
ab8899e800cc318f22fc23045b1164a0047bcefa
refs/heads/master
2020-05-29T11:55:16.736793
2016-01-27T15:53:52
2016-01-27T15:53:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
470
java
package com.bee.commons; /** * 积分计算器 * * Created by suntongwei on 15/10/2. */ public final class IntegralMachine { /** * 完成订单获取额外积分(活动积分) */ public static final int OrderFinishExtra = 0; /** * 完成订单获得积分 */ public static final int OrderFinish = 1000 + OrderFinishExtra; /** * 完成订单评论积分 */ public static final int OrderComment = 200; }
5204ca6f3170e7f7cfdd906dfd7db841d8c070bb
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_598f659accdbe6029d2facf2459aed6154696dad/DDatabase/2_598f659accdbe6029d2facf2459aed6154696dad_DDatabase_s.java
6beb0809ee36145a088d10ae0b38b5b79786448f
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
17,861
java
package com.legit2.Demigods; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; import java.util.Map.Entry; import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import com.legit2.Demigods.Utilities.DCharUtil; import com.legit2.Demigods.Utilities.DDataUtil; import com.legit2.Demigods.Utilities.DObjUtil; import com.legit2.Demigods.Utilities.DPlayerUtil; import com.legit2.Demigods.Utilities.DUtil; public class DDatabase { /* * initializeDatabase() : Loads the MySQL or SQLite database. */ public static void initializeDatabase() { // Check if MySQL is enabled in the configuration and if so, attempts to connect. if(DConfig.getSettingBoolean("mysql")) { DMySQL.createConnection(); DMySQL.initializeMySQL(); loadAllData(); } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * uninitializeDatabase() : Unloads the MySQL or SQLite database. */ public static void uninitializeDatabase() { saveAllData(); if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { DMySQL.uninitializeMySQL(); } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * addPlayerToDB() : Adds the player to the database. */ public static void addPlayerToDB(OfflinePlayer player) throws SQLException { // Define variables Long firstLoginTime = System.currentTimeMillis(); // Next we add them to the Database if needed if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { int playerID = DPlayerUtil.getPlayerID(player); String playerName = player.getName(); String addQuery = "INSERT INTO " + DMySQL.player_table + " (player_id, player_name, player_characters, player_kills, player_deaths, player_firstlogin, player_lastlogin) VALUES (" + playerID + ",'" + playerName + "', NULL, 0, 0," + firstLoginTime + "," + firstLoginTime +");"; DMySQL.runQuery(addQuery); } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * removePlayerFromDB() : Removes the player from the database. */ public static void removePlayerFromDB(OfflinePlayer player) throws SQLException { // Next we add them to the Database if needed if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { // TODO: Remove player from MySQL } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * addPlayerToDB() : Adds the player to the database. */ public static void addCharToDB(OfflinePlayer player, int charID) throws SQLException { // Next we add them to the Database if needed if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { int playerID = DPlayerUtil.getPlayerID(player); boolean charActive = DCharUtil.isActive(charID); String charName = DCharUtil.getName(charID); String charDeity = DCharUtil.getDeity(charID); String charAlliance = DCharUtil.getAlliance(charID); boolean charImmortal = DCharUtil.getImmortal(charID); int charHP = DCharUtil.getHP(charID); float charExp = DCharUtil.getExp(charID); int charFavor = DCharUtil.getFavor(charID); int charDevotion = DCharUtil.getDevotion(charID); int charAscensions = DCharUtil.getAscensions(charID); double charLastX = 0.0; double charLastY = 0.0; double charLastZ = 0.0; String charLastW = ""; String addQuery = "INSERT INTO " + DMySQL.character_table + "(char_id,player_id,char_active,char_name,char_deity,char_alliance,char_immortal,char_hp,char_exp,char_favor,char_devotion,char_ascensions,char_lastX,char_lastY,char_lastZ,char_lastW)" + "VALUES (" + charID + "," + playerID + "," + charActive + "," + "'" + charName + "'," + "'" + charDeity + "'," + "'" + charAlliance + "'," + charImmortal + "," + charHP + "," + charExp + "," + charFavor + "," + charDevotion + "," + charAscensions + "," + charLastX + "," + charLastY + "," + charLastZ + "," + "'" + charLastW + "'" + ");"; DMySQL.runQuery(addQuery); } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * getPlayerInfo() : Grabs the player info from MySQL/FlatFile and returns (ResultSet)result. */ public static ResultSet getPlayerInfo(String username) throws SQLException { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { // TODO: Return player info from MySQL } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return null; } /* * loadAllData() : Loads all data from database into HashMaps. */ public static void loadAllData() { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { DUtil.info("Loading Demigods data..."); // Define variables int playerCount = 0; int characterCount = 0; long startStopwatch = System.currentTimeMillis(); // Define SELECT queries String selectPlayer = "SELECT * FROM " + DMySQL.player_table + " LEFT JOIN " + DMySQL.playerdata_table + " ON " + DMySQL.player_table + ".player_id = " + DMySQL.playerdata_table + ".player_id;"; ResultSet playerResult = DMySQL.runQuery(selectPlayer); try { while(playerResult.next()) { playerCount++; OfflinePlayer player = DPlayerUtil.definePlayer(playerResult.getString("player_name")); int playerID = playerResult.getInt("player_id"); // Load the main player data DDataUtil.addPlayer(player, playerID); DDataUtil.savePlayerData(player, "player_id", playerResult.getString("player_id")); DDataUtil.savePlayerData(player, "player_characters", playerResult.getString("player_characters")); DDataUtil.savePlayerData(player, "player_kills", playerResult.getInt("player_kills")); DDataUtil.savePlayerData(player, "player_deaths", playerResult.getInt("player_deaths")); DDataUtil.savePlayerData(player, "player_firstlogin", playerResult.getLong("player_firstlogin")); // Load other player data if(playerResult.getString("datakey") != null) { if(playerResult.getString("datakey").contains("boolean_")) { DDataUtil.savePlayerData(player, playerResult.getString("datakey"), playerResult.getBoolean("datavalue")); } else { DDataUtil.savePlayerData(player, playerResult.getString("datakey"), playerResult.getString("datavalue")); } } String selectCharacter = "SELECT * FROM " + DMySQL.character_table + " LEFT JOIN " + DMySQL.chardata_table + " ON " + DMySQL.character_table + ".char_id = " + DMySQL.chardata_table + ".char_id AND " + DMySQL.character_table + ".player_id=" + playerID + ";"; ResultSet charResult = DMySQL.runQuery(selectCharacter); while(charResult.next()) { characterCount++; int charID = charResult.getInt("char_id"); // Load the main character data DDataUtil.addChar(charID); DDataUtil.saveCharData(charID, "char_owner", charResult.getString("player_id")); DDataUtil.saveCharData(charID, "char_name", charResult.getString("char_name")); DDataUtil.saveCharData(charID, "char_active", charResult.getString("char_active")); DDataUtil.saveCharData(charID, "char_deity", charResult.getString("char_deity")); DDataUtil.saveCharData(charID, "char_alliance", charResult.getString("char_alliance")); DDataUtil.saveCharData(charID, "char_immortal", charResult.getBoolean("char_immortal")); DDataUtil.saveCharData(charID, "char_hp", charResult.getInt("char_hp")); DDataUtil.saveCharData(charID, "char_exp", charResult.getInt("char_exp")); DDataUtil.saveCharData(charID, "char_lastX", charResult.getDouble("char_lastX")); DDataUtil.saveCharData(charID, "char_lastY", charResult.getDouble("char_lastY")); DDataUtil.saveCharData(charID, "char_lastZ", charResult.getDouble("char_lastZ")); DDataUtil.saveCharData(charID, "char_lastW", charResult.getString("char_lastW")); DDataUtil.saveCharData(charID, "char_favor", charResult.getInt("char_favor")); DDataUtil.saveCharData(charID, "char_devotion", charResult.getInt("char_devotion")); DDataUtil.saveCharData(charID, "char_ascensions", charResult.getInt("char_ascensions")); // Load other character data if(charResult.getString("datakey") != null) { if(charResult.getString("datakey").contains("boolean_")) { DDataUtil.saveCharData(charID, charResult.getString("datakey"), charResult.getBoolean("datavalue")); } else { DDataUtil.saveCharData(charID, charResult.getString("datakey"), charResult.getString("datavalue")); } } } } } catch(SQLException e) { // There was an error with the SQL. DUtil.severe("Error while loading Demigods data. (ERR: 1001)"); e.printStackTrace(); } // Stop the timer long stopStopwatch = System.currentTimeMillis(); double totalTime = (double) (stopStopwatch - startStopwatch); // Send data load success message if(DConfig.getSettingBoolean("data_debug")) DUtil.info("Loaded data for " + playerCount + " players and " + characterCount + " characters in " + totalTime/1000 + " seconds."); else DUtil.info("Loaded data for " + playerCount + " players and " + characterCount + " characters."); } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } } /* * saveAllData() : Saves all HashMap data to database. */ public static boolean saveAllData() { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { // Define variables int playerCount = 0; long startTimer = System.currentTimeMillis(); // Save plugin-specific data savePlugin(); long stopTimer = System.currentTimeMillis(); double totalTime = (double) (stopTimer - startTimer); if(DConfig.getSettingBoolean("data_debug")) DUtil.info("Demigods plugin data saved in " + totalTime/1000 + " seconds."); else DUtil.info("Demigods plugin data saved."); for(Player player : DUtil.getOnlinePlayers()) { if(savePlayer(player)) playerCount++; } // Stop the timer stopTimer = System.currentTimeMillis(); totalTime = (double) (stopTimer - startTimer); // Send save success message if(DConfig.getSettingBoolean("data_debug")) DUtil.info("Success! Saved " + playerCount + " of " + DMySQL.getRows(DMySQL.runQuery("SELECT * FROM " + DMySQL.player_table + ";")) + " players in " + totalTime/1000 + " seconds."); else DUtil.info("Success! Saved " + playerCount + " of " + DMySQL.getRows(DMySQL.runQuery("SELECT * FROM " + DMySQL.player_table + ";")) + " players."); return true; } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return false; } /* * savePlayerData() : Saves all HashMap data for (OfflinePlayer)player to database. */ public static boolean savePlayer(OfflinePlayer player) { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { int playerID = DPlayerUtil.getPlayerID(player); // Clear tables first DMySQL.runQuery("DELETE FROM " + DMySQL.playerdata_table + " WHERE player_id=" + playerID); // Save their player-specific data HashMap<String, Object> allPlayerData = DDataUtil.getAllPlayerData(player); // Define player-specific variables String playerChars = (String) allPlayerData.get("player_characters"); int playerKills = DObjUtil.toInteger(allPlayerData.get("player_kills")); int playerDeaths = DObjUtil.toInteger(allPlayerData.get("player_deaths")); Long playerLastLogin = (Long) allPlayerData.get("player_lastlogin"); // Update main player table DMySQL.runQuery("UPDATE " + DMySQL.player_table + " SET player_characters='" + playerChars + "',player_kills=" + playerKills + ",player_deaths=" + playerDeaths + ",player_lastlogin=" + playerLastLogin + " WHERE player_id=" + playerID + ";"); // Save miscellaneous player data DMySQL.runQuery("DELETE FROM " + DMySQL.playerdata_table + " WHERE player_id=" + playerID + ";"); for(Entry<String, Object> playerData : allPlayerData.entrySet()) if(!playerData.getKey().contains("player_")) DMySQL.runQuery("INSERT INTO " + DMySQL.playerdata_table + " (player_id, datakey, datavalue) VALUES(" + playerID + ",'" + playerData.getKey() + "','" + playerData.getValue() + "');"); // Save their character-specific data now HashMap<Integer, HashMap<String, Object>> playerCharData = DDataUtil.getAllPlayerChars(player); for(Entry<Integer, HashMap<String, Object>> playerChar : playerCharData.entrySet()) { // Define character-specific variables int charID = playerChar.getKey(); boolean charImmortal = DObjUtil.toBoolean(playerCharData.get(charID).get("char_immortal")); int charHP = DObjUtil.toInteger(playerCharData.get(charID).get("char_hp")); float charExp = DObjUtil.toFloat(playerCharData.get(charID).get("char_exp")); int charFavor = DObjUtil.toInteger(playerCharData.get(charID).get("char_favor")); int charDevotion = DObjUtil.toInteger(playerCharData.get(charID).get("char_devotion")); int charAscensions = DObjUtil.toInteger(playerCharData.get(charID).get("char_ascensions")); Double charLastX = (Double) playerCharData.get(charID).get("char_lastx"); Double charLastY = (Double) playerCharData.get(charID).get("char_lasty"); Double charLastZ = (Double) playerCharData.get(charID).get("char_lastz"); String charLastW = (String) playerCharData.get(charID).get("char_lastw"); // Update main character table DMySQL.runQuery("UPDATE " + DMySQL.character_table + " SET char_immortal=" + charImmortal + ",char_hp=" + charHP + ",char_exp=" + charExp + ",char_favor=" + charFavor + ",char_devotion=" + charDevotion + ",char_ascensions=" + charAscensions + ",char_lastX=" + charLastX + ",char_lastY=" + charLastY + ",char_lastZ=" + charLastZ + ",char_lastW='" + charLastW + "' WHERE char_id=" + charID + ";"); // Save miscellaneous character data HashMap<String, Object> charData = playerChar.getValue(); DMySQL.runQuery("DELETE FROM " + DMySQL.chardata_table + " WHERE char_id=" + charID + ";"); for(Entry<String, Object> character : charData.entrySet()) if(!character.getKey().contains("char_")) DMySQL.runQuery("INSERT INTO " + DMySQL.chardata_table + " (char_id, datakey, datavalue) VALUES(" + charID + ",'" + character.getKey() + "','" + character.getValue() + "');"); } return true; } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return false; } /* * savePluginData() : Saves all HashMap data for the plugin to the database. */ public static boolean savePlugin() { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { // Clear tables first DMySQL.runQuery("TRUNCATE TABLE " + DMySQL.plugindata_table + ";"); // Save their player-specific data HashMap<String, HashMap<String, Object>> allPluginData = DDataUtil.getAllPluginData(); // Save data for(Entry<String, HashMap<String, Object>> pluginData : allPluginData.entrySet()) { String dataID = pluginData.getKey(); for(Entry<String, Object> data : pluginData.getValue().entrySet()) if(!pluginData.getKey().contains("temp_")) { String dataKey = data.getKey(); Object dataValue = data.getValue(); DMySQL.runQuery("INSERT INTO " + DMySQL.plugindata_table + " (data_id, datakey, datavalue) VALUES('" + dataID + "','" + dataKey + "','" + dataValue + "');"); } } return true; } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return false; } /* * removePlayer() : Removes the player completely from the database. */ public static boolean removePlayer(OfflinePlayer player) { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { int playerID = DPlayerUtil.getPlayerID(player); DMySQL.runQuery("DELETE FROM " + DMySQL.player_table + " WHERE player_id=" + playerID + ";"); DMySQL.runQuery("DELETE FROM " + DMySQL.playerdata_table + " WHERE player_id=" + playerID + ";"); DMySQL.runQuery("DELETE FROM " + DMySQL.character_table + " WHERE player_id=" + playerID + ";"); return true; } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return false; } /* * removeChar() : Removes the character completely from the database. */ public static boolean removeChar(int charID) { if(DConfig.getSettingBoolean("mysql") && DMySQL.checkConnection()) { DMySQL.runQuery("DELETE FROM " + DMySQL.character_table + " WHERE char_id=" + charID + ";"); DMySQL.runQuery("DELETE FROM " + DMySQL.chardata_table + " WHERE char_id=" + charID + ";"); return true; } else if(DConfig.getSettingBoolean("sqlite")) { // TODO: SQLite } return false; } }
7bd1785c9e5bfd1f8079c84409b13c723f1cdfcb
978b080cf5c2ea4e6c897f98ae48fa680737217e
/src/main/java/io/glide/boot/api/UserApi.java
ac25e138a21533891b3043f316eeae72868bbd6e
[]
no_license
Glide-io/test-project
4d35e69e6d384fbde577e95c587a7548cb9f6e8a
884ce8829e0ac3e523fe1aa1635608e1249fcc0f
refs/heads/main
2023-04-26T11:11:30.863151
2021-05-06T07:28:26
2021-05-06T07:28:26
364,162,069
0
2
null
null
null
null
UTF-8
Java
false
false
1,042
java
package io.glide.boot.api; import io.glide.boot.api.dto.UserDto; import io.glide.boot.api.dto.UserRegistrationDto; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import reactor.core.publisher.Mono; import javax.validation.Valid; import javax.validation.constraints.NotNull; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; @RequestMapping(produces = APPLICATION_JSON_VALUE, consumes = APPLICATION_JSON_VALUE) public interface UserApi { /** * Register a new user. * * @param userRegistrationDto DTO that input data needed to register a new user. * @return registered user infos. */ @PostMapping("/users/register") UserDto register(@NotNull @Valid UserRegistrationDto userRegistrationDto); /** * Get user details by id. * * @param id user id * @return user infos */ @GetMapping("/users/${userId}") Mono<UserDto> findUserById(long id); }
87f454800281e2051343e98db662d83b9ce4c2f9
60c89ed0110ff8a5eeb2461d2449cfff6bfcc78b
/src/test/java/com/example/springclouddemo/SpringclouddemoApplicationTests.java
423a6f113739c0a9d7357cdeb00fec6098488368
[]
no_license
Bangss/SpringCloudLearning
3de55047ebd86d6c9503808e340231baf9a4254b
2982c7acb87707b731ea25bd1c590cab53e780f7
refs/heads/master
2022-07-05T02:55:42.846105
2020-05-21T11:25:05
2020-05-21T11:25:05
261,082,584
0
0
null
null
null
null
UTF-8
Java
false
false
239
java
package com.example.springclouddemo; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class SpringclouddemoApplicationTests { @Test void contextLoads ( ) { } }
bfd455749b1f949aae4632079cafc3a840f34527
a4d2162b012b1bae5c5d435bd1ccc1ffd6bf1e41
/HackerRank/Java/src/JavaStdinandStdoutI.java
861219ffb41626956becba657c514ecd6cd58b25
[]
no_license
Shadat-tonmoy/ACM-Problem-Solution
dedd1f6a9d35c418c008622c310912b498abf875
cc11267da7f73b45b3cd75719d313cf09e364653
refs/heads/master
2022-04-08T17:21:56.984194
2020-03-08T05:25:38
2020-03-08T05:25:38
110,290,215
0
0
null
null
null
null
UTF-8
Java
false
false
460
java
import java.util.Scanner; public class JavaStdinandStdoutI { { System.out.println("enter"); Scanner sc = new Scanner(System.in); int b = sc.nextInt(); int h = sc.nextInt(); if(b<=0 || h<=0) { System.out.println("java.lang.Exception: Breadth and height must be positive"); } else { System.out.println(b*h); } } public static void main(String args[]) { System.out.println("He"); } }
39559f2f89691fc06253547a5ee4990a020ed696
7454ce218f57ebf5bbb043507a38ba6980e33d64
/spring-hibernate-tests/src/test/java/ru/yetanothercoder/tests/springhibernate/entity/User.java
c84cb006cf322287b3da62b333540ea01376e81e
[]
no_license
meannamarie/yetanothercoder
676ec9f83c67a35dc1def667ef7178eeb7bdbfed
f99dfde3b35d4f118b5851e7099b11eb9f27385c
refs/heads/master
2021-01-10T20:39:21.476857
2014-12-22T00:32:20
2014-12-22T00:32:20
35,025,544
0
0
null
null
null
null
UTF-8
Java
false
false
535
java
package ru.yetanothercoder.tests.springhibernate.entity; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "USER") public class User { @Id // @Column private long id; // @Column private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } public long getId() { return id; } public void setId(long id) { this.id = id; } }
[ "me@docker-wssd.(none)" ]
me@docker-wssd.(none)
0a9b30522148a3e2b35d69ee28d696f330705e42
93171e1267f329de4d00c07becddb758c32c2fad
/app/src/test/java/com/vit/customerapp/ExampleUnitTest.java
6663cada68590e0e3a3f828d985a9913b38165e0
[]
no_license
viettranhoang/customer-app
506e60afa65ef34b73ec1b44d98ade7944f972a7
a9f61efab6b336d187a7e5b7d020041ed3d30506
refs/heads/master
2021-09-28T03:33:56.026998
2018-11-14T03:34:21
2018-11-14T03:34:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
380
java
package com.vit.customerapp; 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() { assertEquals(4, 2 + 2); } }
9b12e5b2c156734a01d2c7c8e50f9d2244ed1376
1c10c8126e757d835f501c773d7c78f0db4ef335
/src/main/java/name/kazennikov/glorie/InterpCompiler.java
6d07373e2f56b75f455756b07d42cd25f9419b11
[]
no_license
kzn/glorie
16711739afec4e9717dddde2f92d21059c8a416c
d0e98c72f2b3851091ad0e16ce994ef3688a0915
refs/heads/master
2023-06-19T07:00:16.860158
2020-02-01T20:15:47
2020-02-01T20:15:47
387,708,609
0
0
null
null
null
null
UTF-8
Java
false
false
3,420
java
package name.kazennikov.glorie; import gate.Annotation; import java.io.File; import java.util.concurrent.atomic.AtomicInteger; /** * Created on 14.12.15. * * @author Anton Kazennikov */ public class InterpCompiler { public class Generator { SourceInfo sourceInfo; public Generator(SourceInfo sourceInfo) { this.sourceInfo = sourceInfo; } public InterpAction generate() throws Exception { Class<?> c = compiler.getClass(sourceInfo.getClassName()); InterpAction pp = (InterpAction) c.newInstance(); return pp; } } Compiler compiler; /** * Cardinality of the action class set. Used for ensuring class name * uniqueness. */ private static AtomicInteger actionClassNumber = new AtomicInteger(); /** * Package name for action classes. It's called a "dir name" because * we used to dump the action classes to disk and compile them there. */ static private String actionsDirName = "glractionclasses"; public InterpCompiler(Compiler compiler) { this.compiler = compiler; } public Generator add(Grammar g, CompiledGrammar.Rule rule, InterpAction.Source src) throws Exception { String className = className(rule.production.lhs.id, rule.id); String fqClassName = actionsDirName.replace(File.separatorChar, '.').replace('/', '.').replace('\\', '.') + "." + className; SourceInfo sourceInfo = new SourceInfo(g.name, rule.production.lhs.id); sourceInfo.setClassName(fqClassName); StringBuilder source = new StringBuilder(); source.append("package " + actionsDirName + ";\n"); source.append(CompiledGrammar.DEFAULT_IMPORTS + "\n" + (g.imports == null? "" : g.imports) + "\n"); source.append("class " + className + " extends " + FieldedInterpAction.class.getName() + " {\n"); for(String block : g.codeBlocks) { source.append(sourceInfo.addBlock(source.toString(), block + "\n")); } for(String binding : g.bindings()) { source.append("\t").append("protected ").append(SymbolSpan.class.getName()).append(" ").append(binding).append(";\n"); source.append("\t").append("protected ").append(gate.Annotation.class.getName()).append(" ").append(binding + "Ann").append(";\n"); } source.append("public void apply() {\n"); source.append("try {\n" ); for(Production.BindingInfo info : rule.production.bindings) { source.append("this.").append(info.name).append(" = ").append("(" + SymbolSpan.class.getName() + ") " + "bindings.get(").append(info.path.get(0)).append(");\n"); source.append("this.").append(info.name + "Ann").append(" = ").append("(" + Annotation.class.getName() + ") " + "bindingAnns.get(").append(info.path.get(0)).append(");\n"); } source.append(sourceInfo.addBlock(source.toString(), src.source) + "\n"); source.append("} finally {\n"); for(String binding : g.bindings()) { source.append("this.").append(binding).append(" = ").append("(" + SymbolSpan.class.getName() + ") " + "null;\n"); source.append("this.").append(binding + "Ann").append(" = ").append("(" + Annotation.class.getName() + ") " + "null;\n"); } source.append("}\n"); source.append("}\n"); source.append("\n}"); compiler.add(new Compiler.Unit(GroovyCompiler.GROOVY, fqClassName, source.toString())); return new Generator(sourceInfo); } public void compile() throws Exception { compiler.compile(); } public String className(String lhs, int ruleId) { return "GroovyPostProc_" + lhs + "_" + ruleId; } }
62c91c4b08dd2c63301a9a53273506031f9f9108
ba924caa1469177496b739cc48785b47773c39df
/src/org/omg/PortableInterceptor/NON_EXISTENT.java
6144922983c209c2825db2e9b4d4656d8db2e7f1
[]
no_license
yuanzhiqiang/jdk7src
38685d733daef295a43d3017cdc86cc15fb2787a
3ff1cbd551eb306d4eb87fecee568ac7cb6a7ede
refs/heads/master
2020-06-08T10:47:08.761127
2014-10-01T15:41:58
2014-10-01T15:41:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
471
java
package org.omg.PortableInterceptor; /** * org/omg/PortableInterceptor/NON_EXISTENT.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl * Wednesday, December 21, 2011 1:04:12 AM PST */ public interface NON_EXISTENT { /** Object adapter state indicating that the adapter has been destroyed. */ public static final short value = (short)(4); }
2112392c00211adc655e65c8a8de7151c03eee3d
bd0e50fe0dee54c944c4595b220fea1e1b050ea9
/src/main/java/com/pactera/entity/SysUserRole.java
82656dad5722d588f23005eb82d5b480ae95e17c
[]
no_license
LionLiHaiLiu/springmybatis
e3e0bdcd02f85f8c036d32d8b227bfb74c6098c2
1f6ca77c9641ed7b0448ecd33ee9ff3b5ba9fe6e
refs/heads/master
2020-06-15T23:50:05.203028
2019-07-08T15:33:30
2019-07-08T15:33:30
195,424,931
0
0
null
null
null
null
UTF-8
Java
false
false
58
java
package com.pactera.entity; public class SysUserRole { }
9281c13a3b6d3138ae90b3a24f2f5831e6cf316e
a203dfaed89b09e55dbdb30b9eb6698598f20ac9
/SpringBoot-Kafka/src/main/java/com/agan/service/KafkaSender.java
79f1c849912cd3c4942600825168f35adb35496d
[]
no_license
AganRun/Learn
952a37ee0748809ee936c5979d5b0d801c21da84
0839140e0faf68b0b302f02113203a30629ce902
refs/heads/master
2023-08-20T22:01:45.627474
2023-08-05T14:59:46
2023-08-05T14:59:46
214,762,405
1
0
null
2022-06-17T03:28:29
2019-10-13T04:50:08
Java
UTF-8
Java
false
false
727
java
package com.agan.service; import com.agan.pojo.Message; import com.alibaba.fastjson.JSON; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.stereotype.Component; import java.time.LocalDateTime; import java.util.UUID; @Component public class KafkaSender { protected static final String TOPIC = "myTopic"; @Autowired private KafkaTemplate<String, String> kafkaTemplate; public void send(String name) { Message message = new Message(); message.setId(UUID.randomUUID().toString()).setName(name).setSendTime(LocalDateTime.now()); kafkaTemplate.send(TOPIC, JSON.toJSONString(message)); } }
83647ba436cf6d8a44c29c436d24dc6af1d5b316
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/plugins/properties/tests/testSrc/com/intellij/lang/properties/AddNewlineAbovePlaceCaretTest.java
6e55ef38d273f9943e287abdb0264946d1f9980c
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Java
false
false
881
java
package com.intellij.lang.properties; import com.intellij.codeInsight.daemon.quickFix.ActionHint; import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; public class AddNewlineAbovePlaceCaretTest extends LightQuickFixParameterizedTestCase { @Override protected @NonNls String getBasePath() { return "/properties/addnewline"; } @Override protected void doAction(@NotNull ActionHint actionHint, @NotNull String testFullPath, @NotNull String testName) { executeAction("EditorStartNewLineBefore"); checkResult(testName); } private void checkResult(@NotNull final String testName) { final String expectedFilePath = getBasePath() + "/after" + testName; checkResultByFile("In file: " + expectedFilePath, expectedFilePath, false); } }
dc579bb8782acb1f9655c39c80d80b7cc95b9992
ccc0f9fcb3dabbeab160a980d237cd1cecd52fd8
/corelib/fundamental/src/jdbc/java/cherry/fundamental/etl/Extractor.java
29c0cb2d1de163a2bab2f64cfacefec1476675cd
[ "Apache-2.0" ]
permissive
agwlvssainokuni/springapp2
cac8ae3b1fb26dc90e140e853823203e3abfd38c
61e94f2ed666d061e0d7d226f098732b4f11b969
refs/heads/master
2020-04-12T06:29:39.725542
2018-12-15T23:12:37
2018-12-15T23:15:24
61,370,958
0
0
null
null
null
null
UTF-8
Java
false
false
1,400
java
/* * Copyright 2012,2016 agwlvssainokuni * * 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 cherry.fundamental.etl; import java.io.IOException; import java.util.Map; import javax.sql.DataSource; /** * データ抽出機能。 */ public interface Extractor { /** * データを抽出する。 * * @param dataSource データソース。 * @param sql SQL。 * @param paramMap データ抽出時のパラメタ。 * @param consumer データの格納先。 * @param limiter データ抽出制限。 * @return 格納したデータの件数。 * @throws LimiterException データ抽出制限超過。 * @throws IOException データ格納エラー。 */ long extract(DataSource dataSource, String sql, Map<String, ?> paramMap, Consumer consumer, Limiter limiter) throws LimiterException, IOException; }
30315f1332bb1cf83cd9d9d2127e7d7483eb3e66
37ec8fac000226bacac1292ae790609c65f362d1
/jd-client-v1.40/src/gen/java/org/sourcepit/jd/client/NetworkDeleteResponse.java
fb7f32ebae83301d359d36d2ebde6ec9af3f864b
[]
no_license
sourcepit/jd
d24a3d98d4e2c4d1acd1aeef9a624e630851ca1c
91b1e8832cc5f35ecd249a6465f02b64c43491df
refs/heads/master
2022-11-23T01:37:50.092295
2019-11-22T16:21:01
2019-11-22T16:21:01
85,931,859
0
0
null
2022-11-16T07:54:31
2017-03-23T09:35:54
Java
UTF-8
Java
false
false
3,403
java
package org.sourcepit.jd.client; import java.io.Closeable; import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.HttpResponseException; import org.apache.http.util.EntityUtils; import org.sourcepit.jd.client.core.NoContentException; import org.sourcepit.jd.client.core.ResponseValue; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; public class NetworkDeleteResponse implements Closeable { public static interface Matcher<T> { default T caseNoContent() throws IOException { throw new NoContentException(); } default T caseForbidden(ResponseValue<ErrorResponse> responseValue) throws IOException, JsonParseException, JsonMappingException, ForbiddenErrorResponseException { throw new ForbiddenErrorResponseException(responseValue.get()); } default T caseNotFound(ResponseValue<ErrorResponse> responseValue) throws IOException, JsonParseException, JsonMappingException, NotFoundErrorResponseException { throw new NotFoundErrorResponseException(responseValue.get()); } default T caseInternalServerError(ResponseValue<ErrorResponse> responseValue) throws IOException, JsonParseException, JsonMappingException, InternalServerErrorErrorResponseException { throw new InternalServerErrorErrorResponseException(responseValue.get()); } default T caseDefault(HttpResponse httpResponse) throws IOException, HttpResponseException { final StatusLine statusLine = httpResponse.getStatusLine(); throw new HttpResponseException(statusLine.getStatusCode(), statusLine.getReasonPhrase()); } } private final ObjectMapper objectMapper; private final HttpResponse httpResponse; public NetworkDeleteResponse(ObjectMapper objectMapper, HttpResponse httpResponse) { this.objectMapper = objectMapper; this.httpResponse = httpResponse; } public <T> T match(Matcher<T> matcher) throws IOException, JsonParseException, JsonMappingException, NoContentException, ForbiddenErrorResponseException, NotFoundErrorResponseException, InternalServerErrorErrorResponseException { T value; switch (httpResponse.getStatusLine().getStatusCode()) { case 204: { value = matcher.caseNoContent(); break; } case 403: { value = matcher.caseForbidden(new ResponseValue<>(objectMapper, ErrorResponse.class, httpResponse)); break; } case 404: { value = matcher.caseNotFound(new ResponseValue<>(objectMapper, ErrorResponse.class, httpResponse)); break; } case 500: { value = matcher .caseInternalServerError(new ResponseValue<>(objectMapper, ErrorResponse.class, httpResponse)); break; } default: value = null; break; } if (value == null) { value = matcher.caseDefault(httpResponse); } return value; } public void unwrap() throws IOException, JsonParseException, JsonMappingException, ForbiddenErrorResponseException, NotFoundErrorResponseException, InternalServerErrorErrorResponseException { match(new Matcher<Object>() { @Override public Object caseNoContent() { return new Object(); } }); } @Override public void close() throws IOException { EntityUtils.consume(httpResponse.getEntity()); if (httpResponse instanceof Closeable) { ((Closeable) httpResponse).close(); } } }
e019bb4762aeab7e2b99a01b40eeeaf63ba0f857
5ce457f0dc1fc36829297213b5f87a38e9766917
/prj3/src/main/java/kr/co/sist/service/TestService.java
130358c4c171321370363af6305f68c58021142f
[]
no_license
khmqwe/prj3
f37fa772abc83898c275a48bd2042f47247af896
3a6c075ec1ea0566883b21e641607b71b3531c49
refs/heads/master
2023-06-10T02:53:13.935958
2021-06-27T21:25:19
2021-06-27T21:25:19
377,756,040
1
1
null
null
null
null
UTF-8
Java
false
false
420
java
package kr.co.sist.service; import java.util.List; import org.apache.ibatis.session.SqlSession; import kr.co.sist.dao.MyBatisHandler; import kr.co.sist.dao.TestDAO; import kr.co.sist.domain.TravelThumbDomain; public class TestService { public List<TravelThumbDomain> selectTest() { TestDAO tDAO = new TestDAO(); List<TravelThumbDomain> list = tDAO.selectTest(); return list; } }
[ "user@DESKTOP-COJ9858" ]
user@DESKTOP-COJ9858
0b64e8dfb72ef19d254284ff7e64af9be26d9681
913c5ab2ce3e60ea369011d9edadf6f02601a0f4
/spring-native-configuration/src/main/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointAutoConfigurationHints.java
8c84d8c240581d4b3ca06f80e6877f60c07e2f8b
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
bclozel/spring-native
12289fef2bb71ce568bf1886802cd9afae03a051
8d02dfc3c46a7c855641a9cfef0e4e71734494f4
refs/heads/main
2023-09-06T02:45:45.088475
2021-04-09T09:40:36
2021-04-09T09:40:36
330,936,528
0
1
Apache-2.0
2021-01-19T10:02:56
2021-01-19T10:02:55
null
UTF-8
Java
false
false
1,128
java
/* * Copyright 2019-2021 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 * * https://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.springframework.boot.actuate.autoconfigure.info; import org.springframework.boot.actuate.info.InfoEndpoint; import org.springframework.nativex.hint.NativeHint; import org.springframework.nativex.hint.TypeHint; import org.springframework.nativex.type.NativeConfiguration; // Hitting /info endpoint @NativeHint(trigger = InfoEndpointAutoConfiguration.class, types = { @TypeHint( types = InfoEndpoint.class) }) public class InfoEndpointAutoConfigurationHints implements NativeConfiguration { }
f0beaf9af8105f537da47b6aeba714f85596f6f2
001abd5ac77020c88e9129e8fe263e082119ce9c
/kopoProject/test2/src/test.java
b5cdb1896eb42859ab2c450e089c6c6226bf45aa
[]
no_license
kdh24/MyExam
36628012d994f8e991fbe04ff6dd03f75ce2e1cf
3021e2aee32713d0703b4de74059d1fe530a9704
refs/heads/master
2021-01-23T02:53:45.910181
2017-07-17T07:21:53
2017-07-17T07:21:53
86,032,383
0
0
null
null
null
null
WINDOWS-1252
Java
false
false
1,414
java
import java.util.ArrayList; public class test { public static void main(String[] args) { int[] a = new int[9]; for(int i=0; i<9; i++){ System.out.println(a[i]); System.out.println("Á¦¸ñ"+String.valueOf(i)); } String str = "http://192.168.23.110:8080/L9/resort/adm_loginck.jsp"; System.out.println(str.length()); str = str.substring(0, 28); System.out.println(str); System.out.println(str.lastIndexOf("/")); System.out.println(str.substring(0,26) +"/sar.jsp"); str = "http://192.168.23.93:8080/koposw13/Ohori_resort/adm_loginck.jsp"; str = str.substring(0, 28); System.out.println(str); System.out.println(str.lastIndexOf("/")); System.out.println(str.substring(0,25) +"/sar.jsp"); /* String date ="2017-05-08"; String temp = date.replaceAll("-",""); System.out.println(temp.length()); String fixStr = temp.substring(0,4); System.out.println(fixStr); fixStr+="-"; fixStr += temp.substring(4,6); System.out.println(fixStr); fixStr+="-"; fixStr += temp.substring(6,8); System.out.println(fixStr); date = fixStr; System.out.println(date); */ ArrayList<String> add = new ArrayList<>(); add.add("String"); add.add("tring"); add.add("ring"); add.add("ing"); add.add("ng"); for(int i=0; i<add.size(); i++){ System.out.println(add.get(i)); } } }
2b665a6e782ca6104d9a6b59069d9128d7976da5
60c3d7fa6aa7e07851c03ef82f234bd5b5f00f23
/Micro-Service-Delivery/src/main/java/co/unicauca/delivery/a/MenuJerseyClient.java
8d4de5ff07106e93d8b309fc3602f7a4a90142d9
[]
no_license
mxgallego/OnlineRestaurantSecondIteration
5ab2acea79e9f9443da73f0e796a3375d43bc0fb
0c1e701fb656c055eb3ad2cf1f7f1080905b53d7
refs/heads/master
2023-07-26T11:52:06.085222
2020-12-17T05:43:23
2020-12-17T05:43:23
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,287
java
package co.unicauca.delivery.a; import co.unicauca.common.domain.entity.Menu; import java.util.List; import javax.ws.rs.ClientErrorException; import javax.ws.rs.client.Client; import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.GenericType; import javax.ws.rs.core.Response; /** * Jersey REST client generated for REST resource:MenuController [/menus]<br> * USAGE: * <pre> * MenuJerseyClient client = new MenuJerseyClient(); * Object response = client.XXX(...); * // do whatever with response * client.close(); * </pre> * * @author Santiago Acuña */ public class MenuJerseyClient { private WebTarget webTarget; private Client client; private static final String BASE_URI = "http://localhost:8085/Micro-Service-Menu/menu-service"; public MenuJerseyClient() { client = javax.ws.rs.client.ClientBuilder.newClient(); webTarget = client.target(BASE_URI).path("menus"); } public Response edit_XML(Object requestEntity, String id) throws ClientErrorException { return webTarget.path(java.text.MessageFormat.format("{0}", new Object[]{id})).request(javax.ws.rs.core.MediaType.APPLICATION_XML).put(javax.ws.rs.client.Entity.entity(requestEntity, javax.ws.rs.core.MediaType.APPLICATION_XML), Response.class); } public Response edit_JSON(Object requestEntity, String id) throws ClientErrorException { return webTarget.path(java.text.MessageFormat.format("{0}", new Object[]{id})).request(javax.ws.rs.core.MediaType.APPLICATION_JSON).put(javax.ws.rs.client.Entity.entity(requestEntity, javax.ws.rs.core.MediaType.APPLICATION_JSON), Response.class); } public <T> T findById_XML(Class<T> responseType, String id) throws ClientErrorException { WebTarget resource = webTarget; resource = resource.path(java.text.MessageFormat.format("{0}", new Object[]{id})); return resource.request(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } public <T> T findById_JSON(Class<T> responseType, String id) throws ClientErrorException { WebTarget resource = webTarget; resource = resource.path(java.text.MessageFormat.format("{0}", new Object[]{id})); return resource.request(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType); } public Response create_XML(Object requestEntity) throws ClientErrorException { return webTarget.request(javax.ws.rs.core.MediaType.APPLICATION_XML).post(javax.ws.rs.client.Entity.entity(requestEntity, javax.ws.rs.core.MediaType.APPLICATION_XML), Response.class); } public Response create_JSON(Object requestEntity) throws ClientErrorException { return webTarget.request(javax.ws.rs.core.MediaType.APPLICATION_JSON).post(javax.ws.rs.client.Entity.entity(requestEntity, javax.ws.rs.core.MediaType.APPLICATION_JSON), Response.class); } public <T> T findMbyRN_XML(Class<T> responseType, String rn) throws ClientErrorException { WebTarget resource = webTarget; resource = resource.path(java.text.MessageFormat.format("list/{0}", new Object[]{rn})); return resource.request(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType); } public <T> T findMbyRN_JSON(Class<T> responseType, String rn) throws ClientErrorException { WebTarget resource = webTarget; resource = resource.path(java.text.MessageFormat.format("list/{0}", new Object[]{rn})); return resource.request(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType); } public <T> T findAll(Class<T> responseType) throws ClientErrorException { WebTarget resource = webTarget; return resource.request(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType); } public <T> List<Menu> findAll(GenericType<List<Menu>> responseType) throws javax.ws.rs.ClientErrorException { WebTarget resource = webTarget; return resource.request(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType); } public Response delete(String id) throws ClientErrorException { return webTarget.path(java.text.MessageFormat.format("{0}", new Object[]{id})).request().delete(Response.class); } public void close() { client.close(); } }
5142b825eb7ed2f25861f2a8cded9a9423724c70
9a3c50fc5066c5b6762d81d189ac463d520d2713
/release/MineQuest-0.6/src/org/monksanctum/MineQuest/Ability/Ability.java
dcfe253d50f04721a6404cc1912d0b859b24e026
[]
no_license
robxu9/minequest
c5f2a5f3f0af0eaa6257755ca9c44f024a934ba6
17cf05ac951cd31cc848b96c3c9dfe5c490e8429
refs/heads/master
2021-01-25T06:05:48.842745
2012-06-14T23:28:23
2012-06-14T23:28:23
32,114,553
0
0
null
null
null
null
UTF-8
Java
false
false
23,526
java
/* * MineQuest - Bukkit Plugin for adding RPG characteristics to minecraft * Copyright (C) 2011 Jason Monk * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package org.monksanctum.MineQuest.Ability; import java.io.FileInputStream; import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; import java.util.jar.JarEntry; import java.util.jar.JarInputStream; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.craftbukkit.entity.CraftAnimals; import org.bukkit.craftbukkit.entity.CraftCreeper; import org.bukkit.craftbukkit.entity.CraftSkeleton; import org.bukkit.craftbukkit.entity.CraftSpider; import org.bukkit.craftbukkit.entity.CraftZombie; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.monksanctum.MineQuest.MineQuest; import org.monksanctum.MineQuest.Quester.Quester; import org.monksanctum.MineQuest.Quester.SkillClass.SkillClass; /** * This is the base class for all abilities in MineQuest. * * @author jmonk * */ public abstract class Ability { @SuppressWarnings({ "rawtypes" }) private static List<Class> abil_classes; // http://www.devx.com/tips/Tip/38975 public static Class<?> getClass(String the_class) throws Exception { try { URL url = new URL("file:MineQuest/abilities.jar"); URLClassLoader ucl = new URLClassLoader(new URL[] {url}, (new AbilityBinder()).getClass().getClassLoader()); return Class.forName(the_class.replaceAll(".class", ""), true, ucl); } catch (Exception e) { URL url = new URL("file:abilities.jar"); URLClassLoader ucl = new URLClassLoader(new URL[] {url}, (new AbilityBinder()).getClass().getClassLoader()); return Class.forName(the_class.replaceAll(".class", ""), true, ucl); } } //following code came from http://snippets.dzone.com/posts/show/4831 public static List<String> getClasseNamesInPackage(String jarName, String packageName) { boolean debug = false; ArrayList<String> classes = new ArrayList<String>(); packageName = packageName.replaceAll("\\.", "/"); if (debug) MineQuest.log("Jar " + jarName + " looking for " + packageName); try { JarInputStream jarFile = new JarInputStream(new FileInputStream( jarName)); JarEntry jarEntry; while (true) { jarEntry = jarFile.getNextJarEntry(); if (jarEntry == null) { break; } if ((jarEntry.getName().startsWith(packageName)) && (!jarEntry.getName().contains("Version")) && (jarEntry.getName().endsWith(".class"))) { if (debug) MineQuest.log("Found " + jarEntry.getName().replaceAll("/", "\\.")); classes.add((String)jarEntry.getName().replaceAll("/", "\\.")); } } } catch (Exception e) { MineQuest.log("Couldn't get Ability Classes - Missing abilities.jar?"); } return classes; } /** * Gets the entities within a area of a player. name * * Not Implemented in bukkit yet! * * @param player * @param radius * @return List of Entities within the area */ public static List<LivingEntity> getEntities(LivingEntity entity, int radius) { List<LivingEntity> entities = new ArrayList<LivingEntity>(0); List<LivingEntity> serverList = entity.getWorld().getLivingEntities(); int i; for (i = 0; i < serverList.size(); i++) { if ((MineQuest.distance(entity.getLocation(), serverList.get(i).getLocation()) <= radius) && (serverList.get(i).getEntityId() != entity.getEntityId())) { entities.add(serverList.get(i)); } } return entities; } /** * Gets the entities within a area of a player. name * * Not Implemented in bukkit yet! * * @param player * @param radius * @return List of Entities within the area */ public static List<LivingEntity> getEntities(Location location, int radius) { List<LivingEntity> entities = new ArrayList<LivingEntity>(0); List<LivingEntity> serverList = location.getWorld().getLivingEntities(); int i; for (i = 0; i < serverList.size(); i++) { if ((MineQuest.distance(location, serverList.get(i).getLocation()) <= radius)) { entities.add(serverList.get(i)); } } return entities; } /** * Returns the nearest empty block to location. Location is not * Guaranteed to be closest to location. If the block is solid * it looks upward until it finds air. If the block is air it * looks downward until it finds ground. * * @param x X Location * @param y Y Location * @param z Z Location * @return Nearest empty height above ground to Location */ static public int getNearestY(World world, int x, int y, int z) { int i = y; if (world.getBlockAt(x, y, z).getTypeId() != 0) { do { i++; } while (((world.getBlockAt(x, i, z).getType() != Material.SNOW) && (world.getBlockAt(x, i, z).getType() != Material.FIRE) && (world.getBlockAt(x, i, z).getType() != Material.TORCH) && (world.getBlockAt(x, i, z).getType() != Material.SIGN) && (world.getBlockAt(x, i, z).getType() != Material.WALL_SIGN) && (world.getBlockAt(x, i, z).getType() != Material.AIR)) && (i < 1000)); if (i == 1000) i = 0; } else { do { i--; } while (((world.getBlockAt(x, i, z).getType() == Material.SNOW) || (world.getBlockAt(x, i, z).getType() == Material.FIRE) || (world.getBlockAt(x, i, z).getType() == Material.TORCH) || (world.getBlockAt(x, i, z).getType() == Material.SIGN) || (world.getBlockAt(x, i, z).getType() == Material.WALL_SIGN) || (world.getBlockAt(x, i, z).getType() == Material.AIR)) && (i > -100)); if (i == -100) i = 0; i++; } return i; } public static int getVersion() { try { @SuppressWarnings("rawtypes") Class this_class; try { URL url = new URL("file:MineQuest/abilities.jar"); URLClassLoader ucl = new URLClassLoader(new URL[] {url}, (new AbilityBinder()).getClass().getClassLoader()); this_class = Class.forName("org.monk.MineQuest.Ability.Version.Version", true, ucl); } catch (Exception e) { URL url = new URL("file:abilities.jar"); URLClassLoader ucl = new URLClassLoader(new URL[] {url}, (new AbilityBinder()).getClass().getClassLoader()); this_class = Class.forName("org.monk.MineQuest.Ability.Version.Version", true, ucl); } MineQuestVersion version = (MineQuestVersion)this_class.newInstance(); return version.getVersion(); } catch (Exception e) { return -1; } } @SuppressWarnings("rawtypes") static public List<Ability> newAbilities(SkillClass myclass) { List<Ability> abilities = new ArrayList<Ability>(); if (abil_classes == null) { List<String> classes = new ArrayList<String>(); abil_classes = new ArrayList<Class>(); try { try { classes = getClasseNamesInPackage("MineQuest/abilities.jar", "org.monk.MineQuest.Ability"); } catch (Exception e) { classes = getClasseNamesInPackage("abilities.jar", "org.monk.MineQuest.Ability"); MineQuest.log("Please move abilities.jar to MineQuest/abilities.jar"); } } catch (Exception e) { MineQuest.log("Unable to get Abilities"); } for (String this_class : classes) { try { abil_classes.add(getClass(this_class)); } catch (Exception e) { MineQuest.log("Could not load Ability: " + this_class); } } } String type = null; if (myclass != null) { type = myclass.getType(); } for (Class abil : abil_classes) { try { Ability ability = (Ability) abil.newInstance(); ability.setSkillClass(myclass); if ((myclass == null) || (type.equals(MineQuest.getAbilityConfiguration().getSkillClass(ability.getName())))) { for (@SuppressWarnings("unused") Class ability_class : abil_classes) { abilities.add(ability); } } } catch (Exception e) { MineQuest.log("Could not load Ability: " + myclass.getType()); e.printStackTrace(); } } return abilities; } /** * Creates an instance of the proper ability based on name * and returns it as an Ability. * * @param name Name of Ability * @param myclass Instance of SkillClass holding the Ability * @return new Ability created */ static public Ability newAbility(String name, SkillClass myclass) { for (Ability ability : newAbilities(myclass)) { if (name.equalsIgnoreCase(ability.getName())) { return ability; } } MineQuest.log("Warning: Could not find ability " + name + " for class " + myclass.getType()); return null; } protected int bind; // private static List<Class> abil_classes; protected int config[]; private List<ItemStack> cost; protected int count; protected boolean enabled; protected long last_msg; private int lookBind; protected SkillClass myclass; protected long time; /** * Creates an Ability * * @param name Name of Ability * @param myclass SkillClass that holds Ability */ public Ability() { Calendar now = Calendar.getInstance(); enabled = true; if (this instanceof PassiveAbility) enabled = false; count = 0; bind = -1; lookBind = -1; time = now.getTimeInMillis(); last_msg = 0; config = null; } /** * Bind to left click of item. * * @param player Player binding Ability * @param item Item to be bound */ public void bind(Quester quester, ItemStack item) { if (bind != item.getTypeId()) { silentUnBind(quester); bind = item.getTypeId(); MineQuest.getSQLServer().update( "INSERT INTO binds (name, abil, bind, bind_2) VALUES('" + quester.getSName() + "', '" + getName() + "', '" + bind + "', '" + bind + "')"); quester.sendMessage(getName() + " is now bound to " + item.getTypeId()); if (quester.isModded()) { quester.sendMessage(toBindString()); } } } /** * Checks if the Ability has been cast too recently based on * casting time. * * @return Boolean true if can cast now */ protected boolean canCast() { Calendar now = Calendar.getInstance(); if ((now.getTimeInMillis() - time) > getRealCastingTime()) { time = now.getTimeInMillis(); return true; } return false; } /** * This is called when non-passive abilities are activated. * Must be overloaded for all non-passive abilities. Binding * and casting cost have already been checked. * * @param quester Caster * @param location Location of Target * @param entity Target */ public abstract void castAbility(Quester quester, Location location, LivingEntity entity); /** * Disable the ability */ public void disable() { enabled = false; } /** * Enable the ability. * * @param quester Quester enabling the ability */ public void enable(Quester quester) { if (quester.canCast(getConfigSpellComps(), getRealManaCost())) { enabled = true; quester.sendMessage(getName() + " enabled"); // MineQuest.log("Can cast " + getName() + " with config :"); // for (int i : config) { // MineQuest.log(" " + i); // } } else { notify(quester, "You do not have the materials to enable that - try /spellcomp " + getName()); } } public boolean equals(String name) { return name.equals(getName()); } public void eventActivate() { } /** * Get the casting time of the spell that restricts * how often it can be cast. * @return */ public int getCastTime() { return 0; } public int[] getConfig() { return config; } public List<ItemStack> getConfigSpellComps() { return cost; } /** * Gets the distance between a Player and the entity. * * @param player * @param entity * @return distance between player and entity */ protected int getDistance(Player player, LivingEntity entity) { return (int)MineQuest.distance(player.getLocation(), entity.getLocation()); } /** * Get the experience gained from using this ability. * * @return */ public int getExp() { return 30; } public int getMana() { return 1 + getReqLevel(); } /** * Get the name of the Ability * * @return */ public abstract String getName(); /** * Gets a random entity within the radius of the entity * * @param entity * @param radius * @return */ protected LivingEntity getRandomEntity(LivingEntity entity, int radius) { List<LivingEntity> entities = getEntities(entity, radius); int i = myclass.getGenerator().nextInt(entities.size()); return entities.get(i); } public int getRealCastingTime() { return MineQuest.getAbilityConfiguration().getCastingTime(getName()); } public int getRealExperience() { return MineQuest.getAbilityConfiguration().getExperience(getName()); } public int getRealManaCost() { return MineQuest.getAbilityConfiguration().getMana(getName()); } public int getRealRequiredLevel() { return MineQuest.getAbilityConfiguration().getRequiredLevel(getName()); } public List<ItemStack> getRealSpellComps() { List<ItemStack> cost = getSpellComps(); int i; for (i = 0; i < (getReqLevel() / 4); i++) { cost.add(new ItemStack(Material.REDSTONE, 1)); } return cost; } public String getRealSpellCompsString() { List<Integer> cost = new ArrayList<Integer>(); String ret = ""; int i; for (ItemStack item : getRealSpellComps()) { for (i = 0; i < item.getAmount(); i++) { cost.add(item.getTypeId()); } } if (cost.size() > 0) { ret = ret + cost.get(0); for (i = 1; i < cost.size(); i++) { ret = ret + "," + cost.get(i); } } return ret; } public abstract int getReqLevel(); public abstract String getSkillClass(); /** * Get the spell components of casting the ability. * Must be overloaded by all abilities that have * components. * * @return */ public abstract List<ItemStack> getSpellComps(); /** * Gives the casting cost back to the player. * * @param player */ protected void giveCost(Player player) { giveCostNoExp(player); myclass.expAdd(-getRealExperience()); } /** * Gives the casting cost back to the player. * * @param player */ protected void giveCostNoExp(Player player) { if (MineQuest.isSpellCompEnabled()) { giveSpellComps(player); } if (MineQuest.isManaEnabled()) { giveManaCost(player); } } private void giveManaCost(Player player) { MineQuest.getQuester(player).addMana(getRealManaCost()); } @SuppressWarnings("deprecation") protected void giveSpellComps(Player player) { List<ItemStack> cost = getConfigSpellComps(); int i; for (i = 0; i < cost.size(); i++) { player.getInventory().addItem(cost.get(i)); } player.updateInventory(); } public boolean isActive() { return enabled; } /** * Checks if the itemStack is bound to this ability. * * @param itemStack * @return true if bound */ public boolean isBound(ItemStack itemStack) { return (bind == itemStack.getTypeId()); } /** * Checks if ability is enabled. * * @return true if enabled */ public boolean isEnabled() { return enabled; } public boolean isLookBound(ItemStack itemStack) { return (lookBind == itemStack.getTypeId()); } /** * This was used to determine if entities are part of type * for purge spells. * * @param livingEntity * @param type * @return */ private boolean isType(LivingEntity livingEntity, PurgeType type) { switch (type) { case ZOMBIE: return livingEntity instanceof CraftZombie; case SPIDER: return livingEntity instanceof CraftSpider; case SKELETON: return livingEntity instanceof CraftSkeleton; case CREEPER: return livingEntity instanceof CraftCreeper; case ANIMAL: return livingEntity instanceof CraftAnimals; default: return true; } } /** * Determines if player and baseEntity are within radius distance * of each other. * * @param player * @param baseEntity * @param radius * @return true if within radius */ protected boolean isWithin(LivingEntity player, LivingEntity baseEntity, int radius) { return MineQuest.distance(player.getLocation(), baseEntity.getLocation()) < radius; } /** * Bind to left click of item. * * @param player Player binding Ability * @param item Item to be bound */ public void lookBind(Quester quester, ItemStack item) { if (lookBind != item.getTypeId()) { silentUnBind(quester); lookBind = item.getTypeId(); MineQuest.getSQLServer().update( "INSERT INTO binds (name, abil, bind, bind_2) VALUES('" + quester.getSName() + "', 'LOOK:" + getName() + "', '" + lookBind + "', '" + lookBind + "')"); quester.sendMessage(getName() + " is now look bound to " + item.getTypeId()); if (quester.isModded()) { quester.sendMessage(toBindString()); } } } /** * Moves the entity other so that it is not within the distance * specified of the player. It keeps the direction of location * other with respect to player. * * @param player * @param other * @param distance */ private void moveOut(LivingEntity player, LivingEntity other, int distance) { double x, z; double unit_fix; x = other.getLocation().getX() - player.getLocation().getX(); z = other.getLocation().getZ() - player.getLocation().getZ(); unit_fix = Math.sqrt(x*x + z*z); x *= distance / unit_fix; z *= distance / unit_fix; other.teleport(new Location(other.getWorld(), x + player.getLocation().getX(), (double)getNearestY(player.getWorld(), (int)(x + player.getLocation().getX()), (int)other.getLocation().getY(), (int)(z + player.getLocation().getZ())), z + player.getLocation().getZ())); return; } public void notify(Quester quester, String message) { Calendar now = Calendar.getInstance(); if ((now.getTimeInMillis() - last_msg) > 2000) { last_msg = now.getTimeInMillis(); quester.sendMessage(message); } } /** * Parse any affects of the ability being activated as part * of an attack motion. * * @param quester * @param defend * @return true if attack damage should be negated */ public boolean parseAttack(Quester quester, LivingEntity defend) { useAbility(quester, defend.getLocation(), defend); if ((getName().equals("Fire Arrow") || getName().equals("PowerStrike"))) { return false; } return true; } /** * Parse any affects of the ability being activated * as part of a left click. * * @param quester * @param block */ public void parseClick(Quester quester, Block block) { useAbility(quester, block.getLocation(), null); } /** * Moves all entities of given type outside of the distance specified * from the entity passed. * * @param player * @param distance * @param type */ protected void purgeEntities(LivingEntity player, int distance, PurgeType type) { List<LivingEntity> entities = getEntities(player, distance); int i; for (i = 0; i < entities.size(); i++) { if (isType(entities.get(i), type)) { moveOut(player, entities.get(i), distance); MineQuest.damage(entities.get(i), 1, MineQuest.getQuester(player)); } } } public void setActive(boolean active) { this.enabled = active; } protected void setConfig(int[] config) { this.config = config; } public void setConfigSpellComps(List<ItemStack> cost) { this.cost = cost; } public void setSkillClass(SkillClass skillclass) { this.myclass = skillclass; if (skillclass != null) { cost = MineQuest.getAbilityConfiguration().getCost(getName()); config = MineQuest.getAbilityConfiguration().getConfig(getName()); } } public void silentBind(Quester quester, ItemStack itemStack) { bind = itemStack.getTypeId(); lookBind = -1; } public void silentLookBind(Quester quester, ItemStack itemStack) { lookBind = itemStack.getTypeId(); bind = -1; } /** * Clears bindings for this ability. * @param player */ public void silentUnBind(Quester quester) { bind = -1; lookBind = -1; MineQuest.getSQLServer().update("DELETE FROM binds WHERE abil='" + getName() + "' AND name='" + quester.getSName() + "'"); MineQuest.getSQLServer().update("DELETE FROM binds WHERE abil='LOOK:" + getName() + "' AND name='" + quester.getSName() + "'"); } @Override public String toString() { String spellComps = new String(); List<ItemStack> reduced = MineQuest.reduce(getConfigSpellComps()); if (reduced.size() > 0) { spellComps = reduced.get(0).getTypeId() + "-" + reduced.get(0).getAmount(); int i; for (i = 1; i < reduced.size(); i++) { spellComps = spellComps + "," + reduced.get(i).getTypeId() + "-" + reduced.get(i).getAmount(); } } if (spellComps.length() > 0) { return getName() + ":" + spellComps + ":" + getRealManaCost(); } else { return getName() + ":" + getRealManaCost(); } } public String toBindString() { return "MQ:Bind:" + getName() + ":" + bind + ":" + lookBind + ":" + MineQuest.getAbilityConfiguration().getIconLocation(getName()); } /** * Clears bindings for this ability. * @param player */ public void unBind(Quester quester) { bind = -1; lookBind = -1; MineQuest.getSQLServer().update("DELETE FROM binds WHERE abil='" + getName() + "' AND name='" + quester.getSName() + "'"); MineQuest.getSQLServer().update("DELETE FROM binds WHERE abil='LOOK:" + getName() + "' AND name='" + quester.getSName() + "'"); quester.sendMessage(getName() + " is now unbound"); if (quester.isModded()) { quester.sendMessage(toBindString()); } } /** * This activates non-passive abilities. First makes sure that * the ability is enabled, can be cast, and is bound. Then will * call castAbility. * * @param quester Caster * @param location Location of Target * @param l 1 for left click, 0 for right click * @param entity Target */ public void useAbility(Quester quester, Location location, LivingEntity entity) { Player player = quester.getPlayer(); if (this instanceof PassiveAbility) { notify(quester, getName() + " is a passive ability"); return; } if (!enabled) { notify(quester, getName() + " is not enabled"); return; } if ((quester == null) || quester.canCast(getConfigSpellComps(), getRealManaCost())) { if (canCast() || (player == null)) { // MineQuest.log("Can cast " + getName() + " with config :"); // for (int i : config) { // MineQuest.log(" " + i); // } notify(quester, "Casting " + getName()); castAbility(quester, location, entity); if (myclass != null) { myclass.expAdd(getRealExperience()); } } else { if (player != null) { giveCostNoExp(player); notify(quester, "You cast that too recently"); } } } else { if (player != null) { notify(quester, "You do not have the materials to cast that - try /spellcomp " + getName()); } } } public abstract int getIconLoc(); }
[ "[email protected]@b9554a65-ab59-cc2f-58ea-6c691e74d95b" ]
[email protected]@b9554a65-ab59-cc2f-58ea-6c691e74d95b
cad4f9a82db14fa9b7eb81a0954ca2130164c41a
ed2f41c3e04d825457e6b3a406fa3abe29ea41de
/citations/citations-api/api/src/java/org/sakaiproject/citation/util/api/SearchException.java
66d9bf5f936413d352c58ab9ff227be6b60c0c1c
[ "ECL-2.0" ]
permissive
lancespeelmon/sakai-travis-test
38d5d4fe978392dc241d60fd8cf4cbe47d24cff4
c3eca9d97f959e73fd3f227ccd29b274969c95c3
refs/heads/master
2021-01-10T08:06:43.259585
2013-02-27T04:56:14
2013-02-27T16:55:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,339
java
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/citations/tags/sakai-2.9.1/citations-api/api/src/java/org/sakaiproject/citation/util/api/SearchException.java $ * $Id: SearchException.java 59673 2009-04-03 23:02:03Z [email protected] $ *********************************************************************************** * * Copyright (c) 2006, 2007, 2008 The Sakai Foundation * * Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.sakaiproject.citation.util.api; /** * */ public class SearchException extends Exception { /** * @param string */ public SearchException(String message) { super(message); } }
35c2710986c6c39ceeef718863734a364f313df7
29a43f77d1f49e5425d97aed2fa77fe90ad8ee80
/src/com/company/Story.java
2633c2ec3f8cdb9492471eec0528e87127107fed
[]
no_license
Bufod/TextQuest
ab1ee83c7cac43484a9fac76c875bd007981e5f8
c1d8c441bbab7eceb2d4135824a34f2480a50a51
refs/heads/master
2020-09-29T22:42:48.764904
2019-12-10T16:51:59
2019-12-10T16:51:59
227,139,969
0
0
null
null
null
null
UTF-8
Java
false
false
3,148
java
package com.company; // =======история======= public class Story { private Situation start_story; public Situation current_situation; Story() { start_story = new Situation( "первая сделка (Windows)", "Только вы начали работать и тут же удача! Вы нашли клиента и продаете ему " + "партию ПО MS Windows. Ему в принципе достаточно взять 100 коробок версии HOME.\n" + "(1)у клиента денег много, а у меня нет - вы выпишете ему счет на 120 коробок ULTIMATE по 50тр\n" + "(2)чуть дороже сделаем, кто там заметит - вы выпишете ему счет на 100 коробок PRO по 10тр\n" + "(3)как надо так и сделаем - вы выпишете ему счет на 100 коробок HOME по 5тр ", 0, 0, 0); start_story.direction.add(new Situation( "корпоратив", "Неудачное начало, ну что ж, сегодня в конторе корпоратив! " + "Познакомлюсь с коллегами, людей так сказать посмотрю, себя покажу", 0, -10, -10)); start_story.direction.add(new Situation( "совещание, босс доволен", "Сегодня будет совещание, меня неожиданно вызвали," + "есть сведения что \n босс доволен сегодняшней сделкой.", 1, 100, 0)); start_story.direction.add(new Situation( "мой первый лояльный клиент", "Мой первый клиент доволен скоростью и качеством " + "моей работы. Сейчас мне звонил лично \nдиректор компании, сообщил что скоро состоится еще более крупная сделка" + " и он хотел, чтобы по ней работал именно я!", 0, 50, 1)); current_situation = start_story; } public void go(int num) { if (num <= current_situation.direction.size()) current_situation = current_situation.direction.get(num - 1); else System.out.println("Вы можете выбирать из " + current_situation.direction.size() + " вариантов"); } public void addStory(Situation other){ current_situation.text += "\n("+ (current_situation.direction.size()+1) + ") " + other.subject; current_situation.direction.add(other); } public boolean isEnd() { return current_situation.direction.size() == 0; } }
[ "Alexander167" ]
Alexander167
d6c722d96033ede0c2c3387fd29dc91ddf26d813
f633bbc1a8936b780676e9ac8b099c9d3c32ea50
/src/ch14_generics/Exercise/E09_GenericMethods2.java
443421f836c18791dad261e0f6a66170f4b2c042
[]
no_license
zjn0505/Think-in-Java
4cc203409c886a849819c8d53a3f92089efd6944
61d6fd303ea05d1ba047b10cb7f9167eb94814fb
refs/heads/master
2021-01-17T02:13:21.002319
2017-09-19T14:50:33
2017-09-19T14:50:33
31,588,332
1
0
null
null
null
null
UTF-8
Java
false
false
735
java
package ch14_generics.Exercise; /** * Created by Jienan on 2017/4/12. */ /****************** Exercise 9 ***************** * Modify GenericMethods.java so that f() accepts * three arguments, all of which are of a different * parameterized type. ************************************************/ public class E09_GenericMethods2 { public <A, B, C> void f(A a, B b, C c) { System.out.println(a.getClass().getName()); System.out.println(b.getClass().getName()); System.out.println(c.getClass().getName()); } public static void main(String[] args) { E09_GenericMethods2 gm = new E09_GenericMethods2(); gm.f("", 1, 1.0); gm.f(1.0F, 'c', gm); } }
a1e642e0fabdda4cb28677d35f6e20cea88a3328
ff79242c33ac428be7c0b1f802a07501f557e3cd
/src/main/java/systemy/bankowe/dao/insurance/InsuranceTypeDao.java
09138ea11a16e102bf8104120db350d85f39d8ce
[]
no_license
kosiarz7/SB
47925fcda3b3f7c591bdd1683bd8f8efdfede6f3
552afe1a70996c33755eb68282203d3d2a7f9cce
refs/heads/master
2021-01-23T07:37:50.927799
2015-06-23T13:30:43
2015-06-23T13:30:43
34,174,353
0
0
null
null
null
null
UTF-8
Java
false
false
1,177
java
package systemy.bankowe.dao.insurance; import java.io.Serializable; import java.util.List; import java.util.Optional; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction; import systemy.bankowe.dao.HibernateUtil; import systemy.bankowe.dto.UserDto; import systemy.bankowe.dto.insurance.InsuranceTypeDto; public class InsuranceTypeDao extends HibernateUtil implements IInsuranceTypeDao, Serializable { /** * */ private static final long serialVersionUID = -2970102744370102481L; private static final String GET_INSURANCE_TYPE_BY_ID = "FROM InsuranceTypeDto WHERE id = :id"; @Override @SuppressWarnings("unchecked") public InsuranceTypeDto getById(Integer id) { Session session = openSession(); Transaction tx = null; Query query = null; InsuranceTypeDto type; try { tx = session.beginTransaction(); query = session.createQuery(GET_INSURANCE_TYPE_BY_ID); query.setParameter("id", id); type = (InsuranceTypeDto) query.uniqueResult(); tx.commit(); } catch (RuntimeException e) { if (null != tx) { tx.rollback(); } throw e; } finally { session.close(); } return type; } }
5d6d91f0f1f2bd2e986b6ba31ca27f0b1380101e
02d31dd1cbde6bd98f3fcb94dd842d19776469bc
/src/main/java/artof/dialogs/invoicing/InvoiceConfigureDialog.java
cf04b2c512e52b67019ae1850aa7665ff399a1a6
[]
no_license
delirian/rsf
5e719dd782140421dff786109c9620c0d92f6f83
ad4e147fa3e0b070d1de4ac3ed96de573c40c2d1
refs/heads/master
2021-06-16T01:18:10.679344
2017-02-01T12:16:17
2017-02-01T12:16:17
80,531,589
0
0
null
null
null
null
UTF-8
Java
false
false
19,135
java
package artof.dialogs.invoicing; import artof.database.ArtofDB; import artof.database.ClientDets; import artof.database.DesignDets; import artof.utils.sortablejtable.SortButtonRenderer; import artof.utils.sortablejtable.SortableTableModel; import artof.utils.UserSettings; import artof.utils.Utils; import com.intellij.uiDesigner.core.GridConstraints; import com.intellij.uiDesigner.core.GridLayoutManager; import com.intellij.uiDesigner.core.Spacer; import javax.swing.*; import javax.swing.table.*; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.util.*; /** * Created by IntelliJ IDEA. * User: cdavel * Date: Mar 10, 2005 * Time: 1:21:26 PM * To change this template use File | Settings | File Templates. */ public class InvoiceConfigureDialog extends JDialog { private JPanel mainPanel; private JButton cancelButton; private JButton printButton; private JLabel dateValue; private JLabel numberValue; private JLabel dateLabel; private JLabel numberLabel; private JComboBox clientComboBox; private JRadioButton multipleDesignRadioButton; private JRadioButton currentDesignradioButton; private ButtonGroup buttonGroup = new ButtonGroup(); private JTable table1; ArtofDB artofDB; private ArrayList clientList; private ArrayList designList = new ArrayList(); private ArrayList allDesignList = null; private String[] headerStr = {"Include in Invoice","Surname","Name","Design Name","Design Code","Date","Status"}; HashMap selectedHashMap; static String SHOW_ALL_CLIENTS = "Show all clients..."; DesignDets currentDesignDets; ClientDets clientDets = null; // the clientDets of the currentDesign public InvoiceConfigureDialog(DesignDets currentDesignDets ) { numberValue.setText(Utils.getCurrentDate() + "-" + (UserSettings.INVOICE_NUMBER + 1)); dateValue.setText(Utils.getDatumStr(Utils.getCurrentDate())); artofDB = ArtofDB.getCurrentDB(); this.currentDesignDets = currentDesignDets; designList = artofDB.getAllDesigns(); this.getContentPane().add(mainPanel); clientComboBox.setModel(getClientComboModel()); setupRadioButtonStuff(); doStartupRadioButtonSelection(); table1.setModel(makeTableModel(getDesignList())); setupColumns(); setActionListeners(); setSortableStuff(); setTitle("Invoice Configuration"); setSize(700,530); setLocation(150,150); setVisible(true); } private void doStartupRadioButtonSelection() { selectedHashMap = new HashMap(); ((DefaultTableModel)table1.getModel()).fireTableDataChanged(); if (clientDets == null) clientDets = artofDB.getClient(currentDesignDets.getClientID()); clientComboBox.getModel().setSelectedItem(clientDets.getSurname() + ", " + clientDets.getName()); selectedHashMap.put(new Integer(currentDesignDets.getDesignID()),Boolean.TRUE); } /** * Add rb's to group and set default to currentDesign */ private void setupRadioButtonStuff() { buttonGroup.add(multipleDesignRadioButton); buttonGroup.add(currentDesignradioButton); currentDesignradioButton.setSelected(true); } /** * Components include : * ClientCombo * OKButton * CancelButton */ private void setActionListeners() { currentDesignradioButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { doStartupRadioButtonSelection(); } }); clientComboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { table1.setModel(makeTableModel(getDesignList())); setupColumns(); } }); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { get_this().hide(); } }); printButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ArrayList selectedList = new ArrayList(); TreeSet uniquSet = new TreeSet(); for (Iterator iterator = selectedHashMap.keySet().iterator(); iterator.hasNext();) { Object o = iterator.next(); if (selectedHashMap.get(o).equals(Boolean.TRUE)) { DesignDets design = getDesignDetsFromAllDesignList(((Integer)o).intValue()); uniquSet.add(new Integer(design.getClientID())); selectedList.add(design); } } if (uniquSet.size() > 1) { JOptionPane.showMessageDialog(get_this(), "An invoice can only be created for one client. \n" + "Select designs belonging to the same client.", "Selection Error",JOptionPane.ERROR_MESSAGE); return; } UserSettings.INVOICE_NUMBER = UserSettings.INVOICE_NUMBER + 1; currentDesignDets.setDesignList(selectedList); currentDesignDets.printDesignQuotation(); get_this().hide(); } }); } JDialog get_this() { return this; } private void setSortableStuff() { table1.setShowVerticalLines(true); table1.setShowHorizontalLines(true); SortButtonRenderer renderer = new SortButtonRenderer(); int n = headerStr.length; for (int i = 0; i < n; i++) { table1.getColumnModel().getColumn(i).setHeaderRenderer(renderer); } JTableHeader header = table1.getTableHeader(); header.addMouseListener(new HeaderListener(header, renderer)); } /** * built a combomodel of all the clients in the db * @return */ ComboBoxModel getClientComboModel() { clientList = artofDB.getClients(" order by SurName"); DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(); comboBoxModel.addElement(SHOW_ALL_CLIENTS); for (Iterator iterator = clientList.iterator(); iterator.hasNext();) { ClientDets clientDets = (ClientDets) iterator.next(); comboBoxModel.addElement(clientDets.getSurname() + ", " + clientDets.getName()); } clientComboBox.getModel().setSelectedItem(SHOW_ALL_CLIENTS); return comboBoxModel; } /** * gets the designs for a selection in the clientCombo * @return */ protected ArrayList getDesignList() { try { if (clientComboBox.getModel().getSelectedItem().equals(SHOW_ALL_CLIENTS)) return getDesigns(null,null); else { ClientDets client = (ClientDets) clientList.get(clientComboBox.getSelectedIndex() - 1); return getDesigns(client.getSurname(),client.getName()); } } catch (Exception e) { return new ArrayList(); } } /** * get all the designs for a spesific surname and name. As die name en surname null is return dit alle designs in die db * @param surname * @param name * @return */ ArrayList getDesigns(String surname, String name) { ArrayList dList = new ArrayList(); if (allDesignList == null) allDesignList = artofDB.getAllDesigns(); if (name == null && surname == null) return allDesignList; for (Iterator iterator = allDesignList.iterator(); iterator.hasNext();) { DesignDets designDets = (DesignDets) iterator.next(); if (((ClientDets)getClientDetsFromList(designDets.getClientID())).getSurname().equals(surname) && ((ClientDets)getClientDetsFromList(designDets.getClientID())).getName().equals(name)) { dList.add(designDets); } } return dList; } /** * get clientDets for designID from list * @param clientID * @return */ ClientDets getClientDetsFromList(int clientID) { for (Iterator iterator = clientList.iterator(); iterator.hasNext();) { ClientDets clientDets = (ClientDets) iterator.next(); if (clientDets.getClientID() == clientID) { return clientDets; } } return null; } /** * get designDets for designID from list * @param designID * @return */ DesignDets getDesignDetsFromAllDesignList(int designID) { for (Iterator iterator = allDesignList.iterator(); iterator.hasNext();) { DesignDets designDets = (DesignDets) iterator.next(); if (designDets.getDesignID() == designID) { return designDets; } } return null; } private TableModel makeTableModel(final ArrayList modelDesignList) { return new SortableTableModel() { public int getRowCount() { try { return modelDesignList.size(); } catch (NullPointerException e) { return 0; } } public int getColumnCount() { return 7; } public Class getColumnClass(int col) { switch (col) { case 0: return Boolean.class; case 1: return String.class; case 2: return String.class; case 3: return String.class; case 4: return String.class; case 5: return String.class; default: return String.class; } } public void setValueAt(Object aValue, int row, int column) { if (row >= getRowCount()) return ; int[] indexes = getIndexes(); int rowIndex = row; if (indexes != null) { rowIndex = indexes[row]; } DesignDets designDets = (DesignDets) modelDesignList.get(rowIndex); if (column == 0) { selectedHashMap.put(new Integer(designDets.getDesignID()),(Boolean)table1.getCellEditor(rowIndex,column).getCellEditorValue()); int i = 0; for (Iterator iterator = selectedHashMap.values().iterator(); iterator.hasNext();) { Boolean bb = (Boolean) iterator.next(); if (bb.equals(Boolean.TRUE)) i++; } if (i > 1 || designDets.getDesignID() != getCurrentDesignDets().getDesignID()) multipleDesignRadioButton.setSelected(true); else currentDesignradioButton.setSelected(true); } } public Object getValueAt(int row, int column) { int[] indexes = getIndexes(); int rowIndex = row; if (indexes != null) { rowIndex = indexes[row]; } DesignDets designDets = (DesignDets) modelDesignList.get(rowIndex); ClientDets clientDets = artofDB.getClient(designDets.getClientID()); switch (column) { case 0: // Selected CheckBox Boolean isSel = (Boolean) selectedHashMap.get(new Integer(designDets.getDesignID())); if (isSel == null) return new Boolean(false); else return (isSel); case 1: // Surname return clientDets.getSurname(); case 2: // client name return clientDets.getName(); case 3: // design name return designDets.getTitle(); case 4: // design code return String.valueOf(designDets.getDesignID()); case 5: // design date return String.valueOf(designDets.getDate()); case 6: // design status return designDets.getStatus(); default: throw new IllegalArgumentException( "Column out of range: " + column); } } public boolean isCellEditable(int row,int column) { if (column == 0) return true; else return false; } }; } public DesignDets getCurrentDesignDets() { return currentDesignDets; } void setupColumns() { TableColumn tableColumn; for (int columnIndex = 0; columnIndex < table1.getColumnCount(); columnIndex++) { tableColumn = table1.getColumnModel().getColumn(columnIndex); switch(columnIndex) { case 0: { tableColumn.setHeaderValue("Include in Invoice"); JCheckBox jCheckBox = new JCheckBox(); jCheckBox.setHorizontalAlignment(SwingConstants.CENTER); TableCellEditor cellEditor = new DefaultCellEditor(jCheckBox); tableColumn.setCellEditor(cellEditor); break; } case 1: { tableColumn.setHeaderValue("Surname"); break; } case 2: { tableColumn.setHeaderValue("Name"); break; } case 3: { tableColumn.setHeaderValue("Design Name"); break; } case 4: { tableColumn.setHeaderValue("Design Code"); break; } case 5: { tableColumn.setHeaderValue("Date"); break; } case 6: { tableColumn.setHeaderValue("Status"); break; } default: { break; } } } } public static void main(String[] args) { // InvoiceConfigureDialog invoiceConfigureDialog = new InvoiceConfigureDialog(); } { // GUI initializer generated by IntelliJ IDEA GUI Designer // !!! IMPORTANT !!! // DO NOT EDIT OR ADD ANY CODE HERE! $$$setupUI$$$(); } /** * Method generated by IntelliJ IDEA GUI Designer * !!! IMPORTANT !!! * DO NOT edit this method OR call it in your code! */ private void $$$setupUI$$$() { mainPanel = new JPanel(); mainPanel.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1)); mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); final JPanel panel2 = new JPanel(); panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1)); panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); currentDesignradioButton = new JRadioButton(); currentDesignradioButton.setText("Current Design"); panel2.add(currentDesignradioButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); multipleDesignRadioButton = new JRadioButton(); multipleDesignRadioButton.setText("Multiple Design"); panel2.add(multipleDesignRadioButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); final JPanel panel3 = new JPanel(); panel3.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), 20, -1)); panel1.add(panel3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); final JLabel label1 = new JLabel(); label1.setText("Client"); panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); clientComboBox = new JComboBox(); panel3.add(clientComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, new Dimension(80, -1), null, null)); final JPanel panel4 = new JPanel(); panel4.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1)); panel1.add(panel4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); numberLabel = new JLabel(); numberLabel.setText("Invoice Number:"); panel4.add(numberLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); dateLabel = new JLabel(); dateLabel.setText("Date:"); panel4.add(dateLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); numberValue = new JLabel(); numberValue.setText("xxx"); panel4.add(numberValue, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); dateValue = new JLabel(); dateValue.setText("xxx"); panel4.add(dateValue, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); final JPanel panel5 = new JPanel(); panel5.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1)); mainPanel.add(panel5, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null)); printButton = new JButton(); printButton.setText("Print"); panel5.add(printButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); cancelButton = new JButton(); cancelButton.setText("Cancel"); panel5.add(cancelButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null)); final Spacer spacer1 = new Spacer(); panel5.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null)); final Spacer spacer2 = new Spacer(); panel5.add(spacer2, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null)); final JScrollPane scrollPane1 = new JScrollPane(); mainPanel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null)); table1 = new JTable(); scrollPane1.setViewportView(table1); } class HeaderListener extends MouseAdapter { JTableHeader header; SortButtonRenderer renderer; HeaderListener(JTableHeader header, SortButtonRenderer renderer) { this.header = header; this.renderer = renderer; } public void mousePressed(MouseEvent e) { if (e.getClickCount() == 2) { int col = header.columnAtPoint(e.getPoint()); int sortCol = header.getTable().convertColumnIndexToModel(col); renderer.setPressedColumn(col); renderer.setSelectedColumn(col); header.repaint(); if (header.getTable().isEditing()) { header.getTable().getCellEditor().stopCellEditing(); } boolean isAscent; isAscent = SortButtonRenderer.DOWN == renderer.getState(col); ( (SortableTableModel) header.getTable().getModel()).sortByColumn(sortCol, isAscent); } } public void mouseReleased(MouseEvent e) { int col = header.columnAtPoint(e.getPoint()); renderer.setPressedColumn( -1); // clear header.repaint(); } } }
28a7d07412ff320f54cdca232126f7ba87647751
ff4f70e8577e99da19af4cebee34002fad40f47d
/src/com/android/inputmethod/compat/VibratorCompatWrapper.java
e6118bdd4b215d6948a640af833ff9eb2767196b
[ "Apache-2.0" ]
permissive
soeminnminn/LatinIME_ICS_ported
0eff37638a2fe2f1d6f15aa7e6eb107fffb840e9
16d05e44f6f69f3e33c8f2fff90f01fb15dfb7ab
refs/heads/master
2021-01-01T06:44:37.360977
2014-05-03T07:20:55
2014-05-03T07:20:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,680
java
/* * Copyright (C) 2011 The Android Open Source Project * * 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.android.inputmethod.compat; import android.content.Context; import android.os.Vibrator; import java.lang.reflect.Method; public class VibratorCompatWrapper { private static final Method METHOD_hasVibrator = CompatUtils.getMethod(Vibrator.class, "hasVibrator"); private static final VibratorCompatWrapper sInstance = new VibratorCompatWrapper(); private Vibrator mVibrator; private VibratorCompatWrapper() { } public static VibratorCompatWrapper getInstance(Context context) { if (sInstance.mVibrator == null) { sInstance.mVibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); } return sInstance; } public boolean hasVibrator() { if (mVibrator == null) return false; return (Boolean) CompatUtils.invoke(mVibrator, true, METHOD_hasVibrator); } public void vibrate(long milliseconds) { mVibrator.vibrate(milliseconds); } }
9abe4512497d154b2d3829b90c524220d5945d8f
69cad28f8cc22b39363a2733b506f7ecba1d82ce
/jokerfishlib/src/main/java/com/jokerfishlib/utils/DeskIconBadge/HuaweiShortCut.java
f813291dea1403782d369f9258d8ffc78bf84718
[]
no_license
a8119136/UtlisAndwidget
aed8712f00d6513fe2212c2c9350920441b407be
900400d66b027f1a49c7be426d1de0dc63489523
refs/heads/master
2021-07-13T12:23:00.924544
2017-10-19T00:57:48
2017-10-19T00:57:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
258
java
package com.jokerfishlib.utils.DeskIconBadge; import android.content.Context; /** * Created by JokerFish on 2017/10/9. */ public class HuaweiShortCut implements IShortCut { @Override public void showShortCut(Context context, int num) { } }
d4fe95e4033eebf74dec294bbdf200d90add49eb
652b1238ad4c2baf9c39e1c59cb2cd5259fda763
/MainActivity.java
1e76291c6b62c94769076a6c832efc07df1f012f
[]
no_license
grkm7/PhoneBook
7033de0b349bab4b30d1c6ced2a09d72b41f9afe
95649c7a2108f3a4e5eb7908b721fed2ca46fa57
refs/heads/main
2023-06-30T05:26:11.744909
2021-08-03T22:56:35
2021-08-03T22:56:35
392,478,500
0
0
null
null
null
null
UTF-8
Java
false
false
5,763
java
package com.info.kisileruygulamasi; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.SearchView; import androidx.appcompat.widget.Toolbar; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.DialogInterface; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.Toast; import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener; import java.util.ArrayList; public class MainActivity extends AppCompatActivity implements SearchView.OnQueryTextListener { private Toolbar toolbar; private RecyclerView rv; private FloatingActionButton fab; private ArrayList<Kisiler> kisilerArrayList; private KisilerAdapter adapter; private FirebaseDatabase database; private DatabaseReference myRef; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); toolbar = findViewById(R.id.toolbar); rv = findViewById(R.id.rv); fab = findViewById(R.id.fab); database = FirebaseDatabase.getInstance(); myRef = database.getReference("kisiler"); rv.setHasFixedSize(true); rv.setLayoutManager(new LinearLayoutManager(this)); toolbar.setTitle("Kişiler Uygulaması"); setSupportActionBar(toolbar); kisilerArrayList = new ArrayList<>(); adapter = new KisilerAdapter(this,kisilerArrayList,myRef); rv.setAdapter(adapter); tumKisiler(); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { alertGoster(); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.arama_menu,menu); MenuItem item = menu.findItem(R.id.action_ara); SearchView searchView = (SearchView) item.getActionView(); searchView.setOnQueryTextListener(this); return super.onCreateOptionsMenu(menu); } @Override public boolean onQueryTextSubmit(String query) { Log.e("Kelime girildiğinde:",query); return false; } @Override public boolean onQueryTextChange(String newText) { arama(newText); Log.e("Harf girildiğinde:",newText); return false; } public void alertGoster(){ LayoutInflater layout = LayoutInflater.from(this); View tasarim = layout.inflate(R.layout.alert_tasarim,null); final EditText editTextAd = tasarim.findViewById(R.id.editTextAd); final EditText editTextTel = tasarim.findViewById(R.id.editTextTel); AlertDialog.Builder ad = new AlertDialog.Builder(this); ad.setTitle("Kişi Ekle"); ad.setView(tasarim); ad.setPositiveButton("Ekle", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { String kisi_ad = editTextAd.getText().toString().trim(); String kisi_tel = editTextTel.getText().toString().trim(); String key = myRef.push().getKey(); Kisiler kisi = new Kisiler(key,kisi_ad,kisi_tel); myRef.push().setValue(kisi); } }); ad.setNegativeButton("İptal", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); ad.create().show(); } public void tumKisiler(){ myRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot) { kisilerArrayList.clear(); for(DataSnapshot d: snapshot.getChildren()){ Kisiler kisi = d.getValue(Kisiler.class); kisi.setKisi_id(d.getKey()); kisilerArrayList.add(kisi); } adapter.notifyDataSetChanged(); } @Override public void onCancelled(@NonNull DatabaseError error) { } }); } public void arama(final String aramKelime){ myRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot) { kisilerArrayList.clear(); for(DataSnapshot d: snapshot.getChildren()){ Kisiler kisi = d.getValue(Kisiler.class); if(kisi.getKisi_ad().contains(aramKelime)){ kisi.setKisi_id(d.getKey()); kisilerArrayList.add(kisi); } } adapter.notifyDataSetChanged(); } @Override public void onCancelled(@NonNull DatabaseError error) { } }); } }
3ba18b45fba0eefe845cbca6a6c23d6f203e5350
c36d08386a88e139e6325ea7f5de64ba00a45c9f
/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/records/UpdateApplicationHomeSubClusterResponse.java
e4157f62fdb3dc49a25147aa5dee20d33316f850
[ "Apache-2.0", "LicenseRef-scancode-unknown", "CC0-1.0", "CC-BY-3.0", "EPL-1.0", "LicenseRef-scancode-unknown-license-reference", "Classpath-exception-2.0", "CC-PDDC", "GCC-exception-3.1", "CDDL-1.0", "MIT", "GPL-2.0-only", "BSD-3-Clause", "LicenseRef-scancode-public-domain", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "CDDL-1.1", "LicenseRef-scancode-jdom", "BSD-2-Clause" ]
permissive
dmgerman/hadoop
6197e3f3009196fb4ca528ab420d99a0cd5b9396
70c015914a8756c5440cd969d70dac04b8b6142b
refs/heads/master
2020-12-01T06:30:51.605035
2019-12-19T19:37:17
2019-12-19T19:37:17
230,528,747
0
0
Apache-2.0
2020-01-31T18:29:52
2019-12-27T22:48:25
Java
UTF-8
Java
false
false
2,820
java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 *<p> * http://www.apache.org/licenses/LICENSE-2.0 *<p> * 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. */ end_comment begin_package DECL|package|org.apache.hadoop.yarn.server.federation.store.records package|package name|org operator|. name|apache operator|. name|hadoop operator|. name|yarn operator|. name|server operator|. name|federation operator|. name|store operator|. name|records package|; end_package begin_import import|import name|org operator|. name|apache operator|. name|hadoop operator|. name|classification operator|. name|InterfaceAudience operator|. name|Private import|; end_import begin_import import|import name|org operator|. name|apache operator|. name|hadoop operator|. name|classification operator|. name|InterfaceStability operator|. name|Unstable import|; end_import begin_import import|import name|org operator|. name|apache operator|. name|hadoop operator|. name|yarn operator|. name|util operator|. name|Records import|; end_import begin_comment comment|/** * UpdateApplicationHomeSubClusterResponse contains the answer from the * {@code FederationApplicationHomeSubClusterStore} to a request to register the * home subcluster of a submitted application. Currently response is empty if * the operation was successful, if not an exception reporting reason for a * failure. */ end_comment begin_class annotation|@ name|Private annotation|@ name|Unstable DECL|class|UpdateApplicationHomeSubClusterResponse specifier|public specifier|abstract class|class name|UpdateApplicationHomeSubClusterResponse block|{ annotation|@ name|Private annotation|@ name|Unstable DECL|method|newInstance () specifier|public specifier|static name|UpdateApplicationHomeSubClusterResponse name|newInstance parameter_list|() block|{ name|UpdateApplicationHomeSubClusterResponse name|response init|= name|Records operator|. name|newRecord argument_list|( name|UpdateApplicationHomeSubClusterResponse operator|. name|class argument_list|) decl_stmt|; return|return name|response return|; block|} block|} end_class end_unit
4bbacfe5516c89a5f83da9905c5d917383066bd0
fee0e9f2c27a9d362f7ae3195fc89dd5399809a3
/src/week6/debugging/DebugSeven3.java
98e5b02abfd0b5063d0f542c26918af2a97220d2
[]
no_license
MattRooke/2019_BasicJava
1a0a9c3fae31774fee75c1907cc57772133159c0
c89e519ad6ca61da397ea8ebb6b69aa8f645c006
refs/heads/master
2022-03-03T03:23:24.830298
2019-10-23T11:15:12
2019-10-23T11:15:12
200,951,259
0
0
null
null
null
null
UTF-8
Java
false
false
718
java
package week6.debugging; // Program displays some facts about a string public class DebugSeven3 { public static void main(String[] args) { String quote = "Honesty is the first chapter in the book of wisdom. - Thomas Jefferson"; System.out.println("index.of('f') is: " + quote.indexOf('f')); System.out.println("index.of('x') is: " + quote.indexOf('x')); System.out.println("char.At(5) is: " + quote.charAt(5)); System.out.println("endsWith(\"daughter\") is: " + quote.endsWith("daughter")); System.out.println("endsWith(\"son\") is: " + quote.endsWith("son")); System.out.println("replace('e', '*') is: " + quote.replace('e', '*')); } }
ccc64ca4a910deaaf701b9a285eb66329390756f
6ce88dd586026aef4e20dcdd8805e1cac26774f9
/hive/src/main/java/com/twitter/elephantbird/mapred/output/HiveLzoProtobufBlockOutputFormat.java
48dfca620d659538d65470badea59e8d37c56c5a
[ "Apache-2.0" ]
permissive
mikebern/elephant-bird
b8fee4a322645bad88b436a1fbd6ea711ca715f2
346cf0a3a6ff533d0e56bed750ae671916b00a74
refs/heads/master
2020-04-06T06:57:38.191162
2014-06-21T01:16:05
2014-06-21T01:16:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,627
java
package com.twitter.elephantbird.mapred.output; import java.io.IOException; import java.util.Properties; import com.google.protobuf.Message; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter; import org.apache.hadoop.hive.ql.io.HiveOutputFormat; import org.apache.hadoop.hive.serde.serdeConstants; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Writable; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.util.Progressable; import com.twitter.elephantbird.mapreduce.io.ProtobufWritable; import com.twitter.elephantbird.mapreduce.output.LzoOutputFormat; import com.twitter.elephantbird.mapreduce.output.LzoProtobufBlockOutputFormat; /** * Output format class for Hive tables * * To use in data manipulation queries (DML), call 'SET hive.output.file.extension=.lzo;' beforehand. * Don't forget to clear the extension afterwards ('SET hive.output.file.extension=;') */ public class HiveLzoProtobufBlockOutputFormat<M extends Message> extends DeprecatedLzoProtobufBlockOutputFormat<M> implements HiveOutputFormat<NullWritable, ProtobufWritable<M>> { @Override public RecordWriter getHiveRecordWriter(JobConf jc, Path finalOutPath, Class<? extends Writable> valueClass, boolean isCompressed, Properties tableProperties, Progressable progress) throws IOException { // let writer know what protobuf class to write with String protoClassName = tableProperties.getProperty(serdeConstants.SERIALIZATION_CLASS); Class<?> cls = null; try { if (jc == null) { cls = Class.forName(protoClassName); } else { cls = jc.getClassByName(protoClassName); } Class<? extends Message> protobufClass = cls.asSubclass(Message.class); ((LzoProtobufBlockOutputFormat)this.realOutputFormat).setClassConf(protobufClass, jc); DeprecatedOutputFormatWrapper.setOutputFormat(LzoProtobufBlockOutputFormat.class, jc); } catch(Exception e) { throw new IOException(); } jc.set(LzoOutputFormat.CONF_FINAL_OUT_PATH, finalOutPath.toString()); final org.apache.hadoop.mapred.RecordWriter<NullWritable, ProtobufWritable<M>> recordWriter = this.getRecordWriter(null, jc, "dummy", progress); // delegate writing & closing to the actual record writer return new RecordWriter() { public void write(Writable r) throws IOException { recordWriter.write(NullWritable.get(), (ProtobufWritable<M>)r); } public void close(boolean abort) throws IOException { recordWriter.close(null); } }; } }
bcc303bd854fb08608e73fb3f9654f3ff881d16a
bd4fabda5ed51b9099cb6a2ba2753994c0068321
/src/com/cpe50/gui/TestGUI.java
1ecf989dd0eb270b939f96cc6cbc731024872044
[]
no_license
michaelangelosalvio/cpe50
0b0982af545a8b7217684395ac9b4f817c765dd0
eca30f0681462045c71a0aa9ed41b6dbc2a6640b
refs/heads/master
2020-04-06T07:04:57.631081
2018-07-27T03:10:08
2018-07-27T03:10:08
61,638,356
0
1
null
null
null
null
UTF-8
Java
false
false
1,043
java
package com.cpe50.gui; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class TestGUI { public static void main(String[] args) { JFrame frame = new JFrame("GUI Frame"); JLabel nameLabel = new JLabel("Enter Name"); JButton submitButton = new JButton("Save"); JTextField nameField = new JTextField(10); Container container = frame.getContentPane(); container.setLayout(new FlowLayout()); container.add(nameLabel); container.add(nameField); container.add(submitButton); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); submitButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null, "Your name is " + nameField.getText()); nameField.setText(""); } }); } }
df846da8f81682851a7f627e8b992c464e34aba1
6b5c2e87cb4fdabe3ca781023e374e43ceec7573
/src/main/java/com/itcast/quickspringboot/bo/PageBO.java
0de9718a7b71dab5bab967737e31a2446b7f8ffa
[]
no_license
itheimaxia/quick-springboot
a027e152020f7405fd76ff20081149363f4036ee
eac3de11edcd7d90b53d7c4ce0cc7eb3000e6618
refs/heads/master
2022-06-20T02:00:33.617234
2020-05-12T12:09:47
2020-05-12T12:09:47
262,722,615
2
1
null
null
null
null
UTF-8
Java
false
false
990
java
package com.itcast.quickspringboot.bo; import org.hibernate.validator.constraints.Range; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; public class PageBO { @NotNull @Range(min = 1,max = 100,message = "一次性获取最大列表数不能超过100") private Integer pageSize; @NotNull @Min(value = 1,message = "必须大于0") private Integer pageNum; @NotNull private String queryString; public String getQueryString() { return queryString; } public void setQueryString(String queryString) { this.queryString = queryString; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public Integer getPageNum() { return pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } }
618c9c1d683ad437748b2bb173a8a808acd96989
7072af6a03d025baf94bdf9303c48d77d469633d
/com/shangshufang/homework/step1/knowledge9001_06/Demo2.java
a002fa470d6b6e8f46bed84dc9f2f8d4e915b62f
[]
no_license
ShangShuFang/JavaExercisesDemo
8ed9b2291e4e73a32b47ad4572f9a39da60aaa41
f91253d2886d4913adb84302dbd749b1a2952f23
refs/heads/master
2023-02-06T19:42:54.466802
2020-12-18T09:34:08
2020-12-18T09:34:08
317,754,403
0
0
null
null
null
null
UTF-8
Java
false
false
303
java
package com.shangshufang.homework.step1.knowledge9001_06; /** * Java常量 */ public class Demo2 { public static void main(String[] args) { //常量需要 final String HELLO = "Hi "; String customerName = "Johnny"; System.out.println(HELLO + customerName); } }
f6172a070026a18973d4c98965a2701034748aff
2a3d502c6dc0eff88bb4737178c38f1aae95aaac
/src/java/com/futbolWeb/backend/persistence/entities/HorarioClub.java
34ea3fbcde9fdf87b6d65121a4db12afe60a6391
[]
no_license
Arango1998/FutbolWeb2017
3ddb3c41fdb9a74a7c76537934bf07b60f65cbd2
0a7d1ed1253398886b0dd5297689e6b97b3060a4
refs/heads/master
2021-01-18T16:00:50.242984
2017-03-16T12:42:21
2017-03-16T12:42:21
84,347,926
0
0
null
null
null
null
UTF-8
Java
false
false
4,033
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 com.futbolWeb.backend.persistence.entities; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; import javax.xml.bind.annotation.XmlRootElement; /** * * @author Cristian Suesca */ @Entity @Table(name = "horarios_club") @XmlRootElement @NamedQueries({ @NamedQuery(name = "HorarioClub.findAll", query = "SELECT h FROM HorarioClub h"), @NamedQuery(name = "HorarioClub.findByIdHorario", query = "SELECT h FROM HorarioClub h WHERE h.idHorario = :idHorario"), @NamedQuery(name = "HorarioClub.findByHoraInicio", query = "SELECT h FROM HorarioClub h WHERE h.horaInicio = :horaInicio"), @NamedQuery(name = "HorarioClub.findByHoraFin", query = "SELECT h FROM HorarioClub h WHERE h.horaFin = :horaFin")}) public class HorarioClub implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id_horario") private Integer idHorario; @Basic(optional = false) @NotNull @Column(name = "hora_inicio") @Temporal(TemporalType.TIMESTAMP) private Date horaInicio; @Basic(optional = false) @NotNull @Column(name = "hora_fin") @Temporal(TemporalType.TIMESTAMP) private Date horaFin; @JoinColumn(name = "fk_id_equipo", referencedColumnName = "id_equipo") @ManyToOne(optional = false, fetch = FetchType.EAGER) private Equipo fkIdEquipo; public HorarioClub() { } public HorarioClub(Integer idHorario) { this.idHorario = idHorario; } public HorarioClub(Integer idHorario, Date horaInicio, Date horaFin) { this.idHorario = idHorario; this.horaInicio = horaInicio; this.horaFin = horaFin; } public Integer getIdHorario() { return idHorario; } public void setIdHorario(Integer idHorario) { this.idHorario = idHorario; } public Date getHoraInicio() { return horaInicio; } public void setHoraInicio(Date horaInicio) { this.horaInicio = horaInicio; } public Date getHoraFin() { return horaFin; } public void setHoraFin(Date horaFin) { this.horaFin = horaFin; } public Equipo getFkIdEquipo() { return fkIdEquipo; } public void setFkIdEquipo(Equipo fkIdEquipo) { this.fkIdEquipo = fkIdEquipo; } @Override public int hashCode() { int hash = 0; hash += (idHorario != null ? idHorario.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof HorarioClub)) { return false; } HorarioClub other = (HorarioClub) object; if ((this.idHorario == null && other.idHorario != null) || (this.idHorario != null && !this.idHorario.equals(other.idHorario))) { return false; } return true; } @Override public String toString() { return "com.futbolWeb.backend.persistence.entities.HorarioClub[ idHorario=" + idHorario + " ]"; } }
[ "Cristian [email protected]" ]
733935966f0aa0ad7fa782f2ff9990a168bf879b
3f0f6c7da43d26ebd4de0a113788dd3340eb71df
/src/main/java/com/delfi/xmobile/lib/lecreusetbase/view/ui/common/FullScreenDialog.java
39e46528935c459330b86c2173dba49a7ce25b79
[]
no_license
tmtuyen1512/lecreusetbase
65727f2e4141076d7eddacc2da16cb1476df2653
73df4f0efca150d1e1b9f5c49ec633f873fdc36f
refs/heads/master
2022-11-26T22:24:52.456138
2020-08-10T05:02:51
2020-08-10T05:02:51
285,770,791
0
0
null
null
null
null
UTF-8
Java
false
false
10,587
java
package com.delfi.xmobile.lib.lecreusetbase.view.ui.common; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.drawable.AnimationDrawable; import android.os.CountDownTimer; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.widget.Button; import android.widget.ImageView; import android.widget.ScrollView; import android.widget.TextView; import com.delfi.xmobile.lib.lecreusetbase.R; import com.delfi.xmobile.lib.lecreusetbase.utils.IScreenEventError; import com.delfi.xmobile.lib.lecreusetbase.utils.IScreenEventRetry; import com.delfi.xmobile.lib.lecreusetbase.utils.IScreenEventSuccess; import com.delfi.xmobile.lib.xcore.common.SoundManager; /** * Created by USER on 05/14/2019. */ public class FullScreenDialog { private static final FullScreenDialog instance = new FullScreenDialog(); public static FullScreenDialog getInstance() { return instance; } private FullScreenDialog() { } public void showErrorRetry(Context context, String message, final IScreenEventRetry callback) { final Dialog dialog = new Dialog(context, android.R.style.Theme_Light_NoTitleBar_Fullscreen); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(View.inflate(context.getApplicationContext(), R.layout.fragment_screen_error_retry, null)); TextView editText = dialog.findViewById(R.id.message); editText.setText(message); Button btnRetry = dialog.findViewById(R.id.btnRetry); btnRetry.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (callback != null) callback.onRetry(); dialog.dismiss(); } }); dialog.setCancelable(false); dialog.setOnKeyListener(new DialogInterface.OnKeyListener() { @Override public boolean onKey(DialogInterface dialog1, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_UP && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK)) { if (callback != null) callback.onRetry(); dialog1.dismiss(); } return false; } }); try { dialog.getWindow().getAttributes().windowAnimations = R.style.Fullscreen_DialogTheme; } catch (Exception e) { //ignore } dialog.show(); SoundManager.getInstance().PlayError(context); } public void showError(Context context, String message, final IScreenEventError callback) { final Dialog dialog = new Dialog(context, android.R.style.Theme_Light_NoTitleBar_Fullscreen); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(View.inflate(context.getApplicationContext(), R.layout.fragment_screen_error, null)); TextView editText = dialog.findViewById(R.id.message); editText.setText(message); Button btnOK = dialog.findViewById(R.id.btnOK); btnOK.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (callback != null) callback.onOk(); dialog.dismiss(); } }); dialog.setCancelable(false); dialog.setOnKeyListener(new DialogInterface.OnKeyListener() { @Override public boolean onKey(DialogInterface dialog1, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_UP && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK)) { if (callback != null) callback.onOk(); dialog1.dismiss(); } return false; } }); try { dialog.getWindow().getAttributes().windowAnimations = R.style.Fullscreen_DialogTheme; } catch (Exception e) { //ignore } dialog.show(); SoundManager.getInstance().PlayError(context); } public void showSuccess(Context context, String message, final IScreenEventSuccess callback) { final Dialog dialog = new Dialog(context, R.style.Fullscreen_DialogTheme); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(View.inflate(context.getApplicationContext(), R.layout.fragment_screen_success, null)); TextView editText = dialog.findViewById(R.id.message); editText.setText(message); Button btnOK = dialog.findViewById(R.id.btnOK); btnOK.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (callback != null) callback.onOk(); dialog.dismiss(); } }); dialog.setCanceledOnTouchOutside(false); dialog.setCancelable(false); dialog.setOnKeyListener(new DialogInterface.OnKeyListener() { @Override public boolean onKey(DialogInterface dialog1, int keyCode, KeyEvent mEvent) { if (mEvent.getAction() == KeyEvent.ACTION_UP && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK)) { if (callback != null) callback.onOk(); dialog1.dismiss(); } return false; } }); try { dialog.getWindow().getAttributes().windowAnimations = R.style.Fullscreen_DialogTheme; } catch (Exception e) { //ignore } dialog.show(); SoundManager.getInstance().PlayOK(context.getApplicationContext()); } public void showNeedHelp(final Context context) { final Dialog dialog = new Dialog(context, R.style.Fullscreen_DialogTheme); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(View.inflate(context.getApplicationContext(), R.layout.activity_need_help, null)); final ViewGroup layoutSotiGuide = (ViewGroup) dialog.findViewById(R.id.layoutSotiGuide); final ImageView gifSotiGuide = (ImageView) dialog.findViewById(R.id.gifSotiGuide); final TextView tvSotiGuide = (TextView) dialog.findViewById(R.id.tvSotiGuide); final CountDownTimer myCount = new CountDownTimer(7000, 100) { @Override public void onTick(long millisUntilFinished) { if (millisUntilFinished >= 5000) { tvSotiGuide.setText(R.string.msg_soti_admin_access_guide_step_1); } else if (millisUntilFinished >= 2900) { tvSotiGuide.setText(R.string.msg_soti_admin_access_guide_step_2); } else if (millisUntilFinished >= 1100) { tvSotiGuide.setText(R.string.msg_soti_admin_access_guide_step_3); } else { tvSotiGuide.setText(R.string.msg_soti_admin_access_guide_step_4); } } @Override public void onFinish() { layoutSotiGuide.setVisibility(View.GONE); } }; Button btnBack = (Button) dialog.findViewById(R.id.btnBack); btnBack.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); View btnSkip = (View) dialog.findViewById(R.id.btnSkip); btnSkip.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { layoutSotiGuide.setVisibility(View.GONE); synchronized (myCount) { stopAnimationDrawable(); myCount.cancel(); } } }); Button btnOpenGuide = (Button) dialog.findViewById(R.id.btnOpenGuide); btnOpenGuide.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { layoutSotiGuide.setVisibility(View.VISIBLE); gifSotiGuide.setBackgroundResource(R.drawable.gif_access_admin_guide_layers_list); synchronized (myCount) { startAnimationDrawable(gifSotiGuide); myCount.start(); } } }); final ScrollView scrollView = (ScrollView) dialog.findViewById(R.id.scrollView); scrollView.post(new Runnable() { @Override public void run() { scrollView.fullScroll(ScrollView.FOCUS_DOWN); } }); dialog.setCancelable(false); dialog.setOnKeyListener(new DialogInterface.OnKeyListener() { @Override public boolean onKey(DialogInterface dialog1, int keyCode, KeyEvent mEvent) { if (mEvent.getAction() == KeyEvent.ACTION_UP && (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK)) { dialog1.dismiss(); } return false; } }); try { dialog.getWindow().getAttributes().windowAnimations = R.style.Fullscreen_DialogTheme; } catch (Exception e) { //ignore } dialog.show(); } private AnimationDrawable frameAnimation; private synchronized void startAnimationDrawable(ImageView imageView) { try { //stop current stopAnimationDrawable(); //start new anim frameAnimation = (AnimationDrawable) imageView.getBackground(); frameAnimation.setOneShot(true); frameAnimation.start(); } catch (Exception e) { /* ignore */} } private synchronized void stopAnimationDrawable() { try { if (frameAnimation != null && frameAnimation.isRunning()) { frameAnimation.stop(); frameAnimation = null; } } catch (Exception e) { /* ignore */} } }
2da63cb7a6bd8eb9bb72fc079f769b767f5eac60
97a5df136c5a01f2e298f23bef78ec316ed63002
/src/main/java/com/spring/spring/boot/demo/entity/User.java
6b4793a0619d800afbe56989d1d3787ed99c4801
[]
no_license
shivam87430/spring.boot.demo
4793090bfac866d3af1d376b150d1159d7c078c2
7f91c60684f1345066d7a8e8f4362e40b1ec6517
refs/heads/master
2020-04-29T18:07:38.420541
2019-03-19T11:00:31
2019-03-19T11:00:31
176,315,193
0
0
null
null
null
null
UTF-8
Java
false
false
638
java
package com.spring.spring.boot.demo.entity; import org.springframework.stereotype.Component; public class User { private String username; private String password; public User() { } public User(String username, String password) { this.username = username; this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } }
f4fe8f6c577a90745ccfac84eb25b4de531648a9
91a30ab6ac04d71172f7bcc6097f84931d4a107b
/src/main/java/com/gwtmaterial/test/client/resources/AppResources.java
3db62e52d05fb85d659dff2d90491f37d06b652f
[]
no_license
kevzlou7979/gwt-material-pwa
b905e095b64e24d0b46c54a649305c9033bf3bf0
57e0d896c9efb5dfdd928ef493b7900fdff5cbf6
refs/heads/master
2020-05-18T14:36:30.579749
2017-03-07T22:17:10
2017-03-07T22:17:10
84,251,270
0
0
null
null
null
null
UTF-8
Java
false
false
1,073
java
/* * #%L * GwtMaterial * %% * Copyright (C) 2015 - 2017 GwtMaterialDesign * %% * 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. * #L% */ package com.gwtmaterial.test.client.resources; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.CssResource; public interface AppResources extends ClientBundle { interface Normalize extends CssResource { } interface Style extends CssResource { } @Source("css/normalize.gss") Normalize normalize(); @Source("css/style.gss") Style style(); }
348f5d63ee3681c583a9e4032f3001330d891621
aa8cb4c89ed22cc831c78795275a42aeec010f5e
/src/main/java/com/flight/flightapp/ticket/TicketRepository.java
0196a3b076ca9cb169301ae5031d3ae303122228
[]
no_license
shakhal/flightapp
ca4445c17ed43ddbc8a65ea068304319618b66df
348cc728c0506581ebe3c919cbab074af15a84c6
refs/heads/master
2020-06-15T07:14:53.130032
2019-07-04T12:29:49
2019-07-04T12:29:49
195,235,003
0
0
null
null
null
null
UTF-8
Java
false
false
149
java
package com.flight.flightapp.ticket; import java.util.Optional; public interface TicketRepository { Optional<Ticket> find(String ticketId); }
83349f9d188c5192a6517e2e92818bdd80dcdccf
7d409030f623d827b59f33be4164ce863814997b
/taotao-content/taotao-content-service/src/main/java/com/taotao/jedis/JedisClientPool.java
f7583ed336b4915004062d20fe9185d15c89b249
[]
no_license
zhouxinghang/taotao
8a9ffe7a5c0dfb23914f9c01a9819e5a2ad82705
b0a1c07373104ce97c746e2a3107ad808760831c
refs/heads/master
2021-09-02T13:53:48.409664
2018-01-03T01:46:51
2018-01-03T01:46:51
115,782,215
0
0
null
null
null
null
UTF-8
Java
false
false
2,152
java
package com.taotao.jedis; import org.springframework.beans.factory.annotation.Autowired; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; /** * Created by admin on 2017/12/24. */ public class JedisClientPool implements JedisClient { @Autowired private JedisPool jedisPool; @Override public String set(String key, String value) { Jedis jedis = jedisPool.getResource(); String result = jedis.set(key, value); jedis.close(); return result; } @Override public String get(String key) { Jedis jedis = jedisPool.getResource(); String result = jedis.get(key); jedis.close(); return result; } @Override public Boolean exists(String key) { Jedis jedis = jedisPool.getResource(); Boolean result = jedis.exists(key); jedis.close(); return result; } @Override public Long expire(String key, int seconds) { Jedis jedis = jedisPool.getResource(); Long result = jedis.expire(key, seconds); jedis.close(); return result; } @Override public Long ttl(String key) { Jedis jedis = jedisPool.getResource(); Long result = jedis.ttl(key); jedis.close(); return result; } @Override public Long incr(String key) { Jedis jedis = jedisPool.getResource(); Long result = jedis.incr(key); jedis.close(); return result; } @Override public Long hset(String key, String field, String value) { Jedis jedis = jedisPool.getResource(); Long result = jedis.hset(key, field, value); jedis.close(); return result; } @Override public String hget(String key, String field) { Jedis jedis = jedisPool.getResource(); String result = jedis.hget(key, field); jedis.close(); return result; } @Override public Long hdel(String key, String... field) { Jedis jedis = jedisPool.getResource(); Long result = jedis.hdel(key, field); jedis.close(); return result; } }
aa0368d143c652e7830e8bda215a5d6409183078
b3f8d650c830bd492f8bfee0e74928070ae898af
/src/main/java/com/natymorgs/Curso/config/testConfig.java
cd3a3fe0b0482289d5d74c53f7cfcbd21fd3d915
[]
no_license
WesleyPenachia/Course_SpringBoot
7ef5022d9655f4b7b1bd597be7affaba19e67cc3
4466b3b828b021670fab565869360607c03e3980
refs/heads/main
2023-08-17T01:34:27.245912
2021-09-19T04:12:58
2021-09-19T04:12:58
407,935,874
0
0
null
null
null
null
UTF-8
Java
false
false
3,467
java
package com.natymorgs.Curso.config; import java.time.Instant; import java.util.Arrays; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import com.natymorgs.Curso.Entities.Category; import com.natymorgs.Curso.Entities.Order; import com.natymorgs.Curso.Entities.OrderItem; import com.natymorgs.Curso.Entities.Payment; import com.natymorgs.Curso.Entities.Product; import com.natymorgs.Curso.Entities.User; import com.natymorgs.Curso.Entities.enums.OrderStatus; import com.natymorgs.Curso.repositories.CategoryRepository; import com.natymorgs.Curso.repositories.OrderItemRepository; import com.natymorgs.Curso.repositories.OrderRepository; import com.natymorgs.Curso.repositories.ProductRepository; import com.natymorgs.Curso.repositories.UserRepository; @Configuration @Profile("test") public class testConfig implements CommandLineRunner { @Autowired private UserRepository userRepository; @Autowired private OrderRepository orderRepository; @Autowired private CategoryRepository categoryRepository; @Autowired private ProductRepository productRepository; @Autowired private OrderItemRepository orderItemRepository; @Override public void run(String... args) throws Exception { Category cat1 = new Category(null, "Electronics"); Category cat2 = new Category(null, "Books"); Category cat3 = new Category(null, "Computers"); Product p1 = new Product(null, "The Lord of the Rings", "Lorem ipsum dolor sit amet, consectetur.", 90.5, ""); Product p2 = new Product(null, "Smart TV", "Nulla eu imperdiet purus. Maecenas ante.", 2190.0, ""); Product p3 = new Product(null, "Macbook Pro", "Nam eleifend maximus tortor, at mollis.", 1250.0, ""); Product p4 = new Product(null, "PC Gamer", "Donec aliquet odio ac rhoncus cursus.", 1200.0, ""); Product p5 = new Product(null, "Rails for Dummies", "Cras fringilla convallis sem vel faucibus.", 100.99, ""); categoryRepository.saveAll(Arrays.asList(cat1, cat2, cat3)); productRepository.saveAll(Arrays.asList(p1, p2, p3, p4, p5)); p1.getCategories().add(cat2); p2.getCategories().add(cat3); p2.getCategories().add(cat1); p3.getCategories().add(cat3); p4.getCategories().add(cat3); p5.getCategories().add(cat2); productRepository.saveAll(Arrays.asList(p1, p2, p3, p4, p5)); User u1 = new User(null, "Maria Brown", "[email protected]", "988888888", "123456"); User u2 = new User(null, "Alex Green", "[email protected]", "977777777", "123456"); Order o1 = new Order(null, Instant.parse("2019-06-20T19:53:07Z"), OrderStatus.CANCELED, u1); Order o2 = new Order(null, Instant.parse("2019-07-21T03:42:10Z"),OrderStatus.PAID, u2); Order o3 = new Order(null, Instant.parse("2019-07-22T15:21:22Z"),OrderStatus.PAID, u1); userRepository.saveAll(Arrays.asList(u1, u2)); orderRepository.saveAll(Arrays.asList(o1, o2, o3)); OrderItem oi1 = new OrderItem(o1, p1, 2, p1.getPrice()); OrderItem oi2 = new OrderItem(o1, p3, 1, p3.getPrice()); OrderItem oi3 = new OrderItem(o2, p3, 2, p3.getPrice()); OrderItem oi4 = new OrderItem(o3, p5, 2, p5.getPrice()); orderItemRepository.saveAll(Arrays.asList(oi1, oi2, oi3, oi4)); Payment pay1 = new Payment(null, Instant.parse("2019-06-20T21:53:07Z"), o1); o1.setPayment(pay1); orderRepository.save(o1); } }
9e497ca8e3f3a6ad6bf95de23cea132027828f76
ab7b6279b90982b49c02e4b2e21ccc511b76b2a1
/app/src/main/java/com/appincubator/digitaldarji/Adapter/CartAdapter.java
1fd594737a6288c923441ef05a592677d3e79e00
[]
no_license
jubayertalha/Digital-Darji
0bdee54245fb3a270067ba875a2f8b25353bb4d4
a0f69f215b806cc56fc99702dd620aefd0fa84f3
refs/heads/master
2023-02-20T21:37:35.575474
2019-05-25T17:19:22
2019-05-25T17:19:22
332,824,631
2
0
null
null
null
null
UTF-8
Java
false
false
2,545
java
package com.appincubator.digitaldarji.Adapter; import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.request.RequestOptions; import java.util.ArrayList; import com.appincubator.digitaldarji.Interface.Api; import com.appincubator.digitaldarji.Model.Carts; import com.appincubator.digitaldarji.R; public class CartAdapter extends ArrayAdapter<Carts> { Activity context; ArrayList<Carts> carts; public CartAdapter(Activity context, ArrayList<Carts> objects) { super(context, R.layout.item_cart, objects); this.context = context; this.carts = objects; } @Override public View getView(int position, View convertView, ViewGroup parent) { View view = context.getLayoutInflater().inflate(R.layout.item_cart,null,true); ImageView iv_cart = view.findViewById(R.id.iv_cart); TextView tv_cart_name = view.findViewById(R.id.tv_cart_name); TextView tv_cart_status = view.findViewById(R.id.tv_cart_status); TextView tv_cart_price = view.findViewById(R.id.tv_cart_price); TextView tv_cart_count = view.findViewById(R.id.tv_cart_count); Carts cart = carts.get(position); String img = ""+Api.BASE_URL+cart.getImg(); Glide.with(context) .load(img) .apply(RequestOptions.skipMemoryCacheOf(true)) .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.NONE)) .into(iv_cart); tv_cart_name.setText(cart.getName()); if (cart.getType().equals("PORTFOLIO")){ tv_cart_status.setText(" "); tv_cart_price.setText(" "); tv_cart_count.setText(" "); }else { tv_cart_status.setText(""+cart.getSize()+" . "+cart.getColor()); tv_cart_price.setText("TK "+cart.getPrice()*cart.getCount()); tv_cart_count.setText(""+cart.getCount()+" Units"); } return view; } public Carts remove(int position){ Carts cart = carts.get(position); carts.remove(position); notifyDataSetChanged(); return cart; } public Carts getCart(int position){ Carts cart = carts.get(position); return cart; } public ArrayList<Carts> getCarts(){ return carts; } }
ae770466b2e24d3814363c132bbdc3977e8238ae
c7689fd0263e7f8b23f7429cf447e454d8becdab
/src/main/java/com/demoproject/user/UserDAO.java
45cc8e7c09a3de017aa33a781223de05a2d99bca
[]
no_license
KarthikRave/DemoProject
41493f0956e21e30df9760cb54c164e6e722daf9
258a5110d5826bc20041de012525494316f76df4
refs/heads/master
2021-01-13T09:16:12.933426
2016-09-25T15:41:18
2016-09-25T15:41:18
69,020,671
0
0
null
null
null
null
UTF-8
Java
false
false
385
java
package com.demoproject.user; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; @Repository public interface UserDAO { @Autowired public void insert(User u); public void update(User u); public void delete(int uid); public User getUser(int uid); public List<User> ListUser(); }
0a897cc8292510594cc260ca345837747dbc2c73
98e07a36236bfcd39628324df465d12526673fb1
/src/com/geeksforgeeks/array/MergeSort.java
add42c72c55202bf2d61a4c51538a7b263dd974e
[]
no_license
aayush03/data-structures
aa8e21e134c0e9cd6859bd5d1d78704cec8a850c
8ab95651d85a75f5ee86a8671590ffde2e1da1b8
refs/heads/master
2022-10-24T02:54:39.577115
2020-06-21T10:41:01
2020-06-21T10:41:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,739
java
package com.geeksforgeeks.array; import com.competitive.coding.spoj.InversionCount; public class MergeSort { public static void main( String[] args ) { int[] sample = {-12, 11, -13, -5, 6, -7, 5, -3, -6}; // int[] sample = {2, 4, 1, 3, 5}; // int[] sample = {1, 20, 6, 4, 5}; System.out.println( "Inversion Count is " + mergeSort( sample, 0, 4 ) ); System.out.println( "After sorting is " ); ArrayRotation.printArray( sample ); } public static int mergeSort( int[] arr, int low, int high ) { int inversionCount = 0; if( low < high ) { int mid = low + (high - low) / 2; inversionCount = mergeSort( arr, low, mid ); inversionCount += mergeSort( arr, mid + 1, high ); inversionCount += merge1( arr, low, mid, high ); } return inversionCount; } // My Own Implementation + to handle Inversion Count as well private static int merge1( int[] arr, int low, int mid, int high ) { int inversionCount = 0; int t1 = low; int t2 = mid + 1; int N1 = mid; int N2 = high; int[] sortedArr = new int[(high - low) + 1]; int sortedCounter = 0; while( t1 <= N1 && t2 <= N2 ) { if( arr[t1] <= arr[t2] ) { sortedArr[sortedCounter++] = arr[t1++]; } else { sortedArr[sortedCounter++] = arr[t2++]; // if arr[t1] > arr[t2] then there at total of Middle - t1 inversions. // as till t1 to middle is already sorted, So if arr[t1] > arr[t2] i.e. arr[t+1.....mid] > arr[t2] // So those many inversions inversionCount += mid + 1 - t1; } } // Let's check whether either of t1 and t2 is still left while( t1 <= N1 ) { sortedArr[sortedCounter++] = arr[t1++]; } while( t2 <= N2 ) { sortedArr[sortedCounter++] = arr[t2++]; } // Let's replace sortedArray values into original array for( int i = 0; i < sortedArr.length; i++ ) { arr[low++] = sortedArr[i]; } return inversionCount; } private static void merge( int[] arr, int low, int mid, int high ) { int t1 = low; int t2 = mid + 1; int[] sortedArray = new int[arr.length]; int counter = 0; while( t1 <= mid && t2 <= high ) { if( arr[t1] < arr[t2] ) { sortedArray[counter++] = arr[t1]; t1++; } else if( arr[t2] < arr[t1] ) { sortedArray[counter++] = arr[t2]; t2++; } } while( t1 <= mid ) { sortedArray[counter++] = arr[t1++]; } while( t2 <= high ) { sortedArray[counter++] = arr[t2++]; } counter = 0; for( int i = low; i <= high; i++ ) { arr[i] = sortedArray[counter++]; } } }
88d80614bca5f011e71616f311c90ce5aeceea01
320ee41570749ad98f41f78713fa9d1b1447b5b7
/otto_pinsec/src/main/java/com/otto/hund/pinsec/view/PinInputActivity.java
a7a91680bdb551922bfe6a74074b9674f508f3bc
[]
no_license
xubile662/otto_ppob_core
789c8a265c8f896ec617a1ea2f0f6ea214ca4d45
f63dbff7521915d7dc33dc06696e24268479bd18
refs/heads/master
2020-04-16T22:50:48.869542
2019-02-20T10:57:17
2019-02-20T10:57:17
165,986,615
0
0
null
null
null
null
UTF-8
Java
false
false
9,482
java
package com.otto.hund.pinsec.view; import android.os.Handler; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.otto.hund.pinsec.presenter.PinInputStandardPresenter; import app.beelabs.com.codebase.base.BaseActivity; import app.beelabs.com.codebase.component.ProgressDialogComponent; import glenn.base.viewmodule.dialog.ErrorDialog; public class PinInputActivity extends BaseActivity implements PinInputViewInterface { final String TAG = getClass().getSimpleName(); View backBtn, layout_retcontainer; TextView tv_text, tv_retries; ImageView dot1, dot2, dot3, dot4, dot5, dot6; View k1, k2, k3, k4, k5, k6, k7, k8, k9, k0, kb, kx; private PinInputStandardPresenter presenter; private Handler handler; private PinInputDialogInterface listener; public PinInputActivity() { LayoutInflater.from(this).inflate(com.otto.hund.R.layout.view_pinpad, null); initComponent(); initContent(); } public void setListener(PinInputDialogInterface listener) { this.listener = listener; } public void initComponent() { tv_text = findViewById(com.otto.hund.R.id.tv_jenk); dot1 = findViewById(com.otto.hund.R.id.pin1); dot2 = findViewById(com.otto.hund.R.id.pin2); dot3 = findViewById(com.otto.hund.R.id.pin3); dot4 = findViewById(com.otto.hund.R.id.pin4); dot5 = findViewById(com.otto.hund.R.id.pin5); dot6 = findViewById(com.otto.hund.R.id.pin6); k1 = findViewById(com.otto.hund.R.id.l_1); k2 = findViewById(com.otto.hund.R.id.l_2); k3 = findViewById(com.otto.hund.R.id.l_3); k4 = findViewById(com.otto.hund.R.id.l_4); k5 = findViewById(com.otto.hund.R.id.l_5); k6 = findViewById(com.otto.hund.R.id.l_6); k7 = findViewById(com.otto.hund.R.id.l_7); k8 = findViewById(com.otto.hund.R.id.l_8); k9 = findViewById(com.otto.hund.R.id.l_9); k0 = findViewById(com.otto.hund.R.id.l_0); kb = findViewById(com.otto.hund.R.id.l_b); kx = findViewById(com.otto.hund.R.id.l_x); backBtn = findViewById(com.otto.hund.R.id.layout_back); tv_retries = findViewById(com.otto.hund.R.id.tv_pinchance); layout_retcontainer = findViewById(com.otto.hund.R.id.layout_pinchance); // presenter = new PinInputStandardPresenter(this, null, this, ""); } public void initContent() { View.OnClickListener listener = new View.OnClickListener() { @Override public void onClick(View v) { int i = v.getId(); if (i == com.otto.hund.R.id.l_1) presenter.addPinString(1 + ""); else if (i == com.otto.hund.R.id.l_2) presenter.addPinString(2 + ""); else if (i == com.otto.hund.R.id.l_3) presenter.addPinString(3 + ""); else if (i == com.otto.hund.R.id.l_4) presenter.addPinString(4 + ""); else if (i == com.otto.hund.R.id.l_5) presenter.addPinString(5 + ""); else if (i == com.otto.hund.R.id.l_6) presenter.addPinString(6 + ""); else if (i == com.otto.hund.R.id.l_7) presenter.addPinString(7 + ""); else if (i == com.otto.hund.R.id.l_8) presenter.addPinString(8 + ""); else if (i == com.otto.hund.R.id.l_9) presenter.addPinString(9 + ""); else if (i == com.otto.hund.R.id.l_0) presenter.addPinString(0 + ""); else if (i == com.otto.hund.R.id.l_b) presenter.delPinString(); else if (i == com.otto.hund.R.id.l_x) presenter.delAllPinString(); } }; k1.setOnClickListener(listener); k2.setOnClickListener(listener); k3.setOnClickListener(listener); k4.setOnClickListener(listener); k5.setOnClickListener(listener); k6.setOnClickListener(listener); k7.setOnClickListener(listener); k8.setOnClickListener(listener); k9.setOnClickListener(listener); k0.setOnClickListener(listener); kb.setOnClickListener(listener); kx.setOnClickListener(listener); } @Override public void doInputDoneState(String value) { handler.postDelayed(new Runnable() { @Override public void run() { } }, 1000); } @Override public void doSuccessState(String returnValue) { //todo successstate if (listener != null) listener.onSuccess(returnValue); } @Override public void doFailState() { //todo failstate if (listener != null) listener.onFail(); } @Override public void doNoConnectionState() { ErrorDialog dialog = new ErrorDialog(this, this, false, false, "error", "Tidak ada Koneksi ke server"); dialog.show(); } @Override public void showLoading() { ProgressDialogComponent.showProgressDialog(this, "mohon menunggu", false).show(); } @Override public void hideLoading() { } @Override public void setPinstate(int state) { switch (state) { case 0: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 1: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 2: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 3: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 4: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_border); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 5: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_border); break; case 6: dot1.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot2.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot3.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot4.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot5.setImageResource(com.otto.hund.R.drawable.circle_white_solid); dot6.setImageResource(com.otto.hund.R.drawable.circle_white_solid); break; default: break; } } public interface PinInputDialogInterface { void onSuccess(String returnValue); void onFail(); } }
b27f6ed076230542a663405d502d5c85911075f7
0c59def408d2b1afee575b96b7bf63b6d8cce4c3
/methanol/src/test/java/com/github/mizosoft/methanol/ProgressTrackerClientTest.java
1e4892d096eb7c66b5b187684be936492ff54001
[ "MIT" ]
permissive
raupachz/methanol
8cb99401536cf53c9b5a0dffc140238a501a5260
23a95f660adffef51e7616385ecd94eb8c4fd6ba
refs/heads/master
2023-08-15T05:43:44.035817
2021-05-31T17:50:18
2021-05-31T17:50:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,598
java
/* * Copyright (c) 2021 Moataz Abdelnasser * * 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.github.mizosoft.methanol; import static com.github.mizosoft.methanol.MutableRequest.GET; import static java.nio.charset.StandardCharsets.UTF_8; import static java.util.function.Predicate.isEqual; import static org.assertj.core.api.Assertions.assertThat; import com.github.mizosoft.methanol.ProgressTracker.Progress; import com.github.mizosoft.methanol.testing.MockWebServerExtension; import com.github.mizosoft.methanol.testutils.BodyCollector; import com.github.mizosoft.methanol.testutils.TestSubscriber; import java.net.URI; import java.net.http.HttpResponse.BodyHandlers; import java.nio.ByteBuffer; import java.util.Collection; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import java.util.stream.Collectors; import mockwebserver3.MockResponse; import mockwebserver3.MockWebServer; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(MockWebServerExtension.class) class ProgressTrackerClientTest { private MockWebServer server; private URI serverUri; private Methanol client; private ProgressTracker tracker; @BeforeEach void setUp(MockWebServer server) { this.server = server; serverUri = server.url("/").uri(); client = Methanol.create(); tracker = ProgressTracker.create(); } @Test void trackSmallDownload() throws Exception { server.enqueue(new MockResponse().setBody("Pikachu")); var subscriber = new TestSubscriber<List<ByteBuffer>>(); var progressEvents = new CopyOnWriteArrayList<Progress>(); client.send( GET(serverUri), tracker.tracking(BodyHandlers.fromSubscriber(subscriber), progressEvents::add)); assertThat(progressEvents).isNotEmpty(); var body = BodyCollector.collect( subscriber.items.stream() .flatMap(Collection::stream) .collect(Collectors.toUnmodifiableList())); assertThat(UTF_8.decode(body).toString()).isEqualTo("Pikachu"); assertThat("Pikachu".length()) .isEqualTo(progressEvents.stream().mapToLong(Progress::bytesTransferred).sum()); var lastProgress = progressEvents.get(progressEvents.size() - 1); assertThat(lastProgress.done()).isTrue(); assertThat("Pikachu".length()).isEqualTo(lastProgress.totalBytesTransferred()); assertThat(progressEvents) .map(Progress::contentLength) .allMatch(isEqual((long) "Pikachu".length())); } }
2267e7a8b99e8b7427c3b8d69315cc75f7e093ab
78b686982ac89df889901538dcdc72d0c5437813
/src/main/java/br/com/eduardo/clientes/model/entity/Cliente.java
9345c306a34cc71342e5435b601fc7079ce94276
[]
no_license
eduardotsilva/clientes-api
758c09c028aa290df256639fdaf5a39d4e89c6c9
6b0093aa145bf8f0fe99f970551bd28635bdf7c3
refs/heads/main
2023-08-28T03:38:11.713915
2021-10-06T18:44:09
2021-10-06T18:44:09
367,745,659
1
0
null
null
null
null
UTF-8
Java
false
false
1,004
java
package br.com.eduardo.clientes.model.entity; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.*; import org.hibernate.validator.constraints.br.CPF; import javax.persistence.*; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import java.time.LocalDate; @Entity @Data @AllArgsConstructor @NoArgsConstructor @Builder public class Cliente { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @Column(nullable = false, length = 150) @NotEmpty(message = "{campo.nome.obrigatorio}") private String nome; @Column(nullable = false, length = 11) @NotNull(message = "{campo.cpf.obrigatorio}") @CPF(message = "{campo.cpf.invalido}") private String cpf; @Column(name = "data_cadastro", updatable = false) @JsonFormat(pattern = "dd/MM/yyyy") private LocalDate dataCadastro; @PrePersist public void prePersist() { setDataCadastro(LocalDate.now()); } }
ce81d80f8587d42e7b4d8572dff56ae7fad555e3
4e310f8edea013741ba0c6abaed8caa7fd3a7edf
/src/test/java/com/cargoseller/tests/pageobjects/MyProfile.java
75b62432957c23740a30593d34fb575798d3ca10
[]
no_license
sgeorgiev87/CargoSellerTests
24769f4f51a7eb5f934f658c800bcee64fef4757
5e616e90e83f8fe85e7897399fb23e86bb95c873
refs/heads/master
2021-01-22T16:00:25.806534
2017-11-30T10:35:52
2017-11-30T10:35:52
96,325,204
0
0
null
2017-07-05T14:18:34
2017-07-05T13:57:58
Gherkin
UTF-8
Java
false
false
542
java
package com.cargoseller.tests.pageobjects; import org.junit.Assert; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.openqa.selenium.NoAlertPresentException; import com.cargoseller.tests.browser.Browser; import com.cargoseller.tests.tools.*; public class MyProfile { public MyProfile() throws Exception { if (!isAt().equals("profile | CargoSeller")) { throw new Exception("Not on the MyProfile page"); } } private String isAt() { return Browser.instance.getTitle(); } }
9d50152b8aaddc36893969ddd6cd8969d7520bb9
61f3ca673a94c7de237a0fc2367502b69f040f1b
/apputils/src/main/java/com/allen/apputils/TouchEventUtil.java
b205f88ddbfdb1695a1e79c42a0c2d67bbcdd72a
[ "Apache-2.0" ]
permissive
spuermax/SuperUtils
8b15ccdeec53aa1ad629321c41927e5f90cb7edd
116424e2e4bdcf71c7451861e21f82feef22f3ee
refs/heads/master
2020-04-09T22:48:02.958157
2017-11-03T02:15:47
2017-11-03T02:15:47
160,639,134
1
0
null
2018-12-06T07:52:54
2018-12-06T07:52:54
null
UTF-8
Java
false
false
1,426
java
/* * Copyright 2017 [AllenCoder] * * 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.allen.apputils; import android.view.MotionEvent; public class TouchEventUtil { public static String getTouchAction(int actionId) { String actionName = "Unknow:id=" + actionId; switch (actionId) { case MotionEvent.ACTION_DOWN: actionName = "ACTION_DOWN"; break; case MotionEvent.ACTION_MOVE: actionName = "ACTION_MOVE"; break; case MotionEvent.ACTION_UP: actionName = "ACTION_UP"; break; case MotionEvent.ACTION_CANCEL: actionName = "ACTION_CANCEL"; break; case MotionEvent.ACTION_OUTSIDE: actionName = "ACTION_OUTSIDE"; break; } return actionName; } }
83aaf9537efd0a870dcc8dd07535cb4ae2421457
071481b6996d0ae5ae393ea7193c0865b4321726
/jsf_demo/src/main/java/com/nick/mbean/UserBean.java
d7c06f3369b7338e0e594cb3fd5658d5f97c96fc
[ "Apache-2.0" ]
permissive
synico/jsf_hub
572ba22ab63f3fc7faa837109401208441c4ef38
a6b09524398645278860de42ac20e8e973fcbbf1
refs/heads/master
2020-03-19T21:32:52.848995
2018-11-16T09:42:01
2018-11-16T09:42:01
136,942,331
0
0
null
null
null
null
UTF-8
Java
false
false
2,253
java
package com.nick.mbean; import java.util.Date; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.ValidatorException; @ManagedBean(name="userBean") @SessionScoped public class UserBean { private String firstName; private String lastName; private String sex; private Date dob; private String email; private String serviceLevel = "medium"; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getServiceLevel() { return serviceLevel; } public void setServiceLevel(String serviceLevel) { this.serviceLevel = serviceLevel; } public void validateEmail(FacesContext context, UIComponent toValidate, Object value) { String emailAddr = (String)value; if(emailAddr.indexOf("@") < 0) { FacesMessage message = new FacesMessage("Invalid email address"); throw new ValidatorException(message); } } public String addConfirmedUser() { boolean added = true; FacesMessage doneMessage = null; String outcome = null; if(added) { doneMessage = new FacesMessage("Successfully added new user"); outcome = "done"; } else { doneMessage = new FacesMessage("Failed to add new user"); outcome = "register"; } FacesContext.getCurrentInstance().addMessage(null, doneMessage); return outcome; } }
061ffaa27fd610e333282130a8a2787213bfb120
7451e7538a13ca9b48df7ccfacfae73e14b8057b
/OnQAndroid/OnQAndroid/obj/Debug/android/src/md51bb072e7791e14d9f8299f0dc14fbaad/LoginSignup.java
d641943d05c4c3535934d59f7f5c79529e87a5d6
[]
no_license
dscarr94/Loup
270a84c1778269cd82c4650505b991d0acc31d57
ecbaef9367fa8087c7aa964364a9c535b2c4c5b0
refs/heads/master
2021-01-19T09:12:54.264987
2017-06-02T09:45:37
2017-06-02T09:45:37
87,738,776
1
0
null
null
null
null
UTF-8
Java
false
false
1,170
java
package md51bb072e7791e14d9f8299f0dc14fbaad; public class LoginSignup extends android.app.Activity implements mono.android.IGCUserPeer { /** @hide */ public static final String __md_methods; static { __md_methods = "n_onCreate:(Landroid/os/Bundle;)V:GetOnCreate_Landroid_os_Bundle_Handler\n" + ""; mono.android.Runtime.register ("OnQAndroid.LoginSignup, OnQAndroid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", LoginSignup.class, __md_methods); } public LoginSignup () throws java.lang.Throwable { super (); if (getClass () == LoginSignup.class) mono.android.TypeManager.Activate ("OnQAndroid.LoginSignup, OnQAndroid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "", this, new java.lang.Object[] { }); } public void onCreate (android.os.Bundle p0) { n_onCreate (p0); } private native void n_onCreate (android.os.Bundle p0); private java.util.ArrayList refList; public void monodroidAddReference (java.lang.Object obj) { if (refList == null) refList = new java.util.ArrayList (); refList.add (obj); } public void monodroidClearReferences () { if (refList != null) refList.clear (); } }
[ "Josh@VAIO" ]
Josh@VAIO
7f9bd1d5bd9d93c27973d506668e544f6f38b8c3
b0af082aeb2fbc4ae048c6d2e5aae8839d1ee472
/chap10/src/sec06/BalanceInsufficientException.java
27bbca51c570cdb856a42a5545efe6c0bdab0f5d
[]
no_license
CheolHo-0428/ThisIsJava
9d7b877681c3d98390c1176d39e5cfc98f67b014
3e23d1b971945cef597b8586740b3cbc250babc3
refs/heads/main
2023-04-12T21:13:00.741772
2021-05-07T09:10:36
2021-05-07T09:10:36
361,653,949
0
0
null
null
null
null
UTF-8
Java
false
false
199
java
package sec06; public class BalanceInsufficientException extends Exception { public BalanceInsufficientException() {} public BalanceInsufficientException(String message) { super(message); } }
9726b168a74c20e046cf84ac92c603c8f50957c2
fa7edd7ae4d406728a4905793b31a6417c68c59f
/src/main/java/com/serveplus/web/request/customer/UserServiceRequest.java
d1a889c710798bcfc32b165f601d6a615f55d5bf
[]
no_license
philipgp/ServePlus
b7b9d2afc487b2fd239647052209be097fcb8d6e
889111b5e5d50412aa2a2c27e11580e4d6a705dd
refs/heads/master
2021-01-12T00:57:40.322536
2017-02-14T11:37:28
2017-02-14T11:37:28
78,323,040
0
0
null
null
null
null
UTF-8
Java
false
false
115
java
package com.serveplus.web.request.customer; public class UserServiceRequest extends CustomerBaseRequest{ }
2d8fb2a373d0485300a9a45b80bdc39b94017e52
a99568ce689009ae91d9ca97d4420a804278e8b2
/app/src/main/java/com/example/jiawei/imoocsdk/utils/Utils.java
6ee38bf4fe1b08984e86ee9549482b96fd708d25
[]
no_license
andjiawei/imoocsdk
dc46027d1ed5a2b3a170427d00800efefebb95aa
ddfed78845dfdfebc4ad75232407dcf3af5618a3
refs/heads/master
2021-06-13T18:00:30.165457
2017-03-28T16:18:48
2017-03-28T16:18:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,171
java
package com.example.jiawei.imoocsdk.utils; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.net.Uri; import android.util.Log; import android.view.View; import android.view.inputmethod.InputMethodManager; import com.example.jiawei.imoocsdk.module.recommand.RecommandModel; import java.util.ArrayList; import java.util.List; /** * @author: vision * @function: * @date: 16/8/16 */ public class Utils { public static Bitmap createQRCode(int width, int height, String source) { /*try { if (TextUtils.isEmpty(source)) { return null; } Hashtable<EncodeHintType, String> hints = new Hashtable<>(); hints.put(EncodeHintType.CHARACTER_SET, "utf-8"); BitMatrix bitMatrix = new QRCodeWriter().encode(source, BarcodeFormat.QR_CODE, width, height, hints); int[] pixels = new int[width * height]; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { if (bitMatrix.get(x, y)) { pixels[y * width + x] = 0xff000000; } else { pixels[y * width + x] = 0xffffffff; } } } // sheng chen de er wei ma Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); bitmap.setPixels(pixels, 0, width, 0, 0, width, height); return bitmap; } catch (WriterException e) { e.printStackTrace(); }*/ return null; } public static int getVersionCode(Context context) { int versionCode = 1; try { PackageManager pm = context.getPackageManager(); PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0); versionCode = pi.versionCode; } catch (Exception e) { e.printStackTrace(); } return versionCode; } public static String getVersionName(Context context) { String versionName = "1.0.0"; try { PackageManager pm = context.getPackageManager(); PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0); versionName = pi.versionName; } catch (Exception e) { e.printStackTrace(); } return versionName; } public static Uri createQQUrl(String qq) { String result = "mqqwpa://im/chat?chat_type=wpa&uin=".concat(qq); return Uri.parse(result); } //为ViewPager结构化数据 public static ArrayList<RecommandModel.DataBean.ListBean> handleData(RecommandModel.DataBean.ListBean value) { ArrayList<RecommandModel.DataBean.ListBean> values = new ArrayList<>(); String[] titles = value.getTitle().split("@"); String[] infos = value.getInfo().split("@"); String[] prices = value.getPrice().split("@"); String[] texts = value.getText().split("@"); List<String> urls = value.getUrl(); int start = 0; for (int i = 0; i < titles.length; i++) { RecommandModel.DataBean.ListBean tempValue = new RecommandModel.DataBean.ListBean(); tempValue.setTitle(titles[i]); tempValue.setInfo(infos[i]); tempValue.setPrice(prices[i]); tempValue.setText(texts[i]); tempValue.setUrl(extractData(urls, start, 3)); start += 3; values.add(tempValue); } return values; } private static ArrayList<String> extractData(List<String> source, int start, int interval) { ArrayList<String> tempUrls = new ArrayList<>(); for (int i = start; i < start + interval; i++) { tempUrls.add(source.get(i)); } return tempUrls; } /** * 显示系统软件盘 * 传入的View必须是EditText及其子类才可以强制显示出 */ public static void showSoftInputMethod(Context context, View v) { /* 隐藏软键盘 */ InputMethodManager inputMethodManager = (InputMethodManager) context .getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.showSoftInput(v, InputMethodManager.SHOW_FORCED); } public static void hideSoftInputMethod(Context context, View v) { /* 隐藏软键盘 */ InputMethodManager inputMethodManager = (InputMethodManager) context .getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(v.getWindowToken(), 0); } public static void hasError() { String error = "error"; Log.e("Utils", error); } public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (dpValue * scale); } public static int px2dip(Context context, float pxValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (pxValue / scale); } }
b87fccc8230abd86ff0afc556882c52b8691d4b2
0b3df85513b67dc42db505a82222a319cca19490
/app/src/main/java/com/example/tp2p2/Main2Activity.java
c9f3d652b3fc61c12e71e06512b6d5b4305b62ed
[]
no_license
IbtihelDhaoui/TP2_p2
8dc2834640ce0861ed23e7cc42adff56767627ea
f2c27f6d68b19e52eee15bee7f8c893d79717d72
refs/heads/master
2020-09-16T16:11:37.429984
2019-11-24T23:25:05
2019-11-24T23:25:05
223,825,228
0
0
null
null
null
null
UTF-8
Java
false
false
603
java
package com.example.tp2p2; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class Main2Activity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); TextView textView = findViewById(R.id.ct); textView.setText(message); } }
d30abbe7494544fd47e85fd8101daac2ffe820f0
58c652f8e9bdef944e741f498b7cc264928cea1d
/DEF_Jenkins_Automation/src/main/java/com/altimetrik/def/service/DefFactoryBean.java
f7accacaf19c325f41c1cced5abdbde71df5ffd9
[]
no_license
Yukeshraja/DEF
98834b14282295899c17fa9c6adae4b5f43087ba
4be19ffb52dd76513f2271a870e5d10af6877549
refs/heads/master
2020-03-18T11:49:17.899337
2018-05-24T09:39:01
2018-05-24T09:39:14
134,693,013
0
0
null
null
null
null
UTF-8
Java
false
false
1,946
java
package com.altimetrik.def.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; import com.altimetrik.def.model.JobParams; @Component public class DefFactoryBean { /* @Bean @Autowired @Scope("prototype") //As we want to create several beans with different args, right? CIServer ciServerDyna(String name) { return "Jenkins".equals(name) ? new JenkinsLoaderImpl() : null ; }*/ private CIServer ciServer; @Autowired @Qualifier("jenkins") private CIServer jenkinsServer; private String serverRequested; /* @Bean(name={"jenkins"}) public CIServer getCIServer1() { return new JenkinsLoaderImpl(); }*/ public CIServer createServer(JobParams jobParams) { // AnnotationConfigApplicationContext context = new // AnnotationConfigApplicationContext(DepFactoryBean.class); switch (getServerRequested(jobParams)) { case "Jenkins": { ciServer = jenkinsServer; // server = (CIServer) context.getBean("ciServerDyna", "Jenk } } return ciServer; } public String getServerRequested(JobParams jobParams) { if (jobParams.getDefInputValue().getJenkins().getJenkinsURL() != null && jobParams.getDefInputValue().getJenkins().getAuthType() != null && jobParams.getDefInputValue().getJenkins().getCredentialID() != null) { serverRequested = "Jenkins"; } else { if (jobParams.getDefInputValue().getConcourse().getConcourseURL() != null && jobParams.getDefInputValue().getConcourse().getConcourseUsername() != null && jobParams.getDefInputValue().getConcourse().getConcoursePassword() != null) { serverRequested = "Concourse"; } } return serverRequested; } public void setServerRequested(String serverRequested) { this.serverRequested = serverRequested; } }
e78106c2d11735dcf3d38600bd7c6ebf33db3004
2fe28a033511fdf8d2027c8cc63c3423646150b8
/src/a_oca/q071/Q_71.java
aef40c1960d85d2df7e506914b82e678591a17ba
[]
no_license
danyalwalker/Java-Programming
4c581a06a1cca45f56e3a6db4535d8fb6798ccac
a89505403eedd5920a7414d1b41c28136003d8a4
refs/heads/master
2023-07-19T16:56:07.188814
2021-09-25T21:27:20
2021-09-25T21:27:20
374,452,988
0
0
null
null
null
null
UTF-8
Java
false
false
679
java
package a_oca.q071; public class Q_71 { } class C1 extends C2 implements I { public void displayI() { System.out.println("C1"); } // And given the code fragment: public static void main (String[]args){ C2 obj1 = new C1(); I obj2 = new C1(); // // C2 s = obj2; //class'a interface in objectini assign etmis o yuzden hata verir // I t = obj1; //class'a class i, interface e interface i assign yapabiliriz // // t.displayI(); // s.displayC2(); } } // dogru cevap Compilation fails (bir yerde de cevabi A olarak gostermis lakin asil cevap compilation fails olmali
17fa0131f9fa8b3362a2a036932d6eb8b722ae9b
50f3f3352481194b715b9c775e3a7f82f26bd8e3
/src/java/dao/IHistorialDAO.java
033db6a6085b68f2af8505b1c0af88f909d3da44
[]
no_license
ElmerYDQ/DemoPatrones
c4901dfbd1a19d3760d18a14cf76c70a8b0a690f
b4dc24d7fa3130af45b07eca20091b5ea042a1f6
refs/heads/master
2020-04-06T11:04:17.404959
2018-12-03T03:56:31
2018-12-03T03:56:31
157,402,530
0
0
null
2018-12-02T18:37:51
2018-11-13T15:30:14
Java
UTF-8
Java
false
false
515
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 dao; import java.util.List; import modelo.HistorialConductor; /** * * @author Diaz */ public interface IHistorialDAO<T> { public List<T> getHistoriales(); public T getHistorialId(int id1, int id2); public void addHistorial(T historial); public void deleteHistorial(int id1, int id2); }
3a2bdc57cef7cc76131308f76c9a8f3795103fcb
3362a1396fdd4193441bec57b8e345bfb5391788
/src/main/java/org/the/force/jdbc/partition/config/ZookeeperDataNode.java
1d47a908ae3d5f32b044b3b80f93ca4eaf57f03a
[]
no_license
xuji1122/jdbc-partition
23b5c1a73eb6e728bfb08b91f3c0dff07f1a16ef
a2510b58f5d6083b52122d78700c34d84fe2ad2d
refs/heads/master
2021-01-01T17:31:14.591369
2018-07-02T09:05:29
2018-07-02T09:05:29
98,094,329
7
3
null
null
null
null
UTF-8
Java
false
false
2,218
java
package org.the.force.jdbc.partition.config; import org.apache.curator.framework.CuratorFramework; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; /** * Created by xuji on 2017/5/21. */ public class ZookeeperDataNode implements DataNode { private final ZookeeperDataNode parent; private final String path; private final CuratorFramework curatorFramework; public ZookeeperDataNode(ZookeeperDataNode parent, String path, CuratorFramework curatorFramework) { this.parent = parent; this.path = path; this.curatorFramework = curatorFramework; } public String getKey() { return path; } public String getPath() { StringBuilder sb = new StringBuilder(); if (parent() != null) { sb.append(parent().getPath()); sb.append("/"); } else { sb.append("/"); } sb.append(path); return sb.toString(); } public String getData() throws Exception { byte[] data = curatorFramework.getData().forPath(getPath()); return new String(data, "UTF-8"); } public List<DataNode> children() throws Exception { List<String> children = curatorFramework.getChildren().forPath(getPath()); List<DataNode> list = new ArrayList<>(); children.stream().forEach(child -> { DataNode dataNode = new ZookeeperDataNode(ZookeeperDataNode.this, child, ZookeeperDataNode.this.curatorFramework); list.add(dataNode); }); return list; } public DataNode children(String key) throws Exception { List<String> children = curatorFramework.getChildren().forPath(getPath()); if (children == null || children.isEmpty()) { return null; } children = children.stream().filter(child -> child.equals(key)).collect(Collectors.toList()); if (children == null || children.isEmpty()) { return null; } DataNode dataNode = new ZookeeperDataNode(ZookeeperDataNode.this, children.get(0), curatorFramework); return dataNode; } public ZookeeperDataNode parent() { return parent; } }
3d25419588385bfc59fe30058dcd45a8147cfadf
d175e23e08c074faf589b106bc1c502d53e7599c
/src/com/jikexueyuan/usingslidingmenu/PotActivity.java
0583b4ea2b16e336cede1a2fc37d5ec6b888931a
[]
no_license
henryhoo/smartpot_android
ff8b3a3cef2fbfb615969e3f79956938de252c95
35e500353361548707c09d296496e333262e2166
refs/heads/master
2016-08-05T11:33:48.878152
2015-01-16T16:04:01
2015-01-16T16:04:01
29,342,832
0
0
null
null
null
null
UTF-8
Java
false
false
3,219
java
package com.jikexueyuan.usingslidingmenu; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu; import android.app.Activity; import android.app.ActionBar; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.os.Build; public class PotActivity extends Activity { private SlidingMenu slidingMenu; private ListView lv; private List<Map<String, Object>> list = new ArrayList<Map<String, Object>>(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_pot); if (savedInstanceState == null) { getFragmentManager().beginTransaction() .add(R.id.container, new PlaceholderFragment()).commit(); } slidingMenu = new SlidingMenu(this); slidingMenu.setMode(SlidingMenu.LEFT); slidingMenu.setBehindOffsetRes(R.dimen.sliding_menu_offset); slidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); slidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); slidingMenu.setMenu(R.layout.slidingmenu); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_MENU: slidingMenu.toggle(true); break; default: break; } return super.onKeyDown(keyCode, event); } public void socialclick(View view) { Intent intent = new Intent(PotActivity.this, SocialActivity.class); startActivity(intent); } public void connectclick(View view) { Intent intent = new Intent(PotActivity.this, ConnectActivity.class); startActivity(intent); } public void potclick(View view) { Intent intent = new Intent(PotActivity.this, PotActivity.class); startActivity(intent); } public void dataclick(View view) { Intent intent = new Intent(PotActivity.this, DataActivity.class); startActivity(intent); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.pot, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } /** * A placeholder fragment containing a simple view. */ public static class PlaceholderFragment extends Fragment { public PlaceholderFragment() { } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_pot, container, false); return rootView; } } }
bab22e04f034b89b75519fb4e4e375e3c63ad4a9
14c572c6c1b92e45e665f241e131a458edf2a913
/src/main/java/com/lego/care4you/repository/RegistryCarSoldRepository.java
84b0fd8a7df861b955806fd49584ad226b7b13e9
[]
no_license
revsystems-2018/care4you-service
4e0768fb0afc92477c3061afd0764dd6e1ae92f6
062e0ff2f42942467eeb3a2a497b253c1280c9bb
refs/heads/master
2020-04-30T12:20:20.744499
2019-03-20T03:43:27
2019-03-20T03:43:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
419
java
package com.lego.care4you.repository; import com.lego.care4you.domain.RegistryCarSold; import com.lego.care4you.repository.bootstrap.GenericRepository; import org.springframework.data.jpa.repository.Query; /** * Created by Alan. */ public interface RegistryCarSoldRepository extends GenericRepository<RegistryCarSold> { @Query("{ 'seller.id' : ?0 }") RegistryCarSold findRegistriesBySeller(String id); }
e38915ba1ff9fd1b97113f1b031e60248255c31d
760bce56cae2fdc9fe7427e1595abc0f3508acb4
/SpringTest/src/main/java/com/example/demo/Service/Configuration/txConfig.java
97154f1a78d1ddc7e0b5ae602a70675afb3e1aa9
[]
no_license
githubybx/idea
ca30b88752dfdf5ce5a47fb7876058e12a685c34
873593e45104feb290852bf36a7ff9b336a58ee7
refs/heads/master
2022-07-01T03:48:22.127277
2020-03-22T04:11:20
2020-03-22T04:11:20
249,110,840
0
0
null
2022-06-21T03:02:21
2020-03-22T04:10:20
Java
UTF-8
Java
false
false
1,202
java
package com.example.demo.Service.Configuration; import org.springframework.context.annotation.*; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.annotation.EnableTransactionManagement; import javax.sql.DataSource; @Configuration @ComponentScan(basePackages = "com.example.demo") @EnableTransactionManagement public class txConfig { @Bean(value = "datasource") public DataSource getInstance1(){ DriverManagerDataSource mysqlDataSource = new DriverManagerDataSource(); mysqlDataSource.setUrl("jdbc:mysql://localhost:3306/student"); mysqlDataSource.setPassword("510363"); mysqlDataSource.setUsername("ybx"); mysqlDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver"); System.out.println(mysqlDataSource.getUrl() + " " + mysqlDataSource.getUsername()); return mysqlDataSource; } @Bean public PlatformTransactionManager getInstance(DataSource dataSource){ return new DataSourceTransactionManager(dataSource); } }
71b73a292c37cba80e87a2b868cac2500d6f14b1
aa932ffd75340de3ac8daee0380419ce2b63187a
/src/ScoreManagement/EachTeamPanel.java
e9ed1c7c9815cbc845b2fb052ad6de2b57a8e41f
[ "Apache-2.0" ]
permissive
shivamd20/Simple-Score-Management-Swing
ce3175eb681d2768bfaf3554ae9180a41036031c
335fa2272e113f0a65089dc0be25ad862ce13ccd
refs/heads/master
2021-01-01T06:09:36.744535
2017-10-30T14:35:14
2017-10-30T14:35:14
97,374,020
0
0
null
null
null
null
UTF-8
Java
false
false
5,672
java
package ScoreManagement; import javax.swing.JPanel; import net.miginfocom.swing.MigLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.SwingConstants; import java.awt.Color; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.border.EmptyBorder; import java.awt.GridLayout; import javax.swing.border.EtchedBorder; import java.awt.SystemColor; import java.awt.Font; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class EachTeamPanel extends JPanel{ JPanel thisframe=this; void shyam() { JFrame frame=new JFrame("ramu"); frame.setBounds(0,0,400,400); frame.getContentPane().setLayout(new GridLayout(5,2)); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.getContentPane().add( new EachTeamPanel()); frame.setVisible(true); } JPanel thisPanel=this; JLabel teamNameLabel = new JLabel("Team Name"); JLabel teamPointLabel = new JLabel("000"); JPanel panel = new JPanel(); JButton p20btn = new JButton("+20"); JButton changeBtn = new JButton("change"); JButton m10btn = new JButton("-10"); JButton p10btn = new JButton("+10"); public EachTeamPanel() { setBackground(Color.BLACK); setLayout(new MigLayout("", "[34.00px:n][50px:15.00,grow][17.00px:n,grow,fill][73.00,grow]", "[grow]")); teamNameLabel.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { if(p20btn.isEnabled()) { //thisPanel.setEnabled(false); p20btn.setEnabled(false); p10btn.setEnabled(false); m10btn.setEnabled(false); changeBtn.setEnabled(false); teamNameLabel.setBackground(Color.black); teamPointLabel.setBackground(Color.magenta); } else { p20btn.setEnabled(true); p10btn.setEnabled(true); m10btn.setEnabled(true); changeBtn.setEnabled(true); teamNameLabel.setBackground(Color.blue); teamPointLabel.setBackground(Color.green); } } }); teamNameLabel.setFont(new Font("Tahoma", Font.PLAIN, 18)); teamNameLabel.setBackground(Color.BLUE); teamNameLabel.setOpaque(true); teamNameLabel.setForeground(new Color(255, 255, 255)); teamNameLabel.setHorizontalAlignment(SwingConstants.CENTER); add(teamNameLabel, "cell 0 0 2 1,grow"); teamPointLabel.setFont(new Font("Stencil", Font.BOLD, 20)); teamPointLabel.setBackground(Color.GREEN); teamPointLabel.setOpaque(true); teamPointLabel.setForeground(Color.RED); teamPointLabel.setHorizontalAlignment(SwingConstants.CENTER); add(teamPointLabel, "cell 2 0,alignx right,growy"); add(panel, "cell 3 0,grow"); panel.setLayout(new GridLayout(0, 2, 0, 0)); p20btn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int n=Integer.parseInt(teamPointLabel.getText()); teamPointLabel.setText(n+20+""); } }); p20btn.setBackground(Color.ORANGE); p20btn.setBorder(null); panel.add(p20btn); p10btn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int n=Integer.parseInt(teamPointLabel.getText()); teamPointLabel.setText(n+10+""); } }); p10btn.setBackground(new Color(255, 222, 173)); p10btn.setBorder(null); panel.add(p10btn); m10btn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int n=Integer.parseInt(teamPointLabel.getText()); teamPointLabel.setText(n-10+""); } }); m10btn.setBackground(new Color(210, 105, 30)); m10btn.setBorder(null); panel.add(m10btn); changeBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try{ int n=Integer.parseInt(JOptionPane.showInputDialog(thisPanel,"Enter Points for"+teamNameLabel.getText(),"")); teamPointLabel.setText(n+""); } catch(NullPointerException e5) { } catch(NumberFormatException e7){ } } }); changeBtn.setBackground(new Color(220, 220, 220)); changeBtn.setBorder(null); teamNameLabel.addMouseListener(MouseAda); teamPointLabel.addMouseListener(MouseAda); m10btn.addMouseListener(MouseAda); changeBtn.addMouseListener(MouseAda); p10btn.addMouseListener(MouseAda); p20btn.addMouseListener(MouseAda); panel.add(changeBtn); // TODO Auto-generated constructor stub //this.addMouseListener(mouseLis); } MouseAdapter MouseAda=new MouseAdapter() { @Override public void mouseEntered(MouseEvent e) { if(m10btn.isEnabled()) teamNameLabel.setBackground(Color.red); } @Override public void mouseExited(MouseEvent e) { if(m10btn.isEnabled()) teamNameLabel.setBackground(Color.blue); } @Override public void mousePressed(MouseEvent e) { } @Override public void mouseReleased(MouseEvent e) { } }; }
6fb857248a7dfd32689d160fa404464321d7c778
2c6c71f360b4eff9bc7cdf371292dcdbbb39d8c4
/src/minigen/model/Class.java
873e17dc028a49427d63b8d7a3a3429a595caeb9
[]
no_license
Morriar/MiniGen
df30b09cbf096f5e3b8ef7948a7faa3c46b6d7f4
ba98e2a1e4ea59c1c07a90ec968569b1705a4265
refs/heads/master
2018-12-29T17:36:27.590980
2011-12-05T01:56:09
2011-12-05T01:56:09
1,861,081
1
0
null
null
null
null
UTF-8
Java
false
false
8,032
java
package minigen.model; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import minigen.exception.SemanticException; import minigen.syntax3.node.Token; public class Class implements Comparable<Class> { private int classId; private Integer color; private int depth; private String name; private Token location; private Map<String, FormalType> formalTypes = new HashMap<String, FormalType>(); private List<FormalType> orderedFormalTypes = new ArrayList<FormalType>(); private Map<String, Class> parents = new HashMap<String, Class>(); private List<Class> subClasses = new ArrayList<Class>(); private List<Class> superClasses = new ArrayList<Class>(); private Map<Class, List<Type>> parentsBounds = new HashMap<Class, List<Type>>(); private Adaptation[] adaptationsTable; public Class(String name, Token location, int classId) { super(); this.classId = classId; this.name = name; this.location = location; this.depth = -1; } /* * Add a parent class to the current class */ public void addParent(Class parent, List<Type> bounds) { this.parents.put(parent.getName(), parent); this.parentsBounds.put(parent, bounds); this.superClasses.add(parent); parent.getSubClasses().add(this); } /* * Add a formal type to the current class */ public void addFormalType(FormalType ftype) { this.formalTypes.put(ftype.getName(), ftype); this.orderedFormalTypes.add(ftype); } /* * Check if a formal type is already declared Checks are based on the formal * type name */ public boolean isFormalTypeDeclared(String name) { return formalTypes.containsKey(name); } /* * Retrieve a formal type by is name */ public FormalType getFormalType(String name) { if (!this.formalTypes.containsKey(name)) { throw new SemanticException(null, name + "formal type not declared in type " + this.getName()); } return this.formalTypes.get(name); } public boolean isGeneric() { return this.orderedFormalTypes.size() != 0; } /* * Return the arity of the generic class */ public int getArity() { return this.orderedFormalTypes.size(); } @Override public String toString() { String str = this.getName(); int i = 0; if (orderedFormalTypes.size() > 0) { str += '['; for (FormalType ft : this.orderedFormalTypes) { str += i < this.orderedFormalTypes.size() - 1 ? ft + ", " : ft; i++; } str += ']'; } return str; } /* * Rapid isa, constant time execution */ public boolean isa(Class c) { if (c.getColor() >= this.adaptationsTable.length) { return false; } Adaptation adaptation = this.adaptationsTable[c.getColor()]; return adaptation != null && adaptation.isFor(c); } /* * Get the adaptation to specified parent */ public Adaptation getAdaptation(Class to) { return this.adaptationsTable[to.getColor()]; } /* * Register adaptation to super class Throw Exception if formal type * conflict is found */ public void addAdaptation(Class to, Adaptation adaptation) { if (this.adaptationsTable == null) { this.adaptationsTable = new Adaptation[to.getColor() + 1]; } else if (to.getColor() >= this.adaptationsTable.length) { // Need to enlarge the array this.adaptationsTable = Arrays.copyOf(this.adaptationsTable, to.getColor() + 1); } this.adaptationsTable[to.getColor()] = adaptation; } /* * Check if current class is a sub class of c Comparisons are based on * parents names WARNING : Low efficiency, highly recursive, used only as * bootstrap for type check. Use isa method instead. */ public boolean isSubClassOf(Class c) { if (c.getName().equals("Object")) { return true; } if (this.isSameClass(c)) { return true; } for (Class parent : parents.values()) { if (parent.isSubClassOf(c)) { return true; } } return false; } /* * Display inheritance relations of current class */ public String toStringWithParents() { String str = this.getName(); int i = 0; if (orderedFormalTypes.size() > 0) { str += '['; for (FormalType ft : this.orderedFormalTypes) { str += i < this.orderedFormalTypes.size() - 1 ? ft + ", " : ft; i++; } str += ']'; } if (parents.size() > 0) { str += " <: "; int j = 0; for (Class c : this.parents.values()) { String classStr = c.getName(); // Disp bounds super relations if (parentsBounds.get(c).size() > 0) { classStr += "["; int k = 0; for (Type parent : parentsBounds.get(c)) { classStr += k < this.parentsBounds.get(c).size() - 1 ? parent + ", " : parent; k++; } classStr += "]"; } str += j < this.parents.size() - 1 ? classStr + ", " : classStr; j++; } } return str; } public String toStringWithAdaptationsTable() { String print = "{"; for (int i = 0; i < this.adaptationsTable.length; i++) { print += "[" + i + "]" + " = " + this.adaptationsTable[i]; if (i < this.adaptationsTable.length - 1) { print += ", "; } } print += "}"; return print; } /* * Check if current class is same class than c Comparisons are based on name * and formal type arity */ public boolean isSameClass(Class c) { return this.getName().equals(c.getName()); } /* * Is the local class introduction for Object ? */ public boolean isObjectIntro() { return false; } /* * Getters, setters */ public String getName() { return name; } public Token getLocation() { return location; } public Map<String, FormalType> getFormalTypes() { return formalTypes; } public Collection<Class> getParents() { return parents.values(); } public Class getParentByName(String name) { return parents.get(name); } public Map<Class, List<Type>> getParentsBounds() { return parentsBounds; } public List<Type> getParentBounds(Class c) { return parentsBounds.get(c); } public int getClassId() { return classId; } public Adaptation[] getAdaptationsTable() { return adaptationsTable; } public void setAdaptationsTable(Adaptation[] adaptationsTable) { this.adaptationsTable = adaptationsTable; } public List<FormalType> getOrderedFormalTypes() { return orderedFormalTypes; } public List<Class> getSubClasses() { return subClasses; } public void setSubClasses(List<Class> subClasses) { this.subClasses = subClasses; } public int getDegree() { return this.subClasses.size() + this.parents.size(); } public void setClassId(int classId) { this.classId = classId; } public HashSet<Class> getRelatedTo() { HashSet<Class> result = new HashSet<Class>(); buildRecursiveParentsRelation(this.getSuperClasses(), result); buildRecursiveChildrenRelation(this.getSubClasses(), result); return result; } private void buildRecursiveParentsRelation(Collection<Class> toExplore, Collection<Class> relatedTo) { for (Class c : toExplore) { relatedTo.add(c); buildRecursiveParentsRelation(c.getSuperClasses(), relatedTo); } } private void buildRecursiveChildrenRelation(Collection<Class> toExplore, Collection<Class> relatedTo) { for (Class c : toExplore) { relatedTo.add(c); buildRecursiveChildrenRelation(c.getSubClasses(), relatedTo); } } public boolean isRelatedTo(Class c) { for (Class p : this.getParents()) { if (p.isSameClass(c)) { return true; } } return false; } public List<Class> getSuperClasses() { return superClasses; } public Integer getColor() { return color; } public void setColor(Integer color) { this.color = color; } public int getDepth() { return depth; } public void setDepth(int depth) { this.depth = depth; } @Override public int compareTo(Class o) { if (o.isSubClassOf(this)) return -1; if (this.isSubClassOf(o)) return 1; if (o.getDepth() - this.getDepth() != 0) return this.getDepth() - o.getDepth(); return this.getName().compareTo(o.getName()); } }
77228c6a8b319775848ba6b4c7ab13207c9c9160
0a7e299a72dd0f523c7519315a8feeaa009c69f1
/webapp/src/main/java/com/cmartin/learn/mybank/web/configuration/WebAppConfiguration.java
355d301172ff2975d326b31dbb17dfbcece124dc
[]
no_license
butcherless/gradle-and-java8
ac40c7b22bf53f82c77a3a5b8a18cc7d584d49f0
33c9166d1dd970e5381b65bb7b13587b8a716749
refs/heads/master
2020-05-22T02:47:43.141244
2019-04-22T22:04:53
2019-04-22T22:04:53
62,989,712
0
2
null
null
null
null
UTF-8
Java
false
false
1,179
java
//package com.cmartin.learn.mybank.web.configuration; // // //import com.cmartin.learn.mybank.service.ServiceConfig; //import com.cmartin.learn.mybank.web.controller.BankController; //import org.springframework.context.annotation.ComponentScan; //import org.springframework.context.annotation.Configuration; //import org.springframework.http.converter.HttpMessageConverter; //import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; //import org.springframework.web.servlet.config.annotation.EnableWebMvc; //import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; // //import java.util.List; // ///** // * Created by cmartin on 22/07/16. // */ //@Configuration //@EnableWebMvc //@ComponentScan(basePackageClasses = {BankController.class, ServiceConfig.class}) //public class WebAppConfiguration implements WebMvcConfigurer { // // @Override // public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { // final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); // converter.setPrettyPrint(true); // converters.add(converter); // } // //}
87a1baff497797931420ea774a473dbceea07429
73f7dd9525fa266ba9b14586181f75d025c22811
/smartpen/src/main/java/com/cleverm/smartpen/ui/loading/indicator/BallSpinFadeLoaderIndicator.java
03f4dfa0e11f7b9626b23d79d67df59300975689
[]
no_license
chinaandone/slsuperapp
16041397e964118bd310039e9f194ea3b27363e6
b6c685ae3196bd4e47ae01a719c81674c441b062
refs/heads/master
2021-01-22T06:45:30.883004
2017-02-13T05:12:17
2017-02-13T05:12:17
81,787,367
0
0
null
null
null
null
UTF-8
Java
false
false
3,592
java
package com.cleverm.smartpen.ui.loading.indicator; import android.graphics.Canvas; import android.graphics.Paint; import com.nineoldandroids.animation.Animator; import com.nineoldandroids.animation.ValueAnimator; import java.util.ArrayList; import java.util.List; /** * Created by xiong,An android project Engineer,on 5/5/2016. * Data:5/5/2016 下午 02:56 * Base on clever-m.com(JAVA Service) * Describe: * Version:1.0 * Open source */ public class BallSpinFadeLoaderIndicator extends BaseIndicatorController { public static final float SCALE=1.0f; public static final int ALPHA=255; float[] scaleFloats=new float[]{SCALE, SCALE, SCALE, SCALE, SCALE, SCALE, SCALE, SCALE}; int[] alphas=new int[]{ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA, ALPHA}; @Override public void draw(Canvas canvas, Paint paint) { float radius=getWidth()/10; for (int i = 0; i < 8; i++) { canvas.save(); Point point=circleAt(getWidth(),getHeight(),getWidth()/2-radius,i*(Math.PI/4)); canvas.translate(point.x,point.y); canvas.scale(scaleFloats[i],scaleFloats[i]); paint.setAlpha(alphas[i]); canvas.drawCircle(0,0,radius,paint); canvas.restore(); } } /** * 圆O的圆心为(a,b),半径为R,点A与到X轴的为角α. *则点A的坐标为(a+R*cosα,b+R*sinα) * @param width * @param height * @param radius * @param angle * @return */ Point circleAt(int width,int height,float radius,double angle){ float x= (float) (width/2+radius*(Math.cos(angle))); float y= (float) (height/2+radius*(Math.sin(angle))); return new Point(x,y); } @Override public List<Animator> createAnimation() { List<Animator> animators=new ArrayList<Animator>(); int[] delays= {0, 120, 240, 360, 480, 600, 720, 780, 840}; for (int i = 0; i < 8; i++) { final int index=i; ValueAnimator scaleAnim=ValueAnimator.ofFloat(1,0.4f,1); scaleAnim.setDuration(1000); scaleAnim.setRepeatCount(-1); scaleAnim.setStartDelay(delays[i]); scaleAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { scaleFloats[index] = (Float) animation.getAnimatedValue(); postInvalidate(); } }); scaleAnim.start(); ValueAnimator alphaAnim=ValueAnimator.ofInt(255, 77, 255); alphaAnim.setDuration(1000); alphaAnim.setRepeatCount(-1); alphaAnim.setStartDelay(delays[i]); alphaAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { alphas[index] = (Integer) animation.getAnimatedValue(); postInvalidate(); } }); alphaAnim.start(); animators.add(scaleAnim); animators.add(alphaAnim); } return animators; } final class Point{ public float x; public float y; public Point(float x, float y){ this.x=x; this.y=y; } } }