repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
mmontes11/iot
packages/biot/src/controllers/bot/authController.js
<gh_stars>10-100 import _ from "underscore"; import config from "../../config"; import errorMessages from "../../utils/errorMessages"; export class AuthController { constructor(telegramBot) { this.bot = telegramBot; this.usersWhileList = config.telegramUsersWhiteList; } isAuthorized(msg) { const user = msg.from.username; if (this.usersWhileList) { return _.contains(this.usersWhileList, user); } return true; } sendNotAuthorizedMessage(msg) { const chatId = msg.chat.id; this.bot.sendMessage(chatId, errorMessages.notAuthorizedError); } }
OptimalBPM/qal
qal/tools/gui/frame_dataset_xpath.py
""" Created on Jan 26, 2014 @author: <NAME> """ import os from qal.common.strings import empty_when_none from qal.dataset.flatfile import FlatfileDataset from qal.dataset.xpath import XpathDataset from qal.tools.gui.frame_dataset_custom import FrameCustomFileDataset from tkinter import Button, messagebox, SUNKEN, ttk, StringVar, IntVar, BooleanVar, filedialog from tkinter.constants import LEFT, W from qal.tools.gui.widgets_misc import make_entry __author__ = '<NAME>' class FrameXPathDataset(FrameCustomFileDataset): """ Holds an instance of, and visually represents, a XPath dataset. See qal.dataset.xpath.XPathDataset """ def __init__(self, _master, _dataset = None, _relief = None, _is_destination=None): super(FrameXPathDataset, self ).__init__(_master, _dataset, _relief, _is_destination=_is_destination) if _dataset is None: self.dataset = XpathDataset() def on_select(self): """Brings up a selector dialog, prompting the user to select a file, the relative path if the file is then saved to the filename property. Also, the base path is set. """ self.select_file(_default_extension = ".xml", _file_types=[('.xml files', '.xml'), ('all files', '.*')]) def init_widgets(self): # file selector self.btn_file_select=Button(self, text="Select file",command=self.on_select) self.btn_file_select.grid(column=0, row=0, columnspan=2) # filename self.filename, self.e_filename, self.l_filename = make_entry(self, "File name: ", 1) # rows_xpath self.rows_xpath, self.e_rows_xpath, self.l_rows_xpath = make_entry(self, "Rows XPath: ", 2) # xpath_data_format self.xpath_data_format = StringVar() self.l_xpath_data_format = ttk.Label(self, text="Data format: :") self.l_xpath_data_format.grid(column=0, row=3) self.sel_xpath_data_format = ttk.Combobox(self, textvariable=self.xpath_data_format, state='readonly') self.sel_xpath_data_format['values'] = ["XML", "HTML"] self.sel_xpath_data_format.current(0) self.sel_xpath_data_format.grid(column=1, row=3) # xpath_text_qualifier self.xpath_text_qualifier, self.e_xpath_text_qualifier, self.l_xpath_text_qualifier = make_entry(self, "Text qualifier: ", 4) # encoding self.encoding, self.e_encoding, self.l_encoding = make_entry(self, "Encoding: ", 5) self.field_names = [] self.field_xpaths = [] self.field_types = [] def read_from_dataset(self): super(FrameXPathDataset, self ).read_from_dataset() self.filename.set(empty_when_none(self.dataset.filename)) self.base_path = os.path.dirname(self.dataset.filename) self.rows_xpath.set(empty_when_none(self.dataset.rows_xpath)) self.xpath_data_format.set(empty_when_none(self.dataset.xpath_data_format)) self.field_names = self.dataset.field_names self.field_xpaths = self.dataset.field_xpaths self.field_types = self.dataset.field_types self.encoding.set(empty_when_none(self.dataset.encoding)) def write_to_dataset(self): super(FrameXPathDataset, self).write_to_dataset() if self.dataset is None: self.dataset = XpathDataset() self.dataset.filename = self.filename.get() self.dataset.rows_xpath = self.rows_xpath.get() self.dataset.xpath_data_format = self.xpath_data_format.get() self.dataset.field_names = self.field_names self.dataset.field_xpaths = self.field_xpaths self.dataset.field_types = self.field_types self.dataset.encoding = self.encoding.get() self.dataset.base_path = self.base_path def _recurse_paths(self,_parent_node, _exclude_len): """Create a list of all possible X paths under a node. :param _parent_node: The node from which to recurse. :param _exclude_len: Exclude _exclude_len number of characters. Used to remove unnecessary text. :return: a list of paths """ _paths = [] for _curr_node in _parent_node: _curr_path = self.dataset._structure_tree.getpath(_curr_node)[_exclude_len:] # Remove the first [0] _curr_offset = _curr_path.find("]") + 1 if _curr_path[_curr_offset:] != "": _paths.append(_curr_path[_curr_offset + 1:]) _child_nodes = self._recurse_paths(_curr_node, _exclude_len) if _child_nodes: _paths+=_child_nodes return _paths def reload(self): self.notify_task("Load XML "+ self.dataset.filename, 10) self.dataset.load() self.notify_task("Loaded XML "+ self.dataset.filename + ".", 100) def get_possible_references(self, _force=None): if self.references is None or _force == True: self.reload() if self.dataset._structure_tree: _rows_xpath = self.rows_xpath.get() self.references = sorted(set(self._recurse_paths(self.dataset._structure_tree.xpath(_rows_xpath), len(_rows_xpath)))) return self.references
enthought/traits-futures
docs/source/guide/examples/simple_blocking_call.py
<reponame>enthought/traits-futures # (C) Copyright 2018-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at http://www.enthought.com/licenses/BSD.txt # # Thanks for using Enthought open source! """ Example of popping up a modal progress dialog during a simple call. Use-case: in a running GUI, we want to make a short-running computation or service call, let's say taking a few seconds. While the computation or call is in progress, we want to: (a) provide some visual feedback to the user to let them know that something is happening. (b) free up the GUI thread so that the GUI doesn't appear to be frozen to either the user or the operating system, avoiding system reports of the form "Python is not responding". The solution shown in this example is to push the computation to a background thread using ``submit_call`` and pop up a simple non-cancellable non-closable progress dialog while the computation is running. Since all we have is a simple call, no actual progress is shown, but depending on the OS and Qt stylesheet in use, Qt will often animate the progress bar. """ from pyface.api import Dialog from pyface.qt import QtCore, QtGui from traits.api import Button, HasStrictTraits, Instance, observe, Range from traits_futures.api import CallFuture, submit_call, TraitsExecutor from traitsui.api import Item, UItem, View def fibonacci(n): """ Deliberately inefficient recursive implementation of the Fibonacci series. Parameters ---------- n : int Nonnegative integer - the index into the Fibonacci series. Returns ------- fib : int The value of the Fibonacci series at n. """ return n if n < 2 else fibonacci(n - 1) + fibonacci(n - 2) class NonClosableDialog(QtGui.QDialog): """ Modification of QDialog that does nothing on attempts to close. """ # By default, a QDialog closes when its close button is used, or when # the "ESC" key is pressed. Both actions are routed through the dialog's # 'reject' method, so we can override that method to prevent closing. def reject(self): """ Do nothing on close. """ class SlowCallDialog(Dialog): """ Simple Pyface dialog showing a progress bar, a title, and nothing else """ #: The future representing the running background task. future = Instance(CallFuture) def _create_contents(self, parent): # Override base class implementation to provide a simple progress bar. progress_bar = QtGui.QProgressBar(parent) progress_bar.setRange(0, 0) layout = QtGui.QVBoxLayout() layout.addWidget(progress_bar) parent.setLayout(layout) def _create_control(self, parent): # Override base class implementation in order to customize title hints, # and in particular to remove the close button. dlg = NonClosableDialog( parent, QtCore.Qt.CustomizeWindowHint | QtCore.Qt.WindowTitleHint, ) dlg.setWindowTitle(self.title) return dlg @observe("future:done") def _close_dialog_on_future_completion(self, event): """ Close the dialog when the background task completes. """ self.close() class FibonacciCalculator(HasStrictTraits): """ GUI with a 'calculate' button that runs a blocking calculation. While the blocking operation is running, a minimal progress dialog is displayed to the user. """ #: The executor to submit tasks to. traits_executor = Instance(TraitsExecutor) #: Input for the calculation input = Range(20, 40, 35) #: Button to start the calculation calculate = Button("Calculate") @observe("calculate") def _submit_background_call(self, event): SlowCallDialog( future=submit_call(self.traits_executor, fibonacci, self.input), title=f"Calculating Fib({self.input}). Please wait.", ).open() traits_view = View( Item("input"), UItem("calculate"), ) if __name__ == "__main__": traits_executor = TraitsExecutor() try: FibonacciCalculator(traits_executor=traits_executor).configure_traits() finally: traits_executor.shutdown()
ppasmanik01/aws-lambda-stream
test/unit/flavors/materialize.test.js
<gh_stars>0 import 'mocha'; import { expect } from 'chai'; import sinon from 'sinon'; import { initialize, initializeFrom, ttl, } from '../../../src'; import { toKinesisRecords, fromKinesis } from '../../../src/from/kinesis'; import { updateExpression, timestampCondition } from '../../../src/utils/dynamodb'; import Connector from '../../../src/connectors/dynamodb'; import materialize from '../../../src/flavors/materialize'; describe('flavors/materialize.js', () => { beforeEach(() => { sinon.stub(Connector.prototype, 'update').resolves({}); }); afterEach(sinon.restore); it('should execute', (done) => { const events = toKinesisRecords([ { type: 'm1', timestamp: 1548967022000, thing: { id: '1', name: 'Thing One', description: 'This is thing one', }, }, ]); initialize({ ...initializeFrom(rules), }) .assemble(fromKinesis(events), false) .collect() // .tap((collected) => console.log(JSON.stringify(collected, null, 2))) .tap((collected) => { expect(collected.length).to.equal(1); expect(collected[0].pipeline).to.equal('mv1'); expect(collected[0].event.type).to.equal('m1'); expect(collected[0].updateRequest).to.deep.equal({ Key: { pk: '1', sk: 'thing', }, ExpressionAttributeNames: { '#id': 'id', '#name': 'name', '#description': 'description', '#discriminator': 'discriminator', '#ttl': 'ttl', '#timestamp': 'timestamp', }, ExpressionAttributeValues: { ':id': '1', ':name': 'Thing One', ':description': 'This is thing one', ':discriminator': 'thing', ':ttl': 1549053422, ':timestamp': 1548967022000, }, UpdateExpression: 'SET #id = :id, #name = :name, #description = :description, #discriminator = :discriminator, #ttl = :ttl, #timestamp = :timestamp', ReturnValues: 'ALL_NEW', ConditionExpression: 'attribute_not_exists(#timestamp) OR #timestamp < :timestamp', }); }) .done(done); }); }); const toUpdateRequest = (uow) => ({ Key: { pk: uow.event.thing.id, sk: 'thing', }, ...updateExpression({ ...uow.event.thing, discriminator: 'thing', ttl: ttl(uow.event.timestamp, 1), timestamp: uow.event.timestamp, }), ...timestampCondition(), }); const rules = [ { id: 'mv1', flavor: materialize, eventType: 'm1', filters: [() => true], toUpdateRequest, }, { id: 'other1', flavor: materialize, eventType: 'x9', }, ];
502627670/needle-store
booking-admin/src/main/java/org/needle/bookingdiscount/admin/repository/GoodsSpecificationRepository.java
package org.needle.bookingdiscount.admin.repository; import java.util.List; import org.needle.bookingdiscount.domain.product.GoodsSpecification; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; public interface GoodsSpecificationRepository extends PagingAndSortingRepository<GoodsSpecification, Long> { @Query("from GoodsSpecification t where t.goods.id=?1") public List<GoodsSpecification> findByGoods(Long goodsId); @Query("from GoodsSpecification t where t.specification.id=?1") public List<GoodsSpecification> findBySpecification(Long specificationId); }
lgarciaaco/machina-api
business/broker/testbinance.go
package broker import ( "bytes" "context" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "github.com/lgarciaaco/machina-api/business/broker/encode" ) // TestBinance manages calls to binance test api v3 if the endpoint // has an test api. Currently, only order endpoint has a test api type TestBinance struct { APIKey string // APIKey is required for calls that need authentication Signer encode.Signer // Signer is used to encode calls to binance that include sensitive data, like APIKey } // Request convert a bunch of key-value pairs into an url query, it takes the api endpoint // and builds the binance api request. It returns the body of the response func (as TestBinance) Request(ctx context.Context, method, endpoint string, keysAndValues ...string) (rd io.Reader, err error) { ctx, span := otel.GetTracerProvider().Tracer("").Start(ctx, "broker.binance.request") span.SetAttributes(attribute.String("endpoint", endpoint)) defer span.End() base := APIV3 if endpoint == "order" { base = TestNet } // form the api request url req, err := http.NewRequestWithContext(ctx, method, fmt.Sprintf("%s/%s", base, endpoint), nil) if err != nil { return nil, fmt.Errorf("unable to create request %w", err) } q := req.URL.Query() for i := 0; i < len(keysAndValues); { // make sure this isn't a mismatched key if i == len(keysAndValues)-1 { return nil, fmt.Errorf("odd number of arguments passed as key-value pairs") } // process a key-value pair, key, val := keysAndValues[i], keysAndValues[i+1] q.Add(key, val) i += 2 } // Order is the only authenticated endpoint so we need to pass the keys if endpoint == "order" { // If there is an Api key defined we include it in the header if as.APIKey != "" { req.Header.Add("X-MBX-APIKEY", as.APIKey) } // Add signature parameter if signature is defined if as.Signer != nil { signature, err := as.Signer.Sign([]byte(q.Encode())) if err != nil { return nil, fmt.Errorf("unable to sign") } q.Add("signature", signature) } } req.URL.RawQuery = q.Encode() client := &http.Client{ Transport: &http.Transport{ MaxIdleConns: MaxIdleConnections, IdleConnTimeout: IdleConnTimeout, DisableCompression: true, }} resp, err := client.Do(req) if err != nil { return nil, fmt.Errorf("failed to issue request, err %w", err) } defer resp.Body.Close() // we care only about status codes in 2xx range, anything else we can't process if !(resp.StatusCode >= 200 && resp.StatusCode <= 299) { return nil, fmt.Errorf("status code [%d] out of range, expecting 200 <= status code <= 299", resp.StatusCode) } // finally, return the reader for the body b, err := ioutil.ReadAll(resp.Body) if err != nil { return nil, fmt.Errorf("creating reader %w", err) } r := bytes.NewReader(b) // finally, return the reader for the body return r, nil } // Time fetches the api time func (as TestBinance) Time(ctx context.Context) (int64, error) { req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("%s/%s", TestNet, "time"), nil) if err != nil { return 0, fmt.Errorf("unable to create request %w", err) } client := &http.Client{ Transport: &http.Transport{ MaxIdleConns: MaxIdleConnections, IdleConnTimeout: IdleConnTimeout, DisableCompression: true, }} resp, err := client.Do(req) if err != nil { return 0, fmt.Errorf("failed to issue request, err %w", err) } defer resp.Body.Close() // we care only about status codes in 2xx range, anything else we can't process if !(resp.StatusCode >= 200 && resp.StatusCode <= 299) { return 0, fmt.Errorf("status code [%d] out of range, expecting 200 <= status code <= 299", resp.StatusCode) } type time struct { Time int64 `json:"serverTime"` } var t time // finally, return the body if b, err := ioutil.ReadAll(resp.Body); err != nil { return 0, fmt.Errorf("unable to read from response") } else { if err = json.Unmarshal(b, &t); err != nil { return 0, fmt.Errorf("unable to unmarshal reposns %s into json", b) } } return t.Time, nil }
clevergy1/hs
js/app/Impianti/Operators/ManageParkingRepeater.js
/* Impianti Operators Manage Parking Repeaters ------------------------------------------*/ $(function () { $(document).ready(function () { var $ParkAltitude; ReadParking(); loadRepeaters(); setlanguage(); function ReadParking() { var req = $.DataAccess.Parking_Read(localStorage.getItem("IdImpianto"), localStorage.getItem("IdPark")); req.success(function (json) { var data = json.d; if (data) { $("#ParkDescr").text(data.DesPark); $ParkAltitude = data.AltSLM; } }); } function loadRepeaters() { $("#ListRepeaters").empty(); var req = $.DataAccess.Parking_Repeater_List(false); req.success(function (json) { var data = json.d; if (data) { //for (var i = 0; i < data.length; i++) { // data[i].ActiveSince = moment(data[i].ActiveSince).format('DD/MM/YYYY HH:mm'); //}//end for $("#tmplListRepeaters").tmpl(data).appendTo("#ListRepeaters"); $('.tableRepeaters').trigger('footable_redraw'); setlanguage(); } }); } /* Add ---------------------------------------------------------*/ $('#btnCallAdd').on('click', function (e) { $('#List').hide(); $('#Upd').hide(); $('#Descr_Add').val(''); $('#Latitude_Add').val(''); $('#Longitude_Add').val(''); $('#AltSLM_Add').val(''); $('#NodeId_Add').val(''); $('#Note_Add').val(''); $('.required').removeClass("error"); $('#Add').show(); }); $('#btnCloseAdd').on('click', function (e) { $('#Add').hide() $('#Upd').hide(); $('#List').show(); }); $('#btnAdd').on('click', function (e) { var Descr = $('#Descr_Add').val(), Latitude = $('#Latitude_Add').val(), Longitude = $('#Longitude_Add').val(), AltSLM = $('#AltSLM_Add').val(), NodeId = $('#NodeId_Add').autoNumeric('get'), Note = $('#Note_Add').val(); if (!NodeId) { NodeId = '0'; } if (checkAdd(Descr) == false) { console.log('Latitude='+Latitude + ' Longitude='+ Longitude +' AltSLM='+ AltSLM + ' Descr='+ Descr + ' NodeId='+ NodeId + ' Note='+ Note); var req = $.DataAccess.Parking_Repeater_Add(Latitude, Longitude, AltSLM, Descr, NodeId, Note); req.success(function (json) { var data = json.d; if (data == true) { loadRepeaters(); $('#Add').hide() $('#Upd').hide(); $('#List').show(); } else { toastr["warning"](langResources['msg4operationfailed'], langResources['alert']); } }); } else { toastr["warning"](langResources['msg4novaliddata'], langResources['alert']); } }); function checkAdd( Descr ) { var retVal = false; var error_present = false; if (!error_present) { if (Descr == '') { $('#Descr_Add').addClass("error"); error_present = true; } } retVal = error_present; return retVal; } /*-------------------------------------------------------*/ /* Update ---------------------------------------------------------*/ $.fn.callUpdate = function (IdRepeater) { $('#List').hide(); $('#Add').hide(); var req = $.DataAccess.Parking_Repeater_Read(IdRepeater); req.success(function (json) { var data = json.d; if (data) { $('#IdRepeater_Upd').val(data.IdRepeater); $('#Descr_Upd').val(data.Descr); $('#Latitude_Upd').val(data.Latitude); $('#Longitude_Upd').val(data.Longitude); $('#AltSLM_Upd').val(data.AltSLM); $('#NodeId_Upd').autoNumeric('set', data.NodeId); $('#Node_Upd').val(data.Note); } }); $('#Upd').show(); } $('#btnCloseUpd').on('click', function (e) { $('#Add').hide() $('#Upd').hide(); $('#List').show(); }); $('#btnUpd').on('click', function (e) { var IdRepeater = $('#IdRepeater_Upd').val(), Descr = $('#Descr_Upd').val(), Latitude = $('#Latitude_IdAddress_Upd').val(), Longitude = $('#Longitude_IdAddress_Upd').val(), AltSLM = $('#AltSLM_IdAddress_Upd').val(), NodeId = $('#NodeId_Upd').autoNumeric('get'), Note = $('#Note_Upd').val(); if (!NodeId) { NodeId = '0'; } if (checkUpd(Descr) == false) { var req = $.DataAccess.Parking_Repeater_Update(IdRepeater, Latitude, Longitude, AltSLM, Descr, NodeId, Note); req.success(function (json) { var data = json.d; if (data == true) { loadRepeaters(); $('#Add').hide() $('#Upd').hide(); $('#List').show(); } else { toastr["warning"](langResources['msg4operationfailed'], langResources['alert']); } }); } else { toastr["warning"](langResources['msg4novaliddata'], langResources['alert']); } }); function checkUpd(Descr) { var retVal = false; var error_present = false; if (!error_present) { if (Descr == '') { $('#Descr_Upd').addClass("error"); error_present = true; } } retVal = error_present; return retVal; } /*-------------------------------------------------------*/ /* Repeater detail ----------------------------------------------------*/ $.fn.detailRepeater = function (NodeId) { localStorage.setItem("NodeId", NodeId); $.module.load('Impianti/Operators/ParkingRepeaterDetail'); } /*--------------------------------------------------*/ }); }); function callUpdate(IdRepeater) { $.fn.callUpdate(IdRepeater); } function detailRepeater(NodeId) { $.fn.detailRepeater(NodeId); }
CS2113-AY1819S1-W13-4/addressbook-level4
src/test/java/seedu/address/logic/commands/AddCommandIntegrationTest.java
<reponame>CS2113-AY1819S1-W13-4/addressbook-level4 package seedu.address.logic.commands; import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; import static seedu.address.testutil.TypicalBooks.getTypicalBookInventory; import org.junit.Before; import org.junit.Test; import seedu.address.logic.CommandHistory; import seedu.address.model.Model; import seedu.address.model.ModelManager; import seedu.address.model.UserPrefs; import seedu.address.model.book.Book; import seedu.address.testutil.BookBuilder; /** * Contains integration tests (interaction with the Model) for {@code AddCommand}. */ public class AddCommandIntegrationTest { private Model model; private CommandHistory commandHistory = new CommandHistory(); @Before public void setUp() { model = new ModelManager(getTypicalBookInventory(), new UserPrefs()); } @Test public void execute_newBook_success() { Book validBook = new BookBuilder().build(); Model expectedModel = new ModelManager(model.getBookInventory(), new UserPrefs()); expectedModel.addBook(validBook); expectedModel.commitBookInventory(); assertCommandSuccess(new AddCommand(validBook), model, commandHistory, String.format(AddCommand.MESSAGE_SUCCESS, validBook), expectedModel); } @Test public void execute_duplicateBook_throwsCommandException() { Book bookInList = model.getBookInventory().getBookList().get(0); assertCommandFailure(new AddCommand(bookInList), model, commandHistory, AddCommand.MESSAGE_DUPLICATE_BOOK); } }
hao-wang/Montage
js-test-suite/testsuite/1ef3e819a309ab4f4c0276cd107a2bd6.js
<filename>js-test-suite/testsuite/1ef3e819a309ab4f4c0276cd107a2bd6.js<gh_stars>10-100 load("201224b0d1c296b45befd2285e95dd42.js"); /* test Map.prototype.forEach */ load("19d7bc83becec11ee32c3a85fbc4d93d.js"); load("e2c808509c360663d6364e14c187fc8f.js"); // testing success conditions of Map.prototype.forEach var testMap = new Map(); function callback(value, key, map) { testMap.set(key, value); assertEq(map.has(key), true); assertEq(map.get(key), value); } var initialMap = new Map([['a', 1], ['b', 2.3], [false, undefined]]); initialMap.forEach(callback); // test that both the Maps are equal and are in same order var iterator = initialMap[Symbol.iterator](); var count = 0; for (var [k, v] of testMap) { assertEq(initialMap.has(k), true); assertEq(initialMap.get(k), testMap.get(k)); assertIteratorNext(iterator, [k, testMap.get(k)]); count++; } //check both the Maps we have are equal in size assertEq(initialMap.size, testMap.size); assertEq(initialMap.size, count); var x = { abc: 'test'}; function callback2(value, key, map) { assertEq(x, this); } initialMap = new Map([['a', 1]]); initialMap.forEach(callback2, x); // testing failure conditions of Map.prototype.forEach var s = new Set([1, 2, 3]); assertThrowsInstanceOf(function() { Map.prototype.forEach.call(s, callback); }, TypeError, "Map.prototype.forEach should raise TypeError if not used on a Map"); var fn = 2; assertThrowsInstanceOf(function() { initialMap.forEach(fn); }, TypeError, "Map.prototype.forEach should raise TypeError if callback is not a function"); // testing that Map#forEach uses internal next() function and does not stop when // StopIteration exception is thrown var m = new Map([["one", 1]]); Object.getPrototypeOf(m[Symbol.iterator]()).next = function () { throw "FAIL"; }; assertThrowsInstanceOf(function () { m.forEach(function () { throw StopIteration; }); }, StopIteration, "Map.prototype.forEach should use intrinsic next method.");
billewanick/corteza-server
system/rest/request/queues.go
package request // This file is auto-generated. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // Definitions file that controls how this file is generated: // import ( "encoding/json" "fmt" "github.com/cortezaproject/corteza-server/pkg/messagebus" "github.com/cortezaproject/corteza-server/pkg/payload" "github.com/go-chi/chi" "io" "mime/multipart" "net/http" "strings" ) // dummy vars to prevent // unused imports complain var ( _ = chi.URLParam _ = multipart.ErrMessageTooLarge _ = payload.ParseUint64s _ = strings.ToLower _ = io.EOF _ = fmt.Errorf _ = json.NewEncoder ) type ( // Internal API interface QueuesList struct { // Query GET parameter // // Search query Query string // Limit GET parameter // // Limit Limit uint // PageCursor GET parameter // // Page cursor PageCursor string // Sort GET parameter // // Sort items Sort string // Deleted GET parameter // // Exclude (0 Deleted uint } QueuesCreate struct { // Queue POST parameter // // Name of queue Queue string // Consumer POST parameter // // Queue consumer Consumer string // Meta POST parameter // // Meta data for queue Meta messagebus.QueueSettingsMeta } QueuesRead struct { // QueueID PATH parameter // // Queue ID QueueID uint64 `json:",string"` } QueuesUpdate struct { // QueueID PATH parameter // // Queue ID QueueID uint64 `json:",string"` // Queue POST parameter // // Name of queue Queue string // Consumer POST parameter // // Queue consumer Consumer string // Meta POST parameter // // Meta data for queue Meta messagebus.QueueSettingsMeta } QueuesDelete struct { // QueueID PATH parameter // // Queue ID QueueID uint64 `json:",string"` } QueuesUndelete struct { // QueueID PATH parameter // // Queue ID QueueID uint64 `json:",string"` } ) // NewQueuesList request func NewQueuesList() *QueuesList { return &QueuesList{} } // Auditable returns all auditable/loggable parameters func (r QueuesList) Auditable() map[string]interface{} { return map[string]interface{}{ "query": r.Query, "limit": r.Limit, "pageCursor": r.PageCursor, "sort": r.Sort, "deleted": r.Deleted, } } // Auditable returns all auditable/loggable parameters func (r QueuesList) GetQuery() string { return r.Query } // Auditable returns all auditable/loggable parameters func (r QueuesList) GetLimit() uint { return r.Limit } // Auditable returns all auditable/loggable parameters func (r QueuesList) GetPageCursor() string { return r.PageCursor } // Auditable returns all auditable/loggable parameters func (r QueuesList) GetSort() string { return r.Sort } // Auditable returns all auditable/loggable parameters func (r QueuesList) GetDeleted() uint { return r.Deleted } // Fill processes request and fills internal variables func (r *QueuesList) Fill(req *http.Request) (err error) { { // GET params tmp := req.URL.Query() if val, ok := tmp["query"]; ok && len(val) > 0 { r.Query, err = val[0], nil if err != nil { return err } } if val, ok := tmp["limit"]; ok && len(val) > 0 { r.Limit, err = payload.ParseUint(val[0]), nil if err != nil { return err } } if val, ok := tmp["pageCursor"]; ok && len(val) > 0 { r.PageCursor, err = val[0], nil if err != nil { return err } } if val, ok := tmp["sort"]; ok && len(val) > 0 { r.Sort, err = val[0], nil if err != nil { return err } } if val, ok := tmp["deleted"]; ok && len(val) > 0 { r.Deleted, err = payload.ParseUint(val[0]), nil if err != nil { return err } } } return err } // NewQueuesCreate request func NewQueuesCreate() *QueuesCreate { return &QueuesCreate{} } // Auditable returns all auditable/loggable parameters func (r QueuesCreate) Auditable() map[string]interface{} { return map[string]interface{}{ "queue": r.Queue, "consumer": r.Consumer, "meta": r.Meta, } } // Auditable returns all auditable/loggable parameters func (r QueuesCreate) GetQueue() string { return r.Queue } // Auditable returns all auditable/loggable parameters func (r QueuesCreate) GetConsumer() string { return r.Consumer } // Auditable returns all auditable/loggable parameters func (r QueuesCreate) GetMeta() messagebus.QueueSettingsMeta { return r.Meta } // Fill processes request and fills internal variables func (r *QueuesCreate) Fill(req *http.Request) (err error) { if strings.ToLower(req.Header.Get("content-type")) == "application/json" { err = json.NewDecoder(req.Body).Decode(r) switch { case err == io.EOF: err = nil case err != nil: return fmt.Errorf("error parsing http request body: %w", err) } } { if err = req.ParseForm(); err != nil { return err } // POST params if val, ok := req.Form["queue"]; ok && len(val) > 0 { r.Queue, err = val[0], nil if err != nil { return err } } if val, ok := req.Form["consumer"]; ok && len(val) > 0 { r.Consumer, err = val[0], nil if err != nil { return err } } if val, ok := req.Form["meta[]"]; ok { r.Meta, err = messagebus.ParseQueueSettingsMeta(val) if err != nil { return err } } else if val, ok := req.Form["meta"]; ok { r.Meta, err = messagebus.ParseQueueSettingsMeta(val) if err != nil { return err } } } return err } // NewQueuesRead request func NewQueuesRead() *QueuesRead { return &QueuesRead{} } // Auditable returns all auditable/loggable parameters func (r QueuesRead) Auditable() map[string]interface{} { return map[string]interface{}{ "queueID": r.QueueID, } } // Auditable returns all auditable/loggable parameters func (r QueuesRead) GetQueueID() uint64 { return r.QueueID } // Fill processes request and fills internal variables func (r *QueuesRead) Fill(req *http.Request) (err error) { { var val string // path params val = chi.URLParam(req, "queueID") r.QueueID, err = payload.ParseUint64(val), nil if err != nil { return err } } return err } // NewQueuesUpdate request func NewQueuesUpdate() *QueuesUpdate { return &QueuesUpdate{} } // Auditable returns all auditable/loggable parameters func (r QueuesUpdate) Auditable() map[string]interface{} { return map[string]interface{}{ "queueID": r.QueueID, "queue": r.Queue, "consumer": r.Consumer, "meta": r.Meta, } } // Auditable returns all auditable/loggable parameters func (r QueuesUpdate) GetQueueID() uint64 { return r.QueueID } // Auditable returns all auditable/loggable parameters func (r QueuesUpdate) GetQueue() string { return r.Queue } // Auditable returns all auditable/loggable parameters func (r QueuesUpdate) GetConsumer() string { return r.Consumer } // Auditable returns all auditable/loggable parameters func (r QueuesUpdate) GetMeta() messagebus.QueueSettingsMeta { return r.Meta } // Fill processes request and fills internal variables func (r *QueuesUpdate) Fill(req *http.Request) (err error) { if strings.ToLower(req.Header.Get("content-type")) == "application/json" { err = json.NewDecoder(req.Body).Decode(r) switch { case err == io.EOF: err = nil case err != nil: return fmt.Errorf("error parsing http request body: %w", err) } } { if err = req.ParseForm(); err != nil { return err } // POST params if val, ok := req.Form["queue"]; ok && len(val) > 0 { r.Queue, err = val[0], nil if err != nil { return err } } if val, ok := req.Form["consumer"]; ok && len(val) > 0 { r.Consumer, err = val[0], nil if err != nil { return err } } if val, ok := req.Form["meta[]"]; ok { r.Meta, err = messagebus.ParseQueueSettingsMeta(val) if err != nil { return err } } else if val, ok := req.Form["meta"]; ok { r.Meta, err = messagebus.ParseQueueSettingsMeta(val) if err != nil { return err } } } { var val string // path params val = chi.URLParam(req, "queueID") r.QueueID, err = payload.ParseUint64(val), nil if err != nil { return err } } return err } // NewQueuesDelete request func NewQueuesDelete() *QueuesDelete { return &QueuesDelete{} } // Auditable returns all auditable/loggable parameters func (r QueuesDelete) Auditable() map[string]interface{} { return map[string]interface{}{ "queueID": r.QueueID, } } // Auditable returns all auditable/loggable parameters func (r QueuesDelete) GetQueueID() uint64 { return r.QueueID } // Fill processes request and fills internal variables func (r *QueuesDelete) Fill(req *http.Request) (err error) { { var val string // path params val = chi.URLParam(req, "queueID") r.QueueID, err = payload.ParseUint64(val), nil if err != nil { return err } } return err } // NewQueuesUndelete request func NewQueuesUndelete() *QueuesUndelete { return &QueuesUndelete{} } // Auditable returns all auditable/loggable parameters func (r QueuesUndelete) Auditable() map[string]interface{} { return map[string]interface{}{ "queueID": r.QueueID, } } // Auditable returns all auditable/loggable parameters func (r QueuesUndelete) GetQueueID() uint64 { return r.QueueID } // Fill processes request and fills internal variables func (r *QueuesUndelete) Fill(req *http.Request) (err error) { { var val string // path params val = chi.URLParam(req, "queueID") r.QueueID, err = payload.ParseUint64(val), nil if err != nil { return err } } return err }
e-taka/xmlbeans
test/src/xmlobject/extensions/interfaceFeature/averageCase/existing/FooHandler.java
/* Copyright 2004 The Apache Software Foundation * * 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 xmlobject.extensions.interfaceFeature.averageCase.existing; import interfaceFeature.xbean.averageCase.purchaseOrder.PurchaseOrderDocument ; import interfaceFeature.xbean.averageCase.purchaseOrder.PurchaseOrderType; import interfaceFeature.xbean.averageCase.purchaseOrder.Items.Item; import org.apache.xmlbeans.XmlObject; public class FooHandler { public static int getTotal(XmlObject xo) { PurchaseOrderDocument poDoc= (PurchaseOrderDocument)xo; int sum=0; Item[] items=poDoc.getPurchaseOrder().getItems().getItemArray(); for (int i=0; i<items.length; i++) sum+=items[i].getUSPrice().intValue(); return sum; } // The following methods are being added to test JIRA isssue XMLBEANS-206 public static String getName(XmlObject xo, String s) { return "getName-1arg-" + s; } public static String getName(XmlObject xo, String s, int i) { return "getName-2arg-" + s + "-" + i; } }
lucashsouza/Desafios-Python
CursoEmVideo/Aula17/ex081.py
print('=' * 30) print('{:^30}'.format('Lista')) print('=' * 30) print('') lista = [] c = 1 while True: n = int(input(f'{c}° Valor: ')) resp = str(input('Continuar (S/N): ')).upper().strip() print('') lista.append(n) if resp == 'S': c += 1 else: print('=' * 30) print('{:^30}'.format('Analisando a lista')) print('=' * 30) break print('') print(f'Foram digitados: {len(lista)} número(s).') print('') lista.sort(reverse=True) print(f'Decrescente: {lista}') print('') if 5 in lista: print('O número 5 está na lista') else: print('O número 5 não está na lista') print('') print(f'Lista completa (ordem que foi digitada):\n{lista}')
Clay-Ferguson/Quantizr
src/main/java/quanta/response/GetNodeStatsResponse.java
package quanta.response; import java.util.ArrayList; import quanta.response.base.ResponseBase; public class GetNodeStatsResponse extends ResponseBase { private String stats; private ArrayList<String> topWords; private ArrayList<String> topTags; private ArrayList<String> topMentions; public String getStats() { return stats; } public void setStats(String stats) { this.stats = stats; } public ArrayList<String> getTopWords() { return topWords; } public void setTopWords(ArrayList<String> topWords) { this.topWords = topWords; } public ArrayList<String> getTopTags() { return topTags; } public void setTopTags(ArrayList<String> topTags) { this.topTags = topTags; } public ArrayList<String> getTopMentions() { return topMentions; } public void setTopMentions(ArrayList<String> topMentions) { this.topMentions = topMentions; } }
DronMDF/goost
goost/magma/SboxByte64Tab.cpp
// Copyright (c) 2017-2021 <NAME> <<EMAIL>> // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include "SboxByte64Tab.h" using namespace std; using namespace goost::magma; SboxByte64Tab::SboxByte64Tab(const vector<uint8_t> &uz, int offset) : uz(uz), offset(offset) { } uint32_t SboxByte64Tab::translate(int index) const { return (uz[((index >> 4) & 0xf) * 4 + offset] & 0xf0) + (uz[(index & 0xf) * 4 + offset] & 0x0f); }
namuan/dev-rider
app/core/constants.py
from PyQt5.QtCore import Qt TOOLS_COMBO_ROLE = Qt.UserRole + 100 DEVTOOLS_COMBO_NAME = "DevTools"
Snackhole/PyFifth
Interface/Dialogs/EditInitiativeEntryDialog.py
import copy from PyQt5 import QtCore from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QMessageBox, QPushButton, QSpinBox from Interface.Widgets.CenteredLineEdit import CenteredLineEdit from Interface.Widgets.ToggleButtons import AliveButton, TurnTakenButton class EditInitiativeEntryDialog(QDialog): def __init__(self, EncounterWindow, InitiativeOrder, EntryIndex, AddMode=False): super().__init__(parent=EncounterWindow) # Store Parameters self.EncounterWindow = EncounterWindow self.InitiativeOrder = InitiativeOrder self.EntryIndex = EntryIndex # Variables self.Entry = self.InitiativeOrder[self.EntryIndex] self.EntryOriginalState = copy.deepcopy(self.Entry) self.UnsavedChanges = False self.Cancelled = False # Labels self.PromptLabel = QLabel("Add this initiative entry:" if AddMode else "Edit this initiative entry:") self.PromptLabel.setAlignment(QtCore.Qt.AlignCenter) self.CreatureNameLabel = QLabel("Creature Name:") self.InitiativeLabel = QLabel("Initiative:") self.TiePriorityLabel = QLabel("Tie Priority:") self.ConditionsLabel = QLabel("Conditions:") self.LocationLabel = QLabel("Location:") self.NotesLabel = QLabel("Notes:") # Entry Inputs self.CreatureNameLineEdit = CenteredLineEdit() self.CreatureNameLineEdit.setText(self.Entry["Creature Name"]) self.CreatureNameLineEdit.textChanged.connect(self.UpdateEntry) self.InitiativeSpinBox = QSpinBox() self.InitiativeSpinBox.setAlignment(QtCore.Qt.AlignCenter) self.InitiativeSpinBox.setButtonSymbols(self.InitiativeSpinBox.NoButtons) self.InitiativeSpinBox.setRange(-1000000000, 1000000000) self.InitiativeSpinBox.setValue(self.Entry["Initiative"]) self.InitiativeSpinBox.valueChanged.connect(self.UpdateEntry) self.TiePrioritySpinBox = QSpinBox() self.TiePrioritySpinBox.setAlignment(QtCore.Qt.AlignCenter) self.TiePrioritySpinBox.setButtonSymbols(self.TiePrioritySpinBox.NoButtons) self.TiePrioritySpinBox.setRange(1, 1000000000) self.TiePrioritySpinBox.setValue(self.Entry["Tie Priority"]) self.TiePrioritySpinBox.valueChanged.connect(self.UpdateEntry) self.ConditionsLineEdit = CenteredLineEdit() self.ConditionsLineEdit.setText(self.Entry["Conditions"]) self.ConditionsLineEdit.textChanged.connect(self.UpdateEntry) self.LocationLineEdit = CenteredLineEdit() self.LocationLineEdit.setText(self.Entry["Location"]) self.LocationLineEdit.textChanged.connect(self.UpdateEntry) self.NotesLineEdit = CenteredLineEdit() self.NotesLineEdit.setText(self.Entry["Notes"]) self.NotesLineEdit.textChanged.connect(self.UpdateEntry) self.TurnTakenButton = TurnTakenButton(self.UpdateEntry) self.TurnTakenButton.setChecked(self.Entry["Turn Taken"]) self.AliveButton = AliveButton(self.UpdateEntry) self.AliveButton.setChecked(self.Entry["Alive"]) # Dialog Buttons self.DoneButton = QPushButton("Done") self.DoneButton.clicked.connect(self.Done) self.DoneButton.setDefault(True) self.DoneButton.setAutoDefault(True) self.CancelButton = QPushButton("Cancel") self.CancelButton.clicked.connect(self.Cancel) # Layout self.Layout = QGridLayout() self.Layout.addWidget(self.PromptLabel, 0, 0, 1, 2) self.Layout.addWidget(self.CreatureNameLabel, 1, 0) self.Layout.addWidget(self.CreatureNameLineEdit, 1, 1) self.Layout.addWidget(self.InitiativeLabel, 2, 0) self.Layout.addWidget(self.InitiativeSpinBox, 2, 1) self.Layout.addWidget(self.TiePriorityLabel, 3, 0) self.Layout.addWidget(self.TiePrioritySpinBox, 3, 1) self.Layout.addWidget(self.ConditionsLabel, 4, 0) self.Layout.addWidget(self.ConditionsLineEdit, 4, 1) self.Layout.addWidget(self.LocationLabel, 5, 0) self.Layout.addWidget(self.LocationLineEdit, 5, 1) self.Layout.addWidget(self.NotesLabel, 6, 0) self.Layout.addWidget(self.NotesLineEdit, 6, 1) self.ToggleButtonsLayout = QGridLayout() self.ToggleButtonsLayout.addWidget(self.TurnTakenButton, 0, 0) self.ToggleButtonsLayout.addWidget(self.AliveButton, 0, 1) self.Layout.addLayout(self.ToggleButtonsLayout, 7, 0, 1, 2) self.DialogButtonsLayout = QGridLayout() self.DialogButtonsLayout.addWidget(self.DoneButton, 0, 0) self.DialogButtonsLayout.addWidget(self.CancelButton, 0, 1) self.Layout.addLayout(self.DialogButtonsLayout, 8, 0, 1, 2) self.setLayout(self.Layout) # Set Window Title and Icon self.setWindowTitle(self.EncounterWindow.ScriptName) self.setWindowIcon(self.EncounterWindow.WindowIcon) # Select Text in Name Line Edit self.CreatureNameLineEdit.selectAll() # Execute Dialog self.exec_() def UpdateEntry(self): if not self.ValidInput(): return self.Entry["Creature Name"] = self.CreatureNameLineEdit.text() self.Entry["Initiative"] = self.InitiativeSpinBox.value() self.Entry["Tie Priority"] = self.TiePrioritySpinBox.value() self.Entry["Conditions"] = self.ConditionsLineEdit.text() self.Entry["Location"] = self.LocationLineEdit.text() self.Entry["Notes"] = self.NotesLineEdit.text() self.Entry["Turn Taken"] = self.TurnTakenButton.isChecked() self.Entry["Alive"] = self.AliveButton.isChecked() self.UnsavedChanges = True def Done(self): if self.ValidInput(Alert=True): self.close() def Cancel(self): self.Entry.update(self.EntryOriginalState) self.UnsavedChanges = False self.Cancelled = True self.close() def ValidInput(self, Alert=False): if self.CreatureNameLineEdit.text() == "": if Alert: self.EncounterWindow.DisplayMessageBox("Initiative entries must have a creature name.", Icon=QMessageBox.Warning, Parent=self) return False return True
baviera08/romi-dashboard
packages/api-server/api_server/models/test_tasks.py
import unittest from itertools import product from pydantic import ValidationError from rmf_task_msgs.msg import TaskType as RmfTaskType from .tasks import SubmitTask class TestSubmitTaskModel(unittest.TestCase): def test_validate_task_description(self): clean_desc = {"cleaning_zone": "test_zone"} loop_desc = { "num_loops": 1, "start_name": "start", "finish_name": "finish", } delivery_desc = { "pickup_place_name": "pickup_place", "pickup_dispenser": "pickup_dispenser", "dropoff_ingestor": "dropoff_ingestor", "dropoff_place_name": "dropoff_place_name", } task_types = { RmfTaskType.TYPE_CLEAN: clean_desc, RmfTaskType.TYPE_LOOP: loop_desc, RmfTaskType.TYPE_DELIVERY: delivery_desc, } for task_type, desc in product(task_types, task_types.values()): # success when task type matches description if task_types[task_type] is desc: SubmitTask( task_type=task_type, start_time=0, description=desc, ) else: # fails when sending description with wrong task type self.assertRaises( ValidationError, SubmitTask, task_type=task_type, start_time=0, desc=desc, )
BearerPipelineTest/sourcegraph
internal/codeintel/symbols/service.go
<reponame>BearerPipelineTest/sourcegraph package symbols import ( "context" "github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/internal/store" "github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/shared" "github.com/sourcegraph/sourcegraph/internal/observation" "github.com/sourcegraph/sourcegraph/lib/errors" ) type Service struct { symbolsStore Store operations *operations } func newService(symbolsStore Store, observationContext *observation.Context) *Service { return &Service{ symbolsStore: symbolsStore, operations: newOperations(observationContext), } } type Symbol = shared.Symbol type SymbolOpts struct { } func (s *Service) Symbol(ctx context.Context, opts SymbolOpts) (symbols []Symbol, err error) { ctx, _, endObservation := s.operations.symbol.With(ctx, &err, observation.Args{}) defer endObservation(1, observation.Args{}) // To be implemented in https://github.com/sourcegraph/sourcegraph/issues/33374 _, _ = s.symbolsStore.List(ctx, store.ListOpts{}) return nil, errors.Newf("unimplemented: symbols.Symbol") }
SWuchterl/cmssw
ElectroWeakAnalysis/ZMuMu/test/old/zToMuMuBackgroundAnalysis.py
from __future__ import print_function import FWCore.ParameterSet.Config as cms import copy process = cms.Process("ZToMuMuBackgroundAnalysis") process.include("FWCore/MessageLogger/data/MessageLogger.cfi") process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source( "PoolSource", fileNames = cms.untracked.vstring( "file:/scratch1/users/fabozzi/patv2_skim/testSkim_v2.root" ) ) process.TFileService = cms.Service( "TFileService", fileName = cms.string("test.root") ) zSelection = cms.PSet( cut = cms.string("charge = 0 & daughter(0).pt > 20 & daughter(1).pt > 20 & abs(daughter(0).eta)<2 & abs(daughter(1).eta)<2 & mass > 20"), isoCut = cms.double(3.0), isolationType = cms.string("track") ) process.goodZToMuMu = cms.EDFilter( "ZToMuMuIsolatedSelector", zSelection, src = cms.InputTag("dimuonsGlobal"), filter = cms.bool(True) ) process.nonIsolatedZToMuMu = cms.EDFilter( "ZToMuMuNonIsolatedSelector", zSelection, src = cms.InputTag("dimuonsGlobal"), filter = cms.bool(True) ) process.zToMuGlobalMuOneTrack = cms.EDFilter( "CandViewRefSelector", cut = cms.string("daughter(0).isGlobalMuon = 1"), src = cms.InputTag("dimuonsOneTrack"), filter = cms.bool(True) ) process.zToMuMuOneTrack = cms.EDFilter( "ZToMuMuIsolatedSelector", zSelection, src = cms.InputTag("zToMuGlobalMuOneTrack"), filter = cms.bool(True) ) process.zToMuMuOneStandAloneMuon = cms.EDFilter( "ZToMuMuIsolatedSelector", zSelection, src = cms.InputTag("dimuonsOneStandAloneMuon"), filter = cms.bool(True) ) process.goodZToMuMuOneTrack = cms.EDFilter( "ZMuMuOverlapExclusionSelector", src = cms.InputTag("zToMuMuOneTrack"), overlap = cms.InputTag("goodZToMuMu"), filter = cms.bool(True) ) process.goodZToMuMuOneStandAloneMuon = cms.EDFilter( "ZMuMuOverlapExclusionSelector", src = cms.InputTag("zToMuMuOneStandAloneMuon"), overlap = cms.InputTag("goodZToMuMu"), filter = cms.bool(True) ) goodZToMuMuTemplate = cms.EDFilter( "CandViewRefSelector", cut = cms.string("replace this string with your cut"), src = cms.InputTag("goodZToMuMu"), filter = cms.bool(False) ) zPlots = cms.PSet( histograms = cms.VPSet( cms.PSet( min = cms.untracked.double(0.0), max = cms.untracked.double(200.0), nbins = cms.untracked.int32(200), name = cms.untracked.string("zMass"), description = cms.untracked.string("Z mass [GeV/c^{2}]"), plotquantity = cms.untracked.string("mass") ), cms.PSet( min = cms.untracked.double(0.0), max = cms.untracked.double(200.0), nbins = cms.untracked.int32(200), name = cms.untracked.string("mu1Pt"), description = cms.untracked.string("Highest muon p_{t} [GeV/c]"), plotquantity = cms.untracked.string("max(daughter(0).pt,daughter(1).pt)") ), cms.PSet( min = cms.untracked.double(0.0), max = cms.untracked.double(200.0), nbins = cms.untracked.int32(200), name = cms.untracked.string("mu2Pt"), description = cms.untracked.string("Lowest muon p_{t} [GeV/c]"), plotquantity = cms.untracked.string("min(daughter(0).pt,daughter(1).pt)") ) ) ) goodZToMuMuPlotsTemplate = cms.EDAnalyzer( "CandViewHistoAnalyzer", zPlots, src = cms.InputTag("goodZToMuMu") ) process.goodZToMuMuPlots = goodZToMuMuPlotsTemplate nonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlotsTemplate) nonIsolatedZToMuMuPlots.src = cms.InputTag("nonIsolatedZToMuMu") setattr(process, "nonIsolatedZToMuMuPlots", nonIsolatedZToMuMuPlots) etaBounds = [-2, -1.5, -1, -0.5, 0, 0.5, 1, 1.5, 2.0] def addModulesFromTemplate(sequence, moduleLabel, src, probeSelection): print("selection for: ", moduleLabel) for i in range(len(etaBounds)-1): etaMin = etaBounds[i] etaMax = etaBounds[i+1] module = copy.deepcopy(goodZToMuMuTemplate) if probeSelection == "single": cut = "%5.3f < daughter(1).eta < %5.3f" %(etaMin, etaMax) elif probeSelection == "double": cut = "%5.3f < daughter(0).eta < %5.3f | %5.3f < daughter(1).eta < %5.3f" %(etaMin, etaMax, etaMin, etaMax) print(i, ") cut = ", cut) setattr(module, "cut", cut) setattr(module, "src", cms.InputTag(src)) copyModuleLabel = moduleLabel + str(i) setattr(process, copyModuleLabel, module) if sequence == None: sequence = module else: sequence = sequence + module plotModule = copy.deepcopy(goodZToMuMuPlotsTemplate) setattr(plotModule, "src", cms.InputTag(copyModuleLabel)) for h in plotModule.histograms: h.description.setValue(h.description.value() + ": " + "#eta: [%5.3f, %5.3f]" %(etaMin, etaMax)) plotModuleLabel = moduleLabel + "Plots" + str(i) setattr(process, plotModuleLabel, plotModule) sequence = sequence + plotModule path = cms.Path(sequence) setattr(process, moduleLabel+"Path", path) process.eventInfo = cms.OutputModule ( "AsciiOutputModule" ) process.goodZToMuMuPlots = goodZToMuMuPlotsTemplate process.goodZToMuMuOneStandAloneMuonPlots = copy.deepcopy(goodZToMuMuPlotsTemplate) process.goodZToMuMuOneStandAloneMuonPlots.src = cms.InputTag("goodZToMuMuOneStandAloneMuon") process.goodZToMuMuOneTrackPlots = copy.deepcopy(goodZToMuMuPlotsTemplate) process.goodZToMuMuOneTrackPlots.src = cms.InputTag("goodZToMuMuOneTrack") addModulesFromTemplate( process.goodZToMuMu + process.goodZToMuMuPlots, "goodZToMuMu", "goodZToMuMu", "double") process.nonIsolatedZToMuMuPath = cms.Path ( process.nonIsolatedZToMuMu + process.nonIsolatedZToMuMuPlots, ) addModulesFromTemplate( ~process.goodZToMuMu + process.zToMuMuOneStandAloneMuon + process.goodZToMuMuOneStandAloneMuon + process.goodZToMuMuOneStandAloneMuonPlots, "goodZToMuMuOneStandAloneMuon", "goodZToMuMuOneStandAloneMuon", "single") addModulesFromTemplate( ~process.goodZToMuMu + ~process.zToMuMuOneStandAloneMuon + process.zToMuGlobalMuOneTrack + process.zToMuMuOneTrack + process.goodZToMuMuOneTrack + process.goodZToMuMuOneTrackPlots, "goodZToMuMuOneTrack", "goodZToMuMuOneTrack", "single") process.endPath = cms.EndPath( process.eventInfo )
geogriff/wwwjdic
wwwjdic/src/org/nick/wwwjdic/ExampleSearchFragment.java
package org.nick.wwwjdic; import org.nick.wwwjdic.history.HistoryDbHelper; import org.nick.wwwjdic.model.SearchCriteria; import org.nick.wwwjdic.utils.StringUtils; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; import android.widget.Spinner; import android.widget.TextView; public class ExampleSearchFragment extends WwwjdicFragmentBase implements OnClickListener, OnItemSelectedListener { private EditText exampleSearchInputText; private EditText maxNumExamplesText; private CheckBox exampleExactMatchCb; private Spinner sentenceModeSpinner; private Button exampleSearchButton; private HistoryDbHelper dbHelper; @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); findViews(); setupListeners(); setupSpinners(); exampleSearchInputText.requestFocus(); Bundle extras = getArguments(); if (extras == null) { extras = getActivity().getIntent().getExtras(); } if (extras != null) { String searchKey = extras.getString(Wwwjdic.EXTRA_SEARCH_TEXT); int searchType = extras.getInt(Wwwjdic.EXTRA_SEARCH_TYPE); if (searchKey != null) { switch (searchType) { case SearchCriteria.CRITERIA_TYPE_EXAMPLES: exampleSearchInputText.setText(searchKey); break; default: // do nothing } inputTextFromBundle = true; } } dbHelper = HistoryDbHelper.getInstance(getActivity()); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.example_search, container, false); return v; } @Override public void onDestroy() { super.onDestroy(); } @Override public void onPause() { super.onPause(); WwwjdicPreferences.setSentenceModeIdx(getActivity(), sentenceModeSpinner.getSelectedItemPosition()); } @Override public void onResume() { super.onResume(); sentenceModeSpinner.setSelection(WwwjdicPreferences .getSentenceModeIdx(getActivity())); } private void setupListeners() { View exampleSearchButton = getView().findViewById( R.id.exampleSearchButton); exampleSearchButton.setOnClickListener(this); } private void setupSpinners() { ArrayAdapter<CharSequence> sentenceModeAdapter = ArrayAdapter .createFromResource(getActivity(), R.array.sentence_modes, R.layout.spinner_text); sentenceModeAdapter .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); sentenceModeSpinner.setAdapter(sentenceModeAdapter); sentenceModeSpinner.setOnItemSelectedListener(this); } public void onClick(View v) { if (v.getId() == R.id.exampleSearchButton) { search(); } } private void search() { if (getActivity() == null) { return; } String queryString = exampleSearchInputText.getText().toString(); if (TextUtils.isEmpty(queryString)) { return; } if (sentenceModeSpinner.getSelectedItemPosition() == 0) { int numMaxResults = 20; try { numMaxResults = Integer.parseInt(maxNumExamplesText .getText().toString()); } catch (NumberFormatException e) { } SearchCriteria criteria = SearchCriteria .createForExampleSearch(queryString.trim(), exampleExactMatchCb.isChecked(), numMaxResults); Intent intent = new Intent(getActivity(), ExamplesResultList.class); intent.putExtra(Wwwjdic.EXTRA_CRITERIA, criteria); if (!StringUtils.isEmpty(criteria.getQueryString())) { dbHelper.addSearchCriteria(criteria); } startActivity(intent); } else { Intent intent = new Intent(getActivity(), SentenceBreakdown.class); intent.putExtra(SentenceBreakdown.EXTRA_SENTENCE, queryString); startActivity(intent); } } private void findViews() { exampleSearchInputText = (EditText) getView().findViewById( R.id.exampleInputText); exampleSearchInputText .setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_SEARCH) { search(); return true; } return false; } }); maxNumExamplesText = (EditText) getView().findViewById( R.id.maxExamplesInput); exampleExactMatchCb = (CheckBox) getView().findViewById( R.id.exampleExactMatchCb); sentenceModeSpinner = (Spinner) getView() .findViewById(R.id.modeSpinner); exampleSearchButton = (Button) getView().findViewById( R.id.exampleSearchButton); } public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { if (inputTextFromBundle) { inputTextFromBundle = false; return; } if (parent.getId() == R.id.modeSpinner) { boolean isExampleSearch = position == 0; boolean clear = getExtrasSearchKey() == null; toggleExampleOptions(isExampleSearch, clear); } } private String getExtrasSearchKey() { Bundle extras = getActivity().getIntent().getExtras(); if (extras == null) { return null; } return extras.getString(Wwwjdic.EXTRA_SEARCH_TEXT); } private void toggleExampleOptions(boolean isEnabled, boolean clear) { maxNumExamplesText.setEnabled(isEnabled); exampleExactMatchCb.setEnabled(isEnabled); maxNumExamplesText.setFocusableInTouchMode(isEnabled); if (clear) { exampleSearchInputText.setText(""); } exampleSearchInputText.requestFocus(); if (!isEnabled) { if (clear) { exampleSearchInputText.setHint(R.string.enter_japanese_text); } exampleSearchButton.setText(R.string.translate); } else { if (clear) { exampleSearchInputText.setHint(R.string.enter_eng_or_jap); } exampleSearchButton.setText(R.string.search); } } public void onNothingSelected(AdapterView<?> parent) { } }
hariharanragothaman/Learning-STL
algorithms/binarySearch/binarySearch.cpp
<gh_stars>1-10 /* Some General Advice REMEMBER CLEAR GLOBAL STATE REMEMBER READ THE PROBLEM STATEMENT AND DON'T SOLVE A DIFFERENT PROBLEM remember hidden T factor of 1e2 read the bounds for stupid cases did you restart your editor pushing back vectors is garbage, pre-initialize them function calls are not free */ #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC optimize("inline") #include <iostream> #include <fstream> #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <cstring> #include <iomanip> #include <iostream> #include <fstream> #include <sstream> using namespace std; // For Hash #include <functional> // For all useful constants #include <climits> // Data-Structures and related stuff. #include <map> #include <set> #include <stack> #include <random> #include <deque> #include <queue> // Includes Priority Queue #include <vector> #include <unordered_map> #include <unordered_set> // Some basic typedef's for comfort typedef vector<int> vi; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; // #defines for bounds comfort #define double long double // #defines for comfort #define f first #define s second #define mp make_pair #define pb push_back #define eb emplace_back // Binary Search comforts #define lb lower_bound #define ub upper_bound #define debug(x) cout << #x << " is " << x << endl vector<int> sieve(int n) { int*arr = new int[n + 1](); vector<int> vect; for (int i = 2; i <= n; i++) if (arr[i] == 0) { vect.push_back(i); for (int j = 2 * i; j <= n; j += i) arr[j] = 1; } return vect; } ll gcd(ll a, ll b) { if (b > a) { return gcd(b, a); } if (b == 0) { return a; } return gcd(b, a % b); } ll expo(ll a, ll b, ll mod) { ll res = 1; while (b > 0) { if (b & 1)res = (res * a) % mod; a = (a * a) % mod; b = b >> 1; } return res; } void extendgcd(ll a, ll b, ll*v) { if (b == 0) { v[0] = 1; //pass an arry of size 3 v[1] = 0; v[2] = a; return ; } extendgcd(b, a % b, v); ll x = v[1]; v[1] = v[0] - v[1] * (a / b); v[0] = x; return; } ll mminv(ll a, ll b) { ll arr[3]; //for non prime b extendgcd(a, b, arr); return arr[0]; } ll mminvprime(ll a, ll b) { return expo(a, b - 2, b); } bool revsort(ll a, ll b) { return a > b; } void swap(int &x, int &y) { int temp = x; x = y; y = temp; } ll combination(ll n, ll r, ll m, ll* fact) { ll val1 = fact[n]; ll val2 = mminvprime(fact[r], m); ll val3 = mminvprime(fact[n - r], m); return ((val1 * val2) % m * val3) % m; } #define min(x,y) ({ __typeof__(x) __var0 = x; __typeof__(y) __var1 = y; __var0 < __var1 ? __var0 : __var1; }) #define max(x,y) ({ __typeof__(x) __var0 = x; __typeof__(y) __var1 = y; __var0 < __var1 ? __var1 : __var0; }) // BEGIN NO SAD #define rep(i, a, b) for(int i = a; i < (b); ++i) #define trav(a, x) for(auto& a : x) #define all(x) x.begin(), x.end() #define sz(x) (int)(x).size() // END NO SAD #define ONLINE_JUDGE /* IF not ONLINE_JUDGE Comment this line*/ #ifndef ONLINE_JUDGE ifstream i_data("../io/data.in"); ofstream o_data("../io/data.out"); #define cin i_data #define cout o_data #else #endif int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); vi arr1 = {10, 15, 20, 25, 30, 35}; vi arr2 = {10, 15, 20, 20, 25, 30, 35}; vi arr3 = {10, 15, 25, 30, 35}; /* Quick binary search template * We need to account for overflow's as well * */ int left = 1; int right = 100; int pivot = ((unsigned int)left + (unsigned int)right) >> 1; int target = 20; // Use Binary search to check if 20 exists if(binary_search(arr1.begin(), arr1.end(), target)) cout << target << " exists!" << endl; /* LOWER BOUND EXAMPLES */ // Getting the position of 20 using lower_bound - where in arr1 20 exists cout << "The position of 20 in arr1 is: (single occurs) " << lower_bound(arr1.begin(), arr1.end(), target) - arr1.begin() << endl; // Getting the position of 20 using lower_bound - where in arr1 20 exists multiple times cout << "The position of 20 in arr2 is: (multiple time occurs) " << lower_bound(arr2.begin(), arr2.end(), target) - arr2.begin() << endl; // Getting the position of 20 using lower_bound - where in arr1 20 does not exists - similar to bisect_left cout << "The position of 20 in arr3 if inserted: (does not exists) " << lower_bound(arr3.begin(), arr3.end(), target) - arr3.begin() << endl; /* UPPER BOUND EXAMPLES */ cout << "Upper Bound Examples..." << endl; // Returns index+1 if index exists - in single occurance cout << "The position of 20 in arr1 is: (single occurs) " << upper_bound(arr1.begin(), arr1.end(), target) - arr1.begin() << endl; // Returns last index+1 if multiple occurances cout << "The position of 20 in arr2 is: (multiple time occurs) " << upper_bound(arr2.begin(), arr2.end(), target) - arr2.begin() << endl; // If it doesn't exists - then returns similar to bisect_left it it doesn't exists cout << "The position of 20 in arr3 if inserted: (does not exists) " << upper_bound(arr3.begin(), arr3.end(), target) - arr3.begin() << endl; }
njonsson/htty
lib/htty/cli/commands/cookies_remove_all.rb
require 'htty' # Encapsulates the _cookies-remove-all_ command. class HTTY::CLI::Commands::CookiesRemoveAll < HTTY::CLI::Command # Returns the name of a category under which help for the _cookies-remove-all_ # command should appear. def self.category 'Building Requests' end # Returns the help text for the _cookies-remove-all_ command. def self.help 'Removes all cookies from the request' end # Returns the extended help text for the _cookies-remove-all_ command. def self.help_extended 'Removes all cookies used for the request. Does not communicate with the ' + 'host.' end # Returns related command classes for the _cookies-remove-all_ command. def self.see_also_commands [HTTY::CLI::Commands::Cookies, HTTY::CLI::Commands::CookiesRemove, HTTY::CLI::Commands::CookiesAdd, HTTY::CLI::Commands::CookiesUse] end # Performs the _cookies-remove-all_ command. def perform add_request_if_new do |request| request.cookies_remove_all(*arguments) end end end
mboperator/js-ipfs
src/core/components/dns.js
<reponame>mboperator/js-ipfs<gh_stars>1-10 'use strict' // dns-nodejs gets replaced by dns-browser when webpacked/browserified const dns = require('../runtime/dns-nodejs') const callbackify = require('callbackify') function fqdnFixups (domain) { // Allow resolution of .eth names via .eth.link // More context at the go-ipfs counterpart: https://github.com/ipfs/go-ipfs/pull/6448 if (domain.endsWith('.eth')) { domain = domain.replace(/.eth$/, '.eth.link') } return domain } module.exports = () => { return callbackify.variadic(async (domain, opts) => { // eslint-disable-line require-await opts = opts || {} if (typeof domain !== 'string') { throw new Error('Invalid arguments, domain must be a string') } domain = fqdnFixups(domain) return dns(domain, opts) }) }
gourmetjs/gourmet-ssr
contrib/react-i80/gmsrc/index.client.js
<filename>contrib/react-i80/gmsrc/index.client.js "use strict"; const parseHref = require("@gourmet/parse-href"); const Router = require("./Router"); const ActiveRoute = require("./ActiveRoute"); const Link = require("./Link"); class ClientRouter extends Router { setRenderer(renderer) { this.renderer = renderer; window.addEventListener("popstate", () => { this.goToUrl(window.location.href, false); }); } getTargetHref(gmctx) { if (gmctx.i80.switchToHref) return gmctx.i80.switchToHref; return window.location.href; } // - Relative path is not supported. // - `history`: true, false, or "replace" goToUrl(href, history=true) { function _load(href) { window.location = href; // initiate a new page request } const renderer = this.renderer; if (renderer) { const loc = window.location; const url = parseHref(href); let origin = url.origin; if (origin && origin.startsWith("//")) origin = loc.protocol + origin; if (!origin || origin === loc.origin) { renderer.render({ i80: { switchToHref: href, didSwitchToHref() { if (history === true) window.history.pushState({}, "", href); else if (history === "replace") window.history.replaceState({}, "", href); }, routeNotFound() { _load(href); } } }); } else { _load(href); } } else { console.error(`[@gourmet/react-i80] Renderer is not initialized, loading the URL instead: ${href}`); _load(href); } } } // - basePath: Default is `"/"`. // - caseSensitive: Default is `true`. // - strictSlash: Default is `false`. // - captureClick: Default is `true`. function i80(routes, options) { return ClientRouter.create(routes, options); } i80.ActiveRoute = ActiveRoute; i80.Link = Link; i80.getUrl = (...args) => Router.get().getUrl(...args); i80.goToUrl = (...args) => Router.get().goToUrl(...args); module.exports = i80;
jadarve/lluvia-docs
static/api/cpp/search/related_0.js
var searchData= [ ['computenode_863',['ComputeNode',['../classll_1_1ImageView.html#a07a1e2fed4b858385051df49020b2da4',1,'ll::ImageView']]] ];
kubermatic/go-kubermatic
client/operations/create_o_id_c_kubeconfig_responses.go
<filename>client/operations/create_o_id_c_kubeconfig_responses.go // Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/kubermatic/go-kubermatic/models" ) // CreateOIDCKubeconfigReader is a Reader for the CreateOIDCKubeconfig structure. type CreateOIDCKubeconfigReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *CreateOIDCKubeconfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewCreateOIDCKubeconfigOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil default: result := NewCreateOIDCKubeconfigDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewCreateOIDCKubeconfigOK creates a CreateOIDCKubeconfigOK with default headers values func NewCreateOIDCKubeconfigOK() *CreateOIDCKubeconfigOK { return &CreateOIDCKubeconfigOK{} } /* CreateOIDCKubeconfigOK describes a response with status code 200, with default header values. Kubeconfig is a clusters kubeconfig */ type CreateOIDCKubeconfigOK struct { Payload []uint8 } func (o *CreateOIDCKubeconfigOK) Error() string { return fmt.Sprintf("[GET /api/v1/kubeconfig][%d] createOIdCKubeconfigOK %+v", 200, o.Payload) } func (o *CreateOIDCKubeconfigOK) GetPayload() []uint8 { return o.Payload } func (o *CreateOIDCKubeconfigOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil } // NewCreateOIDCKubeconfigDefault creates a CreateOIDCKubeconfigDefault with default headers values func NewCreateOIDCKubeconfigDefault(code int) *CreateOIDCKubeconfigDefault { return &CreateOIDCKubeconfigDefault{ _statusCode: code, } } /* CreateOIDCKubeconfigDefault describes a response with status code -1, with default header values. errorResponse */ type CreateOIDCKubeconfigDefault struct { _statusCode int Payload *models.ErrorResponse } // Code gets the status code for the create o ID c kubeconfig default response func (o *CreateOIDCKubeconfigDefault) Code() int { return o._statusCode } func (o *CreateOIDCKubeconfigDefault) Error() string { return fmt.Sprintf("[GET /api/v1/kubeconfig][%d] createOIDCKubeconfig default %+v", o._statusCode, o.Payload) } func (o *CreateOIDCKubeconfigDefault) GetPayload() *models.ErrorResponse { return o.Payload } func (o *CreateOIDCKubeconfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.ErrorResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
leusonmario/2022PhDThesis
webbit/74d2d2b87704d003acacb34e4ca8fb5f897b938f/randoop_5/RegressionTest27.java
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class RegressionTest27 { public static boolean debug = false; @Test public void test13501() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13501"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, 1, 0, 100]"); } @Test public void test13502() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13502"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 0, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 0, 0, 100]"); } @Test public void test13503() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13503"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 10, (byte) 100, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 10, 100, 10, 0]"); } @Test public void test13504() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13504"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 10, (byte) 100, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 10, 100, 10, 100]"); } @Test public void test13505() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13505"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) -1, (byte) 10, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, -1, 10, 0, 10]"); } @Test public void test13506() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13506"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) -1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, -1, 0, 1, 1]"); } @Test public void test13507() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13507"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 1, (byte) 0, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 1, 0, 0, 100]"); } @Test public void test13508() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13508"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[10, 10, -1, 1, 1]"); } @Test public void test13509() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13509"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 100, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 100, 10, -1, 100]"); } @Test public void test13510() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13510"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) -1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, -1, -1, 100]"); } @Test public void test13511() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13511"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, -1, 100, 0, -1]"); } @Test public void test13512() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13512"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 100, (byte) 0, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 100, 0, 100, -1]"); } @Test public void test13513() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13513"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 10, (byte) 0, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 10, 0, 0, 10]"); } @Test public void test13514() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13514"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[1, -1, 0, 10, -1]"); } @Test public void test13515() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13515"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 10, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 10, 1, 0, 10]"); } @Test public void test13516() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13516"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 10, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 10, 10, 100]"); } @Test public void test13517() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13517"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 0, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 0, -1, 100, -1]"); } @Test public void test13518() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13518"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 10, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 10, -1, 10, 1]"); } @Test public void test13519() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13519"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) 1, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 10, 1, 100, 0]"); } @Test public void test13520() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13520"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 10, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 10, 0, 0, 1]"); } @Test public void test13521() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13521"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 1, (byte) 100, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 1, 100, -1, 10]"); } @Test public void test13522() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13522"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) -1, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, -1, 100, 0, 0]"); } @Test public void test13523() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13523"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) 100, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, 100, 1, 1]"); } @Test public void test13524() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13524"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) -1, (byte) -1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, -1, -1, 100, 1]"); } @Test public void test13525() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13525"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 100, 10, 10]"); } @Test public void test13526() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13526"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 100, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 100, 1, 0, 1]"); } @Test public void test13527() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13527"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 10, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 10, 0, 10, -1]"); } @Test public void test13528() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13528"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, -1, 0, 1, 1]"); } @Test public void test13529() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13529"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) -1, (byte) 100, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, -1, 100, 100, 0]"); } @Test public void test13530() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13530"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 0, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 0, -1, 10, 1]"); } @Test public void test13531() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13531"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) 100, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, 100, -1, 0]"); } @Test public void test13532() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13532"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 10, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 10, 100, 10, -1]"); } @Test public void test13533() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13533"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) 1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, 1, -1, -1]"); } @Test public void test13534() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13534"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) 1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, 1, 1, 1]"); } @Test public void test13535() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13535"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 1, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 1, 10, 0, -1]"); } @Test public void test13536() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13536"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 0, -1, 1, 0]"); } @Test public void test13537() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13537"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) 0, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, 0, -1, 1]"); } @Test public void test13538() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13538"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) 10, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, 10, 0, 1]"); } @Test public void test13539() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13539"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 1, (byte) 10, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 1, 10, 1, 1]"); } @Test public void test13540() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13540"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) -1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, -1, -1, 100]"); } @Test public void test13541() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13541"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) 1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 0, 1, 10, 10]"); } @Test public void test13542() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13542"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) 100, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, 100, -1, 0]"); } @Test public void test13543() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13543"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 1, 0, 1, 1]"); } @Test public void test13544() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13544"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) 1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, 1, 100, 1]"); } @Test public void test13545() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13545"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 100, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 0, 100, 1, 0]"); } @Test public void test13546() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13546"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, -1, 1, 0, 0]"); } @Test public void test13547() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13547"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 100, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 100, 10, 1, 0]"); } @Test public void test13548() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13548"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 0, 0, 10, -1]"); } @Test public void test13549() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13549"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) 10, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, 10, 0, 100]"); } @Test public void test13550() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13550"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 1, (byte) 1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 1, 1, -1, 1]"); } @Test public void test13551() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13551"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 100, (byte) 100, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 100, 100, 10, 10]"); } @Test public void test13552() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13552"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) -1, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, -1, 100, 1, 10]"); } @Test public void test13553() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13553"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 0, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 0, 10, 0, -1]"); } @Test public void test13554() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13554"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, 10, -1, 0]"); } @Test public void test13555() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13555"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 100, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 100, -1, 0, 1]"); } @Test public void test13556() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13556"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) -1, (byte) 0, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, -1, 0, 10, 1]"); } @Test public void test13557() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13557"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) 0, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, 0, 10, 0]"); } @Test public void test13558() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13558"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 10, -1, 1]"); } @Test public void test13559() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13559"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 1, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 1, 10, 1, 0]"); } @Test public void test13560() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13560"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, 10, 100, -1]"); } @Test public void test13561() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13561"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 1, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 1, -1, 1, 0]"); } @Test public void test13562() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13562"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 1, (byte) 10, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 1, 10, 100, 0]"); } @Test public void test13563() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13563"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) -1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, -1, 10, 10]"); } @Test public void test13564() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13564"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 100, (byte) 0, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 100, 0, 100, 1]"); } @Test public void test13565() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13565"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 100, 100, 10, 10]"); } @Test public void test13566() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13566"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, 0, 100, 100]"); } @Test public void test13567() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13567"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) 100, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, 100, -1, 1]"); } @Test public void test13568() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13568"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 0, (byte) -1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 0, -1, -1, 10]"); } @Test public void test13569() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13569"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 0, (byte) 10, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 0, 10, 0, 1]"); } @Test public void test13570() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13570"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 1, 10, 100]"); } @Test public void test13571() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13571"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 10, (byte) 100, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 10, 100, -1, 100]"); } @Test public void test13572() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13572"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 1, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 1, 10, -1, 100]"); } @Test public void test13573() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13573"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 10, (byte) 1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 10, 1, 1, 10]"); } @Test public void test13574() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13574"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, -1, 10, -1, 1]"); } @Test public void test13575() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13575"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 100, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 100, -1, 1]"); } @Test public void test13576() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13576"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 0, (byte) 0, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 0, 0, 0, -1]"); } @Test public void test13577() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13577"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 10, (byte) 100, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 10, 100, -1, 0]"); } @Test public void test13578() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13578"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 0, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 0, 0, 0]"); } @Test public void test13579() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13579"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) -1, (byte) 0, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, -1, 0, -1, 100]"); } @Test public void test13580() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13580"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) 1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, 1, 100, 1]"); } @Test public void test13581() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13581"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) -1, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, -1, -1, 100, -1]"); } @Test public void test13582() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13582"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 10, (byte) 10, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 10, 10, 100, 0]"); } @Test public void test13583() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13583"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 0, 10, -1]"); } @Test public void test13584() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13584"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) 100, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, 100, 100, 100]"); } @Test public void test13585() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13585"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 10, 0, 0]"); } @Test public void test13586() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13586"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 10, 0, -1]"); } @Test public void test13587() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13587"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 0, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, -1, 0, 1, -1]"); } @Test public void test13588() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13588"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) 0, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, 0, -1, 1]"); } @Test public void test13589() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13589"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) -1, (byte) -1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, -1, -1, 1, 10]"); } @Test public void test13590() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13590"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 100, (byte) 100, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 100, 100, 1, 0]"); } @Test public void test13591() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13591"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, -1, 1, 1, -1]"); } @Test public void test13592() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13592"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 1, (byte) -1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 1, -1, -1, 100]"); } @Test public void test13593() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13593"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, 0, -1, 0]"); } @Test public void test13594() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13594"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) -1, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, -1, -1, 0]"); } @Test public void test13595() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13595"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, -1, 100, -1]"); } @Test public void test13596() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13596"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 100, (byte) 0, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 100, 0, 1, -1]"); } @Test public void test13597() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13597"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) -1, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, -1, 1, 100]"); } @Test public void test13598() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13598"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 10, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 10, 10, -1, 1]"); } @Test public void test13599() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13599"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 100, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 100, -1, 1, 0]"); } @Test public void test13600() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13600"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, 100, 100, 1]"); } @Test public void test13601() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13601"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) -1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, -1, -1, -1]"); } @Test public void test13602() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13602"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 100, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 100, 10, -1, 1]"); } @Test public void test13603() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13603"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 1, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 1, 10, -1, 0]"); } @Test public void test13604() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13604"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 10, (byte) 10, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 10, 10, 10, 100]"); } @Test public void test13605() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13605"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) 1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, 1, 10, 10]"); } @Test public void test13606() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13606"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) -1, (byte) 10, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, -1, 10, 10, 10]"); } @Test public void test13607() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13607"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 100, (byte) 0, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 100, 0, -1, 100]"); } @Test public void test13608() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13608"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, -1, 0, 1]"); } @Test public void test13609() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13609"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, 10, -1, 100]"); } @Test public void test13610() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13610"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 10, (byte) 100, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 10, 100, 1, 1]"); } @Test public void test13611() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13611"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 100, (byte) 100, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 100, 100, 0, 100]"); } @Test public void test13612() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13612"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) -1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, -1, 1, -1]"); } @Test public void test13613() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13613"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 1, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 1, 100, 1, 10]"); } @Test public void test13614() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13614"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 1, (byte) -1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 1, -1, 10, 10]"); } @Test public void test13615() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13615"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, 0, -1, 0]"); } @Test public void test13616() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13616"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) 10, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, 10, 100, 10]"); } @Test public void test13617() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13617"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) -1, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, -1, 0, 1, 0]"); } @Test public void test13618() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13618"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, -1, 100, -1]"); } @Test public void test13619() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13619"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 10, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 10, 100, 1]"); } @Test public void test13620() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13620"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) 0, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, 0, 100, 0]"); } @Test public void test13621() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13621"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 1, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 1, 1, 10, -1]"); } @Test public void test13622() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13622"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 1, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 1, 0, 100]"); } @Test public void test13623() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13623"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 0, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 0, 1, 100]"); } @Test public void test13624() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13624"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 1, (byte) -1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 1, -1, 10, 10]"); } @Test public void test13625() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13625"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 1, 10, 1, 0]"); } @Test public void test13626() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13626"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 100, (byte) 1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 100, 1, 1, 1]"); } @Test public void test13627() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13627"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 100, 100, 10, 0]"); } @Test public void test13628() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13628"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) 1, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, 1, 1, 100]"); } @Test public void test13629() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13629"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, -1, 10, 1]"); } @Test public void test13630() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13630"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 100, 100, 10, -1]"); } @Test public void test13631() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13631"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) -1, (byte) 1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, -1, 1, 10, 0]"); } @Test public void test13632() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13632"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) -1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, -1, -1, -1]"); } @Test public void test13633() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13633"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) -1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, -1, -1, 100]"); } @Test public void test13634() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13634"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) -1, (byte) 0, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, -1, 0, 1, -1]"); } @Test public void test13635() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13635"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 0, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 0, 10, 1, 10]"); } @Test public void test13636() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13636"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 1, (byte) 1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 1, 1, 1, -1]"); } @Test public void test13637() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13637"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 0, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 0, 100, 100, 1]"); } @Test public void test13638() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13638"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) -1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, -1, 100, 100]"); } @Test public void test13639() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13639"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) 1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, 1, 1, 10]"); } @Test public void test13640() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13640"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 10, (byte) 0, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 10, 0, 10, 10]"); } @Test public void test13641() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13641"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 100, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 100, -1, 0, 1]"); } @Test public void test13642() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13642"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 100, 100, 1]"); } @Test public void test13643() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13643"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 0, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 0, 0, 10, 100]"); } @Test public void test13644() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13644"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, 0, 10, 100]"); } @Test public void test13645() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13645"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) 1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, 1, 0, -1]"); } @Test public void test13646() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13646"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 1, (byte) 10, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 1, 10, 1, -1]"); } @Test public void test13647() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13647"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 0, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 0, 100, 1]"); } @Test public void test13648() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13648"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 1, (byte) 10, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 1, 10, 0, 1]"); } @Test public void test13649() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13649"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, 1, 100, 10]"); } @Test public void test13650() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13650"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) -1, (byte) 10, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, -1, 10, 10, 0]"); } @Test public void test13651() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13651"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 1, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 1, -1, 10, 1]"); } @Test public void test13652() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13652"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 100, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 100, -1, 0]"); } @Test public void test13653() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13653"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 0, (byte) 0, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 0, 0, 1, 100]"); } @Test public void test13654() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13654"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) -1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, -1, 1, -1]"); } @Test public void test13655() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13655"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) 1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, 1, -1, 100]"); } @Test public void test13656() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13656"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 0, (byte) 1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 0, 1, 100, -1]"); } @Test public void test13657() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13657"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, 10, 1, 10]"); } @Test public void test13658() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13658"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 1, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 1, -1, 10, 1]"); } @Test public void test13659() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13659"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 100, 100, 0, -1]"); } @Test public void test13660() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13660"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 100, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 100, 10, 1, 0]"); } @Test public void test13661() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13661"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 10, (byte) 1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 10, 1, 1, 0]"); } @Test public void test13662() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13662"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) -1, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, -1, 10, -1, 0]"); } @Test public void test13663() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13663"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 0, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 0, 0, 1, 0]"); } @Test public void test13664() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13664"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, -1, 1, 0]"); } @Test public void test13665() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13665"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 10, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 10, 1, 0, 1]"); } @Test public void test13666() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13666"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) -1, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, -1, 0, -1, 0]"); } @Test public void test13667() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13667"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) 100, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, 100, 100, 100]"); } @Test public void test13668() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13668"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) -1, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, -1, 10, -1, 100]"); } @Test public void test13669() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13669"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 10, 100, 1, 10]"); } @Test public void test13670() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13670"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 100, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 100, 100, 0, 0]"); } @Test public void test13671() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13671"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) 0, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, 0, 100, 10]"); } @Test public void test13672() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13672"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 100, (byte) 10, (byte) 100, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[100, 10, 100, 10, 1]"); } @Test public void test13673() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13673"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 100, (byte) -1, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 100, -1, 0, 100]"); } @Test public void test13674() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13674"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 1, 0, 1, 1]"); } @Test public void test13675() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13675"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, 0, 0, -1]"); } @Test public void test13676() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13676"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) -1, (byte) 1, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, -1, 1, 100, 0]"); } @Test public void test13677() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13677"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 1, (byte) 0, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 1, 0, 10, 10]"); } @Test public void test13678() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13678"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 1, 10, 0]"); } @Test public void test13679() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13679"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) -1, (byte) 10, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, -1, 10, 10, 100]"); } @Test public void test13680() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13680"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 1, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 1, 10, 1, 10]"); } @Test public void test13681() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13681"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 100, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 100, 0, -1, 0]"); } @Test public void test13682() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13682"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 0, (byte) 10, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 0, 10, 0, 100]"); } @Test public void test13683() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13683"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, -1, 1, 0]"); } @Test public void test13684() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13684"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 10, (byte) 1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 10, 1, 1, -1]"); } @Test public void test13685() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13685"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 0, -1, 1, 0]"); } @Test public void test13686() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13686"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 0, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 0, 10, 1, 0]"); } @Test public void test13687() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13687"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 0, (byte) -1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 0, -1, 100, 1]"); } @Test public void test13688() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13688"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 10, (byte) 1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 10, 1, -1, 1]"); } @Test public void test13689() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13689"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 10, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 10, 100, 100]"); } @Test public void test13690() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13690"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 100, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 100, -1, 0, 10]"); } @Test public void test13691() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13691"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, -1, 100, -1, -1]"); } @Test public void test13692() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13692"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 0, (byte) -1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 0, -1, 10, 0]"); } @Test public void test13693() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13693"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 100, (byte) 0, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 100, 0, 1, 100]"); } @Test public void test13694() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13694"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 100, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 100, 1, 0, 1]"); } @Test public void test13695() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13695"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 1, 100, 10]"); } @Test public void test13696() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13696"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 10, (byte) 100, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 10, 100, 1, 0]"); } @Test public void test13697() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13697"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) 1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, 1, -1, -1]"); } @Test public void test13698() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13698"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 10, (byte) 10, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 10, 10, 0, 10]"); } @Test public void test13699() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13699"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 100, (byte) 0, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 100, 0, 0, -1]"); } @Test public void test13700() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13700"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 10, (byte) 100, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 10, 100, 0, 10]"); } @Test public void test13701() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13701"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) 0, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, 0, 100, 10]"); } @Test public void test13702() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13702"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, 100, 10, -1]"); } @Test public void test13703() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13703"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 10, (byte) -1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 10, -1, 100, 100]"); } @Test public void test13704() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13704"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) -1, (byte) -1, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, -1, -1, 10, -1]"); } @Test public void test13705() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13705"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 10, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 10, 0, 1, 1]"); } @Test public void test13706() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13706"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 100, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 100, 0, 10, 100]"); } @Test public void test13707() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13707"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 100, 0, -1]"); } @Test public void test13708() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13708"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, 1, 10, 10]"); } @Test public void test13709() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13709"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 100, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, 100, 10, 1]"); } @Test public void test13710() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13710"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 1, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 1, 10, 0, -1]"); } @Test public void test13711() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13711"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 10, (byte) 100, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 10, 100, 10, 1]"); } @Test public void test13712() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13712"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 100, (byte) -1, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 100, -1, 1, 100]"); } @Test public void test13713() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13713"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) 100, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, 100, 100, -1]"); } @Test public void test13714() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13714"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 100, (byte) 10, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 100, 10, 0, 1]"); } @Test public void test13715() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13715"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 0, 10, -1]"); } @Test public void test13716() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13716"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 0, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 0, 10, 0, 0]"); } @Test public void test13717() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13717"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 1, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 1, 10, -1, 1]"); } @Test public void test13718() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13718"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, 100, 0, -1]"); } @Test public void test13719() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13719"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) 1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, 1, 100, -1]"); } @Test public void test13720() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13720"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, -1, 10, 1]"); } @Test public void test13721() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13721"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) -1, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, -1, 100, 1, 10]"); } @Test public void test13722() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13722"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 1, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 1, 1, 0, 1]"); } @Test public void test13723() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13723"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 0, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 0, -1, 0, 1]"); } @Test public void test13724() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13724"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, -1, -1, -1, 1]"); } @Test public void test13725() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13725"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) -1, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 10, -1, 1, 100]"); } @Test public void test13726() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13726"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 100, -1, 0, 1]"); } @Test public void test13727() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13727"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 1, (byte) 0, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 1, 0, 10, 10]"); } @Test public void test13728() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13728"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) 1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, 1, 100, -1]"); } @Test public void test13729() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13729"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 1, (byte) -1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 1, -1, 10, 0]"); } @Test public void test13730() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13730"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) 100, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 10, 100, 10, 0]"); } @Test public void test13731() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13731"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 0, (byte) 100, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 0, 100, -1, 1]"); } @Test public void test13732() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13732"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 100, (byte) 100, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 100, 100, 100, -1]"); } @Test public void test13733() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13733"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 0, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 0, 10, 0, 0]"); } @Test public void test13734() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13734"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) 100, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, 100, 100, 10]"); } @Test public void test13735() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13735"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 10, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 10, 1, 0, 0]"); } @Test public void test13736() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13736"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 1, (byte) 0, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 1, 0, -1, -1]"); } @Test public void test13737() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13737"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 1, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 1, 0, 0, 1]"); } @Test public void test13738() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13738"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 1, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 1, 0, 10, 100]"); } @Test public void test13739() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13739"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 10, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 10, 0, 10, 100]"); } @Test public void test13740() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13740"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) -1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, -1, 0, -1]"); } @Test public void test13741() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13741"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) -1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 0, -1, -1, 10]"); } @Test public void test13742() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13742"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 0, (byte) 10, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 0, 10, 100, 0]"); } @Test public void test13743() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13743"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 10, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 10, 0, 1, 0]"); } @Test public void test13744() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13744"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 100, (byte) 10, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 100, 10, 100, 10]"); } @Test public void test13745() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13745"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) -1, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, -1, 1, 0, 1]"); } @Test public void test13746() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13746"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, -1, 0, 10]"); } @Test public void test13747() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13747"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 10, (byte) 10, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 10, 10, 1, 1]"); } @Test public void test13748() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13748"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) 100, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, 100, 10, 0]"); } @Test public void test13749() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13749"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 1, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 1, 0, 10, -1]"); } @Test public void test13750() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13750"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 100, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 100, 1, 100]"); } @Test public void test13751() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13751"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) 10, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, 10, 0, 10]"); } @Test public void test13752() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13752"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 10, (byte) -1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 10, -1, 0, -1]"); } @Test public void test13753() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13753"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) -1, (byte) 1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, -1, 1, 10, 0]"); } @Test public void test13754() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13754"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 10, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 10, 10, 1, 0]"); } @Test public void test13755() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13755"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) -1, (byte) 10, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, -1, 10, -1, -1]"); } @Test public void test13756() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13756"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) 100, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, 100, 100, 10]"); } @Test public void test13757() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13757"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 1, 0, 10]"); } @Test public void test13758() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13758"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 1, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 1, 100, 100, 1]"); } @Test public void test13759() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13759"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 100, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 100, 0, 10, -1]"); } @Test public void test13760() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13760"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 0, (byte) 1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 0, 1, 1, 10]"); } @Test public void test13761() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13761"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 100, -1, -1]"); } @Test public void test13762() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13762"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 100, (byte) 100, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 100, 100, 0, 10]"); } @Test public void test13763() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13763"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) -1, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, -1, 100, -1, -1]"); } @Test public void test13764() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13764"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, -1, 0, 10]"); } @Test public void test13765() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13765"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 1, 0, 1, 1]"); } @Test public void test13766() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13766"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 100, (byte) 10, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 100, 10, 0, 100]"); } @Test public void test13767() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13767"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 100, 1, 10]"); } @Test public void test13768() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13768"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) -1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, -1, 1, 10]"); } @Test public void test13769() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13769"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 10, (byte) 0, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 10, 0, 10, -1]"); } @Test public void test13770() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13770"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 10, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, 10, 100, 10]"); } @Test public void test13771() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13771"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 100, (byte) -1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 100, -1, 10, 100]"); } @Test public void test13772() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13772"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 100, (byte) 1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 100, 1, -1, 100]"); } @Test public void test13773() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13773"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[0, 100, 10, 10, 0]"); } @Test public void test13774() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13774"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) -1, (byte) -1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, -1, -1, 100, 1]"); } @Test public void test13775() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13775"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 10, (byte) -1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 10, -1, 10, 0]"); } @Test public void test13776() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13776"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 0, (byte) 100, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 0, 100, 10, 100]"); } @Test public void test13777() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13777"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 100, (byte) 0, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 100, 0, 0, 10]"); } @Test public void test13778() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13778"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 10, 10, 0, 0]"); } @Test public void test13779() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13779"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 0, (byte) 100, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 0, 100, 100, 0]"); } @Test public void test13780() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13780"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 10, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 10, 1, 0, 0]"); } @Test public void test13781() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13781"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, 100, 10, -1]"); } @Test public void test13782() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13782"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 0, (byte) 1, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 0, 1, 0, 100]"); } @Test public void test13783() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13783"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 0, 0, -1, 0]"); } @Test public void test13784() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13784"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) -1, (byte) 10, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, -1, 10, -1, -1]"); } @Test public void test13785() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13785"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 0, (byte) -1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 0, -1, 0, -1]"); } @Test public void test13786() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13786"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) -1, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, -1, 1, 0, 0]"); } @Test public void test13787() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13787"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) -1, (byte) 100, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, -1, 100, 100, 10]"); } @Test public void test13788() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13788"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 100, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 100, 10, -1, 100]"); } @Test public void test13789() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13789"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 10, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 10, 0, 100, 100]"); } @Test public void test13790() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13790"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 10, -1, 100]"); } @Test public void test13791() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13791"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) 0, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, 0, 100, 0]"); } @Test public void test13792() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13792"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) -1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, -1, -1, 10]"); } @Test public void test13793() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13793"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) -1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, -1, 100, 10]"); } @Test public void test13794() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13794"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) -1, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, -1, 10, 100, -1]"); } @Test public void test13795() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13795"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[0, -1, 10, 100, -1]"); } @Test public void test13796() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13796"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) 0, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, 0, 10, 1]"); } @Test public void test13797() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13797"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) 100, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, 100, 1, -1]"); } @Test public void test13798() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13798"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) -1, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, -1, 0, 100, 100]"); } @Test public void test13799() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13799"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 1, 100, -1, -1]"); } @Test public void test13800() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13800"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) -1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, -1, 1, 1]"); } @Test public void test13801() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13801"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 1, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 1, 10, 0, -1]"); } @Test public void test13802() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13802"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 10, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 10, 100, 0, -1]"); } @Test public void test13803() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13803"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) -1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, -1, 10, 100]"); } @Test public void test13804() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13804"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 100, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 100, 100, 1, 10]"); } @Test public void test13805() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13805"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) 100, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, 100, 10, 100]"); } @Test public void test13806() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13806"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) 1, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, 1, 10, -1]"); } @Test public void test13807() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13807"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 1, (byte) 1, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 1, 1, 100, 0]"); } @Test public void test13808() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13808"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 1, 1, 10]"); } @Test public void test13809() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13809"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 0, (byte) 0, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 0, 0, -1, 1]"); } @Test public void test13810() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13810"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 100, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 100, 0, 0, 1]"); } @Test public void test13811() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13811"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 10, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 10, 1, -1]"); } @Test public void test13812() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13812"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 100, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 100, 10, 100, -1]"); } @Test public void test13813() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13813"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 100, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 100, -1, 0, 10]"); } @Test public void test13814() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13814"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) -1, (byte) -1, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, -1, -1, 1, 100]"); } @Test public void test13815() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13815"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 0, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 0, -1, 0, 1]"); } @Test public void test13816() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13816"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 0, (byte) 100, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 0, 100, 10, 1]"); } @Test public void test13817() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13817"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 10, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 10, 100, 0]"); } @Test public void test13818() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13818"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, 100, 100, 1]"); } @Test public void test13819() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13819"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, 10, -1, 100]"); } @Test public void test13820() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13820"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 1, (byte) 100, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 1, 100, 1, -1]"); } @Test public void test13821() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13821"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 0, (byte) -1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 0, -1, 10, 1]"); } @Test public void test13822() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13822"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) -1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, -1, 1, 10]"); } @Test public void test13823() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13823"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 10, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 10, 1, 0, 0]"); } @Test public void test13824() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13824"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 1, (byte) -1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 1, -1, -1, 10]"); } @Test public void test13825() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13825"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 1, (byte) 10, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 1, 10, -1, 1]"); } @Test public void test13826() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13826"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 1, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 1, 10, 100, -1]"); } @Test public void test13827() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13827"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 0, 100, 0, 0]"); } @Test public void test13828() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13828"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) -1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, -1, 1, -1]"); } @Test public void test13829() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13829"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 10, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 10, -1, 0, 1]"); } @Test public void test13830() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13830"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 1, 1, -1, 10]"); } @Test public void test13831() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13831"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 1, (byte) -1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 1, -1, 0, 0]"); } @Test public void test13832() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13832"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 1, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 1, 100, -1, -1]"); } @Test public void test13833() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13833"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 1, 1, 10]"); } @Test public void test13834() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13834"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 100, (byte) -1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 100, -1, 10, 0]"); } @Test public void test13835() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13835"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, 1, 0, 0]"); } @Test public void test13836() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13836"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 0, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 0, 100, -1, -1]"); } @Test public void test13837() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13837"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 0, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 0, 1, 0, 1]"); } @Test public void test13838() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13838"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) -1, (byte) -1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, -1, -1, 10, 100]"); } @Test public void test13839() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13839"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 1, 0, -1]"); } @Test public void test13840() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13840"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 100, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 100, 0, 0, 1]"); } @Test public void test13841() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13841"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 100, (byte) 1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 100, 1, -1, -1]"); } @Test public void test13842() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13842"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 10, -1, 0, 10]"); } @Test public void test13843() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13843"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 0, (byte) 1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 0, 1, 100, 100]"); } @Test public void test13844() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13844"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 1, (byte) 100, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 1, 100, -1, -1]"); } @Test public void test13845() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13845"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 100, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 100, 0, 100]"); } @Test public void test13846() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13846"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 1, (byte) 1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 1, 1, 10, 10]"); } @Test public void test13847() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13847"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) -1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, -1, 0, 0]"); } @Test public void test13848() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13848"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 100, (byte) 10, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 100, 10, 1, 1]"); } @Test public void test13849() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13849"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) -1, (byte) -1, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, -1, -1, -1, 0]"); } @Test public void test13850() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13850"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 100, (byte) 1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 100, 1, 0, -1]"); } @Test public void test13851() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13851"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) 100, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, 100, 0, 1]"); } @Test public void test13852() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13852"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 1, 10, 100]"); } @Test public void test13853() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13853"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 100, (byte) 0, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 100, 0, -1, 10]"); } @Test public void test13854() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13854"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 1, (byte) 0, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 1, 0, 10, 100]"); } @Test public void test13855() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13855"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 10, (byte) -1, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 10, -1, 100, 1]"); } @Test public void test13856() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13856"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 1, 0, 0, 0]"); } @Test public void test13857() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13857"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 1, 10, 1]"); } @Test public void test13858() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13858"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, 1, 0, 10]"); } @Test public void test13859() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13859"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 100, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 100, 100, 100, 1]"); } @Test public void test13860() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13860"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, 10, 1, 10]"); } @Test public void test13861() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13861"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 0, (byte) 0, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 0, 0, 10, 10]"); } @Test public void test13862() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13862"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 1, (byte) 1, (byte) -1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[1, 1, -1, -1, 10]"); } @Test public void test13863() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13863"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 1, (byte) 100, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 1, 100, 10, 0]"); } @Test public void test13864() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13864"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 100, (byte) 1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 100, 1, 0, 0]"); } @Test public void test13865() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13865"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 100, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 100, 10, -1, 0]"); } @Test public void test13866() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13866"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) -1, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, -1, 100, 0, 0]"); } @Test public void test13867() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13867"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) -1, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, -1, -1, 1, 0]"); } @Test public void test13868() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13868"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) -1, (byte) 100, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, -1, 100, 1, 0]"); } @Test public void test13869() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13869"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 100, (byte) 10, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 100, 10, 10, 1]"); } @Test public void test13870() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13870"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 1, (byte) 100, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 1, 100, 10, 1]"); } @Test public void test13871() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13871"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 10, (byte) 1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 10, 1, 100, 100]"); } @Test public void test13872() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13872"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 10, (byte) 0, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 10, 0, 0, 10]"); } @Test public void test13873() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13873"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 10, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 10, 100, 0, 0]"); } @Test public void test13874() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13874"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 10, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 10, 0, 100, 100]"); } @Test public void test13875() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13875"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 100, 10, -1]"); } @Test public void test13876() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13876"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 10, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 10, 10, 0]"); } @Test public void test13877() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13877"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 10, (byte) 1, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 10, 1, 10, 10]"); } @Test public void test13878() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13878"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray6 = new byte[] { (byte) 0, (byte) -1, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler7 = webSocketClient0.new HandshakeChannelHandler(byteArray6); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray6); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray6), "[0, -1, 0, 100, 100]"); } @Test public void test13879() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13879"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 0, 1, -1]"); } @Test public void test13880() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13880"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 0, (byte) -1, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 0, -1, 100, 0]"); } @Test public void test13881() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13881"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 1, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 1, 10, -1, 0]"); } @Test public void test13882() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13882"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, 0, 1, 1]"); } @Test public void test13883() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13883"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) -1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, -1, 1, 10]"); } @Test public void test13884() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13884"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, 0, 0, 1]"); } @Test public void test13885() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13885"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) -1, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, -1, 10, 0, 0]"); } @Test public void test13886() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13886"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 10, (byte) 1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 10, 1, -1, 10]"); } @Test public void test13887() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13887"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 1, (byte) 0, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 1, 0, -1, 1]"); } @Test public void test13888() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13888"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 100, (byte) -1, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 100, -1, 10, -1]"); } @Test public void test13889() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13889"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 10, (byte) 0, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 10, 0, 0, 100]"); } @Test public void test13890() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13890"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 0, 1, 1, 1]"); } @Test public void test13891() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13891"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 0, (byte) 1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 0, 1, -1, -1]"); } @Test public void test13892() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13892"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) -1, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, -1, 10, 0, 0]"); } @Test public void test13893() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13893"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) 0, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 100, 0, 100, 1]"); } @Test public void test13894() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13894"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) -1, (byte) 10, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, -1, 10, 100, 100]"); } @Test public void test13895() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13895"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 10, (byte) 10, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 10, 10, 10, 10]"); } @Test public void test13896() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13896"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) 1, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, 1, 0, -1, 0]"); } @Test public void test13897() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13897"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 0, (byte) 1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 0, 1, 100, 10]"); } @Test public void test13898() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13898"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 10, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 10, 0, 1, 1]"); } @Test public void test13899() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13899"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, -1, 0, 1, 1]"); } @Test public void test13900() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13900"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) -1, (byte) 0, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, -1, 0, 100, -1]"); } @Test public void test13901() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13901"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 1, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 1, 0, 1, 1]"); } @Test public void test13902() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13902"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 1, (byte) 10, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 1, 10, -1, -1]"); } @Test public void test13903() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13903"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 1, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 1, 1, 0, 10]"); } @Test public void test13904() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13904"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) -1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, -1, 1, -1]"); } @Test public void test13905() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13905"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) -1, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, -1, 1, 0, 1]"); } @Test public void test13906() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13906"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 100, 10, 1, 10]"); } @Test public void test13907() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13907"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 100, (byte) 100, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 100, 100, -1, 0]"); } @Test public void test13908() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13908"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 0, (byte) -1, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 0, -1, 0, -1]"); } @Test public void test13909() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13909"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 10, (byte) 0, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 10, 0, 10, 0]"); } @Test public void test13910() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13910"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) 0, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, 0, -1, 10]"); } @Test public void test13911() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13911"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) -1, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, -1, 0, 0]"); } @Test public void test13912() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13912"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 0, (byte) -1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 0, -1, -1, -1]"); } @Test public void test13913() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13913"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 0, -1, 100, -1]"); } @Test public void test13914() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13914"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 100, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 100, 0, 100, 100]"); } @Test public void test13915() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13915"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 100, (byte) 10, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 100, 10, 100, -1]"); } @Test public void test13916() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13916"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 100, (byte) 100, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 100, 100, 1, 100]"); } @Test public void test13917() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13917"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 0, (byte) 0, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 0, 0, 10, 1]"); } @Test public void test13918() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13918"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 1, (byte) 100, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 1, 100, 10, 10]"); } @Test public void test13919() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13919"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 100, (byte) -1, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 100, -1, 1, 10]"); } @Test public void test13920() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13920"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 10, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 10, 0, 0, 1]"); } @Test public void test13921() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13921"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) -1, (byte) 1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, -1, 1, 0, 1]"); } @Test public void test13922() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13922"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 0, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 0, 1, 1]"); } @Test public void test13923() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13923"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 100, (byte) 10, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 100, 10, 1, 10]"); } @Test public void test13924() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13924"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 10, (byte) 1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 10, 1, -1, 1]"); } @Test public void test13925() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13925"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 1, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 1, -1, 100]"); } @Test public void test13926() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13926"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 100, (byte) 1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 100, 1, 100, 100]"); } @Test public void test13927() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13927"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 0, 1, 0]"); } @Test public void test13928() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13928"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 10, (byte) 10, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 10, 10, -1, 10]"); } @Test public void test13929() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13929"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) 1, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, 1, 0, 1, 0]"); } @Test public void test13930() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13930"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 1, (byte) -1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 1, -1, 100, -1]"); } @Test public void test13931() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13931"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 100, (byte) 0, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 100, 0, 10, 0]"); } @Test public void test13932() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13932"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) 0, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, 0, 1, 100]"); } @Test public void test13933() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13933"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 10, (byte) 0, (byte) 100, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 10, 0, 100, -1, 100]"); } @Test public void test13934() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13934"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 100, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 100, -1, 1, 0]"); } @Test public void test13935() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13935"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 100, (byte) 0, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 100, 0, 100, 10]"); } @Test public void test13936() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13936"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 10, (byte) -1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 10, -1, -1, 1]"); } @Test public void test13937() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13937"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 10, (byte) 1, (byte) 10, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 10, 1, 10, 100]"); } @Test public void test13938() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13938"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) -1, (byte) 10, (byte) 10, (byte) -1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, -1, 10, 10, -1, 100]"); } @Test public void test13939() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13939"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 10, (byte) 1, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 10, 1, 100, -1]"); } @Test public void test13940() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13940"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) -1, (byte) 0, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, -1, 0, 1, 10]"); } @Test public void test13941() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13941"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 10, (byte) 1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 10, 1, 100, 10]"); } @Test public void test13942() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13942"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) 100, (byte) 100, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 10, 100, 100, 1]"); } @Test public void test13943() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13943"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) 100, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, 100, -1, 10]"); } @Test public void test13944() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13944"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 10, (byte) 1, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 10, 1, 100, 0]"); } @Test public void test13945() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13945"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) -1, (byte) 100, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, -1, 100, 100, -1]"); } @Test public void test13946() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13946"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 100, (byte) 1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 100, 1, 10]"); } @Test public void test13947() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13947"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) 1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, 1, 1, -1]"); } @Test public void test13948() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13948"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 100, (byte) 100, (byte) 1, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 100, 100, 1, 100]"); } @Test public void test13949() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13949"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 10, (byte) 0, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 10, 0, 0, 100]"); } @Test public void test13950() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13950"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 10, (byte) 1, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 10, 1, 0, 100, 100]"); } @Test public void test13951() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13951"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 1, (byte) -1, (byte) -1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 1, -1, -1, -1]"); } @Test public void test13952() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13952"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 0, (byte) 10, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 0, 10, 100, 10]"); } @Test public void test13953() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13953"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 100, (byte) 1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 100, 1, 1, 1]"); } @Test public void test13954() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13954"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) -1, (byte) 100, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, -1, 100, 0, -1]"); } @Test public void test13955() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13955"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) 10, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, 10, 10, 1]"); } @Test public void test13956() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13956"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) -1, (byte) -1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, -1, -1, 0, 10]"); } @Test public void test13957() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13957"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 100, (byte) -1, (byte) 0, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 100, -1, 0, 100, 0]"); } @Test public void test13958() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13958"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) 1, (byte) 10, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, 1, 10, 0, 0]"); } @Test public void test13959() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13959"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 0, (byte) 1, (byte) 1, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 0, 1, 1, -1]"); } @Test public void test13960() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13960"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 0, (byte) 100, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 0, 100, 100, 100]"); } @Test public void test13961() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13961"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 10, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 10, 1, 0, 10]"); } @Test public void test13962() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13962"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 0, (byte) -1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 0, -1, 100, 10]"); } @Test public void test13963() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13963"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 0, (byte) 1, (byte) 10, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 0, 1, 10, 1]"); } @Test public void test13964() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13964"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) 10, (byte) -1, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, 10, -1, 0, 1]"); } @Test public void test13965() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13965"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) -1, (byte) 1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, -1, 1, 10, 0]"); } @Test public void test13966() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13966"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) -1, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, -1, 10, -1]"); } @Test public void test13967() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13967"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 0, (byte) 10, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 0, 10, 10, -1, 0]"); } @Test public void test13968() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13968"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 0, (byte) 10, (byte) 0, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 0, 10, 0, -1]"); } @Test public void test13969() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13969"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 10, (byte) 10, (byte) 100, (byte) 10, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 10, 10, 100, 10, -1]"); } @Test public void test13970() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13970"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 0, -1, 0]"); } @Test public void test13971() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13971"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 100, (byte) -1, (byte) 10, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 100, -1, 10, 0, 100]"); } @Test public void test13972() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13972"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 1, 0, 0, 0, 1]"); } @Test public void test13973() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13973"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) -1, (byte) 1, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, -1, 1, -1, 0]"); } @Test public void test13974() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13974"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) -1, (byte) 0, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, -1, 0, 10, 0]"); } @Test public void test13975() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13975"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) -1, (byte) 1, (byte) 1, (byte) 100, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, -1, 1, 1, 100, 10]"); } @Test public void test13976() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13976"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 1, (byte) 1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 1, 1, 10, 0]"); } @Test public void test13977() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13977"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) -1, (byte) 10, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, -1, 10, 0]"); } @Test public void test13978() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13978"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 100, (byte) 1, (byte) 0, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 100, 1, 0, 100]"); } @Test public void test13979() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13979"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 1, (byte) 0, (byte) 1, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 1, 0, 1, -1, 10]"); } @Test public void test13980() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13980"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 0, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 0, -1, 10]"); } @Test public void test13981() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13981"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) -1, (byte) -1, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, -1, -1, -1, 0]"); } @Test public void test13982() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13982"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 1, (byte) -1, (byte) 1, (byte) 0, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 1, -1, 1, 0, 10]"); } @Test public void test13983() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13983"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 0, (byte) 10, (byte) -1, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 0, 10, -1, 100, 100]"); } @Test public void test13984() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13984"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 1, (byte) 10, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 1, 10, -1, 10]"); } @Test public void test13985() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13985"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 0, (byte) 10, (byte) -1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 0, 10, -1, 0]"); } @Test public void test13986() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13986"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 0, (byte) 100, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 0, 100, 0, 1, 0]"); } @Test public void test13987() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13987"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 0, (byte) 10, (byte) -1, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 0, 10, -1, 1, 0]"); } @Test public void test13988() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13988"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 10, (byte) -1, (byte) -1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 10, -1, -1, 1]"); } @Test public void test13989() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13989"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 100, (byte) 1, (byte) 0, (byte) 100, (byte) 100 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 100, 1, 0, 100, 100]"); } @Test public void test13990() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13990"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) 0, (byte) 0, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, 0, 0, 100, 0, 0]"); } @Test public void test13991() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13991"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) 100, (byte) 10, (byte) 0, (byte) 100, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, 100, 10, 0, 100, 0]"); } @Test public void test13992() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13992"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 1, (byte) 10, (byte) 0, (byte) 100, (byte) 10, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[1, 10, 0, 100, 10, 10]"); } @Test public void test13993() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13993"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) -1, (byte) 0, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, -1, 0, 1, 0]"); } @Test public void test13994() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13994"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 100, (byte) 0, (byte) 0, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 100, 0, 0, 0, 0]"); } @Test public void test13995() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13995"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 0, (byte) -1, (byte) 1, (byte) 10, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[0, -1, 1, 10, -1, 10]"); } @Test public void test13996() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13996"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) 1, (byte) 0, (byte) -1, (byte) 1, (byte) 1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, 1, 0, -1, 1, 1]"); } @Test public void test13997() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13997"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 1, (byte) -1, (byte) 100, (byte) 100, (byte) -1 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 1, -1, 100, 100, -1]"); } @Test public void test13998() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13998"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 10, (byte) -1, (byte) 10, (byte) 100, (byte) 0, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[10, -1, 10, 100, 0, 0]"); } @Test public void test13999() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test13999"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) 100, (byte) -1, (byte) 10, (byte) 10, (byte) -1, (byte) 10 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[100, -1, 10, 10, -1, 10]"); } @Test public void test14000() throws Throwable { if (debug) System.out.format("%n%s%n", "RegressionTest27.test14000"); org.webbitserver.netty.WebSocketClient webSocketClient0 = null; byte[] byteArray7 = new byte[] { (byte) -1, (byte) 10, (byte) 0, (byte) 10, (byte) 1, (byte) 0 }; // The following exception was thrown during execution in test generation try { org.webbitserver.netty.WebSocketClient.HandshakeChannelHandler handshakeChannelHandler8 = webSocketClient0.new HandshakeChannelHandler(byteArray7); org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: reflection call to org.webbitserver.netty.WebSocketClient$HandshakeChannelHandler with null for superclass argument"); } catch (java.lang.NullPointerException e) { // Expected exception. } org.junit.Assert.assertNotNull(byteArray7); org.junit.Assert.assertEquals(java.util.Arrays.toString(byteArray7), "[-1, 10, 0, 10, 1, 0]"); } }
BaptisteLafoux/free_swim_illum_var
utils/fasttrack2xarray.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 22 16:48:57 2021 This script clean data from FastTrack analysis to crate an Xarray object that is saved inside an twin folder, in a .nc file @author: baptistelafoux """ #### WARNING : TO DO - Slide light signal time basis to account for different starting time (not so important) # %% Modules import import numpy as np import pandas as pd import cv2 import os import glob import time as time_module import xarray as xr import yaml import termplotlib as tpl import matplotlib.pyplot as plt from utils.data_operations import interpolate_nans from scipy.spatial.distance import pdist, squareform from datetime import timedelta np.seterr(all="ignore") # %% Main function def generate_dataset(data_folder): # useful file names fasttrack_filename = glob.glob(data_folder + "/Tracking_Result*" + "/tracking.txt") if fasttrack_filename: fasttrack_filename = fasttrack_filename[0] bg_filename = glob.glob(data_folder + "/Tracking_Result*" + "/background.pgm")[0] #### Extraction of general data, metadata & BG tic = time_module.time() # load raw data data = pd.read_csv(fasttrack_filename, sep="\t") print("Successfully loaded data from the server") # loading the background image bg = cv2.imread(bg_filename) # compute the mean size of fish (they are decomposed into head + tail) global mean_BL_pxl mean_BL_pxl = np.mean(2 * data.headMajorAxisLength + 2 * data.tailMajorAxisLength) n_frames = np.max(data.imageNumber) + 1 n_fish = np.max(data.id) + 1 fish_by_frame = [data[data.imageNumber == i].shape[0] for i in range(n_frames)] tank_w, tank_h = bg.shape[1], bg.shape[0] #### Log infos print('\n#########################') print("Number of fish: ", n_fish) print("Number of frames: ", n_frames, '(' + str(timedelta(seconds=int(n_frames/fps))) + ' @ {:.0f} fps)'.format(fps)) print("Avg. body length in pxl: {:.2f} pxl \n".format(mean_BL_pxl)) print('#########################\n') toc = time_module.time() print("Loading file, metadata and BG \t {:.2f} s".format(toc - tic)) #### Coordinates interpolation tic = time_module.time() s, v, a, e, theta, vel = generate_traj(data, n_frames, n_fish) toc = time_module.time() print( "Coordinates and coordinates interpolation \t {:.2f} s".format(toc - tic)) #### Distances and rotation/polarization parameters tic = time_module.time() ii_dist = np.array([squareform(pdist(s[t, ...])) for t in range(n_frames)]) if n_fish==1: return None, False else: nn_dist = np.sort(ii_dist, axis=1)[:, 1] center_of_mass = np.mean(s, axis=1) if circular_arena: center = find_arena_center(bg) r = s - center[None, None, :] / mean_BL_pxl else: r = s - center_of_mass[:, None, :] rotation_parameter = rot_param(r, v, n_fish) polarization_parameter = pol_param(e, n_fish) toc = time_module.time() print( "Distances and rotation/polarization parameters \t {:.2f} s".format( toc - tic) ) #### Create the dataset attrs = { "track_filename": fasttrack_filename, "bg_filename": bg_filename, "n_frames": n_frames, "n_fish": n_fish, "fps": fps, "mean_BL_pxl": mean_BL_pxl, "tank_size": pxl2BL(np.array([tank_w, tank_h])) } data_dict = dict( s=(["time", "fish", "space"], s), v=(["time", "fish", "space"], v), a=(["time", "fish", "space"], a), vel=(["time", "fish"], vel), center_of_mass=(["time", "space"], center_of_mass), ii_dist=(["time", "fish", "neighbour"], ii_dist), nn_dist=(["time", "fish"], nn_dist), e=(["time", "fish", "space"], e), theta=(["time", "fish"], theta), rot_param=(["time"], rotation_parameter), pol_param=(["time"], polarization_parameter), fish_by_frame=(["time"], fish_by_frame) ) coords = { "time": (["time"], np.arange(n_frames) / fps), "fish": (["fish"], np.arange(n_fish)), "neighbour": (["neighbour"], np.arange(n_fish)), "space": (["space"], ["x", "y"]), } #### metadata.yaml file # only if the file exists (should be the case for all experiments after septembre 2021) metadata_filename = glob.glob(data_folder + "/metadata*") if metadata_filename: print('\n#### There is a metadata.yaml file : processing it') metadata_filename = metadata_filename[0] time = np.arange(n_frames) / fps file = open(metadata_filename) metadata = yaml.load(file, Loader=yaml.FullLoader) file.close() print("Successfully loaded metadata", "\n") # we interpolate the light signal from metadata in case it is not an the same rate light = np.interp( np.linspace(0, len(metadata["light"]), n_frames), np.arange(len(metadata["light"])), metadata["light"], ) print('Exact start time :', str(metadata['t_start'])) fig = tpl.figure() fig.plot(time, light, width=60, height=10) fig.show() attrs_meta = { "T_exp": metadata["T_exp"], "T_settle": metadata["T_settle"], "T_period": metadata["T_per"], "date": str(metadata["t_start"].date()), "t_start": str(metadata["t_start"].time()), } attrs.update(attrs_meta) data_dict['light'] = (["time"], light) ds = xr.Dataset(data_vars=data_dict, coords=coords, attrs=attrs) print("Dataset generated without too big of a surprise") return ds, True # %% Utilities function def generate_traj(data, n_frames, n_fish): """ A function that generates velocity and acceleration data from dirty (x,y) data. It interpolates the data so that they are all on the same time basis, remove NaNs All values returned in BL !! Parameters ---------- data : DataSet Generated from Fasttrack tracking.txt file. n_frames : int n_fish : int time : np.array of int Common time basis. Returns ------- s : np.array size : (n_frames, n_fish, 2). (x, y) position for each frame for each fish. v : np.array (n_frames, n_fish, 2). (v_x, v_y) velocity for each frame for each fish. a : np.array (n_frames, n_fish, 2). (a_x, a_y) acceleration for each frame for each fish. e : np.array heading vector. theta : np.array angle with vertical (<- not sure for the with vertical part, it is an angle though). """ time = np.arange(n_frames) s = np.empty((n_frames, n_fish, 2)) e = np.empty((n_frames, n_fish, 2)) theta = np.empty((n_frames, n_fish)) for focal in range(n_fish): t = data[data.id == focal].imageNumber x = data[data.id == focal].xHead y = data[data.id == focal].yHead th = data[data.id == focal].tHead x_interp = np.interp(time, t, x) y_interp = np.interp(time, t, y) th_interp = np.interp(time, t, th) s[:, focal, :] = pxl2BL(np.c_[x_interp, y_interp]) e[:, focal, :] = np.c_[np.cos(th_interp), np.sin(th_interp)] theta[:, focal] = th_interp v = np.gradient(s, axis=0, edge_order=2) a = np.gradient(v, axis=0, edge_order=2) vel = np.linalg.norm(v, axis=-1) s = interpolate_nans(s) v = interpolate_nans(v) a = interpolate_nans(a) e = interpolate_nans(e) vel = interpolate_nans(vel) theta = interpolate_nans(theta) return s, v, a, e, theta, vel def rot_param(r, v, N): # we add an epilon to the norm of the velocity in case is it 0 rotation_parameter = np.sum(np.cross(r, v) / (np.linalg.norm(r, axis=2) * (np.linalg.norm(v, axis=2) + 10**(-9)) ), axis=1) / N rotation_parameter = interpolate_nans(rotation_parameter) return rotation_parameter def pol_param(e, N): polarization_parameter = np.linalg.norm(np.sum(e, axis=1), axis=1) / N polarization_parameter = interpolate_nans(polarization_parameter) return polarization_parameter def pxl2BL(value): ''' dumb ''' return value / mean_BL_pxl def find_arena_center(bg): bg = cv2.cvtColor(bg, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(bg, cv2.HOUGH_GRADIENT, 1, bg.shape[0] / 8, param1=100, param2=30, minRadius=100, maxRadius=1000) if circles.shape[0] > 1: print('\nWarning : found more than one circle for arena center detection\n') return circles[0,0,0:2] def create_folder_cleandata(data_folder): relpath = os.path.dirname(os.path.relpath(data_folder, root + "1_raw_data")) # create a folder to store the cleaned data cleandata_foldername = root + "2_cured_datasets/" + relpath if not os.path.exists('cleaned/' + relpath): os.makedirs('cleaned/' + relpath) if not os.path.exists(cleandata_foldername): os.makedirs(cleandata_foldername) return cleandata_foldername, relpath def save_xarray_file(dataset, save_cloud=True, save_loc=False): print("\n") print("Saving file... (can take a while)") tic = time_module.time() cleandata_foldername, relpath = create_folder_cleandata(data_folder) if save_cloud: dataset.to_netcdf(cleandata_foldername + "/trajectory.nc", mode='w') if save_loc: dataset.to_netcdf('cleaned/' + relpath + '/trajectory.nc', mode='w') toc = time_module.time() print("File saved in \t {:.2f} s".format(toc - tic)) print("Trajectory file saved in :", cleandata_foldername) def save_control_plots(ds): '''Plot some stuffs to check if the traj. data makes sense.''' cleandata_foldername, _ = create_folder_cleandata(data_folder) plt.close('all') fig, ax = plt.subplots(2, 3, figsize=(12, 6)) fig.suptitle(cleandata_foldername) #### [plot] hist. of nb. of detected fish ax[0, 0].hist(ds.fish_by_frame, bins=ds.n_fish, color='k') ax[0, 0].set_xlabel('Nb detected fish') ax[0, 0].set_ylabel('Nb frames') #### [plot] nb. of detected fish over time ax[0, 1].plot(ds.time / 60, ds.fish_by_frame, 'k.', markersize=0.2) ax[0, 1].set_xlabel('Time [min]') ax[0, 1].set_ylabel('Nb detected fish') #### [plot] all the trajectories ax[0, 2].plot(ds.s[..., 0], ds.s[..., 1], '.', markersize=0.2) ax[0, 2].axis('scaled') ax[0, 2].set_xlabel('[BL]') ax[0, 2].set_ylabel('[BL]') ax[0, 2].set_title('All traj') #### [plot] one random trajectory random_index = np.random.randint(0, ds.n_fish) ax[1, 0].plot(ds.s[:, random_index, 0], ds.s[:, random_index, 1], 'k-') ax[1, 0].axis('scaled') ax[1, 0].set_xlabel('[BL]') ax[1, 0].set_ylabel('[BL]') ax[1, 0].set_title('On random traj. (fish n°' + str(random_index) + ')') plt.tight_layout() plt.pause(0.1); plt.plot() fig.savefig(cleandata_foldername + '/check_plots.png') print('\n') print('Control plots saved in ', cleandata_foldername) def clean_data(data_folder): ''' A wrapper Parameters ---------- data_folder : str Returns ------- The clean dataset generated and its location ''' print("\n") print(" Processing data ".center(80, "*"), "\n") print("Data folder :", data_folder, "\n") ds, res = generate_dataset(data_folder) if res: save_xarray_file(ds, save_cloud=True, save_loc=True) save_control_plots(ds) return ds, create_folder_cleandata(data_folder) # %% Run code if __name__ == "__main__": global fps, root, circular_arena fps = 5 root = '/Volumes/baptiste/data_labox/illuminance_variation/' #'/Volumes/baptiste/2019_PMMH_stage_AGimenez_collective/Collective/1_data_alicia/'# circular_arena = False root_data = f'{root}1_raw_data/3_VarLight' #root# folder_list = glob.glob(f"{root_data}*/**/Tracking*", recursive = False) for data_folder in folder_list: _, _ = clean_data(os.path.dirname(data_folder))
HansBug/hbutils
test/reflection/test_func.py
<reponame>HansBug/hbutils<filename>test/reflection/test_func.py import inspect import io from functools import wraps from typing import Callable, Any, Union, Optional, List, Tuple import pytest from hbutils.reflection import args_iter, dynamic_call, static_call, post_process, pre_process, freduce, raising, \ warning_, get_callable_hint, sigsupply, fcopy, frename, fassign def _has_signature(func) -> bool: try: inspect.signature(func, follow_wrapped=False) except ValueError: return False else: return True def _nosigmark(func): return pytest.mark.unittest if not _has_signature(func) else pytest.mark.ignore class TestReflectionFunc: @pytest.mark.unittest def test_fassign(self): def func(a, b): return a + b nfunc = fassign(__name__='funcx', __doc__='This is doc for funcx')(func) assert nfunc is func assert nfunc.__name__ == 'funcx' assert nfunc.__doc__ == 'This is doc for funcx' assert nfunc(1, 2) == 3 @pytest.mark.unittest def test_frename(self): def func(a, b): return a + b nfunc = frename('funcx')(func) assert nfunc is func assert nfunc.__name__ == 'funcx' assert nfunc(1, 2) == 3 @pytest.mark.unittest def test_fcopy(self): def func(a, b): return a + b nfunc = fcopy(func) assert nfunc(1, 2) == 3 assert nfunc is not func @pytest.mark.unittest def test_args_iter(self): assert list(args_iter(1, 2, 3, a=1, c=3, b=4)) == [(0, 1), (1, 2), (2, 3), ('a', 1), ('b', 4), ('c', 3)] @_nosigmark(print) def test_sigsupply_print(self): with io.StringIO() as sio: f1 = dynamic_call(sigsupply(print, lambda a, b, c, **kwargs: None)) f1(2, 3, 5, 7, file=sio) assert '2 3 5' in sio.getvalue() assert '2 3 5 7' not in sio.getvalue() f2 = dynamic_call(sigsupply(f1, lambda *args, **kwargs: None)) f2(11, 13, 17, 19, file=sio) assert '11 13 17' in sio.getvalue() assert '11 13 17 19' not in sio.getvalue() def my_print(*args, **kwargs): print(*args, **kwargs) f3 = dynamic_call(sigsupply(my_print, lambda a, b, **kwargs: None)) f3(23, 29, 31, 37, file=sio) assert '23 29 31 37' in sio.getvalue() @_nosigmark(list) def test_sigsupply_list(self): f1 = dynamic_call(sigsupply(list, lambda x: None)) assert f1((1, 2, 3), (3, 2, 1)) == [1, 2, 3] f2 = dynamic_call(sigsupply(f1, lambda x, y: None)) assert f2((1, 2, 3), (3, 2, 1)) == [1, 2, 3] def my_list(x): return list(x) f3 = dynamic_call(sigsupply(my_list, lambda x, y: None)) assert f3((1, 2, 3), (3, 2, 1)) == [1, 2, 3] @pytest.mark.unittest def test_dynamic_call(self): assert dynamic_call(lambda x, y: x ** y)(2, 3) == 8 assert dynamic_call(lambda x, y: x ** y)(2, 3, 4) == 8 assert dynamic_call(lambda x, y, t, *args: (args, (t, x, y)))(1, 2, 3, 4, 5) == ((4, 5), (3, 1, 2)) assert dynamic_call(lambda x, y: (x, y))(y=2, x=1) == (1, 2) assert dynamic_call(lambda x, y, **kwargs: (kwargs, x, y))(1, k=2, y=3) == ({'k': 2}, 1, 3) assert dynamic_call(lambda x, y, *args, t=2, v=4, **kwargs: (args, kwargs, x, y, t, v))(1, 2, 3, 4, p=5, v=7) \ == ((3, 4), {'p': 5}, 1, 2, 2, 7) def __get_wrapped_function(self): def _wrapper(func): @wraps(func) def _new_func(*args): return func(sum(args)) return _new_func @dynamic_call @dynamic_call @_wrapper def f(x): return x ** x return f @pytest.mark.unittest def test_dynamic_call_nested_with_wrapper(self): f = self.__get_wrapped_function() assert f(1, 2, 3, 4) == 10 ** 10 @pytest.mark.unittest def test_static_call(self): f = self.__get_wrapped_function() f = static_call(f, static_ok=False).__wrapped__ assert f(2) == 4 with pytest.raises(TypeError): _ = f(1, 2, 3, 4) def another_f(x): return x ** x with pytest.raises(TypeError): _ = static_call(another_f, static_ok=False) @pytest.mark.unittest def test_pre_process(self): @pre_process(lambda x, y: (-x, (x + 2) * y)) def plus(a, b): return a + b assert plus(1, 2) == 5 @pre_process(lambda x, y: ((), {'a': -x, 'b': (x + 2) * y})) def plus2(a, b): return a + b assert plus2(1, 2) == 5 @pre_process(lambda x, y: {'a': -x, 'b': (x + 2) * y}) def plus3(a, b): return a + b assert plus3(1, 2) == 5 @pre_process(lambda x, y: ((-x, -x + 1, -x + 2), (y, y + 1, y + 2))) def plus4(a, b): return a + b assert plus4(1, 2) == (-1, 0, 1, 2, 3, 4) @pre_process(lambda x: -x) def pw(a): return a ** a assert pw(-3) == 27 @pytest.mark.unittest def test_post_process(self): @post_process(lambda x: -x) def plus(a, b): return a + b assert plus(1, 2) == -3 @post_process(lambda: None) def plus2(a, b): return a + b assert plus2(1, 2) is None @pytest.mark.unittest def test_freduce(self): @freduce(init=lambda neg=False: 1 if neg else 0) def plus(a, b, neg: bool = False): return a + b if not neg else a * b assert plus() == 0 assert plus(1) == 1 assert plus(1, 2) == 3 assert plus(1, 2, 3, 4, 5) == 15 assert plus(1, 2, 3, 4, neg=True) == 24 @freduce() def plus2(a, b, neg: bool = False): return a + b if not neg else a * b with pytest.raises(SyntaxError): _ = plus2() assert plus2(1) == 1 assert plus2(1, 2) == 3 assert plus2(1, 2, 3, 4, 5) == 15 assert plus2(1, 2, 3, 4, neg=True) == 24 @freduce(init=lambda neg=False: 1 if neg else 0, pass_kwargs=False) def plus3(a, b, neg: bool = False): return a + b if not neg else a * b assert plus3() == 0 assert plus3(1) == 1 assert plus3(1, 2) == 3 assert plus3(1, 2, 3, 4, 5) == 15 with pytest.warns(SyntaxWarning): assert plus3(1, 2, 3, 4, neg=True) == 10 @pytest.mark.unittest def test_raising(self): f1 = raising(lambda: RuntimeError) f2 = raising(RuntimeError) f3 = raising(RuntimeError()) with pytest.raises(RuntimeError): f1() with pytest.raises(RuntimeError): f2() with pytest.raises(RuntimeError): f3() f4 = raising(lambda x: RuntimeError if x < 0 else x) assert f4(0) == 0 assert f4(1) == 1 with pytest.raises(RuntimeError): f4(-1) @pytest.mark.unittest def test_warning(self): f1 = warning_(lambda: RuntimeWarning) f2 = warning_(RuntimeWarning) f3 = warning_(RuntimeWarning()) f4 = warning_('warning') with pytest.warns(RuntimeWarning): f1() with pytest.warns(RuntimeWarning): f2() with pytest.warns(RuntimeWarning): f3() with pytest.warns(UserWarning): f4() f5 = warning_(lambda x: RuntimeWarning if x < 0 else x) with pytest.warns(None): f5(1) with pytest.warns(RuntimeWarning): f5(-1) f6 = warning_(lambda x: (RuntimeWarning, (), {}) if x < 0 else x) with pytest.warns(None): f6(1) with pytest.warns(RuntimeWarning): f6(-1) f7 = warning_(lambda x: (RuntimeWarning, ()) if x < 0 else x) with pytest.warns(None): f7(1) with pytest.warns(RuntimeWarning): f7(-1) f8 = warning_(lambda x: (RuntimeWarning, {}) if x < 0 else x) with pytest.warns(None): f8(1) with pytest.warns(RuntimeWarning): f8(-1) @pytest.mark.unittest def test_get_callable_hint(self): def f1(x, y) -> int: pass assert get_callable_hint(f1) == Callable[[Any, Any], int] def f2(x: int, y: float, z: Union[Optional[str], List[float]]) -> Tuple[int, float, str]: pass assert get_callable_hint(f2) == Callable[ [int, float, Union[Optional[str], List[float]]], Tuple[int, float, str] ] def f3(x, y: int, *, z=1) -> float: pass assert get_callable_hint(f3) == Callable[..., float] def f4(x, y: int, *, z=1): pass assert get_callable_hint(f4) == Callable[..., Any]
karaulyanovsap/scimono
scimono-client/src/main/java/com/sap/scimono/client/authentication/OauthTokenProperties.java
package com.sap.scimono.client.authentication; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Instant; import static java.time.temporal.ChronoUnit.SECONDS; @JsonIgnoreProperties(ignoreUnknown = true) public class OauthTokenProperties { private String accessToken; private String tokenType; private int expiresIn; private String scope; private Instant tokenReceiveTime; // @formatter:off @JsonCreator protected OauthTokenProperties( @JsonProperty(value = "access_token", required = true) String accessToken, @JsonProperty(value = "token_type", defaultValue = "Bearer") String tokenType, @JsonProperty("expires_in") int expiresIn, @JsonProperty("scope") String scope ) { this.accessToken = accessToken; this.tokenType = tokenType; this.expiresIn = expiresIn; this.scope = scope; this.tokenReceiveTime = Instant.now(); } // @formatter:on public String getAccessToken() { return accessToken; } public String getTokenType() { return tokenType; } public int getExpiresIn() { return expiresIn; } public String getScope() { return scope; } public Instant getTokenExpirationTime() { return tokenReceiveTime.plus(expiresIn, SECONDS).minus(10, SECONDS); } }
3Ution-BK/ModelViewer
ModelViewer/Event/KeyboardCode.hpp
<reponame>3Ution-BK/ModelViewer<filename>ModelViewer/Event/KeyboardCode.hpp #ifndef MODELVIEWER_EVENT_KEYBOARDCODE_HPP_ #define MODELVIEWER_EVENT_KEYBOARDCODE_HPP_ #include "OpenGL/OpenGLLib.hpp" namespace Event { /** * \brief Represent the available keycode of the keyboard. * * The enum storage is the same as the int, which is what input key code glfw is * using. */ enum class KeyboardCode : int { // Unknown Unknown = GLFW_KEY_UNKNOWN, ///< Unknown key. // ASCII printable keys Space = GLFW_KEY_SPACE, ///< Space key. Apostrophe = GLFW_KEY_APOSTROPHE, ///< Apostrophe "'". Comma = GLFW_KEY_COMMA, ///< Comma ",". Minus = GLFW_KEY_MINUS, ///< Minus "-". Period = GLFW_KEY_PERIOD, ///< Period ".". Slash = GLFW_KEY_SLASH, ///< Slash "/". Alpha0 = GLFW_KEY_0, ///< Alphanumeric "0". Alpha1 = GLFW_KEY_1, ///< Alphanumeric "1". Alpha2 = GLFW_KEY_2, ///< Alphanumeric "2". Alpha3 = GLFW_KEY_3, ///< Alphanumeric "3". Alpha4 = GLFW_KEY_4, ///< Alphanumeric "4". Alpha5 = GLFW_KEY_5, ///< Alphanumeric "5". Alpha6 = GLFW_KEY_6, ///< Alphanumeric "6". Alpha7 = GLFW_KEY_7, ///< Alphanumeric "7". Alpha8 = GLFW_KEY_8, ///< Alphanumeric "8". Alpha9 = GLFW_KEY_9, ///< Alphanumeric "9". Semicolon = GLFW_KEY_SEMICOLON, ///< Semicolon ";". Equal = GLFW_KEY_EQUAL, ///< Equal "=". A = GLFW_KEY_A, ///< Alphanumeric "A". B = GLFW_KEY_B, ///< Alphanumeric "B". C = GLFW_KEY_C, ///< Alphanumeric "C". D = GLFW_KEY_D, ///< Alphanumeric "D". E = GLFW_KEY_E, ///< Alphanumeric "E". F = GLFW_KEY_F, ///< Alphanumeric "F". G = GLFW_KEY_G, ///< Alphanumeric "G". H = GLFW_KEY_H, ///< Alphanumeric "H". I = GLFW_KEY_I, ///< Alphanumeric "I". J = GLFW_KEY_J, ///< Alphanumeric "J". K = GLFW_KEY_K, ///< Alphanumeric "K". L = GLFW_KEY_L, ///< Alphanumeric "L". M = GLFW_KEY_M, ///< Alphanumeric "M". N = GLFW_KEY_N, ///< Alphanumeric "N". O = GLFW_KEY_O, ///< Alphanumeric "O". P = GLFW_KEY_P, ///< Alphanumeric "P". Q = GLFW_KEY_Q, ///< Alphanumeric "Q". R = GLFW_KEY_R, ///< Alphanumeric "R". S = GLFW_KEY_S, ///< Alphanumeric "S". T = GLFW_KEY_T, ///< Alphanumeric "T". U = GLFW_KEY_U, ///< Alphanumeric "U". V = GLFW_KEY_V, ///< Alphanumeric "V". W = GLFW_KEY_W, ///< Alphanumeric "W". X = GLFW_KEY_X, ///< Alphanumeric "X". Y = GLFW_KEY_Y, ///< Alphanumeric "Y". Z = GLFW_KEY_Z, ///< Alphanumeric "Z". LeftBracket = GLFW_KEY_LEFT_BRACKET, ///< LeftBracket "[". BackSlash = GLFW_KEY_BACKSLASH, ///< BackSlash "\\". RightBracket = GLFW_KEY_RIGHT_BRACKET, ///< RightBracket "]". GraveAccent = GLFW_KEY_GRAVE_ACCENT, ///< GraveAccent "`". World1 = GLFW_KEY_WORLD_1, ///< non-US #1. World2 = GLFW_KEY_WORLD_2, ///< non-US #2. // Function keys Escape = GLFW_KEY_ESCAPE, ///< Escape. Enter = GLFW_KEY_ENTER, ///< Enter. Tab = GLFW_KEY_TAB, ///< Tab. Backspace = GLFW_KEY_BACKSPACE, ///< Backspace. Insert = GLFW_KEY_INSERT, ///< Insert. Delete = GLFW_KEY_DELETE, ///< Delete. Right = GLFW_KEY_RIGHT, ///< Right. Left = GLFW_KEY_LEFT, ///< Left. Down = GLFW_KEY_DOWN, ///< Down. Up = GLFW_KEY_UP, ///< Up. PageUp = GLFW_KEY_PAGE_UP, ///< Page up. PageDown = GLFW_KEY_PAGE_DOWN, ///< Page down. Home = GLFW_KEY_HOME, ///< Home. End = GLFW_KEY_END, ///< End. CapsLock = GLFW_KEY_CAPS_LOCK, ///< Caps Lock. ScrollLock = GLFW_KEY_SCROLL_LOCK, ///< Scroll Lock. NumLock = GLFW_KEY_NUM_LOCK, ///< Num Lock. PrintScreen = GLFW_KEY_PRINT_SCREEN, ///< Print Screen. Pause = GLFW_KEY_PAUSE, ///< Pause. F1 = GLFW_KEY_F1, ///< F1. F2 = GLFW_KEY_F2, ///< F2. F3 = GLFW_KEY_F3, ///< F3. F4 = GLFW_KEY_F4, ///< F4. F5 = GLFW_KEY_F5, ///< F5. F6 = GLFW_KEY_F6, ///< F6. F7 = GLFW_KEY_F7, ///< F7. F8 = GLFW_KEY_F8, ///< F8. F9 = GLFW_KEY_F9, ///< F9. F10 = GLFW_KEY_F10, ///< F10. F11 = GLFW_KEY_F11, ///< F11. F12 = GLFW_KEY_F12, ///< F12. F13 = GLFW_KEY_F13, ///< F13. F14 = GLFW_KEY_F14, ///< F14. F15 = GLFW_KEY_F15, ///< F15. F16 = GLFW_KEY_F16, ///< F16. F17 = GLFW_KEY_F17, ///< F17. F18 = GLFW_KEY_F18, ///< F18. F19 = GLFW_KEY_F19, ///< F19. F20 = GLFW_KEY_F20, ///< F20. F21 = GLFW_KEY_F21, ///< F21. F22 = GLFW_KEY_F22, ///< F22. F23 = GLFW_KEY_F23, ///< F23. F24 = GLFW_KEY_F24, ///< F24. F25 = GLFW_KEY_F25, ///< F25. Keypad0 = GLFW_KEY_KP_0, ///< Keypad "0". Keypad1 = GLFW_KEY_KP_1, ///< Keypad "1". Keypad2 = GLFW_KEY_KP_2, ///< Keypad "2". Keypad3 = GLFW_KEY_KP_3, ///< Keypad "3". Keypad4 = GLFW_KEY_KP_4, ///< Keypad "4". Keypad5 = GLFW_KEY_KP_5, ///< Keypad "5". Keypad6 = GLFW_KEY_KP_6, ///< Keypad "6". Keypad7 = GLFW_KEY_KP_7, ///< Keypad "7". Keypad8 = GLFW_KEY_KP_8, ///< Keypad "8". Keypad9 = GLFW_KEY_KP_9, ///< Keypad "9". KeypadDecimal = GLFW_KEY_KP_DECIMAL, ///< Keypad ".". KeypadDivide = GLFW_KEY_KP_DIVIDE, ///< Keypad "/". KeypadMultiply = GLFW_KEY_KP_MULTIPLY, ///< Keypad "*". KeypadSubtract = GLFW_KEY_KP_SUBTRACT, ///< Keypad "-". KeypadAdd = GLFW_KEY_KP_ADD, ///< Keypad "+". KeypadEnter = GLFW_KEY_KP_ENTER, ///< Keypad "Enter". KeypadEqual = GLFW_KEY_KP_EQUAL, ///< Keypad "Equal". LeftShift = GLFW_KEY_LEFT_SHIFT, ///< Left shift. LeftControl = GLFW_KEY_LEFT_CONTROL, ///< Left control. LeftAlt = GLFW_KEY_LEFT_ALT, ///< Left alt. LeftSuper = GLFW_KEY_LEFT_SUPER, ///< Left super. RightShift = GLFW_KEY_RIGHT_SHIFT, ///< Right shift. RightControl = GLFW_KEY_RIGHT_CONTROL, ///< Right control. RightAlt = GLFW_KEY_RIGHT_ALT, ///< Right alt. RightSuper = GLFW_KEY_RIGHT_SUPER, ///< Right super. Menu = GLFW_KEY_MENU, ///< Menu. Last = GLFW_KEY_LAST }; } // namespace Event #endif // MODELVIEWER_EVENT_KEYBOARDCODE_HPP_
sensebox/remote-sensebox-react
src/Components/Blockly/blocks/index.js
import './loops'; import './sensebox'; import './logic'; import './sensebox-sensors'; import './sensebox-display'; import './sensebox-led'; import './text'; import './serial'; import './math'; import './map'; import './procedures'; import './time'; import './variables'; import './lists'; import '../helpers/types'
sffc/fuchsia-clone
src/media/audio/lib/simple-codec/tests/test.cc
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/simple-codec/simple-codec-client.h> #include <lib/simple-codec/simple-codec-server.h> #include <lib/sync/completion.h> #include <sdk/lib/inspect/testing/cpp/zxtest/inspect.h> #include <zxtest/zxtest.h> #include "src/devices/testing/mock-ddk/mock-device.h" namespace { static const char* kTestId = "test id"; static const char* kTestManufacturer = "test man"; static const char* kTestProduct = "test prod"; static const uint32_t kTestInstanceCount = 123; } // namespace namespace audio { namespace audio_fidl = ::fuchsia::hardware::audio; class SimpleCodecTest : public inspect::InspectTestHelper, public zxtest::Test {}; // Server tests. class TestCodec : public SimpleCodecServer { public: explicit TestCodec(zx_device_t* parent) : SimpleCodecServer(parent) {} codec_protocol_t GetProto() { return {&this->codec_protocol_ops_, this}; } zx_status_t Shutdown() override { return ZX_OK; } zx::status<DriverIds> Initialize() override { return zx::ok(DriverIds{.vendor_id = 0, .device_id = 0, .instance_count = kTestInstanceCount}); } zx_status_t Reset() override { return ZX_ERR_NOT_SUPPORTED; } Info GetInfo() override { return {.unique_id = kTestId, .manufacturer = kTestManufacturer, .product_name = kTestProduct}; } zx_status_t Stop() override { return ZX_ERR_NOT_SUPPORTED; } zx_status_t Start() override { return ZX_OK; } bool IsBridgeable() override { return false; } void SetBridgedMode(bool enable_bridged_mode) override {} void GetProcessingElements(audio_fidl::Codec::GetProcessingElementsCallback callback) override { audio_fidl::ProcessingElement pe; pe.set_id(kAglPeId); pe.set_type(audio_fidl::ProcessingElementType::AUTOMATIC_GAIN_LIMITER); std::vector<audio_fidl::ProcessingElement> pes; pes.emplace_back(std::move(pe)); audio_fidl::SignalProcessing_GetProcessingElements_Response response(std::move(pes)); audio_fidl::SignalProcessing_GetProcessingElements_Result result; result.set_response(std::move(response)); callback(std::move(result)); } void SetProcessingElement( uint64_t processing_element_id, audio_fidl::ProcessingElementControl control, audio_fidl::SignalProcessing::SetProcessingElementCallback callback) override { ASSERT_EQ(processing_element_id, kAglPeId); ASSERT_TRUE(control.has_enabled()); agl_mode_ = control.enabled(); callback(audio_fidl::SignalProcessing_SetProcessingElement_Result::WithResponse( audio_fidl::SignalProcessing_SetProcessingElement_Response())); } DaiSupportedFormats GetDaiFormats() override { return {}; } zx::status<CodecFormatInfo> SetDaiFormat(const DaiFormat& format) override { return zx::error(ZX_ERR_NOT_SUPPORTED); } GainFormat GetGainFormat() override { return {}; } GainState GetGainState() override { return gain_state_; } void SetGainState(GainState state) override { gain_state_ = state; } bool agl_mode() { return agl_mode_; } inspect::Inspector& inspect() { return SimpleCodecServer::inspect(); } private: static constexpr uint64_t kAglPeId = 1; GainState gain_state_ = {}; bool agl_mode_ = false; }; TEST_F(SimpleCodecTest, ChannelConnection) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); SimpleCodecClient client; ASSERT_OK(client.SetProtocol(&codec_proto)); auto info = client.GetInfo(); ASSERT_TRUE(info.is_ok()); ASSERT_EQ(info->unique_id.compare(kTestId), 0); ASSERT_EQ(info->manufacturer.compare(kTestManufacturer), 0); ASSERT_EQ(info->product_name.compare(kTestProduct), 0); } TEST_F(SimpleCodecTest, GainState) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); SimpleCodecClient client; ASSERT_OK(client.SetProtocol(&codec_proto)); // Defaults to false/0db. { auto state = client.GetGainState(); ASSERT_TRUE(state.is_ok()); ASSERT_EQ(state->muted, false); ASSERT_EQ(state->agc_enabled, false); ASSERT_EQ(state->gain, 0.f); } // Still all set to false/0db. { auto state = client.GetGainState(); ASSERT_TRUE(state.is_ok()); ASSERT_EQ(state->muted, false); ASSERT_EQ(state->agc_enabled, false); ASSERT_EQ(state->gain, 0.f); } // Set gain now. client.SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = true}); // Values updated now. { auto state = client.GetGainState(); ASSERT_TRUE(state.is_ok()); ASSERT_EQ(state->muted, true); ASSERT_EQ(state->agc_enabled, true); ASSERT_EQ(state->gain, 1.23f); } } TEST_F(SimpleCodecTest, SetDaiFormat) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); SimpleCodecClient client; client.SetProtocol(&codec_proto); DaiFormat format = {.sample_format = audio_fidl::DaiSampleFormat::PCM_SIGNED, .frame_format = FrameFormat::I2S}; zx::status<CodecFormatInfo> codec_format_info = client.SetDaiFormat(std::move(format)); ASSERT_EQ(codec_format_info.status_value(), ZX_ERR_NOT_SUPPORTED); } TEST_F(SimpleCodecTest, PlugState) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); zx::channel channel_remote, channel_local; ASSERT_OK(zx::channel::create(0, &channel_local, &channel_remote)); ddk::CodecProtocolClient proto_client; ASSERT_OK(codec_proto2.Connect(std::move(channel_remote))); audio_fidl::CodecSyncPtr codec_client; codec_client.Bind(std::move(channel_local)); audio_fidl::PlugDetectCapabilities out_plug_detect_capabilites; ASSERT_OK(codec_client->GetPlugDetectCapabilities(&out_plug_detect_capabilites)); ASSERT_EQ(out_plug_detect_capabilites, audio_fidl::PlugDetectCapabilities::HARDWIRED); audio_fidl::PlugState out_plug_state; ASSERT_OK(codec_client->WatchPlugState(&out_plug_state)); ASSERT_EQ(out_plug_state.plugged(), true); ASSERT_GT(out_plug_state.plug_state_time(), 0); } TEST_F(SimpleCodecTest, AglStateServerWithClientViaSignalProcessingApi) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); zx::channel channel_remote, channel_local; ASSERT_OK(zx::channel::create(0, &channel_local, &channel_remote)); ddk::CodecProtocolClient proto_client; ASSERT_OK(codec_proto2.Connect(std::move(channel_remote))); audio_fidl::CodecSyncPtr codec_client; codec_client.Bind(std::move(channel_local)); // We should get one PE with AGL support. audio_fidl::SignalProcessing_GetProcessingElements_Result result; ASSERT_OK(codec_client->GetProcessingElements(&result)); ASSERT_FALSE(result.is_err()); ASSERT_EQ(result.response().processing_elements.size(), 1); ASSERT_EQ(result.response().processing_elements[0].type(), audio_fidl::ProcessingElementType::AUTOMATIC_GAIN_LIMITER); ASSERT_FALSE(codec->agl_mode()); // Control with enabled = true. audio_fidl::SignalProcessing_SetProcessingElement_Result result_enable; audio_fidl::ProcessingElementControl control_enable; control_enable.set_enabled(true); ASSERT_OK(codec_client->SetProcessingElement(result.response().processing_elements[0].id(), std::move(control_enable), &result_enable)); ASSERT_FALSE(result_enable.is_err()); ASSERT_TRUE(codec->agl_mode()); } TEST_F(SimpleCodecTest, AglStateServerViaSimpleCodecClient) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); SimpleCodecClient client; ASSERT_OK(client.SetProtocol(&codec_proto)); ASSERT_OK(client.SetAgl(true)); ASSERT_TRUE(codec->agl_mode()); ASSERT_OK(client.SetAgl(false)); ASSERT_FALSE(codec->agl_mode()); } TEST_F(SimpleCodecTest, AglStateServerViaSimpleCodecClientNoSupport) { auto fake_parent = MockDevice::FakeRootParent(); struct TestCodecNoAgl : public TestCodec { explicit TestCodecNoAgl(zx_device_t* parent) : TestCodec(parent) {} void GetProcessingElements(audio_fidl::Codec::GetProcessingElementsCallback callback) override { callback( audio_fidl::SignalProcessing_GetProcessingElements_Result::WithErr(ZX_ERR_NOT_SUPPORTED)); } }; ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodecNoAgl>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); SimpleCodecClient client; ASSERT_OK(client.SetProtocol(&codec_proto)); ASSERT_EQ(client.SetAgl(true), ZX_ERR_NOT_SUPPORTED); } TEST_F(SimpleCodecTest, Inspect) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); zx::channel channel_remote, channel_local; ASSERT_OK(zx::channel::create(0, &channel_local, &channel_remote)); ddk::CodecProtocolClient proto_client; ASSERT_OK(codec_proto2.Connect(std::move(channel_remote))); audio_fidl::CodecSyncPtr codec_client; codec_client.Bind(std::move(channel_local)); // Check inspect state. ASSERT_NO_FATAL_FAILURE(ReadInspect(codec->inspect().DuplicateVmo())); auto* simple_codec = hierarchy().GetByPath({"simple_codec"}); ASSERT_TRUE(simple_codec); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "state", inspect::StringPropertyValue("created"))); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "start_time", inspect::IntPropertyValue(0))); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "unique_id", inspect::StringPropertyValue("test id"))); } TEST_F(SimpleCodecTest, InspectNoUniqueId) { struct TestCodecNoUniqueId : public TestCodec { explicit TestCodecNoUniqueId(zx_device_t* parent) : TestCodec(parent) {} zx::status<DriverIds> Initialize() override { return zx::ok( DriverIds{.vendor_id = 0, .device_id = 0, .instance_count = kTestInstanceCount}); } Info GetInfo() override { return {}; } }; auto fake_parent = MockDevice::FakeRootParent(); SimpleCodecServer::CreateAndAddToDdk<TestCodecNoUniqueId>(fake_parent.get()); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); zx::channel channel_remote, channel_local; ASSERT_OK(zx::channel::create(0, &channel_local, &channel_remote)); ddk::CodecProtocolClient proto_client; ASSERT_OK(codec_proto2.Connect(std::move(channel_remote))); audio_fidl::CodecSyncPtr codec_client; codec_client.Bind(std::move(channel_local)); // Check inspect state. ASSERT_NO_FATAL_FAILURE(ReadInspect(codec->inspect().DuplicateVmo())); auto* simple_codec = hierarchy().GetByPath({"simple_codec"}); ASSERT_TRUE(simple_codec); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "state", inspect::StringPropertyValue("created"))); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "start_time", inspect::IntPropertyValue(0))); ASSERT_NO_FATAL_FAILURE( CheckProperty(simple_codec->node(), "unique_id", inspect::StringPropertyValue(std::to_string(kTestInstanceCount)))); } TEST_F(SimpleCodecTest, MultipleClients) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); SimpleCodecClient codec_clients[3]; for (auto& codec_client : codec_clients) { ASSERT_OK(codec_client.SetProtocol(codec_proto2)); } { auto state = codec_clients[0].GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, false); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 0.f); } codec_clients[1].SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = false}); // Wait for client 0 to be notified of the new gain state. for (;;) { auto state = codec_clients[0].GetGainState(); ASSERT_TRUE(state.is_ok()); if (state->muted) { break; } } { auto state = codec_clients[0].GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } codec_clients[0].SetGainState({.gain = 5.67f, .muted = true, .agc_enabled = true}); for (;;) { auto state = codec_clients[2].GetGainState(); ASSERT_TRUE(state.is_ok()); if (state->agc_enabled) { break; } } { auto state = codec_clients[2].GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, true); EXPECT_EQ(state->gain, 5.67f); } } TEST_F(SimpleCodecTest, MoveClient) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); SimpleCodecClient codec_client1; ASSERT_OK(codec_client1.SetProtocol(codec_proto2)); codec_client1.SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = false}); EXPECT_OK(codec_client1.Start()); SimpleCodecClient codec_client2(std::move(codec_client1)); EXPECT_NOT_OK(codec_client1.Start()); // The client was unbound, this should return an error. { auto state = codec_client2.GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } } TEST_F(SimpleCodecTest, CloseChannel) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); SimpleCodecClient codec_client; ASSERT_OK(codec_client.SetProtocol(codec_proto2)); codec_client.SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = false}); { auto state = codec_client.GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } EXPECT_OK(codec_client.Start()); // TestCodec doesn't support this, so calling it should cause the server to unbind. EXPECT_NOT_OK(codec_client.Stop()); // This should fail now that our channel has been closed. EXPECT_NOT_OK(codec_client.Start()); } TEST_F(SimpleCodecTest, RebindClient) { auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); SimpleCodecClient codec_client; ASSERT_OK(codec_client.SetProtocol(codec_proto2)); codec_client.SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = false}); { auto state = codec_client.GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } // Do a synchronous FIDL call to flush messages on the channel and force the server to update the // gain state. EXPECT_OK(codec_client.Start()); ASSERT_OK(codec_client.SetProtocol(codec_proto2)); { auto state = codec_client.GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } } TEST_F(SimpleCodecTest, MoveClientWithDispatcherProvided) { async::Loop loop(&kAsyncLoopConfigNeverAttachToThread); ASSERT_OK(loop.StartThread("SimpleCodecClient test thread")); auto fake_parent = MockDevice::FakeRootParent(); ASSERT_OK(SimpleCodecServer::CreateAndAddToDdk<TestCodec>(fake_parent.get())); auto* child_dev = fake_parent->GetLatestChild(); ASSERT_NOT_NULL(child_dev); auto codec = child_dev->GetDeviceContext<TestCodec>(); auto codec_proto = codec->GetProto(); ddk::CodecProtocolClient codec_proto2(&codec_proto); SimpleCodecClient codec_client1(loop.dispatcher()); ASSERT_OK(codec_client1.SetProtocol(codec_proto2)); codec_client1.SetGainState({.gain = 1.23f, .muted = true, .agc_enabled = false}); EXPECT_OK(codec_client1.Start()); SimpleCodecClient codec_client2(std::move(codec_client1)); EXPECT_NOT_OK(codec_client1.Start()); // The client was unbound, this should return an error. { auto state = codec_client2.GetGainState(); ASSERT_TRUE(state.is_ok()); EXPECT_EQ(state->muted, true); EXPECT_EQ(state->agc_enabled, false); EXPECT_EQ(state->gain, 1.23f); } } } // namespace audio
webx-top/dbx
db_ex.go
//Package db Copyright (c) 2012-present upper.io/db authors. All rights reserved. //Package db Copyright (c) 2017-present <NAME>. All rights reserved. package db import ( "context" "fmt" "sync" ) func NewKeysValues() *KeysValues { return &KeysValues{} } type KeysValues struct { keys []string values []interface{} } func (k *KeysValues) Keys() []string { return k.keys } func (k *KeysValues) Values() []interface{} { return k.values } func (k *KeysValues) Add(key string, value interface{}) *KeysValues { k.keys = append(k.keys, key) k.values = append(k.values, value) return k } func (k *KeysValues) Reset() *KeysValues { k.keys = k.keys[0:0] k.values = k.values[0:0] return k } func (k *KeysValues) String() string { return fmt.Sprintf("keys: %#v\nvalues: %#v", k.keys, k.values) } // Slice 依次填充key和value func (k *KeysValues) Slice() []interface{} { var data []interface{} vl := len(k.values) for i, kk := range k.keys { data = append(data, kk) if i < vl { data = append(data, k.values[i]) } else { data = append(data, nil) } } return data } func (k *KeysValues) Map() map[string]interface{} { data := map[string]interface{}{} vl := len(k.values) for i, kk := range k.keys { if i < vl { data[kk] = k.values[i] } else { data[kk] = nil } } return data } type Compounds []Compound var compoundsPool = sync.Pool{ New: func() interface{} { return NewCompounds() }, } func CompoundsPoolGet() *Compounds { return compoundsPool.Get().(*Compounds) } func CompoundsPoolRelease(c *Compounds) { c.Reset() compoundsPool.Put(c) } func NewCompounds() *Compounds { return &Compounds{} } func (c *Compounds) AddKV(key, value interface{}) *Compounds { *c = append(*c, Cond{key: value}) return c } func (c *Compounds) Set(compounds ...Compound) *Compounds { *c = compounds return c } func (c *Compounds) Add(compounds ...Compound) *Compounds { *c = append(*c, compounds...) return c } func (c *Compounds) From(from *Compounds) *Compounds { if from.Size() == 0 { return c } return c.Add(from.V()...) } func (c *Compounds) Slice() []Compound { return *c } func (c *Compounds) V() []Compound { return c.Slice() } func (c *Compounds) Size() int { return len(*c) } var _ Compound = NewCompounds() func (c *Compounds) And(compounds ...Compound) Compound { c.Add(compounds...) switch c.Size() { case 0: return EmptyCond case 1: return (*c)[0] default: return And(*c...) } } func (c *Compounds) Or(compounds ...Compound) Compound { c.Add(compounds...) switch c.Size() { case 0: return EmptyCond case 1: return (*c)[0] default: return Or(*c...) } } // Sentences return each one of the map records as a compound. func (c *Compounds) Sentences() []Compound { return c.Slice() } // Operator returns the default compound operator. func (c *Compounds) Operator() CompoundOperator { return OperatorAnd } // Empty returns false if there are no conditions. func (c *Compounds) Empty() bool { return c.Size() == 0 } func (c *Compounds) Reset() { if c.Empty() { return } *c = (*c)[0:0] } func (c *Compounds) remove(s int) Compounds { return append((*c)[:s], (*c)[s+1:]...) } func (c *Compounds) Delete(keys ...interface{}) { for _, key := range keys { for i, v := range *c { r, y := v.(Cond) if !y { continue } _, ok := r[key] if !ok { continue } delete(r, key) if len(r) == 0 { *c = c.remove(i) } } } } type TableName interface { TableName() string } type tableNameString string func (t tableNameString) TableName() string { return string(t) } func Table(tableName string) TableName { return tableNameString(tableName) } type StdContext interface { StdContext() context.Context } type RequestURI interface { RequestURI() string } type Method interface { Method() string }
LuisFLCCQ/base_cod_java
c3.unicap.br.almir.ip1/test/ip2/main.java
<filename>c3.unicap.br.almir.ip1/test/ip2/main.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 ip2; import java.util.Scanner; /** * * @author user */ public class main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] vetApar = new int [50]; int[] vetBimpar = new int [vetApar.length]; int op,novoNum; int indexPar=0,indexImpar=0; do{ System.out.println("****Menu****"); System.out.println("1 - Armazenar número"); System.out.println("2 - Procurar número"); System.out.println("3 - Exibir números pares"); System.out.println("4 - Exibir números ímpares"); System.out.println("5 - Remover número"); System.out.println("6 - Encerrar programa"); System.out.print("Opção: "); op = in.nextInt(); switch(op){ case 1: System.out.println("Armazenar número: "); System.out.print("Num: "); novoNum = in.nextInt(); if (isPar(novoNum)){ verificaNum(vetApar,indexPar,novoNum); indexPar = insertNum(vetApar,indexPar,novoNum); } else{ verificaNum(vetBimpar,indexImpar,novoNum); indexImpar = insertNum(vetBimpar,indexImpar,novoNum); } break; case 2: System.out.println("Procurar número: "); System.out.print("Num: "); novoNum = in.nextInt(); if (isPar(novoNum)){ int aux = buscaValor(vetApar,indexPar,novoNum); System.out.println("Valor: "+aux); }else{ int aux = buscaValor(vetBimpar,indexImpar,novoNum); System.out.println("Valor: "+aux); } break; case 3: System.out.println("Exibir números pares: "); showPares(vetApar,indexPar); break; case 4: System.out.println("Exibir números ímpares: "); showImpares(vetBimpar,indexImpar); break; case 5: System.out.println("Remover número: "); System.out.print("Num: "); novoNum = in.nextInt(); if (isPar(novoNum)){ int aux = removeValor(vetApar,indexPar,novoNum); System.out.println("Valor: "+vetBimpar[aux]+" removido"); }else{ int aux = removeValor(vetBimpar,indexImpar,novoNum); System.out.println("Valor: "+vetBimpar[aux]+" removido"); } break; case 6: System.out.println("Programa encerrado."); break; default: System.out.println("Opção inválida"); } // fim switch } while (op != 6); } // end psvm static void verificaNum(int[] vetQ, int indexQ, int num){ //verifica se o vetor está completo if (indexQ < vetQ.length){ //compara o número digitado com os números dentro do vetor for (int i = 0; i < indexQ; i++){ if (vetQ[i] == num){ System.out.printf("Este número %d foi " + "adicionado anteriormente\n",num); break; } } // end for System.out.println("Valor inserido."); }else System.out.println("Vetor cheio."); } static int insertNum(int[] vetX, int qtdPreenchido, int valor){ vetX[qtdPreenchido] = valor; qtdPreenchido++; return qtdPreenchido; } static boolean isPar(int num){ return num % 2 == 0; } static void showPares(int[] vetP, int qtdPreenchido){ System.out.print("Vetor par: "); for (int i = 0; i < qtdPreenchido; i++){ System.out.print(vetP[i]+", "); } System.out.println(""); } static void showImpares(int[] vetI, int qtdPreenchido){ System.out.print("Vetor Impares: "); for (int i = 0; i < qtdPreenchido; i++){ System.out.print(vetI[i]+", "); } System.out.println(""); } static int buscaValor(int[] vetX, int indexQ, int valor){ for (int i = 0; i < indexQ; i++){ if (vetX[i] == valor) return i; } return -1; } static int removeValor(int[] vetX, int indexQ, int valor){ int aux = buscaValor(vetX,indexQ,valor); if(aux != -1){ return vetX[aux] = 0; } return -1; } }
42voyager/c4b-backend
api/documentation/search/functions_7.js
var searchData= [ ['iscnpj_0',['IsCnpj',['../classbackend_1_1Attributes_1_1CustomCPFAttribute.html#a5a08abff2d09fbc256f2608cbaa27ae0',1,'backend::Attributes::CustomCPFAttribute']]], ['iscpf_1',['IsCpf',['../classbackend_1_1Attributes_1_1CustomCPFAttribute.html#a2bf27689023775b1301ac60012788cbd',1,'backend::Attributes::CustomCPFAttribute']]], ['isvalid_2',['IsValid',['../classbackend_1_1Attributes_1_1CustomCPFAttribute.html#a6645349aa6859dd62d9d8e31503f5712',1,'backend::Attributes::CustomCPFAttribute']]] ];
408794550/871AR
Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharp_Lean_Touch_LeanRotate827445339.h
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "UnityEngine_UnityEngine_MonoBehaviour1158329972.h" #include "UnityEngine_UnityEngine_Vector32243707580.h" // Lean.Touch.LeanSelectable struct LeanSelectable_t3692576450; // UnityEngine.Camera struct Camera_t189460977; #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // Lean.Touch.LeanRotate struct LeanRotate_t827445339 : public MonoBehaviour_t1158329972 { public: // System.Boolean Lean.Touch.LeanRotate::IgnoreGuiFingers bool ___IgnoreGuiFingers_2; // System.Int32 Lean.Touch.LeanRotate::RequiredFingerCount int32_t ___RequiredFingerCount_3; // Lean.Touch.LeanSelectable Lean.Touch.LeanRotate::RequiredSelectable LeanSelectable_t3692576450 * ___RequiredSelectable_4; // UnityEngine.Camera Lean.Touch.LeanRotate::Camera Camera_t189460977 * ___Camera_5; // UnityEngine.Vector3 Lean.Touch.LeanRotate::RotateAxis Vector3_t2243707580 ___RotateAxis_6; // System.Boolean Lean.Touch.LeanRotate::Relative bool ___Relative_7; public: inline static int32_t get_offset_of_IgnoreGuiFingers_2() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___IgnoreGuiFingers_2)); } inline bool get_IgnoreGuiFingers_2() const { return ___IgnoreGuiFingers_2; } inline bool* get_address_of_IgnoreGuiFingers_2() { return &___IgnoreGuiFingers_2; } inline void set_IgnoreGuiFingers_2(bool value) { ___IgnoreGuiFingers_2 = value; } inline static int32_t get_offset_of_RequiredFingerCount_3() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___RequiredFingerCount_3)); } inline int32_t get_RequiredFingerCount_3() const { return ___RequiredFingerCount_3; } inline int32_t* get_address_of_RequiredFingerCount_3() { return &___RequiredFingerCount_3; } inline void set_RequiredFingerCount_3(int32_t value) { ___RequiredFingerCount_3 = value; } inline static int32_t get_offset_of_RequiredSelectable_4() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___RequiredSelectable_4)); } inline LeanSelectable_t3692576450 * get_RequiredSelectable_4() const { return ___RequiredSelectable_4; } inline LeanSelectable_t3692576450 ** get_address_of_RequiredSelectable_4() { return &___RequiredSelectable_4; } inline void set_RequiredSelectable_4(LeanSelectable_t3692576450 * value) { ___RequiredSelectable_4 = value; Il2CppCodeGenWriteBarrier(&___RequiredSelectable_4, value); } inline static int32_t get_offset_of_Camera_5() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___Camera_5)); } inline Camera_t189460977 * get_Camera_5() const { return ___Camera_5; } inline Camera_t189460977 ** get_address_of_Camera_5() { return &___Camera_5; } inline void set_Camera_5(Camera_t189460977 * value) { ___Camera_5 = value; Il2CppCodeGenWriteBarrier(&___Camera_5, value); } inline static int32_t get_offset_of_RotateAxis_6() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___RotateAxis_6)); } inline Vector3_t2243707580 get_RotateAxis_6() const { return ___RotateAxis_6; } inline Vector3_t2243707580 * get_address_of_RotateAxis_6() { return &___RotateAxis_6; } inline void set_RotateAxis_6(Vector3_t2243707580 value) { ___RotateAxis_6 = value; } inline static int32_t get_offset_of_Relative_7() { return static_cast<int32_t>(offsetof(LeanRotate_t827445339, ___Relative_7)); } inline bool get_Relative_7() const { return ___Relative_7; } inline bool* get_address_of_Relative_7() { return &___Relative_7; } inline void set_Relative_7(bool value) { ___Relative_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif
Fried-Chicken/momo
packages/momo-cli-generators/src/generators/componentFunctionGenerator/index.js
<gh_stars>1-10 module.exports = require('./componentFunctionGenerator');
skillsapphire/blueseer
src/com/blueseer/fgl/ReconAccount.java
/* The MIT License (MIT) Copyright (c) <NAME> "VCSCode" All rights reserved. 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.blueseer.fgl; import bsmf.MainFrame; import com.blueseer.shp.*; import com.blueseer.utl.OVData; import com.blueseer.utl.BlueSeerUtils; import static bsmf.MainFrame.checkperms; import static bsmf.MainFrame.con; import static bsmf.MainFrame.db; import java.awt.Color; import java.awt.Component; import java.awt.FileDialog; import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.sql.Date; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.DateFormat; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.DefaultCellEditor; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JOptionPane; import javax.swing.JTable; import javax.swing.UIManager; import javax.swing.table.TableCellRenderer; import static bsmf.MainFrame.driver; import static bsmf.MainFrame.mydialog; import static bsmf.MainFrame.pass; import static bsmf.MainFrame.reinitpanels; import static bsmf.MainFrame.url; import static bsmf.MainFrame.user; import com.blueseer.prd.ProdSchedPanel; import java.awt.Image; import java.awt.image.BufferedImage; import java.text.DecimalFormatSymbols; import java.text.ParseException; import java.util.Calendar; import java.util.Enumeration; import java.util.GregorianCalendar; import java.util.Locale; import javax.imageio.ImageIO; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableColumn; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart; import org.jfree.chart.labels.PieSectionLabelGenerator; import org.jfree.chart.labels.StandardPieSectionLabelGenerator; import org.jfree.chart.plot.PiePlot; import org.jfree.data.general.DefaultPieDataset; /** * * @author vaughnte */ public class ReconAccount extends javax.swing.JPanel { String exoincfilepath = OVData.getSystemTempDirectory() + "/" + "chartexpinc.jpg"; String buysellfilepath = OVData.getSystemTempDirectory() + "/" + "chartbuysell.jpg"; Double expenses = 0.00; Double inventory = 0.00; boolean isLoad = false; ReconAccount.MyTableModel mymodel = new ReconAccount.MyTableModel(new Object[][]{}, new String[]{"ID", "Acct", "CC", "Site", "Ref", "Type", "EffDate", "Desc", "Amount", "CheckBox", "Status"}) { @Override public Class getColumnClass(int col) { if (col == 9) { return Boolean.class; } else { return String.class; //other columns accept String values } } }; javax.swing.table.DefaultTableModel modeldetail = new javax.swing.table.DefaultTableModel(new Object[][]{}, new String[]{"Shipper/Receiver", "Item", "Desc", "Ref", "Qty", "NetPrice"}); class MyTableModel extends DefaultTableModel { public MyTableModel(Object rowData[][], Object columnNames[]) { super(rowData, columnNames); } boolean[] canEdit = new boolean[]{ false, false, false, false, false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { // plan is closed if (tablereport.getModel().getValueAt(rowIndex, 10).equals("cleared")) { // 1 canEdit = new boolean[]{false, false, false, false, false, false, false, false, false, false, false}; } else { canEdit = new boolean[]{false, false, false, false, false, false, false, false, false, true, false}; } return canEdit[columnIndex]; } // public Class getColumnClass(int col) { // if (col == 6) // return Double.class; // else return String.class; //other columns accept String values // } public Class getColumnClass(int column) { if (column == 8) return Double.class; else if (column == 9) return Boolean.class; else return String.class; //other columns accept String values /* if (column >= 0 && column < getColumnCount()) { if (getRowCount() > 0) { // you need to check Object value = getValueAt(0, column); // a line for robustness (in real code you probably would loop all rows until // finding a not-null value if (value != null) { return value.getClass(); } } } return Object.class; */ } } class ButtonRenderer extends JButton implements TableCellRenderer { public ButtonRenderer() { setOpaque(true); } public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { setForeground(table.getSelectionForeground()); setBackground(table.getSelectionBackground()); } else { setForeground(Color.blue); setBackground(UIManager.getColor("Button.background")); } setText((value == null) ? "" : value.toString()); return this; } } public class CheckBoxRenderer extends JCheckBox implements TableCellRenderer { CheckBoxRenderer() { setHorizontalAlignment(JLabel.CENTER); } public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { setForeground(table.getSelectionForeground()); //super.setBackground(table.getSelectionBackground()); setBackground(table.getSelectionBackground()); } else { setForeground(table.getForeground()); setBackground(table.getBackground()); } setSelected((value != null && ((Boolean) value).booleanValue())); return this; } } class SomeRenderer extends DefaultTableCellRenderer { public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (isSelected) { setBackground(Color.white); setForeground(Color.BLACK); } String trantype = tablereport.getModel().getValueAt(table.convertRowIndexToModel(row), 10).toString(); if ( column == 10 && trantype.equals("cleared") ) { c.setForeground(Color.blue); } else { c.setForeground(table.getForeground()); } return c; } } public void chartExp() { expenses = 0.00; try { Class.forName(driver).newInstance(); con = DriverManager.getConnection(url + db, user, pass); try { Statement st = con.createStatement(); ResultSet res = null; DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd"); res = st.executeQuery("select posd_acct, ac_desc, sum(posd_netprice * posd_qty) as 'sum' from pos_det " + " inner join pos_mstr on pos_nbr = posd_nbr " + " inner join ac_mstr on ac_id = posd_acct " + " where pos_entrydate >= " + "'" + dfdate.format(dcglprevious.getDate()) + "'" + " AND pos_entrydate <= " + "'" + dfdate.format(dcto.getDate()) + "'" + " AND pos_type = 'expense' " + " AND pos_site = " + "'" + ddsite.getSelectedItem().toString() + "'" + " group by posd_acct order by posd_acct desc ;"); DefaultPieDataset dataset = new DefaultPieDataset(); String acct = ""; while (res.next()) { acct = res.getString("ac_desc"); Double amt = res.getDouble("sum"); if (amt < 0) {amt = amt * -1;} expenses += amt; if (amt > 0) { dataset.setValue(acct, amt); } } JFreeChart chart = ChartFactory.createPieChart("Expenses For Date Range", dataset, true, true, false); PiePlot plot = (PiePlot) chart.getPlot(); // plot.setSectionPaint(KEY1, Color.green); // plot.setSectionPaint(KEY2, Color.red); // plot.setExplodePercent(KEY1, 0.10); //plot.setSimpleLabels(true); PieSectionLabelGenerator gen = new StandardPieSectionLabelGenerator( "{0}: {1} ({2})", new DecimalFormat("$ #,##0.00", new DecimalFormatSymbols(Locale.US)), new DecimalFormat("0%", new DecimalFormatSymbols(Locale.US))); plot.setLabelGenerator(gen); try { ChartUtilities.saveChartAsJPEG(new File(exoincfilepath), chart, (int) (this.getWidth()/2.5), (int) (this.getHeight()/2.7)); // ChartUtilities.saveChartAsJPEG(new File(exoincfilepath), chart, 400, 200); } catch (IOException e) { MainFrame.bslog(e); } ImageIcon myicon = new ImageIcon(exoincfilepath); myicon.getImage().flush(); // myicon.getImage().getScaledInstance(400, 200, Image.SCALE_SMOOTH); this.chartlabel.setIcon(myicon); this.repaint(); // bsmf.MainFrame.show("your chart is complete...go to chartview"); } catch (SQLException s) { MainFrame.bslog(s); bsmf.MainFrame.show("cannot get pos_det"); } con.close(); } catch (Exception e) { MainFrame.bslog(e); } } public void chartBuyAndSell() { try { Class.forName(driver).newInstance(); con = DriverManager.getConnection(url + db, user, pass); try { Statement st = con.createStatement(); ResultSet res = null; DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd"); res = st.executeQuery("select pos_type, sum(pos_totamt) as 'sum' from pos_mstr " + " where pos_entrydate >= " + "'" + dfdate.format(dcglprevious.getDate()) + "'" + " AND pos_entrydate <= " + "'" + dfdate.format(dcto.getDate()) + "'" + " AND pos_type <> 'expense' " + " AND pos_site = " + "'" + ddsite.getSelectedItem().toString() + "'" + " group by pos_type order by pos_type desc ;"); DefaultPieDataset dataset = new DefaultPieDataset(); String acct = ""; while (res.next()) { acct = res.getString("pos_type"); if (acct.equals("income")) { acct = "misc income"; } Double amt = res.getDouble("sum"); if (amt < 0) {amt = amt * -1;} dataset.setValue(acct, amt); } JFreeChart chart = ChartFactory.createPieChart("Buy / Sell / Misc Income For Date Range", dataset, true, true, false); PiePlot plot = (PiePlot) chart.getPlot(); // plot.setSectionPaint(KEY1, Color.green); // plot.setSectionPaint(KEY2, Color.red); // plot.setExplodePercent(KEY1, 0.10); //plot.setSimpleLabels(true); PieSectionLabelGenerator gen = new StandardPieSectionLabelGenerator( "{0}: {1} ({2})", new DecimalFormat("$ #,##0.00", new DecimalFormatSymbols(Locale.US)), new DecimalFormat("0%", new DecimalFormatSymbols(Locale.US))); plot.setLabelGenerator(gen); try { ChartUtilities.saveChartAsJPEG(new File(buysellfilepath), chart, (int) (this.getWidth()/2.5), (int) (this.getHeight()/2.7)); } catch (IOException e) { MainFrame.bslog(e); } ImageIcon myicon = new ImageIcon(buysellfilepath); myicon.getImage().flush(); this.pielabel.setIcon(myicon); this.repaint(); // bsmf.MainFrame.show("your chart is complete...go to chartview"); } catch (SQLException s) { MainFrame.bslog(s); bsmf.MainFrame.show("cannot get pos_det"); } con.close(); } catch (Exception e) { MainFrame.bslog(e); } } /** * Creates new form ScrapReportPanel */ public ReconAccount() { initComponents(); } public void getdetail(String shipper) { modeldetail.setNumRows(0); double totalsales = 0.00; double totalqty = 0.00; DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); try { Class.forName(bsmf.MainFrame.driver).newInstance(); bsmf.MainFrame.con = DriverManager.getConnection(bsmf.MainFrame.url + bsmf.MainFrame.db, bsmf.MainFrame.user, bsmf.MainFrame.pass); try { Statement st = bsmf.MainFrame.con.createStatement(); ResultSet res = null; int i = 0; String blanket = ""; res = st.executeQuery("select posd_nbr, posd_item, posd_desc, posd_ref, posd_qty, posd_netprice from pos_det " + " where posd_nbr = " + "'" + shipper + "'" + ";"); while (res.next()) { totalsales = totalsales + (res.getDouble("posd_qty") * res.getDouble("posd_netprice")); totalqty = totalqty + res.getDouble("posd_qty"); modeldetail.addRow(new Object[]{ res.getString("posd_nbr"), res.getString("posd_item"), res.getString("posd_desc"), res.getString("posd_ref"), res.getString("posd_qty"), res.getString("posd_netprice")}); } tabledetail.setModel(modeldetail); this.repaint(); } catch (SQLException s) { bsmf.MainFrame.show("Unable to get browse detail"); } bsmf.MainFrame.con.close(); } catch (Exception e) { MainFrame.bslog(e); } } public Double sumtoggle () { double x = 0.00; DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); for (int i = 0 ; i < mymodel.getRowCount(); i++) { // if (mymodel.getValueAt(i, 10).toString().equals("open") && (boolean) mymodel.getValueAt(i, 9)) { if ((boolean) mymodel.getValueAt(i, 9)) { x += Double.valueOf(mymodel.getValueAt(i, 8).toString()); } } sumAll(x); return x; } public void sumAll(double x) { DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); double stendbal = 0.00; double prevGLBalance = 0.00; double diff = 0.00; if (! tbendbalance.getText().isEmpty()) { stendbal = Double.valueOf(tbendbalance.getText()); lbstatementbal.setText(df.format(Double.valueOf(tbendbalance.getText()))); } else { lbstatementbal.setText("0.00"); } if (! lbacctbal.getText().isEmpty()) { prevGLBalance = Double.valueOf(lbacctbal.getText()); } lbselecttotal.setText(df.format(x)); lbdiff.setText(df.format(stendbal - prevGLBalance - x)); if ( (stendbal - prevGLBalance - x) == 0) { lbdiff.setForeground(Color.blue); } else { lbdiff.setForeground(Color.red); } } public void updateRecon() { try { Class.forName(bsmf.MainFrame.driver).newInstance(); bsmf.MainFrame.con = DriverManager.getConnection(bsmf.MainFrame.url + bsmf.MainFrame.db, bsmf.MainFrame.user, bsmf.MainFrame.pass); Statement st = bsmf.MainFrame.con.createStatement(); ResultSet res = null; try { double x = 0.00; DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); for (int i = 0 ; i < mymodel.getRowCount(); i++) { if ( (boolean) mymodel.getValueAt(i, 9) ) { st.executeUpdate("update gl_hist set glh_recon = " + "'" + '1' + "'" + " where glh_id = " + "'" + mymodel.getValueAt(i, 0).toString() + "'" + ";"); } } bsmf.MainFrame.show("reconciliation complete...transactions updated"); } catch (SQLException s) { MainFrame.bslog(s); } finally { if (res != null) res.close(); if (st != null) st.close(); if (bsmf.MainFrame.con != null) bsmf.MainFrame.con.close(); } } catch (Exception e) { MainFrame.bslog(e); } } public void initvars(String[] arg) throws ParseException { isLoad = true; lbacct.setText(""); lbdiff.setText("0"); lbdiff.setForeground(Color.black); tbendbalance.setText(""); lbstatementbal.setText("0"); lbselecttotal.setText("0"); expenses = 0.00; btRun.setEnabled(false); btcommit.setEnabled(false); dcglprevious.setEnabled(false); dcto.setEnabled(false); ddacct.setEnabled(false); ddsite.setEnabled(false); cbtoggle.setEnabled(false); java.util.Date now = new java.util.Date(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.MONTH, -1); int pyear = cal.get(Calendar.YEAR); int pmonth = cal.get(Calendar.MONTH) + 1; // bsmf.MainFrame.show(String.valueOf(pyear) + "/" + String.valueOf(pmonth)); DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd"); ArrayList glcal = OVData.getGLCalByYearAndPeriod(String.valueOf(pyear), String.valueOf(pmonth)); java.util.Date prevenddate = dfdate.parse(glcal.get(3).toString()); dcglprevious.setDate(prevenddate); dcto.setDate(now); mymodel.setNumRows(0); modeldetail.setNumRows(0); tablereport.setModel(mymodel); tablereport.getModel().addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { if (e.getColumn() == 9 && ! isLoad) { //String value = ((DefaultTableModel) e.getSource()).getValueAt(e.getFirstRow(), e.getColumn()).toString(); // bsmf.MainFrame.show(value); sumtoggle(); } // your code goes here, whatever you want to do when something changes in the table } }); tabledetail.setModel(modeldetail); tablereport.getTableHeader().setReorderingAllowed(false); tabledetail.getTableHeader().setReorderingAllowed(false); CheckBoxRenderer checkBoxRenderer = new CheckBoxRenderer(); tablereport.getColumnModel().getColumn(9).setCellRenderer(checkBoxRenderer); // tablereport.getColumnModel().getColumn(0).setCellRenderer(new ButtonRenderer()); // tablereport.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer()); tablereport.getColumnModel().getColumn(9).setMaxWidth(100); // ReportPanel.TableReport.getColumn("CallID").setCellEditor( // new ButtonEditor(new JCheckBox())); ArrayList<String> myacct = OVData.getGLAcctList(); for (int i = 0; i < myacct.size(); i++) { ddacct.addItem(myacct.get(i)); } ddsite.removeAllItems(); ArrayList<String> mylist = OVData.getSiteList(); for (String code : mylist) { ddsite.addItem(code); } ddsite.setSelectedItem(OVData.getDefaultSite()); isLoad = false; ddacct.setSelectedIndex(0); detailpanel.setVisible(false); chartpanel.setVisible(false); } /** * 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() { jPanel1 = new javax.swing.JPanel(); tablepanel = new javax.swing.JPanel(); summarypanel = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tablereport = new javax.swing.JTable(); detailpanel = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tabledetail = new javax.swing.JTable(); chartpanel = new javax.swing.JPanel(); chartlabel = new javax.swing.JLabel(); pielabel = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); btRun = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); dcglprevious = new com.toedter.calendar.JDateChooser(); dcto = new com.toedter.calendar.JDateChooser(); ddsite = new javax.swing.JComboBox<>(); jLabel2 = new javax.swing.JLabel(); ddacct = new javax.swing.JComboBox<>(); jLabel4 = new javax.swing.JLabel(); tbendbalance = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); btcommit = new javax.swing.JButton(); cbtoggle = new javax.swing.JCheckBox(); lbacct = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jLabel8 = new javax.swing.JLabel(); lbstatementbal = new javax.swing.JLabel(); lbdiff = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); lbselecttotal = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); lbacctbal = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); setBackground(new java.awt.Color(0, 102, 204)); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Account Reconciliation")); tablepanel.setLayout(new javax.swing.BoxLayout(tablepanel, javax.swing.BoxLayout.LINE_AXIS)); summarypanel.setLayout(new java.awt.BorderLayout()); tablereport.setAutoCreateRowSorter(true); tablereport.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); tablereport.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tablereportMouseClicked(evt); } }); jScrollPane1.setViewportView(tablereport); summarypanel.add(jScrollPane1, java.awt.BorderLayout.CENTER); tablepanel.add(summarypanel); detailpanel.setLayout(new java.awt.BorderLayout()); tabledetail.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane2.setViewportView(tabledetail); detailpanel.add(jScrollPane2, java.awt.BorderLayout.CENTER); tablepanel.add(detailpanel); chartpanel.setMinimumSize(new java.awt.Dimension(23, 23)); chartpanel.setName(""); // NOI18N chartpanel.setPreferredSize(new java.awt.Dimension(452, 402)); chartpanel.setLayout(new java.awt.BorderLayout()); chartlabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); chartlabel.setMinimumSize(new java.awt.Dimension(50, 50)); chartpanel.add(chartlabel, java.awt.BorderLayout.NORTH); pielabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); pielabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); chartpanel.add(pielabel, java.awt.BorderLayout.SOUTH); tablepanel.add(chartpanel); btRun.setText("Run"); btRun.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btRunActionPerformed(evt); } }); jLabel5.setText("Statement Ending Balance:"); jLabel6.setText("GL Previous Ending Date:"); dcglprevious.setDateFormatString("yyyy-MM-dd"); dcto.setDateFormatString("yyyy-MM-dd"); jLabel2.setText("Acct:"); ddacct.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ddacctActionPerformed(evt); } }); jLabel4.setText("Site:"); tbendbalance.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { tbendbalanceFocusLost(evt); } }); jLabel1.setText("GLTo Date:"); btcommit.setText("Commit"); btcommit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btcommitActionPerformed(evt); } }); cbtoggle.setText("Toggle All?"); cbtoggle.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbtoggleActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(dcto, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(tbendbalance) .addComponent(dcglprevious, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(13, 13, 13) .addComponent(jLabel2)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent(jLabel4))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(ddsite, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btRun) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 254, Short.MAX_VALUE) .addComponent(btcommit)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbtoggle) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(ddacct, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lbacct, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 132, Short.MAX_VALUE))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(ddacct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lbacct, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btRun) .addComponent(jLabel4) .addComponent(btcommit) .addComponent(ddsite, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(3, 3, 3) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(tbendbalance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(dcglprevious, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(cbtoggle) .addComponent(dcto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addContainerGap()) ); jLabel8.setText("GL Previous Ending Balance:"); lbstatementbal.setText("0"); lbdiff.setText("0"); jLabel10.setText("Difference:"); lbselecttotal.setText("0"); jLabel11.setText("Selected Total:"); lbacctbal.setText("0"); jLabel3.setText("Statement Balance:"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel10)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(37, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbdiff, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE) .addComponent(lbacctbal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lbselecttotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lbstatementbal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(lbstatementbal, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(lbacctbal, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lbselecttotal, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel11)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lbdiff, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addGap(23, 23, 23)) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tablepanel, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 113, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(16, 16, 16) .addComponent(tablepanel, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }// </editor-fold>//GEN-END:initComponents private void btRunActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRunActionPerformed isLoad = true; try { Class.forName(driver).newInstance(); con = DriverManager.getConnection(url + db, user, pass); try { Statement st = con.createStatement(); ResultSet res = null; DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); DateFormat dfdate = new SimpleDateFormat("yyyy-MM-dd"); String fromdate = ""; String todate = ""; mymodel.setNumRows(0); double total = 0.00; double toggletotal = 0.00; boolean haveOpen = false; Enumeration<TableColumn> en = tablereport.getColumnModel().getColumns(); while (en.hasMoreElements()) { TableColumn tc = en.nextElement(); if ( tc.getModelIndex() == 9 ) { continue; } tc.setCellRenderer(new ReconAccount.SomeRenderer()); } if (dcglprevious.getDate() == null) { fromdate = bsmf.MainFrame.lowdate; } else { fromdate = dfdate.format(dcglprevious.getDate()); // non-inclusive } if (dcto.getDate() == null) { todate = bsmf.MainFrame.hidate; } else { todate = dfdate.format(dcto.getDate()); } boolean toggle = false; String status = ""; res = st.executeQuery("select glh_id, glh_acct, glh_cc, glh_site, glh_type, glh_ref, glh_doc, glh_effdate, glh_desc, glh_amt, glh_recon from gl_hist " + " where glh_acct = " + "'" + ddacct.getSelectedItem().toString() + "'" + " AND " + " glh_site = " + "'" + ddsite.getSelectedItem().toString() + "'" + " AND " + " glh_effdate > " + "'" + fromdate + "'" + " AND " + // non-inclusive " glh_effdate <= " + "'" + todate + "'" + ";"); while (res.next()) { total = total + res.getDouble("glh_amt"); toggle = res.getBoolean("glh_recon"); if (toggle) { status = "cleared"; toggletotal = toggletotal + res.getDouble("glh_amt"); } else { status = "open"; haveOpen = true; } mymodel.addRow(new Object[]{ res.getString("glh_id"), res.getString("glh_acct"), res.getString("glh_cc"), res.getString("glh_site"), res.getString("glh_ref"), res.getString("glh_type"), res.getString("glh_effdate"), res.getString("glh_desc"), Double.valueOf(df.format(res.getDouble("glh_amt"))), toggle, status }); } // tbtoggletotal.setText(df.format(total)); lbacctbal.setText(df.format(OVData.getGLAcctBalAsOfDate(ddsite.getSelectedItem().toString(), ddacct.getSelectedItem().toString(), fromdate))); // bsmf.MainFrame.show(String.valueOf(toggletotal)); sumAll(toggletotal); chartBuyAndSell(); chartExp(); isLoad = false; if (mymodel.getRowCount() > 0 && haveOpen) { btcommit.setEnabled(true); } else { btcommit.setEnabled(false); } } catch (SQLException s) { MainFrame.bslog(s); bsmf.MainFrame.show("Problem executing Recon Report"); } con.close(); } catch (Exception e) { MainFrame.bslog(e); } }//GEN-LAST:event_btRunActionPerformed private void tablereportMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablereportMouseClicked int row = tablereport.rowAtPoint(evt.getPoint()); int col = tablereport.columnAtPoint(evt.getPoint()); /* if ( col == 9) { getdetail(tablereport.getValueAt(row, 1).toString()); btdetail.setEnabled(true); detailpanel.setVisible(true); if ( (boolean) mymodel.getValueAt(row, col) ) { // x += Double.valueOf(mymodel.getValueAt(i, 8).toString()); } } if ( col == 0 && tablereport.getValueAt(row, 4).toString().equals("sell") ) { String mypanel = "MenuShipMaint"; if (! checkperms(mypanel)) { return; } String args = tablereport.getValueAt(row, 3).toString(); reinitpanels(mypanel, true, args); } if ( col == 0 && tablereport.getValueAt(row, 4).toString().equals("buy") ) { String mypanel = "ReceiverMaintMenu"; if (! checkperms(mypanel)) { return; } String args = tablereport.getValueAt(row, 3).toString(); reinitpanels(mypanel, true, args); } if ( col == 9 && tablereport.getValueAt(row, 3).toString().equals("sell")) { // OVData.printReceipt(tablereport.getValueAt(row, 2).toString()); } */ }//GEN-LAST:event_tablereportMouseClicked private void cbtoggleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbtoggleActionPerformed for (int i = 0 ; i < mymodel.getRowCount(); i++) { if (mymodel.getValueAt(i, 10).toString().equals("open")) { mymodel.setValueAt(cbtoggle.isSelected(), i, 9); } } sumtoggle(); }//GEN-LAST:event_cbtoggleActionPerformed private void btcommitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btcommitActionPerformed DecimalFormat df = new DecimalFormat("#0.00", new DecimalFormatSymbols(Locale.US)); if (lbstatementbal.getText().isEmpty() || Double.valueOf(lbstatementbal.getText()) == 0.00) { bsmf.MainFrame.show("Statement Balance is zero"); return; } if (Double.valueOf(lbdiff.getText()) == 0.00) { boolean sure = bsmf.MainFrame.warn("Are you sure you want to auto-invoice?"); if (sure) { updateRecon(); } } else { bsmf.MainFrame.show("Total selected amount does not balance"); } }//GEN-LAST:event_btcommitActionPerformed private void tbendbalanceFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_tbendbalanceFocusLost String x = BlueSeerUtils.bsformat("", tbendbalance.getText(), "2"); if (x.equals("error")) { tbendbalance.setText(""); tbendbalance.setBackground(Color.yellow); bsmf.MainFrame.show("Non-Numeric character in textbox"); lbstatementbal.setText("0.00"); tbendbalance.requestFocus(); btRun.setEnabled(false); btcommit.setEnabled(false); dcglprevious.setEnabled(false); dcto.setEnabled(false); ddacct.setEnabled(false); ddsite.setEnabled(false); cbtoggle.setEnabled(false); } else { tbendbalance.setText(x); tbendbalance.setBackground(Color.white); lbstatementbal.setText(tbendbalance.getText()); if (! tbendbalance.getText().isEmpty()) { btRun.setEnabled(true); btcommit.setEnabled(false); dcglprevious.setEnabled(true); dcto.setEnabled(true); ddacct.setEnabled(true); ddsite.setEnabled(true); cbtoggle.setEnabled(true); } } }//GEN-LAST:event_tbendbalanceFocusLost private void ddacctActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ddacctActionPerformed if (ddacct.getSelectedItem() != null && ! isLoad ) try { Class.forName(bsmf.MainFrame.driver).newInstance(); bsmf.MainFrame.con = DriverManager.getConnection(bsmf.MainFrame.url + bsmf.MainFrame.db, bsmf.MainFrame.user, bsmf.MainFrame.pass); try { Statement st = bsmf.MainFrame.con.createStatement(); ResultSet res = null; res = st.executeQuery("select ac_desc from ac_mstr where ac_id = " + "'" + ddacct.getSelectedItem().toString() + "'" + ";"); while (res.next()) { lbacct.setText(res.getString("ac_desc")); } } catch (SQLException s) { MainFrame.bslog(s); bsmf.MainFrame.show("cannot select from ac_mstr"); } bsmf.MainFrame.con.close(); } catch (Exception e) { MainFrame.bslog(e); } }//GEN-LAST:event_ddacctActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton btRun; private javax.swing.JButton btcommit; private javax.swing.JCheckBox cbtoggle; private javax.swing.JLabel chartlabel; private javax.swing.JPanel chartpanel; private com.toedter.calendar.JDateChooser dcglprevious; private com.toedter.calendar.JDateChooser dcto; private javax.swing.JComboBox<String> ddacct; private javax.swing.JComboBox<String> ddsite; private javax.swing.JPanel detailpanel; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel8; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JLabel lbacct; private javax.swing.JLabel lbacctbal; private javax.swing.JLabel lbdiff; private javax.swing.JLabel lbselecttotal; private javax.swing.JLabel lbstatementbal; private javax.swing.JLabel pielabel; private javax.swing.JPanel summarypanel; private javax.swing.JTable tabledetail; private javax.swing.JPanel tablepanel; private javax.swing.JTable tablereport; private javax.swing.JTextField tbendbalance; // End of variables declaration//GEN-END:variables }
solitary-s/JavaStudy
src/main/java/com/aloneness/java/design/simple/factroy/ConcreteProduct1.java
<reponame>solitary-s/JavaStudy package com.aloneness.java.design.simple.factroy; public class ConcreteProduct1 implements Product{ }
qhanam/Pangor
js-classify/src/ca/ubc/ece/salt/pangor/analysis/errorhandling/ErrorHandlingCheck.java
package ca.ubc.ece.salt.pangor.analysis.errorhandling; import java.util.List; import org.mozilla.javascript.ast.AstNode; import ca.ubc.ece.salt.pangor.analysis.scope.Scope; /** * Stores the information from a potential exception handling repair. */ public class ErrorHandlingCheck { public Scope<AstNode> scope; public List<String> callTargetIdentifiers; public ErrorHandlingCheck(Scope<AstNode> scope, List<String> callTargetIdentifiers) { this.scope = scope; this.callTargetIdentifiers = callTargetIdentifiers; } }
xxh160/alley-server
src/main/java/com/edu/nju/alley/controller/PostController.java
package com.edu.nju.alley.controller; import com.edu.nju.alley.dto.CommentDTO; import com.edu.nju.alley.dto.PostDTO; import com.edu.nju.alley.service.PostService; import com.edu.nju.alley.vo.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; @Api(tags = "post") @RestController @RequestMapping("/api/post") public class PostController { private final PostService postService; @Autowired public PostController(PostService postService) { this.postService = postService; } @ApiOperation("返回所有帖子预览;sortId决定排序方式1按时间2按热度,labelId决定标签筛选方式,0全部1随笔2通知3反馈4仅看自己") @GetMapping("/all") public ResponseVO<List<PostViewVO>> getAllPosts(@RequestParam Integer userId, @RequestParam Integer sort, @RequestParam Integer label) { return ResponseVO.<List<PostViewVO>>success().add(postService.getAllPostView(sort, label, userId)); } @ApiOperation("返回特定的帖子") @GetMapping("/view/{postId}") public ResponseVO<PostVO> getSpecificPost(@PathVariable Integer postId) { return ResponseVO.<PostVO>success().add(postService.getSpecificPost(postId)); } @ApiOperation("更新帖子") @PostMapping("/update/{postId}") public ResponseVO<Object> updatePost(@PathVariable Integer postId, @RequestBody PostDTO postDTO) { postService.updatePost(postId, postDTO); return ResponseVO.success(); } @ApiOperation("点赞或者取消点赞帖子") @PostMapping("/like") public ResponseVO<LikeVO> likePost(@RequestParam Integer postId, @RequestParam Integer userId) { return ResponseVO.<LikeVO>success().add(postService.likePost(postId, userId)); } @ApiOperation("评论帖子") @PostMapping("/comment") public ResponseVO<CommentVO> commentPost(@RequestBody CommentDTO commentDTO) { return ResponseVO.<CommentVO>success().add(postService.commentPost(commentDTO)); } @ApiOperation("新建帖子") @PostMapping("/create") public ResponseVO<NewRecordVO> createPost(@RequestBody PostDTO postDTO) { return ResponseVO.<NewRecordVO>success().add(postService.createPost(postDTO)); } @ApiOperation("删除帖子") @DeleteMapping("/delete/{postId}") public ResponseVO<Object> deletePost(@PathVariable Integer postId) { postService.deletePost(postId); return ResponseVO.success(); } }
Sanderson239/stock-market-tracker-api
src/controllers/daily_stock_info.js
'use strict'; const knex = require('../../knex.js'); const { decamelizeKeys, camelizeKeys } = require('humps'); class DailyStockInfo { getDailyStockInfo() { return knex('daily_stock_info') .orderBy('daily_stock_info_id') .then((result) => camelizeKeys(result)); } getDailyStockInfoById(daily_stock_info_id) { return knex('daily_stock_info') .where('daily_stock_info_id', daily_stock_info_id) .first() .then((result) => { return camelizeKeys(result); }); } getDailyStockInfoByDateId(date_id) { return knex('daily_stock_info') .select('daily_stock_info_id', 'date_id', 'company_id', 'ticker', 'open_price', 'closing_price', 'eod_to_sod_percent_change', 'sod_to_eod_percent_change', 'volume', 'today_market_cap') .where('date_id', date_id) .whereNotNull('company_id') // .orderBy('daily_stock_info_id') .orderBy('eod_to_sod_percent_change') // .orderBy('daily_stock_info_id') // .limit(10) .then((result) => { return camelizeKeys(result); }); } getDailyStockInfoByDateIdOrderByCompanyId(date_id) { return knex('daily_stock_info') .select('daily_stock_info_id', 'date_id', 'company_id', 'ticker', 'open_price', 'closing_price', 'eod_to_eod_percent_change', 'sod_to_eod_percent_change', 'volume', 'today_market_cap') .whereIn('date_id', [(date_id - 1), date_id]) .where('company_id', '<', 2) .whereNotNull('company_id') // .orderBy('daily_stock_info_id') .orderBy('company_id') .orderBy('date_id') // .orderBy('daily_stock_info_id') // .limit(10) .then((result) => { // console.log('result', result); return camelizeKeys(result); }); } // maybe ill need it again someday getDailyStockInfoCompanyIdAndDateId(company_id, date_id) { return knex('daily_stock_info') .select('daily_stock_info_id', 'date_id', 'company_id', 'open_price', 'closing_price', 'eod_to_eod_percent_change', 'sod_to_eod_percent_change', 'volume', 'today_market_cap') .whereIn('date_id', [date_id - 1, date_id]) .where('company_id', company_id) .orderBy('date_id') .then((result) => { console.log('stock info by company id', result); return camelizeKeys(result); }); } getDailyStockInfoCompanyIdAndDateId2(company_id, date_id) { let datesArr = []; for (let i = date_id; i <= 5087; i++) { datesArr.push(i) } return knex('daily_stock_info') .select('daily_stock_info_id', 'date_id', 'company_id', 'open_price', 'closing_price', 'eod_to_eod_percent_change', 'sod_to_eod_percent_change', 'volume', 'today_market_cap') .whereIn('date_id', datesArr) .where('company_id', company_id) .orderBy('date_id') .then((result) => { console.log('stock info by company id', result); return camelizeKeys(result); }); } getMaxId(daily_stock_info_id) { return knex('daily_stock_info').max('daily_stock_info_id') .first() .then((result) => { return camelizeKeys(result); }); } // addDailyStockInfo(dailyStockInfo, ticker, date) { // // console.log(date); // return knex('companies') // .select('company_id') // .where('ticker', '=', ticker) // .then(companyId => { // dailyStockInfo.company_id = companyId[0].company_id; // knex('dates') // .select('date_id') // .where('date', '=', date) // .then(dateId => { // // if(!dateId[0]) { // // console.log('date', date); // // console.log('ticker', ticker); // // console.log('data', dailyStockInfo); // // } // dailyStockInfo.date_id = dateId[0].date_id; // knex('daily_stock_info') // .insert(dailyStockInfo,'*') // .then((result) => { // return camelizeKeys(result) // }); // }) // }); // } addDailyStockInfo(dailyStockInfo) { return knex('daily_stock_info') .insert(dailyStockInfo,'*') .then((result) => { return camelizeKeys(result) }); } addDailyStockInfoShells() { return knex('daily_stock_info') .insert({last_filing_date: 1},'*') .then((result) => { return camelizeKeys(result) }); } updateDailyStockInfo(dailyStockInfo) { if (dailyStockInfo.date_id < 5034) { console.log(dailyStockInfo); } return knex('daily_stock_info') .where('daily_stock_info_id', dailyStockInfo.daily_stock_info_id) .update({ company_id: dailyStockInfo.company_id, open_price: dailyStockInfo.open_price, closing_price: dailyStockInfo.closing_price, date_id: dailyStockInfo.date_id, // last_filing_date: dailyStockInfo.last_filing_date, // ask_price: dailyStockInfo.ask_price, // bid_price: dailyStockInfo.bid_price, // last_price: dailyStockInfo.last_price, eod_to_eod_percent_change: dailyStockInfo.eod_to_eod_percent_change, eod_to_sod_percent_change: dailyStockInfo.eod_to_sod_percent_change, sod_to_eod_percent_change: dailyStockInfo.sod_to_eod_percent_change, eod_to_eod_absolute_change: dailyStockInfo.eod_to_eod_absolute_change, eod_to_sod_absolute_change: dailyStockInfo.eod_to_sod_absolute_change, sod_to_eod_absolute_change: dailyStockInfo.sod_to_eod_absolute_change, volume: dailyStockInfo.volume, }, '*') .then((result) => { return camelizeKeys(result) }); } // updateDailyStockInfo2(dailyStockInfo) { // return knex('daily_stock_info') // .where('daily_stock_info_id', dailyStockInfo.daily_stock_info_id) // .update({ // // daily_stock_info_id: dailyStockInfo.daily_stock_info_id, // company_id: dailyStockInfo.company_id, // open_price: dailyStockInfo.open_price, // closing_price: dailyStockInfo.closing_price, // date_id: dailyStockInfo.date_id, // // last_filing_date: dailyStockInfo.last_filing_date, // // ask_price: dailyStockInfo.ask_price, // // bid_price: dailyStockInfo.bid_price, // // last_price: dailyStockInfo.last_price, // // eod_to_eod_percent_change: dailyStockInfo.eod_to_eod_percent_change, // // eod_to_sod_percent_change: dailyStockInfo.eod_to_sod_percent_change, // sod_to_eod_percent_change: dailyStockInfo.sod_to_eod_percent_change, // // eod_to_eod_absolute_change: dailyStockInfo.eod_to_eod_absolute_change, // // eod_to_sod_absolute_change: dailyStockInfo.eod_to_sod_absolute_change, // sod_to_eod_absolute_change: dailyStockInfo.sod_to_eod_absolute_change, // // volume: dailyStockInfo.volume, // }, '*') // .then((result) => { // return camelizeKeys(result) // }); // } deleteDailyStockInfo(daily_stock_info_id) { return knex('daily_stock_info') .del() .where('daily_stock_info_id', daily_stock_info_id) .returning('*') .then((result) => { return camelizeKeys(result) }); } updateDailyStockInfoMarketCap(dailyStockInfo) { return knex('daily_stock_info') .where('daily_stock_info_id', dailyStockInfo.dailyStockInfoId) .update({ today_market_cap: dailyStockInfo.todayMarketCap, }, '*') .then((result) => { // console.log('result', result); return camelizeKeys(result) }); } } module.exports = DailyStockInfo;
jjsendor/surveylance
surveylance-web/src/main/webapp/js/jstorm/JStORM.Events.js
JStORM.Events = function() { this.$events = {}; } JStORM.Events.prototype = { addListener:function(name,fn) { this.$events[name] = this.$events[name] || []; this.$events[name].push(fn); return this; }, removeListener:function(name,fn) { if(this.$events[name]) this.$events[name].remove(fn); return this; }, fireEvent:function(name,args,bind) { var listeners = this.$events[name]; if(listeners) for(var i=0,ln=listeners.length;i<ln;i++) listeners[i].apply(bind || this,args || []) return this; } }; JStORM.Events.wrapFunction=function(fn,name,object) { return function() { object.fireEvent("onBefore"+name,[this]); var ret = fn.apply(this,arguments); object.fireEvent("onAfter"+name,[this]); return ret; }; };
bestari30/manajemen-data-pelaporan
src/pages/mahasiswa/EditMahasiswa.js
import { React, useState, useEffect } from "react"; import { useHistory } from "react-router-dom"; import { Grid, Button, TextField, Select, MenuItem, InputLabel, CircularProgress, } from "@material-ui/core"; // components import PageTitle from "../../components/PageTitle/PageTitle"; import { getMahasiswaById, putMahasiswa } from "../../functions/Mahasiswa"; export default function EditMahasiswa(params) { // http://localhost:3000/#/app/editMahasiswa/1 //alert(window.location.toString().slice(45)); const history = useHistory(); const [isLoading, setIsLoading] = useState(true); const [namaMahasiswa, setNamaMahasiswa] = useState(""); useEffect(() => { async function getData() { const dataMahasiswa = await getMahasiswaById(params.match.params.id); setNamaMahasiswa(dataMahasiswa.data.nama); setIsLoading(false); } getData(); }, []); const editMahasiswa = async () => { const data = { id: params.match.params.id, nama: namaMahasiswa, }; const response = await putMahasiswa(data); if (response.errorMessage === null) { history.push(`/app/mahasiswa`); } }; return ( <> <PageTitle title="Edit Mahasiswa" button={ <Button variant="contained" size="medium" color="secondary" href="#/app/mahasiswa" margin="normal" > Kembali </Button> } /> {isLoading ? ( <div style={{ textAlign: "center" }}> <CircularProgress size={50} style={{ marginTop: 50 }} /> </div> ) : ( <> <Grid container spacing={4} style={{ padding: "20px", backgroundColor: "white" }} > <Grid item xs={6}> <InputLabel shrink>Nama Mahasiswa</InputLabel> <TextField id="partner" value={namaMahasiswa} onChange={(e) => setNamaMahasiswa(e.target.value)} type="text" fullWidth /> </Grid> </Grid> <Grid container spacing={6} style={{ padding: "20px", backgroundColor: "white" }} > <Grid item xs={12} style={{ textAlign: "center" }}> <Button variant="contained" size="large" color="primary" margin="normal" onClick={editMahasiswa} > Simpan </Button> </Grid> </Grid> </> )} </> ); }
y2ghost/study
java/spring/src/main/java/study/ywork/spring/provider/FirstBean.java
<gh_stars>0 package study.ywork.spring.provider; public class FirstBean { public void doSomething() { System.out.println("在FirstBean里面"); } }
StefanLB/JS-Advanced-September-2019
Lectures-And-Exercises/06.JS-Advanced-DOM-Manipulations-Lab/07. Dynamic-Validation/app.js
<reponame>StefanLB/JS-Advanced-September-2019<filename>Lectures-And-Exercises/06.JS-Advanced-DOM-Manipulations-Lab/07. Dynamic-Validation/app.js function validate() { const pattern = /^[a-z]+@[a-z]+\.[a-z]+$/g; const email = document.getElementById('email'); email.addEventListener('change',checkEmail); function checkEmail(){ this.value.match(pattern) ? email.removeAttribute('class') : email.classList = 'error'; } }
wkoszek/book-programming-ruby
src/ex0278.rb
# Sample code from Programing Ruby, page 112 module D def initialize(name) @name =name end def to_s @name end end module Debug include D def who_am_i? "#{self.class.name} (\##{self.id}): #{self.to_s}" end end class Phonograph include Debug # ... end class EightTrack include Debug # ... end ph = Phonograph.new("West End Blues") et = EightTrack.new("Surrealistic Pillow") ph.who_am_i? et.who_am_i?
consulo/consulo-dotnet
msil-psi-impl/src/main/java/consulo/msil/lang/psi/impl/MsilVisitor.java
/* * Copyright 2013-2014 must-be.org * * 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 consulo.msil.lang.psi.impl; import com.intellij.psi.PsiElementVisitor; import consulo.dotnet.psi.DotNetPointerType; import consulo.dotnet.psi.DotNetTypeWithTypeArguments; import consulo.msil.lang.psi.*; /** * @author VISTALL * @since 21.05.14 */ public class MsilVisitor extends PsiElementVisitor { public void visitAssemblyEntry(MsilAssemblyEntry entry) { visitElement(entry); } public void visitCustomAttribute(MsilCustomAttribute attribute) { visitElement(attribute); } public void visitClassEntry(MsilClassEntry entry) { visitElement(entry); } public void visitEventEntry(MsilEventEntry entry) { visitElement(entry); } public void visitFieldEntry(MsilFieldEntry entry) { visitElement(entry); } public void visitMethodEntry(MsilMethodEntry entry) { visitElement(entry); } public void visitPropertyEntry(MsilPropertyEntry entry) { visitElement(entry); } public void visitModifierList(MsilModifierList list) { visitElement(list); } public void visitPointerType(DotNetPointerType pointerType) { visitElement(pointerType); } public void visitTypeWithTypeArguments(DotNetTypeWithTypeArguments type) { visitElement(type); } public void visitCustomAttributeSignature(MsilCustomAttributeSignature signature) { visitElement(signature); } public void visitTypeParameterAttributeList(MsilTypeParameterAttributeList attributeList) { visitElement(attributeList); } public void visitParameterAttributeList(MsilParameterAttributeList attributeList) { visitElement(attributeList); } public void visitParameter(MsilParameter msilParameter) { visitElement(msilParameter); } public void visitArrayDimension(MsilArrayDimension dimension) { visitElement(dimension); } public void visitArrayType(MsilArrayType msilArrayType) { visitElement(msilArrayType); } public void visitContantValue(MsilConstantValue value) { visitElement(value); } }
jdavidberger/libsurvive
include/libsurvive/survive.h
#ifndef _SURVIVE_H #define _SURVIVE_H #include "assert.h" #include "poser.h" #include "survive_types.h" #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif #ifdef _MSC_VER #define SURVIVE_EXPORT_CONSTRUCTOR SURVIVE_EXPORT #else #define SURVIVE_EXPORT_CONSTRUCTOR __attribute__((constructor)) #endif /** * This struct encodes what the last effective angles seen on a sensor were, and when they occured. */ typedef struct SurviveSensorActivations_s { SurviveObject *so; int lh_gen; // Valid for gen2; somewhat different meaning though -- refers to angle of the rotor when the sweep happened. FLT angles[SENSORS_PER_OBJECT][NUM_GEN2_LIGHTHOUSES][2]; // 2 Axes (Angles in LH space) FLT angles_center_x[NUM_GEN2_LIGHTHOUSES][2]; FLT angles_center_dev[NUM_GEN2_LIGHTHOUSES][2]; int angles_center_cnt[NUM_GEN2_LIGHTHOUSES][2]; FLT raw_angles[SENSORS_PER_OBJECT][NUM_GEN2_LIGHTHOUSES][2]; // 2 Axes (Angles in LH space) survive_long_timecode raw_timecode[SENSORS_PER_OBJECT][NUM_GEN2_LIGHTHOUSES][2]; // Timecode per axis in ticks survive_long_timecode timecode[SENSORS_PER_OBJECT][NUM_GEN2_LIGHTHOUSES][2]; // Timecode per axis in ticks // Valid only for Gen1 survive_timecode lengths[SENSORS_PER_OBJECT][NUM_GEN1_LIGHTHOUSES][2]; // Timecode per axis in ticks survive_long_timecode hits[SENSORS_PER_OBJECT][NUM_GEN2_LIGHTHOUSES][2]; size_t imu_init_cnt; survive_long_timecode last_imu; survive_long_timecode last_light; survive_long_timecode last_light_change; survive_long_timecode last_movement; // Tracks the timecode of the last IMU packet which saw movement. FLT runtime_offset; FLT accel[3]; FLT gyro[3]; FLT mag[3]; struct SurviveSensorActivations_params { FLT moveThresholdGyro; FLT moveThresholdAcc; FLT moveThresholdAng; FLT filterLightChange; FLT filterOutlierCriteria; FLT filterVarianceMin; } params; } SurviveSensorActivations; struct PoserDataLight; struct PoserDataIMU; SURVIVE_EXPORT void SurviveSensorActivations_reset(SurviveSensorActivations *self); SURVIVE_EXPORT void SurviveSensorActivations_ctor(SurviveObject *so, SurviveSensorActivations *self); SURVIVE_EXPORT void SurviveSensorActivations_dtor(SurviveObject *so); SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_long_timecode_imu(const SurviveSensorActivations *self, survive_timecode timecode); SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_long_timecode_light(const SurviveSensorActivations *self, survive_timecode timecode); /** * Adds a lightData packet to the table. */ SURVIVE_EXPORT FLT SurviveSensorActivations_difference(const SurviveSensorActivations *rhs, const SurviveSensorActivations *lhs); SURVIVE_EXPORT void SurviveSensorActivations_add_sync(SurviveSensorActivations *self, struct PoserDataLight *lightData); SURVIVE_EXPORT bool SurviveSensorActivations_add(SurviveSensorActivations *self, struct PoserDataLightGen1 *lightData); SURVIVE_EXPORT bool SurviveSensorActivations_add_gen2(SurviveSensorActivations *self, struct PoserDataLightGen2 *lightData); SURVIVE_EXPORT void SurviveSensorActivations_valid_counts(SurviveSensorActivations *self, survive_long_timecode tolerance, uint32_t *meas_cnt, uint32_t *lh_count, uint32_t *axis_cnt, size_t *meas_for_lhs_axis); SURVIVE_EXPORT void SurviveSensorActivations_register_runtime(SurviveSensorActivations *self, survive_long_timecode tc, uint64_t runtime_clock); SURVIVE_EXPORT uint64_t SurviveSensorActivations_runtime(SurviveSensorActivations *self, survive_long_timecode tc); SURVIVE_EXPORT void SurviveSensorActivations_add_imu(SurviveSensorActivations *self, struct PoserDataIMU *imuData); /** * Returns true iff the given sensor and lighthouse at given axis were seen at most `tolerance` ticks before the given * `timecode_now`. */ SURVIVE_EXPORT bool SurviveSensorActivations_is_reading_valid(const SurviveSensorActivations *self, survive_long_timecode tolerance, uint32_t sensor_idx, int lh, int axis); SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_time_since_last_reading(const SurviveSensorActivations *self, uint32_t sensor_idx, int lh, int axis); SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_last_reading(const SurviveSensorActivations *self, uint32_t sensor_idx, int lh, int axis); /** * Returns true iff both angles for the given sensor and lighthouse were seen at most `tolerance` ticks before the given * `timecode_now`. */ SURVIVE_EXPORT bool SurviveSensorActivations_isPairValid(const SurviveSensorActivations *self, survive_timecode tolerance, survive_timecode timecode_now, uint32_t sensor_idx, int lh); /** * Returns the amount of time stationary */ SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_stationary_time(const SurviveSensorActivations *self); SURVIVE_EXPORT survive_long_timecode SurviveSensorActivations_last_time(const SurviveSensorActivations *self); /** * Default tolerance that gives a somewhat accuate representation of current state. * * Don't rely on this to be a given value. */ SURVIVE_IMPORT extern survive_timecode SurviveSensorActivations_default_tolerance; struct SurviveObject { SurviveContext *ctx; char codename[4]; // 3 letters, null-terminated. Currently HMD, WM0, WM1. char drivername[8]; // 8 letters for driver. Currently "HTC" char serial_number[16]; // 13 letters device serial number void *driver; SurviveObjectType object_type; SurviveObjectSubtype object_subtype; uint32_t buttonmask; uint32_t touchmask; SurviveAxisVal_t axis[16]; int8_t charge; uint8_t charging : 1; uint8_t ison : 1; int8_t additional_flags : 6; // Pose Information, also "poser" field. FLT PoseConfidence; // 0..1 // obj2world SurvivePose OutPose; // objImu2world SurvivePose OutPoseIMU; FLT poseConfidence; survive_long_timecode OutPose_timecode; SurviveVelocity velocity; survive_long_timecode velocity_timecode; SurvivePose FromLHPose[NUM_GEN2_LIGHTHOUSES]; // Filled out by poser, contains computed position from each lighthouse. void *PoserFnData; // Initialized to zero, configured by poser, can be anything the poser wants. // Device-specific information about the location of the sensors. This data will be used by the poser. // These are stored in the IMU's coordinate frame so that posers don't have to do a ton of manipulation // to do sensor fusion. int8_t sensor_ct; // sensor count // Remaps pins as reported from device into indices in 'modelPoints' int *channel_map; bool has_sensor_locations; FLT *sensor_locations; // size is sensor_ct*3. Contains x,y,z values for each sensor FLT *sensor_normals; // size is nrlocations*3. cointains normal vector for each sensor // Timing sensitive data (mostly for disambiguation) int32_t timebase_hz; // 48,000,000 for normal vive hardware. (checked) // Flood info, for calculating which laser is currently sweeping. void *disambiguator_data; int8_t oldcode; survive_timecode last_time_between_sync[NUM_GEN2_LIGHTHOUSES]; survive_timecode last_sync_time[NUM_GEN2_LIGHTHOUSES]; survive_timecode sync_count[NUM_GEN2_LIGHTHOUSES]; FLT imu_freq; // These are from the vive config files. They are named 'trackref_from_head' and 'trackref_from_imu' // respectively. We name them x2trackref here to match the naming convention used elsewhere in this // library. // They are kept here for posterity more than anything -- nothing in libsurvive is ultimately represented // in the 'trackref' coordinate space. SurvivePose head2trackref; SurvivePose imu2trackref; SurvivePose head2imu; FLT raw_acc_scale, raw_gyro_scale; FLT acc_bias[3]; // size is FLT*3. contains x,y,z FLT acc_scale[3]; // size is FLT*3. contains x,y,z FLT gyro_bias[3]; // size is FLT*3. contains x,y,z FLT gyro_scale[3]; // size is FLT*3. contains x,y,z haptic_func haptic; SurviveSensorActivations activations; void *user_ptr; char *conf; size_t conf_cnt; struct SurviveKalmanTracker *tracker; struct { uint32_t syncs[NUM_GEN2_LIGHTHOUSES]; uint32_t skipped_syncs[NUM_GEN2_LIGHTHOUSES]; uint32_t bad_syncs[NUM_GEN2_LIGHTHOUSES]; uint32_t hit_from_lhs[NUM_GEN2_LIGHTHOUSES]; uint32_t rejected_data[NUM_GEN2_LIGHTHOUSES]; uint32_t dropped_light[NUM_GEN2_LIGHTHOUSES]; uint32_t sync_resets[NUM_GEN2_LIGHTHOUSES]; uint32_t extent_hits, extent_misses, naive_hits; FLT min_extent, max_extent; } stats; }; // These exports are mostly for language binding against SURVIVE_EXPORT const char *survive_object_codename(SurviveObject *so); SURVIVE_EXPORT const SurvivePose *survive_object_last_imu2world(const SurviveObject *so); SURVIVE_EXPORT const char *survive_object_drivername(SurviveObject *so); SURVIVE_EXPORT int8_t survive_object_charge(SurviveObject *so); SURVIVE_EXPORT bool survive_object_charging(SurviveObject *so); SURVIVE_EXPORT const SurvivePose *survive_object_pose(SurviveObject *so); SURVIVE_EXPORT int8_t survive_object_sensor_ct(SurviveObject *so); SURVIVE_EXPORT const FLT *survive_object_sensor_locations(SurviveObject *so); SURVIVE_EXPORT const FLT *survive_object_sensor_normals(SurviveObject *so); typedef struct BaseStationCal { FLT phase; FLT tilt; FLT curve; FLT gibpha; FLT gibmag; // Gen 2 specific cal params FLT ogeephase; FLT ogeemag; } BaseStationCal; struct BaseStationData { uint8_t PositionSet : 1; /** * This is a transformation from lh space to world space */ SurvivePose Pose; uint8_t OOTXSet : 1; uint32_t BaseStationID; BaseStationCal fcal[2]; uint8_t sys_unlock_count; LinmathPoint3d accel; //"Up" vector uint8_t mode; FLT confidence; void *ootx_data; void *user_ptr; bool disable; uint8_t OOTXChecked : 1; struct SurviveKalmanLighthouse *tracker; }; struct config_group; #define BUTTON_QUEUE_MAX_LEN 32 // note: buttonId and axisId are 1-indexed values. // a value of 0 for an id means that no data is present in that value // additionally, when x and y values are both present in axis data, // axis1 will be x, axis2 will be y. typedef struct { uint8_t isPopulated; // probably can remove this given the semaphore in the parent struct. helps with debugging enum SurviveInputEvent eventType; enum SurviveButton buttonId; enum SurviveAxis ids[16]; SurviveAxisVal_t axisValues[16]; SurviveObject *so; } ButtonQueueEntry; typedef struct { uint8_t nextReadIndex; // init to 0 uint8_t nextWriteIndex; // init to 0 void *buttonservicesem; ButtonQueueEntry entry[BUTTON_QUEUE_MAX_LEN]; size_t processed_events; } ButtonQueue; typedef enum { SURVIVE_STOPPED = 0, SURVIVE_RUNNING, SURVIVE_CLOSING, SURVIVE_STATE_MAX } SurviveState; struct SurviveRecordingData; enum SurviveCalFlag { SVCal_None = 0, SVCal_Phase = 1, SVCal_Tilt = 2, SVCal_Curve = 4, SVCal_Gib = 8, SVCal_All = SVCal_Gib | SVCal_Curve | SVCal_Tilt | SVCal_Phase }; struct SurviveContext { int lh_version_configed; int lh_version_forced; int lh_version; // -1 is unknown, 0 is LHv1 -- pulse, ootx, etc. 1 is LHv2 -- single motor rotated beams #define SURVIVE_HOOK_PROCESS_DEF(hook) hook##_process_func hook##proc; #include "survive_hooks.h" #define SURVIVE_HOOK_PROCESS_DEF(hook) \ FLT hook##_call_time; \ uint32_t hook##_call_cnt; \ uint32_t hook##_call_over_cnt; \ FLT hook##_max_call_time; #include "survive_hooks.h" // Calibration data: int activeLighthouses; BaseStationData bsd[NUM_GEN2_LIGHTHOUSES]; int8_t bsd_map[NUM_GEN2_LIGHTHOUSES]; // maps channels to idxs void *disambiguator_data; // global disambiguator data struct SurviveRecordingData *recptr; // Iff recording is attached SurviveObject **objs; int objs_ct; PoserCB PoserFn; void **drivers; DeviceDriverCb *driverpolls; DeviceDriverCb *drivercloses; int driver_ct; SurviveState state; SurviveError currentError; void *buttonservicethread; ButtonQueue buttonQueue; void *user_ptr; int log_level; FILE *log_target; size_t poll_min_time_ms; struct config_group *global_config_values; struct config_group *lh_config; // lighthouse configs struct config_group *temporary_config_values; // Set per-session, from command-line. Not saved but override global_config_values // Additional details that we don't want / need to expose to every single include void *private_members; bool request_floor_set; }; SURVIVE_EXPORT void survive_verify_FLT_size( uint32_t user_size); // Baked in size of FLT to verify users of the library have the correct setting. SURVIVE_EXPORT SurviveContext *survive_init_internal(int argc, char *const *argv, void *user_ptr, log_process_func log_func); /** * Same as survive_init, except it allows a log_func to be installed before most of system startup. * */ static inline SurviveContext *survive_init_with_logger(int argc, char *const *argv, void *user_ptr, log_process_func log_func) { survive_verify_FLT_size(sizeof(FLT)); return survive_init_internal(argc, argv, user_ptr, log_func); } /** * Call survive_init to get a populated SurviveContext pointer. * * This also sets up a number of configuration values based on command line * arguments. Pass 0, 0 to this function if you specifically do not want * command line processing. * * Note that this function _can_ return null based on command line arguments, * notably if -h was passed in. */ static inline SurviveContext *survive_init(int argc, char *const *argv) { return survive_init_with_logger(argc, argv, 0, 0); } // For any of these, you may pass in 0 for the function pointer to use default behavior. // In general unless you are doing wacky things like recording or playing back data, you won't need to use this. #define SURVIVE_HOOK_PROCESS_DEF(hook) \ SURVIVE_EXPORT hook##_process_func survive_install_##hook##_fn(SurviveContext *ctx, hook##_process_func fbp); #define SURVIVE_HOOK_FEEDBACK_DEF(hook) \ SURVIVE_EXPORT hook##_feedback_func survive_install_##hook##_fn(SurviveContext *ctx, hook##_feedback_func fbp); #include "survive_hooks.h" SURVIVE_EXPORT int survive_startup(SurviveContext *ctx); SURVIVE_EXPORT int survive_poll(SurviveContext *ctx); SURVIVE_EXPORT void survive_close(SurviveContext *ctx); SURVIVE_EXPORT void survive_get_ctx_lock(SurviveContext *ctx); SURVIVE_EXPORT void survive_release_ctx_lock(SurviveContext *ctx); SURVIVE_EXPORT const char *survive_build_tag(); SURVIVE_EXPORT SurviveObject *survive_get_so_by_name(SurviveContext *ctx, const char *name); // Utilitiy functions. SURVIVE_EXPORT int survive_simple_inflate(SurviveContext *ctx, const uint8_t *input, int inlen, uint8_t *output, int outlen); // These functions search both the stored-general and temporary sections for a parameter and return it. enum survive_config_flags { SC_GET = 0, // Get, only. SC_SET = 1, // Set, if not present SC_OVERRIDE = 2, // Set, to new default value. SC_SETCONFIG = 4 // Set, both in-memory and config file. Use in conjunction with SC_OVERRIDE. }; SURVIVE_EXPORT bool survive_config_is_set(SurviveContext *ctx, const char *tag); SURVIVE_EXPORT FLT survive_configf(SurviveContext *ctx, const char *tag, char flags, FLT def); SURVIVE_EXPORT uint32_t survive_configi(SurviveContext *ctx, const char *tag, char flags, uint32_t def); SURVIVE_EXPORT char survive_config_type(SurviveContext *ctx, const char *tag); SURVIVE_EXPORT void survive_config_as_str(SurviveContext *ctx, char *output, size_t n, const char *tag, const char *def); SURVIVE_EXPORT const char *survive_configs(SurviveContext *ctx, const char *tag, char flags, const char *def); SURVIVE_EXPORT void survive_attach_config(SurviveContext *ctx, const char *tag, void * var, char type); SURVIVE_EXPORT void survive_attach_configi(SurviveContext *ctx, const char *tag, int32_t *var); SURVIVE_EXPORT void survive_attach_configf(SurviveContext *ctx, const char *tag, FLT * var ); SURVIVE_EXPORT void survive_attach_configs(SurviveContext *ctx, const char *tag, char * var ); #ifdef COMPILER_HAS_GENERIC_SUPPORT #define SURVIVE_ATTACH_CONFIG(ctx, name, var) _Generic((var), \ double*: survive_attach_configf, \ float*: survive_attach_configf, \ int*: survive_attach_configi \ )(ctx, name, var); #define SURVIVE_CONFIG_BIND_VARIABLE(name, desc, def, var) _Generic((var), \ double*: survive_config_bind_variablef, \ float*: survive_config_bind_variablef, \ int*: survive_config_bind_variablei \ )(name, desc, def); #define SURVIVE_DETACH_CONFIG(ctx, name, var) survive_detach_config(ctx, name, var) #else #define SURVIVE_ATTACH_CONFIG(ctx, name, var) #define SURVIVE_DETACH_CONFIG(ctx, name, var) #define SURVIVE_CONFIG_BIND_VARIABLE(name, desc, def, var) #endif SURVIVE_EXPORT void survive_detach_config(SurviveContext *ctx, const char *tag, void * var ); SURVIVE_EXPORT int8_t survive_get_bsd_idx(SurviveContext *ctx, survive_channel channel); #define SURVIVE_INVOKE_HOOK(hook, ctx, ...) \ { \ if (ctx->hook##proc) { \ FLT start_time = OGRelativeTime(); \ ctx->hook##proc(ctx, __VA_ARGS__); \ FLT this_time = OGRelativeTime() - start_time; \ if (this_time > ctx->hook##_max_call_time) \ ctx->hook##_max_call_time = this_time; \ if (this_time > .001) \ ctx->hook##_call_over_cnt++; \ ctx->hook##_call_time += this_time; \ ctx->hook##_call_cnt++; \ } \ } #define SURVIVE_INVOKE_HOOK_SO(hook, so, ...) \ { \ if (so->ctx->hook##proc) { \ FLT start_time = OGRelativeTime(); \ so->ctx->hook##proc(so, ##__VA_ARGS__); \ FLT this_time = OGRelativeTime() - start_time; \ if (this_time > so->ctx->hook##_max_call_time) \ so->ctx->hook##_max_call_time = this_time; \ if (this_time > .001) \ so->ctx->hook##_call_over_cnt++; \ so->ctx->hook##_call_time += this_time; \ so->ctx->hook##_call_cnt++; \ } \ } #define STATIC_CONFIG_ITEM(variable, name, type, description, default_value) \ const char *variable##_TAG = name; \ SURVIVE_EXPORT_CONSTRUCTOR void REGISTER##variable() { \ survive_config_bind_variable(type, name, description, default_value, 0xcafebeef); \ } #define STRUCT_CONFIG_SECTION(type) \ static void type##_bind_variables(SurviveContext* ctx, type* t, bool ctor) { #define STRUCT_CONFIG_ITEM(name, description, default_value, var) \ if (t && ctor) { \ var = default_value; \ SURVIVE_ATTACH_CONFIG(ctx, name, &var); \ } else if(t) { \ SURVIVE_DETACH_CONFIG(ctx, name, &var); \ } else { \ SURVIVE_CONFIG_BIND_VARIABLE(name, description, default_value, &var); \ } #define END_STRUCT_CONFIG_SECTION(type) \ } \ SURVIVE_EXPORT_CONSTRUCTOR void REGISTER##type() { type##_bind_variables(0, 0, 0); } \ void type##_attach_config(SurviveContext* ctx, type* t) { type##_bind_variables(ctx, t, 1); } \ void type##_detach_config(SurviveContext* ctx, type* t) { type##_bind_variables(ctx, t, 0); } \ SURVIVE_EXPORT void survive_config_bind_variable(char vt, const char *name, const char *description, ...); // Only used at boot. SURVIVE_EXPORT void survive_config_bind_variablei(const char *name, const char *description, int def); SURVIVE_EXPORT void survive_config_bind_variablef(const char *name, const char *description, FLT def); // Read back a human-readable string description of the calibration status SURVIVE_EXPORT int survive_cal_get_status(SurviveContext *ctx, char *description, int description_length); // Induce haptic feedback SURVIVE_EXPORT int survive_haptic(SurviveObject *so, FLT freq, FLT amp, FLT duration); SURVIVE_EXPORT void survive_ootx_free_decoder_context(struct SurviveContext *ctx, int bsd_idx); SURVIVE_EXPORT void survive_find_ang_velocity(SurviveAngularVelocity out, FLT tdiff, const LinmathQuat from, const LinmathQuat to); SURVIVE_EXPORT void survive_apply_ang_velocity(LinmathQuat out, const SurviveAngularVelocity v, FLT t, const LinmathQuat t0); // Call these from your callback if overridden. // Accept higher-level data. SURVIVE_EXPORT void survive_default_ootx_received_process(struct SurviveContext *ctx, uint8_t bsd_idx); SURVIVE_EXPORT void survive_default_disconnect_process(struct SurviveObject *so); SURVIVE_EXPORT int survive_default_printf_process(struct SurviveContext *ctx, const char *format, ...); SURVIVE_EXPORT void survive_default_log_process(struct SurviveContext *ctx, SurviveLogLevel ll, const char *fault); SURVIVE_EXPORT void survive_default_lightcap_process(SurviveObject *so, const LightcapElement *element); SURVIVE_EXPORT void survive_default_light_process(SurviveObject *so, int sensor_id, int acode, int timeinsweep, survive_timecode timecode, survive_timecode length, uint32_t lh); SURVIVE_EXPORT void survive_default_raw_imu_process(SurviveObject *so, int mode, const FLT *accelgyro, survive_timecode timecode, int id); SURVIVE_EXPORT void survive_default_set_imu_scale_modes(SurviveObject *so, int gyro_scale_mode, int acc_scale_mode); SURVIVE_EXPORT void survive_default_imu_process(SurviveObject *so, int mode, const FLT *accelgyro, survive_timecode timecode, int id); SURVIVE_EXPORT void survive_default_angle_process(SurviveObject *so, int sensor_id, int acode, survive_timecode timecode, FLT length, FLT angle, uint32_t lh); SURVIVE_EXPORT void survive_default_light_pulse_process(SurviveObject *so, int sensor_id, int acode, survive_timecode timecode, FLT length, uint32_t lh); SURVIVE_EXPORT void survive_default_sync_process(SurviveObject *so, survive_channel channel, survive_timecode timeinsweep, bool ootx, bool gen); SURVIVE_EXPORT void survive_default_sweep_process(SurviveObject *so, survive_channel channel, int sensor_id, survive_timecode timecode, bool flag); SURVIVE_EXPORT void survive_default_sweep_angle_process(SurviveObject *so, survive_channel channel, int sensor_id, survive_timecode timecode, int8_t plane, FLT angle); SURVIVE_EXPORT void survive_default_button_process(SurviveObject *so, enum SurviveInputEvent eventType, enum SurviveButton buttonId, const enum SurviveAxis *axisIds, const SurviveAxisVal_t *axisVals); SURVIVE_EXPORT void survive_default_imupose_process(SurviveObject *so, survive_long_timecode timecode, const SurvivePose *imu2world); SURVIVE_EXPORT void survive_default_pose_process(SurviveObject *so, survive_long_timecode timecode, const SurvivePose *pose); SURVIVE_EXPORT void survive_default_velocity_process(SurviveObject *so, survive_long_timecode timecode, const SurviveVelocity *pose); SURVIVE_EXPORT void survive_default_external_pose_process(SurviveContext *so, const char *name, const SurvivePose *pose); SURVIVE_EXPORT void survive_default_external_velocity_process(SurviveContext *so, const char *name, const SurviveVelocity *velocity); SURVIVE_EXPORT void survive_default_lighthouse_pose_process(SurviveContext *ctx, uint8_t lighthouse, const SurvivePose *lh_pose); SURVIVE_EXPORT int survive_default_config_process(SurviveObject *so, char *ct0conf, int len); SURVIVE_EXPORT void survive_default_gen_detected_process(SurviveObject *so, int lh_version); SURVIVE_EXPORT void survive_default_new_object_process(SurviveObject *so); SURVIVE_EXPORT double survive_run_time(const SurviveContext *ctx); SURVIVE_EXPORT double survive_run_time_since_epoch(const SurviveContext *ctx); SURVIVE_EXPORT size_t survive_input_event_count(const SurviveContext *ctx); ////////////////////// Survive Drivers //////////////////////////// SURVIVE_EXPORT void RegisterDriver(const char *name, survive_driver_fn data); SURVIVE_EXPORT void RegisterPoserDriver(const char *name, PoserCB data); #define REGISTER_LINKTIME(func) \ SURVIVE_EXPORT_CONSTRUCTOR void REGISTER##func() { \ static bool loaded = false; \ if (loaded == false) { \ RegisterDriver(#func, (survive_driver_fn)&func); \ }; \ loaded = true; \ } #define REGISTER_POSER(func) \ SURVIVE_EXPORT_CONSTRUCTOR void REGISTER##func() { \ static bool loaded = false; \ if (loaded == false) { \ RegisterPoserDriver(#func, func); \ }; \ loaded = true; \ } ///////////////////////// General stuff for writing drivers /////// // For device drivers to call. This actually attaches them. SURVIVE_EXPORT int survive_add_object(SurviveContext *ctx, SurviveObject *obj); SURVIVE_EXPORT void survive_remove_object(SurviveContext *ctx, SurviveObject *obj); SURVIVE_EXPORT const void *survive_get_driver(const SurviveContext *ctx, DeviceDriverCb pollFn); SURVIVE_EXPORT const void *survive_get_driver_by_closefn(const SurviveContext *ctx, DeviceDriverCb closeFn); SURVIVE_EXPORT void survive_add_driver(SurviveContext *ctx, void *driver_data, DeviceDriverCb poll, DeviceDriverCb close); SURVIVE_EXPORT bool *survive_add_threaded_driver(SurviveContext *ctx, void *driver_data, const char *name, void *(routine)(void *), DeviceDriverCb close); SURVIVE_EXPORT char *survive_export_config(SurviveObject *so); SURVIVE_EXPORT void survive_reset_lighthouse_positions(SurviveContext *ctx); SURVIVE_EXPORT void survive_reset_lighthouse_position(SurviveContext *ctx, int bsd_idx); // This is the disambiguator function, for taking light timing and figuring out place-in-sweep for a given photodiode. SURVIVE_EXPORT uint8_t survive_map_sensor_id(SurviveObject *so, uint8_t reported_id); SURVIVE_EXPORT bool handle_lightcap(SurviveObject *so, const LightcapElement *le); SURVIVE_EXPORT const char *survive_colorize(const char *str); SURVIVE_EXPORT const char *survive_colorize_codename(const SurviveObject *so); SURVIVE_EXPORT uint32_t survive_hash(const uint8_t *data, size_t len); SURVIVE_EXPORT uint32_t survive_hash_str(const char *str); #define SV_CONST_COLOR(str, clr) "\033[0;" #clr "m" fmt "\033[0m" #define SURVIVE_COLORIZED_FORMAT(fmt) "\033[0;%dm" fmt "\033[0m" #define SURVIVE_COLORIZED_DATA(data) (survive_hash((uint8_t *)&(data), sizeof(data)) % 8 + 30), (data) #define SURVIVE_COLORIZED_STR(str) (survive_hash_str(str) % 8 + 30), str #define SV_DATA_LOG(fmt, v, n, ...) \ { \ if (so && so->ctx && so->ctx->datalogproc) { \ char name[128]; \ snprintf(name, sizeof(name) - 1, fmt, ##__VA_ARGS__); \ SURVIVE_INVOKE_HOOK_SO(datalog, so, name, v, n); \ } \ } #define SV_LOG_NULL_GUARD \ if (ctx == 0) { \ fprintf(stderr, "Logging: %s\n", stbuff); \ } else #define SV_WARN(...) \ { \ char stbuff[1024]; \ sprintf(stbuff, __VA_ARGS__); \ SV_LOG_NULL_GUARD SURVIVE_INVOKE_HOOK(log, ctx, SURVIVE_LOG_LEVEL_WARNING, stbuff); \ } #define SV_INFO(...) \ { \ char stbuff[1024]; \ snprintf(stbuff, sizeof(stbuff), __VA_ARGS__); \ SV_LOG_NULL_GUARD SURVIVE_INVOKE_HOOK(log, ctx, SURVIVE_LOG_LEVEL_INFO, stbuff); \ } #define SV_VERBOSE(lvl, ...) \ { \ if (ctx == 0 || ctx->log_level >= (lvl)) { \ SV_INFO(__VA_ARGS__); \ } \ } #define SV_ERROR(errorCode, ...) \ { \ char stbuff[1024]; \ sprintf(stbuff, __VA_ARGS__); \ if (ctx) \ SURVIVE_INVOKE_HOOK(report_error, ctx, errorCode); \ SV_LOG_NULL_GUARD SURVIVE_INVOKE_HOOK(log, ctx, SURVIVE_LOG_LEVEL_INFO, stbuff); \ if (!ctx) \ assert(0); \ } inline static void *sv_dynamic_ptr_check(char *file, int line, void *ptr) { if (ptr == NULL) { fprintf(stderr, "Survive: memory allocation request failed in file %s, line %d, exiting", file, line); exit(EXIT_FAILURE); } return ptr; } #define SV_MALLOC(size) sv_dynamic_ptr_check(__FILE__, __LINE__, malloc(size)) #define SV_CALLOC_N(num, size) sv_dynamic_ptr_check(__FILE__, __LINE__, calloc((num), (size))) #define SV_CALLOC(size) SV_CALLOC_N(1, size) #define SV_NEW(type, ...) \ type##_init(((type *)sv_dynamic_ptr_check(__FILE__, __LINE__, calloc(1, (sizeof(struct type))))), ##__VA_ARGS__) #define SV_REALLOC(ptr, size) sv_dynamic_ptr_check(__FILE__, __LINE__, realloc(ptr, (size))) static inline void survive_notify_gen2(struct SurviveObject *so, const char *msg) { if (so->ctx->lh_version_forced != -1 && so->ctx->lh_version_forced != 1) { return; } if (so->ctx->lh_version != 1) { struct SurviveContext *ctx = so->ctx; SV_VERBOSE(100, "Gen2 reason: %s %s", survive_colorize(so->codename), msg); SURVIVE_INVOKE_HOOK_SO(gen_detected, so, 1); } } static inline void survive_notify_gen1(struct SurviveObject *so, const char *msg) { if (so->ctx->lh_version_forced != -1 && so->ctx->lh_version_forced != 0) { return; } if (so->ctx->lh_version != 0) { struct SurviveContext *ctx = so->ctx; SV_VERBOSE(100, "Gen1 reason: %s %s", survive_colorize(so->codename), msg); SURVIVE_INVOKE_HOOK_SO(gen_detected, so, 0); } } #define SV_GENERAL_ERROR(...) SV_ERROR(SURVIVE_ERROR_GENERAL, __VA_ARGS__) #ifdef __cplusplus }; #endif #endif
byronwong-dev/vue-datepicker
tests/unit/components/VDPicker/utils/PickerDate.spec.js
import dayjs from 'dayjs'; import mockDate from 'mockdate'; import 'dayjs/locale/fr'; import { en, fr, es } from '@/locale'; import PickerDate from '@/components/VDPicker/utils/PickerDate'; describe('Dates: Functions', () => { let todaysDate; let dummyDate; let newDate; beforeEach(() => { todaysDate = new Date([2019, 5, 16]); mockDate.set(todaysDate); dummyDate = dayjs(todaysDate); newDate = new PickerDate(dummyDate.month(), dummyDate.year(), { lang: en }); }); afterEach(() => { mockDate.reset(); jest.resetModules(); jest.clearAllMocks(); }); describe('PickerDate', () => { it('should init Dates class with a date', () => { expect(newDate).toEqual({ start: dummyDate.startOf('month'), end: dummyDate.endOf('month'), month: 4, year: 2019, locale: { lang: en }, }); }); it('should init Dates class with default EN if language not found', () => { jest.spyOn(dayjs, 'locale'); Object.defineProperty(global, 'navigator', { value: { userLanguage: 'toto' }, writable: true }); const dateWithDefaultLocale = new PickerDate(dummyDate.month(), dummyDate.year()); expect(dayjs.locale).toHaveBeenCalledWith(en); expect(dateWithDefaultLocale).toEqual({ start: dummyDate.startOf('month'), end: dummyDate.endOf('month'), month: 4, year: 2019, locale: { lang: en }, }); }); it('should init Dates class with a date (WITHOUT LOCALE)', () => { jest.spyOn(dayjs, 'locale'); Object.defineProperty(global, 'navigator', { value: { userLanguage: en }, writable: true }); const dateWithDefaultLocale = new PickerDate(dummyDate.month(), dummyDate.year()); expect(dayjs.locale).toHaveBeenCalled(); expect(dateWithDefaultLocale).toEqual({ start: dummyDate.startOf('month'), end: dummyDate.endOf('month'), month: 4, year: 2019, locale: { lang: en }, }); }); it('should init Dates class with a date', () => { expect(newDate).toEqual({ start: dummyDate.startOf('month'), end: dummyDate.endOf('month'), month: 4, year: 2019, locale: { lang: en }, }); }); it('should return a number when week start', () => { expect(newDate.getWeekStart()).toEqual(3); }); describe('getWeekDays', () => { const initPickerDate = (locale) => new PickerDate(dummyDate.month(), dummyDate.year(), locale); [{ description: 'return week days from default lang behaviour', locale: { lang: fr }, expectedResult: ['Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim'], }, { description: 'return week days from locale weekDays', locale: { lang: fr, weekDays: ['L', 'M', 'M', 'J', 'V', 'S', 'D'] }, expectedResult: ['L', 'M', 'M', 'J', 'V', 'S', 'D'], }, { description: 'return week days from default lang (es)', locale: { lang: es }, expectedResult: ['lun.', 'mar.', 'mié.', 'jue.', 'vie.', 'sáb.', 'dom.'], }].forEach(({ description, locale, expectedResult }) => { it(`should ${description}`, () => { const date = initPickerDate(locale); expect(date.getWeekDays()).toEqual(expectedResult); }); }); }); it('should return an array with days in a month', () => { const expectedDays = [...Array(31).keys()].map(day => (day + 1).toString()); const daysFormatted = newDate.getDays().map(day => dayjs(day).format('D')); expect(daysFormatted).toEqual(expectedDays); }); it('should return an array with months in a year', () => { const expectedMonths = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', ]; expect(newDate.getMonths()).toEqual(expectedMonths); }); it('should return a range of quarters', () => { const expectedQuarters = [ 'January - March', 'April - June', 'July - September', 'October - December', ]; expect(newDate.getQuarters()).toEqual(expectedQuarters); }); it('should return a string with month formatted', () => { expect(newDate.getMonthFormatted()).toEqual('May'); }); it('should return a string with year formatted', () => { expect(newDate.getYearFormatted()).toEqual('2019'); }); it('should return an array with years range', () => { expect(newDate.generateYearsRange({ activeYear: 2018, visibleYearsNumber: 2 })).toEqual([2020, 2019, 2018, 2017, 2016]); }); }); });
da-ferreira/ed-java
07 - Fila/src/tests/NodeQueueTest.java
<filename>07 - Fila/src/tests/NodeQueueTest.java package tests; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; import fila.EmptyQueueException; import fila.NodeQueue; class NodeQueueTest { Object o; static final NodeQueue<Integer> a = new NodeQueue<Integer>(); @Test void test() throws EmptyQueueException { assertEquals("[]", a.toString(), "Fila vazia"); a.enqueue(1); assertEquals("[1]", a.toString(), "Deve resultar [1]"); a.enqueue(2); assertEquals("[1, 2]", a.toString(), "Deve resultar [1, 2]"); assertEquals(new Integer(1), a.dequeue(), "Deve resultar 1"); assertEquals("[2]", a.toString(), "Deve resultar [2]"); assertEquals(new Integer(2), a.dequeue(), "Deve resultar 2"); assertEquals("[]", a.toString(), "Deve resultar []"); assertThrows(EmptyQueueException.class, () -> { a.dequeue(); }); } }
crazypoo/TumblrTable
Pods/PooTools/PooTools/SecurityUtil.h
// // SecurityUtil.h // Smile // // Created by apple on 15/8/25. // Copyright (c) 2015年 Weconex. All rights reserved. // #import <Foundation/Foundation.h> #import "LGTMBase64.h" @interface SecurityUtil : NSObject #pragma mark - base64 /*! @brief 字符串加密(Base64) */ + (NSString*)encodeBase64String:(NSString *)input; /*! @brief 字符串解密(Base64) */ + (NSString*)decodeBase64String:(NSString *)input; /*! @brief NSData加密(Base64) */ + (NSString*)encodeBase64Data:(NSData *)data; /*! @brief NSData解密(Base64) */ + (NSString*)decodeBase64Data:(NSData *)data; #pragma mark - AES加密 /*! @brief 将string转成带密码的数据(RSA) */ +(NSString*)encryptAESData:(NSString*)string enterKey:(NSString *)key enterIv:(NSString *)iv; /*! @brief 将带密码的数据转成string(RSA) */ +(NSString*)decryptAESData:(NSString*)string enterKey:(NSString *)key enterIv:(NSString *)iv; #pragma mark - DES加密 /*! @brief 加密(DES) */ + (NSString*)encrypt:(NSString*)plainText withKey:(NSString *)key; /*! @brief 解密(DES) */ + (NSString*)decrypt:(NSString*)encryptText withKey:(NSString *)key; @end
xiahongjian/boot-blog
src/main/java/tech/hongjian/blog/frm/aop/AccessLogProcessor.java
package tech.hongjian.blog.frm.aop; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.reflect.CodeSignature; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.ui.Model; import tech.hongjian.blog.consts.LogActions; import tech.hongjian.blog.db.entity.Log; import tech.hongjian.blog.frm.annotation.AccessLog; import tech.hongjian.blog.service.LogService; import tech.hongjian.blog.utils.JSONUtil; import tech.hongjian.blog.utils.WebUtil; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.util.HashMap; import java.util.Map; /** * @author xiahongjian * @time 2019-05-27 14:54:05 * */ @Aspect @Component public class AccessLogProcessor { @Autowired private LogService logService; @Before("@annotation(accessLog)") public void logAccess(JoinPoint joinPoint, AccessLog accessLog) { String ip = WebUtil.getRealIp(); HttpServletRequest request = WebUtil.getRequest(); String url = request.getRequestURI().toString(); Integer author = WebUtil.getUid(); Object[] args = joinPoint.getArgs(); String[] parameters = ((CodeSignature) joinPoint.getSignature()).getParameterNames(); Map<String, Object> params = new HashMap<>(parameters.length); for (int i = 0; i < parameters.length; i++) { if (args[i] instanceof Model || args[i] instanceof HttpServletRequest || args[i] instanceof HttpServletResponse || args[i] instanceof HttpSession) { continue; } params.put(parameters[i], args[i]); } logService.save(new Log(LogActions.VISIT.name(), JSONUtil.toJson(new RequestLog(url, params, request.getMethod())), author, ip)); } @Data @NoArgsConstructor @AllArgsConstructor public static class RequestLog { private String url; private Map<String, Object> params; private String method; } }
daidi-double/_new_YWB
YuWa/YuWa/Contents/storm/Controller/ShopmodelTableViewCell.h
<reponame>daidi-double/_new_YWB // // ShopmodelTableViewCell.h // YuWa // // Created by double on 17/6/30. // Copyright © 2017年 Shanghai DuRui Information Technology Company. All rights reserved. // #import <UIKit/UIKit.h> @interface ShopmodelTableViewCell : UITableViewCell @property (nonatomic,strong)UILabel * firstLabel; @property (nonatomic,strong)UILabel * secondLabel; @property (nonatomic,strong)UILabel * threeLabel; @property (nonatomic,strong)UILabel * fourLabel; @end
henrytien/AlgorithmSolutions
leetcode/278.first_bad_version/278.FirstBadVersion_zhangsl.go
<reponame>henrytien/AlgorithmSolutions // Source : https://leetcode.com/problems/first-bad-version/ // Author : zhangsl // Date : 2020-07-27 package main import "math" /***************************************************************************************************** * * You are a product manager and currently leading a team to develop a new product. Unfortunately, the * latest version of your product fails the quality check. Since each version is developed based on * the previous version, all the versions after a bad version are also bad. * * Suppose you have n versions [1, 2, ..., n] and you want to find out the first bad one, which causes * all the following ones to be bad. * * You are given an API bool isBadVersion(version) which will return whether version is bad. Implement * a function to find the first bad version. You should minimize the number of calls to the API. * * Example: * * Given n = 5, and version = 4 is the first bad version. * * call isBadVersion(3) -> false * call isBadVersion(5) -> true * call isBadVersion(4) -> true * * Then 4 is the first bad version. * ******************************************************************************************************/ /** * Forward declaration of isBadVersion API. * @param version your guess about first bad version * @return true if current version is bad * false if current version is good * func isBadVersion(version int) bool; */ func min(a,b int )int{ if a<=b{ return a } return b } func isBadVersion(version int) bool{} // 思路 最小错误节点左侧全部为正确,右侧全部为错误, //当定位到错误的时候,保留右侧边界,继续向 // 双100 func firstBadVersion(n int) int { //ans:=math.MaxInt32 l,r,mid,tmp:=1,n,0,false for l<=r{ mid = l+(r-l)>>1 tmp = isBadVersion(mid) if tmp{ //继续向左探索 if mid==1||isBadVersion(mid-1)==false{ return mid } r = mid-1 }else{ l = mid+1 } } return -1 } func main() { }
PasaLab/SparkDQ
sparkdq/repairs/transformers/replacers/RegexReplacer.py
from sparkdq.repairs.transformers.replacers.Replacer import Replacer from pyspark.sql.functions import col class RegexReplacer(Replacer): def __init__(self, column, pattern, way, value=None, negative=False): super(RegexReplacer, self).__init__(column, way, value) self.pattern = pattern self.negative = negative def preconditions(self): return [Replacer._str_param_check(self.way, self.value)] + self.common_preconditions() def select_condition(self): condition = col(self.column).rlike(self.pattern) return condition if not self.negative else ~condition
fkorotkov/buck
src-gen/com/facebook/buck/distributed/thrift/MinionRequirements.java
/** * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.facebook.buck.distributed.thrift; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)") public class MinionRequirements implements org.apache.thrift.TBase<MinionRequirements, MinionRequirements._Fields>, java.io.Serializable, Cloneable, Comparable<MinionRequirements> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MinionRequirements"); private static final org.apache.thrift.protocol.TField REQUIREMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("requirements", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new MinionRequirementsStandardSchemeFactory(); private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new MinionRequirementsTupleSchemeFactory(); public java.util.List<MinionRequirement> requirements; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { REQUIREMENTS((short)1, "requirements"); private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); static { for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * Find the _Fields constant that matches fieldId, or null if its not found. */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // REQUIREMENTS return REQUIREMENTS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; private final java.lang.String _fieldName; _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments private static final _Fields optionals[] = {_Fields.REQUIREMENTS}; public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUIREMENTS, new org.apache.thrift.meta_data.FieldMetaData("requirements", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MinionRequirement.class)))); metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MinionRequirements.class, metaDataMap); } public MinionRequirements() { } /** * Performs a deep copy on <i>other</i>. */ public MinionRequirements(MinionRequirements other) { if (other.isSetRequirements()) { java.util.List<MinionRequirement> __this__requirements = new java.util.ArrayList<MinionRequirement>(other.requirements.size()); for (MinionRequirement other_element : other.requirements) { __this__requirements.add(new MinionRequirement(other_element)); } this.requirements = __this__requirements; } } public MinionRequirements deepCopy() { return new MinionRequirements(this); } @Override public void clear() { this.requirements = null; } public int getRequirementsSize() { return (this.requirements == null) ? 0 : this.requirements.size(); } public java.util.Iterator<MinionRequirement> getRequirementsIterator() { return (this.requirements == null) ? null : this.requirements.iterator(); } public void addToRequirements(MinionRequirement elem) { if (this.requirements == null) { this.requirements = new java.util.ArrayList<MinionRequirement>(); } this.requirements.add(elem); } public java.util.List<MinionRequirement> getRequirements() { return this.requirements; } public MinionRequirements setRequirements(java.util.List<MinionRequirement> requirements) { this.requirements = requirements; return this; } public void unsetRequirements() { this.requirements = null; } /** Returns true if field requirements is set (has been assigned a value) and false otherwise */ public boolean isSetRequirements() { return this.requirements != null; } public void setRequirementsIsSet(boolean value) { if (!value) { this.requirements = null; } } public void setFieldValue(_Fields field, java.lang.Object value) { switch (field) { case REQUIREMENTS: if (value == null) { unsetRequirements(); } else { setRequirements((java.util.List<MinionRequirement>)value); } break; } } public java.lang.Object getFieldValue(_Fields field) { switch (field) { case REQUIREMENTS: return getRequirements(); } throw new java.lang.IllegalStateException(); } /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case REQUIREMENTS: return isSetRequirements(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof MinionRequirements) return this.equals((MinionRequirements)that); return false; } public boolean equals(MinionRequirements that) { if (that == null) return false; if (this == that) return true; boolean this_present_requirements = true && this.isSetRequirements(); boolean that_present_requirements = true && that.isSetRequirements(); if (this_present_requirements || that_present_requirements) { if (!(this_present_requirements && that_present_requirements)) return false; if (!this.requirements.equals(that.requirements)) return false; } return true; } @Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetRequirements()) ? 131071 : 524287); if (isSetRequirements()) hashCode = hashCode * 8191 + requirements.hashCode(); return hashCode; } @Override public int compareTo(MinionRequirements other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetRequirements()).compareTo(other.isSetRequirements()); if (lastComparison != 0) { return lastComparison; } if (isSetRequirements()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requirements, other.requirements); if (lastComparison != 0) { return lastComparison; } } return 0; } public _Fields fieldForId(int fieldId) { return _Fields.findByThriftId(fieldId); } public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { scheme(oprot).write(oprot, this); } @Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("MinionRequirements("); boolean first = true; if (isSetRequirements()) { sb.append("requirements:"); if (this.requirements == null) { sb.append("null"); } else { sb.append(this.requirements); } first = false; } sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class MinionRequirementsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public MinionRequirementsStandardScheme getScheme() { return new MinionRequirementsStandardScheme(); } } private static class MinionRequirementsStandardScheme extends org.apache.thrift.scheme.StandardScheme<MinionRequirements> { public void read(org.apache.thrift.protocol.TProtocol iprot, MinionRequirements struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // REQUIREMENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.requirements = new java.util.ArrayList<MinionRequirement>(_list0.size); MinionRequirement _elem1; for (int _i2 = 0; _i2 < _list0.size; ++_i2) { _elem1 = new MinionRequirement(); _elem1.read(iprot); struct.requirements.add(_elem1); } iprot.readListEnd(); } struct.setRequirementsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, MinionRequirements struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.requirements != null) { if (struct.isSetRequirements()) { oprot.writeFieldBegin(REQUIREMENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.requirements.size())); for (MinionRequirement _iter3 : struct.requirements) { _iter3.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class MinionRequirementsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public MinionRequirementsTupleScheme getScheme() { return new MinionRequirementsTupleScheme(); } } private static class MinionRequirementsTupleScheme extends org.apache.thrift.scheme.TupleScheme<MinionRequirements> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, MinionRequirements struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetRequirements()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetRequirements()) { { oprot.writeI32(struct.requirements.size()); for (MinionRequirement _iter4 : struct.requirements) { _iter4.write(oprot); } } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, MinionRequirements struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.requirements = new java.util.ArrayList<MinionRequirement>(_list5.size); MinionRequirement _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new MinionRequirement(); _elem6.read(iprot); struct.requirements.add(_elem6); } } struct.setRequirementsIsSet(true); } } } private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) { return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); } }
webdevhub42/Lambda
WEEKS/REFACTORED-PROj/JS-Exercise-Prototype/__tests__/index.test.js
import functions from "../index"; describe("fooFunction", () => { it("foo returns foo", () => { expect(functions.foo()).toBe("bar"); }); }); describe("Instances of Person", () => { let neo; const foods = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; beforeEach(() => { neo = new functions.Person("Neo", 20); }); it("initialize with the given name", () => { expect(neo.name).toBe("Neo"); }); it("initialize with the given age", () => { expect(neo.age).toBe(20); }); it("initialize with an empty stomach", () => { expect(neo.stomach).toEqual([]); expect(neo.stomach.length).toBe(0); }); it("get eat, poop and toString methods from their prototype", () => { expect(neo.__proto__.eat).toBeDefined(); expect(neo.__proto__.poop).toBeDefined(); expect(neo.__proto__.toString).toBeDefined(); }); it("can eat up to 10 foods", () => { foods.forEach((item) => neo.eat(item)); foods.forEach((item) => expect(neo.stomach).toContain(item)); }); it("can eat no more than 10 foods", () => { foods.forEach((item) => neo.eat(item)); neo.eat(11); expect(neo.stomach).not.toBe(11); }); it("can poop to empty stomach", () => { foods.forEach((item) => neo.eat(item)); neo.poop(); expect(neo.stomach.length).toEqual(0); }); it("can state name and age", () => { const str = neo.toString(); expect(str).toContain("Neo"); expect(str).toContain(20); }); }); //car describe("Instances of Car", () => { let batmobile; beforeEach(() => { batmobile = new functions.Car("BatMobile", 20); }); it("initialize with the given model", () => { expect(batmobile.model).toBe("BatMobile"); }); it("initialize with the given milesPerGallon", () => { expect(batmobile.milesPerGallon).toEqual(20); }); it("initialize with an empty tank", () => { expect(batmobile.tank).toEqual(0); }); it("initialize with an odometer at 0 miles", () => { expect(batmobile.odometer).toEqual(0); }); it("get fill methods from their prototype", () => { expect(batmobile.__proto__.fill).not.toBeUndefined(); }); it("fill method increases the tank by the given gallons", () => { batmobile.fill(10); expect(batmobile.tank).toEqual(10); batmobile.fill(10); expect(batmobile.tank).toEqual(20); }); }); describe("Instances of Baby", () => { let baby; beforeEach(() => { baby = new functions.Baby("Lucy", 5, "trains"); }); it("initialize with the given name", () => { expect(baby.name).toBe("Lucy"); }); it("initialize with the given age", () => { expect(baby.age).toEqual(5); }); it("initialize with the given favorite toy", () => { expect(baby.favoriteToy).toBe("trains"); }); it("get a play method from their prototype", () => { expect(baby.__proto__.play).not.toBeUndefined(); }); it("can play with favorite toy", () => { expect(baby.play()).toContain("trains"); }); it("inherit the methods on Person.prototype", () => { expect(baby.__proto__.eat).not.toBeUndefined(); }); it("inherit the methods on Person.prototype", () => { expect(baby.__proto__.poop).not.toBeUndefined(); }); });
liveqmock/platform-tools-idea
platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/GeneralHighlightingPass.java
<reponame>liveqmock/platform-tools-idea<gh_stars>1-10 /* * Copyright 2000-2009 JetBrains s.r.o. * * 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.intellij.codeInsight.daemon.impl; import com.intellij.codeHighlighting.Pass; import com.intellij.codeHighlighting.TextEditorHighlightingPass; import com.intellij.codeInsight.daemon.DaemonBundle; import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer; import com.intellij.codeInsight.daemon.impl.analysis.CustomHighlightInfoHolder; import com.intellij.codeInsight.daemon.impl.analysis.HighlightInfoHolder; import com.intellij.codeInsight.daemon.impl.analysis.HighlightLevelUtil; import com.intellij.codeInsight.problems.ProblemImpl; import com.intellij.codeInsight.problems.WolfTheProblemSolverImpl; import com.intellij.concurrency.JobLauncher; import com.intellij.injected.editor.DocumentWindow; import com.intellij.lang.Language; import com.intellij.lang.annotation.HighlightSeverity; import com.intellij.lang.injection.InjectedLanguageManager; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.editor.HighlighterColors; import com.intellij.openapi.editor.RangeMarker; import com.intellij.openapi.editor.colors.EditorColors; import com.intellij.openapi.editor.colors.EditorColorsManager; import com.intellij.openapi.editor.colors.EditorColorsScheme; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.editor.ex.MarkupModelEx; import com.intellij.openapi.editor.ex.RangeHighlighterEx; import com.intellij.openapi.editor.impl.DocumentMarkupModel; import com.intellij.openapi.editor.markup.MarkupModel; import com.intellij.openapi.editor.markup.TextAttributes; import com.intellij.openapi.extensions.Extensions; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory; import com.intellij.openapi.progress.ProcessCanceledException; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.progress.ProgressManager; import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.DumbService; import com.intellij.openapi.project.IndexNotReadyException; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.*; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.problems.Problem; import com.intellij.problems.WolfTheProblemSolver; import com.intellij.psi.*; import com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil; import com.intellij.psi.impl.source.tree.injected.Place; import com.intellij.psi.search.PsiTodoSearchHelper; import com.intellij.psi.search.TodoItem; import com.intellij.psi.tree.IElementType; import com.intellij.util.Processor; import com.intellij.util.SmartList; import com.intellij.util.containers.Stack; import com.intellij.util.containers.TransferToEDTQueue; import com.intellij.util.ui.UIUtil; import gnu.trove.THashMap; import gnu.trove.THashSet; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import javax.swing.*; import java.awt.*; import java.util.*; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; public class GeneralHighlightingPass extends ProgressableTextEditorHighlightingPass implements DumbAware { private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass"); static final String PRESENTABLE_NAME = DaemonBundle.message("pass.syntax"); private static final Key<Boolean> HAS_ERROR_ELEMENT = Key.create("HAS_ERROR_ELEMENT"); private static final JobLauncher JobUtil = JobLauncher.getInstance(); private static final Condition<PsiFile> FILE_FILTER = new Condition<PsiFile>() { @Override public boolean value(PsiFile file) { return HighlightLevelUtil.shouldHighlight(file); } }; private final int myStartOffset; private final int myEndOffset; private final boolean myUpdateAll; private final ProperTextRange myPriorityRange; private final Editor myEditor; private final List<HighlightInfo> myHighlights = new ArrayList<HighlightInfo>(); protected volatile boolean myHasErrorElement; private boolean myErrorFound; private static final Comparator<HighlightVisitor> VISITOR_ORDER_COMPARATOR = new Comparator<HighlightVisitor>() { @Override public int compare(final HighlightVisitor o1, final HighlightVisitor o2) { return o1.order() - o2.order(); } }; private volatile Runnable myApplyCommand; private final EditorColorsScheme myGlobalScheme; public GeneralHighlightingPass(@NotNull Project project, @NotNull PsiFile file, @NotNull Document document, int startOffset, int endOffset, boolean updateAll) { this(project, file, document, startOffset, endOffset, updateAll, new ProperTextRange(0,document.getTextLength()), null); } public GeneralHighlightingPass(@NotNull Project project, @NotNull PsiFile file, @NotNull Document document, int startOffset, int endOffset, boolean updateAll, @NotNull ProperTextRange priorityRange, @Nullable Editor editor) { super(project, document, PRESENTABLE_NAME, file, true); myStartOffset = startOffset; myEndOffset = endOffset; myUpdateAll = updateAll; myPriorityRange = priorityRange; myEditor = editor; LOG.assertTrue(file.isValid()); setId(Pass.UPDATE_ALL); myHasErrorElement = !isWholeFileHighlighting() && Boolean.TRUE.equals(myFile.getUserData(HAS_ERROR_ELEMENT)); FileStatusMap fileStatusMap = ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(myProject)).getFileStatusMap(); myErrorFound = !isWholeFileHighlighting() && fileStatusMap.wasErrorFound(myDocument); myApplyCommand = new Runnable() { @Override public void run() { ProperTextRange range = new ProperTextRange(myStartOffset, myEndOffset); MarkupModel model = DocumentMarkupModel.forDocument(myDocument, myProject, true); UpdateHighlightersUtil.cleanFileLevelHighlights(myProject, Pass.UPDATE_ALL,myFile); final EditorColorsScheme colorsScheme = getColorsScheme(); UpdateHighlightersUtil.setHighlightersInRange(myProject, myDocument, range, colorsScheme, myHighlights, (MarkupModelEx)model, Pass.UPDATE_ALL); } }; // initial guess to show correct progress in the traffic light icon setProgressLimit(document.getTextLength()/2); // approx number of PSI elements = file length/2 myGlobalScheme = EditorColorsManager.getInstance().getGlobalScheme(); } private static final Key<AtomicInteger> HIGHLIGHT_VISITOR_INSTANCE_COUNT = new Key<AtomicInteger>("HIGHLIGHT_VISITOR_INSTANCE_COUNT"); @NotNull private HighlightVisitor[] getHighlightVisitors() { int oldCount = incVisitorUsageCount(1); HighlightVisitor[] highlightVisitors = createHighlightVisitors(); if (oldCount != 0) { HighlightVisitor[] clones = new HighlightVisitor[highlightVisitors.length]; for (int i = 0; i < highlightVisitors.length; i++) { HighlightVisitor highlightVisitor = highlightVisitors[i]; HighlightVisitor cloned = highlightVisitor.clone(); assert cloned.getClass() == highlightVisitor.getClass() : highlightVisitor.getClass()+".clone() must return a copy of "+highlightVisitor.getClass()+"; but got: "+cloned+" of "+cloned.getClass(); clones[i] = cloned; } highlightVisitors = clones; } return highlightVisitors; } protected HighlightVisitor[] createHighlightVisitors() { return Extensions.getExtensions(HighlightVisitor.EP_HIGHLIGHT_VISITOR, myProject); } // returns old value private int incVisitorUsageCount(int delta) { AtomicInteger count = myProject.getUserData(HIGHLIGHT_VISITOR_INSTANCE_COUNT); if (count == null) { count = ((UserDataHolderEx)myProject).putUserDataIfAbsent(HIGHLIGHT_VISITOR_INSTANCE_COUNT, new AtomicInteger(0)); } int old = count.getAndAdd(delta); assert old + delta >= 0 : old +";" + delta; return old; } @Override protected void collectInformationWithProgress(final ProgressIndicator progress) { final Set<HighlightInfo> gotHighlights = new THashSet<HighlightInfo>(100); final Set<HighlightInfo> outsideResult = new THashSet<HighlightInfo>(100); DaemonCodeAnalyzer daemonCodeAnalyzer = DaemonCodeAnalyzer.getInstance(myProject); HighlightVisitor[] highlightVisitors = getHighlightVisitors(); final List<PsiElement> inside = new ArrayList<PsiElement>(); final List<PsiElement> outside = new ArrayList<PsiElement>(); try { final HighlightVisitor[] filteredVisitors = filterVisitors(highlightVisitors, myFile); List<ProperTextRange> insideRanges = new ArrayList<ProperTextRange>(); List<ProperTextRange> outsideRanges = new ArrayList<ProperTextRange>(); Divider.divideInsideAndOutside(myFile, myStartOffset, myEndOffset, myPriorityRange, inside, insideRanges, outside, outsideRanges, false, FILE_FILTER); setProgressLimit((long)(inside.size()+outside.size())); final boolean forceHighlightParents = forceHighlightParents(); if (!isDumbMode()) { highlightTodos(myFile, myDocument.getCharsSequence(), myStartOffset, myEndOffset, progress, myPriorityRange, gotHighlights, outsideResult); } Runnable after1 = new Runnable() { @Override public void run() { // all infos for the "injected fragment for the host which is inside" are indeed inside // but some of the infos for the "injected fragment for the host which is outside" can be still inside Set<HighlightInfo> injectedResult = new THashSet<HighlightInfo>(); final Set<PsiFile> injected = new THashSet<PsiFile>(); getInjectedPsiFiles(inside, outside, progress, injected); if (!addInjectedPsiHighlights(injected, progress, Collections.synchronizedSet(injectedResult))) throw new ProcessCanceledException(); final List<HighlightInfo> injectionsOutside = new ArrayList<HighlightInfo>(gotHighlights.size()); Set<HighlightInfo> result; synchronized (injectedResult) { // sync here because all writes happened in another thread result = injectedResult; } for (HighlightInfo info : result) { if (myPriorityRange.containsRange(info.getStartOffset(), info.getEndOffset())) { gotHighlights.add(info); } else { // nonconditionally apply injected results regardless whether they are in myStartOffset,myEndOffset injectionsOutside.add(info); } } if (outsideResult.isEmpty() && injectionsOutside.isEmpty()) { return; // apply only result (by default apply command) and only within inside } final ProperTextRange priorityIntersection = myPriorityRange.intersection(new TextRange(myStartOffset, myEndOffset)); if ((!inside.isEmpty() || !gotHighlights.isEmpty()) && priorityIntersection != null) { // do not apply when there were no elements to highlight // clear infos found in visible area to avoid applying them twice final List<HighlightInfo> toApplyInside = new ArrayList<HighlightInfo>(gotHighlights); myHighlights.addAll(toApplyInside); gotHighlights.clear(); gotHighlights.addAll(outsideResult); final long modificationStamp = myDocument.getModificationStamp(); UIUtil.invokeLaterIfNeeded(new Runnable() { @Override public void run() { if (myProject.isDisposed() || modificationStamp != myDocument.getModificationStamp()) return; MarkupModel markupModel = DocumentMarkupModel.forDocument(myDocument, myProject, true); UpdateHighlightersUtil.setHighlightersInRange(myProject, myDocument, priorityIntersection, getColorsScheme(), toApplyInside, (MarkupModelEx)markupModel, Pass.UPDATE_ALL); if (myEditor != null) { new ShowAutoImportPass(myProject, myFile, myEditor).applyInformationToEditor(); } } }); } myApplyCommand = new Runnable() { @Override public void run() { ProperTextRange range = new ProperTextRange(myStartOffset, myEndOffset); List<HighlightInfo> toApply = new ArrayList<HighlightInfo>(); for (HighlightInfo info : gotHighlights) { if (!range.containsRange(info.getStartOffset(), info.getEndOffset())) continue; if (!myPriorityRange.containsRange(info.getStartOffset(), info.getEndOffset())) { toApply.add(info); } } toApply.addAll(injectionsOutside); UpdateHighlightersUtil.setHighlightersOutsideRange(myProject, myDocument, toApply, getColorsScheme(), myStartOffset, myEndOffset, myPriorityRange, Pass.UPDATE_ALL); } }; } }; collectHighlights(inside, insideRanges, after1, outside, outsideRanges, progress, filteredVisitors, gotHighlights, forceHighlightParents); if (myUpdateAll) { ((DaemonCodeAnalyzerImpl)daemonCodeAnalyzer).getFileStatusMap().setErrorFoundFlag(myDocument, myErrorFound); } } finally { incVisitorUsageCount(-1); } myHighlights.addAll(gotHighlights); } private void getInjectedPsiFiles(@NotNull final List<PsiElement> elements1, @NotNull final List<PsiElement> elements2, @NotNull final ProgressIndicator progress, @NotNull final Set<PsiFile> outInjected) { List<DocumentWindow> injected = InjectedLanguageUtil.getCachedInjectedDocuments(myFile); Collection<PsiElement> hosts = new THashSet<PsiElement>(elements1.size() + elements2.size() + injected.size()); //rehighlight all injected PSI regardless the range, //since change in one place can lead to invalidation of injected PSI in (completely) other place. for (DocumentWindow documentRange : injected) { progress.checkCanceled(); if (!documentRange.isValid()) continue; PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(documentRange); if (file == null) continue; PsiElement context = InjectedLanguageManager.getInstance(file.getProject()).getInjectionHost(file); if (context != null && context.isValid() && !file.getProject().isDisposed() && (myUpdateAll || new ProperTextRange(myStartOffset, myEndOffset).intersects(context.getTextRange()))) { hosts.add(context); } } hosts.addAll(elements1); hosts.addAll(elements2); final PsiLanguageInjectionHost.InjectedPsiVisitor visitor = new PsiLanguageInjectionHost.InjectedPsiVisitor() { @Override public void visit(@NotNull PsiFile injectedPsi, @NotNull List<PsiLanguageInjectionHost.Shred> places) { synchronized (outInjected) { outInjected.add(injectedPsi); } } }; if (!JobUtil.invokeConcurrentlyUnderProgress(new ArrayList<PsiElement>(hosts), progress, false, new Processor<PsiElement>() { @Override public boolean process(PsiElement element) { progress.checkCanceled(); InjectedLanguageUtil.enumerate(element, myFile, false, visitor); return true; } })) { throw new ProcessCanceledException(); } } // returns false if canceled private boolean addInjectedPsiHighlights(@NotNull final Set<PsiFile> injectedFiles, @NotNull final ProgressIndicator progress, @NotNull final Collection<HighlightInfo> outInfos) { if (injectedFiles.isEmpty()) return true; final InjectedLanguageManager injectedLanguageManager = InjectedLanguageManager.getInstance(myProject); final TextAttributes injectedAttributes = myGlobalScheme.getAttributes(EditorColors.INJECTED_LANGUAGE_FRAGMENT); return JobUtil.invokeConcurrentlyUnderProgress(new ArrayList<PsiFile>(injectedFiles), progress, isFailFastOnAcquireReadAction(), new Processor<PsiFile>() { @Override public boolean process(final PsiFile injectedPsi) { DocumentWindow documentWindow = (DocumentWindow)PsiDocumentManager.getInstance(myProject).getCachedDocument(injectedPsi); if (documentWindow == null) return true; Place places = InjectedLanguageUtil.getShreds(injectedPsi); for (PsiLanguageInjectionHost.Shred place : places) { TextRange textRange = place.getRangeInsideHost().shiftRight(place.getHost().getTextRange().getStartOffset()); if (textRange.isEmpty()) continue; String desc = injectedPsi.getLanguage().getDisplayName() + ": " + injectedPsi.getText(); HighlightInfo.Builder builder = HighlightInfo.newHighlightInfo(HighlightInfoType.INJECTED_LANGUAGE_BACKGROUND).range(textRange); if (injectedAttributes != null) { builder.textAttributes(injectedAttributes); } builder.unescapedToolTip(desc); HighlightInfo info = builder.createUnconditionally(); info.setFromInjection(true); outInfos.add(info); } HighlightInfoHolder holder = createInfoHolder(injectedPsi); runHighlightVisitorsForInjected(injectedPsi, holder, progress); for (int i = 0; i < holder.size(); i++) { HighlightInfo info = holder.get(i); final int startOffset = documentWindow.injectedToHost(info.startOffset); final TextRange fixedTextRange = getFixedTextRange(documentWindow, startOffset); addPatchedInfos(info, injectedPsi, documentWindow, injectedLanguageManager, fixedTextRange, outInfos); } holder.clear(); highlightInjectedSyntax(injectedPsi, holder); for (int i = 0; i < holder.size(); i++) { HighlightInfo info = holder.get(i); final int startOffset = info.startOffset; final TextRange fixedTextRange = getFixedTextRange(documentWindow, startOffset); if (fixedTextRange == null) { info.setFromInjection(true); outInfos.add(info); } else { HighlightInfo patched = new HighlightInfo(info.forcedTextAttributes, info.forcedTextAttributesKey, info.type, fixedTextRange.getStartOffset(), fixedTextRange.getEndOffset(), info.getDescription(), info.getToolTip(), info.type.getSeverity(null), info.isAfterEndOfLine(), null, false, 0); patched.setFromInjection(true); outInfos.add(patched); } } if (!isDumbMode()) { List<HighlightInfo> todos = new ArrayList<HighlightInfo>(); highlightTodos(injectedPsi, injectedPsi.getText(), 0, injectedPsi.getTextLength(), progress, myPriorityRange, todos, todos); for (HighlightInfo info : todos) { addPatchedInfos(info, injectedPsi, documentWindow, injectedLanguageManager, null, outInfos); } } return true; } }); } protected boolean isFailFastOnAcquireReadAction() { return true; } @Nullable("null means invalid") private static TextRange getFixedTextRange(@NotNull DocumentWindow documentWindow, int startOffset) { final TextRange fixedTextRange; TextRange textRange = documentWindow.getHostRange(startOffset); if (textRange == null) { // todo[cdr] check this fix. prefix/suffix code annotation case textRange = findNearestTextRange(documentWindow, startOffset); if (textRange == null) return null; final boolean isBefore = startOffset < textRange.getStartOffset(); fixedTextRange = new ProperTextRange(isBefore ? textRange.getStartOffset() - 1 : textRange.getEndOffset(), isBefore ? textRange.getStartOffset() : textRange.getEndOffset() + 1); } else { fixedTextRange = null; } return fixedTextRange; } private static void addPatchedInfos(@NotNull HighlightInfo info, @NotNull PsiFile injectedPsi, @NotNull DocumentWindow documentWindow, @NotNull InjectedLanguageManager injectedLanguageManager, @Nullable TextRange fixedTextRange, @NotNull Collection<HighlightInfo> out) { ProperTextRange textRange = new ProperTextRange(info.startOffset, info.endOffset); List<TextRange> editables = injectedLanguageManager.intersectWithAllEditableFragments(injectedPsi, textRange); for (TextRange editable : editables) { TextRange hostRange = fixedTextRange == null ? documentWindow.injectedToHost(editable) : fixedTextRange; boolean isAfterEndOfLine = info.isAfterEndOfLine(); if (isAfterEndOfLine) { // convert injected afterEndOfLine to either host' afterEndOfLine or not-afterEndOfLine highlight of the injected fragment boundary int hostEndOffset = hostRange.getEndOffset(); int lineNumber = documentWindow.getDelegate().getLineNumber(hostEndOffset); int hostLineEndOffset = documentWindow.getDelegate().getLineEndOffset(lineNumber); if (hostEndOffset < hostLineEndOffset) { // convert to non-afterEndOfLine isAfterEndOfLine = false; hostRange = new ProperTextRange(hostRange.getStartOffset(), hostEndOffset+1); } } HighlightInfo patched = new HighlightInfo(info.forcedTextAttributes, info.forcedTextAttributesKey, info.type, hostRange.getStartOffset(), hostRange.getEndOffset(), info.getDescription(), info.getToolTip(), info.type.getSeverity(null), isAfterEndOfLine, null, false, 0); patched.setHint(info.hasHint()); patched.setGutterIconRenderer(info.getGutterIconRenderer()); if (info.quickFixActionRanges != null) { for (Pair<HighlightInfo.IntentionActionDescriptor, TextRange> pair : info.quickFixActionRanges) { TextRange quickfixTextRange = pair.getSecond(); List<TextRange> editableQF = injectedLanguageManager.intersectWithAllEditableFragments(injectedPsi, quickfixTextRange); for (TextRange editableRange : editableQF) { HighlightInfo.IntentionActionDescriptor descriptor = pair.getFirst(); if (patched.quickFixActionRanges == null) patched.quickFixActionRanges = new ArrayList<Pair<HighlightInfo.IntentionActionDescriptor, TextRange>>(); TextRange hostEditableRange = documentWindow.injectedToHost(editableRange); patched.quickFixActionRanges.add(Pair.create(descriptor, hostEditableRange)); } } } patched.setFromInjection(true); out.add(patched); } } // finds the first nearest text range @Nullable("null means invalid") private static TextRange findNearestTextRange(final DocumentWindow documentWindow, final int startOffset) { TextRange textRange = null; for (Segment marker : documentWindow.getHostRanges()) { TextRange curRange = ProperTextRange.create(marker); if (curRange.getStartOffset() > startOffset && textRange != null) break; textRange = curRange; } return textRange; } private void runHighlightVisitorsForInjected(@NotNull PsiFile injectedPsi, @NotNull final HighlightInfoHolder holder, @NotNull final ProgressIndicator progress) { HighlightVisitor[] visitors = getHighlightVisitors(); try { HighlightVisitor[] filtered = filterVisitors(visitors, injectedPsi); final List<PsiElement> elements = CollectHighlightsUtil.getElementsInRange(injectedPsi, 0, injectedPsi.getTextLength()); for (final HighlightVisitor visitor : filtered) { visitor.analyze(injectedPsi, true, holder, new Runnable() { @Override public void run() { for (PsiElement element : elements) { progress.checkCanceled(); visitor.visit(element); } } }); } } finally { incVisitorUsageCount(-1); } } private void highlightInjectedSyntax(final PsiFile injectedPsi, HighlightInfoHolder holder) { List<Trinity<IElementType, SmartPsiElementPointer<PsiLanguageInjectionHost>, TextRange>> tokens = InjectedLanguageUtil .getHighlightTokens(injectedPsi); if (tokens == null) return; final Language injectedLanguage = injectedPsi.getLanguage(); Project project = injectedPsi.getProject(); SyntaxHighlighter syntaxHighlighter = SyntaxHighlighterFactory.getSyntaxHighlighter(injectedLanguage, project, injectedPsi.getVirtualFile()); final TextAttributes defaultAttrs = myGlobalScheme.getAttributes(HighlighterColors.TEXT); for (Trinity<IElementType, SmartPsiElementPointer<PsiLanguageInjectionHost>, TextRange> token : tokens) { ProgressManager.checkCanceled(); IElementType tokenType = token.getFirst(); PsiLanguageInjectionHost injectionHost = token.getSecond().getElement(); if (injectionHost == null) continue; TextRange textRange = token.getThird(); TextAttributesKey[] keys = syntaxHighlighter.getTokenHighlights(tokenType); if (textRange.getLength() == 0) continue; TextRange annRange = textRange.shiftRight(injectionHost.getTextRange().getStartOffset()); // force attribute colors to override host' ones TextAttributes attributes = null; for(TextAttributesKey key:keys) { TextAttributes attrs2 = myGlobalScheme.getAttributes(key); if (attrs2 != null) { attributes = attributes == null ? attrs2 : TextAttributes.merge(attributes, attrs2); } } TextAttributes forcedAttributes; if (attributes == null || attributes.isEmpty() || attributes.equals(defaultAttrs)) { forcedAttributes = TextAttributes.ERASE_MARKER; } else { HighlightInfo info = HighlightInfo.newHighlightInfo(HighlightInfoType.INJECTED_LANGUAGE_FRAGMENT).range(annRange).textAttributes( TextAttributes.ERASE_MARKER).createUnconditionally(); holder.add(info); Color back = attributes.getBackgroundColor() == null ? myGlobalScheme.getDefaultBackground() : attributes.getBackgroundColor(); Color fore = attributes.getForegroundColor() == null ? myGlobalScheme.getDefaultForeground() : attributes.getForegroundColor(); forcedAttributes = new TextAttributes(fore, back, attributes.getEffectColor(), attributes.getEffectType(), attributes.getFontType()); } HighlightInfo info = HighlightInfo.newHighlightInfo(HighlightInfoType.INJECTED_LANGUAGE_FRAGMENT).range(annRange).textAttributes(forcedAttributes) .createUnconditionally(); holder.add(info); } } private boolean isWholeFileHighlighting() { return myUpdateAll && myStartOffset == 0 && myEndOffset == myDocument.getTextLength(); } @Override protected void applyInformationWithProgress() { myFile.putUserData(HAS_ERROR_ELEMENT, myHasErrorElement); myApplyCommand.run(); if (myUpdateAll) { reportErrorsToWolf(); } } @Override @NotNull public List<HighlightInfo> getInfos() { return new ArrayList<HighlightInfo>(myHighlights); } private void collectHighlights(@NotNull final List<PsiElement> elements1, @NotNull final List<ProperTextRange> ranges1, @NotNull final Runnable after1, @NotNull final List<PsiElement> elements2, @NotNull final List<ProperTextRange> ranges2, @NotNull final ProgressIndicator progress, @NotNull final HighlightVisitor[] visitors, @NotNull final Set<HighlightInfo> gotHighlights, final boolean forceHighlightParents) { final Set<PsiElement> skipParentsSet = new THashSet<PsiElement>(); // TODO - add color scheme to holder final HighlightInfoHolder holder = createInfoHolder(myFile); final int chunkSize = Math.max(1, (elements1.size()+elements2.size()) / 100); // one percent precision is enough final Map<TextRange, RangeMarker> ranges2markersCache = new THashMap<TextRange, RangeMarker>(); final TransferToEDTQueue<HighlightInfo> myTransferToEDTQueue = new TransferToEDTQueue<HighlightInfo>("Apply highlighting results", new Processor<HighlightInfo>() { @Override public boolean process(HighlightInfo info) { ApplicationManager.getApplication().assertIsDispatchThread(); final EditorColorsScheme colorsScheme = getColorsScheme(); UpdateHighlightersUtil.addHighlighterToEditorIncrementally(myProject, myDocument, myFile, myStartOffset, myEndOffset, info, colorsScheme, Pass.UPDATE_ALL, ranges2markersCache); return true; } }, new Condition<Object>() { @Override public boolean value(Object o) { return myProject.isDisposed() || progress.isCanceled(); } }, 200); final Runnable action = new Runnable() { @Override public void run() { Stack<Pair<TextRange, List<HighlightInfo>>> nested = new Stack<Pair<TextRange, List<HighlightInfo>>>(); boolean failed = false; List<ProperTextRange> ranges = ranges1; //noinspection unchecked for (List<PsiElement> elements : new List[]{elements1, elements2}) { nested.clear(); int nextLimit = chunkSize; for (int i = 0; i < elements.size(); i++) { PsiElement element = elements.get(i); progress.checkCanceled(); PsiElement parent = element.getParent(); if (element != myFile && !skipParentsSet.isEmpty() && element.getFirstChild() != null && skipParentsSet.contains(element)) { skipParentsSet.add(parent); continue; } if (element instanceof PsiErrorElement) { myHasErrorElement = true; } holder.clear(); for (final HighlightVisitor visitor : visitors) { try { visitor.visit(element); } catch (ProcessCanceledException e) { throw e; } catch (IndexNotReadyException e) { throw e; } catch (WolfTheProblemSolverImpl.HaveGotErrorException e) { throw e; } catch (Exception e) { if (!failed) { LOG.error(e); } failed = true; } } if (i == nextLimit) { advanceProgress(chunkSize); nextLimit = i + chunkSize; } TextRange elementRange = ranges.get(i); List<HighlightInfo> infosForThisRange = holder.size() == 0 ? null : new ArrayList<HighlightInfo>(holder.size()); for (int j = 0; j < holder.size(); j++) { final HighlightInfo info = holder.get(j); assert info != null; // have to filter out already obtained highlights if (!gotHighlights.add(info)) continue; boolean isError = info.getSeverity() == HighlightSeverity.ERROR; if (isError) { if (!forceHighlightParents) { skipParentsSet.add(parent); } myErrorFound = true; } // if this highlight info range is exactly the same as the element range we are visiting // that means we can clear this highlight as soon as visitors won't produce any highlights during visiting the same range next time. info.setBijective(elementRange.equalsToRange(info.startOffset, info.endOffset)); myTransferToEDTQueue.offer(info); infosForThisRange.add(info); } // include infos which we got while visiting nested elements with the same range while (true) { if (!nested.isEmpty() && elementRange.contains(nested.peek().first)) { Pair<TextRange, List<HighlightInfo>> old = nested.pop(); if (elementRange.equals(old.first)) { if (infosForThisRange == null) { infosForThisRange = old.second; } else if (old.second != null){ infosForThisRange.addAll(old.second); } } } else { break; } } nested.push(Pair.create(elementRange, infosForThisRange)); if (parent == null || !Comparing.equal(elementRange, parent.getTextRange())) { killAbandonedHighlightsUnder(elementRange, infosForThisRange, progress); } } advanceProgress(elements.size() - (nextLimit-chunkSize)); if (elements == elements1) { after1.run(); ranges = ranges2; } } } }; analyzeByVisitors(progress, visitors, holder, 0, action); } protected void killAbandonedHighlightsUnder(@NotNull final TextRange range, @Nullable final List<HighlightInfo> holder, @NotNull final ProgressIndicator progress) { DaemonCodeAnalyzerImpl.processHighlights(getDocument(), myProject, null, range.getStartOffset(), range.getEndOffset(), new Processor<HighlightInfo>() { @Override public boolean process(final HighlightInfo existing) { if (existing.isBijective() && existing.getGroup() == Pass.UPDATE_ALL && range.equalsToRange(existing.getActualStartOffset(), existing.getActualEndOffset())) { if (holder != null) { for (HighlightInfo created : holder) { if (existing.equalsByActualOffset(created)) return true; } } // seems that highlight info "existing" is going to disappear // remove it earlier SwingUtilities.invokeLater(new Runnable() { @Override public void run() { RangeHighlighterEx highlighter = existing.highlighter; if (!progress.isCanceled() && highlighter != null) { highlighter.dispose(); } } }); } return true; } }); } private void analyzeByVisitors(@NotNull final ProgressIndicator progress, @NotNull final HighlightVisitor[] visitors, @NotNull final HighlightInfoHolder holder, final int i, @NotNull final Runnable action) { if (i == visitors.length) { action.run(); } else { if (!visitors[i].analyze(myFile, myUpdateAll, holder, new Runnable() { @Override public void run() { analyzeByVisitors(progress, visitors, holder, i+1, action); } })) { cancelAndRestartDaemonLater(progress, myProject, this); } } } @NotNull private static HighlightVisitor[] filterVisitors(@NotNull HighlightVisitor[] highlightVisitors, @NotNull PsiFile file) { final List<HighlightVisitor> visitors = new ArrayList<HighlightVisitor>(highlightVisitors.length); List<HighlightVisitor> list = Arrays.asList(highlightVisitors); for (HighlightVisitor visitor : DumbService.getInstance(file.getProject()).filterByDumbAwareness(list)) { if (visitor.suitableForFile(file)) visitors.add(visitor); } LOG.assertTrue(!visitors.isEmpty(), list); HighlightVisitor[] visitorArray = visitors.toArray(new HighlightVisitor[visitors.size()]); Arrays.sort(visitorArray, VISITOR_ORDER_COMPARATOR); return visitorArray; } static void cancelAndRestartDaemonLater(@NotNull ProgressIndicator progress, @NotNull final Project project, @NotNull TextEditorHighlightingPass passCalledFrom) throws ProcessCanceledException { PassExecutorService.log(progress, passCalledFrom, "Cancel and restart"); progress.cancel(); ApplicationManager.getApplication().invokeLater(new Runnable() { @Override public void run() { try { Thread.sleep(new Random().nextInt(100)); } catch (InterruptedException e) { LOG.error(e); } DaemonCodeAnalyzer.getInstance(project).restart(); } }, project.getDisposed()); throw new ProcessCanceledException(); } private boolean forceHighlightParents() { boolean forceHighlightParents = false; for(HighlightRangeExtension extension: Extensions.getExtensions(HighlightRangeExtension.EP_NAME)) { if (extension.isForceHighlightParents(myFile)) { forceHighlightParents = true; break; } } return forceHighlightParents; } protected HighlightInfoHolder createInfoHolder(final PsiFile file) { final HighlightInfoFilter[] filters = ApplicationManager.getApplication().getExtensions(HighlightInfoFilter.EXTENSION_POINT_NAME); return new CustomHighlightInfoHolder(file, getColorsScheme(), filters); } private static void highlightTodos(@NotNull PsiFile file, @NotNull CharSequence text, int startOffset, int endOffset, @NotNull ProgressIndicator progress, @NotNull ProperTextRange priorityRange, @NotNull Collection<HighlightInfo> result, @NotNull Collection<HighlightInfo> outsideResult) { PsiTodoSearchHelper helper = PsiTodoSearchHelper.SERVICE.getInstance(file.getProject()); TodoItem[] todoItems = helper.findTodoItems(file, startOffset, endOffset); if (todoItems.length == 0) return; for (TodoItem todoItem : todoItems) { progress.checkCanceled(); TextRange range = todoItem.getTextRange(); String description = text.subSequence(range.getStartOffset(), range.getEndOffset()).toString(); TextAttributes attributes = todoItem.getPattern().getAttributes().getTextAttributes(); HighlightInfo.Builder builder = HighlightInfo.newHighlightInfo(HighlightInfoType.TODO).range(range); if (attributes != null) { builder.textAttributes(attributes); } builder.descriptionAndTooltip(description); HighlightInfo info = builder.createUnconditionally(); if (priorityRange.containsRange(info.getStartOffset(), info.getEndOffset())) { result.add(info); } else { outsideResult.add(info); } } } private void reportErrorsToWolf() { if (!myFile.getViewProvider().isPhysical()) return; // e.g. errors in evaluate expression Project project = myFile.getProject(); if (!PsiManager.getInstance(project).isInProject(myFile)) return; // do not report problems in libraries VirtualFile file = myFile.getVirtualFile(); if (file == null) return; List<Problem> problems = convertToProblems(getInfos(), file, myHasErrorElement); WolfTheProblemSolver wolf = WolfTheProblemSolver.getInstance(project); boolean hasErrors = DaemonCodeAnalyzerImpl.hasErrors(project, getDocument()); if (!hasErrors || isWholeFileHighlighting()) { wolf.reportProblems(file, problems); } else { wolf.weHaveGotProblems(file, problems); } } @Override public double getProgress() { // do not show progress of visible highlighters update return myUpdateAll ? super.getProgress() : -1; } private static List<Problem> convertToProblems(@NotNull Collection<HighlightInfo> infos, @NotNull VirtualFile file, final boolean hasErrorElement) { List<Problem> problems = new SmartList<Problem>(); for (HighlightInfo info : infos) { if (info.getSeverity() == HighlightSeverity.ERROR) { Problem problem = new ProblemImpl(file, info, hasErrorElement); problems.add(problem); } } return problems; } @Override public String toString() { return super.toString() + " updateAll="+myUpdateAll+" range=("+myStartOffset+","+myEndOffset+")"; } }
pandorasbox110/myedge
public/js/dashboard/teacher.js
$(document).ready(function() { checkStat(); task(); }); function checkStat(){ //for deleted stat stat=$('#usersta').val(); if(stat == 1){//delete showWarningAlert('Warning','Your account is deleted, Thank you'); window.location.href = '/logout'; } // status stat2=$('#usersta2').val(); if(stat2 == 2){ // unverified user //show modal $('#spam-modal').modal({backdrop: 'static', keyboard: false}); $("#spam-modal").modal("show"); } } function logoutUser(){ window.location.href = '/logout'; } function task(){ var chart = JSC.chart('task_graph', { debug: false, legend_visible: false, yAxis: { line_visible: false, defaultTick_enabled: false }, defaultSeries: { type: 'gauge column roundcaps', angle: { sweep: 360, start: -90 }, defaultPoint_tooltip: '<b>%seriesName</b> %yValue% of Goal', shape: { innerSize: '70%', label: [ { text: '%value'+'%', style: { fontSize: 30, color: '#696969' }, align: 'center', verticalAlign: 'middle' }, { verticalAlign: 'top', align: 'center', text: '%title', style: { fontWeight: 'bold', fontSize: 15, color: '#161616', padding:'15', } } ] } }, series: [ { color: '#3FDC00', name: 'Completed Task', attributes: { icon: 'material/maps/directions-run', value:85, fill: '#3FDC00', title:'COMPLETED TASKS', }, points: [['val', 85]] }, { color: '#3EBAE1', name: 'Todo Task', attributes: { icon: 'material/maps/directions-bike', value:15, fill: '#3EBAE1', title:'TASKS TO DO' }, points: [['val', 15]] } ] }); }
zettadb/zettalib
src/vendor/mariadb-10.6.7/storage/mroonga/vendor/groonga/lib/column.c
/* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2009-2016 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */ #include "grn.h" #include "grn_store.h" #include "grn_ii.h" grn_column_flags grn_column_get_flags(grn_ctx *ctx, grn_obj *column) { grn_column_flags flags = 0; GRN_API_ENTER; if (!column) { GRN_API_RETURN(0); } switch (column->header.type) { case GRN_COLUMN_FIX_SIZE : flags = column->header.flags; break; case GRN_COLUMN_VAR_SIZE : flags = grn_ja_get_flags(ctx, (grn_ja *)column); break; case GRN_COLUMN_INDEX : flags = grn_ii_get_flags(ctx, (grn_ii *)column); break; default : break; } GRN_API_RETURN(flags); }
rifflearning/jitsi-meet-mobile
react/features/riff-dashboard-page/src/redux/listeners/webrtc.js
<reponame>rifflearning/jitsi-meet-mobile /* ****************************************************************************** * webrtc.js * * *************************************************************************/ /** * * @fileoverview Create a webrtc instance that listens for webrtc events and dispatches actions * * Created on August 9, 2018 * @author <NAME> * @author <NAME> * @author <NAME> * * @copyright (c) 2018-present Riff Learning Inc., * MIT License (see https://opensource.org/licenses/MIT) * * ******************************************************************************/ import SimpleWebRTC from '@rifflearning/simplewebrtc'; import sibilant from '@rifflearning/sibilant'; import { app } from 'libs/riffdata-client'; import { logger } from 'libs/utils'; import { addPeer, addSharedScreen, getDisplayError, getMediaError, readyToCall, removePeer, removeSharedScreen, saveLocalWebrtcId, showMeetingDoc, urlShareStart, urlShareStop, volumeChanged, } from 'Redux/actions/chat'; import { participantLeaveRoom, updateRiffMeetingId, } from 'Redux/actions/riff'; import { getUserId } from 'Redux/selectors/user'; import { getRiffAuthToken } from 'Redux/selectors/riff'; function addWebRtcListeners(nick, localVideoId, dispatch, getState) { let signalmasterPath = window.client_config.signalMaster.path || ''; signalmasterPath += '/socket.io'; // TODO this is a temporary solution to a bug // where, only in firefox, if you refresh the page // while sharing a link it does not send the urlShareStop message // (it works when closing the page or leaving the room?) // - jr 4.6.20 let lastSharedPeerId = ''; const webRtcConfig = { localVideoEl: localVideoId, remoteVideosEl: '', // handled by our component autoRequestMedia: true, url: window.client_config.signalMaster.url, nick: nick, socketio: { path: signalmasterPath, forceNew: true }, videoCodec: 'H264', media: { audio: true, video: { // TODO - the resolution here is rather low // this is good for cpu limited users, // but in the future we would like to implement variable resolution // to improve visual quality for those who can afford it width: { ideal: 320 }, height: { ideal: 240 }, // firefox doesn't support requesting a framerate other than // that which the user's webcam can natively provide // chrome does not have this limitation frameRate: { ideal: 12, max: 30 } } }, debug: !!window.client_config.webrtc_debug, }; const webrtc = new SimpleWebRTC(webRtcConfig); logger.debug('Listener.WebRtc: Creating webrtc constant...', webrtc); // logger.debug("Local Session ID:", webrtc.connection.socket.sessionId) const bindSibilantToStream = function (stream) { const sib = new sibilant(stream); if (sib) { logger.debug('Listener.WebRtc: Registering speaking detection for stream', stream); // FIXME - uh, is something supposed to be happening here? // can we just delete this? -jr webrtc.stopVolumeCollection = function () { // sib.unbind('volumeChange'); }; webrtc.startVolumeCollection = function () { sib.bind('volumeChange', function (data) { const state = getState(); if (!state.chat.inRoom) { dispatch(volumeChanged(data)); } }.bind(getState)); }; webrtc.stopSibilant = function () { sib.unbind('stoppedSpeaking'); }; // use this to show user volume to confirm audio/video working webrtc.startVolumeCollection(); logger.debug(`Listener.WebRtc: binding to sib stoppedSpeaking w/ room? "${getState().chat.webRtcRoom}"`); sib.bind('stoppedSpeaking', (data) => { const state = getState(); if (state.chat.inRoom) { logger.debug('Listener.WebRtc.sib.stoppedSpeaking: create utterance for user: ' + `${getUserId(state)} in room: "${state.chat.webRtcRoom}"`); app.service('utterances') .create({ participant: getUserId(state), room: state.chat.webRtcRoom, startTime: data.start.toISOString(), endTime: data.end.toISOString(), token: getRiffAuthToken(state), }) .then(function (res) { logger.debug('Listener.WebRtc.sib.stoppedSpeaking: speaking event recorded:', res); dispatch(updateRiffMeetingId(res.meeting)); return undefined; }) .catch(function (err) { logger.error('Listener.WebRtc: ERROR', err); }); } }); } }; webrtc.on('videoAdded', function (video, peer) { // send a no-op to begin the url channel opening process peer.sendDirectly('url', 'noop', 'noop'); logger.debug('Listener.WebRtc.videoAdded: added video', peer, video, 'nick:', peer.nick); dispatch(addPeer({ peer: peer, videoEl: video })); if (webrtc.sharedUrl) { const sharedUrl = webrtc.sharedUrl; // the channel takes a second to connect, // and it doesn't fire an event when it's successful // so we have to just try until we succeed or // exceed a reasonable max number of tries // -jr 3.25.20 const maxTries = 15; let numTries = 0; const retrySendInterval = setInterval(() => { const sendSuccess = peer.sendDirectly('url', 'urlShareStart', sharedUrl); numTries++; if (sendSuccess || numTries >= maxTries) { clearInterval(retrySendInterval); } }, 100); } }); webrtc.on('urlShareStart', function (peer, url) { lastSharedPeerId = peer.id; dispatch(urlShareStart(url, false)); }); webrtc.on('urlShareStop', function () { dispatch(urlShareStop()); }); webrtc.on('videoRemoved', function (video, peer) { const state = getState(); // TODO this is a [potentially temporary] fix for a bug in firefox where // when a user leaves the room by refreshing the page while sharing a url, // the webrtc data channel seems to close before successfully sending // the stop sharing message // need to consider other ways to fix this when we have more time // - jr 4.6.20 if (peer.id === lastSharedPeerId && state.chat.sharedUrl) { dispatch(urlShareStop()); } dispatch(removePeer({ peer: peer, videoEl: video })); if (state.chat.inRoom) { logger.debug('Listener.WebRtc.videoRemoved: removing participant ' + `${peer.nick} from meeting ${state.riff.meetingId}`); const [ riffId ] = peer.nick.split('|'); participantLeaveRoom(state.riff.meetingId, riffId); } }); webrtc.on('screenAdded', function (video, peer) { logger.debug('Listener.WebRtc.screenAdded: adding shared screen!', video, 'from', peer); dispatch(showMeetingDoc(false)); dispatch(addSharedScreen(video, false)); }); webrtc.on('screenRemoved', function (video, peer) { logger.debug('Listener.WebRtc.screenRemoved: removing shared screen!', { video, peer }); dispatch(showMeetingDoc(true)); dispatch(removeSharedScreen()); }); webrtc.on('localScreenAdded', function (video) { dispatch(showMeetingDoc(false)); dispatch(addSharedScreen(video, true)); }); webrtc.on('localScreenRemoved', function (video) { dispatch(showMeetingDoc(true)); dispatch(removeSharedScreen(video)); }); // this happens if the user ends via the chrome button // instead of our button webrtc.on('localScreenStopped', function (video) { dispatch(showMeetingDoc(true)); dispatch(removeSharedScreen(video)); }); webrtc.on('localScreenRequestFailed', function () { dispatch(getDisplayError()); }); webrtc.on('localStreamRequestFailed', function () { dispatch(getMediaError(true)); }); webrtc.on('localStream', function (stream) { if (stream.active) { dispatch(getMediaError(false)); } bindSibilantToStream(stream); }); webrtc.releaseWebcam = function () { // we need to go through each track (audio / video) of each // local stream and stop them individually for (const stream of this.webrtc.localStreams) { for (const track of stream.getTracks()) { track.stop(); } } }; webrtc.changeNick = function (newNick) { this.config.nick = newNick; this.webrtc.config.nick = newNick; }; webrtc.shareUrl = function (url) { // since this function will always be called in the context of webrtc, // `this` here refers to the `webrtc` object // we need to keep track of the shared URL in case someone joins // after we've already shared it, so we can send them a new message this.sharedUrl = url; this.sendDirectlyToAll('url', 'urlShareStart', url); }; webrtc.stopShareUrl = function () { // since this function will always be called in the context of webrtc, // `this` here refers to the `webrtc` object this.sharedUrl = null; this.sendDirectlyToAll('url', 'urlShareStop', 'noop'); }; webrtc.on('readyToCall', function (connectionId) { dispatch(getMediaError(false)); logger.debug('Listener.WebRtc.readyToCall: local webrtc connection id:', connectionId); dispatch(saveLocalWebrtcId(connectionId)); dispatch(readyToCall()); }); return webrtc; } /* **************************************************************************** * * Module exports * * **************************************************************************** */ export { addWebRtcListeners, };
JackTan25/matrixone
pkg/vm/engine/tae/tables/tables_test.go
<reponame>JackTan25/matrixone // Copyright 2021 Matrix Origin // // 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 tables import ( "testing" "time" "github.com/matrixorigin/matrixone/pkg/vm/engine/tae/common" "github.com/matrixorigin/matrixone/pkg/vm/engine/tae/iface/txnif" "github.com/stretchr/testify/assert" ) const ( ModuleName = "TAETABLES" ) func TestInsertInfo(t *testing.T) { ts := common.NextGlobalSeqNum() capacity := uint32(10000) info := newInsertInfo(nil, ts, capacity) cnt := int(capacity) - 1 now := time.Now() txns := make([]txnif.TxnReader, 0) for i := 0; i < cnt; i++ { txn := newMockTxn() txn.TxnCtx.CommitTS = common.NextGlobalSeqNum() txn.TxnCtx.State = txnif.TxnStateCommitted info.RecordTxnLocked(uint32(i), txn) txns = append(txns, txn) } t.Logf("Record takes %s", time.Since(now)) { txn := newMockTxn() txn.TxnCtx.CommitTS = common.NextGlobalSeqNum() txn.TxnCtx.State = txnif.TxnStateCommitted info.RecordTxnLocked(uint32(cnt), txn) txns = append(txns, txn) } now = time.Now() t.Logf("Record takes %s", time.Since(now)) // tsCol, _ := info.ts.CopyToVector() // t.Log(tsCol.String()) now = time.Now() for _, txn := range txns { err := info.ApplyCommitLocked(txn) assert.Nil(t, err) } t.Logf("Commit takes %s", time.Since(now)) now = time.Now() offset := info.GetVisibleOffsetLocked(txns[0].GetStartTS()) t.Logf("GetVisibleOffset takes %s", time.Since(now)) assert.Equal(t, -1, offset) offset = info.GetVisibleOffsetLocked(txns[len(txns)-1].GetCommitTS()) assert.Equal(t, int(capacity-1), offset) }
Yukun99/tp
src/main/java/seedu/notor/logic/executors/exceptions/ExecuteException.java
package seedu.notor.logic.executors.exceptions; /** * Represents a parse error encountered by a parser. */ public class ExecuteException extends Exception { public ExecuteException(String message) { super(message); } public ExecuteException(String message, Throwable cause) { super(message, cause); } }
webguru001/Python-Django-Web
Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py
<filename>Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py a = [1, 2, 5, 10, 255, 3] total=0 for i in range(len(a)): total += a[i] print total/len(a) ''' for count in a[0:6]: total += a[count] print count/len(a) '''
openharmony-gitee-mirror/app_samples
CompleteApps/DistributedShoppingCart/entry/src/main/java/ohos/samples/distributedshoppingcart/provider/ProductListProvider.java
<reponame>openharmony-gitee-mirror/app_samples /* * Copyright (c) 2021 Huawei Device Co., Ltd.All rights reserved. * 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 ohos.samples.distributedshoppingcart.provider; import ohos.agp.components.*; import ohos.app.Context; import ohos.samples.distributedshoppingcart.ResourceTable; import ohos.samples.distributedshoppingcart.been.ProductInfo; import ohos.samples.distributedshoppingcart.been.ShoppingCartManage; import ohos.samples.distributedshoppingcart.utils.CommonUtils; import java.util.List; /** * ProductListProvider */ public class ProductListProvider extends BaseItemProvider { private final List<ProductInfo> infoList; private final Context context; private final SelectResultListener listener; /** * ProductListProvider * * @param listBasicInfo the basic info list * @param context the context * @param listener the listener event */ public ProductListProvider(List<ProductInfo> listBasicInfo, Context context,SelectResultListener listener) { this.infoList = listBasicInfo; this.context = context; this.listener = listener; } /** * SelectResultListener */ public interface SelectResultListener { /** * callBack */ void callBack(); } public List<ProductInfo> getInfoList(){ return infoList; } @Override public int getCount() { return infoList == null ? 0 : infoList.size(); } @Override public Object getItem(int i) { return infoList.get(i); } @Override public long getItemId(int idx) { return idx; } @Override public Component getComponent(int position, Component component, ComponentContainer componentContainer) { ViewHolder viewHolder; Component temp = component; if (temp == null) { temp = LayoutScatter.getInstance(context).parse(ResourceTable.Layout_share_shoping_cart_list, null, false); viewHolder = new ViewHolder(); viewHolder.image = (Image) temp.findComponentById(ResourceTable.Id_item_pro_image); viewHolder.content = (Text) temp.findComponentById(ResourceTable.Id_item_pro_title); viewHolder.param = (Text) temp.findComponentById(ResourceTable.Id_item_pro_param); viewHolder.param2 = (Text) temp.findComponentById(ResourceTable.Id_item_pro_param2); viewHolder.price = (Text) temp.findComponentById(ResourceTable.Id_item_pro_price); viewHolder.discount = (Text) temp.findComponentById(ResourceTable.Id_item_pro_discount); viewHolder.imgSelect = (Image)temp.findComponentById(ResourceTable.Id_pro_select); viewHolder.imgDec = (Image)temp.findComponentById(ResourceTable.Id_item_pro_dec); viewHolder.imgPlus = (Image)temp.findComponentById(ResourceTable.Id_item_pro_plus); viewHolder.num = (Text) temp.findComponentById(ResourceTable.Id_item_pro_num); temp.setTag(viewHolder); } else { viewHolder = (ViewHolder) temp.getTag(); } viewHolder.image.setPixelMap(CommonUtils.getPixelMapFromPath(context, infoList.get(position).getImgUrl())); viewHolder.content.setText(infoList.get(position).getContent()); viewHolder.param.setText(infoList.get(position).getParam()); viewHolder.param2.setText(infoList.get(position).getParam2()); viewHolder.price.setText(infoList.get(position).getPrice()); viewHolder.discount.setText(infoList.get(position).getDiscount()); viewHolder.num.setText(infoList.get(position).getNum()); if (infoList.get(position).isSelect()) { viewHolder.imgSelect.setPixelMap(ResourceTable.Media_icon_select); } else { viewHolder.imgSelect.setPixelMap(ResourceTable.Media_icon_unselect); } initListener(viewHolder,position); return temp; } private void initListener(ViewHolder viewHolder,int pos) { if (viewHolder.imgSelect != null) { viewHolder.imgSelect.setClickedListener(v -> { if (infoList.get(pos).isSelect()) { viewHolder.imgSelect.setPixelMap(ResourceTable.Media_icon_unselect); infoList.get(pos).setSelect(false); ShoppingCartManage.myShoppingCart.get(pos).setSelect(false); } else { viewHolder.imgSelect.setPixelMap(ResourceTable.Media_icon_select); infoList.get(pos).setSelect(true); ShoppingCartManage.myShoppingCart.get(pos).setSelect(true); } listener.callBack(); }); } if(viewHolder.num == null) { return; } if (viewHolder.imgDec != null) { viewHolder.imgDec.setClickedListener(v -> { int num = Integer.parseInt(infoList.get(pos).getNum()); if (num <= 1) { return; } num--; infoList.get(pos).setNum(String.valueOf(num)); ShoppingCartManage.myShoppingCart.get(pos).setNum(String.valueOf(num)); viewHolder.num.setText(infoList.get(pos).getNum()); listener.callBack(); }); } if (viewHolder.imgPlus != null) { viewHolder.imgPlus.setClickedListener(v -> { int num = Integer.parseInt(infoList.get(pos).getNum()); num++; infoList.get(pos).setNum(String.valueOf(num)); ShoppingCartManage.myShoppingCart.get(pos).setNum(String.valueOf(num)); viewHolder.num.setText(infoList.get(pos).getNum()); listener.callBack(); }); } } /** * ViewHolder class */ private static class ViewHolder { Image image; Image imgSelect; Image imgPlus; Image imgDec; Text content; Text param; Text param2; Text price; Text discount; Text num; } }
pnlbwh/BRAINSTools
ARCHIVE/BRAINSSurfaceTools/BRAINSSurfaceStat/BRAINSSurfaceStat.cxx
<reponame>pnlbwh/BRAINSTools /*========================================================================= * * Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering * The University of Iowa * * 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.txt * * 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. * *=========================================================================*/ #include "BRAINSSurfaceStatCLP.h" #include <vtkPolyData.h> #include <vtkDenseArray.h> #include <vtkDoubleArray.h> #include <vtkIntArray.h> #include <vtkPoints.h> #include <vtkPointData.h> #include <vtkCellArray.h> #include <vtkFloatArray.h> #include "vtkSetGet.h" #include <vtkPolyDataWriter.h> #include <vtkPolyDataReader.h> #include "vtkFSSurfaceReader.h" #include "vtkFSSurfaceScalarReader.h" #include "vtksys/SystemTools.hxx" int main(int argc, char * argv[]) { PARSE_ARGS; BRAINSRegisterAlternateIO(); unsigned int numberOfPoints; vtkDenseArray<float> * vertexData = vtkDenseArray<float>::New(); for (size_t i = 0; i < inputSurfaces.size(); i++) { vtkPolyData * surface; std::string extension = vtksys::SystemTools::GetFilenameLastExtension(inputSurfaces[i]); vtkFloatArray * floatArray; if (extension == ".surf") { vtkFSSurfaceReader * freeSurferReader = vtkFSSurfaceReader::New(); freeSurferReader->SetFileName(inputSurfaces[i].c_str()); freeSurferReader->Update(); surface = freeSurferReader->GetOutput(); freeSurferReader->Delete(); std::string scalarFileName = vtksys::SystemTools::GetFilenameWithoutExtension(inputSurfaces[i]); if (freeSurferScalar == "Thickness") { scalarFileName += ".thickness"; } else if (freeSurferScalar == "Curvature") { scalarFileName += ".curv"; } else if (freeSurferScalar == "Average Curvature") { scalarFileName += ".avg_curv"; } else if (freeSurferScalar == "Sulcus") { scalarFileName += ".sulc"; } else if (freeSurferScalar == "Area") { scalarFileName += ".area"; } vtkFSSurfaceScalarReader * reader = vtkFSSurfaceScalarReader::New(); reader->SetFileName(scalarFileName.c_str()); floatArray = vtkFloatArray::New(); floatArray->SetName(freeSurferScalar.c_str()); reader->SetOutput(floatArray); if (reader->ReadFSScalars() == 0) { #vtkGenericDebugMacro("Read FreeSurfeer Scalars: error reading scalar overlay file " << scalarFileName.c_str()); reader->SetOutput(NULL); reader->Delete(); floatArray->Delete(); floatArray = NULL; return 1; } reader->SetOutput(NULL); reader->Delete(); } else if (extension == ".vtk") { vtkPolyDataReader * polyDataReader = vtkPolyDataReader::New(); polyDataReader->SetFileName(inputSurfaces[i].c_str()); polyDataReader->Update(); surface = polyDataReader->GetOutput(); polyDataReader->Delete(); floatArray = surface->GetPointData()->GetArray(scalarName.c_str()); } else { vtkXMLPolyDataReader * polyXMLDataReader = vtkXMLPolyDataReader::New() polyXMLDataReader->SetFileName(inputSurfaces[i].c_str()); polyXMLDataReader->Update(); surface = polyXMLDataReader->GetOutput(); polyXMLDataReader->Delete(); floatArray = surface->GetPointData()->GetArray(scalarName.c_str()); } if (i == 0) { numberOfPoints = surface->GetNumberOfPoints(); vertexData->Resize(inputSurfaces.size(), numberOfPoints); } else { if (numberOfPoints != surface->GetNumberOfPoints()) { std::cerr << "Error: Invalid number of points in " << inputSurfaces[i]; std::cerr << std::endl; std::cerr << " Expected " << numberOfPoints << "but found "; std::cerr << surface->GetNumberOfPoints(); << std::endl; return 1; } } /* Pack Data into an Array */ for (int j = 0; j < floatArray->GetNumberOfTuples(); j++) { vertexData->SetValue(i, j, floatArray->GetValue(j)); } } /* Will Need some modification */ vtkRCalculatorFilter * rcf = vtkRCalculatorFilter::New(); rcf->SetInput(mt2->GetOutput()); rcf->PutTable("x"); rcf->SetScriptFname(inputRscript.c_str()); rcf->GetTable("m"); rcf->GetOutput() return 0; }
mbatc/ctools
modules/platform/include/file/ctFilename.h
<filename>modules/platform/include/file/ctFilename.h // ----------------------------------------------------------------------------- // The MIT License // // Copyright(c) 2020 <NAME>, // // 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. // ----------------------------------------------------------------------------- #ifndef _atFilename_h__ #define _atFilename_h__ #include "ctString.h" #include "ctObjectDescriptor.h" class ctFilename { public: ctFilename(); ctFilename(const char *path); ctFilename(const ctString &path); ctFilename(const std::string &path); ctFilename(const ctFilename &copy); ctFilename(ctFilename &&move); ctString Path(const bool withExtension = true) const; ctString Name(const bool withExtension = true) const; const ctString& Extension() const; const ctString& Directory() const; const ctString& Drive() const; ctFilename ResolveFullPath() const; static ctFilename ResolveFullPath(const ctFilename &path); // Not Implemented! ctFilename ResolveRelativePath(const ctFilename &to) const; static ctFilename ResolveRelativePath(const ctFilename &to, const ctFilename &from); void assign(const ctString &path); const char* c_str() const; bool operator==(const ctFilename &fn) const; bool operator!=(const ctFilename &fn) const; bool operator==(const ctString &fn) const; bool operator!=(const ctString &fn) const; bool operator==(const char *fn) const; bool operator!=(const char *fn) const; ctFilename operator=(const ctFilename &fn); ctFilename operator=(const ctString &fn); ctFilename operator=(const char *fn); friend int64_t ctStreamRead(ctReadStream *pStream, ctFilename *pData, const int64_t count); friend int64_t ctStreamWrite(ctWriteStream *pStream, const ctFilename *pData, const int64_t count); friend bool ctSerialize(ctObjectDescriptor *pSerialized, const ctFilename &src); friend bool ctDeserialize(const ctObjectDescriptor &serialized, ctFilename *pDst); // Concatenate a filepath ctFilename operator/(const ctFilename &fn); protected: ctString m_fullpath; ctString m_name; ctString m_extension; ctString m_directory; ctString m_drive; }; template<> ctFilename ctFromString<ctFilename>(const ctString &str); #endif
juliansangillo/nbg-unity-sdk
docs/html/d0/de4/class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter.js
var class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter = [ [ "GetScenePathByBuildIndex", "d0/de4/class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter.html#a7df3438e687226adeb86c47d98d72fb7", null ] ];
tapted/luci-go
resultdb/cmd/recorder/create_test_exoneration_test.go
<filename>resultdb/cmd/recorder/create_test_exoneration_test.go<gh_stars>0 // Copyright 2019 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package main import ( "testing" "github.com/golang/protobuf/proto" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" "go.chromium.org/luci/common/clock/testclock" "go.chromium.org/luci/grpc/grpcutil" "go.chromium.org/luci/resultdb/internal/span" "go.chromium.org/luci/resultdb/internal/testutil" "go.chromium.org/luci/resultdb/pbutil" pb "go.chromium.org/luci/resultdb/proto/rpc/v1" . "github.com/smartystreets/goconvey/convey" . "go.chromium.org/luci/common/testing/assertions" ) func TestValidateCreateTestExonerationRequest(t *testing.T) { t.Parallel() Convey(`TestValidateCreateTestExonerationRequest`, t, func() { Convey(`Empty`, func() { err := validateCreateTestExonerationRequest(&pb.CreateTestExonerationRequest{}, true) So(err, ShouldErrLike, `invocation: unspecified`) }) Convey(`NUL in test path`, func() { err := validateCreateTestExonerationRequest(&pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "\x01", }, }, true) So(err, ShouldErrLike, "test_path: does not match") }) Convey(`Invalid variant`, func() { err := validateCreateTestExonerationRequest(&pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "a", Variant: pbutil.Variant("", ""), }, }, true) So(err, ShouldErrLike, `variant: "":"": key: does not match`) }) Convey(`Valid`, func() { err := validateCreateTestExonerationRequest(&pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "gn://ab/cd.ef", Variant: pbutil.Variant( "a/b", "1", "c", "2", ), }, }, true) So(err, ShouldBeNil) }) }) } func TestCreateTestExoneration(t *testing.T) { Convey(`TestCreateTestExoneration`, t, func() { ctx := testutil.SpannerTestContext(t) recorder := &recorderServer{} const token = "update token" ctx = metadata.NewIncomingContext(ctx, metadata.Pairs(updateTokenMetadataKey, token)) Convey(`Invalid request`, func() { req := &pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "\x01", }, } _, err := recorder.CreateTestExoneration(ctx, req) So(err, ShouldErrLike, `bad request: test_exoneration: test_path: does not match`) So(grpcutil.Code(err), ShouldEqual, codes.InvalidArgument) }) Convey(`No invocation`, func() { req := &pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "a", }, } _, err := recorder.CreateTestExoneration(ctx, req) So(err, ShouldErrLike, `"invocations/inv" not found`) So(grpcutil.Code(err), ShouldEqual, codes.NotFound) }) // Insert the invocation. testutil.MustApply(ctx, testutil.InsertInvocation("inv", pb.Invocation_ACTIVE, token, testclock.TestRecentTimeUTC)) e2eTest := func(withRequestID bool) { req := &pb.CreateTestExonerationRequest{ Invocation: "invocations/inv", TestExoneration: &pb.TestExoneration{ TestPath: "a", Variant: pbutil.Variant("a", "1", "b", "2"), }, } if withRequestID { req.RequestId = "request id" } res, err := recorder.CreateTestExoneration(ctx, req) So(err, ShouldBeNil) So(res.ExonerationId, ShouldStartWith, "6408fdc5c36df5df:") // hash of the variant if withRequestID { So(res.ExonerationId, ShouldEqual, "6408fdc5c36df5df:d:2960f0231ce23039cdf7d4a62e31939ecd897bbf465e0fb2d35bf425ae1c5ae14eb0714d6dd0a0c244eaa66ae2b645b0637f58e91ed1b820bb1f01d8d4a72e67") } expected := proto.Clone(req.TestExoneration).(*pb.TestExoneration) proto.Merge(expected, &pb.TestExoneration{ Name: pbutil.TestExonerationName("inv", "a", res.ExonerationId), ExonerationId: res.ExonerationId, }) So(res, ShouldResembleProto, expected) // Now check the database. row, err := span.ReadTestExonerationFull(ctx, span.Client(ctx).Single(), res.Name) So(err, ShouldBeNil) So(row.Variant, ShouldResembleProto, expected.Variant) So(row.ExplanationMarkdown, ShouldEqual, expected.ExplanationMarkdown) // Check variant hash. key := span.InvocationID("inv").Key(res.TestPath, res.ExonerationId) var variantHash string testutil.MustReadRow(ctx, "TestExonerations", key, map[string]interface{}{ "VariantHash": &variantHash, }) So(variantHash, ShouldEqual, pbutil.VariantHash(res.Variant)) if withRequestID { // Test idempotency. res2, err := recorder.CreateTestExoneration(ctx, req) So(err, ShouldBeNil) So(res2, ShouldResembleProto, res) } } Convey(`Without request id, e2e`, func() { e2eTest(false) }) Convey(`With request id, e2e`, func() { e2eTest(true) }) }) }
icyphox/x
cloudx/http_client.go
<reponame>icyphox/x package cloudx import ( "net/http" "time" ) type tokenTransporter struct { http.RoundTripper token string } func (t *tokenTransporter) RoundTrip(req *http.Request) (*http.Response, error) { if t.token != "" { req.Header.Set("Authorization", "Bearer "+t.token) } return t.RoundTripper.RoundTrip(req) } func NewCloudHTTPClient(token string) *http.Client { return &http.Client{ Transport: &tokenTransporter{ RoundTripper: http.DefaultTransport, token: token, }, Timeout: time.Second * 30, } }
tudorv91/SparkJNI
core/src/main/java/sparkjni/utils/cpp/methods/EmptyCppConstructor.java
<reponame>tudorv91/SparkJNI /** * Copyright 2016 <NAME> and <NAME>, TUDelft * * 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 sparkjni.utils.cpp.methods; import sparkjni.dataLink.CppBean; import sparkjni.utils.CppSyntax; /** * Created by Tudor on 8/16/16. */ public class EmptyCppConstructor extends NativeMethod{ public EmptyCppConstructor(CppBean cppBean) { super(cppBean); } public EmptyCppConstructor() { } public String generateNonArgConstructorPrototype(){ return String.format(CppSyntax.CONSTRUCTOR_WITH_NATIVE_ARGS_PROTOTYPE_STR, ownerClass.getCppClassName(), ""); } public String generateNonArgConstructorImpl(){ return String.format(CppSyntax.CONSTRUCTOR_WITH_NATIVE_ARGS_IMPL_STR, ownerClassName, ownerClassName, "", CppSyntax.JNI_REF_ASSIGN_NULL); } }
Unkorunk/android-multiplayer-game
network/src/ru/timelimit/network/ConnectResponse.java
<filename>network/src/ru/timelimit/network/ConnectResponse.java package ru.timelimit.network; public class ConnectResponse extends Response { public String accessToken; }
zhipengzhaocmu/fpga2022_artifact
pigasus/software/src/stream/libtcp/tcp_segment_descriptor.h
<gh_stars>0 //-------------------------------------------------------------------------- // Copyright (C) 2015-2018 Cisco and/or its affiliates. All rights reserved. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License Version 2 as published // by the Free Software Foundation. You may not use, modify or distribute // this program under any other version of the GNU General Public License. // // 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. //-------------------------------------------------------------------------- // tcp_segment_descriptor.h author <NAME> <<EMAIL>> // Created on: Jul 30, 2015 #ifndef TCP_SEGMENT_DESCRIPTOR_H #define TCP_SEGMENT_DESCRIPTOR_H #include "flow/flow.h" #include "protocols/packet.h" #include "protocols/tcp.h" #include "stream/tcp/tcp_event_logger.h" class TcpSegmentDescriptor { public: TcpSegmentDescriptor(snort::Flow*, snort::Packet*, TcpEventLogger&); virtual ~TcpSegmentDescriptor() = default; uint32_t init_mss(uint16_t* value); uint32_t init_wscale(uint16_t* value); bool has_wscale(); snort::Flow* get_flow() const { return flow; } snort::Packet* get_pkt() const { return pkt; } const snort::tcp::TCPHdr* get_tcph() const { return tcph; } void set_seg_seq(uint32_t seq) { this->seg_seq = seq; } void update_seg_seq(int32_t offset) { seg_seq += offset; } uint32_t get_seg_seq() const { return seg_seq; } uint32_t get_seg_ack() const { return seg_ack; } void set_end_seq(uint32_t end_seq) { this->end_seq = end_seq; } uint32_t get_end_seq() const { return end_seq; } void set_ts(uint32_t ts) { this->ts = ts; } uint32_t get_ts() const { return ts; } void scale_seg_wnd(uint16_t wscale) { this->seg_wnd <<= wscale; } uint32_t get_seg_wnd() const { return seg_wnd; } uint16_t get_dst_port() const { return dst_port; } uint16_t get_src_port() const { return src_port; } uint8_t get_direction() const { return flow->ssn_state.direction; } uint16_t get_seg_len() const { return pkt->dsize; } void set_seg_len(uint16_t seg_len) { pkt->dsize = seg_len; } void update_seg_len(int32_t offset) { pkt->dsize += offset; } bool is_packet_from_server() { return pkt->is_from_server(); } void slide_segment_in_rcv_window(int32_t offset) { seg_seq += offset; pkt->data += offset; pkt->dsize -= offset; } private: snort::Flow* flow; snort::Packet* pkt; const snort::tcp::TCPHdr* tcph; uint16_t src_port; uint16_t dst_port; uint32_t seg_seq; uint32_t seg_ack; uint32_t seg_wnd; uint32_t end_seq; uint32_t ts; }; #endif
meandmax/flow-typed
definitions/npm/http-codes_v1.x.x/test_http-codes_v1.x.x.js
<filename>definitions/npm/http-codes_v1.x.x/test_http-codes_v1.x.x.js import HttpCodes from 'http-codes'; (HttpCodes.IM_A_TEAPOT: 418) // $FlowExpectedError const x: 500 = HttpCodes.NOT_FOUND;
j-channings/rust-bindgen
tests/headers/whitelisted-item-references-no-partialeq.hpp
<filename>tests/headers/whitelisted-item-references-no-partialeq.hpp // bindgen-flags: --with-derive-partialeq --whitelist-type "WhitelistMe" --no-partialeq "NoPartialEq" struct NoPartialEq {}; class WhitelistMe { NoPartialEq a; };
golem131/akka
akka-docs/rst/common/code/docs/circuitbreaker/CircuitBreakerDocSpec.scala
<filename>akka-docs/rst/common/code/docs/circuitbreaker/CircuitBreakerDocSpec.scala /** * Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> */ package docs.circuitbreaker //#imports1 import scala.concurrent.duration._ import akka.pattern.CircuitBreaker import akka.pattern.pipe import akka.actor.{ Actor, ActorLogging, ActorRef } import scala.concurrent.Future //#imports1 class CircuitBreakerDocSpec {} //#circuit-breaker-initialization class DangerousActor extends Actor with ActorLogging { import context.dispatcher val breaker = new CircuitBreaker( context.system.scheduler, maxFailures = 5, callTimeout = 10.seconds, resetTimeout = 1.minute).onOpen(notifyMeOnOpen()) def notifyMeOnOpen(): Unit = log.warning("My CircuitBreaker is now open, and will not close for one minute") //#circuit-breaker-initialization //#circuit-breaker-usage def dangerousCall: String = "This really isn't that dangerous of a call after all" def receive = { case "is my middle name" => breaker.withCircuitBreaker(Future(dangerousCall)) pipeTo sender() case "block for me" => sender() ! breaker.withSyncCircuitBreaker(dangerousCall) } //#circuit-breaker-usage } class TellPatternActor(recipient: ActorRef) extends Actor with ActorLogging { import context.dispatcher val breaker = new CircuitBreaker( context.system.scheduler, maxFailures = 5, callTimeout = 10.seconds, resetTimeout = 1.minute).onOpen(notifyMeOnOpen()) def notifyMeOnOpen(): Unit = log.warning("My CircuitBreaker is now open, and will not close for one minute") //#circuit-breaker-tell-pattern import akka.actor.ReceiveTimeout def receive = { case "call" if breaker.isClosed => { recipient ! "message" } case "response" => { breaker.succeed() } case err: Throwable => { breaker.fail() } case ReceiveTimeout => { breaker.fail() } } //#circuit-breaker-tell-pattern }
dariol83/reatmetric
eu.dariolucia.reatmetric.processing/src/main/java/eu/dariolucia/reatmetric/processing/definition/ParameterSetterDefinition.java
<filename>eu.dariolucia.reatmetric.processing/src/main/java/eu/dariolucia/reatmetric/processing/definition/ParameterSetterDefinition.java<gh_stars>10-100 /* * Copyright (c) 2020 <NAME> (https://www.dariolucia.eu) * * 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 eu.dariolucia.reatmetric.processing.definition; import javax.xml.bind.annotation.*; import java.io.Serializable; import java.util.LinkedList; import java.util.List; @XmlAccessorType(XmlAccessType.FIELD) public class ParameterSetterDefinition implements Serializable { @XmlIDREF @XmlAttribute(name="activity", required = true) private ActivityProcessingDefinition activity; @XmlAttribute(name="set_argument", required = true) private String setArgument; /** * The decalibration converts the setter engineering value into the corresponding raw value. If no * decalibration is specified, then the engineering value is provided as-is to the activity corresponding argument * in engineering value format. */ @XmlElements({ @XmlElement(name="decalib_xy",type=XYCalibration.class), @XmlElement(name="decalib_poly",type=PolyCalibration.class), @XmlElement(name="decalib_log",type=LogCalibration.class), @XmlElement(name="decalib_enum",type=EnumCalibration.class), @XmlElement(name="decalib_range_enum",type=RangeEnumCalibration.class), @XmlElement(name="decalib_ienum",type=InvertedEnumCalibration.class), @XmlElement(name="decalib_expression",type=ExpressionCalibration.class), @XmlElement(name="decalib_external",type=ExternalCalibration.class), }) private CalibrationDefinition decalibration; @XmlElements({ @XmlElement(name="fixed_argument",type= PlainArgumentInvocationDefinition.class), @XmlElement(name="fixed_array",type= ArrayArgumentInvocationDefinition.class) }) private List<AbstractArgumentInvocationDefinition> arguments = new LinkedList<>(); @XmlElement(name = "property") private List<KeyValue> properties = new LinkedList<>(); public String getSetArgument() { return setArgument; } public void setSetArgument(String setArgument) { this.setArgument = setArgument; } public ActivityProcessingDefinition getActivity() { return activity; } public void setActivity(ActivityProcessingDefinition activity) { this.activity = activity; } public List<AbstractArgumentInvocationDefinition> getArguments() { return arguments; } public void setArguments(List<AbstractArgumentInvocationDefinition> arguments) { this.arguments = arguments; } public List<KeyValue> getProperties() { return properties; } public void setProperties(List<KeyValue> properties) { this.properties = properties; } public CalibrationDefinition getDecalibration() { return decalibration; } public void setDecalibration(CalibrationDefinition decalibration) { this.decalibration = decalibration; } }
dinolinjob/opencollective-frontend
styleguide/mocks/payout-methods.js
export const payoutMethodPaypal = { id: '4a5af568-5232-11ea-8d77-2e728ce88125', type: 'PAYPAL', data: { email: '<EMAIL>', }, }; export const payoutMethodOther = { id: 'cab7f950-5231-11ea-8d77-2e728ce88125', type: 'OTHER', data: { content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Recte dicis; Ea possunt paria non esse.', }, };
JuGoo/android-library
urbanairship-core/src/test/java/com/urbanairship/UrbanAirshipProviderTest.java
/* Copyright Airship and Contributors */ package com.urbanairship; import android.content.ContentResolver; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import org.junit.Before; import org.junit.Test; import org.robolectric.RuntimeEnvironment; import org.robolectric.annotation.Config; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertNull; public class UrbanAirshipProviderTest extends BaseTestCase { private ContentResolver resolver; private Uri preferenceUri; private Uri richPushUri; @Before public void setup() { resolver = RuntimeEnvironment.application.getContentResolver(); preferenceUri = UrbanAirshipProvider.getPreferencesContentUri(TestApplication.getApplication()); richPushUri = UrbanAirshipProvider.getRichPushContentUri(TestApplication.getApplication()); } @Test @Config(shadows = { CustomShadowContentResolver.class }) public void testGetType() { Uri messagesUri = this.richPushUri; assertEquals(UrbanAirshipProvider.RICH_PUSH_CONTENT_TYPE, this.resolver.getType(messagesUri)); Uri messageUri = Uri.withAppendedPath(this.richPushUri, "this.should.work"); assertEquals(UrbanAirshipProvider.RICH_PUSH_CONTENT_ITEM_TYPE, this.resolver.getType(messageUri)); Uri failureUri = Uri.parse("content://com.urbanairship/garbage"); assertNull(this.resolver.getType(failureUri)); } @Test public void testInsertRow() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); Uri newUri = this.resolver.insert(this.preferenceUri, values); assertFalse(this.preferenceUri.equals(newUri)); Cursor cursor = this.resolver.query(newUri, null, null, null, null); assertEquals(1, cursor.getCount()); cursor.moveToFirst(); assertEquals("key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.close(); } @Test public void testReplaceRow() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); Uri newUri = this.resolver.insert(this.preferenceUri, values); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "new value"); Uri replaceUri = this.resolver.insert(this.preferenceUri, values); assertEquals(newUri, replaceUri); Cursor cursor = this.resolver.query(replaceUri, null, null, null, null); assertEquals(1, cursor.getCount()); cursor.moveToFirst(); assertEquals("key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("new value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.close(); } @Test public void testUpdateAllData() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); resolver.insert(this.preferenceUri, values); ContentValues anotherValue = new ContentValues(); anotherValue.put(PreferencesDataManager.COLUMN_NAME_KEY, "another key"); anotherValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "another value"); resolver.insert(this.preferenceUri, anotherValue); ContentValues updateValue = new ContentValues(); updateValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "new value"); int updated = this.resolver.update(this.preferenceUri, updateValue, null, null); assertEquals(2, updated); Cursor cursor = resolver.query(this.preferenceUri, null, null, null, null); assertEquals(2, cursor.getCount()); cursor.moveToFirst(); assertEquals("key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("new value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.moveToLast(); assertEquals("another key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("new value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.close(); } @Test public void testUpdateSomeData() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); resolver.insert(this.preferenceUri, values); ContentValues anotherValue = new ContentValues(); anotherValue.put(PreferencesDataManager.COLUMN_NAME_KEY, "another key"); anotherValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "another value"); resolver.insert(this.preferenceUri, anotherValue); // Update the "another key" value ContentValues updateValue = new ContentValues(); updateValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "new value"); int updated = this.resolver.update(this.preferenceUri, updateValue, PreferencesDataManager.COLUMN_NAME_KEY + " IN (?)", new String[] { "another key" }); assertEquals(1, updated); Cursor cursor = resolver.query(this.preferenceUri, null, null, null, null); assertEquals(2, cursor.getCount()); cursor.moveToFirst(); assertEquals("key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.moveToLast(); assertEquals("another key", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY))); assertEquals("new value", cursor.getString(cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE))); cursor.close(); } @Test public void testDeleteAllData() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); resolver.insert(this.preferenceUri, values); ContentValues anotherValue = new ContentValues(); anotherValue.put(PreferencesDataManager.COLUMN_NAME_KEY, "another key"); anotherValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "another value"); resolver.insert(this.preferenceUri, anotherValue); int deleted = this.resolver.delete(this.preferenceUri, null, null); assertEquals(2, deleted); } @Test public void testDeleteSomeData() { ContentValues values = new ContentValues(); values.put(PreferencesDataManager.COLUMN_NAME_KEY, "key"); values.put(PreferencesDataManager.COLUMN_NAME_VALUE, "value"); resolver.insert(this.preferenceUri, values); ContentValues anotherValue = new ContentValues(); anotherValue.put(PreferencesDataManager.COLUMN_NAME_KEY, "another key"); anotherValue.put(PreferencesDataManager.COLUMN_NAME_VALUE, "another value"); resolver.insert(this.preferenceUri, anotherValue); int deleted = this.resolver.delete(this.preferenceUri, PreferencesDataManager.COLUMN_NAME_KEY + " IN (?)", new String[] { "another key" }); assertEquals(1, deleted); } }
eaglezzb/rsdc
Sankore-3.1/src/domain/UBItem.h
<filename>Sankore-3.1/src/domain/UBItem.h /* * Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA) * * This file is part of Open-Sankoré. * * Open-Sankoré 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, version 3 of the License, * with a specific linking exception for the OpenSSL project's * "OpenSSL" library (or with modified versions of it that use the * same license as the "OpenSSL" library). * * Open-Sankoré 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 Open-Sankoré. If not, see <http://www.gnu.org/licenses/>. */ #ifndef UBITEM_H #define UBITEM_H #include <QtGui> #include "domain/UBGraphicsItemDelegate.h" #include "core/UB.h" class UBGraphicsScene; class UBGraphicsItem; class UBItem { protected: UBItem(); public: virtual ~UBItem(); enum RenderingQuality { RenderingQualityNormal = 0, RenderingQualityHigh }; virtual QUuid uuid() const { return mUuid; } virtual void setUuid(const QUuid& pUuid) { mUuid = pUuid; } virtual RenderingQuality renderingQuality() const { return mRenderingQuality; } virtual void setRenderingQuality(RenderingQuality pRenderingQuality) { mRenderingQuality = pRenderingQuality; } virtual UBItem* deepCopy() const = 0; virtual void copyItemParameters(UBItem *copy) const = 0; virtual UBGraphicsScene* scene() // TODO UB 4.x should be pure virtual ... { return 0; } virtual QUrl sourceUrl() const { return mSourceUrl; } virtual void setSourceUrl(const QUrl& pSourceUrl) { mSourceUrl = pSourceUrl; } protected: QUuid mUuid; RenderingQuality mRenderingQuality; QUrl mSourceUrl; }; class UBGraphicsItem { protected: UBGraphicsItem() : mDelegate(NULL) { // NOOP } virtual ~UBGraphicsItem(); void setDelegate(UBGraphicsItemDelegate* mDelegate); public: virtual int type() const = 0; inline UBGraphicsItemDelegate *Delegate() const { return mDelegate; } static void assignZValue(QGraphicsItem*, qreal value); static bool isRotatable(QGraphicsItem *item); static bool isFlippable(QGraphicsItem *item); static bool isLocked(QGraphicsItem *item); static QUuid getOwnUuid(QGraphicsItem *item); static qreal getOwnZValue(QGraphicsItem *item); static UBGraphicsItemDelegate *Delegate(QGraphicsItem *pItem); void remove(bool canUndo = true); virtual void clearSource(){} private: UBGraphicsItemDelegate* mDelegate; }; #endif // UBITEM_H
rajvijen/Industry-Visit-Planning-and-Booking
searchBar/chat/consumers.py
<reponame>rajvijen/Industry-Visit-Planning-and-Booking<gh_stars>0 from django.conf import settings # from datetime import datetime from channels.generic.websocket import AsyncJsonWebsocketConsumer # from django.contrib.auth.models import User from .exceptions import ClientError from .utils import get_room_or_error # from .models import Room, Chat # from django.core import serializers //Not cosodering # from django.forms.models import model_to_dict class ChatConsumer(AsyncJsonWebsocketConsumer): """ This chat consumer handles websocket connections for chat clients. It uses AsyncJsonWebsocketConsumer, which means all the handling functions must be async functions, and any sync work (like ORM access) has to be behind database_sync_to_async or sync_to_async. For more, read http://channels.readthedocs.io/en/latest/topics/consumers.html """ ##### WebSocket event handlers async def connect(self): """ Called when the websocket is handshaking as part of initial connection. """ # Are they logged in? if self.scope["user"].is_anonymous: # Reject the connection await self.close() else: # Accept the connection await self.accept() # Store which rooms the user has joined on this connection self.rooms = set() async def receive_json(self, content): """ Called when we get a text frame. Channels will JSON-decode the payload for us and pass it as the first argument. """ # Messages will have a "command" key we can switch on command = content.get("command", None) try: if command == "join": # Make them join the room await self.join_room(content["room"]) elif command == "leave": # Leave the room await self.leave_room(content["room"]) elif command == "send": await self.send_room(content["room"], content["message"]) except ClientError as e: # Catch any errors and send it back await self.send_json({"error": e.code}) async def disconnect(self, code): """ Called when the WebSocket closes for any reason. """ # Leave all the rooms we are still in for room_id in list(self.rooms): try: await self.leave_room(room_id) except ClientError: pass ##### Command helper methods called by receive_json async def join_room(self, room_id): """ Called by receive_json when someone sent a join command. """ # The logged-in user is in our scope thanks to the authentication ASGI middleware room = await get_room_or_error(room_id, self.scope["user"]) # Send a join message if it's turned on if settings.NOTIFY_USERS_ON_ENTER_OR_LEAVE_ROOMS: await self.channel_layer.group_send( room.group_name, { "type": "chat.join", "room_id": room_id, "username": self.scope["user"].username, } ) # Store that we're in the room self.rooms.add(room_id) # Add them to the group so they get room messages await self.channel_layer.group_add( room.group_name, self.channel_name, ) # Instruct their client to finish opening the room await self.send_json({ "join": str(room.id), "title": room.title, }) async def leave_room(self, room_id): """ Called by receive_json when someone sent a leave command. """ # The logged-in user is in our scope thanks to the authentication ASGI middleware room = await get_room_or_error(room_id, self.scope["user"]) # Send a leave message if it's turned on if settings.NOTIFY_USERS_ON_ENTER_OR_LEAVE_ROOMS: await self.channel_layer.group_send( room.group_name, { "type": "chat.leave", "room_id": room_id, "username": self.scope["user"].username, } ) # Remove that we're in the room self.rooms.discard(room_id) # Remove them from the group so they no longer get room messages await self.channel_layer.group_discard( room.group_name, self.channel_name, ) # Instruct their client to finish closing the room await self.send_json({ "leave": str(room.id), }) async def send_room(self, room_id, message): """ Called by receive_json when someone sends a message to a room. """ # Check they are in this room if room_id not in self.rooms: raise ClientError("ROOM_ACCESS_DENIED") # Get the room and send to the group about it room = await get_room_or_error(room_id, self.scope["user"]) # # Adding chat to databases # Chat.objects.create(user = User.objects.get(username = str(self.scope["user"] .username)), # group = Room.objects.get(id = room_id), //No need 4 one2many # body = str(message), time = datetime.now()) await self.channel_layer.group_send( room.group_name, { "type": "chat.message", "room_id": room_id, "username": self.scope["user"].username, "message": message, } ) # async def load_chat(self,room_id): # """ # Called by join_room when someone joins a room, to load previous chats. # """ # chat_list = Chat.objects.filter(group = Room.objects.get(id = room_id)) # for obj in chat_list: # dict_obj = model_to_dict(obj) # me = 0; # if(str(User.objects.get(id = dict_obj['user']).username) == str(self.scope ["user"])): # me=1; # await self.send_json( # { # "msg_type": settings.MSG_TYPE_MESSAGE, # "room": dict_obj['group'], # "username": str(User.objects.get(id = dict_obj['user']).username), # "message": dict_obj['body'], # "me" : me, # }, # ) ##### Handlers for messages sent over the channel layer # These helper methods are named by the types we send - so chat.join becomes chat_join async def chat_join(self, event): """ Called when someone has joined our chat. """ # Send a message down to the client await self.send_json( { "msg_type": settings.MSG_TYPE_ENTER, "room": event["room_id"], "username": event["username"], }, ) async def chat_leave(self, event): """ Called when someone has left our chat. """ # Send a message down to the client await self.send_json( { "msg_type": settings.MSG_TYPE_LEAVE, "room": event["room_id"], "username": event["username"], }, ) async def chat_message(self, event): """ Called when someone has messaged our chat. """ # Send a message down to the client await self.send_json( { "msg_type": settings.MSG_TYPE_MESSAGE, "room": event["room_id"], "username": event["username"], "message": event["message"], }, )
0sidamingbu0/node
src/main/java/com/mydreamplus/smartdevice/service/WebSocketService.java
<reponame>0sidamingbu0/node package com.mydreamplus.smartdevice.service; import com.mydreamplus.smartdevice.domain.EventLog; import com.mydreamplus.smartdevice.domain.PingDto; import com.mydreamplus.smartdevice.domain.message.Greeting; import com.mydreamplus.smartdevice.util.JsonUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.messaging.core.MessageSendingOperations; import org.springframework.stereotype.Service; /** * Created with IntelliJ IDEA. * User: liji * Date: 16/7/18 * Time: 下午7:44 * To change this template use File | Settings | File Templates. */ @Service public class WebSocketService { @Autowired private MessageSendingOperations<String> messageTemplate; /** * Send message. * * @param message the message */ public void sendMessage(String message) { messageTemplate.convertAndSend("/topic/greetings", new Greeting(message)); } /** * Send message. * * @param eventLog the evnet log */ public void sendMessage(EventLog eventLog){ String logs = JsonUtil.toJsonString(eventLog); messageTemplate.convertAndSend("/topic/greetings", new Greeting(logs)); } /** * Send ping message. * 发送PING 结果到UI * * @param pingDto the ping dto */ public void sendPingMessage(PingDto pingDto) { messageTemplate.convertAndSend("/topic/ping", pingDto); } }
cnds/wxdemo
authorization/apps/base.py
<reponame>cnds/wxdemo<filename>authorization/apps/base.py from flask.views import MethodView from jybase import RedisBase from jybase.utils import UtilBase, RequestEndpoint from config import config class BaseHandler(MethodView, UtilBase): def __init__(self): super(BaseHandler, self).__init__() self.redis = RedisBase(config) self.endpoint = RequestEndpoint(config).endpoint
spittfree/camel
components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelHealthCheckIndicator.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.camel.spring.boot.actuate.health; import java.util.Collection; import java.util.List; import org.apache.camel.CamelContext; import org.apache.camel.health.HealthCheck; import org.apache.camel.health.HealthCheckFilter; import org.apache.camel.health.HealthCheckHelper; import org.springframework.boot.actuate.health.AbstractHealthIndicator; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; /** * Camel {@link org.apache.camel.health.HealthCheck} {@link HealthIndicator}. */ public class CamelHealthCheckIndicator extends AbstractHealthIndicator { private final CamelContext camelContext; private final List<HealthCheckFilter> filters; public CamelHealthCheckIndicator(CamelContext camelContext, List<HealthCheckFilter> filters) { this.camelContext = camelContext; this.filters = filters; } @Override protected void doHealthCheck(Health.Builder builder) throws Exception { // By default the status is unknown. builder.unknown(); if (camelContext != null) { Collection<HealthCheck.Result> results = HealthCheckHelper.invoke( camelContext, (HealthCheck check) -> filters.stream().anyMatch(p -> p.test(check)) ); if (!results.isEmpty()) { // assuming the status is up unless a specific check is failing // which is determined later. builder.up(); } for (HealthCheck.Result result: results) { builder.withDetail(result.getCheck().getId(), result.getState().name()); if (result.getState() == HealthCheck.State.DOWN) { builder.down(); } } } } }
srcarter3/awips2
cave/com.raytheon.viz.gfe/python/autotest/RoutineLevel3_2_TestScript.py
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non-U.S. persons whether in the United States or abroad requires # an export license or other authorization. # # Contractor Name: <NAME> # Contractor Address: 6825 Pine Street, Suite 340 # Mail Stop B8 # Omaha, NE 68106 # 402.291.0100 # # See the AWIPS II Master Rights File ("Master Rights File.pdf") for # further licensing information. ## # ---------------------------------------------------------------------------- # This software is in the public domain, furnished "as is", without technical # support, and with no warranty, express or implied, as to its usefulness for # any purpose. # # Phrase Tests for Sky, PoP, Weather words # # Author: # ---------------------------------------------------------------------------- # First run setupTextEA # Runs Phrase_Test_Local for each test scripts = [ { "name": "E1", "commentary": "PoP 0%, Sky 10%, NoWx", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 0, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 10, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "NoWx", "all"), ], "checkStrings": [ "Sunny" ], }, { "name": "E2", "commentary": "PoP 50%, Sky 70%, Sct RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 70, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Sct:RW:-:<NoVis>:", "all"), ], "checkStrings": [ ("Mostly cloudy with scattered rain showers", "Mostly cloudy with scattered showers"), "Chance of showers 50 percent", ], }, { "name": "E3", "commentary": "PoP 50%, Sky 80%, SChc RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "SChc:RW:-:<NoVis>:", "all"), ], "checkStrings": [ ("Mostly cloudy with a 20 percent chance of rain showers", "Mostly cloudy with a 20 percent chance of showers"), ], }, { "name": "E4", "commentary": "PoP 50%, Sky 80%, SChc RW-, Patchy F", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "SChc:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ ("Mostly cloudy with a 20 percent chance of rain showers", "Mostly cloudy with a 20 percent chance of showers"), "Patchy fog", ], }, { "name": "E5", "commentary": "PoP 0->20%, Sky 100->100%, NoWx -> SChc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 100, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "NoWx", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 20, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 100, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "SChc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "A 20 percent chance of thunderstorms in the afternoon", ], }, { "name": "E6", "commentary": "PoP 50->50%, Sky 90->80%, SChc RW- Patchy F --> SChc RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 90, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "SChc:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Patchy fog in the morning", ("Mostly cloudy with a 20 percent chance of rain showers", "Mostly cloudy with a 20 percent chance of showers"), ], }, { "name": "E7", "commentary": "PoP 50->50%, Sky 70->80%, SChc RW- Patchy F --> SChc RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 70, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Sct:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Sct:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Patchy fog in the morning", ("Mostly cloudy with scattered rain showers","Mostly cloudy with scattered showers"), "Chance of showers 50 percent", ], }, { "name": "E8", "commentary": "PoP 50%, Sky 80%, Sct RW-, Patchy F", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Sct:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ ("Mostly cloudy with scattered rain showers", "Mostly cloudy with scattered showers"), "Patchy fog", "Chance of showers 50 percent", ], }, { "name": "E9", "commentary": "PoP 50->50%, Sky 100->70%, SChc RW- Patchy F --> Wide S-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 100, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 70, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Wide:S:-:<NoVis>:", "all"), ], "checkStrings": [ "Mostly cloudy", "Patchy fog in the morning", ("Slight chance of showers in the morning, then widespread show in the afternoon", "Slight chance of rain showers in the morning, then widespread snow in the afternoon"), "Chance of precipitation 50 percent", ], }, { "name": "E10", "commentary": "PoP 50->50%, Sky 100->70%, SChc RW- Patchy F --> Chc S-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 100, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 70, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:S:-:<NoVis>:", "all"), ], "checkStrings": [ "Mostly cloudy", "Patchy fog in the morning", ("Slight chance of showers in the morning, then chance of snow in the afternoon", "Slight chance of rain showers in the morning, then chance of snow in the afternoon"), "Chance of precipitation 50 percent", ], }, { "name": "E11", "commentary": "PoP 50->50->50%, Sky 20->80->60%, SChc RW- -> SChc S- -> Chc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 20, "all"), ("Fcst", "Wx", "WEATHER", 0, 3,"SChc:RW:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 80, "all"), ("Fcst", "Wx", "WEATHER", 3, 6,"SChc:S:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 60, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Sunny early in the morning then becoming mostly cloudy", ("Slight chance of showers early in the morning, then slight chance of snow late in the morning", "Slight chance of rain showers early in the morning, then slight chance of snow late in the morning"), "Chance of thunderstorms in the afternoon", "Chance of precipitation 50 percent", ], }, { "name": "E12", "commentary": "PoP 50->50->50%, Sky 70->80->70%, SChc RW- Patchy F --> SChc S- --> Chc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 70, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "SChc:RW:-:<NoVis>:^Patchy:F:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 80, "all"), ("Fcst", "Wx", "WEATHER", 3, 6,"SChc:S:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 70, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Mostly cloudy", "Patchy fog early in the morning", ("Slight chance of showers early in the morning, then slight chance of snow late in the morning", "Slight chance of rain showers early in the morning, then slight chance of snow late in the morning"), "Chance of thunderstorms in the afternoon", "Chance of precipitation 50 percent", ], }, { # if T thru-out: # if T+ thru-out: # no TD (E13.2) # else: # need TD (E13.1) # elif T+ timeRange == T timeRange: # no TD (E13) # else: # need TD (E13.3) "name": "E13", "commentary": """ T not throughout -- T+ timeRange == T timeRange -> No Time Descriptor on severeWeather_phrase """, "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Wide:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:+:<NoVis>:^Wide:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "Widespread rain in the morning, then widespread rain and chance of thunderstorms in the afternoon", "Some thunderstorms may be severe", "Chance of precipitation 50 percent", ], }, { "name": "E13.1", "commentary": """ T throughout -- severe T not throughout -> Time Descriptor on severeWeather_phrase """, "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:<NoInten>:<NoVis>:^Wide:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:+:<NoVis>:^Wide:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with widespread rain and chance of thunderstorms", "Some thunderstorms may be severe in the afternoon", "Chance of precipitation 50 percent", ], }, { "name": "E13.2", "commentary": """ T throughout -- severe T throughout -> No Time Descriptor on severeWeather_phrase """, "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:+:<NoVis>:^Wide:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:+:<NoVis>:^Wide:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with widespread rain and chance of thunderstorms", "Some thunderstorms may be severe", "Chance of precipitation 50 percent", ], }, { "name": "E13.3", "commentary": """ T not throughout -- severe T does not match T -> Time Descriptor on severeWeather_phrase """, "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "NoWx", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 9, "Sct:T:<NoInten>:<NoVis>:", "all"), ("Fcst", "Wx", "WEATHER", 9, 12, "Sct:T:+:<NoVis>:", "all"), ], "checkStrings": [ "Scattered thunderstorms in the afternoon", "Some thunderstorms may be severe late in the afternoon", ], }, { "name": "E14", "commentary": "PoP 50->50%, Sky 95->95%, Chc T Chc RW- --> Chc T+ Chc RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:<NoInten>:<NoVis>:^Chc:RW:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:+:<NoVis>:^Chc:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with a 50 percent chance of thunderstorms", "Some thunderstorms may be severe in the afternoon", ], }, # E15 skipped { "name": "E16", "commentary": "PoP 50%, Sky 95%, Wide S- Chc ZR- Chc IP-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Wide:S:-:<NoVis>:^Chc:ZR:-:<NoVis>:^Chc:IP:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with widespread snow, chance of light freezing rain and light sleet", ], }, { "name": "E17", "commentary": "PoP 50%, Sky 95%, Wide S- Chc ZR- SChc IP- --> Lkly S- Chc IP- --> Chc R-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Wide:S:-:<NoVis>:^Chc:ZR:-:<NoVis>:^SChc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Lkly:S:-:<NoVis>:^Chc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Widespread snow with possible freezing rain and sleet early in the morning, then snow likely and chance of light sleet late in the morning", "Chance of rain in the afternoon", ], }, { "name": "E18", "commentary": "PoP 50%, Sky 95%, Wide S- Ocnl ZR- Wide IP- --> Lkly S- Chc IP- --> Chc R-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Wide:S:-:<NoVis>:^Ocnl:ZR:-:<NoVis>:^Wide:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Lkly:S:-:<NoVis>:^Chc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Widespread snow, light sleet and occasional light freezing rain early in the morning, then snow likely and chance of light sleet late in the morning", "Chance of rain in the afternoon", ], }, { "name": "E19", "commentary": "PoP 50%, Sky 95%, Lkly S- Chc IP- -> Lkly R-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Lkly:S:-:<NoVis>:^Chc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 12, "Lkly:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Snow likely and chance of light sleet early in the morning, then rain likely in the late morning and afternoon", ], }, { "name": "E17", "commentary": "PoP 50%, Sky 95%, Wide S+ -> Lkly S- Chc ZR- SChc IP- -> Chc R- -> SChc TRW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Wide:S:+:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Lkly:S:-:<NoVis>:^Chc:ZR:-:<NoVis>:^SChc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 9, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 9, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 9, "Chc:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 9, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 9, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 9, 12, "SChc:T:<NoInten>:<NoVis>:^SChc:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Widespread snow with possible freezing rain and sleet in the morning, then chance of rain and slight chance of thunderstorms in the afternoon", ], }, { "name": "E21", "commentary": "PoP 50%, Sky 95%, Ocnl RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Lkly:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "NoWx", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Ocnl:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Rain likely early in the morning", ("Occasional rain showers in the afternoon", "Occasional showers in the afternoon"), ], }, { "name": "E22", "commentary": "PoP 50%, Sky 95%, Ocnl RW- Ocnl S- SChc IP-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Ocnl:R:-:<NoVis>:^Ocnl:S:-:<NoVis>:^SChc:IP:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with occasional rain, snow and slight chance of light sleet" ], }, { "name": "E23", "commentary": "PoP 50%, Sky 95%, Def S- -> Def S- SChc IP- SChc ZR-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Def:S:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Def:S:-:<NoVis>:^SChc:IP:-:<NoVis>:^SChc:ZR:-:<NoVis>:", "all"), ], "checkStrings": [ "Snow in the morning, then snow, slight chance of light freezing rain and light sleet in the afternoon", ], }, { "name": "E24", "commentary": "PoP 50%, Sky 95%, Chc R -> Lkly R Lkly IP -> Def S Def IP -> Def S", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Chc:R:m:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Lkly:R:m:<NoVis>:^Lkly:IP:m:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 9, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 9, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 9, "Def:S:m:<NoVis>:^Def:IP:m:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 9, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 9, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 9, 12, "Def:S:m:<NoVis>:", "all"), ], "checkStrings": [ "Rain and sleet likely in the morning, then snow and sleet in the afternoon", ], }, { "name": "E25", "commentary": "PoP 50%, Sky 95%, Lkly R- -> Lkly R- Lkly S-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Lkly:R:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Lkly:R:-:<NoVis>:^Lkly:S:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "Rain likely in the morning, then rain and snow likely in the afternoon", "Chance of precipitation 50 percent", ], }, { "name": "E26", "commentary": "PoP 50%, Sky 95%, Lkly R- SChc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Lkly:R:-:<NoVis>:^SChc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with rain likely and slight chance of thunderstorms", "Chance of precipitation 50 percent", ], }, { "name": "E27", "commentary": "PoP 50%, Sky 95%, Lkly R-S-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 12, "Lkly:R:-:<NoVis>:^Lkly:S:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy with a 50 percent chance of rain and snow", ], }, { "name": "E28", "commentary": "PoP 50%, Sky 95%, Num TRW+ -> Iso RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Num:T:<NoInten>:<NoVis>:^Num:RW:+:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Iso:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", ("Numerous showers and thunderstorms in the morning, then isolated rain showers in the afternoon", "Numerous showers and thunderstorms in the morning, then isolated showers in the afternoon"), "Locally heavy rainfall possible in the morning", "Chance of precipitation 50 percent", ], }, { "name": "E29", "commentary": "PoP 50%, Sky 95%, Num T+RW-LgA -> Iso RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Num:T:+:<NoVis>:LgA^Num:RW:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Iso:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", ("Numerous thunderstorms in the morning, then isolated rain showers in the afternoon", "Numerous thunderstorms in the morning, then isolated showers in the afternoon"), "thunderstorms may be severe with large hail", "Chance of precipitation 50 percent", ], }, { "name": "E30", "commentary": "PoP 50%, Sky 95%, Num SW- SChc IP- Iso T -> Iso RW-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Num:SW:-:<NoVis>:^SChc:IP:-:<NoVis>:^Iso:T:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 12, "Iso:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", ("Numerous snow showers with possible sleet and thunderstorms early in the morning, then isolated rain showers in the late morning and afternoon", "Numerous snow showers with possible sleet and thunderstorms early in the morning, then isolated showers in the late morning and afternoon"), "Chance of precipitation 50 percent", ], }, { "name": "E31", "commentary": "PoP 50%, Sky 95%, Lkly S+ SChc IP- -> SChc ZL-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Lkly:S:+:<NoVis>:^SChc:IP:-:<NoVis>:^SChc:ZL:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 12, "Iso:RW:-:<NoVis>:", "all"), ], "checkStrings": [ "Snow likely, slight chance of light freezing drizzle and light sleet early in the morning, then isolated showers in the late morning and afternoon", "Snow may be heavy at times early in the morning", "Chance of precipitation 50 percent", ], }, { "name": "E32", "commentary": "PoP 50%, Sky 95%, Ocnl S+ -> Lkly S+ SChc ZL- Chc IP- -> Chc R-S-IP- SChc ZL- -> Chc R-", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 3, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 3, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Ocnl:S:+:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 3, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 3, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Lkly:S:+:<NoVis>:^SChc:ZL:-:<NoVis>:^Chc:IP:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 9, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 9, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 9, "Chc:R:-:<NoVis>:^Chc:S:-:<NoVis>:^Chc:IP:-:<NoVis>:^SChc:ZL:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 9, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 9, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 9, 12, "Chc:R:-:<NoVis>:", "all"), ], "checkStrings": [ "Occasional snow in the morning.", "Chance of light sleet and slight chance of light freezing drizzle through the day", "Chance of rain and snow in the afternoon.", "Snow may be heavy at times in the morning", "Chance of precipitation 50 percent", ], }, # Skipped E33-E36 { "name": "E37", "commentary": "PoP 50%, Sky 95%, SChc T -> Chc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:T:<NoInten>:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Slight chance of thunderstorms in the morning, then chance of thunderstorms in the afternoon", "Chance of thunderstorms 50 percent", ], }, { "name": "E38", "commentary": "PoP 50%, Sky 95%, SChc T HvyRn -> Chc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:T:<NoInten>:<NoVis>:HvyRn", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Slight chance of thunderstorms in the morning, then chance of thunderstorms in the afternoon", "Some thunderstorms may produce heavy rainfall in the morning", "Chance of thunderstorms 50 percent", ], }, { "name": "E39", "commentary": "PoP 50%, Sky 95%, SChc T+ -> Chc T", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "SChc:T:+:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Chc:T:<NoInten>:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "Slight chance of thunderstorms in the morning, then chance of thunderstorms in the afternoon", "Some thunderstorms may be severe in the morning", "Chance of thunderstorms 50 percent", ], }, # Skipped E40-41 { "name": "E42", "commentary": "PoP 50%, Sky 95%, Chc T+ -> NoWx", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:+:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 0, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "NoWx", "all"), ], "checkStrings": [ "Cloudy", "A 50 percent chance of thunderstorms in the morning", "Some thunderstorms may be severe", ], }, { "name": "E43", # TK 4469 "commentary": "Testing ellipses (tk4469)", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:+:<NoVis>:^Chc:R:-:<NoVis>:^Chc:S:-:<NoVis>:", "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 0, "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "NoWx", "all"), ], "checkStrings": [ "chance of rain, thunderstorms and snow in the morning", ], }, { "name": "E44", # TK 4469 "commentary": "Testing ellipses (tk4469)", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 6, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 6, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Chc:T:+:<NoVis>:^Chc:R:-:<NoVis>:^Chc:S:-:<NoVis>:", "all"), ("Fcst", "Sky", "SCALAR", 6, 12, 95, "all"), ("Fcst", "PoP", "SCALAR", 6, 12, 80, "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Wide:T:<NoInten>:<NoVis>:^Wide:R:-:<NoVis>:^Wide:S:-:<NoVis>:", "all"), ], "checkStrings": [ "Chance of rain, thunderstorms and snow in the morning, then widespread rain, thunderstorms and snow in the afternoon", ], }, { "name": "E45", # TK 4481 Combine Heavy "commentary": "tk 4481 combine heavy", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 3, "Num:T:<NoInten>:<NoVis>:^Num:RW:+:<NoVis>:", "all"), ("Fcst", "Wx", "WEATHER", 3, 6, "Num:SW:+:<NoVis>:^Num:RW:+:<NoVis>:", "all"), ("Fcst", "Wx", "WEATHER", 6, 12, "Num:SW:+:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "Precipitation may be heavy at times", ], }, { "name": "E46", # TK 4481 Combine Heavy "commentary": "tk 4481 combine heavy", "createGrids": [ ("Fcst", "PoP", "SCALAR", 0, 12, 50, "all"), ("Fcst", "Sky", "SCALAR", 0, 12, 95, "all"), ("Fcst", "Wx", "WEATHER", 0, 6, "Ocnl:T:+:<NoVis>:^Ocnl:RW:+:<NoVis>:", "all"), ("Fcst", "Wx", "WEATHER", 6, 9, "Ocnl:T:+:<NoVis>:^Num:RW:m:<NoVis>:", "all"), ("Fcst", "Wx", "WEATHER", 9, 12, "Chc:T:<NoInten>:<NoVis>:^Chc:RW:m:<NoVis>:", "all"), ], "checkStrings": [ "Cloudy", "Locally heavy rainfall possible in the morning.", ], }, ### Skipped G1-G5 { "name": "G6", "commentary": "Both null", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 0, "all"), ], "checkStrings": [ "Light winds", ], "fileChanges": [], }, { "name": "G7", "commentary": "Wind null", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 30, "all"), ], "checkStrings": [ "Light winds", ], "fileChanges": [], }, { "name": "G8", "commentary": "Wind N10, Gust 30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 30, "all"), ], "checkStrings": [ "North winds around 10 mph with gusts to around 35 mph", ], "fileChanges": [], }, { "name": "G9", "commentary": "Wind Calm->N15, Gust 0->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "Light winds becoming north around 15 mph in the afternoon", ], "fileChanges": [], }, { "name": "G10", "commentary": "Wind Calm->N15, Gust 30->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "Light winds becoming north around 15 mph in the afternoon", ], "fileChanges": [], }, { "name": "G11", "commentary": "Wind Calm->N15, Gust 0->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "Light winds becoming north around 15 mph with gusts to around 35 mph in the afternoon", ], "fileChanges": [], }, { "name": "G12", "commentary": "Wind Calm->N15, Gust 30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "Light winds becoming north around 15 mph in the afternoon", "Gusts up to 35 mph", ], "fileChanges": [], }, { "name": "G13", "commentary": "Wind N15->0, Gust 0->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning becoming light", ], "fileChanges": [], }, { "name": "G14", "commentary": "Wind N15->0, Gust 30->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph with gusts to around 35 mph in the morning becoming light", ], "fileChanges": [], }, { "name": "G15", "commentary": "Wind N15->0, Gust 0->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning becoming light", ], "fileChanges": [], }, { "name": "G16", "commentary": "Wind N15->0, Gust 30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning becoming light", "Gusts up to 35 mph", ], "fileChanges": [], }, { "name": "G17", "commentary": "Wind 0->0->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "Light winds", ], "fileChanges": [], }, { "name": "G18", "commentary": "Wind N10->0->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "North winds around 10 mph early in the morning becoming light", "Gusts up to 35 mph", ], "fileChanges": [], }, { "name": "G19", "commentary": "Wind 0->N10->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "Light winds becoming north around 10 mph late in the morning, then becoming light in the afternoon", ], "fileChanges": [], }, { "name": "G20", "commentary": "Wind N10->0->N20->0, Gust 40->40->40->40", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 40, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 40, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (20,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 40, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 40, "all"), ], "checkStrings": [ "breezy", "North winds around 10 mph early in the morning becoming light, then becoming north around 25 mph early in the afternoon becoming light", "Gusts up to 45 mph", ], "fileChanges": [], }, { "name": "G21", "commentary": "Wind N10->0->0->N20, Gust 40->40->40->40", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 40, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 40, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 40, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (20,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 40, "all"), ], "checkStrings": [ "breezy", "North winds around 10 mph early in the morning becoming light, then becoming north around 25 mph late in the afternoon", "Gusts up to 45 mph", ], "fileChanges": [], }, { "name": "Pass2_G6", "commentary": "Both null", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 0, "all"), ], "checkStrings": [ "", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G7", "commentary": "Wind null", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 30, "all"), ], "checkStrings": [ "", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G8", "commentary": "Wind N10, Gust 30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 12, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 12, 30, "all"), ], "checkStrings": [ "North winds around 10 mph with gusts to around 35 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G9", "commentary": "Wind 0->N15, Gust 0->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph in the afternoon", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G10", "commentary": "Wind 0->N15, Gust 30->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph in the afternoon", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G11", "commentary": "Wind 0->N15, Gust 0->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph with gusts to around 35 mph in the afternoon", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G12", "commentary": "Wind 0->N15, Gust 30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph in the afternoon", "Gusts up to 35 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G13", "commentary": "Wind N15->0, Gust 0->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G14", "commentary": "Wind N15->0, Gust 30->0", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 0, "all"), ], "checkStrings": [ "North winds around 15 mph with gusts to around 35 mph in the morning", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G15", "commentary": "Wind N15->0, Gust 0->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 0, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G16", "commentary": "Wind N15->0, Gust 30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 6, (15,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 12, 30, "all"), ], "checkStrings": [ "North winds around 15 mph in the morning. Gusts up to 35 mph", "Gusts up to 35 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G17", "commentary": "Wind 0->0->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G18", "commentary": "Wind N10->0->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "North winds around 10 mph early in the morning", "Gusts up to 35 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G19", "commentary": "Wind 0->N10->0->0, Gust 30->30->30->30", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 30, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 30, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 30, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 30, "all"), ], "checkStrings": [ "North winds around 10 mph late in the morning", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G20", "commentary": "Wind N10->0->N20->0, Gust 40->40->40->40", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 40, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 40, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (20,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 40, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 40, "all"), ], "checkStrings": [ "breezy", "North winds around 10 mph early in the morning becoming north around 25 mph early in the afternoon", "Gusts up to 45 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, { "name": "Pass2_G21", "commentary": "Wind N10->0->0->N20, Gust 40->40->40->40", "createGrids": [ ("Fcst", "Wind", "VECTOR", 0, 3, (10,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 0, 3, 40, "all"), ("Fcst", "Wind", "VECTOR", 3, 6, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 3, 6, 40, "all"), ("Fcst", "Wind", "VECTOR", 6, 9, (0,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 6, 9, 40, "all"), ("Fcst", "Wind", "VECTOR", 9, 12, (20,"N"), "all"), ("Fcst", "WindGust", "SCALAR", 9, 12, 40, "all"), ], "checkStrings": [ "breezy", "North winds around 10 mph early in the morning becoming north around 25 mph late in the afternoon", "Gusts up to 45 mph", ], "fileChanges":[ ("Phrase_Test_Local", "TextUtility", "replace", ('#dict["Wind"] = ""', 'dict["Wind"] = ""'), "undo"), ], }, ] import TestScript def testScript(self, dataMgr): defaults = { "cmdLineVars" :"{('Product Issuance', 'productIssuance'): 'Morning', ('Issuance Type', 'issuanceType'): 'ROUTINE', ('Issued By', 'issuedBy'): None}", "productType": "Phrase_Test_Local", } return TestScript.generalTestScript(self, dataMgr, scripts, defaults)
willp-bl/verify-frontend
lib/analytics/reporter.rb
module Analytics class Reporter def initialize(client, site_id) @client = client @site_id = site_id end def report_event(request, custom_variables, event_category, event_name, event_action) event = { 'e_c' => event_category, 'e_n' => event_name, 'e_a' => event_action.to_s, } report_action(request, 'trackEvent', custom_variables, event) end def report_action(request, action_name, custom_variables, event_params = {}) piwik_params = { 'rec' => '1', 'apiv' => '1', 'idsite' => @site_id, 'action_name' => action_name, 'url' => request.url, 'cdt' => Time.now.strftime('%Y-%m-%d %H:%M:%S'), 'cookie' => 'false', '_cvar' => custom_variables.to_json }.merge(event_params) cookies = request.cookies piwik_params['uid'] = cookies[CookieNames::PIWIK_USER_ID] if cookies.has_key? CookieNames::PIWIK_USER_ID referer = request.referer unless referer.nil? piwik_params['urlref'] = referer piwik_params['ref'] = referer end @client.report(piwik_params, headers(request)) end private def headers(request) headers = request.headers { 'X-Forwarded-For' => headers['X-Forwarded-For'], 'User-Agent' => headers['User-Agent'], 'Accept-Language' => headers['Accept-Language'] } end end end
phshaikh/fboss
fboss/agent/hw/bcm/tests/BcmTestUtils.cpp
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include "fboss/agent/hw/bcm/tests/BcmTestUtils.h" #include "fboss/agent/hw/bcm/BcmAclTable.h" #include "fboss/agent/hw/bcm/BcmFieldProcessorUtils.h" #include "fboss/agent/hw/bcm/BcmRoute.h" #include "fboss/agent/hw/bcm/BcmSwitch.h" #include "fboss/agent/platforms/tests/utils/BcmTestPlatform.h" #include "fboss/agent/state/SwitchState.h" #include <gtest/gtest.h> DECLARE_int32(acl_gid); namespace facebook::fboss::utility { void getSflowRates( int unit, bcm_port_t port, int* ingressRate, int* egressRate) { auto rv = bcm_port_sample_rate_get(unit, port, ingressRate, egressRate); bcmCheckError(rv, "failed to get port sflow rates"); } void checkSwHwAclMatch( BcmSwitch* hw, std::shared_ptr<SwitchState> state, const std::string& aclName) { auto swAcl = state->getAcl(aclName); ASSERT_NE(nullptr, swAcl); auto hwAcl = hw->getAclTable()->getAclIf(swAcl->getPriority()); ASSERT_NE(nullptr, hwAcl); ASSERT_TRUE( BcmAclEntry::isStateSame(hw, FLAGS_acl_gid, hwAcl->getHandle(), swAcl)); } void addMatcher( cfg::SwitchConfig* config, const std::string& matcherName, const cfg::MatchAction& matchAction) { cfg::MatchToAction action = cfg::MatchToAction(); action.matcher = matcherName; action.action = matchAction; cfg::TrafficPolicyConfig egressTrafficPolicy; if (auto dataPlaneTrafficPolicy = config->dataPlaneTrafficPolicy_ref()) { egressTrafficPolicy = *dataPlaneTrafficPolicy; } auto curNumMatchActions = egressTrafficPolicy.matchToAction.size(); egressTrafficPolicy.matchToAction.resize(curNumMatchActions + 1); egressTrafficPolicy.matchToAction[curNumMatchActions] = action; config->dataPlaneTrafficPolicy_ref() = egressTrafficPolicy; } void assertSwitchControl(bcm_switch_control_t type, int expectedValue) { int value = 0; int rv = bcm_switch_control_get(0, type, &value); facebook::fboss::bcmCheckError(rv, "failed to retrieve value for ", type); ASSERT_EQ(value, expectedValue) << "type=" << type; } } // namespace facebook::fboss::utility
bietje/etaos-site
docs/search/typedefs_62.js
var searchData= [ ['bool',['bool',['../include_2etaos_2types_8h.html#a97a80ca1602ebf2303258971a2c938e2',1,'types.h']]] ];
Piyusha23/IAFEMesh
Programs/FEMeshView/Resources/vtkSlicerMouseModeToolbar_ImageData.h
<reponame>Piyusha23/IAFEMesh /* * Resource generated for file: * MouseDefineROIDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseDefineROIDisabled_width = 21; static const unsigned int image_MouseDefineROIDisabled_height = 21; static const unsigned int image_MouseDefineROIDisabled_pixel_size = 3; static const unsigned long image_MouseDefineROIDisabled_length = 224; static const unsigned long image_MouseDefineROIDisabled_decoded_length = 1323; static const unsigned char image_MouseDefineROIDisabled[] = "eNrNlDEOxSAIhu8/ubg4aZw6sziYeAnv0EEPYckj78VXqqF26T8QRPEjBAWA1ho8sPuq6A" "bJye1fFBTSf+dPjpA+Sh/RN4FGdNwqpUygc7oxptYqSef0GKNSCq2keE7XWjvn0C50HqHu" "K/Tvdp7QJF4AH5ue3qN5AZfq6T36soDJzOec4SNrLXbee09LjAvppBACpqeU1l7crfS30R" "d+myf2AFdeSr4="; /* * Resource generated for file: * MouseDefineROIOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseDefineROIOff_width = 21; static const unsigned int image_MouseDefineROIOff_height = 21; static const unsigned int image_MouseDefineROIOff_pixel_size = 3; static const unsigned long image_MouseDefineROIOff_length = 224; static const unsigned long image_MouseDefineROIOff_decoded_length = 1323; static const unsigned char image_MouseDefineROIOff[] = "eNrbtGnT////N1FAUgKINEF/iT4yIlXvqWdbgQiZQbwJuLTj0ovmVKwIl+1Y7SLedkvvaU" "RqxzRh0tyjimadQJIYx2ParuMwwSJ+I5AkI+SBlgL1QhCQTWrIQ6yGIEwHYAY7sgnIVmM6" "gGCKRbYaqwPwmHD20pOqth1A5Bk1DxjygUmLIVygOEn5pW3SfqD2WYtPkpfjSNI+2Gwnr7" "QhmwQAuuI0Vw=="; /* * Resource generated for file: * MouseDefineROIOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseDefineROIOn_width = 21; static const unsigned int image_MouseDefineROIOn_height = 21; static const unsigned int image_MouseDefineROIOn_pixel_size = 3; static const unsigned long image_MouseDefineROIOn_length = 200; static const unsigned long image_MouseDefineROIOn_decoded_length = 1323; static const unsigned char image_MouseDefineROIOn[] = "eNpjYmJgogz9JxcQr11/iT4yIkk7UP2pZ1uBCJlBO+1oTsWKcGnHahfxtlt6TyNb+6S5Rx" "XNOoEkeY7XcZhgEb8RSJIRdEBLgXohCMgmVTvEagjCdAD+ZINsNaYDCCZaZKuxOgCP9rOX" "nlS17QAiz6h5wJAPTFoM4QLFScoybZP2A7XPWnySvBw3pLWTUdpQggD7HGqQ"; /* * Resource generated for file: * MouseDeselectDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseDeselectDisabled_width = 21; static const unsigned int image_MouseDeselectDisabled_height = 21; static const unsigned int image_MouseDeselectDisabled_pixel_size = 3; static const unsigned long image_MouseDeselectDisabled_length = 128; static const unsigned long image_MouseDeselectDisabled_decoded_length = 1323; static const unsigned char image_MouseDeselectDisabled[] = "eNrbtGnT////N1FAPiMXQEwgWzt1bV8AA8RwMW1HlsIFkNVg2k5QIx7bibSU1JDH5Spi/I" "4mSJLf8Yvgt52gY/D4nZhIxBXyxOjF5XdiYp9GqY6SND8U8zslJAC50XaV"; /* * Resource generated for file: * MouseDeselectOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseDeselectOff_width = 21; static const unsigned int image_MouseDeselectOff_height = 21; static const unsigned int image_MouseDeselectOff_pixel_size = 3; static const unsigned long image_MouseDeselectOff_length = 124; static const unsigned long image_MouseDeselectOff_decoded_length = 1323; static const unsigned char image_MouseDeselectOff[] = "eNrbtGnT////N1FAUgIoMYG6tp9mYIAgYriYtiNL4QJoatBsJ6gRj+3EW0qSCUTqxaoMTZ" "Akv+MXwW87MY7B5XdiIpESvbj8Tkzs0yjVUZLmh2h+J5sEAJfWp/g="; /* * Resource generated for file: * MouseDeselectOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseDeselectOn_width = 21; static const unsigned int image_MouseDeselectOn_height = 21; static const unsigned int image_MouseDeselectOn_pixel_size = 3; static const unsigned long image_MouseDeselectOn_length = 132; static const unsigned long image_MouseDeselectOn_decoded_length = 1323; static const unsigned char image_MouseDeselectOn[] = "eNpjYmJgogz9JxcMKu2nGRggiBguVu0EbSRbO0QWj3YiLSVVOy5XAfUyMhJwPJogSX7HL4" "JfO0HH4PE7MZGISzsxenE5npjYp1GqoyTN0z/DsrAwkq2dmZn8Ig6iFwDVKd44"; /* * Resource generated for file: * MouseLassoDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseLassoDisabled_width = 21; static const unsigned int image_MouseLassoDisabled_height = 21; static const unsigned int image_MouseLassoDisabled_pixel_size = 3; static const unsigned long image_MouseLassoDisabled_length = 240; static const unsigned long image_MouseLassoDisabled_decoded_length = 1323; static const unsigned char image_MouseLassoDisabled[] = "eNqtVEEOBBEQ/P8fViaO4iZcJMQBD3HYoy/YykpEsmbWMH3odFpVF00TQpRSxIZ/r1qtsE" "wfqjvnpJSMMUopIQQeMTLI55wv1FNK1lrv/VALeawCc6aulAohXOwWq1rroboxJsb497zA" "APmrzjmf7FhD9urHcUzSG/JB9c2zw9DV5c5X27l3VH59beHVVW6NWzD/5iul93cnDqy6h7" "4/dydukns27/P0R36bHf8B/qly5A=="; /* * Resource generated for file: * MouseLassoOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseLassoOff_width = 21; static const unsigned int image_MouseLassoOff_height = 21; static const unsigned int image_MouseLassoOff_pixel_size = 3; static const unsigned long image_MouseLassoOff_length = 280; static const unsigned long image_MouseLassoOff_decoded_length = 1323; static const unsigned char image_MouseLassoOff[] = "eNrbtGnT////N1FAUgIoMQGr3jcLFz7IyLhuaXleTOw0ExOQBLKBIkDxn48f4zHh6/nzr6" "ZNe79x478/f9CUAUWA4kBZoBqsev9+/fowP//Dtm14XAuUfdbWBlSJacLLKVM+bt9O0L9A" "NUCVmLbfcHQkMsSQVcJNOMvJSaR2uEoq2k6h34HhCQxVskMeFLk/f5IX779//waSQJNPMz" "AAEampDqgdohciCGcQmeaB2iFakEniTYA4HqgL4gYgSXaOI1IvLhOI106t0oZsEgCYBKyX"; /* * Resource generated for file: * MouseLassoOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseLassoOn_width = 21; static const unsigned int image_MouseLassoOn_height = 21; static const unsigned int image_MouseLassoOn_pixel_size = 3; static const unsigned long image_MouseLassoOn_length = 264; static const unsigned long image_MouseLassoOn_decoded_length = 1323; static const unsigned char image_MouseLassoOn[] = "eNpjYKAU/CcX0EL7m4ULH2RkXLe0PC8mdpqJCUgC2UARoPjPx4/xaP96/vyradPeb9z478" "8fNDOBIkBxoCxQDVbtf79+fZif/2HbNjyuBco+a2sDqsTU/nLKlI/btxP0L1ANUCWm9huO" "jkSGGFwlsvaznJxEaoerpKLtFPodGJ7AUCU75EGR+/MnefH++/dvIAk0+TQDAxCRmuqA2i" "F6IeKnicsIyNohWpBJkrRDdEHcACTJznFE6qWRdlKLC0oAAJvx4ZA="; /* * Resource generated for file: * MouseManipulateDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseManipulateDisabled_width = 21; static const unsigned int image_MouseManipulateDisabled_height = 21; static const unsigned int image_MouseManipulateDisabled_pixel_size = 3; static const unsigned long image_MouseManipulateDisabled_length = 260; static const unsigned long image_MouseManipulateDisabled_decoded_length = 1323; static const unsigned char image_MouseManipulateDisabled[] = "eNrVk7EKwyAQht9/SSBIIJMS+gDiEojgLm5xchOHvoY9KpWr1KQxUOg/HKfw+92dKoSIMY" "oL8d6qdEKz/Tf027vO0rEF54f0dV27rqvZ9+nDMGRLCGGaphp927bCC1BMlFL2fQ+xRjfG" "5P1xHPFR3ntCCGMMIuS13p1znHOtdVEJQNlLkJ+dfEIn4QK+uXeMLgo4pOeusXIBh3RrrX" "iKUgqTn+c5LWH/1JtflgXsSqm2H/fR/i/0nf9+JT4ArHxhPg=="; /* * Resource generated for file: * MouseManipulateOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseManipulateOff_width = 21; static const unsigned int image_MouseManipulateOff_height = 21; static const unsigned int image_MouseManipulateOff_pixel_size = 3; static const unsigned long image_MouseManipulateOff_length = 272; static const unsigned long image_MouseManipulateOff_decoded_length = 1323; static const unsigned char image_MouseManipulateOff[] = "eNrbtGnT////N1FAUgIoMYE+tp9mYEBGpNqOrAWZTdCEXbt29fX14dKOX++kSZPgWj5//W" "XpPe3Tp+9Ybb906RKaXqClyDZOmntU0awTSOKy/fTp03D2tGnTkI0CWqrjMMEifiOQBLJx" "+f3mzZsbNmw4efIkui/mHgXqhSAgm9SQh1gNQWgOIGgCstVoDiCoF+5rZITsAPwmnL30pK" "ptBxB5Rs0Dhnxg0mIIFyhOUppvm7QfqH3W4pPk5Rqs2oeK7fjzO9kkAMDXi70="; /* * Resource generated for file: * MouseManipulateOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseManipulateOn_width = 21; static const unsigned int image_MouseManipulateOn_height = 21; static const unsigned int image_MouseManipulateOn_pixel_size = 3; static const unsigned long image_MouseManipulateOn_length = 256; static const unsigned long image_MouseManipulateOn_decoded_length = 1323; static const unsigned char image_MouseManipulateOn[] = "eNpjYGBkoAz9JxcMCe2nGRiQERnasbIJat+1a1dfXx952idNmgTX8vnrL0vvaZ8+fceq/d" "KlS2h6gZYi2zhp7lFFs04gicv206dPw8WnTZuGbBTQUh2HCRbxG4EkkI3L8Tdv3tywYcPJ" "kyfRfTH3KFAvBAHZpIY8xGoIQnYAMdqRrUZzAEHtcF8jI7gDCGo/e+lJVdsOIPKMmgcM+c" "CkxRAuUJykNN82aT9Q+6zFJ8nLMkNaO578TgkCAJNjwQY="; /* * Resource generated for file: * MousePanDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MousePanDisabled_width = 21; static const unsigned int image_MousePanDisabled_height = 21; static const unsigned int image_MousePanDisabled_pixel_size = 3; static const unsigned long image_MousePanDisabled_length = 168; static const unsigned long image_MousePanDisabled_decoded_length = 1323; static const unsigned char image_MousePanDisabled[] = "eNrbtGnT////N1FAPiMXQEzAo2Dq1Kl4ZPHbvgAGyLB9ASogyfap2AAZfm9rayPJ72i2oG" "lHk0WzHehHgtqRwwHZdkgQEaMdbgLcdrg4kNGGGyAro6LtlPudmJCfPn06TeOdWqmOkjRP" "eY6jPL8DwYMHDwiWNpSQAM3oTGs="; /* * Resource generated for file: * MousePanOff.png (zlib, base64) (image file) */ static const unsigned int image_MousePanOff_width = 21; static const unsigned int image_MousePanOff_height = 21; static const unsigned int image_MousePanOff_pixel_size = 3; static const unsigned long image_MousePanOff_length = 160; static const unsigned long image_MousePanOff_decoded_length = 1323; static const unsigned char image_MousePanOff[] = "eNrbtGnT////N1FAUgLwm2DoN5FsvRbxGyGIDBPgevGYgEsv0M2YiAz3Gxsbk+RyNFvQtG" "O6AdkEoB8JakcOBzS9RGrHNAEuDmQY4wbIyqhoO+V+JybkTQIm0zTeqZXqKEnzlOc4yvM7" "EHz69J2Y0oZsEgBdiGT7"; /* * Resource generated for file: * MousePanOn.png (zlib, base64) (image file) */ static const unsigned int image_MousePanOn_width = 21; static const unsigned int image_MousePanOn_height = 21; static const unsigned int image_MousePanOn_pixel_size = 3; static const unsigned long image_MousePanOn_length = 160; static const unsigned long image_MousePanOn_decoded_length = 1323; static const unsigned char image_MousePanOn[] = "eNpjYGBkoAz9JxcQ1G7oN5Fs7RbxGyGIDO1wvXhMwKUd6GZMRIbfjY2NSfI7mi1o2tFk0b" "QD/UhQO3I4IGuHBBEx2uEmwLXDxYEMY9wAWRkVbafc78SEvEnAZJrGO7VSHSVpnvIcR3l+" "B4JPn74T1E4JAgAwFJpE"; /* * Resource generated for file: * MousePickDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MousePickDisabled_width = 21; static const unsigned int image_MousePickDisabled_height = 21; static const unsigned int image_MousePickDisabled_pixel_size = 3; static const unsigned long image_MousePickDisabled_length = 236; static const unsigned long image_MousePickDisabled_decoded_length = 1323; static const unsigned char image_MousePickDisabled[] = "eNrbtGnT////N1FAPiMXQEwgWzse2/s6O5ERqbYja8GlHb/tBLXjt/3Dp2+nztx8/foteb" "Zfv3l35syZjx49IsN2INi9e3d/fz+QJCPkHzx4MGXKlAULFgBJIJtU24GWLoABXA7AZTvc" "agjA5QBctiNbjccBWG1HsxqPA7Dafvny5U1gsGjRImDIz58/H8IFihMf8kCwb98+oPbt27" "eTl+MIah/MthNZ2lBCAgBCLGNM"; /* * Resource generated for file: * MousePickOff.png (zlib, base64) (image file) */ static const unsigned int image_MousePickOff_width = 21; static const unsigned int image_MousePickOff_height = 21; static const unsigned int image_MousePickOff_pixel_size = 3; static const unsigned long image_MousePickOff_length = 220; static const unsigned long image_MousePickOff_decoded_length = 1323; static const unsigned char image_MousePickOff[] = "eNrbtGnT////N1FAUgIoMQGP3tMMDMiIVBOQteDSjt92gtrx2/756y9L72mfPn0nz/ZJc4" "8qmnUCSTJsBwK4djL0At2s4zDBIn4jkASySTUBaClQLwThcgAuvXCrIQiPA7CagGw1Hgdg" "1YtmNX4HYJpw9tKTqrYdQBSYtBgY8p5R8yBcoDhJ+WXW4pNA7W2T9pOXawhqH8y2E19ikE" "0CACBbkIc="; /* * Resource generated for file: * MousePickOn.png (zlib, base64) (image file) */ static const unsigned int image_MousePickOn_width = 21; static const unsigned int image_MousePickOn_height = 21; static const unsigned int image_MousePickOn_pixel_size = 3; static const unsigned long image_MousePickOn_length = 200; static const unsigned long image_MousePickOn_decoded_length = 1323; static const unsigned char image_MousePickOn[] = "eNpjYGBkoAz9JxfQTvtpBgZkRIZ2rGy6af/89Zel97RPn76Tp33S3KOKZp1AkgztQADXTk" "bIA92s4zDBIn4jkASySdUOtBSoF4JwOQCXdrjVEITLAbi0I1uNxwFYtaNZjccBWLWfvfSk" "qm0HEAUmLQaGvGfUPAgXKE5SxM1afBKovW3SfvJy3JDWTmRxQQkCAPLYxdA="; /* * Resource generated for file: * MousePlaceDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MousePlaceDisabled_width = 21; static const unsigned int image_MousePlaceDisabled_height = 21; static const unsigned int image_MousePlaceDisabled_pixel_size = 3; static const unsigned long image_MousePlaceDisabled_length = 224; static const unsigned long image_MousePlaceDisabled_decoded_length = 1323; static const unsigned char image_MousePlaceDisabled[] = "eNrNlDEOhSAMhs/v8lhYmCAcoQsDCZfgAoTBa/Ca1zxj1FbBmPgPDWrr97cBAKC1BjfiPC" "r6g5DwmSbhK0dfqvaLi/R1PufhtHfZ/EN0yi+lGGNqrQO9o2KMSimMvZMntNbaOYcR1729" "I9T9xRng6AuaxBng6Gu0YOCQvkELBg7pOWf4yXuPk7fW0iO+79p1KSUsDyGMnbjT8jfTL9" "42d+IXG5Nljw=="; /* * Resource generated for file: * MousePlaceOff.png (zlib, base64) (image file) */ static const unsigned int image_MousePlaceOff_width = 21; static const unsigned int image_MousePlaceOff_height = 21; static const unsigned int image_MousePlaceOff_pixel_size = 3; static const unsigned long image_MousePlaceOff_length = 212; static const unsigned long image_MousePlaceOff_decoded_length = 1323; static const unsigned char image_MousePlaceOff[] = "eNrbtGnT////N1FAUgLwm3CagYEMvXBdmAxSTSBDL5GOp5HtEPWfPn239J72+esv8tw/ae" "5RRbNOIElGrAGt1nGYYBG/EUgC2aSaALQUqBeCcDkAl1641RCExwFYTUC2Go8DsOpFsxq/" "AzBNOHvpSVXbDiAKTFoMDHnPqHkQLlCcpFQ3a/FJoPa2SfvJy3EEtQ9m24kvbcgmAdtJmR" "o="; /* * Resource generated for file: * MousePlaceOn.png (zlib, base64) (image file) */ static const unsigned int image_MousePlaceOn_width = 21; static const unsigned int image_MousePlaceOn_height = 21; static const unsigned int image_MousePlaceOn_pixel_size = 3; static const unsigned long image_MousePlaceOn_length = 208; static const unsigned long image_MousePlaceOn_decoded_length = 1323; static const unsigned char image_MousePlaceOn[] = "eNpjYGBkoAz9JxcQ1H6agYEM7XBdmAwibUdWj8sNNHI8hbZD1H/69N3Se9rnr7/I8DsQTJ" "p7VNGsE0iS4Xig1ToOEyziNwJJIJtU7UBLgXohCJcDcGmHWw1BuByASzuy1XgcgFU7mtV4" "HIBV+9lLT6radgBRYNJiYMh7Rs2DcIHiJEXcrMUngdrbJu0nL8cNae1EljaUIACt1c5j"; /* * Resource generated for file: * MouseRotateDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseRotateDisabled_width = 21; static const unsigned int image_MouseRotateDisabled_height = 21; static const unsigned int image_MouseRotateDisabled_pixel_size = 3; static const unsigned long image_MouseRotateDisabled_length = 340; static const unsigned long image_MouseRotateDisabled_decoded_length = 1323; static const unsigned char image_MouseRotateDisabled[] = "eNrVU7EKgzAU/P8xo+gQVEQdFDKJgiCIKDooiLgL/Q179EGwiUqrS3tDiDF39/JyEUKs6y" "pujI+rIIXL9N90b9s2iiLOOWMMY5Ik4zjKv5jXdX3kXhRFEARYx7ZlWXzfJ5E8z4mLeZqm" "u+5934NbVZVcgUIcx/yFLMtoQqa6Oz5Rtn4cqUAIw3DX3fO8six1+jRNW7pt24o7HVCiaZ" "ptr/g7LMtS3Lf0cy7gOM6J+zAMks72ADpaqrsbhqErENBSpc+KO2qe59k0TV0BV4kLxbUe" "pU7mqus6dIaKwX4kENvARZw+zDykEFQKreu6KBsi//LivnK/Mz4BOzRGqg=="; /* * Resource generated for file: * MouseRotateOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseRotateOff_width = 21; static const unsigned int image_MouseRotateOff_height = 21; static const unsigned int image_MouseRotateOff_pixel_size = 3; static const unsigned long image_MouseRotateOff_length = 384; static const unsigned long image_MouseRotateOff_decoded_length = 1323; static const unsigned char image_MouseRotateOff[] = "eNrbtGnT////N1FAUgIoMWFw2n7o6KXW7vm+cQvUrLuBZOeUg5euP4fLAtmbdl3DZcKa9Q" "drmqb0TFoGVPbj5++kwtVAQyziN85cdAKiF8jum3kIq96zF25V10/etvsUXOTnz99FDVuB" "WoBo4pyjEEZV2w6stgMtBTob0ztwEyAotWgtVtvLa7o3bT+Gqf3a7VfI2gOTFqPZDvEgHG" "3bdwM5rJClgMghaBaa7cja8esFopDUJXhsP3XuEbKxmAioHRikmLbb+U/ENAECgEEKDFhc" "KQeoHejmO/ff2AfOxDQBGJXACAVGK65UB09Xew/fAYYMxDHHTj0ApkCgpcCEBExORKZboF" "HAhApJtKVV7UBnAw0ZKjmOVBPIJgE6B1mh"; /* * Resource generated for file: * MouseRotateOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseRotateOn_width = 21; static const unsigned int image_MouseRotateOn_height = 21; static const unsigned int image_MouseRotateOn_pixel_size = 3; static const unsigned long image_MouseRotateOn_length = 372; static const unsigned long image_MouseRotateOn_decoded_length = 1323; static const unsigned char image_MouseRotateOn[] = "eNpjYGBkoAz9JxcMS+2Hjl5q7Z7vG7dAzbobSHZOOXjp+nO4LJC9adc1XNrXrD9Y0zSlZ9" "IyoLIfP38nFa4GGmIRv3HmohMQvUB238xDWLWfvXCrun7ytt2n4CI/f/4uatgK1AJEE+cc" "hTCq2nZg1Q60FOhsTO/ATYCg1KK1WLWX13Rv2n4MU/u126+QtQcmLUbTDvEgHG3bdwM5rJ" "ClgMghaBYe7fj1AlFI6hI82k+dewTXDhTHREDtwCDF1G7nPxHTBAgABikwYHElG6B2oJvv" "3H9jHzgT0wRgVAIjFBituLTD09Xew3eAIQNxzLFTD4ApEGgpMCEBkxORiRZoFDChQhJtaV" "U70NlAQ4ZlhqUEAQAMk47q"; /* * Resource generated for file: * MouseSelectDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseSelectDisabled_width = 21; static const unsigned int image_MouseSelectDisabled_height = 21; static const unsigned int image_MouseSelectDisabled_pixel_size = 3; static const unsigned long image_MouseSelectDisabled_length = 92; static const unsigned long image_MouseSelectDisabled_decoded_length = 1323; static const unsigned char image_MouseSelectDisabled[] = "eNrbtGnT////N1FAPiMXQEwgWzt1bV8AA8RwMW1HlsIFkNVg2k6S9kEV8gPrdwptH/BUN4" "B+pzDND8X8TgkJANJaffc="; /* * Resource generated for file: * MouseSelectOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseSelectOff_width = 21; static const unsigned int image_MouseSelectOff_height = 21; static const unsigned int image_MouseSelectOff_pixel_size = 3; static const unsigned long image_MouseSelectOff_length = 92; static const unsigned long image_MouseSelectOff_decoded_length = 1323; static const unsigned char image_MouseSelectOff[] = "eNrbtGnT////N1FAUgIoMYG6tp9mYIAgYriYtiNL4QJoatBsJ0n7oAr5gfU7hbYPeKobQL" "9TmOaHaH4nmwQAq1y7ug=="; /* * Resource generated for file: * MouseSelectOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseSelectOn_width = 21; static const unsigned int image_MouseSelectOn_height = 21; static const unsigned int image_MouseSelectOn_pixel_size = 3; static const unsigned long image_MouseSelectOn_length = 88; static const unsigned long image_MouseSelectOn_decoded_length = 1323; static const unsigned char image_MouseSelectOn[] = "eNpjYmJgogz9JxcMKu2nGRggiBguVu0EbaSddvoHHSPjYPH7kAu6weN3CtM8/YOOhYWRbO" "3MzOQXcRC9AOiv8fo="; /* * Resource generated for file: * MouseZoomDisabled.png (zlib, base64) (image file) */ static const unsigned int image_MouseZoomDisabled_width = 21; static const unsigned int image_MouseZoomDisabled_height = 21; static const unsigned int image_MouseZoomDisabled_pixel_size = 3; static const unsigned long image_MouseZoomDisabled_length = 168; static const unsigned long image_MouseZoomDisabled_decoded_length = 1323; static const unsigned char image_MouseZoomDisabled[] = "eNqtlMsNwDAIQ7fvHqyAOlPXoIdIyHIKqnB8yIHavDQ/d48IF8ZnqtWhMZhZ8xXpNyizS5" "UB6VmkLHYgJ9GrLHX4Q2+002l615f2JU06TY/MVEkz0rFDE0cn0bNexcl2lq78u7Ly4r4f" "P3WDM6/cOPG+j18bZXwBl/w5Dw=="; /* * Resource generated for file: * MouseZoomOff.png (zlib, base64) (image file) */ static const unsigned int image_MouseZoomOff_width = 21; static const unsigned int image_MouseZoomOff_height = 21; static const unsigned int image_MouseZoomOff_pixel_size = 3; static const unsigned long image_MouseZoomOff_length = 176; static const unsigned long image_MouseZoomOff_decoded_length = 1323; static const unsigned char image_MouseZoomOff[] = "eNrbtGnT////N1FAUgLwm2ARv5FIvQuQAFwvBOFSgGwCsiAQGPpNREbIUnCVaLYjuxkTYV" "WJy3Y8ANN2tCAyxgawBinEBCAX2YNoitFEgCoh2pFthwvi146mEtl2eBDh0g5RQCPbKfE7" "JSFPYbxTPdWRkeYpyXEU5ndKShuySQA9bTfO"; /* * Resource generated for file: * MouseZoomOn.png (zlib, base64) (image file) */ static const unsigned int image_MouseZoomOn_width = 21; static const unsigned int image_MouseZoomOn_height = 21; static const unsigned int image_MouseZoomOn_pixel_size = 3; static const unsigned long image_MouseZoomOn_length = 160; static const unsigned long image_MouseZoomOn_decoded_length = 1323; static const unsigned char image_MouseZoomOn[] = "<KEY>" "<KEY>" "OArzO9mlDSUIAA/5bRc=";
dean-s-oliver/4DSEIS
_site/git/tmp-objdir.c
#include "cache.h" #include "tmp-objdir.h" #include "dir.h" #include "sigchain.h" #include "string-list.h" #include "strbuf.h" #include "argv-array.h" #include "quote.h" #include "object-store.h" struct tmp_objdir { struct strbuf path; struct argv_array env; }; /* * Allow only one tmp_objdir at a time in a running process, which simplifies * our signal/atexit cleanup routines. It's doubtful callers will ever need * more than one, and we can expand later if so. You can have many such * tmp_objdirs simultaneously in many processes, of course. */ static struct tmp_objdir *the_tmp_objdir; static void tmp_objdir_free(struct tmp_objdir *t) { strbuf_release(&t->path); argv_array_clear(&t->env); free(t); } static int tmp_objdir_destroy_1(struct tmp_objdir *t, int on_signal) { int err; if (!t) return 0; if (t == the_tmp_objdir) the_tmp_objdir = NULL; /* * This may use malloc via strbuf_grow(), but we should * have pre-grown t->path sufficiently so that this * doesn't happen in practice. */ err = remove_dir_recursively(&t->path, 0); /* * When we are cleaning up due to a signal, we won't bother * freeing memory; it may cause a deadlock if the signal * arrived while libc's allocator lock is held. */ if (!on_signal) tmp_objdir_free(t); return err; } int tmp_objdir_destroy(struct tmp_objdir *t) { return tmp_objdir_destroy_1(t, 0); } static void remove_tmp_objdir(void) { tmp_objdir_destroy(the_tmp_objdir); } static void remove_tmp_objdir_on_signal(int signo) { tmp_objdir_destroy_1(the_tmp_objdir, 1); sigchain_pop(signo); raise(signo); } /* * These env_* functions are for setting up the child environment; the * "replace" variant overrides the value of any existing variable with that * "key". The "append" variant puts our new value at the end of a list, * separated by PATH_SEP (which is what separate values in * GIT_ALTERNATE_OBJECT_DIRECTORIES). */ static void env_append(struct argv_array *env, const char *key, const char *val) { struct strbuf quoted = STRBUF_INIT; const char *old; /* * Avoid quoting if it's not necessary, for maximum compatibility * with older parsers which don't understand the quoting. */ if (*val == '"' || strchr(val, PATH_SEP)) { strbuf_addch(&quoted, '"'); quote_c_style(val, &quoted, NULL, 1); strbuf_addch(&quoted, '"'); val = quoted.buf; } old = getenv(key); if (!old) argv_array_pushf(env, "%s=%s", key, val); else argv_array_pushf(env, "%s=%s%c%s", key, old, PATH_SEP, val); strbuf_release(&quoted); } static void env_replace(struct argv_array *env, const char *key, const char *val) { argv_array_pushf(env, "%s=%s", key, val); } static int setup_tmp_objdir(const char *root) { char *path; int ret = 0; path = xstrfmt("%s/pack", root); ret = mkdir(path, 0777); free(path); return ret; } struct tmp_objdir *tmp_objdir_create(void) { static int installed_handlers; struct tmp_objdir *t; if (the_tmp_objdir) BUG("only one tmp_objdir can be used at a time"); t = xmalloc(sizeof(*t)); strbuf_init(&t->path, 0); argv_array_init(&t->env); strbuf_addf(&t->path, "%s/incoming-XXXXXX", get_object_directory()); /* * Grow the strbuf beyond any filename we expect to be placed in it. * If tmp_objdir_destroy() is called by a signal handler, then * we should be able to use the strbuf to remove files without * having to call malloc. */ strbuf_grow(&t->path, 1024); if (!mkdtemp(t->path.buf)) { /* free, not destroy, as we never touched the filesystem */ tmp_objdir_free(t); return NULL; } the_tmp_objdir = t; if (!installed_handlers) { atexit(remove_tmp_objdir); sigchain_push_common(remove_tmp_objdir_on_signal); installed_handlers++; } if (setup_tmp_objdir(t->path.buf)) { tmp_objdir_destroy(t); return NULL; } env_append(&t->env, ALTERNATE_DB_ENVIRONMENT, absolute_path(get_object_directory())); env_replace(&t->env, DB_ENVIRONMENT, absolute_path(t->path.buf)); env_replace(&t->env, GIT_QUARANTINE_ENVIRONMENT, absolute_path(t->path.buf)); return t; } /* * Make sure we copy packfiles and their associated metafiles in the correct * order. All of these ends_with checks are slightly expensive to do in * the midst of a sorting routine, but in practice it shouldn't matter. * We will have a relatively small number of packfiles to order, and loose * objects exit early in the first line. */ static int pack_copy_priority(const char *name) { if (!starts_with(name, "pack")) return 0; if (ends_with(name, ".keep")) return 1; if (ends_with(name, ".pack")) return 2; if (ends_with(name, ".idx")) return 3; return 4; } static int pack_copy_cmp(const char *a, const char *b) { return pack_copy_priority(a) - pack_copy_priority(b); } static int read_dir_paths(struct string_list *out, const char *path) { DIR *dh; struct dirent *de; dh = opendir(path); if (!dh) return -1; while ((de = readdir(dh))) if (de->d_name[0] != '.') string_list_append(out, de->d_name); closedir(dh); return 0; } static int migrate_paths(struct strbuf *src, struct strbuf *dst); static int migrate_one(struct strbuf *src, struct strbuf *dst) { struct stat st; if (stat(src->buf, &st) < 0) return -1; if (S_ISDIR(st.st_mode)) { if (!mkdir(dst->buf, 0777)) { if (adjust_shared_perm(dst->buf)) return -1; } else if (errno != EEXIST) return -1; return migrate_paths(src, dst); } return finalize_object_file(src->buf, dst->buf); } static int migrate_paths(struct strbuf *src, struct strbuf *dst) { size_t src_len = src->len, dst_len = dst->len; struct string_list paths = STRING_LIST_INIT_DUP; int i; int ret = 0; if (read_dir_paths(&paths, src->buf) < 0) return -1; paths.cmp = pack_copy_cmp; string_list_sort(&paths); for (i = 0; i < paths.nr; i++) { const char *name = paths.items[i].string; strbuf_addf(src, "/%s", name); strbuf_addf(dst, "/%s", name); ret |= migrate_one(src, dst); strbuf_setlen(src, src_len); strbuf_setlen(dst, dst_len); } string_list_clear(&paths, 0); return ret; } int tmp_objdir_migrate(struct tmp_objdir *t) { struct strbuf src = STRBUF_INIT, dst = STRBUF_INIT; int ret; if (!t) return 0; strbuf_addbuf(&src, &t->path); strbuf_addstr(&dst, get_object_directory()); ret = migrate_paths(&src, &dst); strbuf_release(&src); strbuf_release(&dst); tmp_objdir_destroy(t); return ret; } const char **tmp_objdir_env(const struct tmp_objdir *t) { if (!t) return NULL; return t->env.argv; } void tmp_objdir_add_as_alternate(const struct tmp_objdir *t) { add_to_alternates_memory(t->path.buf); }
zhiming-shen/Xen-Blanket-NG
linux-kernel/linux-3.4.53-blanket/arch/arm/mach-lpc32xx/clock.c
/* * arch/arm/mach-lpc32xx/clock.c * * Author: <NAME> <<EMAIL>> * * Copyright (C) 2010 NXP Semiconductors * * 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. */ /* * LPC32xx clock management driver overview * * The LPC32XX contains a number of high level system clocks that can be * generated from different sources. These system clocks are used to * generate the CPU and bus rates and the individual peripheral clocks in * the system. When Linux is started by the boot loader, the system * clocks are already running. Stopping a system clock during normal * Linux operation should never be attempted, as peripherals that require * those clocks will quit working (ie, DRAM). * * The LPC32xx high level clock tree looks as follows. Clocks marked with * an asterisk are always on and cannot be disabled. Clocks marked with * an ampersand can only be disabled in CPU suspend mode. Clocks marked * with a caret are always on if it is the selected clock for the SYSCLK * source. The clock that isn't used for SYSCLK can be enabled and * disabled normally. * 32KHz oscillator* * / | \ * RTC* PLL397^ TOUCH * / * Main oscillator^ / * | \ / * | SYSCLK& * | \ * | \ * USB_PLL HCLK_PLL& * | | | * USB host/device PCLK& | * | | * Peripherals * * The CPU and chip bus rates are derived from the HCLK PLL, which can * generate various clock rates up to 266MHz and beyond. The internal bus * rates (PCLK and HCLK) are generated from dividers based on the HCLK * PLL rate. HCLK can be a ratio of 1:1, 1:2, or 1:4 or HCLK PLL rate, * while PCLK can be 1:1 to 1:32 of HCLK PLL rate. Most peripherals high * level clocks are based on either HCLK or PCLK, but have their own * dividers as part of the IP itself. Because of this, the system clock * rates should not be changed. * * The HCLK PLL is clocked from SYSCLK, which can be derived from the * main oscillator or PLL397. PLL397 generates a rate that is 397 times * the 32KHz oscillator rate. The main oscillator runs at the selected * oscillator/crystal rate on the mosc_in pin of the LPC32xx. This rate * is normally 13MHz, but depends on the selection of external crystals * or oscillators. If USB operation is required, the main oscillator must * be used in the system. * * Switching SYSCLK between sources during normal Linux operation is not * supported. SYSCLK is preset in the bootloader. Because of the * complexities of clock management during clock frequency changes, * there are some limitations to the clock driver explained below: * - The PLL397 and main oscillator can be enabled and disabled by the * clk_enable() and clk_disable() functions unless SYSCLK is based * on that clock. This allows the other oscillator that isn't driving * the HCLK PLL to be used as another system clock that can be routed * to an external pin. * - The muxed SYSCLK input and HCLK_PLL rate cannot be changed with * this driver. * - HCLK and PCLK rates cannot be changed as part of this driver. * - Most peripherals have their own dividers are part of the peripheral * block. Changing SYSCLK, HCLK PLL, HCLK, or PCLK sources or rates * will also impact the individual peripheral rates. */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/list.h> #include <linux/errno.h> #include <linux/device.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/clk.h> #include <linux/amba/bus.h> #include <linux/amba/clcd.h> #include <linux/clkdev.h> #include <mach/hardware.h> #include <mach/platform.h> #include "clock.h" #include "common.h" static DEFINE_SPINLOCK(global_clkregs_lock); static int usb_pll_enable, usb_pll_valid; static struct clk clk_armpll; static struct clk clk_usbpll; /* * Post divider values for PLLs based on selected register value */ static const u32 pll_postdivs[4] = {1, 2, 4, 8}; static unsigned long local_return_parent_rate(struct clk *clk) { /* * If a clock has a rate of 0, then it inherits it's parent * clock rate */ while (clk->rate == 0) clk = clk->parent; return clk->rate; } /* 32KHz clock has a fixed rate and is not stoppable */ static struct clk osc_32KHz = { .rate = LPC32XX_CLOCK_OSC_FREQ, .get_rate = local_return_parent_rate, }; static int local_pll397_enable(struct clk *clk, int enable) { u32 reg; unsigned long timeout = jiffies + msecs_to_jiffies(10); reg = __raw_readl(LPC32XX_CLKPWR_PLL397_CTRL); if (enable == 0) { reg |= LPC32XX_CLKPWR_SYSCTRL_PLL397_DIS; __raw_writel(reg, LPC32XX_CLKPWR_PLL397_CTRL); } else { /* Enable PLL397 */ reg &= ~LPC32XX_CLKPWR_SYSCTRL_PLL397_DIS; __raw_writel(reg, LPC32XX_CLKPWR_PLL397_CTRL); /* Wait for PLL397 lock */ while (((__raw_readl(LPC32XX_CLKPWR_PLL397_CTRL) & LPC32XX_CLKPWR_SYSCTRL_PLL397_STS) == 0) && time_before(jiffies, timeout)) cpu_relax(); if ((__raw_readl(LPC32XX_CLKPWR_PLL397_CTRL) & LPC32XX_CLKPWR_SYSCTRL_PLL397_STS) == 0) return -ENODEV; } return 0; } static int local_oscmain_enable(struct clk *clk, int enable) { u32 reg; unsigned long timeout = jiffies + msecs_to_jiffies(10); reg = __raw_readl(LPC32XX_CLKPWR_MAIN_OSC_CTRL); if (enable == 0) { reg |= LPC32XX_CLKPWR_MOSC_DISABLE; __raw_writel(reg, LPC32XX_CLKPWR_MAIN_OSC_CTRL); } else { /* Enable main oscillator */ reg &= ~LPC32XX_CLKPWR_MOSC_DISABLE; __raw_writel(reg, LPC32XX_CLKPWR_MAIN_OSC_CTRL); /* Wait for main oscillator to start */ while (((__raw_readl(LPC32XX_CLKPWR_MAIN_OSC_CTRL) & LPC32XX_CLKPWR_MOSC_DISABLE) != 0) && time_before(jiffies, timeout)) cpu_relax(); if ((__raw_readl(LPC32XX_CLKPWR_MAIN_OSC_CTRL) & LPC32XX_CLKPWR_MOSC_DISABLE) != 0) return -ENODEV; } return 0; } static struct clk osc_pll397 = { .parent = &osc_32KHz, .enable = local_pll397_enable, .rate = LPC32XX_CLOCK_OSC_FREQ * 397, .get_rate = local_return_parent_rate, }; static struct clk osc_main = { .enable = local_oscmain_enable, .rate = LPC32XX_MAIN_OSC_FREQ, .get_rate = local_return_parent_rate, }; static struct clk clk_sys; /* * Convert a PLL register value to a PLL output frequency */ u32 clk_get_pllrate_from_reg(u32 inputclk, u32 regval) { struct clk_pll_setup pllcfg; pllcfg.cco_bypass_b15 = 0; pllcfg.direct_output_b14 = 0; pllcfg.fdbk_div_ctrl_b13 = 0; if ((regval & LPC32XX_CLKPWR_HCLKPLL_CCO_BYPASS) != 0) pllcfg.cco_bypass_b15 = 1; if ((regval & LPC32XX_CLKPWR_HCLKPLL_POSTDIV_BYPASS) != 0) pllcfg.direct_output_b14 = 1; if ((regval & LPC32XX_CLKPWR_HCLKPLL_FDBK_SEL_FCLK) != 0) pllcfg.fdbk_div_ctrl_b13 = 1; pllcfg.pll_m = 1 + ((regval >> 1) & 0xFF); pllcfg.pll_n = 1 + ((regval >> 9) & 0x3); pllcfg.pll_p = pll_postdivs[((regval >> 11) & 0x3)]; return clk_check_pll_setup(inputclk, &pllcfg); } /* * Setup the HCLK PLL with a PLL structure */ static u32 local_clk_pll_setup(struct clk_pll_setup *PllSetup) { u32 tv, tmp = 0; if (PllSetup->analog_on != 0) tmp |= LPC32XX_CLKPWR_HCLKPLL_POWER_UP; if (PllSetup->cco_bypass_b15 != 0) tmp |= LPC32XX_CLKPWR_HCLKPLL_CCO_BYPASS; if (PllSetup->direct_output_b14 != 0) tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_BYPASS; if (PllSetup->fdbk_div_ctrl_b13 != 0) tmp |= LPC32XX_CLKPWR_HCLKPLL_FDBK_SEL_FCLK; tv = ffs(PllSetup->pll_p) - 1; if ((!is_power_of_2(PllSetup->pll_p)) || (tv > 3)) return 0; tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(tv); tmp |= LPC32XX_CLKPWR_HCLKPLL_PREDIV_PLUS1(PllSetup->pll_n - 1); tmp |= LPC32XX_CLKPWR_HCLKPLL_PLLM(PllSetup->pll_m - 1); return tmp; } /* * Update the ARM core PLL frequency rate variable from the actual PLL setting */ static void local_update_armpll_rate(void) { u32 clkin, pllreg; clkin = clk_armpll.parent->rate; pllreg = __raw_readl(LPC32XX_CLKPWR_HCLKPLL_CTRL) & 0x1FFFF; clk_armpll.rate = clk_get_pllrate_from_reg(clkin, pllreg); } /* * Find a PLL configuration for the selected input frequency */ static u32 local_clk_find_pll_cfg(u32 pllin_freq, u32 target_freq, struct clk_pll_setup *pllsetup) { u32 ifreq, freqtol, m, n, p, fclkout; /* Determine frequency tolerance limits */ freqtol = target_freq / 250; ifreq = pllin_freq; /* Is direct bypass mode possible? */ if (abs(pllin_freq - target_freq) <= freqtol) { pllsetup->analog_on = 0; pllsetup->cco_bypass_b15 = 1; pllsetup->direct_output_b14 = 1; pllsetup->fdbk_div_ctrl_b13 = 1; pllsetup->pll_p = pll_postdivs[0]; pllsetup->pll_n = 1; pllsetup->pll_m = 1; return clk_check_pll_setup(ifreq, pllsetup); } else if (target_freq <= ifreq) { pllsetup->analog_on = 0; pllsetup->cco_bypass_b15 = 1; pllsetup->direct_output_b14 = 0; pllsetup->fdbk_div_ctrl_b13 = 1; pllsetup->pll_n = 1; pllsetup->pll_m = 1; for (p = 0; p <= 3; p++) { pllsetup->pll_p = pll_postdivs[p]; fclkout = clk_check_pll_setup(ifreq, pllsetup); if (abs(target_freq - fclkout) <= freqtol) return fclkout; } } /* Is direct mode possible? */ pllsetup->analog_on = 1; pllsetup->cco_bypass_b15 = 0; pllsetup->direct_output_b14 = 1; pllsetup->fdbk_div_ctrl_b13 = 0; pllsetup->pll_p = pll_postdivs[0]; for (m = 1; m <= 256; m++) { for (n = 1; n <= 4; n++) { /* Compute output frequency for this value */ pllsetup->pll_n = n; pllsetup->pll_m = m; fclkout = clk_check_pll_setup(ifreq, pllsetup); if (abs(target_freq - fclkout) <= freqtol) return fclkout; } } /* Is integer mode possible? */ pllsetup->analog_on = 1; pllsetup->cco_bypass_b15 = 0; pllsetup->direct_output_b14 = 0; pllsetup->fdbk_div_ctrl_b13 = 1; for (m = 1; m <= 256; m++) { for (n = 1; n <= 4; n++) { for (p = 0; p < 4; p++) { /* Compute output frequency */ pllsetup->pll_p = pll_postdivs[p]; pllsetup->pll_n = n; pllsetup->pll_m = m; fclkout = clk_check_pll_setup( ifreq, pllsetup); if (abs(target_freq - fclkout) <= freqtol) return fclkout; } } } /* Try non-integer mode */ pllsetup->analog_on = 1; pllsetup->cco_bypass_b15 = 0; pllsetup->direct_output_b14 = 0; pllsetup->fdbk_div_ctrl_b13 = 0; for (m = 1; m <= 256; m++) { for (n = 1; n <= 4; n++) { for (p = 0; p < 4; p++) { /* Compute output frequency */ pllsetup->pll_p = pll_postdivs[p]; pllsetup->pll_n = n; pllsetup->pll_m = m; fclkout = clk_check_pll_setup( ifreq, pllsetup); if (abs(target_freq - fclkout) <= freqtol) return fclkout; } } } return 0; } static struct clk clk_armpll = { .parent = &clk_sys, .get_rate = local_return_parent_rate, }; /* * Setup the USB PLL with a PLL structure */ static u32 local_clk_usbpll_setup(struct clk_pll_setup *pHCLKPllSetup) { u32 reg, tmp = local_clk_pll_setup(pHCLKPllSetup); reg = __raw_readl(LPC32XX_CLKPWR_USB_CTRL) & ~0x1FFFF; reg |= tmp; __raw_writel(reg, LPC32XX_CLKPWR_USB_CTRL); return clk_check_pll_setup(clk_usbpll.parent->rate, pHCLKPllSetup); } static int local_usbpll_enable(struct clk *clk, int enable) { u32 reg; int ret = 0; unsigned long timeout = jiffies + msecs_to_jiffies(20); reg = __raw_readl(LPC32XX_CLKPWR_USB_CTRL); __raw_writel(reg & ~(LPC32XX_CLKPWR_USBCTRL_CLK_EN2 | LPC32XX_CLKPWR_USBCTRL_PLL_PWRUP), LPC32XX_CLKPWR_USB_CTRL); __raw_writel(reg & ~LPC32XX_CLKPWR_USBCTRL_CLK_EN1, LPC32XX_CLKPWR_USB_CTRL); if (enable && usb_pll_valid && usb_pll_enable) { ret = -ENODEV; /* * If the PLL rate has been previously set, then the rate * in the PLL register is valid and can be enabled here. * Otherwise, it needs to be enabled as part of setrate. */ /* * Gate clock into PLL */ reg |= LPC32XX_CLKPWR_USBCTRL_CLK_EN1; __raw_writel(reg, LPC32XX_CLKPWR_USB_CTRL); /* * Enable PLL */ reg |= LPC32XX_CLKPWR_USBCTRL_PLL_PWRUP; __raw_writel(reg, LPC32XX_CLKPWR_USB_CTRL); /* * Wait for PLL to lock */ while (time_before(jiffies, timeout) && (ret == -ENODEV)) { reg = __raw_readl(LPC32XX_CLKPWR_USB_CTRL); if (reg & LPC32XX_CLKPWR_USBCTRL_PLL_STS) ret = 0; else udelay(10); } /* * Gate clock from PLL if PLL is locked */ if (ret == 0) { __raw_writel(reg | LPC32XX_CLKPWR_USBCTRL_CLK_EN2, LPC32XX_CLKPWR_USB_CTRL); } else { __raw_writel(reg & ~(LPC32XX_CLKPWR_USBCTRL_CLK_EN1 | LPC32XX_CLKPWR_USBCTRL_PLL_PWRUP), LPC32XX_CLKPWR_USB_CTRL); } } else if ((enable == 0) && usb_pll_valid && usb_pll_enable) { usb_pll_valid = 0; usb_pll_enable = 0; } return ret; } static unsigned long local_usbpll_round_rate(struct clk *clk, unsigned long rate) { u32 clkin, usbdiv; struct clk_pll_setup pllsetup; /* * Unlike other clocks, this clock has a KHz input rate, so bump * it up to work with the PLL function */ rate = rate * 1000; clkin = clk->get_rate(clk); usbdiv = (__raw_readl(LPC32XX_CLKPWR_USBCLK_PDIV) & LPC32XX_CLKPWR_USBPDIV_PLL_MASK) + 1; clkin = clkin / usbdiv; /* Try to find a good rate setup */ if (local_clk_find_pll_cfg(clkin, rate, &pllsetup) == 0) return 0; return clk_check_pll_setup(clkin, &pllsetup); } static int local_usbpll_set_rate(struct clk *clk, unsigned long rate) { int ret = -ENODEV; u32 clkin, usbdiv; struct clk_pll_setup pllsetup; /* * Unlike other clocks, this clock has a KHz input rate, so bump * it up to work with the PLL function */ rate = rate * 1000; clkin = clk->get_rate(clk->parent); usbdiv = (__raw_readl(LPC32XX_CLKPWR_USBCLK_PDIV) & LPC32XX_CLKPWR_USBPDIV_PLL_MASK) + 1; clkin = clkin / usbdiv; /* Try to find a good rate setup */ if (local_clk_find_pll_cfg(clkin, rate, &pllsetup) == 0) return -EINVAL; /* * Disable PLL clocks during PLL change */ local_usbpll_enable(clk, 0); pllsetup.analog_on = 0; local_clk_usbpll_setup(&pllsetup); /* * Start USB PLL and check PLL status */ usb_pll_valid = 1; usb_pll_enable = 1; ret = local_usbpll_enable(clk, 1); if (ret >= 0) clk->rate = clk_check_pll_setup(clkin, &pllsetup); return ret; } static struct clk clk_usbpll = { .parent = &osc_main, .set_rate = local_usbpll_set_rate, .enable = local_usbpll_enable, .rate = 48000, /* In KHz */ .get_rate = local_return_parent_rate, .round_rate = local_usbpll_round_rate, }; static u32 clk_get_hclk_div(void) { static const u32 hclkdivs[4] = {1, 2, 4, 4}; return hclkdivs[LPC32XX_CLKPWR_HCLKDIV_DIV_2POW( __raw_readl(LPC32XX_CLKPWR_HCLK_DIV))]; } static struct clk clk_hclk = { .parent = &clk_armpll, .get_rate = local_return_parent_rate, }; static struct clk clk_pclk = { .parent = &clk_armpll, .get_rate = local_return_parent_rate, }; static int local_onoff_enable(struct clk *clk, int enable) { u32 tmp; tmp = __raw_readl(clk->enable_reg); if (enable == 0) tmp &= ~clk->enable_mask; else tmp |= clk->enable_mask; __raw_writel(tmp, clk->enable_reg); return 0; } /* Peripheral clock sources */ static struct clk clk_timer0 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1, .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_TIMER0_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_timer1 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1, .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_TIMER1_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_timer2 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1, .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_TIMER2_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_timer3 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_TIMERS_PWMS_CLK_CTRL_1, .enable_mask = LPC32XX_CLKPWR_TMRPWMCLK_TIMER3_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_wdt = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_TIMER_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_PWMCLK_WDOG_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_vfp9 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_DEBUG_CTRL, .enable_mask = LPC32XX_CLKPWR_VFP_CLOCK_ENABLE_BIT, .get_rate = local_return_parent_rate, }; static struct clk clk_dma = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_DMA_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_DMACLKCTRL_CLK_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_uart3 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_UART_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_UARTCLKCTRL_UART3_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_uart4 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_UART_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_UARTCLKCTRL_UART4_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_uart5 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_UART_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_UARTCLKCTRL_UART5_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_uart6 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_UART_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_UARTCLKCTRL_UART6_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_i2c0 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_I2C_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_I2CCLK_I2C1CLK_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_i2c1 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_I2C_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_I2CCLK_I2C2CLK_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_i2c2 = { .parent = &clk_pclk, .enable = local_onoff_enable, .enable_reg = io_p2v(LPC32XX_USB_BASE + 0xFF4), .enable_mask = 0x4, .get_rate = local_return_parent_rate, }; static struct clk clk_ssp0 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_SSP_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_SSPCTRL_SSPCLK0_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_ssp1 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_SSP_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_SSPCTRL_SSPCLK1_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_kscan = { .parent = &osc_32KHz, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_KEY_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_KEYCLKCTRL_CLK_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_nand = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_NAND_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_NANDCLK_SLCCLK_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_i2s0 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_I2S_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_I2SCTRL_I2SCLK0_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_i2s1 = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_I2S_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_I2SCTRL_I2SCLK1_EN, .get_rate = local_return_parent_rate, }; static struct clk clk_net = { .parent = &clk_hclk, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_MACCLK_CTRL, .enable_mask = (LPC32XX_CLKPWR_MACCTRL_DMACLK_EN | LPC32XX_CLKPWR_MACCTRL_MMIOCLK_EN | LPC32XX_CLKPWR_MACCTRL_HRCCLK_EN), .get_rate = local_return_parent_rate, }; static struct clk clk_rtc = { .parent = &osc_32KHz, .rate = 1, /* 1 Hz */ .get_rate = local_return_parent_rate, }; static struct clk clk_usbd = { .parent = &clk_usbpll, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_USB_CTRL, .enable_mask = LPC32XX_CLKPWR_USBCTRL_HCLK_EN, .get_rate = local_return_parent_rate, }; static int tsc_onoff_enable(struct clk *clk, int enable) { u32 tmp; /* Make sure 32KHz clock is the selected clock */ tmp = __raw_readl(LPC32XX_CLKPWR_ADC_CLK_CTRL_1); tmp &= ~LPC32XX_CLKPWR_ADCCTRL1_PCLK_SEL; __raw_writel(tmp, LPC32XX_CLKPWR_ADC_CLK_CTRL_1); if (enable == 0) __raw_writel(0, clk->enable_reg); else __raw_writel(clk->enable_mask, clk->enable_reg); return 0; } static struct clk clk_tsc = { .parent = &osc_32KHz, .enable = tsc_onoff_enable, .enable_reg = LPC32XX_CLKPWR_ADC_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_ADC32CLKCTRL_CLK_EN, .get_rate = local_return_parent_rate, }; static int adc_onoff_enable(struct clk *clk, int enable) { u32 tmp; u32 divider; /* Use PERIPH_CLOCK */ tmp = __raw_readl(LPC32XX_CLKPWR_ADC_CLK_CTRL_1); tmp |= LPC32XX_CLKPWR_ADCCTRL1_PCLK_SEL; /* * Set clock divider so that we have equal to or less than * 4.5MHz clock at ADC */ divider = clk->get_rate(clk) / 4500000 + 1; tmp |= divider; __raw_writel(tmp, LPC32XX_CLKPWR_ADC_CLK_CTRL_1); /* synchronize rate of this clock w/ actual HW setting */ clk->rate = clk->get_rate(clk->parent) / divider; if (enable == 0) __raw_writel(0, clk->enable_reg); else __raw_writel(clk->enable_mask, clk->enable_reg); return 0; } static struct clk clk_adc = { .parent = &clk_pclk, .enable = adc_onoff_enable, .enable_reg = LPC32XX_CLKPWR_ADC_CLK_CTRL, .enable_mask = LPC32XX_CLKPWR_ADC32CLKCTRL_CLK_EN, .get_rate = local_return_parent_rate, }; static int mmc_onoff_enable(struct clk *clk, int enable) { u32 tmp; tmp = __raw_readl(LPC32XX_CLKPWR_MS_CTRL) & ~LPC32XX_CLKPWR_MSCARD_SDCARD_EN; /* If rate is 0, disable clock */ if (enable != 0) tmp |= LPC32XX_CLKPWR_MSCARD_SDCARD_EN; __raw_writel(tmp, LPC32XX_CLKPWR_MS_CTRL); return 0; } static unsigned long mmc_get_rate(struct clk *clk) { u32 div, rate, oldclk; /* The MMC clock must be on when accessing an MMC register */ oldclk = __raw_readl(LPC32XX_CLKPWR_MS_CTRL); __raw_writel(oldclk | LPC32XX_CLKPWR_MSCARD_SDCARD_EN, LPC32XX_CLKPWR_MS_CTRL); div = __raw_readl(LPC32XX_CLKPWR_MS_CTRL); __raw_writel(oldclk, LPC32XX_CLKPWR_MS_CTRL); /* Get the parent clock rate */ rate = clk->parent->get_rate(clk->parent); /* Get the MMC controller clock divider value */ div = div & LPC32XX_CLKPWR_MSCARD_SDCARD_DIV(0xf); if (!div) div = 1; return rate / div; } static unsigned long mmc_round_rate(struct clk *clk, unsigned long rate) { unsigned long div, prate; /* Get the parent clock rate */ prate = clk->parent->get_rate(clk->parent); if (rate >= prate) return prate; div = prate / rate; if (div > 0xf) div = 0xf; return prate / div; } static int mmc_set_rate(struct clk *clk, unsigned long rate) { u32 oldclk, tmp; unsigned long prate, div, crate = mmc_round_rate(clk, rate); prate = clk->parent->get_rate(clk->parent); div = prate / crate; /* The MMC clock must be on when accessing an MMC register */ oldclk = __raw_readl(LPC32XX_CLKPWR_MS_CTRL); __raw_writel(oldclk | LPC32XX_CLKPWR_MSCARD_SDCARD_EN, LPC32XX_CLKPWR_MS_CTRL); tmp = __raw_readl(LPC32XX_CLKPWR_MS_CTRL) & ~LPC32XX_CLKPWR_MSCARD_SDCARD_DIV(0xf); tmp |= LPC32XX_CLKPWR_MSCARD_SDCARD_DIV(div); __raw_writel(tmp, LPC32XX_CLKPWR_MS_CTRL); __raw_writel(oldclk, LPC32XX_CLKPWR_MS_CTRL); return 0; } static struct clk clk_mmc = { .parent = &clk_armpll, .set_rate = mmc_set_rate, .get_rate = mmc_get_rate, .round_rate = mmc_round_rate, .enable = mmc_onoff_enable, .enable_reg = LPC32XX_CLKPWR_MS_CTRL, .enable_mask = LPC32XX_CLKPWR_MSCARD_SDCARD_EN, }; static unsigned long clcd_get_rate(struct clk *clk) { u32 tmp, div, rate, oldclk; /* The LCD clock must be on when accessing an LCD register */ oldclk = __raw_readl(LPC32XX_CLKPWR_LCDCLK_CTRL); __raw_writel(oldclk | LPC32XX_CLKPWR_LCDCTRL_CLK_EN, LPC32XX_CLKPWR_LCDCLK_CTRL); tmp = __raw_readl(io_p2v(LPC32XX_LCD_BASE + CLCD_TIM2)); __raw_writel(oldclk, LPC32XX_CLKPWR_LCDCLK_CTRL); rate = clk->parent->get_rate(clk->parent); /* Only supports internal clocking */ if (tmp & TIM2_BCD) return rate; div = (tmp & 0x1F) | ((tmp & 0xF8) >> 22); tmp = rate / (2 + div); return tmp; } static int clcd_set_rate(struct clk *clk, unsigned long rate) { u32 tmp, prate, div, oldclk; /* The LCD clock must be on when accessing an LCD register */ oldclk = __raw_readl(LPC32XX_CLKPWR_LCDCLK_CTRL); __raw_writel(oldclk | LPC32XX_CLKPWR_LCDCTRL_CLK_EN, LPC32XX_CLKPWR_LCDCLK_CTRL); tmp = __raw_readl(io_p2v(LPC32XX_LCD_BASE + CLCD_TIM2)) | TIM2_BCD; prate = clk->parent->get_rate(clk->parent); if (rate < prate) { /* Find closest divider */ div = prate / rate; if (div >= 2) { div -= 2; tmp &= ~TIM2_BCD; } tmp &= ~(0xF800001F); tmp |= (div & 0x1F); tmp |= (((div >> 5) & 0x1F) << 27); } __raw_writel(tmp, io_p2v(LPC32XX_LCD_BASE + CLCD_TIM2)); __raw_writel(oldclk, LPC32XX_CLKPWR_LCDCLK_CTRL); return 0; } static unsigned long clcd_round_rate(struct clk *clk, unsigned long rate) { u32 prate, div; prate = clk->parent->get_rate(clk->parent); if (rate >= prate) rate = prate; else { div = prate / rate; if (div > 0x3ff) div = 0x3ff; rate = prate / div; } return rate; } static struct clk clk_lcd = { .parent = &clk_hclk, .set_rate = clcd_set_rate, .get_rate = clcd_get_rate, .round_rate = clcd_round_rate, .enable = local_onoff_enable, .enable_reg = LPC32XX_CLKPWR_LCDCLK_CTRL, .enable_mask = LPC32XX_CLKPWR_LCDCTRL_CLK_EN, }; static void local_clk_disable(struct clk *clk) { /* Don't attempt to disable clock if it has no users */ if (clk->usecount > 0) { clk->usecount--; /* Only disable clock when it has no more users */ if ((clk->usecount == 0) && (clk->enable)) clk->enable(clk, 0); /* Check parent clocks, they may need to be disabled too */ if (clk->parent) local_clk_disable(clk->parent); } } static int local_clk_enable(struct clk *clk) { int ret = 0; /* Enable parent clocks first and update use counts */ if (clk->parent) ret = local_clk_enable(clk->parent); if (!ret) { /* Only enable clock if it's currently disabled */ if ((clk->usecount == 0) && (clk->enable)) ret = clk->enable(clk, 1); if (!ret) clk->usecount++; else if (clk->parent) local_clk_disable(clk->parent); } return ret; } /* * clk_enable - inform the system when the clock source should be running. */ int clk_enable(struct clk *clk) { int ret; unsigned long flags; spin_lock_irqsave(&global_clkregs_lock, flags); ret = local_clk_enable(clk); spin_unlock_irqrestore(&global_clkregs_lock, flags); return ret; } EXPORT_SYMBOL(clk_enable); /* * clk_disable - inform the system when the clock source is no longer required */ void clk_disable(struct clk *clk) { unsigned long flags; spin_lock_irqsave(&global_clkregs_lock, flags); local_clk_disable(clk); spin_unlock_irqrestore(&global_clkregs_lock, flags); } EXPORT_SYMBOL(clk_disable); /* * clk_get_rate - obtain the current clock rate (in Hz) for a clock source */ unsigned long clk_get_rate(struct clk *clk) { return clk->get_rate(clk); } EXPORT_SYMBOL(clk_get_rate); /* * clk_set_rate - set the clock rate for a clock source */ int clk_set_rate(struct clk *clk, unsigned long rate) { int ret = -EINVAL; /* * Most system clocks can only be enabled or disabled, with * the actual rate set as part of the peripheral dividers * instead of high level clock control */ if (clk->set_rate) ret = clk->set_rate(clk, rate); return ret; } EXPORT_SYMBOL(clk_set_rate); /* * clk_round_rate - adjust a rate to the exact rate a clock can provide */ long clk_round_rate(struct clk *clk, unsigned long rate) { if (clk->round_rate) rate = clk->round_rate(clk, rate); else rate = clk->get_rate(clk); return rate; } EXPORT_SYMBOL(clk_round_rate); /* * clk_set_parent - set the parent clock source for this clock */ int clk_set_parent(struct clk *clk, struct clk *parent) { /* Clock re-parenting is not supported */ return -EINVAL; } EXPORT_SYMBOL(clk_set_parent); /* * clk_get_parent - get the parent clock source for this clock */ struct clk *clk_get_parent(struct clk *clk) { return clk->parent; } EXPORT_SYMBOL(clk_get_parent); #define _REGISTER_CLOCK(d, n, c) \ { \ .dev_id = (d), \ .con_id = (n), \ .clk = &(c), \ }, static struct clk_lookup lookups[] = { _REGISTER_CLOCK(NULL, "osc_32KHz", osc_32KHz) _REGISTER_CLOCK(NULL, "osc_pll397", osc_pll397) _REGISTER_CLOCK(NULL, "osc_main", osc_main) _REGISTER_CLOCK(NULL, "sys_ck", clk_sys) _REGISTER_CLOCK(NULL, "arm_pll_ck", clk_armpll) _REGISTER_CLOCK(NULL, "ck_pll5", clk_usbpll) _REGISTER_CLOCK(NULL, "hclk_ck", clk_hclk) _REGISTER_CLOCK(NULL, "pclk_ck", clk_pclk) _REGISTER_CLOCK(NULL, "timer0_ck", clk_timer0) _REGISTER_CLOCK(NULL, "timer1_ck", clk_timer1) _REGISTER_CLOCK(NULL, "timer2_ck", clk_timer2) _REGISTER_CLOCK(NULL, "timer3_ck", clk_timer3) _REGISTER_CLOCK(NULL, "vfp9_ck", clk_vfp9) _REGISTER_CLOCK(NULL, "clk_dmac", clk_dma) _REGISTER_CLOCK("pnx4008-watchdog", NULL, clk_wdt) _REGISTER_CLOCK(NULL, "uart3_ck", clk_uart3) _REGISTER_CLOCK(NULL, "uart4_ck", clk_uart4) _REGISTER_CLOCK(NULL, "uart5_ck", clk_uart5) _REGISTER_CLOCK(NULL, "uart6_ck", clk_uart6) _REGISTER_CLOCK("pnx-i2c.0", NULL, clk_i2c0) _REGISTER_CLOCK("pnx-i2c.1", NULL, clk_i2c1) _REGISTER_CLOCK("pnx-i2c.2", NULL, clk_i2c2) _REGISTER_CLOCK("dev:ssp0", NULL, clk_ssp0) _REGISTER_CLOCK("dev:ssp1", NULL, clk_ssp1) _REGISTER_CLOCK("lpc32xx_keys.0", NULL, clk_kscan) _REGISTER_CLOCK("lpc32xx-nand.0", "nand_ck", clk_nand) _REGISTER_CLOCK("lpc32xx-adc", NULL, clk_adc) _REGISTER_CLOCK(NULL, "i2s0_ck", clk_i2s0) _REGISTER_CLOCK(NULL, "i2s1_ck", clk_i2s1) _REGISTER_CLOCK("ts-lpc32xx", NULL, clk_tsc) _REGISTER_CLOCK("dev:mmc0", NULL, clk_mmc) _REGISTER_CLOCK("lpc-eth.0", NULL, clk_net) _REGISTER_CLOCK("dev:clcd", NULL, clk_lcd) _REGISTER_CLOCK("lpc32xx_udc", "ck_usbd", clk_usbd) _REGISTER_CLOCK("lpc32xx_rtc", NULL, clk_rtc) }; static int __init clk_init(void) { int i; for (i = 0; i < ARRAY_SIZE(lookups); i++) clkdev_add(&lookups[i]); /* * Setup muxed SYSCLK for HCLK PLL base -this selects the * parent clock used for the ARM PLL and is used to derive * the many system clock rates in the device. */ if (clk_is_sysclk_mainosc() != 0) clk_sys.parent = &osc_main; else clk_sys.parent = &osc_pll397; clk_sys.rate = clk_sys.parent->rate; /* Compute the current ARM PLL and USB PLL frequencies */ local_update_armpll_rate(); /* Compute HCLK and PCLK bus rates */ clk_hclk.rate = clk_hclk.parent->rate / clk_get_hclk_div(); clk_pclk.rate = clk_pclk.parent->rate / clk_get_pclk_div(); /* * Enable system clocks - this step is somewhat formal, as the * clocks are already running, but it does get the clock data * inline with the actual system state. Never disable these * clocks as they will only stop if the system is going to sleep. * In that case, the chip/system power management functions will * handle clock gating. */ if (clk_enable(&clk_hclk) || clk_enable(&clk_pclk)) printk(KERN_ERR "Error enabling system HCLK and PCLK\n"); /* * Timers 0 and 1 were enabled and are being used by the high * resolution tick function prior to this driver being initialized. * Tag them now as used. */ if (clk_enable(&clk_timer0) || clk_enable(&clk_timer1)) printk(KERN_ERR "Error enabling timer tick clocks\n"); return 0; } core_initcall(clk_init);
jimrhoskins/stevedore
app/models/repository.rb
<filename>app/models/repository.rb class Repository < ActiveRecord::Base has_many :repository_images, -> { order "idx" } has_many :images, through: :repository_images has_many :tokens has_many :tags def to_param name end def self.put(name, images_json) repo = find_or_create_by(name: name) if images_json images_json.each_with_index do |img, index| repo.repository_images.find_or_create_by( image: Image.find_or_create_by(uid: img["id"]), tag: img["Tag"], ).update_attributes!(idx: index) end end repo end def json repository_images.map do |ri| { "id" => ri.image.uid, "Tag" => ri.tag } end end end
RakeshShrestha/kigs
framework/ImGui/Headers/ImGuiCustom.h
#pragma once #include "imgui.h" #include "imgui_internal.h" #include "CoreSTL.h" namespace ImGui { bool TextureButton(const std::string& texture_name, ImVec2 size = ImVec2(0, 0), const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); void Texture(const std::string& texture_name, ImVec2 size = ImVec2(0, 0), const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), const ImVec4& tint_col = ImVec4(1, 1, 1, 1), const ImVec4& border_col = ImVec4(0, 0, 0, 0)); void CenterWidget(float widget_width); void CenterText(const std::string& txt, bool wrapped=false); // Align the next widget from the right of the window, with enough space for "nb_of_elements" (to account for spacing between elements) totaling "sum_of_elements_width" of size // Returns the width available between current cursor pos and the right aligned element float SameLineAlignRight(float sum_of_elements_width, u32 nb_of_elements = 1); float GetRemainingWidth(float sum_of_elements_width, u32 nb_of_elements = 1); // Get the size one element should have to fit "count" of them in a single line perfectly float GetElementWidthForSubdivision(int count); void Label(const std::string& txt); void ButtonLabel(const std::string& txt, v2f size = v2f(0, 0)); bool ButtonWithLabel(const std::string& label, const std::string txt, float label_width = 0.0f, v2f size = v2f(0, 0)); void Strikethrough(float offset_before = 0.0f, float offset_after = 0.0f, ImColor color = ImColor(0, 0, 0, 255)); template<auto F, typename ... Args> inline auto FlowLayout(const std::string& str, Args&&... args) { auto window = ImGui::GetCurrentWindow(); auto remaining = ImGui::GetContentRegionMaxAbs().x - window->DC.CursorPosPrevLine.x; remaining -= ImGui::GetStyle().ItemSpacing.x; remaining -= ImGui::GetStyle().FramePadding.x * 2; if (ImGui::CalcTextSize(str.c_str(), 0, true).x < remaining) ImGui::SameLine(); return F(str.c_str(), FWD(args)...); } }
broadinstitute/thelma
internal/thelma/render/helmfile/stateval/stateval.go
<reponame>broadinstitute/thelma // Package stateval is used for generating Helmfile state values. // State values are consumed in both helmfile.yaml and values.yaml.gotmpl files. // // Note: We serialize yaml keys with upper case name for greater readability in Go templates. // (so that we can use .Values.Release.ChartPath and not .Values.release.chartPath) package stateval import "github.com/broadinstitute/thelma/internal/thelma/state/api/terra" // AppValues -- the full set of helmfile state values for rendering application manifests // (used by $THELMA_HOME/helmfile.yaml) type AppValues struct { // Release the release that is being rendered Release Release `yaml:"Release"` // ChartPath filesystem path for the chart that is being rendered ChartPath string `yaml:"ChartPath"` // Destination destination where the release is being deployed Destination Destination `yaml:"Destination"` // Environment environment where the release is being deployed (for app releases only) Environment Environment `yaml:"Environment,omitempty"` // Cluster cluster where the release is being deployed Cluster Cluster `yaml:"Cluster,omitempty"` } // ArgoAppValues -- the full set of helmfile state values for rendering argo apps // (used by $THELMA_HOME/argocd/application/helmfile.yaml) type ArgoAppValues struct { // Release the release this Argo app will deploy Release Release `yaml:"Release"` // Destination destination where this Argo app will deploy the release to Destination Destination `yaml:"Destination"` // ArgoApp information about the cluster and project the ArgoApp will deploy to ArgoApp ArgoApp `yaml:"ArgoApp"` // Environment environment where the release is being deployed (for app releases only) Environment Environment `yaml:"Environment,omitempty"` // Cluster cluster where the release is being deployed Cluster Cluster `yaml:"Cluster"` } // ArgoProjectValues -- the full set of helmfile state values for rendering argo projects // (used by $THELMA_HOME/argocd/projects/helmfile.yaml) type ArgoProjectValues struct { // Destination environment or cluster that apps in this project will deploy to Destination Destination `yaml:"Destination"` // ArgoProject information about the Argo project that is being rendered ArgoProject ArgoProject `yaml:"ArgoProject"` } // BuildAppValues generates an AppValues for the given release func BuildAppValues(r terra.Release, chartPath string) AppValues { values := AppValues{ Release: forRelease(r), ChartPath: chartPath, Destination: forDestination(r.Destination()), } if r.Destination().IsEnvironment() { values.Environment = forEnvironment(r.Destination().(terra.Environment)) } values.Cluster = forCluster(r.Cluster()) return values } // BuildArgoAppValues generates an ArgoAppValues for the given release func BuildArgoAppValues(r terra.Release) ArgoAppValues { values := ArgoAppValues{ Release: forRelease(r), Destination: forDestination(r.Destination()), ArgoApp: forArgoApp(r), } if r.Destination().IsEnvironment() { values.Environment = forEnvironment(r.Destination().(terra.Environment)) } values.Cluster = forCluster(r.Cluster()) return values } // BuildArgoProjectValues generates an ArgoProjectValues for the given destination func BuildArgoProjectValues(d terra.Destination) ArgoProjectValues { return ArgoProjectValues{ Destination: forDestination(d), ArgoProject: forArgoProject(d), } }
GoddamnIndustries/GoddamnEngine
Source/Projects/GoddamnCore/Source/GoddamnEngine/Core/IO/StreamDelegate.h
// ========================================================================================== // Copyright (C) Goddamn Industries 2018. All Rights Reserved. // // This software or any its part is distributed under terms of Goddamn Industries End User // License Agreement. By downloading or using this software or any its part you agree with // terms of Goddamn Industries End User License Agreement. // ========================================================================================== /*! * @file * Delegated stream interfaces. */ #pragma once #include <GoddamnEngine/Include.h> #include <GoddamnEngine/Core/IO/Stream.h> GD_NAMESPACE_BEGIN // **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~** //! Delegated input stream implementation. // **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~** class DelegatedInputStream : public InputStream { protected: InputStream& m_InputStream; public: /*! * Initializes delegated input stream. * @param inputStream The stream that implements current delegated stream. */ GDINL explicit DelegatedInputStream(InputStream& inputStream) : m_InputStream(inputStream) { } public: // ------------------------------------------------------------------------------------------ // BaseStream interface. // ------------------------------------------------------------------------------------------ /*! * Returns true if this stream is valid and ready for I/O operations. */ GDINT virtual bool IsValid() const override { return m_InputStream.IsValid(); } // ------------------------------------------------------------------------------------------ // InputStream interface. // ------------------------------------------------------------------------------------------ /*! * Returns current position in stream or -1 on error. */ GDINT virtual SizeTp GetPosition() const override { return m_InputStream.GetPosition(); } /*! * Returns size of data that stream handles or -1 on error. */ GDINT virtual SizeTp GetLength() const override { return m_InputStream.GetLength(); } /*! * Closes this stream and releases all resources associated with this stream. */ GDINT virtual void Close() override { m_InputStream.Close(); } /*! * Reposition this stream to new specified position. * * @param offset The offset in bytes from specified origin. * @param origin Defines origin from which point make offset. * * @returns New position in file, -1 on error. */ GDINT virtual SizeTp Seek(PtrDiffTp const offset, SeekOrigin const origin = SeekOrigin::Current) override { return m_InputStream.Seek(offset, origin); } /*! * Reads next byte from input stream. * @returns Read byte from stream, or -1 on the error. */ GDINT virtual Int16 Read() override { return m_InputStream.Read(); } /*! * Reads several elements from input stream. * * @param array Output memory to which data would be written. * @param size Length of the element in bytes, * @param count Amount of the elements. * * @returns Total amount of elements read. */ GDINT virtual SizeTp Read(Handle const array, SizeTp const size, SizeTp const count) override final { return m_InputStream.Read(array, size, count); } }; // class DelegatedInputStream // **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~** //! Delegated input stream implementation. // **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~** class DelegatedOutputStream : public OutputStream { protected: OutputStream& m_OutputStream; public: /*! * Initializes delegated input stream. * @param inputStream The stream that implements current delegated stream. */ GDINL explicit DelegatedOutputStream(OutputStream& outputStream) : m_OutputStream(outputStream) { } // ------------------------------------------------------------------------------------------ // BaseStream interface. // ------------------------------------------------------------------------------------------ /*! * Returns true if this stream is valid and ready for I/O operations. */ GDINT virtual bool IsValid() const override { return m_OutputStream.IsValid(); } // ------------------------------------------------------------------------------------------ // InputStream interface. // ------------------------------------------------------------------------------------------ /*! * Closes this stream and releases all resources associated with this stream. */ GDINT virtual void Close() override { m_OutputStream.Close(); } /*! * Writes all unsaved to the resource. */ GDINT virtual void Flush() override { m_OutputStream.Flush(); } /*! * Writes a byte into output. * * @param byte Value that would be written to output. * @returns True if operation succeeded. */ GDAPI virtual bool Write(Byte const byte) override final { return m_OutputStream.Write(byte); } /*! * Writes several elements to output. * * @param array Input elements that would be written. * @param size Length of the element in bytes, * @param count Amount of the elements. * * @returns Total amount of elements written. */ GDINT virtual SizeTp Write(CHandle const array, SizeTp const size, SizeTp const count) override final { return m_OutputStream.Write(array, size, count); } }; // class DelegatedOutputStream GD_NAMESPACE_END
OscarGame/blade
Source/BladeBase/source/interface_imp/MemoryFileDevice.cc
/******************************************************************** created: 2014/04/02 filename: MemoryFileDevice.cc author: Crazii purpose: *********************************************************************/ #include <BladePCH.h> #include "MemoryFileDevice.h" namespace Blade { const TString MemoryFileDevice::MEMORY_FILE_TYPE = BTString("MemoryFileDevice"); ////////////////////////////////////////////////////////////////////////// MemoryFileDevice::MemoryFileDevice() :mRoot( BTString("/") ) ,mLoaded(false) { } ////////////////////////////////////////////////////////////////////////// MemoryFileDevice::~MemoryFileDevice() { } /************************************************************************/ /* IDevice interfaces */ /************************************************************************/ /** @brief open a device */ bool MemoryFileDevice::open() { mLoaded = true; return true; } /** @brief check if it is open */ bool MemoryFileDevice::isOpen() const { return mLoaded; } /** @brief close the device */ void MemoryFileDevice::close() { mPathName = TString::EMPTY; mLoaded = false; mRoot.clear(); } /** @brief reset the device */ bool MemoryFileDevice::reset() { this->close(); return this->open(); } /************************************************************************/ /* IFileDevice interfaces */ /************************************************************************/ ////////////////////////////////////////////////////////////////////////// const TString& MemoryFileDevice::getType() const noexcept { return MEMORY_FILE_TYPE; } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::isReadOnly() const noexcept { return false; } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::existFile(const TString& filepathname) const noexcept { ScopedLock lock(mLock); TString fileName; MemoryNode* node = this->locateParent(filepathname, fileName); return node != NULL && node->mFiles.find( fileName ) != node->mFiles.end(); } ////////////////////////////////////////////////////////////////////////// HSTREAM MemoryFileDevice::openFile(const TString& filepathname,IStream::EAccessMode mode/* = IStream::AM_READ*/) const noexcept { ScopedLock lock(mLock); TString fileName; MemoryNode* node = this->locateParent(filepathname, fileName); if( node != NULL ) { MemoryNode::FileList::iterator i = node->mFiles.find(fileName); if( i != node->mFiles.end() ) { return HSTREAM( i->second->clone(mPathName + BTString("/") + filepathname, mode, true) ); } } return HSTREAM::EMPTY; } ////////////////////////////////////////////////////////////////////////// HSTREAM MemoryFileDevice::createFile(const TString& filepathname, IStream::EAccessMode mode) noexcept { ScopedLock lock(mLock); TString fileName; MemoryNode* node = this->locateParent(filepathname, fileName); if( node != NULL ) { std::pair<MemoryNode::FileList::iterator, bool> ret = node->mFiles.insert( std::make_pair(fileName, (MemoryStream*)NULL ) ); if( ret.second ) { //create prototype ret.first->second = BLADE_NEW MemoryStream(filepathname, Memory::getResourcePool() ); return HSTREAM(ret.first->second->clone(mPathName + BTString("/") + filepathname, mode, true)); } } return HSTREAM::EMPTY; } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::deleteFile(const TString& filepathname) noexcept { ScopedLock lock(mLock); TString fileName; index_t subPos = 0; if(TStringHelper::isStartWith(filepathname, mPathName)) subPos = mPathName.size(); MemoryNode* node = this->locateParent(filepathname.substr_nocopy(subPos), fileName); if( node != NULL ) { MemoryNode::FileList::iterator i = node->mFiles.find( fileName ); if( i != node->mFiles.end() ) { //delete MemoryStream prototype BLADE_DELETE i->second; node->mFiles.erase(i); } } return true; } ////////////////////////////////////////////////////////////////////////// void MemoryFileDevice::findFile(TStringParam& result, const TString& pattern, int findFlag/* = FF_DIR|FF_FILE*/) { ScopedLock lock(mLock); this->findFileImpl(result, pattern, findFlag); } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::createDirectory(const TString& name, bool bRecursive/* = false*/) { TStringTokenizer tokenizer; tokenizer.tokenize( name, TEXT("/\\") ); if( tokenizer.size() == 0 ) return false; ScopedLock lock(mLock); MemoryNode* node = &mRoot; //find parent node: for(size_t i = 0; i < tokenizer.size(); ++i) { if( tokenizer.size() == 1 || i == tokenizer.size() - 1 ) break; const TString& subNodeName = tokenizer[i]; //find sub node by subNodeName MemoryNode::SubFolder::const_iterator iter = node->mSubFolders.find( subNodeName ); if( iter == node->mSubFolders.end() ) { if( !bRecursive ) return false; MemoryNode* newNode = BLADE_NEW MemoryNode(subNodeName); iter = node->mSubFolders.insert( std::make_pair(subNodeName, newNode) ).first; } node = iter->second; } if( node == NULL ) return false; const TString& dirName = tokenizer[ tokenizer.size() - 1]; std::pair<MemoryNode::SubFolder::iterator, bool> ret = node->mSubFolders.insert( std::make_pair(dirName, (MemoryNode*)NULL) ); //already exist if( !ret.second ) return !ret.second; //add new node ret.first->second = BLADE_NEW MemoryNode(dirName); return true; } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::deleteDirectory(const TString& name) { ScopedLock lock(mLock); TString dirName; MemoryNode* node = this->locateParent(name, dirName); if( node != NULL ) { MemoryNode::SubFolder::iterator i = node->mSubFolders.find( dirName ); if( i != node->mSubFolders.end() && i->second->mFiles.size() != 0 && i->second->mSubFolders.size() != 0 ) { BLADE_DELETE i->second; node->mSubFolders.erase(i); } } return false; } ////////////////////////////////////////////////////////////////////////// bool MemoryFileDevice::existDirectory(const TString& name) const noexcept { ScopedLock lock(mLock); TString dirName; MemoryNode* node = this->locateParent(name, dirName); return node != NULL && node->mSubFolders.find( dirName ) != node->mSubFolders.end(); } ////////////////////////////////////////////////////////////////////////// MemoryFileDevice::MemoryNode* MemoryFileDevice::locateParent(const TString& path, TString& name, TString* prefix/* = NULL*/) const { if( path == TString::EMPTY ) return NULL; TStringTokenizer tokenizer; tokenizer.tokenize( path, TEXT("/\\") ); if( tokenizer.size() == 0 ) return NULL; MemoryNode* node = &mRoot; //find parent node: for(size_t i = 0; i < tokenizer.size(); ++i) { if( tokenizer.size() == 1 || i == tokenizer.size() - 1 ) break; const TString& subNodeName = tokenizer[i]; //find sub node by subNodeName MemoryNode::SubFolder::const_iterator iter = node->mSubFolders.find( subNodeName ); if( iter == node->mSubFolders.end() ) return NULL; node = iter->second; } name = tokenizer[ tokenizer.size() - 1]; if( prefix != NULL ) { TStringConcat concat( tokenizer[0] ); for(size_t i = 1; i < tokenizer.size()-1; ++i) concat += BTString("/")+ tokenizer[i]; *prefix = concat; } return node; } ////////////////////////////////////////////////////////////////////////// void MemoryFileDevice::findFileImpl(TStringParam& result, const TString& pattern, int findFlag) { if( (findFlag&(FF_DIR|FF_FILE)) == 0 ) return; TString directory; TString fileWildcard; TStringHelper::getFilePathInfo(pattern, directory, fileWildcard); TString dummy; MemoryNode* node = this->locateParent( directory + BTString("/*"), dummy); if( node != NULL ) { for(MemoryNode::SubFolder::const_iterator i = node->mSubFolders.begin(); i != node->mSubFolders.end(); ++i) { MemoryNode* subNode = i->second; TStringConcat nodeFullPath = directory + BTString("/") + subNode->mName; if( (findFlag&FF_DIR) && TStringHelper::wildcardMatch(fileWildcard, subNode->mName) ) result.push_back( nodeFullPath ); if( (findFlag&FF_RECURSIVE) ) this->findFileImpl(result, nodeFullPath + BTString("/") + fileWildcard, findFlag); } for(MemoryNode::FileList::const_iterator i = node->mFiles.begin(); i != node->mFiles.end(); ++i) { MemoryStream* stream = i->second; const TString& nodeFullPath = stream->getName(); TString prefix, fileName; TStringHelper::getFilePathInfo(stream->getName(), prefix, fileName); #if BLADE_DEBUG assert( nodeFullPath == directory + BTString("/") + fileName ); #endif if( (findFlag&FF_FILE) && TStringHelper::wildcardMatch(fileWildcard, fileName) ) result.push_back( nodeFullPath ); } } } }//namespace Blade
rayminr/unitils
unitils-test/src/test/java/org/unitils/dbunit/DbUnitModuleDataSetOperationTest.java
<filename>unitils-test/src/test/java/org/unitils/dbunit/DbUnitModuleDataSetOperationTest.java /* * Copyright 2008, Unitils.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.unitils.dbunit; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.unitils.database.SQLUnitils.executeUpdate; import static org.unitils.database.SQLUnitils.executeUpdateQuietly; import static org.unitils.database.SQLUnitils.getItemAsString; import java.util.Properties; import javax.sql.DataSource; import org.dbunit.dataset.IDataSet; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.unitils.UnitilsJUnit4; import org.unitils.core.ConfigurationLoader; import org.unitils.database.annotations.TestDataSource; import org.unitils.dbunit.annotation.DataSet; import org.unitils.dbunit.datasetloadstrategy.DataSetLoadStrategy; import org.unitils.dbunit.util.DbUnitDatabaseConnection; /** * Tests DbUnitModule's feature for using different DataSetOperations * * @author <NAME> * @author <NAME> */ public class DbUnitModuleDataSetOperationTest extends UnitilsJUnit4 { private DbUnitModule dbUnitModule; @TestDataSource private DataSource dataSource; @Before public void setUp() throws Exception { Properties configuration = new ConfigurationLoader().loadConfiguration(); dbUnitModule = new DbUnitModule(); dbUnitModule.init(configuration); dropTestTables(); createTestTables(); MockDataSetLoadStrategy.operationExecuted = false; } @After public void tearDown() throws Exception { dropTestTables(); } @Test public void testLoadDataSet_defaultDataSetOperation() throws Exception { dbUnitModule.insertDataSet(DataSetTest.class.getMethod("testMethod1"), new DataSetTest()); assertLoadedDataSet("DbUnitModuleDataSetOperationTest$DataSetTest.xml"); } @Test public void testLoadDataSet_customDataSetOperation() throws Exception { dbUnitModule.insertDataSet(DataSetTest.class.getMethod("testMethodCustomDataSetOperation"), new DataSetTest()); assertTrue(MockDataSetLoadStrategy.operationExecuted); } /** * Utility method to assert that the correct data set was loaded. * * @param expectedDataSetName the name of the data set, not null */ private void assertLoadedDataSet(String expectedDataSetName) { String dataSet = getItemAsString("select dataset from test", dataSource); assertEquals(expectedDataSetName, dataSet); } /** * Creates the test tables. */ private void createTestTables() { executeUpdate("create table test(dataset varchar(100))", dataSource); } /** * Removes the test database tables */ private void dropTestTables() { executeUpdateQuietly("drop table test", dataSource); } /** * Test class with a class level dataset */ @DataSet public class DataSetTest { public void testMethod1() { } @DataSet(loadStrategy = MockDataSetLoadStrategy.class) public void testMethodCustomDataSetOperation() { } } public static class MockDataSetLoadStrategy implements DataSetLoadStrategy { private static boolean operationExecuted; public void execute(DbUnitDatabaseConnection dbUnitDatabaseConnection, IDataSet dataSet) { operationExecuted = true; } } }
vault-the/changes
migrations/versions/47e23df5a7ed_add_testgroup_result.py
<filename>migrations/versions/47e23df5a7ed_add_testgroup_result.py """Add TestGroup.result Revision ID: 47e23df5a7ed Revises: 520eba1ce36e Create Date: 2013-11-05 14:01:08.310862 """ # revision identifiers, used by Alembic. revision = '47e23df5a7ed' down_revision = '520eba1ce36e' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.add_column('testgroup', sa.Column('result', sa.Enum(), nullable=True)) ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.drop_column('testgroup', 'result') ### end Alembic commands ###