hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 98
values | lang
stringclasses 21
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
118
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
118
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
135
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1
1.03M
| max_line_length
int64 2
1.03M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af516fa3ba27b060e07e80c89c7397cde58dac91
| 1,863
|
py
|
Python
|
dfvo/libs/geometry/reprojection.py
|
best-of-acrv/toposlam
|
3ec1dda210722d86bf77f101dca57ba27baa5833
|
[
"BSD-3-Clause"
] | 26
|
2021-06-21T09:31:30.000Z
|
2022-03-22T12:08:58.000Z
|
dfvo/libs/geometry/reprojection.py
|
best-of-acrv/toposlam
|
3ec1dda210722d86bf77f101dca57ba27baa5833
|
[
"BSD-3-Clause"
] | 1
|
2021-06-22T12:47:13.000Z
|
2021-06-30T23:17:57.000Z
|
dfvo/libs/geometry/reprojection.py
|
best-of-acrv/toposlam
|
3ec1dda210722d86bf77f101dca57ba27baa5833
|
[
"BSD-3-Clause"
] | 2
|
2021-09-02T06:04:12.000Z
|
2021-12-17T05:44:25.000Z
|
''''''
'''
@Author: Huangying Zhan (huangying.zhan.work@gmail.com)
@Date: 2019-09-01
@Copyright: Copyright (C) Huangying Zhan 2020. All rights reserved. Please refer to the license file.
@LastEditTime: 2020-05-27
@LastEditors: Huangying Zhan
@Description: Layer to transform pixel coordinates from one view to another view via
backprojection, transformation in 3D, and projection
'''
import torch
import torch.nn as nn
from dfvo.libs.geometry.backprojection import Backprojection
from dfvo.libs.geometry.transformation3d import Transformation3D
from dfvo.libs.geometry.projection import Projection
class Reprojection(nn.Module):
"""Layer to transform pixel coordinates from one view to another view via
backprojection, transformation in 3D, and projection
"""
def __init__(self, height, width):
"""
Args:
height (int): image height
width (int): image width
"""
super(Reprojection, self).__init__()
# layers
self.backproj = Backprojection(height, width)
self.transform = Transformation3D()
self.project = Projection(height, width)
def forward(self, depth, T, K, inv_K, normalized=True):
"""Forward pass
Args:
depth (tensor, [Nx1xHxW]): depth map
T (tensor, [Nx4x4]): transformation matrice
inv_K (tensor, [Nx4x4]): inverse camera intrinsics
K (tensor, [Nx4x4]): camera intrinsics
normalized (bool):
- True: normalized to [-1, 1]
- False: [0, W-1] and [0, H-1]
Returns:
xy (NxHxWx2): pixel coordinates
"""
points3d = self.backproj(depth, inv_K)
points3d_trans = self.transform(points3d, T)
xy = self.project(points3d_trans, K, normalized)
return xy
| 32.684211
| 101
| 0.634461
|
340e2b3653c545c7594d8f8cb78996f04b2ed4ef
| 3,120
|
lua
|
Lua
|
src/game_over.lua
|
krisds/love-the-blue-whale
|
d427236ed606c38f7aa5841d6cac69e02c7be99c
|
[
"BSD-3-Clause"
] | null | null | null |
src/game_over.lua
|
krisds/love-the-blue-whale
|
d427236ed606c38f7aa5841d6cac69e02c7be99c
|
[
"BSD-3-Clause"
] | null | null | null |
src/game_over.lua
|
krisds/love-the-blue-whale
|
d427236ed606c38f7aa5841d6cac69e02c7be99c
|
[
"BSD-3-Clause"
] | null | null | null |
game_over = {}
local initialized = false
local big_font = nil
local small_font = nil
local wait_for_input = 3
local blue_heart = nil
local pinky_heart = nil
local blue = nil
local pinky = nil
local score = 0
local function initialize()
-- https://www.dafont.com/pecita.font
big_font = love.graphics.newFont("assets/Pecita.otf", 48)
small_font = love.graphics.newFont("assets/Pecita.otf", 24)
blue_heart = make_a_sprite("assets/heart.blue.png", 0.5, 0.9)
pinky_heart = make_a_sprite("assets/heart.pinky.png", 0.5, 0.9)
local blue_swim_animation = make_an_animation({
make_a_sprite("assets/whale.swim.1.png", 0.5, 0.4),
make_a_sprite("assets/whale.swim.2.png", 0.5, 0.4)
}, 4)
local blue_hurt_sprite = make_a_sprite("assets/whale.hurt.png", 0.5, 0.4)
blue = make_state_based_animation()
blue.define('swimming', blue_swim_animation)
blue.define('hurt', blue_hurt_sprite, 1, 'hurt')
blue.play('swimming')
local pinky_swim_animation = make_an_animation({
make_a_sprite("assets/pinky.swim.1.png", 0.5, 0.4),
make_a_sprite("assets/pinky.swim.2.png", 0.5, 0.4)
}, 4)
local pinky_hurt_sprite = make_a_sprite("assets/pinky.hurt.png", 0.5, 0.4)
pinky = make_state_based_animation()
pinky.define('swimming', pinky_swim_animation)
pinky.define('hurt', pinky_hurt_sprite, 1, 'hurt')
pinky.play('swimming')
initialized = true
end
game_over['start'] = function()
if not initialized then initialize() end
wait_for_input = 3
if blue_hearts < 0 then
blue_hearts = 0
blue.play("hurt")
else
blue.play("swimming")
end
if pinky_hearts < 0 then
pinky_hearts = 0
pinky.play("hurt")
else
pinky.play("swimming")
end
score = hearts_collected * 100 + blue_hearts + pinky_hearts
end
game_over['update'] = function(dt)
if wait_for_input > 0 then
wait_for_input = wait_for_input - dt
elseif love.keyboard.isDown("space") then
go_to(title_screen)
end
blue.update(dt)
pinky.update(dt)
end
game_over['draw'] = function()
love.graphics.setBackgroundColor(254/255, 249/255, 240/255)
love.graphics.setColor(255/255, 255/255, 255/255)
blue.draw(WIDTH/2 - 40, HEIGHT/2 - 10, 1)
pinky.draw(WIDTH/2 + 40, HEIGHT/2 - 10, -1)
blue_heart.draw(WIDTH/2 - 120, HEIGHT/2, 1)
pinky_heart.draw(WIDTH/2 + 100, HEIGHT/2, 1)
love.graphics.setColor(65/255, 45/255, 78/255)
love.graphics.setFont(big_font)
love.graphics.print("Game over", WIDTH/2 - 120, HEIGHT/2 - 120)
love.graphics.setFont(small_font)
love.graphics.print("You scored " .. score .. " points !", WIDTH/2 - 120, HEIGHT/2 - 70)
love.graphics.print(blue_hearts, WIDTH/2 - 112, HEIGHT/2 - 10)
love.graphics.print(pinky_hearts, WIDTH/2 + 110, HEIGHT/2 - 10)
if wait_for_input <= 0 then
love.graphics.setFont(small_font)
love.graphics.print('SPACEBAR to return to title screen', WIDTH/2 - 175, HEIGHT/2 + 50)
end
end
| 29.158879
| 95
| 0.65
|
af33022a9edd8d9c8719ff26c3a7ddaf95e1b94c
| 423
|
py
|
Python
|
test/testserver.py
|
hulingfeng211/weixin
|
e3b869ffa2bf54366d561535c84e118db0e9827e
|
[
"Apache-2.0"
] | null | null | null |
test/testserver.py
|
hulingfeng211/weixin
|
e3b869ffa2bf54366d561535c84e118db0e9827e
|
[
"Apache-2.0"
] | null | null | null |
test/testserver.py
|
hulingfeng211/weixin
|
e3b869ffa2bf54366d561535c84e118db0e9827e
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
from tornado.ioloop import IOLoop
from tornado.web import RequestHandler, Application
__author__ = 'george'
class IndexHandler(RequestHandler):
def post(self, *args, **kwargs):
print
self.request.body
if __name__ == "__main__":
app = Application([
(r'/message', IndexHandler)
])
app.listen(11000)
print 'listen to 11000'
IOLoop.current().start()
| 19.227273
| 51
| 0.647754
|
ab921eb08b48dd3f26d616db7cc1e0735d728712
| 4,780
|
ps1
|
PowerShell
|
src/Public/LogRhythm/Admin/Get-LrLists.ps1
|
Jt3kt/SmartResponse.Framework
|
036b90d914cf419b7b87f000a3c2cd5225634f98
|
[
"MS-PL"
] | 1
|
2020-03-24T16:31:39.000Z
|
2020-03-24T16:31:39.000Z
|
src/Public/LogRhythm/Admin/Get-LrLists.ps1
|
Jt3kt/SmartResponse.Framework
|
036b90d914cf419b7b87f000a3c2cd5225634f98
|
[
"MS-PL"
] | null | null | null |
src/Public/LogRhythm/Admin/Get-LrLists.ps1
|
Jt3kt/SmartResponse.Framework
|
036b90d914cf419b7b87f000a3c2cd5225634f98
|
[
"MS-PL"
] | null | null | null |
using namespace System
using namespace System.IO
using namespace System.Collections.Generic
Function Get-LrLists {
<#
.SYNOPSIS
Retrieve a list of lists from LogRhythm.
.DESCRIPTION
Get-LrList returns a full LogRhythm List object, including it's details and list items.
[NOTE]: Due to the way LogRhythm REST API is built, if the specified MaxItemsThreshold
is less than the number of actual items in the list, this cmdlet will return an http 400 error.
.PARAMETER Credential
PSCredential containing an API Token in the Password field.
.PARAMETER Name
[System.String] (Name or Guid) or [System.Guid]
Specifies a LogRhythm list object by providing one of the following property values:
+ List Name (as System.String), e.g. "LogRhythm: Suspicious Hosts"
+ List Guid (as System.String or System.Guid), e.g. D378A76F-1D83-4714-9A7C-FC04F9A2EB13
.PARAMETER MaxItemsThreshold
The maximum number of list items to retrieve from LogRhythm.
The default value for this parameter is set to 1001.
.PARAMETER Exact
Switch to force PARAMETER Name to be matched explicitly.
.INPUTS
The Name parameter can be provided via the PowerShell pipeline.
.OUTPUTS
PSCustomObject representing the specified LogRhythm List and its contents.
If parameter ListItemsOnly is specified, a string collection is returned containing the
list's item values.
.EXAMPLE
PS C:\> Get-LrList -Identity "edea82e3-8d0b-4370-86f0-d96bcd4b6c19" -Credential $MyKey
.NOTES
LogRhythm-API
.LINK
https://github.com/SmartResponse-Framework/SmartResponse.Framework
#>
[CmdletBinding()]
Param(
[Parameter(Mandatory = $false, Position = 0)]
[ValidateNotNull()]
[pscredential] $Credential = $SrfPreferences.LrDeployment.LrApiToken,
[Parameter(Mandatory=$false, ValueFromPipeline=$true, Position=1)]
[ValidateNotNull()]
[string] $Name,
[Parameter(Mandatory=$false, Position=2)]
[ValidateNotNull()]
[string] $ListType,
[Parameter(Mandatory=$false, Position=3)]
[ValidateRange(1,1000)]
[int] $PageSize,
[Parameter(Mandatory = $false, Position=4)]
[switch] $Exact
)
#region: BEGIN
Begin {
$Me = $MyInvocation.MyCommand.Name
$BaseUrl = $SrfPreferences.LRDeployment.AdminApiBaseUrl
$Token = $Credential.GetNetworkCredential().Password
# Enable self-signed certificates and Tls1.2
Enable-TrustAllCertsPolicy
}
#endregion
Process {
# Validate ListType
if ($ListType) {
$ListTypeInfo = Test-LrListType -Id $ListType
if ($ListTypeInfo.IsValid -eq $true) {
$ListTypeValid = $ListTypeInfo.Value
} else {
throw [ArgumentException] "Parameter [ListType] must be a valid LogRhythm List type."
}
}
# Update default PageSize if not defined
if (!$PageSize) {
$PageSize = 1000
}
# General Setup
$Headers = [Dictionary[string,string]]::new()
$Headers.Add("Authorization", "Bearer $Token")
# Request Setup
$Method = $HttpMethod.Get
if ($pageSize) {
$Headers.Add("pageSize", $PageSize)
}
if ($ListTypeValid) {
$Headers.Add("listType", $ListTypeValid)
}
if ($Name) {
$Headers.Add("name", $Name)
}
$Headers.Add("maxItemsThreshold", $MaxItemsThreshold)
$RequestUrl = $BaseUrl + "/lists/"
Write-Verbose "[$Me]: Request Header: `n$($Headers.name)"
# Send Request
try {
$Response = Invoke-RestMethod $RequestUrl -Headers $Headers -Method $Method
}
catch [System.Net.WebException] {
$Err = Get-RestErrorMessage $_
throw [Exception] "[$Me] [$($Err.statusCode)]: $($Err.message) - $($Err.details) - $($Err.validationErrors)"
}
# [Exact] Parameter
# Search "Malware" normally returns both "Malware" and "Malware Options"
# This would only return "Malware"
if ($Exact) {
$Pattern = "^$Name$"
$Response | ForEach-Object {
if(($_.name -match $Pattern) -or ($_.name -eq $Name)) {
Write-Verbose "[$Me]: Exact list name match found."
$List = $_
return $List
}
}
} else {
return $Response
}
}
End { }
}
| 34.388489
| 120
| 0.584728
|
1a3c8f589a4ff067bd5b38cf6872bd87d7fd2869
| 1,414
|
py
|
Python
|
ssh_botnet.py
|
CyberCommands/ssh-botnet
|
4e0ef22542eefd572f8e5dd194030e899d713885
|
[
"MIT"
] | null | null | null |
ssh_botnet.py
|
CyberCommands/ssh-botnet
|
4e0ef22542eefd572f8e5dd194030e899d713885
|
[
"MIT"
] | null | null | null |
ssh_botnet.py
|
CyberCommands/ssh-botnet
|
4e0ef22542eefd572f8e5dd194030e899d713885
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
# Coded by CyberCommands
import os
import optparse
from pexpect import pxssh
os.system('cls' if os.name == 'nt' else 'clear')
print('''
======================================
THIS IS A SIMPLE SSH BOT CONTROL UNIT.
--------------------------------------
Coded by CyberCommands
======================================''')
class Client:
def __init__(self, host, user, password):
self.host = host
self.user = user
self.password = password
self.session = self.connect()
def connect(self):
try:
s = pxssh.pxssh()
s.login(self.host, self.user, self.password)
return s
except Exception as e:
print(e)
print('\033[91m[-] Error Connecting \033[0m')
def send_command(self, cmd):
self.session.sendline(cmd)
self.session.prompt()
return self.session.before
def botnet_command(command):
for client in Botnet:
output = client.send_command(command)
print('[*] Output from ' + client.host)
print('\033[32m[+] \033[0m' +str(output, encoding='utf-8')+ '\n')
def add_client(host, user, password):
client = Client(host, user, password)
Botnet.append(client)
order = input("Command >> ")
Botnet = []
add_client('host', 'username', 'password')
add_client('host', 'username', 'password')
botnet_command(order)
| 28.28
| 73
| 0.56082
|
54c23e1572efd5679392fd01a3979200f89c53bb
| 9,541
|
rb
|
Ruby
|
app/controllers/orchestration_stack_controller.rb
|
vfebvre/manageiq-ui-classic
|
ad4a5f42f7c87032de2bd3049d79ff8d0a366da9
|
[
"Apache-2.0"
] | 54
|
2016-12-23T07:21:56.000Z
|
2022-03-31T16:59:24.000Z
|
app/controllers/orchestration_stack_controller.rb
|
vfebvre/manageiq-ui-classic
|
ad4a5f42f7c87032de2bd3049d79ff8d0a366da9
|
[
"Apache-2.0"
] | 8,062
|
2016-12-22T13:00:42.000Z
|
2022-03-31T19:21:07.000Z
|
app/controllers/orchestration_stack_controller.rb
|
isabella232/manageiq-ui-classic
|
168f013f2761d7aa6174c613cbb4c2363f4e6e16
|
[
"Apache-2.0"
] | 389
|
2016-12-22T12:33:48.000Z
|
2022-03-31T06:25:29.000Z
|
class OrchestrationStackController < ApplicationController
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
include Mixins::GenericSessionMixin
include Mixins::GenericShowMixin
include Mixins::BreadcrumbsMixin
def self.table_name
@table_name ||= "orchestration_stack"
end
def index
redirect_to(:action => 'show_list')
end
def self.display_methods
%w[instances children security_groups stack_orchestration_template custom_button_events]
end
def display_stack_orchestration_template
drop_breadcrumb(:name => "%{name} (Orchestration Template)" % {:name => @record.orchestration_template.name},
:url => show_link(@record, :display => @display))
end
def display_children
show_association('children', _('Children'), :children, OrchestrationStack)
end
def show_list
process_show_list(
:named_scope => [[:without_type, 'ManageIQ::Providers::AnsibleTower::AutomationManager::Job']]
)
end
def cloud_networks
assert_privileges('orchestration_stack_show')
show_association('cloud_networks', _('Cloud Networks'), :cloud_networks, CloudNetwork)
end
def outputs
assert_privileges('orchestration_stack_show')
show_association('outputs', _('Outputs'), :outputs, OrchestrationStackOutput)
end
def parameters
assert_privileges('orchestration_stack_show')
show_association('parameters', _('Parameters'), :parameters, OrchestrationStackParameter)
end
def resources
assert_privileges('orchestration_stack_show')
show_association('resources', _('Resources'), :resources, OrchestrationStackResource)
end
# handle buttons pressed on the button bar
def button
@edit = session[:edit] # Restore @edit for adv search box
params[:display] = @display if ["instances"].include?(@display) # Were we displaying vms/hosts/storages
params[:page] = @current_page if @current_page.nil? # Save current page for list refresh
if params[:pressed] == "custom_button"
custom_buttons
return
end
if params[:pressed].starts_with?("instance_") # Handle buttons from sub-items screen
pfx = pfx_for_vm_button_pressed(params[:pressed])
process_vm_buttons(pfx)
# Control transferred to another screen, so return
return if ["#{pfx}_policy_sim", "#{pfx}_compare", "#{pfx}_tag",
"#{pfx}_retire", "#{pfx}_protect", "#{pfx}_ownership",
"#{pfx}_refresh", "#{pfx}_right_size",
"#{pfx}_reconfigure"].include?(params[:pressed]) &&
@flash_array.nil?
unless ["#{pfx}_edit", "#{pfx}_miq_request_new", "#{pfx}_clone",
"#{pfx}_migrate", "#{pfx}_publish"].include?(params[:pressed])
@refresh_div = "main_div"
@refresh_partial = "layouts/gtl"
show # Handle VMs buttons
end
elsif params[:pressed] == "make_ot_orderable"
make_ot_orderable
return
elsif params[:pressed] == "orchestration_template_copy"
orchestration_template_copy
return
elsif params[:pressed] == "orchestration_templates_view"
orchestration_templates_view
return
else
params[:page] = @current_page if @current_page.nil? # Save current page for list refresh
@refresh_div = "main_div" # Default div for button.rjs to refresh
case params[:pressed]
when "orchestration_stack_delete"
orchestration_stack_delete
when "orchestration_stack_retire"
orchestration_stack_retire
when "orchestration_stack_retire_now"
orchestration_stack_retire_now
return
when "orchestration_stack_tag"
tag(OrchestrationStack)
when params[:pressed] == "custom_button"
custom_buttons
return
end
return if %w[orchestration_stack_retire orchestration_stack_tag].include?(params[:pressed]) &&
@flash_array.nil? # Tag screen showing, so return
end
check_if_button_is_implemented
if single_delete_test
single_delete_redirect
elsif params[:pressed].ends_with?("_edit") || ["#{pfx}_miq_request_new", "#{pfx}_clone",
"#{pfx}_migrate", "#{pfx}_publish"].include?(params[:pressed])
render_or_redirect_partial(pfx)
elsif @refresh_div == "main_div" && @lastaction == "show_list"
replace_gtl_main_div
else
render_flash unless performed?
end
end
def stacks_ot_info
assert_privileges('orchestration_template_copy')
ot = find_record_with_rbac(OrchestrationStack, params[:id]).orchestration_template
render :json => {
:template_id => ot.id,
:template_name => ot.name,
:template_description => ot.description,
:template_draft => ot.draft,
:template_content => ot.content
}
end
def stacks_ot_copy
assert_privileges('orchestration_template_copy')
case params[:button]
when "cancel"
stacks_ot_copy_cancel
when "add"
stacks_ot_copy_submit
end
end
def download_data
assert_privileges('orchestration_stack_show_list')
super
end
def download_summary_pdf
assert_privileges('orchestration_stack_show')
super
end
private
def record_class
params[:display] == 'instances' ? VmOrTemplate : OrchestrationStack
end
def textual_group_list
[%i[properties lifecycle relationships], %i[tags]]
end
helper_method :textual_group_list
def make_ot_orderable
stack = find_record_with_rbac(OrchestrationStack, params[:id])
template = stack.orchestration_template
if template.orderable?
add_flash(_("Orchestration template \"%{name}\" is already orderable") % {:name => template.name}, :error)
render_flash
else
begin
template.save_as_orderable!
rescue => bang
add_flash(_("An error occured when changing orchestration template \"%{name}\" to orderable: %{err_msg}") %
{:name => template.name, :err_msg => bang.message}, :error)
render_flash
else
@record = stack
add_flash(_("Orchestration template \"%{name}\" is now orderable") % {:name => template.name})
render :update do |page|
page << javascript_prologue
page.replace(:form_div, :partial => "stack_orchestration_template")
page << javascript_reload_toolbars
end
end
end
end
def orchestration_template_copy
@record = find_record_with_rbac(OrchestrationStack, params[:id])
if @record.orchestration_template.orderable?
add_flash(_("Orchestration template \"%{name}\" is already orderable") %
{:name => @record.orchestration_template.name}, :error)
render_flash
else
render :update do |page|
page << javascript_prologue
page.replace(:form_div, :partial => "copy_orchestration_template")
page << javascript_hide_if_exists(:toolbar)
end
end
end
def stacks_ot_copy_cancel
@record = find_record_with_rbac(OrchestrationStack, params[:id])
add_flash(_("Copy of Orchestration Template was cancelled by the user"))
render :update do |page|
page << javascript_prologue
page.replace(:form_div, :partial => "stack_orchestration_template")
end
end
def stacks_ot_copy_submit
assert_privileges('orchestration_template_copy')
original_template = find_record_with_rbac(OrchestrationTemplate, params[:templateId])
if params[:templateContent] == original_template.content
add_flash(_("Unable to create a new template copy \"%{name}\": old and new template content have to differ.") %
{:name => params[:templateName]})
render_flash
elsif params[:templateContent].nil? || params[:templateContent] == ""
add_flash(_("Unable to create a new template copy \"%{name}\": new template content cannot be empty.") %
{:name => params[:templateName]})
render_flash
else
ot = OrchestrationTemplate.new(
:name => params[:templateName],
:description => params[:templateDescription],
:type => original_template.type,
:content => params[:templateContent],
:draft => params[:templateDraft] == "true"
)
begin
ot.save_as_orderable!
rescue => bang
add_flash(_("Error during 'Orchestration Template Copy': %{error_message}") %
{:error_message => bang.message}, :error)
render_flash
else
flash_to_session(_("Orchestration Template \"%{name}\" was saved") % {:name => ot.name})
javascript_redirect(:controller => 'catalog',
:action => 'ot_show',
:id => ot.id)
end
end
end
def orchestration_templates_view
template = find_record_with_rbac(OrchestrationStack, params[:id]).orchestration_template
javascript_redirect(:controller => 'catalog', :action => 'ot_show', :id => template.id)
end
def title
_("Stack")
end
def breadcrumbs_options
{
:breadcrumbs => [
{:title => _("Compute")},
{:title => _("Clouds")},
{:title => _("Stacks"), :url => controller_url},
],
:record_info => (
unless @retireitems.nil? || @retireitems.length != 1
@retireitems[0]
end
),
}
end
menu_section :clo
feature_for_actions "#{controller_name}_show_list", *ADV_SEARCH_ACTIONS
has_custom_buttons
end
| 33.477193
| 117
| 0.666178
|
1a9b8571b43db87177d0f190df07cb15483af09b
| 1,772
|
py
|
Python
|
scpi_shell/cli.py
|
fakegit/mo-han-toolbox
|
9d5bbc1fe7f12040715d3a0d3f320a1ad617aed8
|
[
"MIT"
] | 24
|
2019-12-08T03:56:32.000Z
|
2021-10-02T13:26:37.000Z
|
scpi_shell/cli.py
|
fakegit/mo-han-toolbox
|
9d5bbc1fe7f12040715d3a0d3f320a1ad617aed8
|
[
"MIT"
] | 2
|
2020-04-27T14:20:01.000Z
|
2020-07-17T06:05:33.000Z
|
scpi_shell/cli.py
|
fakegit/mo-han-toolbox
|
9d5bbc1fe7f12040715d3a0d3f320a1ad617aed8
|
[
"MIT"
] | 10
|
2019-08-06T01:11:28.000Z
|
2021-07-19T08:45:11.000Z
|
#!/usr/bin/env python3
# encoding=utf8
import argparse
from core import win32_ctrl_c
try:
from extra import SCPIShellCustom as SCPIShell
except ImportError as e:
from core import SCPIShell
def run_cli_app():
parser = argparse.ArgumentParser(description=SCPIShell.intro, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('-r', '--remote',
help='address or port or link of remote instrument')
parser.add_argument('-t', '--type', default='VXI-11',
help='connection type: vxi11, serial')
parser.add_argument('-o', '--timeout', type=float,
help='connection timeout')
parser.add_argument('-c', '--command', nargs='+', metavar='arg',
help='commands to be run once')
parser.add_argument('-l', '--tcp-relay', metavar='[listen_addr]:<port>',
help='start a tcp relay server listening on the given address')
args = parser.parse_args()
remote = args.remote
conn_type = args.type
timeout = args.timeout
command_list = args.command
relay_addr = args.tcp_relay
win32_ctrl_c()
if remote:
shell = SCPIShell(address=remote, conn_type=conn_type, timeout=timeout)
if command_list:
shell.onecmd(' '.join(command_list))
elif relay_addr:
shell.do_tcprelay(relay_addr)
else:
shell.cmdloop()
elif timeout or command_list:
parser.error('--type, --timeout or --command has no effect when --remote is missing')
elif relay_addr:
shell = SCPIShell()
shell.do_tcprelay(relay_addr)
else:
shell = SCPIShell()
shell.cmdloop()
if __name__ == '__main__':
run_cli_app()
| 32.814815
| 119
| 0.628104
|
d86347107e41bbf9af4f59e11b8791058e6dfef8
| 6,523
|
kt
|
Kotlin
|
graphene-writer/src/test/kotlin/com/graphene/writer/store/key/property/TimeBasedRotationStrategyTest.kt
|
jacek-bakowski/graphene
|
5293693acbb1bf0a4240d735980c3efe880fa796
|
[
"MIT"
] | null | null | null |
graphene-writer/src/test/kotlin/com/graphene/writer/store/key/property/TimeBasedRotationStrategyTest.kt
|
jacek-bakowski/graphene
|
5293693acbb1bf0a4240d735980c3efe880fa796
|
[
"MIT"
] | null | null | null |
graphene-writer/src/test/kotlin/com/graphene/writer/store/key/property/TimeBasedRotationStrategyTest.kt
|
jacek-bakowski/graphene
|
5293693acbb1bf0a4240d735980c3efe880fa796
|
[
"MIT"
] | null | null | null |
package com.graphene.writer.store.key.property
import com.graphene.common.key.RotationProperty
import com.graphene.common.key.TimeBasedRotationStrategy
import io.kotlintest.tables.forAll
import io.kotlintest.tables.headers
import io.kotlintest.tables.row
import io.kotlintest.tables.table
import java.text.SimpleDateFormat
import kotlin.test.assertEquals
import org.joda.time.DateTimeUtils
import org.junit.jupiter.api.Test
internal class TimeBasedRotationStrategyTest {
@Test
internal fun `should return current time with day unit`() {
table(
headers("currentTime", "expectedIndexDate"),
row("2019-10-01 00:00:00", "index_tenant_20191001"),
row("2019-10-02 00:00:00", "index_tenant_20191002"),
row("2019-12-31 00:00:00", "index_tenant_20191231")
).forAll { currentTime, expectedIndexDate ->
// given
val rotationProperty = RotationProperty(period = "1d")
setCurrentMillisFixed(currentTime)
// when
val timeBasedRotationStrategy = TimeBasedRotationStrategy(rotationProperty)
// then
assertEquals(expectedIndexDate, timeBasedRotationStrategy.getIndexWithCurrentDate("index", "tenant"))
}
}
@Test
internal fun `should return current time with week unit`() {
table(
headers("currentTime", "expectedIndexDate"),
row("2019-10-01 00:00:00", "index_tenant_2019-w40"),
row("2019-10-02 00:00:00", "index_tenant_2019-w40"),
row("2019-10-03 00:00:00", "index_tenant_2019-w40"),
row("2019-10-04 00:00:00", "index_tenant_2019-w40"),
row("2019-10-05 00:00:00", "index_tenant_2019-w40"),
row("2019-10-06 00:00:00", "index_tenant_2019-w40"),
row("2019-10-07 00:00:00", "index_tenant_2019-w41"),
row("2019-12-31 00:00:00", "index_tenant_2020-w01"),
row("2020-01-01 00:00:00", "index_tenant_2020-w01"),
row("2020-01-08 00:00:00", "index_tenant_2020-w02")
).forAll { currentTime, expectedIndexDate ->
// given
val rotationProperty = RotationProperty(period = "1w")
setCurrentMillisFixed(currentTime)
// when
val timeBasedRotationStrategy = TimeBasedRotationStrategy(rotationProperty)
// then
assertEquals(expectedIndexDate, timeBasedRotationStrategy.getIndexWithCurrentDate("index", "tenant"))
}
}
@Test
internal fun `should calculate weeks between from and until`() {
table(
headers("from", "to", "expectedIndexes"),
row("2019-10-07 10:00:00", "2019-10-07 11:00:00", setOf("index_tenant_2019-w41")),
row("2019-10-07 10:00:00", "2019-10-14 11:00:00", setOf("index_tenant_2019-w41", "index_tenant_2019-w42")),
row("2019-10-07 10:00:00", "2019-10-21 11:00:00", setOf("index_tenant_2019-w41", "index_tenant_2019-w42", "index_tenant_2019-w43")),
row("2019-12-30 10:00:00", "2019-12-31 11:00:00", setOf("index_tenant_2020-w01"))
).forAll { from, to, expectedIndexes ->
// given
val timeBasedRotationStrategy = TimeBasedRotationStrategy(RotationProperty(period = "1w"))
// when
val indexes = timeBasedRotationStrategy.getRangeIndex("index", "tenant", com.graphene.common.utils.DateTimeUtils.from(from), com.graphene.common.utils.DateTimeUtils.from(to))
// then
assertEquals(expectedIndexes, indexes)
}
}
@Test
internal fun `should calculate weeks between from and until when year is different`() {
table(
headers("from", "to", "expectedIndexes"),
row("2019-12-23 10:00:00", "2020-01-06 11:00:00", setOf("index_tenant_2019-w52", "index_tenant_2020-w01", "index_tenant_2020-w02")),
row("2019-12-30 10:00:00", "2020-01-06 11:00:00", setOf("index_tenant_2020-w01", "index_tenant_2020-w02"))
).forAll { from, to, expectedIndexes ->
// given
val timeBasedRotationStrategy = TimeBasedRotationStrategy(RotationProperty(period = "1w"))
// when
val indexes = timeBasedRotationStrategy.getRangeIndex("index", "tenant", com.graphene.common.utils.DateTimeUtils.from(from), com.graphene.common.utils.DateTimeUtils.from(to))
// then
assertEquals(expectedIndexes, indexes)
}
}
@Test
internal fun `should calculate weeks between from and until when year is different2`() {
// given
val timeBasedRotationStrategy = TimeBasedRotationStrategy(RotationProperty(period = "1w"))
// when
val indexes = timeBasedRotationStrategy.getRangeIndex("index", "tenant", com.graphene.common.utils.DateTimeUtils.from("2019-12-23 10:00:00"), com.graphene.common.utils.DateTimeUtils.from("2021-01-08 10:00:00"))
// then
val givenWeekOf2019 = 1
val givenWeekOf2021 = 1
assertEquals(givenWeekOf2019 + MAXIMUM_WEEK_OF_YEAR + givenWeekOf2021, indexes.size)
}
@Test
internal fun `should calculate weeks based on time milliseconds`() {
table(
headers("currentTime", "expectedIndexDate"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-01 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-02 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-03 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-04 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-05 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-06 00:00:00"), "index_tenant_2019-w40"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-10-07 00:00:00"), "index_tenant_2019-w41"),
row(com.graphene.common.utils.DateTimeUtils.from("2019-12-31 00:00:00"), "index_tenant_2020-w01"),
row(com.graphene.common.utils.DateTimeUtils.from("2020-01-01 00:00:00"), "index_tenant_2020-w01"),
row(com.graphene.common.utils.DateTimeUtils.from("2020-01-08 00:00:00"), "index_tenant_2020-w02")
).forAll { currentTime, expectedIndexDate ->
// given
val rotationProperty = RotationProperty(period = "1w")
// when
val timeBasedRotationStrategy = TimeBasedRotationStrategy(rotationProperty)
// then
assertEquals(expectedIndexDate, timeBasedRotationStrategy.getIndexWithDate("index", "tenant", currentTime))
}
}
companion object {
const val MAXIMUM_WEEK_OF_YEAR = 52
}
private fun setCurrentMillisFixed(date: String) {
val currentTime = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(date).time
DateTimeUtils.setCurrentMillisFixed(currentTime)
}
}
| 43.486667
| 214
| 0.705657
|
6949c51ac047aef1dc7b49a01cae4f85e26d8813
| 552
|
rb
|
Ruby
|
app/controllers/api/v1/forums_controller.rb
|
MisterMur/RideShare-Backend
|
76dba2774788b000ae0a86b32fc39e99feba5462
|
[
"MIT"
] | 1
|
2020-01-03T03:16:31.000Z
|
2020-01-03T03:16:31.000Z
|
app/controllers/api/v1/forums_controller.rb
|
MisterMur/RideShare-Backend
|
76dba2774788b000ae0a86b32fc39e99feba5462
|
[
"MIT"
] | 10
|
2019-11-12T22:43:53.000Z
|
2022-03-31T00:06:11.000Z
|
app/controllers/api/v1/forums_controller.rb
|
MisterMur/RideShare-Backend
|
76dba2774788b000ae0a86b32fc39e99feba5462
|
[
"MIT"
] | null | null | null |
class Api::V1::ForumsController < ApplicationController
def index
@forums=Forum.all
render json: @forums, :include => [:messages]
end
def show
@forum = get_forum
render json: @forum, :include => [:messages]
end
def create
@forum = Forum.create(forum_params)
render json: @forum
end
def update
@forum = get_forum.update(forum_params)
render json:@forum
end
private
def get_forum
@forum=Forum.find(params[:id])
end
def forum_params
params.require(:forums).permit(:name)
end
end
| 15.333333
| 55
| 0.661232
|
383dc9e6691b56b7eb69f16875069931a4327bf1
| 917
|
php
|
PHP
|
application/views/greetings.blade.php
|
putrawitama/resto-app
|
6bc6ece0d569b217f56cc6c49cb9ba23b74f28d7
|
[
"MIT"
] | 1
|
2018-12-07T17:17:39.000Z
|
2018-12-07T17:17:39.000Z
|
application/views/greetings.blade.php
|
putrawitama/resto-app
|
6bc6ece0d569b217f56cc6c49cb9ba23b74f28d7
|
[
"MIT"
] | 1
|
2020-06-06T05:23:47.000Z
|
2020-06-06T05:23:47.000Z
|
application/views/greetings.blade.php
|
putrawitama/resto-app
|
6bc6ece0d569b217f56cc6c49cb9ba23b74f28d7
|
[
"MIT"
] | null | null | null |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{{ base_url() }}assets/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ base_url() }}assets/css/costum.css">
<title>Resto Bumi</title>
</head>
<body>
<div class="container text-center">
<div class="card text-white bg-success mb-3 mx-auto" style="max-width: 18rem;">
<div class="card-body text-center">
<h5 class="card-title">Thank You</h5>
<p class="card-text">for enjoying our meal</p>
<p class="card-text">Come again next time ! </p>
</div>
</div>
<a href="print/{{$transID}}" class="btn btn-primary btn-lg btn-block mt-5">Invoice</a>
</div>
</body>
</html>
| 36.68
| 94
| 0.584515
|
f23d5cdcfb39b3f8714e2511a3478d2d6211dd7b
| 22,502
|
php
|
PHP
|
addons/Sales/services/OrderService.php
|
Donsilor/gdzb
|
5f30d6c6bdcaae16b71012f21e6948c172801330
|
[
"Apache-2.0"
] | null | null | null |
addons/Sales/services/OrderService.php
|
Donsilor/gdzb
|
5f30d6c6bdcaae16b71012f21e6948c172801330
|
[
"Apache-2.0"
] | null | null | null |
addons/Sales/services/OrderService.php
|
Donsilor/gdzb
|
5f30d6c6bdcaae16b71012f21e6948c172801330
|
[
"Apache-2.0"
] | null | null | null |
<?php
namespace addons\Sales\services;
use addons\Purchase\common\enums\PurchaseCateEnum;
use addons\Purchase\common\enums\PurchaseGoodsTypeEnum;
use addons\Sales\common\models\OrderGoods;
use addons\Sales\common\models\OrderGoodsAttribute;
use addons\Style\common\enums\QibanTypeEnum;
use Yii;
use common\components\Service;
use common\helpers\Url;
use addons\Sales\common\forms\OrderForm;
use addons\Sales\common\models\OrderAccount;
use addons\Sales\common\models\Customer;
use addons\Sales\common\models\Order;
use addons\Sales\common\models\OrderAddress;
use common\enums\AuditStatusEnum;
use addons\Sales\common\enums\IsStockEnum;
use addons\Style\common\models\Style;
use addons\Finance\common\models\OrderPay;
use common\helpers\SnHelper;
use addons\Sales\common\enums\PayStatusEnum;
use common\enums\LogTypeEnum;
use addons\Sales\common\enums\OrderFromEnum;
use addons\Sales\common\models\OrderInvoice;
use addons\Sales\common\forms\ExternalOrderForm;
/**
* Class SaleChannelService
* @package services\common
*/
class OrderService extends Service
{
/**
* 顾客订单菜单
* @param int $order_id
* @return array
*/
public function menuTabList($order_id, $returnUrl = null)
{
$model = Order::find()->select(['id','order_from'])->where(['id'=>$order_id])->one();
if($model->order_from == OrderFromEnum::FROM_EXTERNAL) {
return [
1=>['name'=>'订单信息','url'=>Url::to(['external-order/view','id'=>$order_id,'tab'=>1,'returnUrl'=>$returnUrl])],
2=>['name'=>'日志信息','url'=>Url::to(['order-log/index','order_id'=>$order_id,'tab'=>2,'returnUrl'=>$returnUrl])],
];
}else {
return [
1=>['name'=>'订单信息','url'=>Url::to(['order/view','id'=>$order_id,'tab'=>1,'returnUrl'=>$returnUrl])],
2=>['name'=>'日志信息','url'=>Url::to(['order-log/index','order_id'=>$order_id,'tab'=>2,'returnUrl'=>$returnUrl])],
];
}
}
/**
* 人工创建订单
*
* @param OrderForm $form
*/
public function createOrder($form)
{
if(false == $form->validate()) {
throw new \Exception($this->getError($form));
}
$isNewOrder = $form->isNewRecord;
//1.创建订单
$order = clone $form;
if(false == $order->save()) {
throw new \Exception($this->getError($order));
}
$customer = Customer::find()->where(['mobile'=>$order->customer_mobile,'channel_id'=>$order->sale_channel_id])->one();
if(!$customer) {
//2.创建用户信息
$customer = new Customer();
$customer->realname = $order->customer_name;
$customer->mobile = $order->customer_mobile;
$customer->email = $order->customer_email;
$customer->channel_id = $order->sale_channel_id;
$customer->level = $form->customer_level;
$customer->source_id = $form->customer_source;
if(false == $customer->save()) {
throw new \Exception("创建用户失败:".$this->getError($customer));
}
\Yii::$app->salesService->customer->createCustomerNo($customer,true);
}else{
//更新用户信息
$customer->realname = $customer->realname ? $customer->realname : $order->customer_name;
$customer->mobile = $customer->mobile ? $customer->mobile: $order->customer_mobile;
$customer->email = $customer->email ? $customer->email : $order->customer_email;
$customer->level = $customer->level ? $customer->level: $form->customer_level;
$customer->source_id = $customer->source_id ? $customer->source_id : $form->customer_source;
if(false == $customer->save()) {
throw new \Exception("更新用户失败:".$this->getError($customer));
}
}
$order->customer_id = $customer->id;
if($form->isNewRecord){
$order->order_sn = $this->createOrderSn($order);
}
if(false == $order->save()) {
throw new \Exception($this->getError($order));
}
//3.创建订单金额
if($isNewOrder === true){
$account = new OrderAccount();
$account->order_id = $order->id;
$account->currency = $order->currency;
if(false == $account->save()) {
throw new \Exception($this->getError($account));
}
}
//4.同步订单收货地址
$address = OrderAddress::find()->where(['order_id'=>$order->id])->one();
if(!$address) {
$address = new OrderAddress();
$address->order_id = $order->id;
}
if($address->customer_id != $customer->id) {
$address->customer_id = $customer->id;
$address->realname = $customer->realname;
$address->mobile = $customer->mobile;
$address->email = $customer->email;
$address->country_id = $customer->country_id;
$address->province_id = $customer->province_id;
$address->city_id = $customer->city_id;
$address->address_details = $customer->address;
//$address->zip_code = $customer->zip_code;
}
if(false == $address->save(false)) {
throw new \Exception("同步收货地址失败:".$this->getError($address));
}
//创建订单日志
if($isNewOrder === true) {
$log = [
'order_id' => $order->id,
'order_sn' => $order->order_sn,
'order_status' => $order->order_status,
'log_type' => LogTypeEnum::ARTIFICIAL,
'log_time' => time(),
'log_module' => '创建订单',
'log_msg' => "创建订单, 订单号:".$order->order_sn
];
\Yii::$app->salesService->orderLog->createOrderLog($log);
}
return $order;
}
/**
* 创建外部平台订单
* @param ExternalOrderForm $form
*/
public function createExternalOrder($form)
{
if(false === $form->validate()) {
throw new \Exception($this->getError($form));
}
$isNewOrder = $form->isNewRecord;
//1.创建订单
$order = clone $form;
$order->pay_status = PayStatusEnum::HAS_PAY;
$order->order_from = OrderFromEnum::FROM_EXTERNAL;
if(false == $order->save()) {
throw new \Exception($this->getError($order));
}
//2.创建订单明细
if($isNewOrder === true){
foreach ($form->goods_list ?? [] as $goods) {
$orderGoods = new OrderGoods();
$orderGoods->attributes = $goods;
$orderGoods->order_id = $order->id;
if(false === $orderGoods->save()) {
throw new \Exception($this->getError($orderGoods));
}
}
}
//3.创建订单金额
if($isNewOrder === true){
$account = new OrderAccount();
$account->order_id = $order->id;
$account->currency = $order->currency;
if(false == $account->save()) {
throw new \Exception($this->getError($account));
}
}
//4.订单收货地址
$address = OrderAddress::find()->where(['order_id'=>$order->id])->one();
if(!$address) {
$address = new OrderAddress();
$address->order_id = $order->id;
}
$address->attributes = $form->getConsigneeInfo();
if(false == $address->save()) {
throw new \Exception("同步收货地址失败:".$this->getError($address));
}
if($form->isNewRecord){
$order->order_sn = $this->createOrderSn($order);
}
if(false == $order->save()) {
throw new \Exception($this->getError($order));
}
//商品金额汇总
$this->orderSummary($order->id);
//创建订单日志
if($isNewOrder === true) {
$log = [
'order_id' => $order->id,
'order_sn' => $order->order_sn,
'order_status' => $order->order_status,
'log_type' => LogTypeEnum::ARTIFICIAL,
'log_time' => time(),
'log_module' => '创建订单',
'log_msg' => "创建新订单, 订单号:".$order->order_sn
];
\Yii::$app->salesService->orderLog->createOrderLog($log);
}
return $order;
}
/**
* 自动创建同步订单
* @param unknown $orderInfo
* @param unknown $accountInfo
* @param unknown $goodsList
* @param unknown $customerInfo
* @param unknown $addressInfo
* @param array $noticeInfo
* @throws \Exception
* @return \addons\Sales\common\models\Order
*/
public function syncOrder($orderInfo, $accountInfo, $goodsList, $customerInfo, $addressInfo, $invoiceInfo = [])
{
if(empty($orderInfo['out_trade_no'])) {
throw new \Exception("orderInfo->out_trade_no 不能为空");
}
//1.同步订单
$isNewOrder = false;
$order = Order::find()->where(['out_trade_no'=>$orderInfo['out_trade_no']])->one();
if(!$order) {
$isNewOrder = true;
$order = new Order();
}
$order->attributes = $orderInfo;
if(false === $order->save()) {
throw new \Exception($this->getError($order));
}
//2.同步订单金额
$account = OrderAccount::find()->where(['order_id'=>$order->id])->one();
if(!$account) {
$account = new OrderAccount();
$account->order_id = $order->id;
}
$account->attributes = $accountInfo;
if(false == $account->save()) {
throw new \Exception($this->getError($account));
}
//3.创建点款记录
$orderPay = OrderPay::find()->where(['pay_sn'=>$order->pay_sn])->one();
if(!$orderPay) {
$orderPay = new OrderPay();
$orderPay->order_id = $order->id;
$orderPay->pay_sn = SnHelper::createOrderPaySn();
$orderPay->pay_amount = $account->paid_amount;
$orderPay->pay_type = $order->pay_type;
$orderPay->pay_status = PayStatusEnum::HAS_PAY;
$orderPay->currency = $account->currency;
$orderPay->exchange_rate = $account->exchange_rate;
$orderPay->creator_id = 0;
$orderPay->creator = "system";
if(false === $orderPay->save()) {
throw new \Exception($this->getError($orderPay));
}
}
$order->pay_sn = $orderPay->pay_sn;//点款单号
//4.同步订单商品明细
if($isNewOrder === true) {
$goods_num = 0;//商品总数
$goods_discount = 0;//商品优惠金额
foreach ($goodsList as $goodsInfo) {
$style_sn = $goodsInfo['style_sn'] ?? '';
$style = Style::find()->where(['style_sn'=>$style_sn])->one();
if(!$style) {
//throw new \Exception("[{$style_sn}]款号在erp系统不存在");
$orderGoods = new OrderGoods();
$orderGoods->attributes = $goodsInfo;
$orderGoods->order_id = $order->id;
}else {
//从款式信息自动带出款的信息
$styleInfo = $style->toArray(['style_cate_id','product_type_id','is_inlay','style_channel_id','style_sex']);
$orderGoods = new OrderGoods();
$orderGoods->attributes = $goodsInfo + $styleInfo;
$orderGoods->order_id = $order->id;
if(empty($goodsInfo['goods_image'])) {
$orderGoods->goods_image = $style->style_image;
}
}
if(false === $orderGoods->save()) {
throw new \Exception("同步订单商品失败:".$this->getError($orderGoods));
}
/**
* [attr_id] => 6[attr_value_id] => 16[attr_value] => 圆形
*/
foreach ($goodsInfo['goods_attrs'] ??[] as $goods_attr) {
$goodsAttr = new OrderGoodsAttribute();
$goodsAttr->attributes = $goods_attr;
if($goodsAttr->attr_value_id) {
$goodsAttr->attr_value = Yii::$app->attr->valueName($goodsAttr->attr_value_id);
}
$goodsAttr->id = $orderGoods->id;
if(false === $goodsAttr->save()) {
throw new \Exception("同步商品属性失败:".$this->getError($goodsAttr));
}
}
$goods_discount += $orderGoods->goods_discount;
$goods_num += $orderGoods->goods_num;
}
$order->goods_num = $goods_num;
$account->goods_discount = $goods_discount;
$account->order_discount = $account->discount_amount - $goods_discount;
if(false === $account->save()) {
throw new \Exception("同步订单金额失败:".$this->getError($account));
}
}
//5.同步客户信息
$customer = Customer::find()->where(['mobile'=>$order->customer_mobile,'channel_id'=>$order->sale_channel_id])->one();
if(!$customer) {
//2.创建用户信息
$customer = new Customer();
$customer->attributes = $customerInfo;
$customer->channel_id = $order->sale_channel_id;
if(false == $customer->save()) {
throw new \Exception("创建用户失败:".$this->getError($customer));
}
\Yii::$app->salesService->customer->createCustomerNo($customer,true);
}else{
//更新用户信息
//$customer->realname = $customer->realname ? $customer->realname : $order->customer_name;
//$customer->mobile = $customer->mobile ? $customer->mobile: $order->customer_mobile;
//$customer->email = $customer->email ? $customer->email : $order->customer_email;
$customer->attributes = $customerInfo;
if(false == $customer->save()) {
throw new \Exception("更新用户失败:".$this->getError($customer));
}
}
//6.同步订单收货地址
$address = OrderAddress::find()->where(['order_id'=>$order->id])->one();
if(!$address) {
$address = new OrderAddress();
$address->order_id = $order->id;
}
$address->attributes = $addressInfo;
if(false == $address->save()) {
throw new \Exception("同步收货地址失败:".$this->getError($address));
}
//7.同步发票
if(!empty($invoiceInfo)) {
$invoice = OrderInvoice::find()->where(['order_id'=>$order->id])->one();
if(!$invoice) {
$invoice = new OrderInvoice();
$invoice->order_id = $order->id;
}
$invoice->attributes = $invoiceInfo;
if(false == $invoice->save()) {
throw new \Exception("同步发票失败:".$this->getError($invoice));
}
$order->is_invoice = $invoice->is_invoice;
}
$order->customer_id = $customer->id;
if($order->order_sn == ''){
$order->order_sn = $this->createOrderSn($order);
}
if(false == $order->save()) {
throw new \Exception($this->getError($order));
}
//创建订单日志
if($isNewOrder === true) {
$log = [
'order_id' => $order->id,
'order_sn' => $order->order_sn,
'order_status' => $order->order_status,
'log_type' => LogTypeEnum::SYSTEM,
'log_time' => time(),
'log_module' => '外部订单同步',
'log_msg' => "同步创建订单,订单号:".$order->order_sn.', 同步来源:'.OrderFromEnum::getValue($order->order_from).', 外部订单号:'.$order->out_trade_no
];
\Yii::$app->salesService->orderLog->createOrderLog($log);
}
return $order;
}
/**
* 同步订单商品生成采购申请单
* @param int $order_id
* @param array|int $detail_ids
*/
public function syncPurchaseApply($order_id, $detail_ids = null)
{
$applyInfo = [];
$applyGoodsList = [];
$order = Order::find()->where(['id'=>$order_id])->one();
if($order->goods_num <= 0 ){
throw new \Exception('订单没有明细');
}
if($order->audit_status != AuditStatusEnum::PASS){
throw new \Exception('订单没有审核');
}
$query = OrderGoods::find()->where(['order_id'=>$order_id,'is_stock'=>IsStockEnum::NO]);
if(!empty($detail_ids)) {
$query->andWhere(['id'=>$detail_ids]);
}
$models = $query->all();
foreach ($models as $model){
$style = Style::find()->where(['style_sn'=>$model->style_sn])->one();
$goods = [
'order_detail_id' =>$model->id,
'goods_image'=>$model->goods_image,
'goods_images'=>$model->goods_image,
'goods_name' =>$model->goods_name,
'goods_num' =>$model->goods_num,
'style_sn' => $model->style_sn,
'style_id' => $style->id,
'qiban_sn' => $model->qiban_sn,
'qiban_type'=>$model->qiban_type,
'jintuo_type'=>$model->jintuo_type,
'goods_type' => $model->qiban_type == QibanTypeEnum::NO_STYLE ? PurchaseGoodsTypeEnum::OTHER : PurchaseGoodsTypeEnum::STYLE,
'style_sex' =>$model->style_sex,
'is_inlay' =>$model->is_inlay,
'product_type_id'=>$model->product_type_id,
'style_cate_id'=>$model->style_cate_id,
'cost_price' => Yii::$app->salesService->orderGoods->getCostPrice($model),
'style_channel_id' => $model->style_channel_id,
'remark' => $model->remark,
];
$goods['goods_attrs'] = OrderGoodsAttribute::find()->where(['id'=>$model->id])->asArray()->all();
$applyGoodsList[] = $goods;
}
//采购申请单头
$applyInfo['order_sn'] = $order->order_sn;
$applyInfo['purchase_cate'] = PurchaseCateEnum::ORDER;
$applyInfo['channel_id'] = $order->sale_channel_id;
//同步采购申请单
$apply = Yii::$app->purchaseService->apply->createSyncApply($applyInfo, $applyGoodsList);
//更新订单申请单ID
$order->apply_id = $apply->id;
if(false === $order->save(true,['apply_id'])) {
throw new \Exception($this->getError($order));
}
return $apply;
}
/**
* 同步商品属性
* @param unknown $wareId
* @param unknown $goods_spec
* @return boolean
*/
public function syncOrderGoodsAttr($wareId, $goods_attrs,$order_ids = [])
{
$orderGoodsList = OrderGoods::find()->select(['id'])->where(['out_ware_id'=>$wareId])->andFilterWhere(['in','order_id',$order_ids])->limit(1000)->all();
if(empty($orderGoodsList)) {
throw new \Exception("[{$wareId}] 查询不到记录");
}
foreach ($orderGoodsList as $orderGoods) {
foreach ($goods_attrs ??[] as $goods_attr) {
if(empty($goods_attr['attr_id'])) {
throw new \Exception("同步商品属性失败:attr_id 不能为空");
}
$model = OrderGoodsAttribute::find()->where(['id'=>$orderGoods->id,'attr_id'=>$goods_attr['attr_id']])->one();
if(!$model){
$model = new OrderGoodsAttribute();
}
$model->attributes = $goods_attr;
if($model->attr_value_id) {
$model->attr_value = Yii::$app->attr->valueName($model->attr_value_id);
}
$model->id = $orderGoods->id;
if(false === $model->save()) {
throw new \Exception("同步商品属性失败:".$this->getError($model));
}
}
}
}
/**
* 同步商品规格
* @param unknown $wareId
* @param unknown $goods_spec
* @return boolean
*/
public function syncOrderGoodsSpec($wareId,$goods_spec)
{
if(is_array($goods_spec)) {
$goods_spec = json_encode($goods_spec);
}else{
return false;
}
return OrderGoods::updateAll(['goods_spec'=>$goods_spec],['out_ware_id'=>$wareId]);
}
/**
* 创建订单编号
* @param Style $model
* @throws
* @return string
*/
public static function createOrderSn($model,$save = false)
{
if(!$model->id) {
throw new \Exception("创建订单号失败:ID不能为空");
}
$order_time = $model->order_time ? $model->order_time: time();
$order_sn = date("Ymd",$order_time).str_pad($model->id,8,'0',STR_PAD_LEFT);
$model->order_sn = $order_sn;
if($save === true) {
$result = $model->save(true,['id','order_sn']);
if($result === false){
throw new \Exception("保存失败");
}
}
return $model->order_sn;
}
/**
* 订单金额汇总
* @param unknown $purchase_id
*/
public function orderSummary($order_id)
{
$sum = OrderGoods::find()
->select(['sum(goods_num) as total_num','sum(goods_price*goods_num) as total_goods_price','sum(goods_discount) as total_goods_discount','sum(goods_pay_price*goods_num) as total_pay_price','min(is_stock) as is_stock','min(is_gift) as is_gift'])
->where(['order_id'=>$order_id])
->asArray()->one();
if($sum) {
$order_type = $sum['is_stock'] == 1 ? 1 : 2; //1现货 2定制
Order::updateAll(['goods_num'=>$sum['total_num'], 'order_type'=>$order_type],['id'=>$order_id]);
$order_account = OrderAccount::find()->where(['order_id'=>$order_id])->one();
if(empty($order_account)){
$order_account = new OrderAccount();
$order_account->order_id = $order_id;
}
$order_account->discount_amount = $sum['total_goods_discount'];
$order_account->goods_amount = $sum['total_goods_price'];
$order_account->order_amount = $order_account->goods_amount + $order_account->shipping_fee + $order_account->tax_fee + $order_account->safe_fee
+ $order_account->other_fee; // 商品总金额+运费,税费,保险费
$order_account->pay_amount = $order_account->order_amount - $order_account->discount_amount;
if(false === $order_account->save()){
throw new \Exception("订单金额汇总失败:".$this->getError($order_account));
}
}
}
}
| 39.826549
| 255
| 0.525731
|
af7c854655125060fbf72a37c565150cac6c997f
| 170
|
py
|
Python
|
sm16.py
|
Preeti-Barua/Python
|
76d168617f2a92fa41d6af4ddf62450b6272ff84
|
[
"bzip2-1.0.6"
] | null | null | null |
sm16.py
|
Preeti-Barua/Python
|
76d168617f2a92fa41d6af4ddf62450b6272ff84
|
[
"bzip2-1.0.6"
] | null | null | null |
sm16.py
|
Preeti-Barua/Python
|
76d168617f2a92fa41d6af4ddf62450b6272ff84
|
[
"bzip2-1.0.6"
] | null | null | null |
a=int(input("enter a number""))
sum=0
temp=a
while(a>0):
r=a%10
sum=sum*10+r
a=a//10
a=temp
if(a==sum):
print("its palindrome")
else:
print("no")
| 12.142857
| 31
| 0.552941
|
43f16fbe9bfc4657997dd62f240b97499b58dd65
| 5,373
|
ts
|
TypeScript
|
src/classLibrary/EleFact.ts
|
kirinnee/tslib.elefact
|
b300e668c3aeecb76bbb71fd707ebda49ff7d0d0
|
[
"MIT"
] | 3
|
2018-12-20T05:03:12.000Z
|
2019-11-23T03:27:21.000Z
|
src/classLibrary/EleFact.ts
|
kirinnee/tslib.elefact
|
b300e668c3aeecb76bbb71fd707ebda49ff7d0d0
|
[
"MIT"
] | null | null | null |
src/classLibrary/EleFact.ts
|
kirinnee/tslib.elefact
|
b300e668c3aeecb76bbb71fd707ebda49ff7d0d0
|
[
"MIT"
] | 1
|
2022-02-22T11:36:23.000Z
|
2022-02-22T11:36:23.000Z
|
import {DOMEx} from "@kirinnee/domex";
import {ElementData, ElementFactory} from "../index";
class EleFact implements ElementFactory {
private $: Document = document;
private namespace: string;
constructor(domex: DOMEx, namespace: string) {
domex.AssertExtend();
this.namespace = namespace;
}
get Namespace(): string {
return this.namespace;
}
CreateSpecialElement(src: string, absolute: boolean = true, data: ElementData = {}): Element {
if (data.id == null) throw new Error("ID cannot be null for special element");
let val: string = absolute ? 'absolute' : 'relative';
let parent = this.ELE("div", data).Style('position', val);
let filter: { ele: Element, id: string } = this.createFilter(data.id);
let svgParent = this.xml('svg')
.Attr('xmlns', "http://www.w3.org/2000/svg")
.Attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');
let image = this.xml('image')
.Attr('width', '100%')
.Attr('height', '100%');
parent
.Attr('elefact-special-element-filter', filter.id);
svgParent
.Style("position", "absolute")
.Style("width", "100%")
.Style("height", "100%")
.Style("top", "0")
.Style("left", "0")
.Style("overflow:visible");
image.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', src);
image.Attr('filter', `url(#${filter.id})`)
.Attr('preserveAspectRatio', 'none');
parent.Append([svgParent, filter.ele]);
svgParent.Append(image);
return parent;
}
DIV(data: ElementData = {}): Element {
return this.ELE("div", data);
}
ELE(type: string, data: ElementData = {}): Element {
let ele: Element = this.$.createElement(type);
if (data.id != null) ele.Id(data.id);
if (data.html != null) ele.innerHTML = data.html;
if (data.cls != null) ele.AddClass(data.cls);
return ele;
}
IMG(src: string, data: ElementData = {}): Element {
let ret: Element = this.ELE("img", data);
ret.Attr("src", src);
return ret;
}
SPAN(data: ElementData = {}): Element {
return this.ELE("span", data);
}
BR(): Element {
return document.createElement('br');
}
private xml(type: string, data: ElementData = {}): SVGElement {
let svg: SVGElement = document.createElementNS("http://www.w3.org/2000/svg", type);
if (data.id != null) svg.Attr("id", data.id);
if (data.cls != null) svg.AddClass(data.cls);
return svg;
}
private createFilter(id: string): { ele: Element, id: string } {
let parent = this.ELE("div");
let namespace = this.namespace;
let svgParent = this.xml('svg')
.Attr("xmlns", "http://www.w3.org/2000/svg")
.Attr("xmlns:xlink", "http://www.w3.org/1999/xlink");
let filterID: string = id + namespace;
let saturate: Element = this.xml("feColorMatrix", {cls: "saturate-filter"})
.Attr('type', 'saturate')
.Attr('values', '1');
let hueRotate: Element = this.xml('feColorMatrix', {cls: 'hue-rotate-filter'})
.Attr('type', 'hueRotate')
.Attr('values', '0');
let blur: Element = this.xml('feGaussianBlur').Attr('stdDeviation', '0');
let sepia: Element = this.xml('feColorMatrix', {cls: 'sepia-filter'})
.Attr('result', 'sepiaFilter')
.Attr('type', 'matrix')
.Attr('values', '1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');
let grayscale = this.xml('feColorMatrix', {cls: 'grayscale-filter'})
.Attr('result', 'grayscaleFilter')
.Attr('type', 'matrix')
.Attr('values', '1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0');
let contrast = this.xml('feComponentTransfer', {cls: 'contrast-filter'}).Attr('result', 'contrastFilter');
/**/
let cR = this.xml('feFuncR').Attr('type', 'linear').Attr('slope', '1').Attr('intercept', '0');
/**/
let cG = this.xml('feFuncG').Attr('type', 'linear').Attr('slope', '1').Attr('intercept', '0');
/**/
let cB = this.xml('feFuncB').Attr('type', 'linear').Attr('slope', '1').Attr('intercept', '0');
contrast.Append([cR, cG, cB]);
let brightness = this.xml('feComponentTransfer', {cls: 'brightness-filter'}).Attr('result', 'brightnessFilter');
/**/
let bR = this.xml('feFuncR').Attr('type', 'linear').Attr('slope', '1');
/**/
let bG = this.xml('feFuncG').Attr('type', 'linear').Attr('slope', '1');
/**/
let bB = this.xml('feFuncB').Attr('type', 'linear').Attr('slope', '1');
brightness.Append([bR, bG, bB]);
let negative = this.xml('feComponentTransfer', {cls: 'negative-filter'}).Attr('result', 'negativeFilter');
/**/
let R = this.xml('feFuncR').Attr('type', 'table').Attr('tableValues', '0 1');
/**/
let G = this.xml('feFuncG').Attr('type', 'table').Attr('tableValues', '0 1');
/**/
let B = this.xml('feFuncB').Attr('type', 'table').Attr('tableValues', '0 1');
negative.Append([R, G, B]);
let merge = this.xml('feMerge');
/**/
let m1 = this.xml('feMergeNode').Attr('in', 'sepiaFilter');
/**/
let m2 = this.xml('feMergeNode').Attr('in', 'grayscaleFilter');
/**/
let m3 = this.xml('feMergeNode').Attr('in', 'contrastFilter');
/**/
let m4 = this.xml('feMergeNode').Attr('in', 'brightnessFilter');
/**/
let m5 = this.xml('feMergeNode').Attr('in', 'negativeFilter');
merge.Append([m1, m2, m3, m4, m5]);
let filter = this.xml('filter', {id: filterID});
filter.Append([saturate, hueRotate, blur, sepia, grayscale, brightness, contrast, negative, merge]);
parent.Append(svgParent);
svgParent.Append(filter);
return {
ele: parent,
id: filterID
}
}
}
export {EleFact};
| 34.006329
| 114
| 0.622929
|
2acbabcda1b2f341b2bbbf3288268af5bbbd33b0
| 376
|
kt
|
Kotlin
|
logger/src/main/java/ru/surfstudio/android/logger/remote_logging_strategies/RemoteLoggingStrategy.kt
|
eltray/SurfAndroidStandard
|
69d435621d90954102af7424b4b309213d9bc95d
|
[
"Apache-2.0"
] | null | null | null |
logger/src/main/java/ru/surfstudio/android/logger/remote_logging_strategies/RemoteLoggingStrategy.kt
|
eltray/SurfAndroidStandard
|
69d435621d90954102af7424b4b309213d9bc95d
|
[
"Apache-2.0"
] | null | null | null |
logger/src/main/java/ru/surfstudio/android/logger/remote_logging_strategies/RemoteLoggingStrategy.kt
|
eltray/SurfAndroidStandard
|
69d435621d90954102af7424b4b309213d9bc95d
|
[
"Apache-2.0"
] | null | null | null |
package ru.surfstudio.android.logger.remote_logging_strategies
/**
* Интерфейс для стратегий логгирования на удаленный сервер
*/
interface RemoteLoggingStrategy {
fun setUser(id: String?, username: String?, email: String?)
fun clearUser()
fun logError(e: Throwable?)
fun logMessage(message: String?)
fun logKeyValue(key: String?, value: String?)
}
| 20.888889
| 63
| 0.726064
|
b77dc2cfd8a13eae8ca31ff82bd41c19e3f759a0
| 1,618
|
cs
|
C#
|
Shaver/ColorSchemeButton.cs
|
lambdacasserole/shaver
|
ec3b6cdac4d372bc1ac6cbf186899afd5324d0cd
|
[
"MIT"
] | null | null | null |
Shaver/ColorSchemeButton.cs
|
lambdacasserole/shaver
|
ec3b6cdac4d372bc1ac6cbf186899afd5324d0cd
|
[
"MIT"
] | null | null | null |
Shaver/ColorSchemeButton.cs
|
lambdacasserole/shaver
|
ec3b6cdac4d372bc1ac6cbf186899afd5324d0cd
|
[
"MIT"
] | null | null | null |
using System.Drawing;
using System.Windows.Forms;
namespace Shaver
{
/// <summary>
/// A color scheme keyboard button control.
/// </summary>
class ColorSchemeButton : KeyboardButton
{
private int iconSize;
/// <summary>
/// Gets or sets the icon size on the button.
/// </summary>
public int IconSize
{
get
{
return iconSize;
}
set
{
iconSize = value;
Refresh(); // Redraw.
}
}
/// <summary>
/// Initializes a new instance of a color scheme button.
/// </summary>
public ColorSchemeButton() : base()
{
// Icon size should initially be 8.
iconSize = 8;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
// Draw four colored circles icon.
int x = Width / 2;
int y = Height / 2;
int s = IconSize / 4;
e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
e.Graphics.FillEllipse(new SolidBrush(Color.Red), x - IconSize - s, y - IconSize - s, IconSize, IconSize);
e.Graphics.FillEllipse(new SolidBrush(Color.Orange), x + s, y - IconSize - s, IconSize, IconSize);
e.Graphics.FillEllipse(new SolidBrush(Color.Blue), x - IconSize - s, y + s, IconSize, IconSize);
e.Graphics.FillEllipse(new SolidBrush(Color.Yellow), x + s, y + s, IconSize, IconSize);
}
}
}
| 29.962963
| 118
| 0.525958
|
f4bbd7ab7a23b6bf894549544c79b77ce88a7aa9
| 1,818
|
ts
|
TypeScript
|
samples/deckgl-arclayer/src/index.ts
|
MHASgamer/js-samples
|
56ec58ca91a48da09b62a390efb8c5095a54d06f
|
[
"Apache-2.0"
] | 535
|
2015-08-06T18:30:26.000Z
|
2022-03-30T08:34:35.000Z
|
samples/deckgl-arclayer/src/index.ts
|
MHASgamer/js-samples
|
56ec58ca91a48da09b62a390efb8c5095a54d06f
|
[
"Apache-2.0"
] | 915
|
2015-08-05T05:36:03.000Z
|
2022-03-28T17:08:42.000Z
|
samples/deckgl-arclayer/src/index.ts
|
MHASgamer/js-samples
|
56ec58ca91a48da09b62a390efb8c5095a54d06f
|
[
"Apache-2.0"
] | 790
|
2015-08-05T13:51:17.000Z
|
2022-03-31T16:56:59.000Z
|
/*
* Copyright 2021 Google LLC. 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.
*/
// [START maps_deckgl_arclayer]
import { ArcLayer } from "deck.gl";
import { GoogleMapsOverlay } from "@deck.gl/google-maps";
import * as GeoJSON from "geojson";
type Properties = { scalerank: number };
type Feature = GeoJSON.Feature<GeoJSON.Point, Properties>;
type Data = GeoJSON.FeatureCollection<GeoJSON.Point, Properties>;
const AIRPORTS =
"https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_airports.geojson";
function initMap(): void {
const map = new google.maps.Map(
document.getElementById("map") as HTMLElement,
{
center: { lat: 50, lng: 14 },
tilt: 30,
mapId: "90f87356969d889c",
zoom: 3,
}
);
const flightsLayer = new ArcLayer({
id: "flights",
data: AIRPORTS,
dataTransform: (d: Data) =>
d.features.filter((f) => f.properties.scalerank < 4),
getSourcePosition: () => [14.42076, 50.08804], // Prague
getTargetPosition: (f: Feature) => f.geometry.coordinates,
getSourceColor: [0, 128, 200],
getTargetColor: [0, 0, 80],
getWidth: 1,
});
const overlay = new GoogleMapsOverlay({
layers: [flightsLayer],
});
overlay.setMap(map);
}
// [END maps_deckgl_arclayer]
export { initMap };
| 30.3
| 85
| 0.687569
|
482644b4fc1e34019ed1fa1f2ac433a988919a83
| 4,418
|
asm
|
Assembly
|
resources/retrogamedev.chapters/chapter17/gameEnemies.asm
|
brawnydawg/retrojam4
|
28293e3348cdf5b2d844438689f43a8853e3508d
|
[
"MIT"
] | null | null | null |
resources/retrogamedev.chapters/chapter17/gameEnemies.asm
|
brawnydawg/retrojam4
|
28293e3348cdf5b2d844438689f43a8853e3508d
|
[
"MIT"
] | null | null | null |
resources/retrogamedev.chapters/chapter17/gameEnemies.asm
|
brawnydawg/retrojam4
|
28293e3348cdf5b2d844438689f43a8853e3508d
|
[
"MIT"
] | null | null | null |
;==============================================================================
; Constants
EnemiesMax = 7
EnemyAnimDelay = 10
;===============================================================================
; Variables
enemiesXCharArray byte 21, 37, 55, 79, 113, 151, 189
enemiesXChar byte 0
enemiesXMoveArray byte 63, 95, 136, 136, 160, 112, 151
enemiesXMove byte 0
enemiesFaceLeftArray dcb EnemiesMax, 0
enemiesFaceLeft byte 0
enemiesSprite byte 0
enemiesScreenXChar byte 0
enemiesXHigh byte 0
enemiesXLow byte 0
enemiesXOffsetArray dcb EnemiesMax, 0
enemiesXOffset byte 0
enemiesY byte 205
;===============================================================================
; Macros/Subroutines
gameEnemiesInit
ldx #0
stx enemiesSprite
gEILoop
inc enemiesSprite ; x+1
LIBSPRITE_SETFRAME_AV enemiesSprite, 11
LIBSPRITE_SETCOLOR_AV enemiesSprite, Brown
LIBSPRITE_MULTICOLORENABLE_AV enemiesSprite, True
LIBSPRITE_SETPRIORITY_AV enemiesSprite, True
LIBSPRITE_PLAYANIM_AVVVV enemiesSprite, 10, 12, EnemyAnimDelay, True
; loop for each enemy
inx
cpx #EnemiesMax
bne gEILoop
rts
;===============================================================================
gameEnemiesUpdate
ldx #0
stx enemiesSprite
gEULoop
inc enemiesSprite ; x+1
lda enemiesXCharArray,x
sta enemiesXChar
; calculate the on screen char position
LIBMATH_SUB8BIT_AAA enemiesXChar, screenColumn, enemiesScreenXChar
; offset by 20 chars to handle going off left of screen without wrapping
LIBMATH_ADD8BIT_AVA enemiesScreenXChar, 20, enemiesScreenXChar
lda enemiesScreenXChar
cmp #60; allow more chars than screen width so it doesn't pop on
bcs gEUOffscreen ; skip if offscreen
lda #0
sta enemiesXHigh
LIBSPRITE_ENABLE_AV enemiesSprite, True
lda enemiesScreenXChar
asl A ; multiply by 2
asl A ; and again = *4
asl A ; and again = *8
bcc gEUNotHigh ; if greater than 255, carry bit is set
ldy #1
sty enemiesXHigh
gEUNotHigh
sta enemiesXLow
LIBMATH_ADD8BIT_AAA enemiesXLow, screenScrollXValue, enemiesXLow
jsr gameEnemiesUpdatePosition
LIBSPRITE_SETPOSITION_AAAA enemiesSprite, enemiesXHigh, enemiesXLow, enemiesY
jmp gEUNext
gEUOffscreen
LIBSPRITE_ENABLE_AV enemiesSprite, False
gEUNext
; loop for each enemy
inx
cpx #EnemiesMax
;bne gEULoop
beq gEUFinished
jmp gEULoop
gEUFinished
rts
;===============================================================================
gameEnemiesUpdatePosition
lda enemiesFaceLeftArray,X
beq gEUPMoveRight
;gEUPMoveLeft
lda enemiesXOffsetArray,X
sta enemiesXOffset
cmp #0
beq gEUPTurnRight
dec enemiesXOffset
lda enemiesXOffset
sta enemiesXOffsetArray,X
jmp gEUPFinished
gEUPMoveRight
lda enemiesXMoveArray,X
sta enemiesXMove
lda enemiesXOffsetArray,X
sta enemiesXOffset
cmp enemiesXMove
beq gEUPTurnLeft
inc enemiesXOffset
lda enemiesXOffset
sta enemiesXOffsetArray,X
jmp gEUPFinished
gEUPTurnRight
lda #False
sta enemiesFaceLeftArray,X
LIBSPRITE_PLAYANIM_AVVVV enemiesSprite, 10, 12, EnemyAnimDelay, True
jmp gEUPFinished
gEUPTurnLeft
lda #True
sta enemiesFaceLeftArray,X
LIBSPRITE_PLAYANIM_AVVVV enemiesSprite, 13, 15, EnemyAnimDelay, True
jmp gEUPFinished
gEUPFinished
LIBMATH_ADD16BIT_AAVAAA enemiesXHigh, enemiesXLow, 0, enemiesXOffset, enemiesXHigh, enemiesXLow
; reset by 20 chars to handle going off left of screen without wrapping
; subtract 20chars x 8 pixels = 160
LIBMATH_SUB16BIT_AAVVAA enemiesXHigh, enemiesXLow, 0, 160, enemiesXHigh, enemiesXLow
rts
| 27.271605
| 104
| 0.565188
|
f46efff9cf3835df525e2f07f5bfcaa1d44e8fe8
| 2,762
|
cs
|
C#
|
test/Detached.Mappers.EntityFramework.Tests/MapAssociatedListTests.cs
|
Jogai/Detached-Mapper
|
2a1011d850406531b30eb9123ff1b23bd876d1ae
|
[
"MIT"
] | 28
|
2020-10-11T03:52:26.000Z
|
2022-03-09T18:44:54.000Z
|
test/Detached.Mappers.EntityFramework.Tests/MapAssociatedListTests.cs
|
Jogai/Detached-Mapper
|
2a1011d850406531b30eb9123ff1b23bd876d1ae
|
[
"MIT"
] | 17
|
2020-10-19T23:59:57.000Z
|
2022-03-21T09:10:25.000Z
|
test/Detached.Mappers.EntityFramework.Tests/MapAssociatedListTests.cs
|
leonardoporro/EntityFrameworkCore.Detached
|
22ea222c05e4149014a1cc0effe108311a518c78
|
[
"MIT"
] | 3
|
2021-06-29T20:44:43.000Z
|
2022-01-13T16:16:35.000Z
|
using Detached.Mappers.EntityFramework.Tests.Context;
using Detached.Mappers.EntityFramework.Tests.Model;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Detached.Mappers.EntityFramework.Tests
{
public class MapAssociatedListTests
{
[Fact]
public async Task map_associated_list()
{
TestDbContext db = await TestDbContext.CreateAsync();
db.Roles.Add(new Role { Id = 1, Name = "admin" });
db.Roles.Add(new Role { Id = 2, Name = "user" });
db.UserTypes.Add(new UserType { Id = 1, Name = "system" });
await db.SaveChangesAsync();
User newUser = new User
{
Id = 1,
Name = "test user",
Roles = new List<Role>
{
db.Find<Role>(1),
db.Find<Role>(2)
},
Addresses = new List<Address>
{
new Address { Street = "original street", Number = "123" }
},
Profile = new UserProfile
{
FirstName = "test",
LastName = "user"
},
UserType = db.Find<UserType>(1)
};
db.Users.Add(newUser);
await db.SaveChangesAsync();
User mappedUser = await db.MapAsync<User>(new EditUserInput
{
Id = 1,
Roles = new List<Role>
{
new Role { Id = 1 }
}
});
await db.SaveChangesAsync();
User savedUser = db.Users.Where(u => u.Id == 1).Include(u => u.Roles).FirstOrDefault();
Assert.Equal(1, savedUser.Id);
Assert.Equal("test user", savedUser.Name);
Assert.NotNull(savedUser.Profile);
Assert.Equal("test", savedUser.Profile.FirstName);
Assert.Equal("user", savedUser.Profile.LastName);
Assert.NotNull(savedUser.Addresses);
Assert.Equal(1, savedUser.Addresses.Count);
Assert.Equal("original street", savedUser.Addresses[0].Street);
Assert.Equal("123", savedUser.Addresses[0].Number);
Assert.NotNull(savedUser.Roles);
Assert.Equal(1, savedUser.Roles.Count);
Assert.Contains(savedUser.Roles, r => r.Id == 1);
Assert.NotNull(savedUser.UserType);
Assert.Equal(1, savedUser.UserType.Id);
}
public class EditUserInput
{
public int Id { get; set; }
public List<Role> Roles { get; set; }
}
}
}
| 34.098765
| 99
| 0.509051
|
1b014a2076a7609e689dc8dcba77e39cf243544a
| 1,332
|
rb
|
Ruby
|
spec/checks/mongodb_spec.rb
|
RohitRox/hcheck
|
f1867350d63fb06271528a5220d81e84a0115791
|
[
"MIT"
] | null | null | null |
spec/checks/mongodb_spec.rb
|
RohitRox/hcheck
|
f1867350d63fb06271528a5220d81e84a0115791
|
[
"MIT"
] | null | null | null |
spec/checks/mongodb_spec.rb
|
RohitRox/hcheck
|
f1867350d63fb06271528a5220d81e84a0115791
|
[
"MIT"
] | null | null | null |
RSpec.describe Hcheck::Checks::Mongodb do
include Hcheck::Checks::Mongodb
describe '#status' do
let(:test_config) do
{
hosts: ['MONGO_DB_HOST', nil]
}
end
let(:mongo_connection) { double('Mongo::Client', database_names: [], close: true) }
before do
allow(Mongo::Client).to receive(:new) { mongo_connection }
end
subject { status(test_config) }
it 'tries to make mongo connection with supplied config (removes nil hosts) with additional config' do
hosts = test_config[:hosts].compact
expect(Mongo::Client).to receive(:new).with(hosts,
connect_timeout: 3,
server_selection_timeout: hosts.count * 2)
subject
end
context 'when hcheck is able to connect to mongo with supplied config' do
it 'returns ok' do
expect(subject).to eql 'ok'
end
end
context 'when mongo servers are not reachable' do
it 'returns bad' do
server_selector_object = double(:server_selector, server_selection_timeout: 1, local_threshold: 1)
allow(mongo_connection).to receive(:database_names).and_raise Mongo::Error::NoServerAvailable, server_selector_object
expect(subject).to eql 'bad'
end
end
end
end
| 30.976744
| 125
| 0.626877
|
e74da3a33e78a018c5c5e51cdec541c0754352fb
| 1,264
|
php
|
PHP
|
app/database/migrations/2015_04_17_083358_create_schools_table.php
|
summmmit/schoolopedia
|
d97d002c36b3ec5be99f5b1717004e28f30acf0c
|
[
"MIT"
] | null | null | null |
app/database/migrations/2015_04_17_083358_create_schools_table.php
|
summmmit/schoolopedia
|
d97d002c36b3ec5be99f5b1717004e28f30acf0c
|
[
"MIT"
] | null | null | null |
app/database/migrations/2015_04_17_083358_create_schools_table.php
|
summmmit/schoolopedia
|
d97d002c36b3ec5be99f5b1717004e28f30acf0c
|
[
"MIT"
] | null | null | null |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateSchoolsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('schools', function(Blueprint $table)
{
$table->integer('id', true);
$table->string('school_name', 100);
$table->string('manager_full_name', 60);
$table->string('phone_number', 15);
$table->string('email', 100);
$table->string('add_1', 100);
$table->string('add_2', 100);
$table->string('city', 30);
$table->string('state', 30);
$table->string('country', 30);
$table->string('pin_code', 10);
$table->string('time_zone', 50);
$table->string('registration_code', 100);
$table->string('code_for_admin', 100);
$table->string('code_for_moderators', 100);
$table->string('code_for_teachers', 100);
$table->string('code_for_parents', 100);
$table->string('code_for_students', 100);
$table->dateTime('registration_date');
$table->text('logo', 65535);
$table->boolean('active');
$table->dateTime('deleted_at');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('schools');
}
}
| 22.981818
| 54
| 0.638449
|
7bf5f708382ae8e594df3687f8fdd31bf1b71cf0
| 6,652
|
cpp
|
C++
|
examples/lite/cv/test_lite_fsanet.cpp
|
IgiArdiyanto/litehub
|
54a43690d80e57f16bea1efc698e7d30f06b9d4f
|
[
"MIT"
] | null | null | null |
examples/lite/cv/test_lite_fsanet.cpp
|
IgiArdiyanto/litehub
|
54a43690d80e57f16bea1efc698e7d30f06b9d4f
|
[
"MIT"
] | null | null | null |
examples/lite/cv/test_lite_fsanet.cpp
|
IgiArdiyanto/litehub
|
54a43690d80e57f16bea1efc698e7d30f06b9d4f
|
[
"MIT"
] | null | null | null |
//
// Created by DefTruth on 2021/6/24.
//
#include "lite/lite.h"
static void test_default()
{
std::string var_onnx_path = "../../../hub/onnx/cv/fsanet-var.onnx";
std::string conv_onnx_path = "../../../hub/onnx/cv/fsanet-1x1.onnx";
std::string test_img_path = "../../../examples/lite/resources/test_lite_fsanet.jpg";
std::string save_img_path = "../../../logs/test_lite_fsanet.jpg";
lite::cv::face::pose::FSANet *var_fsanet = new lite::cv::face::pose::FSANet(var_onnx_path);
lite::cv::face::pose::FSANet *conv_fsanet = new lite::cv::face::pose::FSANet(conv_onnx_path);
cv::Mat img_bgr = cv::imread(test_img_path);
lite::types::EulerAngles var_euler_angles, conv_euler_angles;
// 1. detect euler angles.
var_fsanet->detect(img_bgr, var_euler_angles);
conv_fsanet->detect(img_bgr, conv_euler_angles);
lite::types::EulerAngles euler_angles;
euler_angles.yaw = (var_euler_angles.yaw + conv_euler_angles.yaw) / 2.0f;
euler_angles.pitch = (var_euler_angles.pitch + conv_euler_angles.pitch) / 2.0f;
euler_angles.roll = (var_euler_angles.roll + conv_euler_angles.roll) / 2.0f;
euler_angles.flag = var_euler_angles.flag && conv_euler_angles.flag;
if (euler_angles.flag)
{
lite::utils::draw_axis_inplace(img_bgr, euler_angles);
cv::imwrite(save_img_path, img_bgr);
std::cout << "Default Version"
<< " yaw: " << euler_angles.yaw
<< " pitch: " << euler_angles.pitch
<< " roll: " << euler_angles.roll << std::endl;
}
delete var_fsanet;
delete conv_fsanet;
}
static void test_onnxruntime()
{
#ifdef ENABLE_ONNXRUNTIME
std::string var_onnx_path = "../../../hub/onnx/cv/fsanet-var.onnx";
std::string conv_onnx_path = "../../../hub/onnx/cv/fsanet-1x1.onnx";
std::string test_img_path = "../../../examples/lite/resources/test_lite_fsanet.jpg";
std::string save_img_path = "../../../logs/test_fsanet_onnx.jpg";
lite::onnxruntime::cv::face::pose::FSANet *var_fsanet =
new lite::onnxruntime::cv::face::pose::FSANet(var_onnx_path);
lite::onnxruntime::cv::face::pose::FSANet *conv_fsanet =
new lite::onnxruntime::cv::face::pose::FSANet(conv_onnx_path);
cv::Mat img_bgr = cv::imread(test_img_path);
lite::types::EulerAngles var_euler_angles, conv_euler_angles;
// 1. detect euler angles.
var_fsanet->detect(img_bgr, var_euler_angles);
conv_fsanet->detect(img_bgr, conv_euler_angles);
lite::types::EulerAngles euler_angles;
euler_angles.yaw = (var_euler_angles.yaw + conv_euler_angles.yaw) / 2.0f;
euler_angles.pitch = (var_euler_angles.pitch + conv_euler_angles.pitch) / 2.0f;
euler_angles.roll = (var_euler_angles.roll + conv_euler_angles.roll) / 2.0f;
euler_angles.flag = var_euler_angles.flag && conv_euler_angles.flag;
if (euler_angles.flag)
{
lite::utils::draw_axis_inplace(img_bgr, euler_angles);
cv::imwrite(save_img_path, img_bgr);
std::cout << "ONNXRuntime Version"
<< " yaw: " << euler_angles.yaw
<< " pitch: " << euler_angles.pitch
<< " roll: " << euler_angles.roll << std::endl;
}
delete var_fsanet;
delete conv_fsanet;
#endif
}
static void test_mnn()
{
#ifdef ENABLE_MNN
std::string var_mnn_path = "../../../hub/mnn/cv/fsanet-var.mnn";
std::string conv_mnn_path = "../../../hub/mnn/cv/fsanet-1x1.mnn";
std::string test_img_path = "../../../examples/lite/resources/test_lite_fsanet.jpg";
std::string save_img_path = "../../../logs/test_fsanet_mnn.jpg";
lite::mnn::cv::face::pose::FSANet *var_fsanet =
new lite::mnn::cv::face::pose::FSANet(var_mnn_path);
lite::mnn::cv::face::pose::FSANet *conv_fsanet =
new lite::mnn::cv::face::pose::FSANet(conv_mnn_path);
cv::Mat img_bgr = cv::imread(test_img_path);
lite::types::EulerAngles var_euler_angles, conv_euler_angles;
// 1. detect euler angles.
var_fsanet->detect(img_bgr, var_euler_angles);
conv_fsanet->detect(img_bgr, conv_euler_angles);
lite::types::EulerAngles euler_angles;
euler_angles.yaw = (var_euler_angles.yaw + conv_euler_angles.yaw) / 2.0f;
euler_angles.pitch = (var_euler_angles.pitch + conv_euler_angles.pitch) / 2.0f;
euler_angles.roll = (var_euler_angles.roll + conv_euler_angles.roll) / 2.0f;
euler_angles.flag = var_euler_angles.flag && conv_euler_angles.flag;
if (euler_angles.flag)
{
lite::utils::draw_axis_inplace(img_bgr, euler_angles);
cv::imwrite(save_img_path, img_bgr);
std::cout << "MNN Version"
<< " yaw: " << euler_angles.yaw
<< " pitch: " << euler_angles.pitch
<< " roll: " << euler_angles.roll << std::endl;
}
delete var_fsanet;
delete conv_fsanet;
#endif
}
static void test_ncnn()
{
#ifdef ENABLE_NCNN
#endif
}
static void test_tnn()
{
#ifdef ENABLE_TNN
std::string var_proto_path = "../../../hub/tnn/cv/fsanet-var.opt.tnnproto";
std::string var_model_path = "../../../hub/tnn/cv/fsanet-var.opt.tnnmodel";
std::string conv_proto_path = "../../../hub/tnn/cv/fsanet-1x1.opt.tnnproto";
std::string conv_model_path = "../../../hub/tnn/cv/fsanet-1x1.opt.tnnmodel";
std::string test_img_path = "../../../examples/lite/resources/test_lite_fsanet.jpg";
std::string save_img_path = "../../../logs/test_fsanet_tnn.jpg";
lite::tnn::cv::face::pose::FSANet *var_fsanet =
new lite::tnn::cv::face::pose::FSANet(var_proto_path, var_model_path);
lite::tnn::cv::face::pose::FSANet *conv_fsanet =
new lite::tnn::cv::face::pose::FSANet(conv_proto_path, conv_model_path);
cv::Mat img_bgr = cv::imread(test_img_path);
lite::types::EulerAngles var_euler_angles, conv_euler_angles;
// 1. detect euler angles.
var_fsanet->detect(img_bgr, var_euler_angles);
conv_fsanet->detect(img_bgr, conv_euler_angles);
lite::types::EulerAngles euler_angles;
euler_angles.yaw = (var_euler_angles.yaw + conv_euler_angles.yaw) / 2.0f;
euler_angles.pitch = (var_euler_angles.pitch + conv_euler_angles.pitch) / 2.0f;
euler_angles.roll = (var_euler_angles.roll + conv_euler_angles.roll) / 2.0f;
euler_angles.flag = var_euler_angles.flag && conv_euler_angles.flag;
if (euler_angles.flag)
{
lite::utils::draw_axis_inplace(img_bgr, euler_angles);
cv::imwrite(save_img_path, img_bgr);
std::cout << "TNN Version"
<< " yaw: " << euler_angles.yaw
<< " pitch: " << euler_angles.pitch
<< " roll: " << euler_angles.roll << std::endl;
}
delete var_fsanet;
delete conv_fsanet;
#endif
}
static void test_lite()
{
test_default();
test_onnxruntime();
test_mnn();
test_ncnn();
test_tnn();
}
int main(__unused int argc, __unused char *argv[])
{
test_lite();
return 0;
}
| 34.112821
| 95
| 0.683403
|
b0360dd3917a6f12c739211b1b5ee649da8fca78
| 4,629
|
sql
|
SQL
|
database/create.sql
|
BlueflameLi/Ticket_reservation_system
|
c459aefd3fa346ed7b2119cdecdcc8c5bac01d34
|
[
"MIT"
] | 3
|
2021-06-20T12:47:19.000Z
|
2021-06-27T03:31:43.000Z
|
database/create.sql
|
BlueflameLi/Ticket_reservation_system
|
c459aefd3fa346ed7b2119cdecdcc8c5bac01d34
|
[
"MIT"
] | null | null | null |
database/create.sql
|
BlueflameLi/Ticket_reservation_system
|
c459aefd3fa346ed7b2119cdecdcc8c5bac01d34
|
[
"MIT"
] | null | null | null |
CREATE DATABASE Ticket_reservation
GO
USE Ticket_reservation
GO
-- 用户
CREATE TABLE [User] (
[Uname] varchar(20) NOT NULL, -- 用户名
[Passwd] varchar(20) NOT NULL, -- 密码
[Phone] char(11), -- 手机号
[Sex] char(2) DEFAULT '男', -- 性别
[Name] varchar(30), -- 姓名
[Email] varchar(320), -- 邮箱
PRIMARY KEY ([Uname]),
CHECK ([Sex] IN ('男', '女'))
)
GO
-- 机场
CREATE TABLE [Airport] (
[Airport_code] char(4) NOT NULL, -- 机场代码
[City] varchar(100) NOT NULL, -- 城市
[Airport_name] varchar(100) NOT NULL, -- 机场名
PRIMARY KEY ([Airport_code])
)
GO
-- 航班
CREATE TABLE [Flight] (
[Flight_NO] char(6) NOT NULL, -- 航班号
[Departure_apcode] char(4) NOT NULL, -- 出发机场代码
[Arrival_apcode] char(4) NOT NULL, -- 到达机场代码
[Departure_teminal] char(2) NOT NULL, -- 出发航站楼
[Arrival_teminal] char(2) NOT NULL, -- 到达航站楼
[Airline] varchar(100) NOT NULL, -- 航空公司
PRIMARY KEY ([Flight_NO]),
FOREIGN KEY ([Departure_apcode])
REFERENCES [Airport] ([Airport_code]),
FOREIGN KEY ([Arrival_apcode])
REFERENCES [Airport] ([Airport_code])
)
GO
-- 飞机
CREATE TABLE [Airplane] (
[Plane_NO] char(10) NOT NULL, -- 飞机号
[Plane_model] varchar(20) NOT NULL, -- 机型
[Plane_type] char(4) NOT NULL, -- 类型
PRIMARY KEY ([Plane_NO]),
CHECK ([Plane_type] IN ('窄体', '宽体'))
)
GO
-- 行程
CREATE TABLE [Itinerary] (
[Itinerary_id] char(12) NOT NULL, -- 行程号
[Plan_departuretime] datetime NOT NULL, -- 计划起飞时间
[Plan_arrivaltime] datetime NOT NULL, -- 计划到达时间
[Plan_departuredate] date NOT NULL, -- 计划起飞日期
[Flight_NO] char(6) NOT NULL, -- 航班号
[Plane_NO] char(10) NOT NULL, -- 飞机号
[Departuretime] datetime NOT NULL, -- 预计/实际起飞时间
[Arrivaltime] datetime NOT NULL, -- 预计/实际降落时间
[Flight_status] char(8) NOT NULL, -- 航班状态
[Mileage] smallint, -- 飞行里程
PRIMARY KEY ([Itinerary_id]),
FOREIGN KEY ([Flight_NO])
REFERENCES [Flight] ([Flight_NO]),
FOREIGN KEY ([Plane_NO])
REFERENCES [Airplane] ([Plane_NO]),
CHECK ([Flight_status] IN (
'航班计划',
'航班起飞',
'航班到达',
'航班取消',
'正在登机',
'登机结束',
'航班延误'
)),
UNIQUE ([Plan_departuredate], [Flight_NO]) -- 同一航班一天只出现一次
)
GO
-- 舱位(弱实体集依赖飞机)
CREATE TABLE [Cabin] (
[Plane_NO] char(10) NOT NULL, -- 飞机号
[Cabin_code] char(1) NOT NULL, -- 舱位代码
[Cabin_type] char(6) NOT NULL, -- 舱位类型
[Seat_capacity] smallint NOT NULL, -- 座位容量
PRIMARY KEY ([Plane_NO], [Cabin_code]),
FOREIGN KEY ([Plane_NO])
REFERENCES [Airplane] ([Plane_NO])
ON DELETE CASCADE,
CHECK ([Cabin_type] IN ('经济舱', '公务舱', '头等舱'))
)
GO
-- 出行人(弱实体集依赖用户)
CREATE TABLE [Passenger] (
[Uname] varchar(20) NOT NULL, -- 用户名
[IDCard_NO] char(18) NOT NULL, -- 身份证号
[Pname] varchar(30) NOT NULL, -- 姓名
PRIMARY KEY ([Uname], [IDCard_NO]),
FOREIGN KEY ([Uname])
REFERENCES [User] ([Uname])
ON DELETE CASCADE
)
GO
-- 行程-舱位(机票)
CREATE TABLE [Itinerary_Cabin] (
[Itinerary_id] char(12) NOT NULL, -- 行程号
[Plane_NO] char(10) NOT NULL, -- 飞机号
[Cabin_code] char(1) NOT NULL, -- 舱位代码
[Price] int NOT NULL, -- 价格
[remaining] int NOT NULL, -- 座位余量
PRIMARY KEY ([Itinerary_id], [Plane_NO], [Cabin_code]),
FOREIGN KEY ([Plane_NO], [Cabin_code])
REFERENCES [Cabin] ([Plane_NO], [Cabin_code]),
FOREIGN KEY ([Itinerary_id])
REFERENCES [Itinerary] ([Itinerary_id])
)
GO
-- 订单
CREATE TABLE [Order] (
[Order_id] char(12) NOT NULL, -- 订单号
[Order_pay] int NOT NULL, -- 下单金额
[Ticker_num] smallint NOT NULL, -- 订票数
[Contact_Phone] char(11) NOT NULL, -- 联系人电话
[Itinerary_id] char(12) NOT NULL, -- 行程号
[Plane_NO] char(10) NOT NULL, -- 飞机号
[Cabin_code] char(1) NOT NULL, -- 舱位代码
[Uname] varchar(20) NOT NULL, -- 用户名
[Order_time] datetime NOT NULL, -- 订单创建/修改时间
[Order_status] char(10) NOT NULL, -- 订单状态
PRIMARY KEY ([Order_id]),
FOREIGN KEY ([Itinerary_id],[Plane_NO],[Cabin_code])
REFERENCES [Itinerary_Cabin]([Itinerary_id],[Plane_NO],[Cabin_code]),
FOREIGN KEY ([Uname])
REFERENCES [User] ([Uname])
)
GO
-- 订单-出行人
CREATE TABLE [Order_Passenger] (
[Uname] varchar(20) NOT NULL, -- 用户名
[IDCard_NO] char(18) NOT NULL, -- 身份证号
[Order_id] char(12) NOT NULL, -- 订单号
[Ticket_NO] char(13) NOT NULL, -- 票号
PRIMARY KEY ([Uname], [IDCard_NO], [Order_id]),
FOREIGN KEY ([Uname], [IDCard_NO])
REFERENCES [Passenger] ([Uname], [IDCard_NO]),
FOREIGN KEY ([Order_id])
REFERENCES [Order] ([Order_id])
)
GO
CREATE TYPE [People] AS TABLE(
[IDCard_NO] char(18) NOT NULL, -- 身份证号
[Pname] varchar(30) NOT NULL, -- 姓名
PRIMARY KEY ([IDCard_NO])
)
GO
CREATE INDEX [IX_Flight_Departure]
ON [Flight]([Departure_apcode]);
GO
CREATE INDEX [IX_Flight_Arrival]
ON [Flight]([Arrival_apcode]);
GO
CREATE INDEX [IX_Itinerary_Flight]
ON [Itinerary]([Flight_NO]);
| 28.574074
| 71
| 0.653921
|
e446779fd621fd88f2df579e4cdbada62e17e6d9
| 14,523
|
rs
|
Rust
|
execution/executor/src/lib.rs
|
davidbarsky/diem
|
00f54fe75299874593ed3ee0c87dfe09fd74ef40
|
[
"Apache-2.0"
] | null | null | null |
execution/executor/src/lib.rs
|
davidbarsky/diem
|
00f54fe75299874593ed3ee0c87dfe09fd74ef40
|
[
"Apache-2.0"
] | 277
|
2021-05-11T05:34:08.000Z
|
2022-03-31T10:03:48.000Z
|
execution/executor/src/lib.rs
|
davidbarsky/diem
|
00f54fe75299874593ed3ee0c87dfe09fd74ef40
|
[
"Apache-2.0"
] | null | null | null |
// Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
#![forbid(unsafe_code)]
use std::{
collections::{hash_map, HashMap, HashSet},
convert::TryFrom,
marker::PhantomData,
sync::Arc,
};
use anyhow::{bail, ensure, format_err, Result};
use components::speculation_cache::SpeculationCache;
use diem_crypto::{
hash::{CryptoHash, EventAccumulatorHasher, TransactionAccumulatorHasher},
HashValue,
};
use diem_infallible::{RwLock, RwLockReadGuard};
use diem_logger::prelude::*;
use diem_state_view::StateViewId;
use diem_types::{
account_address::{AccountAddress, HashAccountAddress},
account_state::AccountState,
account_state_blob::AccountStateBlob,
epoch_state::EpochState,
on_chain_config,
proof::accumulator::InMemoryAccumulator,
protocol_spec::{DpnProto, ProtocolSpec},
transaction::{
Transaction, TransactionInfoTrait, TransactionOutput, TransactionPayload, TransactionStatus,
},
write_set::{WriteOp, WriteSet, WriteSetMut},
};
use diem_vm::VMExecutor;
use executor_types::{Error, ExecutedTrees, ProcessedVMOutput, ProofReader, TransactionData};
use rayon::prelude::*;
use storage_interface::{
default_protocol::DbReaderWriter, state_view::VerifiedStateView, TreeState,
};
use crate::metrics::DIEM_EXECUTOR_ERRORS;
#[cfg(any(test, feature = "fuzzing"))]
pub mod fuzzing;
mod logging;
pub mod metrics;
#[cfg(test)]
mod mock_vm;
#[cfg(test)]
mod tests;
pub mod block_executor_impl;
pub mod chunk_executor;
pub mod components;
pub mod db_bootstrapper;
/// `Executor` implements all functionalities the execution module needs to provide.
pub struct Executor<PS, V> {
db: DbReaderWriter,
cache: RwLock<SpeculationCache>,
phantom: PhantomData<(PS, V)>,
}
impl<PS, V> Executor<PS, V>
where
PS: ProtocolSpec,
V: VMExecutor,
{
pub fn committed_block_id(&self) -> HashValue {
self.cache.read().committed_block_id()
}
/// Constructs an `Executor`.
pub fn new(db: DbReaderWriter) -> Self {
let startup_info = db
.reader
.get_startup_info()
.expect("Shouldn't fail")
.expect("DB not bootstrapped.");
Self {
db,
cache: RwLock::new(SpeculationCache::new_with_startup_info(startup_info)),
phantom: PhantomData,
}
}
fn reset_cache(&self) -> Result<(), Error> {
let startup_info = self
.db
.reader
.get_startup_info()?
.ok_or_else(|| format_err!("DB not bootstrapped."))?;
*self.cache.write() = SpeculationCache::new_with_startup_info(startup_info);
Ok(())
}
pub fn new_on_unbootstrapped_db(db: DbReaderWriter, tree_state: TreeState) -> Self {
Self {
db,
cache: RwLock::new(SpeculationCache::new_for_db_bootstrapping(tree_state)),
phantom: PhantomData,
}
}
/// Post-processing of what the VM outputs. Returns the entire block's output.
fn process_vm_outputs(
transactions: &[Transaction],
vm_outputs: Vec<TransactionOutput>,
// the one used by the vm during the execution which generated `vm_output`
state_view: VerifiedStateView<DpnProto>,
parent_transaction_accumulator: &Arc<InMemoryAccumulator<TransactionAccumulatorHasher>>,
) -> Result<ProcessedVMOutput> {
let (mut account_to_state, account_to_proof, parent_state) =
state_view.unpack_after_execution();
// The data of each individual transaction. For convenience purpose, even for the
// transactions that will be discarded, we will compute its in-memory Sparse Merkle Tree
// (it will be identical to the previous one).
let mut txn_data = vec![];
// The hash of each individual PS::TransactionInfo object. This will not include the
// transactions that will be discarded, since they do not go into the transaction
// accumulator.
let mut txn_info_hashes = vec![];
let proof_reader = ProofReader::new(account_to_proof);
let new_epoch_event_key = on_chain_config::new_epoch_event_key();
let new_epoch_marker = vm_outputs
.iter()
.enumerate()
.find(|(_, output)| {
output
.events()
.iter()
.any(|event| *event.key() == new_epoch_event_key)
})
// Off by one for exclusive index.
.map(|(idx, _)| idx + 1);
let transaction_count = new_epoch_marker.unwrap_or(vm_outputs.len());
let txn_states = itertools::zip_eq(vm_outputs.iter(), transactions.iter())
.take(transaction_count)
.map(|(vm_output, txn)| {
process_write_set(txn, &mut account_to_state, vm_output.write_set().clone())
})
.collect::<Result<Vec<_>>>()?;
let txn_blobs = txn_states
.par_iter()
.with_min_len(100)
.map(|account_to_state| {
account_to_state
.iter()
.map(|(addr, state)| Ok((*addr, AccountStateBlob::try_from(state)?)))
.collect::<Result<HashMap<_, _>>>()
})
.collect::<Result<Vec<_>>>()?;
let (roots_with_node_hashes, current_state_tree) = parent_state
.serial_update(
txn_blobs
.iter()
.map(|m| {
m.iter()
.map(|(account, value)| (account.hash(), value))
.collect::<Vec<_>>()
})
.collect(),
&proof_reader,
)
.map_err(|e| format_err!("Failed to update state tree. err: {:?}", e))?;
for ((vm_output, txn), ((state_tree_hash, new_node_hashes), blobs)) in itertools::zip_eq(
itertools::zip_eq(vm_outputs.into_iter(), transactions.iter()).take(transaction_count),
itertools::zip_eq(roots_with_node_hashes, txn_blobs),
) {
let event_tree = {
let event_hashes: Vec<_> =
vm_output.events().iter().map(CryptoHash::hash).collect();
InMemoryAccumulator::<EventAccumulatorHasher>::from_leaves(&event_hashes)
};
let txn_info_hash = match vm_output.status() {
TransactionStatus::Keep(status) => {
ensure!(
!vm_output.write_set().is_empty(),
"Transaction with empty write set should be discarded.",
);
// Compute hash for the PS::TransactionInfo object. We need the hash of the
// transaction itself, the state root hash as well as the event root hash.
let txn_info_hash = PS::TransactionInfo::new(
txn.hash(),
state_tree_hash,
event_tree.root_hash(),
vm_output.gas_used(),
status.clone(),
)
.hash();
txn_info_hashes.push(txn_info_hash);
Some(txn_info_hash)
}
TransactionStatus::Discard(status) => {
if !vm_output.write_set().is_empty() || !vm_output.events().is_empty() {
error!(
"Discarded transaction has non-empty write set or events. \
Transaction: {:?}. Status: {:?}.",
txn, status,
);
DIEM_EXECUTOR_ERRORS.inc();
}
None
}
TransactionStatus::Retry => None,
};
txn_data.push(TransactionData::new(
blobs,
new_node_hashes,
vm_output.write_set().clone(),
vm_output.events().to_vec(),
vm_output.status().clone(),
state_tree_hash,
Arc::new(event_tree),
vm_output.gas_used(),
txn_info_hash,
));
}
// check for change in validator set
let next_epoch_state = if new_epoch_marker.is_some() {
// Pad the rest of transactions
txn_data.resize(
transactions.len(),
TransactionData::new(
HashMap::new(),
HashMap::new(),
WriteSetMut::new(vec![])
.freeze()
.expect("generated write sets should always be valid"),
vec![],
TransactionStatus::Retry,
current_state_tree.root_hash(),
Arc::new(InMemoryAccumulator::<EventAccumulatorHasher>::default()),
0,
None,
),
);
let validator_set = account_to_state
.get(&on_chain_config::config_address())
.map(|state| {
state
.get_validator_set()?
.ok_or_else(|| format_err!("ValidatorSet does not exist"))
})
.ok_or_else(|| format_err!("ValidatorSet account does not exist"))??;
let configuration = account_to_state
.get(&on_chain_config::config_address())
.map(|state| {
state
.get_configuration_resource()?
.ok_or_else(|| format_err!("Configuration does not exist"))
})
.ok_or_else(|| format_err!("Association account does not exist"))??;
Some(EpochState {
epoch: configuration.epoch(),
verifier: (&validator_set).into(),
})
} else {
None
};
let current_transaction_accumulator =
parent_transaction_accumulator.append(&txn_info_hashes);
Ok(ProcessedVMOutput::new(
txn_data,
ExecutedTrees::new_copy(
current_state_tree.unfreeze(),
Arc::new(current_transaction_accumulator),
),
next_epoch_state,
))
}
fn get_executed_trees_from_lock(
cache: &RwLockReadGuard<SpeculationCache>,
block_id: HashValue,
) -> Result<ExecutedTrees, Error> {
let executed_trees = if block_id == cache.committed_block_id() {
cache.committed_trees().clone()
} else {
cache
.get_block(&block_id)?
.lock()
.output()
.executed_trees()
.clone()
};
Ok(executed_trees)
}
fn get_executed_state_view_from_lock<'a>(
&self,
cache: &RwLockReadGuard<SpeculationCache>,
id: StateViewId,
executed_trees: &'a ExecutedTrees,
) -> VerifiedStateView<DpnProto> {
VerifiedStateView::new(
id,
Arc::clone(&self.db.reader),
cache.committed_trees().version(),
cache.committed_trees().state_root(),
executed_trees.state_tree().clone(),
)
}
fn get_executed_trees(&self, block_id: HashValue) -> Result<ExecutedTrees, Error> {
let read_lock = self.cache.read();
Self::get_executed_trees_from_lock(&read_lock, block_id)
}
fn get_executed_state_view(
&self,
id: StateViewId,
executed_trees: &ExecutedTrees,
) -> VerifiedStateView<DpnProto> {
let read_lock = self.cache.read();
self.get_executed_state_view_from_lock(&read_lock, id, executed_trees)
}
}
/// For all accounts modified by this transaction, find the previous blob and update it based
/// on the write set. Returns the blob value of all these accounts.
pub fn process_write_set(
transaction: &Transaction,
account_to_state: &mut HashMap<AccountAddress, AccountState>,
write_set: WriteSet,
) -> Result<HashMap<AccountAddress, AccountState>> {
let mut updated_blobs = HashMap::new();
// Find all addresses this transaction touches while processing each write op.
let mut addrs = HashSet::new();
for (access_path, write_op) in write_set.into_iter() {
let address = access_path.address;
let path = access_path.path;
match account_to_state.entry(address) {
hash_map::Entry::Occupied(mut entry) => {
update_account_state(entry.get_mut(), path, write_op);
}
hash_map::Entry::Vacant(entry) => {
// Before writing to an account, VM should always read that account. So we
// should not reach this code path. The exception is genesis transaction (and
// maybe other writeset transactions).
match transaction {
Transaction::GenesisTransaction(_) => (),
Transaction::BlockMetadata(_) => {
bail!("Write set should be a subset of read set.")
}
Transaction::UserTransaction(txn) => match txn.payload() {
TransactionPayload::ModuleBundle(_)
| TransactionPayload::Script(_)
| TransactionPayload::ScriptFunction(_) => {
bail!("Write set should be a subset of read set.")
}
TransactionPayload::WriteSet(_) => (),
},
}
let mut account_state = Default::default();
update_account_state(&mut account_state, path, write_op);
entry.insert(account_state);
}
}
addrs.insert(address);
}
for addr in addrs {
let account_state = account_to_state.get(&addr).expect("Address should exist.");
updated_blobs.insert(addr, account_state.clone());
}
Ok(updated_blobs)
}
fn update_account_state(account_state: &mut AccountState, path: Vec<u8>, write_op: WriteOp) {
match write_op {
WriteOp::Value(new_value) => account_state.insert(path, new_value),
WriteOp::Deletion => account_state.remove(&path),
};
}
| 36.860406
| 100
| 0.555051
|
38425339e8c58aa840c1190514f9ed17886cdc3a
| 760
|
php
|
PHP
|
database/seeders/AdminSeeder.php
|
mostafaelneemr/Project_laravel_POS
|
f57e2bebe19f289e0e29d5bc05cdb6bc495b60b2
|
[
"MIT"
] | null | null | null |
database/seeders/AdminSeeder.php
|
mostafaelneemr/Project_laravel_POS
|
f57e2bebe19f289e0e29d5bc05cdb6bc495b60b2
|
[
"MIT"
] | null | null | null |
database/seeders/AdminSeeder.php
|
mostafaelneemr/Project_laravel_POS
|
f57e2bebe19f289e0e29d5bc05cdb6bc495b60b2
|
[
"MIT"
] | null | null | null |
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;
class AdminSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')->delete();
$user = User::create([
'name' => 'Mostafa elnemr',
'email' => 'admin@mail',
'password' => bcrypt('123456789')
]);
$role = Role::create(['name' => 'Admin']);
$permissions = Permission::pluck('id','id')->all();
$role->syncPermissions($permissions);
$user->assignRole([$role->id]);
}
}
| 22.352941
| 61
| 0.565789
|
14cb71cc40d14ef1e958fd5124b9172f5598e54f
| 1,048
|
ts
|
TypeScript
|
src/utils/HttpClient.ts
|
hknc/pop-repos
|
0c031b7e2951be0a75df85ea08b71f5fb4f9c2a1
|
[
"MIT"
] | null | null | null |
src/utils/HttpClient.ts
|
hknc/pop-repos
|
0c031b7e2951be0a75df85ea08b71f5fb4f9c2a1
|
[
"MIT"
] | null | null | null |
src/utils/HttpClient.ts
|
hknc/pop-repos
|
0c031b7e2951be0a75df85ea08b71f5fb4f9c2a1
|
[
"MIT"
] | 1
|
2021-08-29T05:06:59.000Z
|
2021-08-29T05:06:59.000Z
|
import axios, { AxiosInstance } from "axios"
import { stringify } from "qs"
import Env from "./Env"
const GITHUB_BASE_URL = Env.get("GITHUB_BASE_URL", "")
class HttpClient {
private instance: AxiosInstance
private baseURL: string
constructor(baseURL: string) {
this.baseURL = baseURL
const axiosInstance = axios.create({
baseURL: baseURL,
headers: {
"User-Agent": "pop-repos:v1",
Accept: "application/vnd.github.v3+json",
},
})
axiosInstance.defaults.paramsSerializer = this.paramsSerializer
axiosInstance.defaults.withCredentials = true
//axiosInstance.interceptors.response.use((response) => response.data)
this.instance = axiosInstance
}
public getInstance = (): AxiosInstance => {
if (!this.instance) new HttpClient(this.baseURL)
return this.instance
}
private paramsSerializer = (params: string[]) => stringify(params, { arrayFormat: "repeat" })
}
export const githubClient = new HttpClient(GITHUB_BASE_URL).getInstance()
export default HttpClient
| 25.560976
| 95
| 0.699427
|
ed0d974972f5b9830fb21fb8b08ab52d77424d15
| 3,257
|
h
|
C
|
ngraph_bridge/ngraph_builder.h
|
levanpon98/ngraph-bridge
|
5a63194e094a345685b4676fe0abb923718c529a
|
[
"Apache-2.0"
] | 142
|
2019-02-21T00:53:06.000Z
|
2022-03-11T07:46:28.000Z
|
ngraph_bridge/ngraph_builder.h
|
tensorflow/ngraph
|
ea6422491ec75504e78a63db029e7f74ec3479a5
|
[
"Apache-2.0"
] | 252
|
2019-03-11T19:27:59.000Z
|
2021-03-19T10:58:17.000Z
|
ngraph_bridge/ngraph_builder.h
|
tensorflow/ngraph
|
ea6422491ec75504e78a63db029e7f74ec3479a5
|
[
"Apache-2.0"
] | 65
|
2019-03-13T15:27:29.000Z
|
2021-07-16T07:09:16.000Z
|
/*******************************************************************************
* Copyright 2017-2020 Intel Corporation
*
* 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.
*******************************************************************************/
#pragma once
#include <ostream>
#include <vector>
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/graph/graph.h"
#include "ngraph/ngraph.hpp"
namespace tensorflow {
namespace ngraph_bridge {
class Builder {
public:
static Status TranslateGraph(
const std::vector<TensorShape>& inputs,
const std::vector<const Tensor*>& static_input_map, const Graph* tf_graph,
const string name, std::shared_ptr<ngraph::Function>& ng_function);
using OpMap = std::unordered_map<std::string,
std::vector<ngraph::Output<ngraph::Node>>>;
using ConstMap = std::map<
DataType,
std::pair<std::function<Status(const Node*, ngraph::element::Type,
ngraph::Output<ngraph::Node>&)>,
const ngraph::element::Type>>;
static const Builder::ConstMap& TF_NGRAPH_CONST_MAP();
template <typename T>
static void MakePadding(const std::string& tf_padding_type,
const ngraph::Shape& ng_image_shape,
const ngraph::Shape& ng_kernel_shape,
const ngraph::Strides& ng_strides,
const ngraph::Shape& ng_dilations,
T& ng_padding_below, T& ng_padding_above) {
if (tf_padding_type == "SAME") {
ngraph::Shape img_shape = {0, 0};
img_shape.insert(img_shape.end(), ng_image_shape.begin(),
ng_image_shape.end());
ngraph::infer_auto_padding(img_shape, ng_kernel_shape, ng_strides,
ng_dilations, ngraph::op::PadType::SAME_UPPER,
ng_padding_above, ng_padding_below);
} else if (tf_padding_type == "VALID") {
ng_padding_below.assign(ng_image_shape.size(), 0);
ng_padding_above.assign(ng_image_shape.size(), 0);
}
}
// This function is used to trace which ng node came from which tf node
// It does 3 things:
// 1. Attaches provenance tags. This is guaranteed to propagate the tag info
// to all nodes.
// The next 2 are not guaranteed to be present for all nodes.
// But when present they are correct and agree with provenance tags
// 2. Attaches friendly names.
// 3. Prints a log if NGRAPH_TF_LOG_PLACEMENT=1
static void SetTracingInfo(const std::string& op_name,
const ngraph::Output<ngraph::Node> ng_node);
};
} // namespace ngraph_bridge
} // namespace tensorflow
| 40.7125
| 81
| 0.619896
|
12eb9d3f94431b8a41b061608d04a9144386d570
| 5,445
|
cs
|
C#
|
src/SharpDiff.Tests/TwoChunkDiffTests.cs
|
jagregory/sharpdiff
|
9c6d1995c7db1dbe49d9d1f7699dd85f94de2a04
|
[
"BSD-3-Clause"
] | 9
|
2015-04-30T07:57:03.000Z
|
2021-11-20T02:28:37.000Z
|
src/SharpDiff.Tests/TwoChunkDiffTests.cs
|
jagregory/sharpdiff
|
9c6d1995c7db1dbe49d9d1f7699dd85f94de2a04
|
[
"BSD-3-Clause"
] | null | null | null |
src/SharpDiff.Tests/TwoChunkDiffTests.cs
|
jagregory/sharpdiff
|
9c6d1995c7db1dbe49d9d1f7699dd85f94de2a04
|
[
"BSD-3-Clause"
] | 4
|
2016-08-11T21:20:27.000Z
|
2019-10-28T12:20:46.000Z
|
using System.Linq;
using NUnit.Framework;
using SharpDiff.FileStructure;
namespace SharpDiff.Tests
{
[TestFixture]
public class TwoChunkDiffTests
{
const string fileOneContent = "one\r\ntwo\r\nthree\r\nfour\r\nfive\r\nsix\r\nseven\r\neight\r\nnine\r\nten";
const string fileTwoContent = "zero\r\none\r\ntwo\r\nthree\r\nfour\r\nfive\r\nsix\r\nseven\r\neight\r\neight.5\r\nnine\r\nten";
[Test]
public void should_have_two_chunks()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
Assert.AreEqual(2, diff.Chunks.Count);
}
[Test]
public void first_chunk_should_have_correct_new_range()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.First();
Assert.AreEqual(1, chunk.NewRange.StartLine);
Assert.AreEqual(4, chunk.NewRange.LinesAffected);
}
[Test]
public void first_chunk_should_have_correct_old_range()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.First();
Assert.AreEqual(1, chunk.OriginalRange.StartLine);
Assert.AreEqual(3, chunk.OriginalRange.LinesAffected);
}
[Test]
public void first_chunk_should_have_correct_number_of_snippets()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.First();
Assert.AreEqual(2, chunk.Snippets.Count());
}
[Test]
public void first_chunk_should_have_correct_snippets()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.First();
var snippets = chunk.Snippets;
var addition = snippets.ElementAtOrDefault(0) as AdditionSnippet;
Assert.IsNotNull(addition);
Assert.AreEqual(0, addition.OriginalLines.Count());
Assert.AreEqual(1, addition.ModifiedLines.Count());
Assert.AreEqual("zero", addition.ModifiedLines.First().Value);
var context = snippets.ElementAtOrDefault(1) as ContextSnippet;
Assert.IsNotNull(context);
Assert.AreEqual(3, context.OriginalLines.Count());
Assert.AreEqual("one", context.OriginalLines.ElementAt(0).Value);
Assert.AreEqual("two", context.OriginalLines.ElementAt(1).Value);
Assert.AreEqual("three", context.OriginalLines.ElementAt(2).Value);
Assert.AreEqual(0, context.ModifiedLines.Count());
}
[Test]
public void second_chunk_should_have_correct_new_range()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.ElementAt(1);
Assert.AreEqual(7, chunk.NewRange.StartLine);
Assert.AreEqual(6, chunk.NewRange.LinesAffected);
}
[Test]
public void second_chunk_should_have_correct_old_range()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.ElementAt(1);
Assert.AreEqual(6, chunk.OriginalRange.StartLine);
Assert.AreEqual(5, chunk.OriginalRange.LinesAffected);
}
[Test]
public void second_chunk_should_have_correct_number_of_snippets()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.ElementAt(1);
Assert.AreEqual(3, chunk.Snippets.Count());
}
[Test]
public void second_chunk_should_have_correct_snippets()
{
var diff = Differ.Compare("one", fileOneContent, "two", fileTwoContent);
var chunk = diff.Chunks.ElementAt(1);
var snippets = chunk.Snippets;
var firstContext = snippets.ElementAtOrDefault(0) as ContextSnippet;
Assert.IsNotNull(firstContext);
Assert.AreEqual(3, firstContext.OriginalLines.Count());
Assert.AreEqual("six", firstContext.OriginalLines.ElementAt(0).Value);
Assert.AreEqual("seven", firstContext.OriginalLines.ElementAt(1).Value);
Assert.AreEqual("eight", firstContext.OriginalLines.ElementAt(2).Value);
Assert.AreEqual(0, firstContext.ModifiedLines.Count());
var addition = snippets.ElementAtOrDefault(1) as AdditionSnippet;
Assert.IsNotNull(addition);
Assert.AreEqual(0, addition.OriginalLines.Count());
Assert.AreEqual(1, addition.ModifiedLines.Count());
Assert.AreEqual("eight.5", addition.ModifiedLines.ElementAt(0).Value);
var secondContext = snippets.ElementAtOrDefault(2) as ContextSnippet;
Assert.IsNotNull(secondContext);
Assert.AreEqual(2, secondContext.OriginalLines.Count());
Assert.AreEqual("nine", secondContext.OriginalLines.ElementAt(0).Value);
Assert.AreEqual("ten", secondContext.OriginalLines.ElementAt(1).Value);
Assert.AreEqual(0, secondContext.ModifiedLines.Count());
}
}
}
| 40.036765
| 136
| 0.614692
|
c4585d1e07681d3a230d3c0090b46f530f443b90
| 168
|
cpp
|
C++
|
server_linux.cpp
|
OsasAzamegbe/http-server
|
2c728d4f1a46f45aa534bb32e60c20ea631b1d37
|
[
"MIT",
"Unlicense"
] | null | null | null |
server_linux.cpp
|
OsasAzamegbe/http-server
|
2c728d4f1a46f45aa534bb32e60c20ea631b1d37
|
[
"MIT",
"Unlicense"
] | null | null | null |
server_linux.cpp
|
OsasAzamegbe/http-server
|
2c728d4f1a46f45aa534bb32e60c20ea631b1d37
|
[
"MIT",
"Unlicense"
] | null | null | null |
#include <http_tcpServer_linux.h>
int main()
{
using namespace http;
TcpServer server = TcpServer("0.0.0.0", 8080);
server.startListen();
return 0;
}
| 15.272727
| 50
| 0.64881
|
d38c9b569a1225a1b9f4f5d6959d921277351eaf
| 16,018
|
rs
|
Rust
|
src/drawable.rs
|
disiamylborane/draw-i16
|
056b0bea2203c26bb54af5ba4527f0ceb0269220
|
[
"MIT"
] | 4
|
2021-04-25T05:26:01.000Z
|
2021-04-25T09:58:35.000Z
|
src/drawable.rs
|
disiamylborane/draw-i16
|
056b0bea2203c26bb54af5ba4527f0ceb0269220
|
[
"MIT"
] | null | null | null |
src/drawable.rs
|
disiamylborane/draw-i16
|
056b0bea2203c26bb54af5ba4527f0ceb0269220
|
[
"MIT"
] | null | null | null |
//! Drawable module: a set of painting algorithms
use crate::V2;
use crate::{Colour};
use core::cmp::{min, max};
/// A Drawable is an object one can paint something on
///
/// The trait consists of basic drawing functions including setting pixels,
/// horizontal/vertical lines and filled rectangle. It also reports the size.
///
/// Implement the trait and then use `&mut dyn Drawable` to perform the painting.
pub trait Drawable {
/// Get the drawing area size
///
/// ### Safety
/// Unsafe for compatibility, must be sound
unsafe fn _size(&self) -> V2;
/// Clear the drawing area
///
/// ### Safety
/// Unsafe for compatibility, must be sound
unsafe fn _checked_clear(&mut self, colour: Colour);
/// Set a pixel colour
/// ### Safety
/// pos is guaranteed to be inside self._size()
unsafe fn _checked_pixel(&mut self, pos: V2, colour: Colour);
/// Draw a horizontal line of `len` pixels length, starting from the `pos` point
/// ### Safety
/// The line is guaranteed to be inside the rectangle `[(0,0), (self._size - (1,1))]`
unsafe fn _checked_hline(&mut self, pos: V2, len: u16, colour: Colour);
/// Draw a vertical line of `len` pixels length, starting from the `pos` point
/// ### Safety
/// The line is guaranteed to be inside the rectangle `[(0,0), (self._size - (1,1))]`
unsafe fn _checked_vline(&mut self, pos: V2, len: u16, colour: Colour);
/// Draw a filled rectangle [`p1`, `p2`].
/// ### Safety
/// The points are guaranteed to satisfy the following:
/// * `p1` and `p2` both inside the rectangle `[(0,0), (self._size - (1,1))]`
/// * `p1.x <= p2.x`
/// * `p1.y <= p2.y`
unsafe fn _checked_rect(&mut self, p1: V2, p2: V2, colour: Colour);
}
/// A middleware extension for `Drawable`s, allowing
/// high-level painting and rasterizing
pub trait DrawableMethods: Drawable+Sized {
/// Get drawable size
#[inline(always)] fn size(&self) -> V2 { <dyn Drawable>::size(self) }
/// Fill the whole drawable with a colour
#[inline(always)] fn clear(&mut self, colour: Colour) { <dyn Drawable>::clear(self, colour) }
/// Set a single pixel colour
#[inline(always)] fn pixel(&mut self, pos: V2, colour: Colour) { <dyn Drawable>::pixel(self, pos, colour) }
/// Paint a thick pixel (rectangle) at a point
#[inline(always)] fn thick_pixel(&mut self, pos: V2, colour: Colour, width: u8) { <dyn Drawable>::thick_pixel(self, pos, colour, width) }
/// Paint a line
#[inline(always)] fn line(&mut self, p1: V2, p2: V2, colour: Colour, width: u8) { <dyn Drawable>::line(self,p1,p2,colour,width) }
/// Paint a rectangle contour
#[inline(always)] fn rect(&mut self, p1: V2, p2: V2, colour: Colour) { <dyn Drawable>::rect(self, p1, p2, colour) }
/// Paint a filled rectangle
#[inline(always)] fn rect_fill(&mut self, p1: V2, p2: V2, colour: Colour) { <dyn Drawable>::rect_fill(self, p1, p2, colour) }
/// Paint a quadratic bezier curve
#[inline(always)] fn quad_bezier(&mut self, p0: V2, p1: V2, p2: V2, colour: Colour, width: u8) {
<dyn Drawable>::quad_bezier(self, p0, p1, p2, colour, width)
}
/// Paint a glyph
#[inline(always)] fn symbol(&mut self, ch: char, fontsize: V2, pos: V2, colour: Colour) {
<dyn Drawable>::symbol(self, ch, fontsize, pos, colour)
}
/// Paint text
#[inline(always)] fn text(&mut self, s: &str, fontsize: V2, pos: V2, colour: Colour) {
<dyn Drawable>::text(self, s, fontsize, pos, colour)
}
}
impl<T> DrawableMethods for T where T: Drawable {}
impl<'a> dyn Drawable+'a {
/// Get a drawable size
pub fn size(&self) -> V2 { unsafe{self._size()} }
/// Fill the whole canvas with a signle colour
pub fn clear(&mut self, colour: Colour) {
unsafe {
self._checked_clear(colour)
}
}
/// Draw a pixel, if inside the canvas
/// Does nothing, if outside
pub fn pixel(&mut self, pos: V2, colour: Colour) {
let size = self.size();
if pos.x >= size.x || pos.y >= size.y
{return;}
if pos.x < 0 || pos.y < 0
{return;}
unsafe{
self._checked_pixel(pos, colour);
}
}
/// Draw a rectangle at a point
pub fn thick_pixel(&mut self, pos: V2, colour: Colour, width: u8) {
if width == 0 {return;}
let prenmsz = V2::new((width-1) as i16/2, (width-1) as i16/2);
let prenasz = V2::new(width as i16/2, width as i16/2);
self.rect_fill(pos-prenmsz, pos+prenasz, colour);
}
/// Draw a horizontal line
pub fn horz_line(&mut self, pos: V2, len: u16, colour: Colour) {
let mut pos = pos;
let mut len = len as i16;
let size = self.size();
if pos.y >= size.y || pos.y < 0
{return;}
if pos.x < 0 {
if -pos.x > len {return;}
len -= -pos.x;
pos.x = 0;
}
if pos.x + len >= size.x {
if pos.x > size.x {return;}
len = size.x-pos.x;
}
unsafe {
self._checked_hline(pos, len as u16, colour);
}
}
/// Draw a vertical line
pub fn vert_line(&mut self, pos: V2, len: u16, colour: Colour) {
let mut npos = pos;
let mut nlen = len as i16;
let size = self.size();
if npos.x >= size.x || npos.x < 0
{return;}
if npos.y < 0 {
if -npos.y > nlen {return;}
nlen -= -npos.y;
npos.y = 0;
}
if npos.y + nlen >= size.y {
if npos.y > size.y {return;}
nlen = size.y-npos.y;
}
unsafe {
self._checked_vline(npos, nlen as u16, colour);
}
}
/// Draw any line
pub fn line(&mut self, p1: V2, p2: V2, colour: Colour, width: u8) {
if width == 0 {return;}
if p1.y == p2.y {
for y in (p1.y - (width as i16-1)/2)..(p1.y + 1 + (width as i16)/2) {
self.horz_line(V2::new(min(p1.x, p2.x), y), (p1.x-p2.x).abs() as u16+1, colour)
}
}
else if p1.x == p2.x {
for x in (p1.x - (width as i16-1)/2)..(p1.x + 1 + (width as i16)/2) {
self.vert_line(V2::new(x, min(p1.y, p2.y)), (p1.y-p2.y).abs() as u16+1, colour)
}
}
else {
let (x1, x2, y1, y2, change_xy) = {
let (mut x1, mut x2, mut y1, mut y2) = (p1.x, p2.x, p1.y, p2.y);
let change_xy = (y2-y1).abs() > (x2-x1).abs();
if change_xy {
core::mem::swap(&mut x1, &mut y1);
core::mem::swap(&mut x2, &mut y2);
}
if x1 > x2 {
core::mem::swap(&mut x1, &mut x2);
core::mem::swap(&mut y1, &mut y2);
}
(x1, x2, y1, y2, change_xy)
};
let dx = x2 - x1; // Positive
assert!(x2>x1);
let dy = (y2 - y1).abs();
let yinc = if y2 > y1 {1} else {-1};
let mut y = y1;
let mut err = 0;
let mut yz = y2;
let mut recalc_y_err = |y: &mut i16, yz: &mut i16| {
err += dy;
if err > dx/2 {
err -= dx;
*y += yinc;
*yz -= yinc;
}
};
let prenmsz = V2::new((width-1) as i16/2, (width-1) as i16/2);
let prenasz = V2::new(width as i16/2, width as i16/2);
if !change_xy {
for x in x1..(x1 + (x2-x1)/2 + 1) {
let pren1 = V2::new(x, y);
let pren2 = V2::new(x2 - (x-x1), yz);
self.rect_fill(pren1-prenmsz, pren1+prenasz, colour);
self.rect_fill(pren2-prenmsz, pren2+prenasz, colour);
recalc_y_err(&mut y, &mut yz);
}
}
else {
for x in x1..(x1 + (x2-x1)/2 + 1) {
let pren1 = V2::new(x, y);
let pren2 = V2::new(x2 - (x-x1), yz);
self.rect_fill((pren1-prenmsz).swap(), (pren1+prenasz).swap(), colour);
self.rect_fill((pren2-prenmsz).swap(), (pren2+prenasz).swap(), colour);
recalc_y_err(&mut y, &mut yz);
}
}
}
}
/// Draw a rectangle contour
pub fn rect(&mut self, p1: V2, p2: V2, colour: Colour){
let x1 = min(p1.x, p2.x);
let x2 = max(p1.x, p2.x);
let y1 = min(p1.y, p2.y);
let y2 = max(p1.y, p2.y);
self.horz_line(V2::new(x1, y1), (x2-x1+1) as u16, colour);
self.horz_line(V2::new(x1, y2), (x2-x1+1) as u16, colour);
self.vert_line(V2::new(x1, y1), (y2-y1+1) as u16, colour);
self.vert_line(V2::new(x2, y1), (y2-y1+1) as u16, colour);
}
/// Draw a filled rectangle
pub fn rect_fill(&mut self, p1: V2, p2: V2, colour: Colour){
let size = self.size();
let mut x1 = min(p1.x, p2.x);
let mut x2 = max(p1.x, p2.x);
let mut y1 = min(p1.y, p2.y);
let mut y2 = max(p1.y, p2.y);
if x1 >= size.x {return;}
if x2 < 0 {return;}
if y1 >= size.y {return;}
if y2 < 0 {return;}
if x1 < 0 {x1 = 0;}
if x2 >= size.x {x2 = size.x-1;}
if y1 < 0 {y1 = 0;}
if y2 >= size.y {y2 = size.y-1;}
unsafe {
self._checked_rect(V2::new(x1, y1), V2::new(x2, y2), colour);
}
}
// Adopted from [Zingl Alois] http://members.chello.at/easyfilter/bresenham.html
// plot a limited quadratic Bezier segment
fn quad_bezier_segment(&mut self, p0: V2, p1: V2, p2: V2, colour: Colour, width: u8)
{
let (mut x0, x1, mut x2, mut y0, mut y1, mut y2) =
(p0.x as i32, p1.x as i32, p2.x as i32, p0.y as i32, p1.y as i32, p2.y as i32);
let mut seg2_x = x2-x1;
let mut seg2_y = y2-y1;
let mut seg1_x = x0-x1;
let mut seg1_y = y0-y1;
let mut cur = seg1_x*seg2_y-seg1_y*seg2_x;
assert!(seg1_x*seg2_x <= 0 && seg1_y*seg2_y <= 0);
if seg2_x*seg2_x+seg2_y*seg2_y > seg1_x*seg1_x+seg1_y*seg1_y {
x2 = x0;
x0 = seg2_x+x1;
y2 = y0;
y0 = seg2_y+y1;
cur = -cur;
}
if cur != 0 {
seg1_x += seg2_x;
seg2_x = if x0 < x2 {1} else {-1};
seg1_x *= seg2_x;
seg1_y += seg2_y;
seg2_y = if y0 < y2 {1} else {-1};
seg1_y *= seg2_y;
let mut xy = 2*seg1_x*seg1_y;
seg1_x *= seg1_x;
seg1_y *= seg1_y;
if cur*seg2_x*seg2_y < 0 {
seg1_x = -seg1_x; seg1_y = -seg1_y; xy = -xy; cur = -cur;
}
let mut dx = 4i32 * seg2_y * cur * (x1-x0) + seg1_x - xy;
let mut dy = 4i32 * seg2_x * cur * (y0-y1) + seg1_y - xy;
seg1_x += seg1_x; seg1_y += seg1_y;
let mut err = dx as i32 + dy as i32 + xy as i32;
while dy < 0 && dx > 0 {
self.thick_pixel(V2::new(x0 as i16, y0 as i16), colour, width);
if x0 == x2 && y0 == y2 {return;}
y1 = (2*err < dx) as i32;
if 2*err > dy {
x0 += seg2_x;
dx -= xy;
dy += seg1_y;
err += dy;
}
if y1 != 0 {
y0 += seg2_y;
dy -= xy;
dx += seg1_x;
err += dx;
}
}
}
self.line(V2::new(x0 as i16, y0 as i16), V2::new(x2 as i16, y2 as i16), colour, width);
}
// Adopted from [Zingl Alois] http://members.chello.at/easyfilter/bresenham.html
#[allow(non_snake_case)]
fn _second_segm(&mut self, p0: V2, p1: V2, p2: V2, colour: Colour, width: u8)
{
let (x0, x1, x2, y0, y1, y2) = (p0.x, p1.x, p2.x, p0.y, p1.y, p2.y);
let dy_01 = (y0-y1) as i32;
let D = (y0-2*y1+y2) as i32;
let xend_D2 = (D-dy_01)*(D-dy_01)*x0 as i32 + 2*dy_01*(D-dy_01)*x1 as i32 + dy_01*dy_01*x2 as i32;
let xend = ( (xend_D2 + D*D/2) / (D*D)) as i16;
let yend = ( ((y0*y2-y1*y1) as i32 + D/2) / D as i32 ) as i16;
let xmid_D = (x1-x0) as i32 * ((y0*y2-y1*y1) as i32 - y0 as i32*D) / (y1-y0) as i32 + x0 as i32 * D;
let xmid = ((xmid_D + D/2) / D) as i16;
self.quad_bezier_segment(V2::new(x0,y0), V2::new(xmid, yend), V2::new(xend,yend), colour, width);
let xdir_D = (x1-x2) as i32 * ((y0*y2-y1*y1) as i32 - y2 as i32*D) / (y1-y2) as i32 + x2 as i32 * D;
let xdir = ((xdir_D + D/2) / D) as i16;
self.quad_bezier_segment(V2::new(xend, yend), V2::new(xdir,yend), V2::new(x2,y2), colour, width);
}
/// Pixelize and draw a quadratic bezier curve
///
/// Adopted from [Zingl Alois] [http://members.chello.at/easyfilter/bresenham.html](http://members.chello.at/easyfilter/bresenham.html)
#[allow(non_snake_case)]
pub fn quad_bezier(&mut self, p0: V2, p1: V2, p2: V2, colour: Colour, width: u8)
{
let (x0, x1, x2, y0, y1, y2) = (p0.x, p1.x, p2.x, p0.y, p1.y, p2.y);
if (x0-x1) as i32 * (x2-x1) as i32 > 0 {
let (x0,y0,x2,y2) =
if (y0-y1) as i32 * (y2-y1) as i32 > 0 &&
((y0-2*y1+y2) as i32 * (x0-x1) as i32).abs() > ((y0-y1) as i32 * ((x0 - 2 * x1 + x2) as i32)).abs()
{
(x2,y2,x0,y0)
}
else {
(x0,y0,x2,y2)
};
let dx_01 = (x0 - x1) as i32;
let D = (x0 - 2 * x1 + x2) as i32;
let yend_D2 = (D-dx_01)*(D-dx_01)*y0 as i32 + 2*(D-dx_01)*dx_01*y1 as i32 + dx_01*dx_01*y2 as i32;
let yend = ((yend_D2 + D*D/2) / (D*D)) as i16;
let xend = (((x0*x2-x1*x1) as i32 + D/2) / D) as i16;
let ymid_D = (y1-y0) as i32 * ((x0*x2-x1*x1) as i32 - x0 as i32*D) / (x1-x0) as i32 + y0 as i32*D;
let ymid = ((ymid_D+D/2)/D) as i16;
self.quad_bezier_segment(V2::new(x0,y0), V2::new(xend,ymid), V2::new(xend,yend), colour, width);
let ydir_D = (y1-y2)as i32*((x0*x2-x1*x1) as i32 - x2 as i32*D) / (x1-x2)as i32 + y2 as i32*D;
let ydir = ((ydir_D+D/2)/D) as i16;
if (yend-ydir) as i32 * (y2-ydir) as i32 > 0 {
self._second_segm(V2::new(xend, yend), V2::new(xend, ydir), V2::new(x2, y2), colour, width);
}
else {
self.quad_bezier_segment(V2::new(xend, yend), V2::new(xend, ydir), V2::new(x2,y2), colour, width);
}
}
else if (y0-y1) as i32 * (y2-y1) as i32 > 0 {
self._second_segm(V2::new(x0, y0), V2::new(x1, y1), V2::new(x2, y2), colour, width);
}
else {
self.quad_bezier_segment(V2::new(x0,y0), V2::new(x1,y1), V2::new(x2,y2), colour, width);
}
}
/// Generate and render a symbol
pub fn symbol(&mut self, ch: char, fontsize: V2, pos: V2, colour: Colour) {
let mut sten = crate::helpers::Stencil::new(self, pos, fontsize);
crate::font::draw_char(ch, &mut sten, colour);
}
/// Generate and render a char sequence
pub fn text(&mut self, s: &str, fontsize: V2, pos: V2, colour: Colour) {
for (i,c) in s.chars().enumerate() {
let posx = pos.x + fontsize.x*i as i16;
if posx < self.size().x && posx + fontsize.x > 0 {
self.symbol(c, fontsize, V2::new(posx as i16, pos.y), colour);
}
}
}
}
| 36.321995
| 141
| 0.491572
|
9fe0c3e55237ae1a6b07343eeaec55d0c2e90bd3
| 789
|
py
|
Python
|
envs/d4rl/oracle/dummy_advice.py
|
AliengirlLiv/babyai
|
51421ee11538bf110c5b2d0c84a15f783d854e7d
|
[
"MIT"
] | 2
|
2022-02-24T08:47:48.000Z
|
2022-03-23T09:44:22.000Z
|
envs/d4rl/oracle/dummy_advice.py
|
AliengirlLiv/babyai
|
51421ee11538bf110c5b2d0c84a15f783d854e7d
|
[
"MIT"
] | null | null | null |
envs/d4rl/oracle/dummy_advice.py
|
AliengirlLiv/babyai
|
51421ee11538bf110c5b2d0c84a15f783d854e7d
|
[
"MIT"
] | 1
|
2021-12-27T19:03:38.000Z
|
2021-12-27T19:03:38.000Z
|
import numpy as np
from envs.d4rl.oracle.teacher import Teacher
class DummyAdvice(Teacher):
def __init__(self, *args, **kwargs):
super(DummyAdvice, self).__init__(*args, **kwargs)
# self.next_action = None
def empty_feedback(self):
"""
Return a tensor corresponding to no feedback.
"""
return np.array([])
def random_feedback(self):
"""
Return a tensor corresponding to no feedback.
"""
return np.array([])
def compute_feedback(self, *args, **kwargs):
"""
Return the expert action from the previous timestep.
"""
return np.array([])
def success_check(self, *args, **kwargs):
return False
def feedback_condition(self):
return False
| 24.65625
| 60
| 0.595691
|
ef5d12defdcfca8b3ef6c417741abd429388befe
| 5,241
|
js
|
JavaScript
|
resources/assets/js/app/modules/member/feed/index.js
|
VamsiMudunuri/LocalAmbition
|
1d2af8657f82e6f572c9adf1e7949a2a604e00c1
|
[
"MIT"
] | null | null | null |
resources/assets/js/app/modules/member/feed/index.js
|
VamsiMudunuri/LocalAmbition
|
1d2af8657f82e6f572c9adf1e7949a2a604e00c1
|
[
"MIT"
] | null | null | null |
resources/assets/js/app/modules/member/feed/index.js
|
VamsiMudunuri/LocalAmbition
|
1d2af8657f82e6f572c9adf1e7949a2a604e00c1
|
[
"MIT"
] | null | null | null |
$(function() {
var $module = $('.member-feed-index');
var $infinite = $module.find('.infinite');
var $formSearch = $module.find('.form-search');
var $formSearchContainer = $formSearch.find('.form-search-container');
var $formSearchInputContainer = $formSearchContainer.find('.form-search-input-container');
var $searchInput = $formSearchInputContainer.find('.form-search-input');
var searchInputPlaceholder = $searchInput.data('placeholder')
var tagInputHiddenData = [];
var tagInputHiddenDataPrevCount = 0;
$infinite.infinite_loading({url : $infinite.data('url'), 'id' : 'feed-id', paging: $infinite.data('paging'), 'emptyText' : $infinite.data('empty-text'), 'endingText' : $infinite.data('ending-text'), 'complete' : function(response, feeds, lastID){
$(document).trigger('social-media-feed-infinite-loading', lastID)
}});
var $tagTextText = $searchInput.textext({
tagsItems: $searchInput.data('query'),
plugins: 'tags, prompt'
}).bind('setFormData', function(e, data){
var dataSize = data.length;
if(dataSize != tagInputHiddenDataPrevCount){
setTimeout(function(){
var padding = $searchInput.css('padding');
$searchInput.prev('.tt-hint').css({
'padding' : padding
});
tagInputHiddenDataPrevCount = dataSize;
}, 0);
}
}).bind('isTagAllowed', function(e, data){
var formData = $(e.target).textext()[0].tags()._formData,
list = eval(formData);
if (formData.length && list.indexOf(data.tag) >= 0) {
data.result = false;
}
});
$tagTextText.blur(function(e){
if ($(this).val().trim() != ''){
$(this).trigger('enterKeyPress').val('').blur();
$searchInput.typeahead('val', '');
}
});
var countries = $searchInput.data('location');
var source = [];
for(var c in countries){
source.push(
{
name: 'countries',
display: 'keyword',
limit: 20,
source: new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('keyword', 'other_keyword'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: countries[c]['state']['all_states']
}).ttAdapter(),
templates: {
notFound: '',
header: sprintf('<div class="tt-header"><div><span>%s</span></div></div>', countries[c]['state']['title']),
suggestion: function (item) {
var template = '';
template = sprintf('<div class="list-item"><a href="javascript:void(0);">%s</a></div>', item.keyword);
return template;
}
}
}
)
for(var s in countries[c]['state']['states']){
if(countries[c]['state']['states'][s]['property']['properties'].length <= 0){
continue;
}
source.push(
{
name: 'offices',
display: 'keyword',
limit: 21,
source: new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('keyword', 'other_keyword'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: countries[c]['state']['states'][s]['property']['properties']
}).ttAdapter(),
templates: {
notFound: '',
header: sprintf('<div class="tt-header"><div><span>%s</span></div></div>', countries[c]['state']['states'][s]['property']['title']),
suggestion: function (item) {
var template = '';
template = sprintf('<div class="list-item"><a href="javascript:void(0);">%s</a></div>', item.keyword);
return template;
}
}
}
)
}
}
$searchInput.typeahead({highlight : true, hint : true, minLength : 1}, source)
.on('typeahead:asyncrequest', function() {
var loading = $searchInput.parents('.twitter-typeahead-container').find('.fa-loading');
if(loading.length <= 0) {
$searchInput.parents('.twitter-typeahead-container').append(skin.loading.sm);
}
})
.on('typeahead:asynccancel typeahead:asyncreceive', function() {
var loading = $searchInput.parents('.twitter-typeahead-container').find('.fa-loading');
if(loading.length > 0) {
loading.remove();
}
})
.on('typeahead:select', function(event, item) {
console.log(item);
$tagTextText.textext()[0].tags().addTags([item.keyword]);
$searchInput.typeahead('val', '');
})
.on('typeahead:change', function(event, item) {
});
});
| 32.153374
| 251
| 0.503721
|
a3cecc90962edbd313304aedbdb187885a3d8ded
| 976,952
|
java
|
Java
|
elasticsearch/59cb67c7bd0ab6311115b20954e013412b676b29/randoop-modified_4/RegressionTest9.java
|
leusonmario/2022PhDThesis
|
22969dccdafbc02f022633e9b4c4346821da1402
|
[
"MIT"
] | null | null | null |
elasticsearch/59cb67c7bd0ab6311115b20954e013412b676b29/randoop-modified_4/RegressionTest9.java
|
leusonmario/2022PhDThesis
|
22969dccdafbc02f022633e9b4c4346821da1402
|
[
"MIT"
] | null | null | null |
elasticsearch/59cb67c7bd0ab6311115b20954e013412b676b29/randoop-modified_4/RegressionTest9.java
|
leusonmario/2022PhDThesis
|
22969dccdafbc02f022633e9b4c4346821da1402
|
[
"MIT"
] | null | null | null |
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest9 {
public static boolean debug = false;
@Test
public void test04501() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04501");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.Filter filter18 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter18);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter20 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter20;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean24 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper25 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter26 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
org.junit.Assert.assertNull(objectMapper25);
org.junit.Assert.assertNull(bitDocIdSetFilter26);
}
@Test
public void test04502() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04502");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper10;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
}
@Test
public void test04503() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04503");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.filterParsed = true;
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean19 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.innerFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertNull(objectMapper18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(query20);
}
@Test
public void test04504() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04504");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference14 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference14);
nestedInnerQueryParseSupport1.path = "object";
java.lang.String str18 = nestedInnerQueryParseSupport1.getPath();
boolean boolean19 = nestedInnerQueryParseSupport1.getfilterFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertEquals("'" + str18 + "' != '" + "object" + "'", str18, "object");
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04505() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04505");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.setqueryParsed(true);
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04506() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04506");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str19 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.common.bytes.BytesReference bytesReference20 = null;
nestedInnerQueryParseSupport1.source = bytesReference20;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "nested" + "'", str19, "nested");
}
@Test
public void test04507() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04507");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.Filter filter7 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter7);
nestedInnerQueryParseSupport1.queryFound = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(queryParseContext11);
}
@Test
public void test04508() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04508");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper6;
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04509() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04509");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean6 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.queryFound = false;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(objectMapper7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04510() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04510");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter6;
java.lang.String str8 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference10);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(bytesReference9);
}
@Test
public void test04511() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04511");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Filter filter5 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean7 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str8 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryParsed = true;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(filter5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(str8);
}
@Test
public void test04512() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04512");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerQuery = query12;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04513() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04513");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper8;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(bitDocIdSetFilter6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04514() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04514");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter15);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter17);
org.elasticsearch.common.bytes.BytesReference bytesReference19 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference19);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04515() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04515");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerQuery = query16;
boolean boolean18 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference19 = null;
nestedInnerQueryParseSupport1.source = bytesReference19;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter21 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter21);
}
@Test
public void test04516() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04516");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean15 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04517() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04517");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext15 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(queryParseContext15);
org.junit.Assert.assertNull(query18);
}
@Test
public void test04518() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04518");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.getparentFilter();
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean16 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04519() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04519");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.queryParsed = true;
nestedInnerQueryParseSupport1.queryParsed = false;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter12);
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04520() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04520");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean8 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04521() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04521");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper2 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper2;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
boolean boolean6 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.setqueryParsed(true);
boolean boolean9 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04522() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04522");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryParsed(true);
nestedInnerQueryParseSupport1.setfilterFound(true);
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean21 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.filterFound = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(objectMapper18);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test04523() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04523");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean12 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean13 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04524() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04524");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
boolean boolean4 = nestedInnerQueryParseSupport1.filterParsed;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
}
@Test
public void test04525() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04525");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter8);
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerQuery;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertNull(query13);
}
@Test
public void test04526() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04526");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerQuery = query13;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean19 = nestedInnerQueryParseSupport1.getqueryParsed();
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.filterFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference23 = null;
nestedInnerQueryParseSupport1.source = bytesReference23;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertNull(filter18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test04527() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04527");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(bytesReference14);
org.junit.Assert.assertNull(filter17);
}
@Test
public void test04528() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04528");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.setqueryFound(true);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04529() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04529");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerQuery = query12;
boolean boolean14 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query19 = null;
nestedInnerQueryParseSupport1.innerFilter = query19;
nestedInnerQueryParseSupport1.queryParsed = false;
java.lang.String str23 = nestedInnerQueryParseSupport1.getPath();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(str23);
}
@Test
public void test04530() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04530");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setqueryParsed(false);
boolean boolean7 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04531() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04531");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.queryParsed = true;
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setqueryFound(false);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04532() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04532");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference14);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04533() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04533");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper9;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext13 = nestedInnerQueryParseSupport1.parseContext;
java.lang.Class<?> wildcardClass14 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(queryParseContext13);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test04534() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04534");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(filter15);
}
@Test
public void test04535() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04535");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.elasticsearch.common.bytes.BytesReference bytesReference7 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference7);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
}
@Test
public void test04536() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04536");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
}
@Test
public void test04537() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04537");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertNull(objectMapper9);
}
@Test
public void test04538() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04538");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper6;
java.lang.Class<?> wildcardClass8 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNotNull(wildcardClass8);
}
@Test
public void test04539() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04539");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper18;
org.elasticsearch.index.query.QueryParseContext queryParseContext20 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(queryParseContext20);
}
@Test
public void test04540() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04540");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.queryParsed = false;
boolean boolean15 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean16 = nestedInnerQueryParseSupport1.queryParsed;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04541() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04541");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
java.lang.Class<?> wildcardClass17 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(bytesReference16);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test04542() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04542");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setqueryParsed(false);
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertNull(objectMapper11);
}
@Test
public void test04543() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04543");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryFound = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04544() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04544");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Query query17 = null;
nestedInnerQueryParseSupport1.innerQuery = query17;
org.apache.lucene.search.Filter filter19 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter20 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter20);
org.apache.lucene.search.Query query22 = null;
nestedInnerQueryParseSupport1.innerQuery = query22;
boolean boolean24 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertNull(filter19);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
}
@Test
public void test04545() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04545");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter15;
nestedInnerQueryParseSupport1.path = "nested";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter19 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext20 = nestedInnerQueryParseSupport1.getparseContext();
java.lang.Class<?> wildcardClass21 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "nested" + "'", str14, "nested");
org.junit.Assert.assertNull(bitDocIdSetFilter19);
org.junit.Assert.assertNull(queryParseContext20);
org.junit.Assert.assertNotNull(wildcardClass21);
}
@Test
public void test04546() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04546");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper2 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper2;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext9 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(queryParseContext9);
}
@Test
public void test04547() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04547");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter5 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter5);
org.junit.Assert.assertNull(query4);
}
@Test
public void test04548() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04548");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference7 = nestedInnerQueryParseSupport1.source;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(bytesReference7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper9);
}
@Test
public void test04549() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04549");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.childFilter = filter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
nestedInnerQueryParseSupport1.queryFound = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04550() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04550");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
nestedInnerQueryParseSupport1.queryFound = false;
java.lang.String str13 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(bytesReference14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04551() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04551");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(bitDocIdSetFilter6);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
}
@Test
public void test04552() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04552");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04553() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04553");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter15;
nestedInnerQueryParseSupport1.setqueryFound(false);
boolean boolean19 = nestedInnerQueryParseSupport1.queryFound();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "nested" + "'", str14, "nested");
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04554() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04554");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04555() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04555");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.childFilter = filter10;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean19 = nestedInnerQueryParseSupport1.getqueryFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertNull(filter13);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04556() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04556");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04557() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04557");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.queryFound = true;
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerQuery = query14;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference16);
boolean boolean18 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter19 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter19);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test04558() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04558");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isIncludeInParent();
boolean boolean2 = nested0.isIncludeInParent();
boolean boolean3 = nested0.isIncludeInRoot();
boolean boolean4 = nested0.isIncludeInRoot();
boolean boolean5 = nested0.isIncludeInParent();
boolean boolean6 = nested0.isNested();
boolean boolean7 = nested0.isNested();
boolean boolean8 = nested0.isIncludeInParent();
boolean boolean9 = nested0.isNested();
boolean boolean10 = nested0.isIncludeInRoot();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04559() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04559");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper18;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04560() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04560");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean12 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.path = "";
java.lang.String str16 = nestedInnerQueryParseSupport1.path;
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference18 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference18);
org.elasticsearch.common.bytes.BytesReference bytesReference20 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper21;
org.apache.lucene.search.Filter filter23 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter23);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "" + "'", str16, "");
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertNull(bytesReference20);
}
@Test
public void test04561() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04561");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04562() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04562");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query6);
}
@Test
public void test04563() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04563");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(objectMapper18);
}
@Test
public void test04564() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04564");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(filter6);
}
@Test
public void test04565() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04565");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean15 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.getchildFilter();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertNull(bytesReference16);
org.junit.Assert.assertNull(filter17);
}
@Test
public void test04566() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04566");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean16 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean17 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean18 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean19 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference20 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(bytesReference20);
}
@Test
public void test04567() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04567");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerQuery = query14;
org.apache.lucene.search.Filter filter16 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter16);
java.lang.String str18 = nestedInnerQueryParseSupport1.path;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(str18);
}
@Test
public void test04568() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04568");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(bytesReference14);
}
@Test
public void test04569() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04569");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Filter filter16 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter16);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04570() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04570");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference5 = nestedInnerQueryParseSupport1.getsource();
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bytesReference5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
}
@Test
public void test04571() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04571");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
java.lang.String str6 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.common.bytes.BytesReference bytesReference7 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(bytesReference7);
}
@Test
public void test04572() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04572");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean6 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference7 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference7);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04573() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04573");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(filter16);
org.junit.Assert.assertNull(queryParseContext17);
}
@Test
public void test04574() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04574");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(queryParseContext17);
}
@Test
public void test04575() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04575");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter17);
org.apache.lucene.search.Query query19 = null;
nestedInnerQueryParseSupport1.innerFilter = query19;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04576() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04576");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.getsource();
boolean boolean16 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter18);
nestedInnerQueryParseSupport1.setfilterFound(true);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNull(query17);
}
@Test
public void test04577() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04577");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = true;
java.lang.String str7 = nestedInnerQueryParseSupport1.getPath();
java.lang.String str8 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(str8);
}
@Test
public void test04578() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04578");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertNull(bitDocIdSetFilter16);
}
@Test
public void test04579() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04579");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.queryFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.path = "nested";
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference14);
}
@Test
public void test04580() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04580");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper11);
}
@Test
public void test04581() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04581");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
nestedInnerQueryParseSupport1.path = "hi!";
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04582() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04582");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.path = "hi!";
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference17);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.filter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str14);
}
@Test
public void test04583() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04583");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean6 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(objectMapper7);
org.junit.Assert.assertNull(query8);
org.junit.Assert.assertNull(filter9);
}
@Test
public void test04584() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04584");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter11 = null;
nestedInnerQueryParseSupport1.childFilter = filter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter14;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
org.elasticsearch.common.bytes.BytesReference bytesReference20 = nestedInnerQueryParseSupport1.getsource();
boolean boolean21 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter22 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter22);
nestedInnerQueryParseSupport1.filterFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference26 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(bytesReference20);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertNull(bytesReference26);
}
@Test
public void test04585() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04585");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean17 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
}
@Test
public void test04586() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04586");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertNull(filter13);
org.junit.Assert.assertNull(queryParseContext14);
}
@Test
public void test04587() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04587");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter8);
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04588() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04588");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter8);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04589() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04589");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.getInnerQuery();
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04590() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04590");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
nestedInnerQueryParseSupport1.setqueryFound(false);
java.lang.String str15 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNull(bitDocIdSetFilter16);
}
@Test
public void test04591() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04591");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertNull(filter18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04592() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04592");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04593() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04593");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Filter filter9 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter9);
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(queryParseContext11);
}
@Test
public void test04594() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04594");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.childFilter = filter8;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.filterFound = true;
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04595() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04595");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerFilter = query7;
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04596() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04596");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.filterParsed = true;
nestedInnerQueryParseSupport1.queryFound = true;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
}
@Test
public void test04597() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04597");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.filter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04598() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04598");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference5 = nestedInnerQueryParseSupport1.getsource();
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean13 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bytesReference5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04599() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04599");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean6 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference7 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference7);
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04600() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04600");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
boolean boolean14 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04601() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04601");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean19 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean20 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(filter16);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
org.junit.Assert.assertNull(query18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test04602() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04602");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.childFilter = filter10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertNull(bytesReference12);
}
@Test
public void test04603() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04603");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(filter14);
}
@Test
public void test04604() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04604");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertNull(filter18);
}
@Test
public void test04605() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04605");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter7;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertNull(bytesReference2);
}
@Test
public void test04606() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04606");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.source = bytesReference13;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "nested" + "'", str12, "nested");
}
@Test
public void test04607() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04607");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
org.apache.lucene.search.Query query6 = null;
nestedInnerQueryParseSupport1.innerFilter = query6;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04608() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04608");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.source = bytesReference17;
nestedInnerQueryParseSupport1.filterParsed = false;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04609() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04609");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.filterFound = false;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean21 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter22 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter22);
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query24 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test04610() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04610");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04611() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04611");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Query query6 = null;
nestedInnerQueryParseSupport1.innerQuery = query6;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(objectMapper11);
}
@Test
public void test04612() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04612");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean12 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter13;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04613() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04613");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerQuery = query13;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper17;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query19 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04614() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04614");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Filter filter18 = null;
nestedInnerQueryParseSupport1.childFilter = filter18;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
}
@Test
public void test04615() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04615");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(true);
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext13 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(queryParseContext13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
}
@Test
public void test04616() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04616");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerFilter = query7;
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
}
@Test
public void test04617() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04617");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference21 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference21);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(objectMapper18);
}
@Test
public void test04618() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04618");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter7;
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.filterParsed = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter9);
}
@Test
public void test04619() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04619");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerFilter = query14;
java.lang.String str16 = nestedInnerQueryParseSupport1.path;
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertEquals("'" + str12 + "' != '" + "nested" + "'", str12, "nested");
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "nested" + "'", str16, "nested");
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04620() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04620");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter12);
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertNull(objectMapper18);
}
@Test
public void test04621() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04621");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean12 = nestedInnerQueryParseSupport1.queryParsed;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04622() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04622");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
nestedInnerQueryParseSupport1.filterFound = false;
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(filter13);
}
@Test
public void test04623() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04623");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper14;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter18);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter20 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter20);
}
@Test
public void test04624() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04624");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04625() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04625");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "";
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.queryFound = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query14);
}
@Test
public void test04626() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04626");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.path = "hi!";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.getInnerFilter();
boolean boolean17 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter18);
}
@Test
public void test04627() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04627");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04628() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04628");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.childFilter = filter15;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.getparentFilter();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
}
@Test
public void test04629() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04629");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.query.QueryParseContext queryParseContext13 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference14 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference14);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(queryParseContext13);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04630() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04630");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04631() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04631");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
}
@Test
public void test04632() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04632");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper9;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.getparentFilter();
boolean boolean18 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test04633() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04633");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
nestedInnerQueryParseSupport1.queryFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference12);
}
@Test
public void test04634() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04634");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerQuery = query7;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerFilter();
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(filter16);
}
@Test
public void test04635() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04635");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean18 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.setqueryFound(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
}
@Test
public void test04636() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04636");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter5 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(filter5);
}
@Test
public void test04637() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04637");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter9);
nestedInnerQueryParseSupport1.setqueryFound(true);
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04638() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04638");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
}
@Test
public void test04639() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04639");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter17);
org.apache.lucene.search.Filter filter19 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter19);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference25 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference25);
boolean boolean27 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper30 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper30;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean27 + "' != '" + false + "'", boolean27 == false);
}
@Test
public void test04640() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04640");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertNull(filter18);
}
@Test
public void test04641() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04641");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter6;
java.lang.String str8 = nestedInnerQueryParseSupport1.path;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
}
@Test
public void test04642() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04642");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.source = bytesReference5;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("hi!");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper4);
}
@Test
public void test04643() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04643");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
boolean boolean18 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.filterFound = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04644() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04644");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04645() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04645");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter10;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
boolean boolean14 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.query.QueryParseContext queryParseContext15 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(queryParseContext15);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04646() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04646");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(filter11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04647() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04647");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Filter filter4 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter7;
nestedInnerQueryParseSupport1.queryFound = false;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext13 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(filter4);
org.junit.Assert.assertNull(queryParseContext13);
}
@Test
public void test04648() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04648");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper15;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04649() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04649");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean18 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test04650() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04650");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerFilter = query7;
org.elasticsearch.index.query.QueryParseContext queryParseContext9 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference10);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(queryParseContext9);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04651() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04651");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter8);
org.elasticsearch.common.bytes.BytesReference bytesReference10 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(bytesReference10);
}
@Test
public void test04652() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04652");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext5 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
boolean boolean9 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(queryParseContext5);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
}
@Test
public void test04653() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04653");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = true;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper10;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
java.lang.String str13 = nestedInnerQueryParseSupport1.path;
java.lang.Class<?> wildcardClass14 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test04654() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04654");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(filter13);
}
@Test
public void test04655() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04655");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean18 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "";
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test04656() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04656");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.queryParsed = true;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04657() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04657");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
org.apache.lucene.search.Query query6 = null;
nestedInnerQueryParseSupport1.innerFilter = query6;
nestedInnerQueryParseSupport1.setqueryParsed(false);
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04658() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04658");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "object";
java.lang.String str10 = nestedInnerQueryParseSupport1.getPath();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper14;
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter19 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter19);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "object" + "'", str10, "object");
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04659() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04659");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean10 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
}
@Test
public void test04660() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04660");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.setfilterFound(false);
java.lang.String str12 = nestedInnerQueryParseSupport1.path;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str12);
}
@Test
public void test04661() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04661");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference8);
}
@Test
public void test04662() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04662");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference11);
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04663() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04663");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.queryParsed = false;
java.lang.String str18 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(str18);
}
@Test
public void test04664() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04664");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
boolean boolean20 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper21;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query23 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
}
@Test
public void test04665() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04665");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean12 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04666() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04666");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.getInnerFilter();
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04667() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04667");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference18 = null;
nestedInnerQueryParseSupport1.source = bytesReference18;
org.elasticsearch.common.bytes.BytesReference bytesReference20 = null;
nestedInnerQueryParseSupport1.source = bytesReference20;
java.lang.String str22 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Query query23 = nestedInnerQueryParseSupport1.innerQuery;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter16);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertNull(str22);
org.junit.Assert.assertNull(query23);
}
@Test
public void test04668() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04668");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.getparentFilter();
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerFilter;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertNull(query11);
}
@Test
public void test04669() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04669");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.queryFound = true;
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter19 = null;
nestedInnerQueryParseSupport1.childFilter = filter19;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(filter17);
org.junit.Assert.assertNull(query18);
}
@Test
public void test04670() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04670");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertNull(filter16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04671() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04671");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(objectMapper7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(query12);
}
@Test
public void test04672() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04672");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "object";
nestedInnerQueryParseSupport1.filterParsed = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query17);
}
@Test
public void test04673() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04673");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper2 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper2;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.filterFound = true;
boolean boolean9 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
}
@Test
public void test04674() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04674");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.path = "hi!";
org.apache.lucene.search.Filter filter7 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter7);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
}
@Test
public void test04675() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04675");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.childFilter = filter13;
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound;
java.lang.Class<?> wildcardClass16 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertNotNull(wildcardClass16);
}
@Test
public void test04676() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04676");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.source = bytesReference6;
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.source = bytesReference9;
java.lang.String str11 = nestedInnerQueryParseSupport1.path;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(str11);
}
@Test
public void test04677() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04677");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = nestedInnerQueryParseSupport1.parentFilter;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query19 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
org.junit.Assert.assertNull(bitDocIdSetFilter18);
}
@Test
public void test04678() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04678");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.path = "object";
boolean boolean18 = nestedInnerQueryParseSupport1.filterParsed;
java.lang.String str19 = nestedInnerQueryParseSupport1.path;
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertEquals("'" + str19 + "' != '" + "object" + "'", str19, "object");
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test04679() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04679");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "";
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.childFilter = filter10;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04680() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04680");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.source = bytesReference5;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper7;
boolean boolean9 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean10 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.setfilterFound(false);
java.lang.Class<?> wildcardClass15 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test04681() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04681");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter11 = null;
nestedInnerQueryParseSupport1.childFilter = filter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter14;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Query query21 = null;
nestedInnerQueryParseSupport1.innerQuery = query21;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test04682() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04682");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.queryFound = true;
nestedInnerQueryParseSupport1.setqueryParsed(true);
nestedInnerQueryParseSupport1.path = "hi!";
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertNull(query14);
}
@Test
public void test04683() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04683");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext5 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(queryParseContext5);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04684() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04684");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04685() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04685");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerFilter = query13;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerFilter();
boolean boolean16 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter18);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNull(queryParseContext17);
}
@Test
public void test04686() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04686");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertNull(objectMapper13);
}
@Test
public void test04687() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04687");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.path = "nested";
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper10;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04688() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04688");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.setqueryFound(false);
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
}
@Test
public void test04689() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04689");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryFound(false);
boolean boolean6 = nestedInnerQueryParseSupport1.filterParsed;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
}
@Test
public void test04690() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04690");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter15);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
}
@Test
public void test04691() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04691");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean15 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter17);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04692() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04692");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.filterParsed = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
}
@Test
public void test04693() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04693");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isNested();
boolean boolean2 = nested0.isNested();
boolean boolean3 = nested0.isIncludeInParent();
boolean boolean4 = nested0.isNested();
boolean boolean5 = nested0.isIncludeInRoot();
boolean boolean6 = nested0.isIncludeInParent();
boolean boolean7 = nested0.isIncludeInParent();
boolean boolean8 = nested0.isIncludeInParent();
boolean boolean9 = nested0.isNested();
boolean boolean10 = nested0.isIncludeInRoot();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04694() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04694");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(objectMapper5);
org.junit.Assert.assertNull(bytesReference8);
}
@Test
public void test04695() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04695");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean11 = nestedInnerQueryParseSupport1.queryParsed;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04696() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04696");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04697() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04697");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.path = "hi!";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper21;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query23 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04698() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04698");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.source;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertNull(bytesReference8);
}
@Test
public void test04699() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04699");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04700() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04700");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query15 = null;
nestedInnerQueryParseSupport1.innerQuery = query15;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean20 = nestedInnerQueryParseSupport1.queryFound();
java.lang.Class<?> wildcardClass21 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNotNull(wildcardClass21);
}
@Test
public void test04701() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04701");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.Filter filter7 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter7);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
boolean boolean14 = nestedInnerQueryParseSupport1.queryParsed;
java.lang.String str15 = nestedInnerQueryParseSupport1.getPath();
java.lang.Class<?> wildcardClass16 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(str15);
org.junit.Assert.assertNotNull(wildcardClass16);
}
@Test
public void test04702() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04702");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter17;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
}
@Test
public void test04703() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04703");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.getInnerFilter();
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04704() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04704");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(query9);
}
@Test
public void test04705() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04705");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
}
@Test
public void test04706() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04706");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerQuery = query12;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference16);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
}
@Test
public void test04707() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04707");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
}
@Test
public void test04708() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04708");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertNull(objectMapper9);
}
@Test
public void test04709() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04709");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04710() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04710");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.setqueryFound(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04711() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04711");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04712() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04712");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter7;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04713() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04713");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.index.query.QueryParseContext queryParseContext9 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.source = bytesReference11;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.source = bytesReference13;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.getchildFilter();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(queryParseContext9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(filter16);
}
@Test
public void test04714() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04714");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
org.apache.lucene.search.Query query17 = null;
nestedInnerQueryParseSupport1.innerFilter = query17;
nestedInnerQueryParseSupport1.filterFound = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04715() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04715");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean12 = nestedInnerQueryParseSupport1.getfilterParsed();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04716() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04716");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.getInnerFilter();
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.childFilter = filter10;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.innerFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query8);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertNull(query17);
}
@Test
public void test04717() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04717");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
boolean boolean9 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04718() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04718");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.source;
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(bytesReference14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04719() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04719");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04720() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04720");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean18 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean19 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean20 = nestedInnerQueryParseSupport1.queryFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(filter16);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
}
@Test
public void test04721() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04721");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.common.bytes.BytesReference bytesReference18 = nestedInnerQueryParseSupport1.getsource();
boolean boolean19 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean20 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = nestedInnerQueryParseSupport1.nestedObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(bytesReference18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNull(objectMapper21);
}
@Test
public void test04722() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04722");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
}
@Test
public void test04723() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04723");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
nestedInnerQueryParseSupport1.filterFound = false;
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean13 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04724() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04724");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean17 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04725() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04725");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04726() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04726");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query10);
}
@Test
public void test04727() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04727");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(bytesReference12);
}
@Test
public void test04728() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04728");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(bytesReference12);
}
@Test
public void test04729() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04729");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = nestedInnerQueryParseSupport1.getsource();
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.getsource();
boolean boolean13 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean14 = nestedInnerQueryParseSupport1.getqueryFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04730() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04730");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str8 = nestedInnerQueryParseSupport1.path;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean11 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.path = "";
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext18 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setfilterFound(false);
nestedInnerQueryParseSupport1.setqueryFound(true);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(queryParseContext18);
}
@Test
public void test04731() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04731");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = nestedInnerQueryParseSupport1.parentObjectMapper;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(objectMapper5);
}
@Test
public void test04732() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04732");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Filter filter5 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean6 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.parentFilter;
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass8 = bitDocIdSetFilter7.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(filter5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
}
@Test
public void test04733() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04733");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean18 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper19 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean20 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(objectMapper19);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
}
@Test
public void test04734() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04734");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.getInnerFilter();
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference10);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04735() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04735");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean18 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter22 = nestedInnerQueryParseSupport1.getparentFilter();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertNull(objectMapper21);
org.junit.Assert.assertNull(bitDocIdSetFilter22);
}
@Test
public void test04736() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04736");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.parentFilter;
java.lang.String str10 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.path = "object";
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(bytesReference16);
org.junit.Assert.assertNull(queryParseContext17);
}
@Test
public void test04737() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04737");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean5 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.filterFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.source;
boolean boolean9 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04738() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04738");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean15 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Filter filter16 = null;
nestedInnerQueryParseSupport1.childFilter = filter16;
boolean boolean18 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
}
@Test
public void test04739() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04739");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.index.query.QueryParseContext queryParseContext3 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
java.lang.String str8 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference10 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(queryParseContext3);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(bytesReference10);
}
@Test
public void test04740() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04740");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.getInnerQuery();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference10);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(query12);
}
@Test
public void test04741() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04741");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean6 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
java.lang.String str9 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
}
@Test
public void test04742() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04742");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryFound();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04743() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04743");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
java.lang.String str11 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
nestedInnerQueryParseSupport1.setqueryFound(true);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(bitDocIdSetFilter12);
}
@Test
public void test04744() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04744");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.path = "hi!";
boolean boolean12 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerQuery = query13;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04745() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04745");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter5 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter5);
nestedInnerQueryParseSupport1.queryFound = false;
java.lang.String str9 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertNull(str9);
}
@Test
public void test04746() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04746");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter6;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerQuery = query8;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.source = bytesReference11;
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04747() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04747");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter7 = null;
nestedInnerQueryParseSupport1.childFilter = filter7;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.path = "hi!";
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter6);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04748() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04748");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.path = "hi!";
nestedInnerQueryParseSupport1.filterParsed = true;
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04749() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04749");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference5 = nestedInnerQueryParseSupport1.getsource();
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference7 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter10;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bytesReference5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bytesReference7);
}
@Test
public void test04750() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04750");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
nestedInnerQueryParseSupport1.setqueryParsed(true);
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04751() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04751");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04752() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04752");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
nestedInnerQueryParseSupport1.queryFound = false;
java.lang.String str13 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
boolean boolean16 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(bytesReference14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(objectMapper17);
}
@Test
public void test04753() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04753");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference16);
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerQuery = query18;
org.apache.lucene.search.Filter filter20 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter21 = nestedInnerQueryParseSupport1.parentFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(filter20);
org.junit.Assert.assertNull(bitDocIdSetFilter21);
}
@Test
public void test04754() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04754");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
}
@Test
public void test04755() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04755");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext19 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean21 = nestedInnerQueryParseSupport1.getqueryParsed();
java.lang.String str22 = nestedInnerQueryParseSupport1.getPath();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(queryParseContext19);
org.junit.Assert.assertNull(query20);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + true + "'", boolean21 == true);
org.junit.Assert.assertNull(str22);
}
@Test
public void test04756() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04756");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper16;
org.elasticsearch.common.bytes.BytesReference bytesReference18 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Filter filter19 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(bytesReference18);
org.junit.Assert.assertNull(filter19);
}
@Test
public void test04757() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04757");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04758() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04758");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested2 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.newNested(false, false);
boolean boolean3 = nested2.isNested();
boolean boolean4 = nested2.isIncludeInRoot();
boolean boolean5 = nested2.isIncludeInRoot();
org.junit.Assert.assertNotNull(nested2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
}
@Test
public void test04759() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04759");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper8;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.source = bytesReference11;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.filter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04760() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04760");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean18 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.setqueryFound(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean22 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNull(objectMapper21);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
}
@Test
public void test04761() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04761");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(filter11);
}
@Test
public void test04762() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04762");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isIncludeInParent();
boolean boolean2 = nested0.isIncludeInRoot();
boolean boolean3 = nested0.isNested();
boolean boolean4 = nested0.isNested();
boolean boolean5 = nested0.isIncludeInParent();
boolean boolean6 = nested0.isIncludeInRoot();
java.lang.Class<?> wildcardClass7 = nested0.getClass();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNotNull(wildcardClass7);
}
@Test
public void test04763() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04763");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper13;
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04764() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04764");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Filter filter5 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.queryFound = true;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
boolean boolean12 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference4);
org.junit.Assert.assertNull(filter5);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04765() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04765");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04766() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04766");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Defaults.NESTED;
boolean boolean1 = nested0.isNested();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
}
@Test
public void test04767() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04767");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
boolean boolean20 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean21 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test04768() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04768");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04769() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04769");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.queryParsed = true;
java.lang.String str17 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper18;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(str17);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04770() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04770");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryFound = true;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04771() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04771");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter14;
nestedInnerQueryParseSupport1.setfilterFound(false);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
}
@Test
public void test04772() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04772");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.queryFound = true;
nestedInnerQueryParseSupport1.path = "hi!";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
}
@Test
public void test04773() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04773");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertNull(filter13);
}
@Test
public void test04774() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04774");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerFilter = query5;
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean8 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
boolean boolean11 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04775() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04775");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(query13);
}
@Test
public void test04776() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04776");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext5 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.queryParsed = false;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(queryParseContext5);
}
@Test
public void test04777() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04777");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isIncludeInParent();
boolean boolean2 = nested0.isIncludeInRoot();
boolean boolean3 = nested0.isNested();
boolean boolean4 = nested0.isNested();
boolean boolean5 = nested0.isIncludeInRoot();
boolean boolean6 = nested0.isNested();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
}
@Test
public void test04778() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04778");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isNested();
boolean boolean2 = nested0.isNested();
boolean boolean3 = nested0.isIncludeInParent();
boolean boolean4 = nested0.isIncludeInRoot();
boolean boolean5 = nested0.isIncludeInParent();
boolean boolean6 = nested0.isNested();
boolean boolean7 = nested0.isIncludeInRoot();
boolean boolean8 = nested0.isIncludeInParent();
boolean boolean9 = nested0.isIncludeInParent();
boolean boolean10 = nested0.isIncludeInParent();
boolean boolean11 = nested0.isIncludeInParent();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04779() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04779");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(true);
java.lang.String str8 = nestedInnerQueryParseSupport1.path;
boolean boolean9 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test04780() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04780");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.index.query.QueryParseContext queryParseContext9 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.source = bytesReference11;
nestedInnerQueryParseSupport1.path = "hi!";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper15;
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference17);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(queryParseContext9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04781() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04781");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter11 = null;
nestedInnerQueryParseSupport1.childFilter = filter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter14;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerFilter = query16;
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerFilter;
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass19 = query18.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(query18);
}
@Test
public void test04782() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04782");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter6;
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter8);
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
boolean boolean12 = nestedInnerQueryParseSupport1.queryParsed;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04783() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04783");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(objectMapper13);
}
@Test
public void test04784() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04784");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
}
@Test
public void test04785() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04785");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Filter filter4 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerQuery;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(filter4);
org.junit.Assert.assertNull(query5);
}
@Test
public void test04786() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04786");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerQuery = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerFilter = query11;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04787() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04787");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
nestedInnerQueryParseSupport1.filterParsed = true;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertNull(objectMapper17);
}
@Test
public void test04788() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04788");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertNull(objectMapper17);
}
@Test
public void test04789() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04789");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Filter filter4 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.getparentFilter();
java.lang.String str8 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.getInnerQuery();
nestedInnerQueryParseSupport1.setfilterParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(filter4);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
org.junit.Assert.assertNull(str8);
org.junit.Assert.assertNull(query9);
}
@Test
public void test04790() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04790");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper10;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04791() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04791");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.path = "hi!";
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
}
@Test
public void test04792() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04792");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
org.junit.Assert.assertNull(bytesReference8);
}
@Test
public void test04793() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04793");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter15);
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter18 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter18);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04794() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04794");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter18 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter18);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
}
@Test
public void test04795() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04795");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext9 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(queryParseContext9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
}
@Test
public void test04796() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04796");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
java.lang.String str11 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper16;
org.apache.lucene.search.Filter filter18 = null;
nestedInnerQueryParseSupport1.childFilter = filter18;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(bitDocIdSetFilter12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04797() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04797");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertNull(bytesReference9);
}
@Test
public void test04798() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04798");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean18 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.setqueryFound(true);
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean23 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper24 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + true + "'", boolean23 == true);
org.junit.Assert.assertNull(objectMapper24);
}
@Test
public void test04799() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04799");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.path = "object";
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(bitDocIdSetFilter12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04800() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04800");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04801() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04801");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerFilter = query5;
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.path = "nested";
boolean boolean12 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper17;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04802() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04802");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Query query6 = null;
nestedInnerQueryParseSupport1.innerQuery = query6;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.setfilterFound(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04803() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04803");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference10);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.filterFound = false;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(filter12);
}
@Test
public void test04804() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04804");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.source = bytesReference6;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper11;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04805() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04805");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.source = bytesReference5;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper7;
boolean boolean9 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(queryParseContext10);
}
@Test
public void test04806() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04806");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertNull(str9);
}
@Test
public void test04807() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04807");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.queryFound = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper16;
org.elasticsearch.common.bytes.BytesReference bytesReference18 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(bytesReference18);
}
@Test
public void test04808() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04808");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Filter filter11 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter11);
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerFilter = query13;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04809() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04809");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "object";
java.lang.String str10 = nestedInnerQueryParseSupport1.getPath();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertEquals("'" + str10 + "' != '" + "object" + "'", str10, "object");
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(query14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04810() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04810");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter8 = null;
nestedInnerQueryParseSupport1.childFilter = filter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
boolean boolean13 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04811() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04811");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean9 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(filter13);
}
@Test
public void test04812() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04812");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertNull(bytesReference15);
}
@Test
public void test04813() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04813");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(query7);
}
@Test
public void test04814() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04814");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("hi!");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04815() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04815");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.Query query15 = null;
nestedInnerQueryParseSupport1.innerFilter = query15;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertNull(objectMapper18);
}
@Test
public void test04816() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04816");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterFound();
java.lang.String str7 = nestedInnerQueryParseSupport1.path;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str7);
}
@Test
public void test04817() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04817");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean13 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
nestedInnerQueryParseSupport1.filterParsed = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04818() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04818");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.filterFound = false;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.source = bytesReference13;
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper19 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper19;
boolean boolean21 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter18);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
}
@Test
public void test04819() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04819");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper9;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper12;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(filter14);
}
@Test
public void test04820() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04820");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerFilter = query5;
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.path = "nested";
boolean boolean12 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04821() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04821");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.filterParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.source = bytesReference9;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(filter6);
}
@Test
public void test04822() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04822");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper5;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.filterParsed = true;
java.lang.String str10 = nestedInnerQueryParseSupport1.path;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.nestedObjectMapper;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertNull(objectMapper7);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(str12);
}
@Test
public void test04823() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04823");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
java.lang.String str6 = nestedInnerQueryParseSupport1.getPath();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper7;
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(str6);
org.junit.Assert.assertNull(filter9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
}
@Test
public void test04824() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04824");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.setqueryFound(false);
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter20 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper21;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(bitDocIdSetFilter20);
}
@Test
public void test04825() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04825");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(objectMapper5);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(queryParseContext11);
}
@Test
public void test04826() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04826");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
java.lang.String str11 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(bitDocIdSetFilter12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04827() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04827");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter5 = null;
nestedInnerQueryParseSupport1.childFilter = filter5;
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = null;
nestedInnerQueryParseSupport1.source = bytesReference11;
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04828() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04828");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "";
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter10);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04829() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04829");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.childFilter;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean18 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext19 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference22 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference22);
nestedInnerQueryParseSupport1.setqueryFound(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertNull(queryParseContext19);
}
@Test
public void test04830() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04830");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerFilter = query14;
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean17 = nestedInnerQueryParseSupport1.queryFound();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04831() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04831");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
java.lang.Class<?> wildcardClass11 = objectMapper10.getClass();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04832() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04832");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.setqueryFound(false);
java.lang.String str14 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.elasticsearch.common.bytes.BytesReference bytesReference18 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.queryFound = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(bytesReference18);
}
@Test
public void test04833() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04833");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setqueryFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean8 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(filter9);
}
@Test
public void test04834() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04834");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.source = bytesReference17;
org.elasticsearch.common.bytes.BytesReference bytesReference19 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(bytesReference19);
}
@Test
public void test04835() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04835");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
boolean boolean15 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(objectMapper18);
}
@Test
public void test04836() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04836");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper12;
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerFilter = query14;
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(filter11);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
}
@Test
public void test04837() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04837");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.filterFound = false;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04838() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04838");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.queryFound = true;
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerQuery = query14;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("hi!");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04839() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04839");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter10;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(query12);
}
@Test
public void test04840() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04840");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertNull(bytesReference8);
}
@Test
public void test04841() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04841");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
java.lang.String str7 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str7);
org.junit.Assert.assertNull(filter10);
}
@Test
public void test04842() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04842");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper11;
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference16);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04843() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04843");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterFound = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertNull(query11);
}
@Test
public void test04844() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04844");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
nestedInnerQueryParseSupport1.setfilterParsed(false);
nestedInnerQueryParseSupport1.setqueryFound(true);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext20 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Query query21 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper22 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean23 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean24 = nestedInnerQueryParseSupport1.queryFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(queryParseContext20);
org.junit.Assert.assertNull(query21);
org.junit.Assert.assertNull(objectMapper22);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
org.junit.Assert.assertTrue("'" + boolean24 + "' != '" + false + "'", boolean24 == false);
}
@Test
public void test04845() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04845");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean16 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "";
boolean boolean19 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.path = "object";
boolean boolean22 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext23 = nestedInnerQueryParseSupport1.getparseContext();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
org.junit.Assert.assertNull(queryParseContext23);
}
@Test
public void test04846() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04846");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.queryParsed = false;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
nestedInnerQueryParseSupport1.setqueryFound(true);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04847() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04847");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.filterFound = false;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
java.lang.Class<?> wildcardClass14 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNotNull(wildcardClass14);
}
@Test
public void test04848() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04848");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.getInnerFilter();
nestedInnerQueryParseSupport1.queryParsed = false;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query8);
org.junit.Assert.assertNull(filter11);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertNull(query15);
}
@Test
public void test04849() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04849");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04850() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04850");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean11 = nestedInnerQueryParseSupport1.queryParsed;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.setfilterParsed(true);
java.lang.Class<?> wildcardClass15 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test04851() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04851");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04852() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04852");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertNull(bitDocIdSetFilter18);
}
@Test
public void test04853() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04853");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter12);
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean16 = nestedInnerQueryParseSupport1.filterParsed;
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04854() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04854");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
boolean boolean6 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean7 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerQuery = query8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04855() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04855");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterParsed = false;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04856() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04856");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.setfilterParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
}
@Test
public void test04857() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04857");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.childFilter = filter13;
org.elasticsearch.index.query.QueryParseContext queryParseContext15 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.getsource();
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(queryParseContext15);
org.junit.Assert.assertNull(bytesReference16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + true + "'", boolean17 == true);
}
@Test
public void test04858() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04858");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(filter11);
}
@Test
public void test04859() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04859");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setfilterFound(true);
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(queryParseContext17);
}
@Test
public void test04860() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04860");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter7;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setfilterParsed(true);
java.lang.Class<?> wildcardClass13 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(bitDocIdSetFilter6);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertNotNull(wildcardClass13);
}
@Test
public void test04861() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04861");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter16);
}
@Test
public void test04862() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04862");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.source = bytesReference9;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean14 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertNull(query15);
}
@Test
public void test04863() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04863");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.queryParsed = true;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
nestedInnerQueryParseSupport1.setfilterFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext16);
}
@Test
public void test04864() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04864");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
}
@Test
public void test04865() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04865");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter12);
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.childFilter = filter14;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
}
@Test
public void test04866() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04866");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
java.lang.String str9 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter10);
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04867() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04867");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.parentFilter;
java.lang.String str10 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.path = "object";
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(filter14);
}
@Test
public void test04868() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04868");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean14 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper19 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(filter17);
org.junit.Assert.assertNull(query18);
org.junit.Assert.assertNull(objectMapper19);
}
@Test
public void test04869() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04869");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(objectMapper5);
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertNull(queryParseContext7);
}
@Test
public void test04870() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04870");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.apache.lucene.search.Filter filter9 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter9);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
}
@Test
public void test04871() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04871");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.getsource();
boolean boolean16 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference19 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + true + "'", boolean16 == true);
org.junit.Assert.assertNull(bitDocIdSetFilter17);
org.junit.Assert.assertNull(query18);
org.junit.Assert.assertNull(bytesReference19);
}
@Test
public void test04872() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04872");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = nestedInnerQueryParseSupport1.parentFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(bitDocIdSetFilter12);
}
@Test
public void test04873() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04873");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterParsed();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04874() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04874");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter14);
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04875() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04875");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper5;
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertNull(objectMapper8);
}
@Test
public void test04876() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04876");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
nestedInnerQueryParseSupport1.filterFound = false;
java.lang.String str13 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query16 = null;
nestedInnerQueryParseSupport1.innerQuery = query16;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(str13);
}
@Test
public void test04877() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04877");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper9;
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(filter14);
}
@Test
public void test04878() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04878");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper14;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.queryParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter21 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query22 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper23 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Filter filter24 = null;
nestedInnerQueryParseSupport1.childFilter = filter24;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter18);
org.junit.Assert.assertNull(bitDocIdSetFilter21);
org.junit.Assert.assertNull(query22);
org.junit.Assert.assertNull(objectMapper23);
}
@Test
public void test04879() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04879");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
org.apache.lucene.search.Filter filter7 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter7);
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter10 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter10);
nestedInnerQueryParseSupport1.setqueryParsed(true);
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean16 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04880() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04880");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.getInnerFilter();
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.getparentFilter();
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.childFilter = filter15;
java.lang.Class<?> wildcardClass17 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(query14);
org.junit.Assert.assertNotNull(wildcardClass17);
}
@Test
public void test04881() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04881");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean6 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(queryParseContext10);
}
@Test
public void test04882() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04882");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter17);
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04883() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04883");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.path = "object";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter8);
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(query11);
}
@Test
public void test04884() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04884");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = true;
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerQuery = query7;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(bytesReference13);
}
@Test
public void test04885() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04885");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.elasticsearch.index.query.QueryParseContext queryParseContext3 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerQuery = query5;
org.apache.lucene.search.Query query7 = null;
nestedInnerQueryParseSupport1.innerFilter = query7;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(queryParseContext3);
org.junit.Assert.assertNull(objectMapper4);
}
@Test
public void test04886() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04886");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference6 = nestedInnerQueryParseSupport1.getsource();
nestedInnerQueryParseSupport1.path = "hi!";
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Filter filter11 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter11);
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerFilter = query13;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(bytesReference6);
}
@Test
public void test04887() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04887");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean16 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.Query query19 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean20 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Filter filter21 = null;
nestedInnerQueryParseSupport1.childFilter = filter21;
boolean boolean23 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext24 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(query19);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
org.junit.Assert.assertNull(queryParseContext24);
}
@Test
public void test04888() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04888");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
boolean boolean9 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext10 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.path = "";
boolean boolean14 = nestedInnerQueryParseSupport1.queryFound;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(queryParseContext10);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04889() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04889");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryFound = false;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean8 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.Query query9 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(query9);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04890() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04890");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.source;
boolean boolean12 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean13 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(query10);
org.junit.Assert.assertNull(bytesReference11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04891() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04891");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerQuery = query8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterFound = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04892() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04892");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter14;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
nestedInnerQueryParseSupport1.queryFound = true;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
}
@Test
public void test04893() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04893");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter12);
boolean boolean14 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter15);
org.apache.lucene.search.Query query17 = nestedInnerQueryParseSupport1.innerFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query17);
}
@Test
public void test04894() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04894");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean11 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryParsed(true);
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Query query15 = null;
nestedInnerQueryParseSupport1.innerFilter = query15;
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter17);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(str14);
}
@Test
public void test04895() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04895");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
nestedInnerQueryParseSupport1.setqueryParsed(true);
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(objectMapper16);
}
@Test
public void test04896() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04896");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter6);
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
}
@Test
public void test04897() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04897");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference15);
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.index.query.QueryParseContext queryParseContext19 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query20 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean21 = nestedInnerQueryParseSupport1.getqueryParsed();
boolean boolean22 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertNull(queryParseContext19);
org.junit.Assert.assertNull(query20);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + true + "'", boolean21 == true);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
}
@Test
public void test04898() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04898");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Query query16 = nestedInnerQueryParseSupport1.getInnerQuery();
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(query16);
org.junit.Assert.assertNull(filter17);
}
@Test
public void test04899() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04899");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
org.apache.lucene.search.Query query18 = nestedInnerQueryParseSupport1.innerFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query18);
}
@Test
public void test04900() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04900");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Query query15 = null;
nestedInnerQueryParseSupport1.innerFilter = query15;
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.source = bytesReference17;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertNull(query14);
}
@Test
public void test04901() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04901");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerQuery;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(query10);
}
@Test
public void test04902() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04902");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerQuery = query13;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertNull(filter18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(objectMapper20);
}
@Test
public void test04903() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04903");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean5 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setfilterFound(true);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean12 = nestedInnerQueryParseSupport1.filterParsed;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.query();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04904() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04904");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper10;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerQuery = query12;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(bytesReference14);
}
@Test
public void test04905() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04905");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04906() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04906");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
java.lang.String str14 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Filter filter15 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertEquals("'" + str14 + "' != '" + "nested" + "'", str14, "nested");
org.junit.Assert.assertNull(filter15);
org.junit.Assert.assertNull(bytesReference16);
}
@Test
public void test04907() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04907");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertNull(filter9);
}
@Test
public void test04908() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04908");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean8 = nestedInnerQueryParseSupport1.getqueryParsed();
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
nestedInnerQueryParseSupport1.path = "nested";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.filter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04909() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04909");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bytesReference15);
org.junit.Assert.assertNull(queryParseContext16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04910() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04910");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter13);
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.childFilter = filter15;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04911() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04911");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.getInnerFilter();
nestedInnerQueryParseSupport1.queryParsed = false;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
boolean boolean17 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query8);
org.junit.Assert.assertNull(filter11);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04912() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04912");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.source = bytesReference12;
boolean boolean14 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper15;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04913() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04913");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean7 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.setfilterParsed(false);
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(bitDocIdSetFilter6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
}
@Test
public void test04914() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04914");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Query query15 = null;
nestedInnerQueryParseSupport1.innerQuery = query15;
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter19 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter19;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper21 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper21;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query23 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(objectMapper14);
}
@Test
public void test04915() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04915");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
boolean boolean6 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.queryParsed = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter13;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(query10);
}
@Test
public void test04916() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04916");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
org.junit.Assert.assertNull(objectMapper15);
}
@Test
public void test04917() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04917");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter6);
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setfilterFound(false);
nestedInnerQueryParseSupport1.path = "object";
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertNull(query8);
}
@Test
public void test04918() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04918");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper12;
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04919() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04919");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference7 = nestedInnerQueryParseSupport1.source;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter10;
nestedInnerQueryParseSupport1.setqueryFound(true);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(bytesReference7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(objectMapper9);
}
@Test
public void test04920() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04920");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper16;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04921() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04921");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean18 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext19 = nestedInnerQueryParseSupport1.getparseContext();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertNull(queryParseContext16);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNull(queryParseContext19);
}
@Test
public void test04922() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04922");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerFilter = query9;
boolean boolean11 = nestedInnerQueryParseSupport1.filterParsed;
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04923() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04923");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query6 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper7 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
boolean boolean10 = nestedInnerQueryParseSupport1.getfilterParsed();
nestedInnerQueryParseSupport1.filterFound = false;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper15;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter5);
org.junit.Assert.assertNull(query6);
org.junit.Assert.assertNull(objectMapper7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
}
@Test
public void test04924() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04924");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean6 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
java.lang.String str9 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean11 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.setfilterFound(true);
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(query12);
}
@Test
public void test04925() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04925");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.source = bytesReference10;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference12);
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean16 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter18 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter18);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter20 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(objectMapper17);
org.junit.Assert.assertNull(bitDocIdSetFilter20);
}
@Test
public void test04926() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04926");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper6;
boolean boolean8 = nestedInnerQueryParseSupport1.filterFound;
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(filter11);
}
@Test
public void test04927() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04927");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query13 = null;
nestedInnerQueryParseSupport1.innerQuery = query13;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper15 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.setfilterParsed(true);
java.lang.String str18 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Filter filter19 = null;
nestedInnerQueryParseSupport1.childFilter = filter19;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("hi!");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(objectMapper15);
org.junit.Assert.assertNull(str18);
}
@Test
public void test04928() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04928");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter10;
org.apache.lucene.search.Filter filter12 = null;
nestedInnerQueryParseSupport1.childFilter = filter12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper14;
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean17 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04929() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04929");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter3 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str5 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.filterFound = false;
nestedInnerQueryParseSupport1.queryFound = false;
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(bitDocIdSetFilter3);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(str5);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
}
@Test
public void test04930() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04930");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryFound();
java.lang.String str16 = nestedInnerQueryParseSupport1.getPath();
nestedInnerQueryParseSupport1.path = "object";
boolean boolean19 = nestedInnerQueryParseSupport1.getqueryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + true + "'", boolean15 == true);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + true + "'", boolean19 == true);
}
@Test
public void test04931() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04931");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean18 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean19 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper20 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.Filter filter21 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(objectMapper16);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + true + "'", boolean18 == true);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertNull(objectMapper20);
org.junit.Assert.assertNull(filter21);
}
@Test
public void test04932() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04932");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.common.bytes.BytesReference bytesReference5 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterParsed();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getParentObjectMapper();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.getParentObjectMapper();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(bytesReference5);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNull(objectMapper10);
}
@Test
public void test04933() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04933");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
boolean boolean3 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper5 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper5;
nestedInnerQueryParseSupport1.queryParsed = true;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper4);
}
@Test
public void test04934() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04934");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean13 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference17 = null;
nestedInnerQueryParseSupport1.source = bytesReference17;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04935() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04935");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper9;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = nestedInnerQueryParseSupport1.getparentFilter();
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bitDocIdSetFilter11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertNull(query13);
}
@Test
public void test04936() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04936");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference12 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter13 = nestedInnerQueryParseSupport1.childFilter;
java.lang.String str14 = nestedInnerQueryParseSupport1.path;
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertNull(bytesReference12);
org.junit.Assert.assertNull(filter13);
org.junit.Assert.assertNull(str14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(filter18);
}
@Test
public void test04937() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04937");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper2 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper2;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
boolean boolean6 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean7 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
java.lang.String str11 = nestedInnerQueryParseSupport1.getPath();
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter8);
org.junit.Assert.assertNull(str11);
}
@Test
public void test04938() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04938");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(bytesReference11);
}
@Test
public void test04939() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04939");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerFilter = query9;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper11;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
org.junit.Assert.assertNull(bitDocIdSetFilter8);
}
@Test
public void test04940() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04940");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean17 = nestedInnerQueryParseSupport1.filterParsed;
org.apache.lucene.search.Filter filter18 = nestedInnerQueryParseSupport1.getchildFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(queryParseContext16);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertNull(filter18);
}
@Test
public void test04941() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04941");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
nestedInnerQueryParseSupport1.path = "nested";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper16 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper16;
java.lang.Class<?> wildcardClass18 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(objectMapper9);
org.junit.Assert.assertNotNull(wildcardClass18);
}
@Test
public void test04942() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04942");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean8 = nestedInnerQueryParseSupport1.filterParsed;
nestedInnerQueryParseSupport1.queryFound = false;
nestedInnerQueryParseSupport1.queryFound = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04943() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04943");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryParsed = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper11);
}
@Test
public void test04944() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04944");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested0 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.NO;
boolean boolean1 = nested0.isIncludeInParent();
boolean boolean2 = nested0.isIncludeInRoot();
boolean boolean3 = nested0.isNested();
boolean boolean4 = nested0.isIncludeInParent();
boolean boolean5 = nested0.isIncludeInRoot();
boolean boolean6 = nested0.isNested();
boolean boolean7 = nested0.isIncludeInRoot();
boolean boolean8 = nested0.isIncludeInParent();
org.junit.Assert.assertNotNull(nested0);
org.junit.Assert.assertTrue("'" + boolean1 + "' != '" + false + "'", boolean1 == false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
}
@Test
public void test04945() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04945");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04946() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04946");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.parseContext;
java.lang.String str8 = nestedInnerQueryParseSupport1.getPath();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertNull(queryParseContext7);
org.junit.Assert.assertNull(str8);
}
@Test
public void test04947() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04947");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerFilter = query9;
boolean boolean11 = nestedInnerQueryParseSupport1.getqueryParsed();
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.getInnerQuery();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04948() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04948");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str16 = nestedInnerQueryParseSupport1.path;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertEquals("'" + str16 + "' != '" + "nested" + "'", str16, "nested");
}
@Test
public void test04949() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04949");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference9 = nestedInnerQueryParseSupport1.getsource();
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.source;
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean14 = nestedInnerQueryParseSupport1.queryFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertNull(bytesReference9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
}
@Test
public void test04950() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04950");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter4 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter4;
org.apache.lucene.search.Filter filter6 = null;
nestedInnerQueryParseSupport1.childFilter = filter6;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter8;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
org.apache.lucene.search.Query query12 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference14 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query12);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(bytesReference14);
}
@Test
public void test04951() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04951");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query11 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean12 = nestedInnerQueryParseSupport1.getqueryFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter15 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(query11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter15);
}
@Test
public void test04952() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04952");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.queryFound;
java.lang.String str10 = nestedInnerQueryParseSupport1.getPath();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(str10);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
}
@Test
public void test04953() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04953");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean9 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.queryFound = false;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter7);
org.junit.Assert.assertNull(bitDocIdSetFilter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04954() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04954");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean11 = nestedInnerQueryParseSupport1.getfilterFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.elasticsearch.index.query.QueryParseContext queryParseContext17 = nestedInnerQueryParseSupport1.parseContext;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = null;
nestedInnerQueryParseSupport1.parentObjectMapper = objectMapper18;
org.elasticsearch.index.query.QueryParseContext queryParseContext20 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertNull(queryParseContext17);
org.junit.Assert.assertNull(queryParseContext20);
}
@Test
public void test04955() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04955");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean18 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean21 = nestedInnerQueryParseSupport1.filterParsed;
boolean boolean22 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean23 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
}
@Test
public void test04956() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04956");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter11;
nestedInnerQueryParseSupport1.path = "";
nestedInnerQueryParseSupport1.setqueryFound(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter17 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter17);
org.elasticsearch.index.query.QueryParseContext queryParseContext19 = nestedInnerQueryParseSupport1.getparseContext();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(queryParseContext19);
}
@Test
public void test04957() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04957");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
boolean boolean5 = nestedInnerQueryParseSupport1.filterFound();
org.elasticsearch.index.query.QueryParseContext queryParseContext6 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryParsed(false);
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(queryParseContext6);
}
@Test
public void test04958() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04958");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setqueryFound(true);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter8 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter9;
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.path = "";
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerQuery;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(bitDocIdSetFilter8);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertNull(query14);
}
@Test
public void test04959() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04959");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean7 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerFilter = query10;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryParsed(false);
java.lang.String str15 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.filterFound = false;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertNull(str15);
}
@Test
public void test04960() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04960");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.common.bytes.BytesReference bytesReference13 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference13);
boolean boolean15 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
org.elasticsearch.common.bytes.BytesReference bytesReference18 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference18);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04961() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04961");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter12 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter12;
nestedInnerQueryParseSupport1.setfilterFound(true);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper18 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Filter filter19 = nestedInnerQueryParseSupport1.childFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference20 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference20);
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Query query24 = null;
nestedInnerQueryParseSupport1.innerQuery = query24;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(objectMapper18);
org.junit.Assert.assertNull(filter19);
}
@Test
public void test04962() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04962");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
nestedInnerQueryParseSupport1.path = "hi!";
nestedInnerQueryParseSupport1.filterFound = true;
nestedInnerQueryParseSupport1.setfilterParsed(false);
org.apache.lucene.search.Query query21 = nestedInnerQueryParseSupport1.innerQuery;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter22 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter22);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(query21);
}
@Test
public void test04963() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04963");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.filterParsed = true;
boolean boolean6 = nestedInnerQueryParseSupport1.queryFound();
nestedInnerQueryParseSupport1.path = "hi!";
org.apache.lucene.search.Filter filter9 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.common.bytes.BytesReference bytesReference10 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference10);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertNull(filter9);
}
@Test
public void test04964() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04964");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Filter filter14 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerQuery;
boolean boolean16 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.common.bytes.BytesReference bytesReference17 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerQuery = query18;
boolean boolean20 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean21 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.Filter filter22 = nestedInnerQueryParseSupport1.childFilter;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertNull(filter14);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
org.junit.Assert.assertNull(bytesReference17);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + true + "'", boolean20 == true);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertNull(filter22);
}
@Test
public void test04965() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04965");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04966() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04966");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str11 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
nestedInnerQueryParseSupport1.setfilterParsed(false);
nestedInnerQueryParseSupport1.queryParsed = false;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "nested" + "'", str11, "nested");
}
@Test
public void test04967() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04967");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper6 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean7 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(objectMapper6);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04968() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04968");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.childFilter = filter13;
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertNull(bitDocIdSetFilter9);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(query15);
}
@Test
public void test04969() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04969");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getParentObjectMapper();
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterFound = false;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = nestedInnerQueryParseSupport1.parentFilter;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper17 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter16);
org.junit.Assert.assertNull(objectMapper17);
}
@Test
public void test04970() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04970");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter2 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter2);
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
// The following exception was thrown during execution in test generation
try {
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.getInnerFilter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(query4);
}
@Test
public void test04971() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04971");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerFilter = query5;
org.apache.lucene.search.Filter filter7 = nestedInnerQueryParseSupport1.getchildFilter();
boolean boolean8 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
nestedInnerQueryParseSupport1.setqueryFound(false);
nestedInnerQueryParseSupport1.setfilterFound(false);
boolean boolean15 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(filter7);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
}
@Test
public void test04972() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04972");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.apache.lucene.search.Query query7 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = nestedInnerQueryParseSupport1.getsource();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryFound();
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
boolean boolean13 = nestedInnerQueryParseSupport1.getqueryParsed();
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.query.QueryParseContext queryParseContext16 = nestedInnerQueryParseSupport1.parseContext;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(query7);
org.junit.Assert.assertNull(bytesReference8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertNull(queryParseContext16);
}
@Test
public void test04973() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04973");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Filter filter8 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Query query9 = null;
nestedInnerQueryParseSupport1.innerQuery = query9;
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
org.elasticsearch.index.query.QueryParseContext queryParseContext14 = nestedInnerQueryParseSupport1.getparseContext();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(filter8);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertNull(queryParseContext14);
}
@Test
public void test04974() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04974");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.filterParsed = true;
java.lang.String str11 = nestedInnerQueryParseSupport1.getPath();
java.lang.String str12 = nestedInnerQueryParseSupport1.getPath();
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertNull(str11);
org.junit.Assert.assertNull(str12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04975() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04975");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
org.apache.lucene.search.Filter filter12 = nestedInnerQueryParseSupport1.childFilter;
java.lang.String str13 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryParsed();
java.lang.String str16 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Filter filter17 = null;
nestedInnerQueryParseSupport1.childFilter = filter17;
nestedInnerQueryParseSupport1.setfilterFound(false);
java.lang.String str21 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.Filter filter22 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter22);
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(filter12);
org.junit.Assert.assertNull(str13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertNull(str16);
org.junit.Assert.assertNull(str21);
}
@Test
public void test04976() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04976");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
nestedInnerQueryParseSupport1.filterFound = false;
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = nestedInnerQueryParseSupport1.getparentFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper11 = nestedInnerQueryParseSupport1.nestedObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertNull(str9);
org.junit.Assert.assertNull(bitDocIdSetFilter10);
org.junit.Assert.assertNull(objectMapper11);
org.junit.Assert.assertNull(queryParseContext12);
}
@Test
public void test04977() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04977");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference11 = nestedInnerQueryParseSupport1.getsource();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.nestedObjectMapper;
boolean boolean13 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerFilter = query14;
boolean boolean16 = nestedInnerQueryParseSupport1.filterParsed;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(bytesReference11);
org.junit.Assert.assertNull(objectMapper12);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
org.junit.Assert.assertTrue("'" + boolean16 + "' != '" + false + "'", boolean16 == false);
}
@Test
public void test04978() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04978");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
nestedInnerQueryParseSupport1.queryFound = false;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.resetPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04979() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04979");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
nestedInnerQueryParseSupport1.filterParsed = true;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper12);
}
@Test
public void test04980() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04980");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.getparseContext();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference5 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference5);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter7 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter7);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper9 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper9;
nestedInnerQueryParseSupport1.queryFound = true;
boolean boolean13 = nestedInnerQueryParseSupport1.filterFound;
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(query4);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04981() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04981");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.source = bytesReference8;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper10 = nestedInnerQueryParseSupport1.parentObjectMapper;
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper13;
org.elasticsearch.common.bytes.BytesReference bytesReference15 = null;
nestedInnerQueryParseSupport1.source = bytesReference15;
org.apache.lucene.search.Query query17 = null;
nestedInnerQueryParseSupport1.innerQuery = query17;
org.elasticsearch.common.bytes.BytesReference bytesReference19 = nestedInnerQueryParseSupport1.getsource();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper10);
org.junit.Assert.assertNull(bytesReference19);
}
@Test
public void test04982() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04982");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
nestedInnerQueryParseSupport1.setqueryParsed(false);
nestedInnerQueryParseSupport1.queryFound = true;
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.index.query.QueryParseContext queryParseContext15 = nestedInnerQueryParseSupport1.parseContext;
nestedInnerQueryParseSupport1.setqueryFound(false);
org.apache.lucene.search.Query query18 = null;
nestedInnerQueryParseSupport1.innerFilter = query18;
org.elasticsearch.common.bytes.BytesReference bytesReference20 = nestedInnerQueryParseSupport1.getsource();
org.apache.lucene.search.Filter filter21 = nestedInnerQueryParseSupport1.childFilter;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.query();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(query14);
org.junit.Assert.assertNull(queryParseContext15);
org.junit.Assert.assertNull(bytesReference20);
org.junit.Assert.assertNull(filter21);
}
@Test
public void test04983() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04983");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.nestedObjectMapper;
nestedInnerQueryParseSupport1.path = "nested";
java.lang.String str11 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.queryParsed = false;
nestedInnerQueryParseSupport1.queryParsed = false;
org.apache.lucene.search.Filter filter16 = nestedInnerQueryParseSupport1.getchildFilter();
org.apache.lucene.search.Query query17 = null;
nestedInnerQueryParseSupport1.innerQuery = query17;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertEquals("'" + str11 + "' != '" + "nested" + "'", str11, "nested");
org.junit.Assert.assertNull(filter16);
}
@Test
public void test04984() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04984");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.path = "object";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper13 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
org.apache.lucene.search.Query query14 = nestedInnerQueryParseSupport1.innerQuery;
java.lang.Class<?> wildcardClass15 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(objectMapper13);
org.junit.Assert.assertNull(query14);
org.junit.Assert.assertNotNull(wildcardClass15);
}
@Test
public void test04985() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04985");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.queryParsed = false;
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter9 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter9);
boolean boolean11 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean12 = nestedInnerQueryParseSupport1.queryParsed;
org.apache.lucene.search.Query query13 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter14 = nestedInnerQueryParseSupport1.getparentFilter();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + false + "'", boolean11 == false);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(query13);
org.junit.Assert.assertNull(bitDocIdSetFilter14);
}
@Test
public void test04986() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04986");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
java.lang.String str3 = nestedInnerQueryParseSupport1.path;
nestedInnerQueryParseSupport1.setqueryFound(true);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterFound(true);
nestedInnerQueryParseSupport1.path = "hi!";
boolean boolean11 = nestedInnerQueryParseSupport1.filterFound;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("nested");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(str3);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
}
@Test
public void test04987() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04987");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = nestedInnerQueryParseSupport1.innerQuery;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper4 = nestedInnerQueryParseSupport1.parentObjectMapper;
boolean boolean5 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter6 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.setqueryParsed(false);
org.elasticsearch.common.bytes.BytesReference bytesReference9 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference9);
org.apache.lucene.search.Query query11 = null;
nestedInnerQueryParseSupport1.innerQuery = query11;
boolean boolean13 = nestedInnerQueryParseSupport1.queryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper14;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(query3);
org.junit.Assert.assertNull(objectMapper4);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertNull(filter6);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + false + "'", boolean13 == false);
}
@Test
public void test04988() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04988");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.filterParsed = false;
org.elasticsearch.index.query.QueryParseContext queryParseContext8 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean9 = nestedInnerQueryParseSupport1.queryParsed;
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext8);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
}
@Test
public void test04989() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04989");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.path = "nested";
nestedInnerQueryParseSupport1.setfilterParsed(true);
org.apache.lucene.search.Query query10 = null;
nestedInnerQueryParseSupport1.innerQuery = query10;
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.filter();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
}
@Test
public void test04990() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04990");
org.elasticsearch.index.mapper.object.ObjectMapper.Nested nested2 = org.elasticsearch.index.mapper.object.ObjectMapper.Nested.newNested(true, false);
boolean boolean3 = nested2.isNested();
boolean boolean4 = nested2.isIncludeInParent();
boolean boolean5 = nested2.isIncludeInRoot();
boolean boolean6 = nested2.isIncludeInParent();
boolean boolean7 = nested2.isNested();
boolean boolean8 = nested2.isNested();
boolean boolean9 = nested2.isIncludeInParent();
boolean boolean10 = nested2.isIncludeInParent();
boolean boolean11 = nested2.isIncludeInParent();
boolean boolean12 = nested2.isNested();
org.junit.Assert.assertNotNull(nested2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + true + "'", boolean3 == true);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + true + "'", boolean4 == true);
org.junit.Assert.assertTrue("'" + boolean5 + "' != '" + false + "'", boolean5 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + true + "'", boolean6 == true);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + true + "'", boolean7 == true);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + true + "'", boolean9 == true);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertTrue("'" + boolean11 + "' != '" + true + "'", boolean11 == true);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + true + "'", boolean12 == true);
}
@Test
public void test04991() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04991");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter11 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter11);
boolean boolean13 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter14 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter14);
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter16);
java.lang.String str18 = nestedInnerQueryParseSupport1.path;
boolean boolean19 = nestedInnerQueryParseSupport1.getfilterParsed();
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertTrue("'" + boolean13 + "' != '" + true + "'", boolean13 == true);
org.junit.Assert.assertNull(str18);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
}
@Test
public void test04992() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04992");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
boolean boolean10 = nestedInnerQueryParseSupport1.filterFound();
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.common.bytes.BytesReference bytesReference13 = nestedInnerQueryParseSupport1.source;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
boolean boolean15 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
nestedInnerQueryParseSupport1.setqueryParsed(true);
nestedInnerQueryParseSupport1.setfilterParsed(false);
boolean boolean22 = nestedInnerQueryParseSupport1.filterParsed;
org.elasticsearch.common.bytes.BytesReference bytesReference23 = nestedInnerQueryParseSupport1.source;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + true + "'", boolean10 == true);
org.junit.Assert.assertNull(bytesReference13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + true + "'", boolean14 == true);
org.junit.Assert.assertTrue("'" + boolean15 + "' != '" + false + "'", boolean15 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
org.junit.Assert.assertNull(bytesReference23);
}
@Test
public void test04993() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04993");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.apache.lucene.search.Query query4 = null;
nestedInnerQueryParseSupport1.innerFilter = query4;
nestedInnerQueryParseSupport1.path = "";
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper8 = nestedInnerQueryParseSupport1.getNestedObjectMapper();
java.lang.String str9 = nestedInnerQueryParseSupport1.getPath();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter10 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter10);
org.apache.lucene.search.Query query12 = null;
nestedInnerQueryParseSupport1.innerFilter = query12;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(objectMapper8);
org.junit.Assert.assertEquals("'" + str9 + "' != '" + "" + "'", str9, "");
}
@Test
public void test04994() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04994");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
org.elasticsearch.common.bytes.BytesReference bytesReference6 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference6);
org.elasticsearch.common.bytes.BytesReference bytesReference8 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference8);
nestedInnerQueryParseSupport1.setqueryFound(false);
org.elasticsearch.index.query.QueryParseContext queryParseContext12 = nestedInnerQueryParseSupport1.getparseContext();
org.apache.lucene.search.Filter filter13 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter13);
org.apache.lucene.search.Filter filter15 = null;
nestedInnerQueryParseSupport1.setchildFilter(filter15);
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean18 = nestedInnerQueryParseSupport1.queryFound();
boolean boolean19 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean20 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean21 = nestedInnerQueryParseSupport1.filterParsed;
boolean boolean22 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Filter filter23 = null;
nestedInnerQueryParseSupport1.childFilter = filter23;
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertNull(queryParseContext12);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertTrue("'" + boolean19 + "' != '" + false + "'", boolean19 == false);
org.junit.Assert.assertTrue("'" + boolean20 + "' != '" + false + "'", boolean20 == false);
org.junit.Assert.assertTrue("'" + boolean21 + "' != '" + false + "'", boolean21 == false);
org.junit.Assert.assertTrue("'" + boolean22 + "' != '" + false + "'", boolean22 == false);
}
@Test
public void test04995() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04995");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.source = bytesReference4;
nestedInnerQueryParseSupport1.filterFound = true;
org.apache.lucene.search.Query query8 = null;
nestedInnerQueryParseSupport1.innerFilter = query8;
nestedInnerQueryParseSupport1.filterParsed = false;
nestedInnerQueryParseSupport1.path = "nested";
org.apache.lucene.search.Query query14 = null;
nestedInnerQueryParseSupport1.innerQuery = query14;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter16 = nestedInnerQueryParseSupport1.parentFilter;
org.apache.lucene.search.Filter filter17 = nestedInnerQueryParseSupport1.getchildFilter();
nestedInnerQueryParseSupport1.filterFound = true;
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(bitDocIdSetFilter16);
org.junit.Assert.assertNull(filter17);
}
@Test
public void test04996() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04996");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
boolean boolean2 = nestedInnerQueryParseSupport1.getqueryFound();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper3 = nestedInnerQueryParseSupport1.parentObjectMapper;
org.elasticsearch.index.query.QueryParseContext queryParseContext4 = nestedInnerQueryParseSupport1.parseContext;
org.apache.lucene.search.Query query5 = nestedInnerQueryParseSupport1.innerFilter;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter6 = null;
nestedInnerQueryParseSupport1.parentFilter = bitDocIdSetFilter6;
org.apache.lucene.search.Query query8 = nestedInnerQueryParseSupport1.innerFilter;
nestedInnerQueryParseSupport1.filterParsed = false;
// The following exception was thrown during execution in test generation
try {
// flaky: nestedInnerQueryParseSupport1.filter();
// flaky: org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertTrue("'" + boolean2 + "' != '" + false + "'", boolean2 == false);
org.junit.Assert.assertNull(objectMapper3);
org.junit.Assert.assertNull(queryParseContext4);
org.junit.Assert.assertNull(query5);
org.junit.Assert.assertNull(query8);
}
@Test
public void test04997() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04997");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean8 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterFound();
org.apache.lucene.search.Filter filter10 = nestedInnerQueryParseSupport1.childFilter;
org.apache.lucene.search.Filter filter11 = nestedInnerQueryParseSupport1.getchildFilter();
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper12 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper12;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper14 = nestedInnerQueryParseSupport1.getParentObjectMapper();
nestedInnerQueryParseSupport1.setfilterParsed(true);
boolean boolean17 = nestedInnerQueryParseSupport1.filterFound();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + true + "'", boolean8 == true);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertNull(filter10);
org.junit.Assert.assertNull(filter11);
org.junit.Assert.assertNull(objectMapper14);
org.junit.Assert.assertTrue("'" + boolean17 + "' != '" + false + "'", boolean17 == false);
}
@Test
public void test04998() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04998");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.index.query.QueryParseContext queryParseContext2 = nestedInnerQueryParseSupport1.parseContext;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
boolean boolean4 = nestedInnerQueryParseSupport1.queryFound;
org.apache.lucene.search.Query query5 = null;
nestedInnerQueryParseSupport1.innerFilter = query5;
org.elasticsearch.index.query.QueryParseContext queryParseContext7 = nestedInnerQueryParseSupport1.getparseContext();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPath("object");
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(queryParseContext2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean4 + "' != '" + false + "'", boolean4 == false);
org.junit.Assert.assertNull(queryParseContext7);
}
@Test
public void test04999() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test04999");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
boolean boolean3 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.common.bytes.BytesReference bytesReference4 = null;
nestedInnerQueryParseSupport1.setsource(bytesReference4);
boolean boolean6 = nestedInnerQueryParseSupport1.queryParsed;
boolean boolean7 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean8 = nestedInnerQueryParseSupport1.queryFound;
boolean boolean9 = nestedInnerQueryParseSupport1.getfilterParsed();
boolean boolean10 = nestedInnerQueryParseSupport1.getqueryParsed();
org.elasticsearch.index.query.QueryParseContext queryParseContext11 = nestedInnerQueryParseSupport1.getparseContext();
boolean boolean12 = nestedInnerQueryParseSupport1.queryFound();
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter13 = nestedInnerQueryParseSupport1.parentFilter;
boolean boolean14 = nestedInnerQueryParseSupport1.filterFound();
org.apache.lucene.search.Query query15 = nestedInnerQueryParseSupport1.innerFilter;
org.elasticsearch.common.bytes.BytesReference bytesReference16 = null;
nestedInnerQueryParseSupport1.source = bytesReference16;
boolean boolean18 = nestedInnerQueryParseSupport1.filterFound;
org.elasticsearch.index.mapper.object.ObjectMapper objectMapper19 = null;
nestedInnerQueryParseSupport1.nestedObjectMapper = objectMapper19;
java.lang.String str21 = nestedInnerQueryParseSupport1.path;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter22 = nestedInnerQueryParseSupport1.getparentFilter();
boolean boolean23 = nestedInnerQueryParseSupport1.queryFound();
java.lang.Class<?> wildcardClass24 = nestedInnerQueryParseSupport1.getClass();
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertTrue("'" + boolean3 + "' != '" + false + "'", boolean3 == false);
org.junit.Assert.assertTrue("'" + boolean6 + "' != '" + false + "'", boolean6 == false);
org.junit.Assert.assertTrue("'" + boolean7 + "' != '" + false + "'", boolean7 == false);
org.junit.Assert.assertTrue("'" + boolean8 + "' != '" + false + "'", boolean8 == false);
org.junit.Assert.assertTrue("'" + boolean9 + "' != '" + false + "'", boolean9 == false);
org.junit.Assert.assertTrue("'" + boolean10 + "' != '" + false + "'", boolean10 == false);
org.junit.Assert.assertNull(queryParseContext11);
org.junit.Assert.assertTrue("'" + boolean12 + "' != '" + false + "'", boolean12 == false);
org.junit.Assert.assertNull(bitDocIdSetFilter13);
org.junit.Assert.assertTrue("'" + boolean14 + "' != '" + false + "'", boolean14 == false);
org.junit.Assert.assertNull(query15);
org.junit.Assert.assertTrue("'" + boolean18 + "' != '" + false + "'", boolean18 == false);
org.junit.Assert.assertNull(str21);
org.junit.Assert.assertNull(bitDocIdSetFilter22);
org.junit.Assert.assertTrue("'" + boolean23 + "' != '" + false + "'", boolean23 == false);
org.junit.Assert.assertNotNull(wildcardClass24);
}
@Test
public void test05000() throws Throwable {
if (debug)
System.out.format("%n%s%n", "RegressionTest9.test05000");
org.elasticsearch.index.query.QueryParseContext queryParseContext0 = null;
org.elasticsearch.index.query.support.NestedInnerQueryParseSupport nestedInnerQueryParseSupport1 = new org.elasticsearch.index.query.support.NestedInnerQueryParseSupport(queryParseContext0);
org.elasticsearch.common.bytes.BytesReference bytesReference2 = nestedInnerQueryParseSupport1.source;
org.apache.lucene.search.Query query3 = null;
nestedInnerQueryParseSupport1.innerFilter = query3;
org.apache.lucene.search.join.BitDocIdSetFilter bitDocIdSetFilter5 = null;
nestedInnerQueryParseSupport1.setparentFilter(bitDocIdSetFilter5);
org.elasticsearch.common.bytes.BytesReference bytesReference7 = nestedInnerQueryParseSupport1.getsource();
// The following exception was thrown during execution in test generation
try {
nestedInnerQueryParseSupport1.setPathLevel();
org.junit.Assert.fail("Expected exception of type java.lang.NullPointerException; message: null");
} catch (java.lang.NullPointerException e) {
// Expected exception.
}
org.junit.Assert.assertNull(bytesReference2);
org.junit.Assert.assertNull(bytesReference7);
}
}
| 69.027909
| 198
| 0.727761
|
8eaf535355e9277a4f035c728482d7d64b7f6bbc
| 926
|
js
|
JavaScript
|
lambdas/get-all-ip-addresses/index.js
|
ReeceRose/home-network-proxy
|
928de6c2f06fd4634dc0e7e90528476c221f0314
|
[
"MIT"
] | null | null | null |
lambdas/get-all-ip-addresses/index.js
|
ReeceRose/home-network-proxy
|
928de6c2f06fd4634dc0e7e90528476c221f0314
|
[
"MIT"
] | 8
|
2021-08-14T02:50:07.000Z
|
2021-09-09T15:32:33.000Z
|
lambdas/get-all-ip-addresses/index.js
|
ReeceRose/home-network-proxy
|
928de6c2f06fd4634dc0e7e90528476c221f0314
|
[
"MIT"
] | null | null | null |
// Lambda function code
const { DynamoDBClient, ScanCommand } = require("@aws-sdk/client-dynamodb");
exports.handler = async (event) => {
const userId = event.requestContext.authorizer.claims.sub;
const { TABLE_NAME } = process.env;
const headers = {
"Content-Type": "application/json",
};
const client = new DynamoDBClient({ region: "us-east-1" });
const command = new ScanCommand({
TableName: TABLE_NAME,
FilterExpression: "UserId = :userId",
ExpressionAttributeValues: {
":userId": { S: userId },
},
});
try {
const results = await client.send(command);
return {
statusCode: 200,
headers: headers,
body: JSON.stringify({
data: results.Items,
}),
};
} catch (err) {
console.error(err);
return {
statusCode: 500,
headers: headers,
body: JSON.stringify({
error: err.message,
}),
};
}
};
| 22.047619
| 76
| 0.598272
|
dda601d2cbc9fe2925f67850d3096afcd2d23c5f
| 13,896
|
java
|
Java
|
enterprise/backup/src/main/java/org/neo4j/backup/log/VerifyingTransactionInterceptor.java
|
rebaze/neo4j
|
f9118756110bc69b514b576ae85c9544d59f704a
|
[
"CNRI-Python",
"Apache-1.1"
] | 1
|
2015-12-14T07:35:29.000Z
|
2015-12-14T07:35:29.000Z
|
enterprise/backup/src/main/java/org/neo4j/backup/log/VerifyingTransactionInterceptor.java
|
baojie/neo4j
|
c37df367ec501185f34f817a6774883702761b8c
|
[
"CNRI-Python",
"Apache-1.1"
] | null | null | null |
enterprise/backup/src/main/java/org/neo4j/backup/log/VerifyingTransactionInterceptor.java
|
baojie/neo4j
|
c37df367ec501185f34f817a6774883702761b8c
|
[
"CNRI-Python",
"Apache-1.1"
] | null | null | null |
/**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.backup.log;
import java.io.File;
import java.util.Map;
import org.neo4j.consistency.checking.old.ConsistencyRecordProcessor;
import org.neo4j.consistency.checking.old.ConsistencyReporter;
import org.neo4j.consistency.checking.old.InconsistencyType;
import org.neo4j.consistency.checking.old.MonitoringConsistencyReporter;
import org.neo4j.consistency.store.DiffRecordStore;
import org.neo4j.consistency.store.DiffStore;
import org.neo4j.helpers.collection.Visitor;
import org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord;
import org.neo4j.kernel.impl.nioneo.store.DataInconsistencyError;
import org.neo4j.kernel.impl.nioneo.store.NeoStoreRecord;
import org.neo4j.kernel.impl.nioneo.store.NodeRecord;
import org.neo4j.kernel.impl.nioneo.store.PropertyIndexRecord;
import org.neo4j.kernel.impl.nioneo.store.PropertyRecord;
import org.neo4j.kernel.impl.nioneo.store.RecordStore;
import org.neo4j.kernel.impl.nioneo.store.RelationshipRecord;
import org.neo4j.kernel.impl.nioneo.store.RelationshipTypeRecord;
import org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource;
import org.neo4j.kernel.impl.transaction.xaframework.LogEntry;
import org.neo4j.kernel.impl.transaction.xaframework.TransactionInterceptor;
import org.neo4j.kernel.impl.util.StringLogger;
import org.neo4j.kernel.impl.util.StringLogger.LineLogger;
@Deprecated
class VerifyingTransactionInterceptor implements TransactionInterceptor
{
enum CheckerMode
{
FULL( true )
{
@Override
<R extends RecordStore.Processor & Runnable> void apply( DiffStore diffs, R checker )
{
try
{
checker.run();
}
catch ( AssertionError e )
{
System.err.println( e.getMessage() );
}
}
},
DIFF( false )
{
@Override
<R extends RecordStore.Processor & Runnable> void apply( DiffStore diffs, R checker )
{
diffs.applyToAll( checker );
}
};
final boolean checkProp;
private CheckerMode( boolean checkProp )
{
this.checkProp = checkProp;
}
abstract <R extends RecordStore.Processor & Runnable> void apply( DiffStore diffs, R checker );
}
private final boolean rejectInconsistentTransactions;
private final DiffStore diffs;
private final StringLogger msgLog;
private LogEntry.Commit commitEntry;
private LogEntry.Start startEntry;
private TransactionInterceptor next;
private final CheckerMode mode;
private final StringLogger difflog;
VerifyingTransactionInterceptor( NeoStoreXaDataSource ds, StringLogger stringLogger, CheckerMode mode,
boolean rejectInconsistentTransactions, Map<String, String> extraConfig )
{
this.rejectInconsistentTransactions = rejectInconsistentTransactions;
this.diffs = new DiffStore( ds.getNeoStore() );
this.msgLog = stringLogger;
this.mode = mode;
String log = extraConfig.get( "log" );
this.difflog = log == null ? null : ( "true".equalsIgnoreCase( log )
? msgLog
: StringLogger.logger( new File( log ) ) );
}
public void setStartEntry( LogEntry.Start startEntry )
{
this.startEntry = startEntry;
if ( next != null )
{
next.setStartEntry( startEntry );
}
}
public void setCommitEntry( LogEntry.Commit commitEntry )
{
this.commitEntry = commitEntry;
if (next != null)
{
next.setCommitEntry( commitEntry );
}
}
public void setNext( TransactionInterceptor next )
{
this.next = next;
}
public void complete() throws DataInconsistencyError
{
/*
* Here goes the actual verification code. If it passes,
* just return - if not, throw Error so that the
* store remains safe.
*/
// diffs, mode.checkProp
MonitoringConsistencyReporter reporter = new MonitoringConsistencyReporter( new ConsistencyReporter()
{
@Override
public <R extends AbstractBaseRecord> void report( RecordStore<R> recordStore, R record,
InconsistencyType inconsistency )
{
if ( inconsistency.isWarning() ) return;
StringBuilder log = messageHeader( "Inconsistencies" ).append( "\n\t" );
logRecord( log, recordStore, record );
log.append( inconsistency.message() );
msgLog.logMessage( log.toString() );
if ( difflog != null && difflog != msgLog ) difflog.logMessage( log.toString() );
}
@Override
public <R1 extends AbstractBaseRecord, R2 extends AbstractBaseRecord> void report(
RecordStore<R1> recordStore, R1 record, RecordStore<? extends R2> referredStore, R2 referred,
InconsistencyType inconsistency )
{
if ( inconsistency.isWarning() ) return;
if ( recordStore == referredStore && record.getLongId() == referred.getLongId() )
{ // inconsistency between versions, logRecord() handles that, treat as single record
report( recordStore, record, inconsistency );
return;
}
StringBuilder log = messageHeader( "Inconsistencies" ).append( "\n\t" );
logRecord( log, recordStore, record );
logRecord( log, referredStore, referred );
log.append( inconsistency.message() );
msgLog.logMessage( log.toString() );
if ( difflog != null && difflog != msgLog ) difflog.logMessage( log.toString() );
}
});
mode.apply( diffs, new ConsistencyRecordProcessor( diffs, reporter ) );
DataInconsistencyError error = null;
try
{
reporter.checkResult();
}
catch ( AssertionError e )
{
error = new DataInconsistencyError( "Inconsistencies in transaction\n\t"
+ ( startEntry == null ? "NO START ENTRY" : startEntry.toString() )
+ "\n\t"
+ ( commitEntry == null ? "NO COMMIT ENTRY" : commitEntry.toString() )
+ "\n\t" + e.getMessage() );
msgLog.logMessage( error.getMessage() );
if ( difflog != null && difflog != msgLog ) difflog.logMessage( error.getMessage() );
}
if ( difflog != null || error != null )
{
//new DiffLogger().log( messageHeader( "Changes" ).toString() );
final String header = messageHeader( "Changes" ).toString();
StringLogger target = null;
Visitor<StringLogger.LineLogger> visitor = null;
if ( error != null )
{
target = msgLog;
if ( difflog != null && difflog != msgLog )
{
visitor = new Visitor<StringLogger.LineLogger>()
{
@Override
public boolean visit( final LineLogger first )
{
difflog.logLongMessage( header, new Visitor<StringLogger.LineLogger>()
{
@Override
public boolean visit( final LineLogger other )
{
other.logLine( startEntry == null ? "NO START ENTRY" : startEntry.toString() );
other.logLine( commitEntry == null ? "NO COMMIT ENTRY" : commitEntry.toString() );
logDiffLines( new LineLogger()
{
@Override
public void logLine( String line )
{
first.logLine( line );
other.logLine( line );
}
} );
return false;
}
} );
return false;
}
};
}
else
{
visitor = new Visitor<StringLogger.LineLogger>()
{
@Override
public boolean visit( LineLogger lines )
{
logDiffLines( lines );
return false;
}
};
}
}
else
{
target = difflog;
visitor = new Visitor<StringLogger.LineLogger>()
{
@Override
public boolean visit( LineLogger lines )
{
lines.logLine( startEntry == null ? "NO START ENTRY" : startEntry.toString() );
lines.logLine( commitEntry == null ? "NO COMMIT ENTRY" : commitEntry.toString() );
logDiffLines( lines );
return false;
}
};
}
target.logLongMessage( header, visitor );
}
if ( difflog != null ) difflog.close();
// re-throw error if we are rejecting inconsistencies
if ( error != null && rejectInconsistentTransactions ) throw error;
// Chain of Responsibility continues
if ( next != null ) next.complete();
}
private void logDiffLines( final LineLogger logger )
{
diffs.applyToAll( new RecordStore.Processor()
{
@Override
protected <R extends AbstractBaseRecord> void processRecord( Class<R> type, RecordStore<R> store, R record )
{
DiffRecordStore<R> diff = (DiffRecordStore<R>) store;
if ( diff.isModified( record.getLongId() ) )
{
logRecord( logger, store, record );
}
}
} );
for ( RecordStore<?> store : diffs.allStores() )
{
logger.logLine( store + ": highId(before) = " + ( (DiffRecordStore<?>) store ).getRawHighId()
+ ", highId(after) = " + store.getHighId() );
}
}
private static <R extends AbstractBaseRecord> void logRecord( final StringBuilder log,
RecordStore<? extends R> store, R record )
{
logRecord( new LineLogger()
{
@Override
public void logLine( String line )
{
log.append( line ).append( "\n\t" );
}
}, store, record );
}
private static <R extends AbstractBaseRecord> void logRecord( LineLogger log, RecordStore<? extends R> store,
R record )
{
DiffRecordStore<R> diff = (DiffRecordStore<R>) store;
String prefix = "";
if ( diff.isModified( record.getLongId() ) )
{
log.logLine( "- " + diff.forceGetRaw( record ) );
prefix = "+ ";
record = store.forceGetRecord( record.getLongId() );
}
log.logLine( prefix + record );
}
private StringBuilder messageHeader( String type )
{
StringBuilder log = new StringBuilder( type ).append( " in transaction" );
if ( commitEntry != null )
log.append( " (txId=" ).append( commitEntry.getTxId() ).append( ")" );
else if ( startEntry != null )
log.append( " (log local id = " ).append( startEntry.getIdentifier() ).append( ")" );
return log.append( ':' );
}
@Override
public void visitNode( NodeRecord record )
{
diffs.visitNode( record );
}
@Override
public void visitRelationship( RelationshipRecord record )
{
diffs.visitRelationship( record );
}
@Override
public void visitProperty( PropertyRecord record )
{
diffs.visitProperty( record );
}
@Override
public void visitRelationshipType( RelationshipTypeRecord record )
{
diffs.visitRelationshipType( record );
}
@Override
public void visitPropertyIndex( PropertyIndexRecord record )
{
diffs.visitPropertyIndex( record );
}
@Override
public void visitNeoStore( NeoStoreRecord record )
{
diffs.visitNeoStore( record );
}
}
| 38.280992
| 120
| 0.541739
|
6df2c0d01a19b5114654c910dfca4646cda380fb
| 624
|
h
|
C
|
map_normalizer/logging/inc/ConsoleOutputFunctions.h
|
AFlyingCar/HoI4-Map-Normalizer-Tool
|
d94d2f37e731d96455c368f3a0e0075b9c14edfe
|
[
"MIT"
] | null | null | null |
map_normalizer/logging/inc/ConsoleOutputFunctions.h
|
AFlyingCar/HoI4-Map-Normalizer-Tool
|
d94d2f37e731d96455c368f3a0e0075b9c14edfe
|
[
"MIT"
] | 47
|
2021-04-28T01:15:35.000Z
|
2022-03-16T06:00:21.000Z
|
map_normalizer/logging/inc/ConsoleOutputFunctions.h
|
AFlyingCar/HoI4-Map-Normalizer-Tool
|
d94d2f37e731d96455c368f3a0e0075b9c14edfe
|
[
"MIT"
] | null | null | null |
/**
* @file ConsoleOutputFunctions.h
*
* @brief Defines functions for writing to the console
*/
#ifndef CONSOLE_OUTPUT_FUNCTIONS_H
# define CONSOLE_OUTPUT_FUNCTIONS_H
# include <functional>
# include <ostream>
namespace MapNormalizer::Log {
class Message;
bool outputToConsole(const Message&, bool, bool);
bool outputToStream(const Message&, bool, bool,
const std::function<std::ostream&(uint8_t)>&,
bool = false,
bool = true);
bool outputWithFormatting(const Message&);
bool outputNoFormatting(const Message&);
}
#endif
| 22.285714
| 69
| 0.647436
|
f6ffccb4dbac37bb747c6df909e5e865ffd6d851
| 6,160
|
dart
|
Dart
|
lib/resources/names_fo_FO.dart
|
Firelands128/locale_names
|
b6e7d8bd59283b4c9fdd004a2842bbb277a284b2
|
[
"BSD-3-Clause"
] | 1
|
2021-02-10T04:47:01.000Z
|
2021-02-10T04:47:01.000Z
|
lib/resources/names_fo_FO.dart
|
Firelands128/locale_names
|
b6e7d8bd59283b4c9fdd004a2842bbb277a284b2
|
[
"BSD-3-Clause"
] | null | null | null |
lib/resources/names_fo_FO.dart
|
Firelands128/locale_names
|
b6e7d8bd59283b4c9fdd004a2842bbb277a284b2
|
[
"BSD-3-Clause"
] | null | null | null |
const names = {
"MK": "North Macedonia",
"aa": "Afar",
"ab": "abkhaziskt",
"ace": "Achinese",
"ada": "Adangme",
"ady": "Adyghe",
"af": "afríska",
"agq": "Aghem",
"ain": "Ainu",
"ak": "Akan",
"ale": "Aleut",
"alt": "Southern Altai",
"an": "Aragonese",
"anp": "Angika",
"ar_001": "Modern Standard Arabic",
"arn": "Mapuche",
"arp": "Arapaho",
"asa": "asu (Tanzania)",
"ast": "Asturian",
"av": "Avaric",
"awa": "Awadhi",
"az": "azerbaijaniskt",
"ba": "Bashkir",
"ban": "Balinese",
"bas": "Basaa",
"bez": "bena (Tanzania)",
"bho": "Bhojpuri",
"bi": "Bislama",
"bin": "Bini",
"bla": "Siksika",
"bn": "bengaliskt",
"bo": "tibetanskt",
"brx": "Bodo",
"bug": "Buginese",
"byn": "Blin",
"ca": "katalanskt",
"ce": "Chechen",
"ceb": "Cebuano",
"cgg": "Chiga",
"ch": "Chamorro",
"chk": "Chuukese",
"chm": "Mari",
"cho": "Choctaw",
"chr": "Cherokee",
"chy": "Cheyenne",
"ckb": "Central Kurdish",
"co": "Corsican",
"cu": "Church Slavic",
"cv": "Chuvash",
"cy": "valisiskt",
"dak": "Dakota",
"dar": "Dargwa",
"dav": "Taita",
"de_CH": "týskt (Sveis)",
"dgr": "Dogrib",
"dje": "Zarma",
"dsb": "Lower Sorbian",
"dua": "Duala",
"dyo": "Jola-Fonyi",
"dzg": "Dazaga",
"ebu": "kiembu",
"ee": "Ewe",
"eka": "Ekajuk",
"el": "grikiskt",
"et": "estlendskt",
"ewo": "Ewondo",
"ff": "Fulah",
"fj": "fidjianskt",
"fon": "Fon",
"fur": "Friulian",
"fy": "vestfrisikt",
"gaa": "Ga",
"gag": "Gagauz",
"gan": "Gan Chinese",
"gez": "Geez",
"gil": "Gilbertese",
"gor": "Gorontalo",
"gsw": "Swiss German",
"gu": "gujariti",
"guz": "Gusii",
"gv": "Manx",
"gwi": "Gwichʼin",
"ha": "haussa",
"hak": "Hakka Chinese",
"hil": "Hiligaynon",
"hmn": "Hmong",
"hsb": "Upper Sorbian",
"hsn": "Xiang Chinese",
"ht": "haitiskt",
"hup": "Hupa",
"hz": "Herero",
"iba": "Iban",
"ibb": "Ibibio",
"ii": "Sichuan Yi",
"ilo": "Iloko",
"inh": "Ingush",
"io": "Ido",
"iu": "Inuktitut",
"jbo": "Lojban",
"jgo": "Ngomba",
"jmc": "Machame",
"jv": "javanesiskt",
"kab": "Kabyle",
"kac": "Kachin",
"kaj": "Jju",
"kam": "Kamba",
"kbd": "Kabardian",
"kcg": "Tyap",
"kde": "Makonde",
"kea": "kapverdiskt",
"kfo": "Koro",
"kha": "Khasi",
"khq": "Koyra Chiini",
"ki": "Kikuyu",
"kj": "Kuanyama",
"kk": "kazakiskt",
"kkj": "Kako",
"kl": "Kalaallisut",
"kln": "Kalenjin",
"km": "kambodjanskt",
"kmb": "Kimbundu",
"koi": "Komi-Permyak",
"kok": "Konkani",
"kpe": "Kpelle",
"kr": "Kanuri",
"krc": "Karachay-Balkar",
"krl": "Karelian",
"kru": "Kurukh",
"ks": "kashmiriskt",
"ksb": "Shambala",
"ksf": "Bafia",
"ksh": "Colognian",
"kum": "Kumyk",
"kv": "Komi",
"kw": "Cornish",
"ky": "kirgisikt",
"lad": "Ladino",
"lag": "Langi",
"lb": "luxemburgiskt",
"lez": "Lezghian",
"lg": "Ganda",
"li": "Limburgish",
"lkt": "Lakota",
"lo": "laotiskt",
"loz": "Lozi",
"lt": "litavskt",
"lu": "Luba-Katanga",
"lua": "Luba-Lulua",
"lun": "Lunda",
"luo": "Luo",
"lus": "Mizo",
"luy": "olulujia",
"lv": "latviskt",
"mad": "Madurese",
"mag": "Magahi",
"mai": "Maithili",
"mak": "Makasar",
"mas": "Masai",
"mdf": "Moksha",
"men": "Mende",
"mer": "Meru",
"mfe": "Morisyen",
"mg": "malagasiskt",
"mgh": "Makhuwa-Meetto",
"mgo": "Metaʼ",
"mh": "Marshallese",
"mi": "maoriskt",
"mic": "Micmac",
"min": "Minangkabau",
"mk": "makedonskt",
"mn": "mongoliskt",
"mni": "Manipuri",
"moh": "Mohawk",
"mos": "Mossi",
"mr": "marathiskt",
"ms": "malajiskt",
"mt": "maltesiskt",
"mua": "Mundang",
"mul": "Multiple Languages",
"mus": "Creek",
"mwl": "Mirandese",
"myv": "Erzya",
"mzn": "Mazanderani",
"na": "Nauru",
"nan": "Min Nan Chinese",
"nap": "Neapolitan",
"naq": "Nama",
"nb": "norskt bokmál",
"nd": "North Ndebele",
"nds": "Low German",
"new": "Newari",
"ng": "Ndonga",
"nia": "Nias",
"niu": "Niuean",
"nl": "hollendskt",
"nl_BE": "hollendskt (Belgia)",
"nmg": "Kwasio",
"nnh": "Ngiemboon",
"nog": "Nogai",
"nqo": "NʼKo",
"nr": "South Ndebele",
"nso": "Northern Sotho",
"nus": "Nuer",
"nv": "Navajo",
"nyn": "Nyankole",
"oc": "occitan",
"om": "Oromo",
"or": "oriya",
"pa": "punjabiskt",
"pag": "Pangasinan",
"pam": "Pampanga",
"pap": "Papiamento",
"pau": "Palauan",
"pl": "polskt",
"prg": "Prussian",
"ps": "afghanskt",
"pt": "portugisiskt",
"pt_BR": "portugisiskt (Brasilia)",
"pt_PT": "portugisiskt (Portugal)",
"quc": "Kʼicheʼ",
"rap": "Rapanui",
"rar": "Rarotongan",
"rm": "romansh",
"ro": "romanskt",
"ro_MD": "romanskt (Moldova)",
"rof": "Rombo",
"rup": "Aromanian",
"rw": "ruanda",
"rwk": "Rwa",
"sad": "Sandawe",
"sah": "Sakha",
"saq": "Samburu",
"sat": "Santali",
"sba": "Ngambay",
"sbp": "Sangu",
"sc": "Sardinian",
"scn": "Sicilian",
"sco": "Scots",
"se": "Northern Sami",
"seh": "Sena",
"ses": "Koyraboro Senni",
"shi": "Tachelhit",
"shn": "Shan",
"si": "sinhalesiskt",
"sm": "samoiskt",
"sma": "Southern Sami",
"smj": "Lule Sami",
"smn": "Inari Sami",
"sms": "Skolt Sami",
"snk": "Soninke",
"srn": "Sranan Tongo",
"ssy": "Saho",
"suk": "Sukuma",
"swb": "shimaoré",
"syr": "Syriac",
"te": "telugiskt",
"tem": "Timne",
"teo": "Teso",
"tg": "tajikiskt",
"th": "thailendskt",
"tig": "Tigre",
"trv": "Taroko",
"tt": "tatariskt",
"tum": "Tumbuka",
"tvl": "Tuvalu",
"twq": "Tasawaq",
"tyv": "Tuvinian",
"tzm": "Central Atlas Tamazight",
"udm": "Udmurt",
"ug": "uighur",
"umb": "Umbundu",
"und": "ukjent mál",
"uz": "uzbekiskt",
"vai": "Vai",
"vi": "vietnamesiskt",
"vo": "Volapük",
"vun": "Vunjo",
"wa": "Walloon",
"wae": "Walser",
"wal": "Wolaytta",
"war": "Waray",
"wbp": "Warlpiri",
"wuu": "Wu Chinese",
"xal": "Kalmyk",
"xog": "Soga",
"yav": "Yangben",
"ybb": "Yemba",
"yue": "kantonesískt",
"zgh": "Standard Moroccan Tamazight",
"zh_Hans": "Chinese (Simplified)",
"zh_Hant": "Chinese (Traditional)",
"zun": "Zuni",
"zxx": "No linguistic content",
"zza": "Zaza"
};
| 20.740741
| 39
| 0.510065
|
4057840d897078c09d07e4c27ec4f8560c6fdad1
| 762
|
rb
|
Ruby
|
db/seeds.rb
|
lushiyun/teamwork-backend
|
dd691efab9e020947fc7c4c0132f5396d6fc3769
|
[
"MIT"
] | 1
|
2022-01-11T04:38:14.000Z
|
2022-01-11T04:38:14.000Z
|
db/seeds.rb
|
lushiyun/teamwork-backend
|
dd691efab9e020947fc7c4c0132f5396d6fc3769
|
[
"MIT"
] | null | null | null |
db/seeds.rb
|
lushiyun/teamwork-backend
|
dd691efab9e020947fc7c4c0132f5396d6fc3769
|
[
"MIT"
] | 1
|
2021-03-27T04:45:00.000Z
|
2021-03-27T04:45:00.000Z
|
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
unsplash_images = Unsplash::Photo.search('coffee', 1, 10)
20.times do
User.create(name: Faker::Name.unique.name, email: Faker::Internet.email, picture_url: Faker::Avatar.image)
end
unsplash_images.each do |img|
Team.create(name: Faker::Coffee.blend_name, description: Faker::Coffee.notes, cover_url: img.urls.regular)
end
Team.all.each do |team|
team.users = User.all.sample(4)
end
| 36.285714
| 111
| 0.732283
|
ddbe01fd0b305de54566450166860dfbe3cffa58
| 2,517
|
java
|
Java
|
src/test/java/io/vertx/core/impl/launcher/DefaultCommandTest.java
|
julien3/vert.x
|
a8abdfa1eb21c4ce8218e8bd279eac5b33dc8d1c
|
[
"Apache-2.0"
] | null | null | null |
src/test/java/io/vertx/core/impl/launcher/DefaultCommandTest.java
|
julien3/vert.x
|
a8abdfa1eb21c4ce8218e8bd279eac5b33dc8d1c
|
[
"Apache-2.0"
] | null | null | null |
src/test/java/io/vertx/core/impl/launcher/DefaultCommandTest.java
|
julien3/vert.x
|
a8abdfa1eb21c4ce8218e8bd279eac5b33dc8d1c
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright (c) 2011-2015 The original author or authors
* ------------------------------------------------------
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/
package io.vertx.core.impl.launcher;
import io.vertx.core.cli.CLI;
import io.vertx.core.cli.CLIException;
import io.vertx.core.cli.CommandLine;
import io.vertx.core.cli.annotations.CLIConfigurator;
import io.vertx.core.impl.launcher.commands.HelloCommand;
import io.vertx.core.spi.launcher.ExecutionContext;
import org.junit.Test;
import java.io.File;
import java.util.Arrays;
import static org.assertj.core.api.Assertions.assertThat;
public class DefaultCommandTest {
HelloCommand command = new HelloCommand();
private CommandLine parse(CLI cli, String... args) throws CLIException {
return cli.parse(Arrays.asList(args));
}
@Test
public void testCWD() throws CLIException {
CLI cli = CLIConfigurator.define(command.getClass());
CommandLine evaluatedCLI = parse(cli, "--name=vert.x");
CLIConfigurator.inject(evaluatedCLI, command);
assertThat(command.getCwd()).isEqualTo(new File("."));
evaluatedCLI = parse(cli, "--cwd=target", "--name=vert.x");
CLIConfigurator.inject(evaluatedCLI, command);
assertThat(command.getCwd()).isEqualTo(new File("target"));
}
@Test
public void testSystemProperties() throws CLIException {
CLI cli = CLIConfigurator.define(command.getClass());
VertxCommandLauncher launcher = new VertxCommandLauncher();
CommandLine evaluatedCLI = parse(cli, "--name=vert.x", "-Dfoo=bar", "--systemProp=x=y");
CLIConfigurator.inject(evaluatedCLI, command);
command.setUp(new ExecutionContext(command, launcher, evaluatedCLI));
assertThat(System.getProperty("foo")).isEqualToIgnoringCase("bar");
assertThat(System.getProperty("x")).isEqualToIgnoringCase("y");
command.tearDown();
// System properties are not removed by the tearDown.
assertThat(System.getProperty("foo")).isEqualToIgnoringCase("bar");
assertThat(System.getProperty("x")).isEqualToIgnoringCase("y");
}
}
| 37.014706
| 92
| 0.716329
|
b77600df104fd31428fba0a77359347819a4dbbc
| 1,166
|
cs
|
C#
|
src/SFA.DAS.EmployerAccounts/Queries/GetInvitation/GetInvitationQueryHandler.cs
|
uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice
|
b6778ed20b0438acab7c1a14600288a250db8d23
|
[
"MIT"
] | 8
|
2016-09-14T08:31:59.000Z
|
2021-08-19T11:13:59.000Z
|
src/SFA.DAS.EmployerAccounts/Queries/GetInvitation/GetInvitationQueryHandler.cs
|
uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice
|
b6778ed20b0438acab7c1a14600288a250db8d23
|
[
"MIT"
] | 319
|
2016-07-20T07:52:08.000Z
|
2022-03-31T18:07:09.000Z
|
src/SFA.DAS.EmployerAccounts/Queries/GetInvitation/GetInvitationQueryHandler.cs
|
uk-gov-mirror/SkillsFundingAgency.das-employerapprenticeshipsservice
|
b6778ed20b0438acab7c1a14600288a250db8d23
|
[
"MIT"
] | 8
|
2016-11-08T16:30:23.000Z
|
2022-03-23T19:45:38.000Z
|
using System;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerAccounts.Data;
using SFA.DAS.HashingService;
namespace SFA.DAS.EmployerAccounts.Queries.GetInvitation
{
//TODO tests and validator
public class GetInvitationQueryHandler : IAsyncRequestHandler<GetInvitationRequest, GetInvitationResponse>
{
private readonly IInvitationRepository _invitationRepository;
private readonly IHashingService _hashingService;
public GetInvitationQueryHandler(IInvitationRepository invitationRepository, IHashingService hashingService)
{
if (invitationRepository == null)
throw new ArgumentNullException(nameof(invitationRepository));
_invitationRepository = invitationRepository;
_hashingService = hashingService;
}
public async Task<GetInvitationResponse> Handle(GetInvitationRequest message)
{
var invitation = await _invitationRepository.GetView(_hashingService.DecodeValue(message.Id));
return new GetInvitationResponse
{
Invitation = invitation
};
}
}
}
| 35.333333
| 116
| 0.709262
|
2ffd5bae6902624615c9356f6a9cf35e5dfa177c
| 1,004
|
kt
|
Kotlin
|
app/src/main/java/com/thisaay/youtuber/di/module/ActivityModule.kt
|
thisAAY/Youtube-Channel-Videos
|
64c7af926ababe1e63b41f212bb893f2c9888afd
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/com/thisaay/youtuber/di/module/ActivityModule.kt
|
thisAAY/Youtube-Channel-Videos
|
64c7af926ababe1e63b41f212bb893f2c9888afd
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/com/thisaay/youtuber/di/module/ActivityModule.kt
|
thisAAY/Youtube-Channel-Videos
|
64c7af926ababe1e63b41f212bb893f2c9888afd
|
[
"Apache-2.0"
] | null | null | null |
package com.thisaay.youtuber.di.module
import androidx.lifecycle.ViewModelProviders
import com.thisaay.youtuber.data.remote.NetworkService
import com.thisaay.youtuber.ui.MainActivity
import com.thisaay.youtuber.ui.MainViewModel
import com.thisaay.youtuber.utils.ViewModelProviderFactory
import com.thisaay.youtuber.utils.common.Resource
import com.thisaay.youtuber.utils.log.Logger
import dagger.Module
import dagger.Provides
import io.reactivex.disposables.CompositeDisposable
@Module
class ActivityModule(private val activity: MainActivity) {
@Provides
fun provideMainViewModel(compositeDisposable: CompositeDisposable, networkService: NetworkService): MainViewModel =
ViewModelProviders.of(
activity, ViewModelProviderFactory(MainViewModel::class) {
MainViewModel(compositeDisposable, networkService)
}).get(MainViewModel::class.java)
@Provides
fun provideRes() : Resource<String> {
return Resource.success("AAY")
}
}
| 31.375
| 119
| 0.77988
|
e05b9eadca20ce7c2b93c7bff444889f76541980
| 6,949
|
c
|
C
|
test/include/gmp-6.1.2/mpn/jacbase.c
|
kcpikkt/apa
|
9e84491ff58666b273ef50faea086e43abb89ab1
|
[
"MIT"
] | 184
|
2020-04-15T14:28:37.000Z
|
2020-09-22T15:57:55.000Z
|
homomorphic_evaluation/gmp-6.1.2/mpn/jacbase.c
|
dklee0501/Lobster
|
f2b73df9165c76e8b521d8ebd639d68321e3862b
|
[
"MIT"
] | 4
|
2020-03-07T21:13:11.000Z
|
2020-04-28T07:23:42.000Z
|
homomorphic_evaluation/gmp-6.1.2/mpn/jacbase.c
|
dklee0501/Lobster
|
f2b73df9165c76e8b521d8ebd639d68321e3862b
|
[
"MIT"
] | 6
|
2020-11-07T07:31:27.000Z
|
2022-01-09T18:48:19.000Z
|
/* mpn_jacobi_base -- limb/limb Jacobi symbol with restricted arguments.
THIS INTERFACE IS PRELIMINARY AND MIGHT DISAPPEAR OR BE SUBJECT TO
INCOMPATIBLE CHANGES IN A FUTURE RELEASE OF GMP.
Copyright 1999-2002, 2010 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
The GNU MP 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 General Public License
for more details.
You should have received copies of the GNU General Public License and the
GNU Lesser General Public License along with the GNU MP Library. If not,
see https://www.gnu.org/licenses/. */
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
/* Use the simple loop by default. The generic count_trailing_zeros is not
very fast, and the extra trickery of method 3 has proven to be less use
than might have been though. */
#ifndef JACOBI_BASE_METHOD
#define JACOBI_BASE_METHOD 2
#endif
/* Use count_trailing_zeros. */
#if JACOBI_BASE_METHOD == 1
#define PROCESS_TWOS_ANY \
{ \
mp_limb_t twos; \
count_trailing_zeros (twos, a); \
result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, b); \
a >>= twos; \
}
#define PROCESS_TWOS_EVEN PROCESS_TWOS_ANY
#endif
/* Use a simple loop. A disadvantage of this is that there's a branch on a
50/50 chance of a 0 or 1 low bit. */
#if JACOBI_BASE_METHOD == 2
#define PROCESS_TWOS_EVEN \
{ \
int two; \
two = JACOBI_TWO_U_BIT1 (b); \
do \
{ \
a >>= 1; \
result_bit1 ^= two; \
ASSERT (a != 0); \
} \
while ((a & 1) == 0); \
}
#define PROCESS_TWOS_ANY \
if ((a & 1) == 0) \
PROCESS_TWOS_EVEN;
#endif
/* Process one bit arithmetically, then a simple loop. This cuts the loop
condition down to a 25/75 chance, which should branch predict better.
The CPU will need a reasonable variable left shift. */
#if JACOBI_BASE_METHOD == 3
#define PROCESS_TWOS_EVEN \
{ \
int two, mask, shift; \
\
two = JACOBI_TWO_U_BIT1 (b); \
mask = (~a & 2); \
a >>= 1; \
\
shift = (~a & 1); \
a >>= shift; \
result_bit1 ^= two ^ (two & mask); \
\
while ((a & 1) == 0) \
{ \
a >>= 1; \
result_bit1 ^= two; \
ASSERT (a != 0); \
} \
}
#define PROCESS_TWOS_ANY \
{ \
int two, mask, shift; \
\
two = JACOBI_TWO_U_BIT1 (b); \
shift = (~a & 1); \
a >>= shift; \
\
mask = shift << 1; \
result_bit1 ^= (two & mask); \
\
while ((a & 1) == 0) \
{ \
a >>= 1; \
result_bit1 ^= two; \
ASSERT (a != 0); \
} \
}
#endif
#if JACOBI_BASE_METHOD < 4
/* Calculate the value of the Jacobi symbol (a/b) of two mp_limb_t's, but
with a restricted range of inputs accepted, namely b>1, b odd.
The initial result_bit1 is taken as a parameter for the convenience of
mpz_kronecker_ui() et al. The sign changes both here and in those
routines accumulate nicely in bit 1, see the JACOBI macros.
The return value here is the normal +1, 0, or -1. Note that +1 and -1
have bit 1 in the "BIT1" sense, which could be useful if the caller is
accumulating it into some extended calculation.
Duplicating the loop body to avoid the MP_LIMB_T_SWAP(a,b) would be
possible, but a couple of tests suggest it's not a significant speedup,
and may even be a slowdown, so what's here is good enough for now. */
int
mpn_jacobi_base (mp_limb_t a, mp_limb_t b, int result_bit1)
{
ASSERT (b & 1); /* b odd */
ASSERT (b != 1);
if (a == 0)
return 0;
PROCESS_TWOS_ANY;
if (a == 1)
goto done;
if (a >= b)
goto a_gt_b;
for (;;)
{
result_bit1 ^= JACOBI_RECIP_UU_BIT1 (a, b);
MP_LIMB_T_SWAP (a, b);
a_gt_b:
do
{
/* working on (a/b), a,b odd, a>=b */
ASSERT (a & 1);
ASSERT (b & 1);
ASSERT (a >= b);
if ((a -= b) == 0)
return 0;
PROCESS_TWOS_EVEN;
if (a == 1)
goto done;
}
while (a >= b);
}
done:
return JACOBI_BIT1_TO_PN (result_bit1);
}
#endif
#if JACOBI_BASE_METHOD == 4
/* Computes (a/b) for odd b > 1 and any a. The initial bit is taken as a
* parameter. We have no need for the convention that the sign is in
* bit 1, internally we use bit 0. */
/* FIXME: Could try table-based count_trailing_zeros. */
int
mpn_jacobi_base (mp_limb_t a, mp_limb_t b, int bit)
{
int c;
ASSERT (b & 1);
ASSERT (b > 1);
if (a == 0)
/* This is the only line which depends on b > 1 */
return 0;
bit >>= 1;
/* Below, we represent a and b shifted right so that the least
significant one bit is implicit. */
b >>= 1;
count_trailing_zeros (c, a);
bit ^= c & (b ^ (b >> 1));
/* We may have c==GMP_LIMB_BITS-1, so we can't use a>>c+1. */
a >>= c;
a >>= 1;
do
{
mp_limb_t t = a - b;
mp_limb_t bgta = LIMB_HIGHBIT_TO_MASK (t);
if (t == 0)
return 0;
/* If b > a, invoke reciprocity */
bit ^= (bgta & a & b);
/* b <-- min (a, b) */
b += (bgta & t);
/* a <-- |a - b| */
a = (t ^ bgta) - bgta;
/* Number of trailing zeros is the same no matter if we look at
* t or a, but using t gives more parallelism. */
count_trailing_zeros (c, t);
c ++;
/* (2/b) = -1 if b = 3 or 5 mod 8 */
bit ^= c & (b ^ (b >> 1));
a >>= c;
}
while (b > 0);
return 1-2*(bit & 1);
}
#endif /* JACOBI_BASE_METHOD == 4 */
| 28.479508
| 75
| 0.525687
|
7e20f563f456836d1255157b56867d6c49954bf7
| 4,748
|
kt
|
Kotlin
|
app/src/main/java/com/forcetower/uefs/feature/reminders/CreateReminderDialog.kt
|
Matoro17/Melon
|
34b0b27a888014f47fe45ed9b990b39a6a99ffd9
|
[
"MIT"
] | null | null | null |
app/src/main/java/com/forcetower/uefs/feature/reminders/CreateReminderDialog.kt
|
Matoro17/Melon
|
34b0b27a888014f47fe45ed9b990b39a6a99ffd9
|
[
"MIT"
] | null | null | null |
app/src/main/java/com/forcetower/uefs/feature/reminders/CreateReminderDialog.kt
|
Matoro17/Melon
|
34b0b27a888014f47fe45ed9b990b39a6a99ffd9
|
[
"MIT"
] | null | null | null |
/*
* Copyright (c) 2019.
* João Paulo Sena <joaopaulo761@gmail.com>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* 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.forcetower.uefs.feature.reminders
import android.content.res.ColorStateList
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import com.forcetower.uefs.R
import com.forcetower.uefs.core.injection.Injectable
import com.forcetower.uefs.core.vm.UViewModelFactory
import com.forcetower.uefs.databinding.DialogCreateReminderBinding
import com.forcetower.uefs.feature.shared.RoundedDialog
import com.forcetower.uefs.feature.shared.inflate
import com.forcetower.uefs.feature.shared.extensions.provideViewModel
import com.wdullaer.materialdatetimepicker.date.DatePickerDialog
import java.util.Calendar
import javax.inject.Inject
class CreateReminderDialog : RoundedDialog(), Injectable {
@Inject
lateinit var factory: UViewModelFactory
private lateinit var binding: DialogCreateReminderBinding
private lateinit var viewModel: RemindersViewModel
override fun onChildCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
viewModel = provideViewModel(factory)
binding = inflater.inflate(R.layout.dialog_create_reminder)
binding.apply {
btnOk.setOnClickListener { createReminder() }
btnDeadline.setOnClickListener { openCalendar() }
btnCancel.setOnClickListener { dismiss() }
}
return binding.root
}
private fun createReminder() {
val title = binding.textInputTitle.text?.toString()
var description = binding.textInputDescription.text?.toString()
if (title == null || title.isBlank()) {
binding.textInputTitle.error = getString(R.string.reminder_title_empty)
binding.textInputTitle.requestFocus()
return
}
if (description != null && description.isBlank())
description = null
viewModel.createReminder(title, description)
dismiss()
}
private fun openCalendar() {
val calendar = Calendar.getInstance()
if (viewModel.currentDeadline != null)
calendar.timeInMillis = viewModel.currentDeadline!!
val picker = DatePickerDialog.newInstance({ _, y, m, d ->
val next = Calendar.getInstance().apply {
set(Calendar.YEAR, y)
set(Calendar.MONTH, m)
set(Calendar.DAY_OF_MONTH, d)
}.timeInMillis
viewModel.currentDeadline = next
binding.btnDeadline.iconTint = ColorStateList.valueOf(ContextCompat.getColor(requireContext(), R.color.blue_accent))
}, calendar)
picker.version = DatePickerDialog.Version.VERSION_2
val color = ContextCompat.getColor(requireContext(), R.color.colorPrimary)
picker.accentColor = color
picker.setOkColor(color)
val theme = requireContext().theme
val darkThemeValue = TypedValue()
theme.resolveAttribute(R.attr.lightStatusBar, darkThemeValue, true)
picker.isThemeDark = darkThemeValue.data == 0
val colorOnSurfaceLight = TypedValue()
theme.resolveAttribute(R.attr.colorOnSurfaceLight, colorOnSurfaceLight, true)
picker.setCancelColor(colorOnSurfaceLight.data)
picker.show(childFragmentManager, "date_picker_dialog")
}
}
| 41.649123
| 129
| 0.706403
|
717964ed86cd82f7e892be796ca261697b1480a7
| 1,360
|
sql
|
SQL
|
whereLike.sql
|
MikeMwambia-TrojanSystem/sql_summary_notes
|
fc1c016fdc83896cdd2fe948e2154ca8b177769e
|
[
"MIT"
] | null | null | null |
whereLike.sql
|
MikeMwambia-TrojanSystem/sql_summary_notes
|
fc1c016fdc83896cdd2fe948e2154ca8b177769e
|
[
"MIT"
] | null | null | null |
whereLike.sql
|
MikeMwambia-TrojanSystem/sql_summary_notes
|
fc1c016fdc83896cdd2fe948e2154ca8b177769e
|
[
"MIT"
] | null | null | null |
-- Selects the condition where there's a like
-- % Wildcards returns thos that have that character
-- e.g '%the%' returns those that have 'the' in second_name;
-- the% returns those that start with 'the'
-- %the returns thos that end with 'the'
SELECT second_name FROM peoplesTable
WHERE second_name LIKE '%the%';
-- How many books contain 'the'in title
SELECT COUNT(
title
) AS 'Books with \'the\' in them'
FROM books
WHERE title LIKE '%the%';
-- POTENTIALLY SLOW FOR BIG DATA
-- Sub query
SELECT title , pages
FROM books
WHERE pages=(SELECT Max(pages) FROM books);
-- Max
SELECT title , pages
FROM books
WHERE pages=(SELECT Min(pages) FROM books);
-- SAME AS ABOVE
SELECT title , pages FROM books ORDER BY pages DESC LIMIT 1;
-- Sorts by author_lname then author_fname
SELECT author_fname, author_lname FROM books
ORDER BY author_lname, author_fname;
-- Indicate exactly one character
-- One underscore == One character
-- If you need to search out 4 characters
-- you do 4 underscore characters
SELECT title,stock_quantity
FROM books
WHERE stock_quantity
LIKE '____';
-- Notes on Wildcards escape
-- You use \(escape sign) to escape characters in search
-- %\_% to escape underscore sign in data you are search
-- %\%% to escape z% sign
SELECT title FROM books WHERE title LIKE '%\%%';
-- searches out a book with % sign on title
| 25.660377
| 61
| 0.728676
|
545004b0c44db1fdd90818893706349b31413847
| 7,436
|
asm
|
Assembly
|
src/kernel/arch/x86_64/asm/boot.asm
|
aryanmaurya1/ArvernOS
|
a8452c01cd180ffbdabf949c80329ccfcc84d2e9
|
[
"MIT"
] | 229
|
2017-05-22T16:48:19.000Z
|
2021-11-18T18:43:03.000Z
|
src/kernel/arch/x86_64/asm/boot.asm
|
aryanmaurya1/ArvernOS
|
a8452c01cd180ffbdabf949c80329ccfcc84d2e9
|
[
"MIT"
] | 95
|
2017-05-22T16:35:44.000Z
|
2021-11-17T22:28:36.000Z
|
src/kernel/arch/x86_64/asm/boot.asm
|
aryanmaurya1/ArvernOS
|
a8452c01cd180ffbdabf949c80329ccfcc84d2e9
|
[
"MIT"
] | 28
|
2017-05-23T16:06:42.000Z
|
2021-11-15T07:15:15.000Z
|
; cf. https://intermezzos.github.io/book/hello-world.html
global start ; exports a label (makes it public). As start will be the entry
; point of our kernel, it needs to be public.
global gdt64 ; exports the GDT as well
global tss ; ...and the TSS
section .text ; executable code
bits 32 ; specifies that the following lines are 32-bit instructions.
; It's needed because the CPU is still in Protected mode when
; GRUB starts our kernel. When we switch to Long mode, we can
; use bits 64 (64-bit instructions).
start:
mov esp, stack_top
mov ebp, 0
; `ebx` points to a boot information structure. We move it to `edi` to
; pass it to our kernel.
mov edi, ebx
; various checks before we can move on.
call check_multiboot
call check_cpuid
call check_long_mode
call set_up_page_tables
call enable_paging
; load the 64-bit GDT
lgdt [gdt64.pointer]
jmp gdt64.kernel_code:long_mode_start
; Should not be reached.
hlt
; -----------------------------------------------------------------------------
; make sure the kernel was really loaded by a Multiboot compliant bootloader
%define MULTIBOOT2_MAGIC_VALUE 0x36d76289
check_multiboot:
cmp eax, MULTIBOOT2_MAGIC_VALUE
jne .no_multiboot
ret
.no_multiboot:
mov al, "0"
jmp error
; -----------------------------------------------------------------------------
; CPUID check
; cf. http://wiki.osdev.org/Setting_Up_Long_Mode#Detection_of_CPUID
check_cpuid:
; Check if CPUID is supported by attempting to flip the ID bit (bit 21)
; in the FLAGS register. If we can flip it, CPUID is available.
; Copy FLAGS in to EAX via stack
pushfd
pop eax
; Copy to ECX as well for comparing later on
mov ecx, eax
; Flip the ID bit
xor eax, 1 << 21
; Copy EAX to FLAGS via the stack
push eax
popfd
; Copy FLAGS back to EAX (with the flipped bit if CPUID is supported)
pushfd
pop eax
; Restore FLAGS from the old version stored in ECX (i.e. flipping the ID
; bit back if it was ever flipped).
push ecx
popfd
; Compare EAX and ECX. If they are equal then that means the bit wasn't
; flipped, and CPUID isn't supported.
cmp eax, ecx
je .no_cpuid
ret
.no_cpuid:
mov al, "1"
jmp error
; -----------------------------------------------------------------------------
; Long Mode check
check_long_mode:
; test if extended processor info in available
mov eax, 0x80000000 ; implicit argument for cpuid
cpuid ; get highest supported argument
cmp eax, 0x80000001 ; it needs to be at least 0x80000001
jb .no_long_mode ; if it's less, the CPU is too old for long mode
; use extended info to test if long mode is available
mov eax, 0x80000001 ; argument for extended processor info
cpuid ; returns various feature bits in ecx and edx
test edx, 1 << 29 ; test if the LM-bit is set in the D-register
jz .no_long_mode ; If it's not set, there is no long mode
ret
.no_long_mode:
mov al, "2"
jmp error
; -----------------------------------------------------------------------------
; Paging: we identity map the first gigabyte of our kernel with 512 2MiB pages.
; See: https://os.phil-opp.com/entering-longmode/#paging
set_up_page_tables:
; See: https://os.phil-opp.com/page-tables/#implementation
mov eax, p4_table
or eax, 11b ; present + writable
mov [p4_table + 511 * 8], eax
; Point the first entry of the level 4 page table to the first entry in the
; p3 table.
mov eax, p3_table
or eax, 11b ; present + writable
mov dword [p4_table], eax
; Point the first entry of the level 3 page table to the first entry in the
; p2 table.
mov eax, p2_table
or eax, 11b ; present + writable
mov dword [p3_table], eax
; Point each page table level two entry to a page.
mov ecx, 0 ; counter variable
.map_p2_table:
; Map ecx-th P2 entry to a huge page that starts at address 2MiB*ecx.
mov eax, 0x200000 ; 2MiB
mul ecx ; start address of ecx-th page
or eax, 10000011b ; present + writable + huge
mov [p2_table + ecx * 8], eax ; map ecx-th entry
inc ecx ; increase counter
cmp ecx, 512 ; if counter == 512, the whole P2 table is mapped
jne .map_p2_table ; else map the next entry
ret
; -----------------------------------------------------------------------------
; Enable paging to enter long-mode.
enable_paging:
; load P4 to cr3 register (cpu uses this to access the P4 table)
mov eax, p4_table
mov cr3, eax
; enable PAE-flag in cr4 (Physical Address Extension)
mov eax, cr4
or eax, 1 << 5
mov cr4, eax
; set the long mode bit in the EFER MSR (model specific register)
mov ecx, 0xC0000080
rdmsr
or eax, 1 << 8
wrmsr
; enable paging in the cr0 register
mov eax, cr0
or eax, 1 << 31
mov cr0, eax
ret
; -----------------------------------------------------------------------------
; Prints `ERR: ` and the given error code to screen and hangs.
;
; Parameter: error code (in ascii) in al
;
; 0 = no multiboot
; 1 = no CPUID
; 2 = no long mode
error:
mov dword [0xb8000], 0x4f524f45
mov dword [0xb8004], 0x4f3a4f52
mov dword [0xb8008], 0x4f204f20
mov byte [0xb800a], al
hlt
; -----------------------------------------------------------------------------
section .bss
; This ensures that the page tables are page aligned.
align 4096
p4_table:
; `resb` means 'reserves bytes'
resb 4096
p3_table:
resb 4096
p2_table:
resb 4096
; cf. http://os.phil-opp.com/allocating-frames.html
; the stack now has 64kB
stack_bottom:
resb 4096 * 16
stack_top:
; -----------------------------------------------------------------------------
section .data
; The processor is still in a 32-bit compatibility submode. To actually execute
; 64-bit code, we need to set up a new Global Descriptor Table.
gdt64:
; .null_1 / 0x00
dq 0
.kernel_code: equ $ - gdt64 ; 0x08
dw 0
dw 0
db 0
db 10011010b
db 10100000b
db 0
.kernel_data: equ $ - gdt64 ; 0x10
dw 0
dw 0
db 0
db 10010010b
db 10000000b
db 0
.null_2: equ $ - gdt64 ; 0x18
dq 0
.user_data: equ $ - gdt64 ; 0x20
dw 0
dw 0
db 0
db 11110010b
db 10000000b
db 0
.user_code: equ $ - gdt64 ; 0x28
dw 0
dw 0
db 0
db 11111010b
db 10100000b
db 0
.tss: equ $ - gdt64 ; 0x30
; We only set type and flags below. Other values will be set in `tss_init()`.
; low
dw 0 ; limit 15:0
dw 0 ; base 15:0
db 0 ; base 23:16
db 10001001b ; type
db 10100000b ; limit 19:16 and flags
db 0 ; base 31:24
; high
dq 0
.pointer:
dw .pointer - gdt64 - 1
dq gdt64
; TSS
tss:
; We don't load the TSS right now, we create it here and we'll finish the
; initialization in `tss_init()`.
.base: equ 0
dd 0 ; reserved0
dq 0 ; rsp0 (Privilege Stack Table)
dq 0 ; rsp1
dq 0 ; rsp2
dq 0 ; reserved1
dq 0 ; ist1 (Interrupt Stack Table)
dq 0 ; ist2
dq 0 ; ist3
dq 0 ; ist4
dq 0 ; ist5
dq 0 ; ist6
dq 0 ; ist7
dq 0 ; reserved2
dw 0 ; reserved3
dw 0 ; iopb_offset (I/O Map Base Address)
.size: equ $ - tss
; -----------------------------------------------------------------------------
; 64-bit code below
extern kmain
section .text
bits 64
long_mode_start:
; load 0 into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call kmain
; Should not happen.
cli
hlt
| 25.121622
| 79
| 0.608661
|
d02ed29d017f4d5ae9e34d673e71ea75c16edc9b
| 8,243
|
rb
|
Ruby
|
lib/remap/base.rb
|
oleander/remap
|
a6b234f25e87b2dbe396683355273e229213e49e
|
[
"MIT"
] | 1
|
2021-12-08T23:29:22.000Z
|
2021-12-08T23:29:22.000Z
|
lib/remap/base.rb
|
oleander/remap
|
a6b234f25e87b2dbe396683355273e229213e49e
|
[
"MIT"
] | 43
|
2021-12-07T21:30:55.000Z
|
2021-12-20T21:52:36.000Z
|
lib/remap/base.rb
|
oleander/remap
|
a6b234f25e87b2dbe396683355273e229213e49e
|
[
"MIT"
] | 1
|
2021-12-23T21:43:11.000Z
|
2021-12-23T21:43:11.000Z
|
# frozen_string_literal: true
require "active_support/configurable"
require "active_support/core_ext/object/with_options"
module Remap
# @example Select all elements
# class Mapper < Remap::Base
# define do
# map [all, :name]
# end
# end
#
# Mapper.call([{ name: "John" }, { name: "Jane" }]) # => ["John", "Jane"]
#
# @example Given an option
# class Mapper < Remap::Base
# option :name
#
# define do
# set [:person, :name], to: option(:name)
# end
# end
#
# Mapper.call({}, name: "John") # => { person: { name: "John" } }
#
# @example Given a value
# class Mapper < Remap::Base
# define do
# set [:api_key], to: value("ABC-123")
# end
# end
#
# Mapper.call({}) # => { api_key: "ABC-123" }
#
# @example Maps ["A", "B", "C"] to ["A", "C"]
# class IfNotMapper < Remap::Base
# define do
# each do
# map?.if_not do |value|
# value.include?("B")
# end
# end
# end
# end
#
# IfNotMapper.call(["A", "B", "C"]) # => ["A", "C"]
#
# @example Maps ["A", "B", "C"] to ["B"]
# class IfMapper < Remap::Base
# define do
# each do
# map?.if do |value|
# value.include?("B")
# end
# end
# end
# end
#
# IfMapper.call(["A", "B", "C"]) # => ["B"]
#
# @example Maps { a: { b: "A" } } to "A"
# class EnumMapper < Remap::Base
# define do
# map(:a, :b).enum do
# value "A", "B"
# end
# end
# end
#
# EnumMapper.call({ a: { b: "A" } }) # => "A"
# EnumMapper.call({ a: { b: "B" } }) # => "B"
#
# @example Map { people: [{ name: "John" }] } to { names: ["John"] }
# class PeopleMapper < Remap::Base
# define do
# map :people, to: :names do
# each do
# map :name
# end
# end
# end
# end
#
# PeopleMapper.call({ people: [{ name: "John" }] }) # => { names: ["John"] }
#
# @example Map "Hello" to "Hello!"
# class HelloMapper < Remap::Base
# define do
# map.adjust do |value|
# "#{value}!"
# end
# end
# end
#
# HelloMapper.call("Hello") # => "Hello!"
#
# @example Select the second element from an array
# class Mapper < Remap::Base
# define do
# map [at(1)]
# end
# end
#
# Mapper.call([1, 2, 3]) # => 2
class Base < Mapper
include ActiveSupport::Configurable
include Dry::Core::Memoizable
include Dry::Core::Constants
include Catchable
extend Mapper::API
using State::Extension
with_options instance_accessor: true do |scope|
scope.config_accessor(:contract) { Dry::Schema.define {} }
scope.config_accessor(:config_options) { Config.new }
scope.config_accessor(:constructor) { IDENTITY }
scope.config_accessor(:options) { EMPTY_ARRAY }
scope.config_accessor(:option) { EMPTY_HASH }
scope.config_accessor(:rules) { EMPTY_ARRAY }
scope.config_accessor(:context) { IDENTITY }
end
schema schema.strict(false)
# Defines a schema for the mapper
# If the schema fail, the mapper will fail
#
# @example Guard against missing values
# class MapperWithAge < Remap::Base
# contract do
# required(:age).filled(:integer)
# end
#
# define do
# map :age, to: [:person, :age]
# end
# end
#
# MapperWithAge.call({age: 50}) # => { person: { age: 50 } }
# MapperWithAge.call({age: '10'}) do |failure|
# # ...
# end
#
# @see https://dry-rb.org/gems/dry-schema/1.5/
#
# @return [void]
def self.contract(&context)
self.contract = Dry::Schema.define(&context)
end
# Defines a rule for the mapper
# If the rule fail, the mapper will fail
#
# @example Guard against values
# class MapperWithRule < Remap::Base
# contract do
# required(:age)
# end
#
# rule(:age) do
# unless value >= 18
# key.failure("must be at least 18 years old")
# end
# end
#
# define do
# map :age, to: [:person, :age]
# end
# end
#
# MapperWithRule.call({age: 50}) # => { person: { age: 50 } }
# MapperWithRule.call({age: 10}) do |failure|
# # ...
# end
#
# @see https://dry-rb.org/gems/dry-validation/1.6/rules/
#
# @return [void]
def self.rule(...)
self.rules = rules + [-> { rule(...) }]
end
# Defines a required option for the mapper
#
# @example A mapper that takes an argument name
# class MapperWithOption < Remap::Base
# option :name
#
# define do
# set :name, to: option(:name)
# end
# end
#
# MapperWithOption.call({}, name: "John") # => { name: "John" }
#
# @param field [Symbol]
# @option type (Types::Any) [#call]
#
# @return [void]
def self.option(field, type: Types::Any)
attribute(field, type)
unless (key = schema.keys.find { _1.name == field })
raise ArgumentError, "[BUG] Could not locate [#{field}] in [#{self}]"
end
self.options = options + [-> * { option(field, type: key) }]
end
# Defines a mapper rules and possible constructor
#
# @param target (Nothing) [#call]
#
# @option method (:new) [Symbol]
# @option strategy (:argument) [:argument, :keywords, :none]
#
# @example A mapper, which maps a value at [:a] to [:b]
# class Mapper < Remap::Base
# define do
# map :a, to: :b
# end
# end
#
# Mapper.call({a: 1}) # => { b: 1 }
#
# @example A mapper with an output constructor
# class Person < Dry::Struct
# attribute :first_name, Dry::Types['strict.string']
# end
#
# class Mapper < Remap::Base
# define(Person) do
# map :name, to: :first_name
# end
# end
#
# Mapper.call({name: "John"}).first_name # => "John"
#
# @return [void]
# rubocop:disable Layout/LineLength
def self.define(target = Nothing, method: :new, strategy: :argument, backtrace: caller, &context)
unless context
raise ArgumentError, "#{self}.define requires a block"
end
self.constructor = Constructor.call(method: method, strategy: strategy, target: target)
self.context = Compiler.call(backtrace: backtrace, &context)
end
# rubocop:enable Layout/LineLength
# @param state [State]
#
# @yield [Failure]
# when a non-critical error occurs
# @yieldreturn T
#
# @return [State, T]
# when request is a success
# @raise [Remap::Error]
# when a fatal error occurs
#
# @private
def self.call!(state, &error)
new(state.options).call(state, &error)
end
# Configuration options for the mapper
#
# @yield [Config]
# @yieldreturn [void]
#
# @return [void]
def self.configuration(&block)
config = Config.new
block[config]
self.config_options = config
end
# @see Mapper::API
#
# @private
def self.validate?
config_options.validation
end
# Mappers state according to the mapper rules
#
# @param state [State]
#
# @yield [Failure] if mapper fails
#
# @return [State]
#
# @private
def call(state, &error)
state._ do |reason|
raise ArgumentError, "Invalid state due to #{reason.formatted}"
end
state.tap do |input|
validation.call(input, state.options).tap do |result|
unless result.success?
return error[state.failure(result.errors.to_h)]
end
end
end
s1 = catch_ignored(state) do |s0|
return context.call(s0).then(&constructor).remove_id
end
error[s1.failure]
end
private
# @return [Contract]
def validation
Contract.call(attributes: attributes, contract: contract, options: options, rules: rules)
end
memoize :validation
end
end
| 25.285276
| 101
| 0.531724
|
b0b5b2e2cd6f5d3e97455df4843046f9542a58a5
| 165
|
py
|
Python
|
problem0034.py
|
kmarcini/Project-Euler-Python
|
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
|
[
"BSD-3-Clause"
] | null | null | null |
problem0034.py
|
kmarcini/Project-Euler-Python
|
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
|
[
"BSD-3-Clause"
] | null | null | null |
problem0034.py
|
kmarcini/Project-Euler-Python
|
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
|
[
"BSD-3-Clause"
] | null | null | null |
###########################
#
# #34 Digit factorials - Project Euler
# https://projecteuler.net/problem=34
#
# Code by Kevin Marciniak
#
###########################
| 18.333333
| 38
| 0.472727
|
7fd0a2137221925d0a61d5d5cc757207fa401456
| 1,429
|
php
|
PHP
|
protected/views/account/storagelogin.php
|
tvitcom/yii-inventory
|
4136fdd1fab8b3c6fd3ce1b14d7ccac1ef9bc2e5
|
[
"Apache-2.0"
] | null | null | null |
protected/views/account/storagelogin.php
|
tvitcom/yii-inventory
|
4136fdd1fab8b3c6fd3ce1b14d7ccac1ef9bc2e5
|
[
"Apache-2.0"
] | null | null | null |
protected/views/account/storagelogin.php
|
tvitcom/yii-inventory
|
4136fdd1fab8b3c6fd3ce1b14d7ccac1ef9bc2e5
|
[
"Apache-2.0"
] | null | null | null |
<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm */
$this->pageTitle = Yii::app()->name . ' - Get Storage Password';
$this->breadcrumbs = array(
Yii::t('site', 'Login'),
);
?>
<h1><?php echo Yii::t('site', 'Login'); ?></h1>
<p><?php echo Yii::t('site', 'Please fill master password for your passwords storage'); ?>:</p>
<div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array(
'id' => 'login-form',
'enableClientValidation' => true,
'clientOptions' => array(
'validateOnSubmit' => true,
),
));
?>
<p class="note">
<?php echo Yii::t('site', 'Fields with'); ?>
<span class="required">*</span> <?php echo Yii::t('site', 'are required'); ?>.</p>
<div class="row">
<?php echo $form->labelEx($model, 'password'); ?>
<?php echo $form->passwordField($model, 'password'); ?>
<?php echo $form->error($model, 'password'); ?>
<p class="hint">
</p>
</div>
<div class="row rememberMe">
<?php echo $form->checkBox($model, 'rememberMe'); ?>
<?php echo $form->label($model, 'rememberMe'); ?>
<?php echo $form->error($model, 'rememberMe'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton(Yii::t('site', 'Submit')); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
| 28.019608
| 95
| 0.526942
|
591b00f1ae94fc8f7fb7d6b4ca60e51067d8fa5b
| 9,866
|
swift
|
Swift
|
Sources/WWCropViewController/Extension+.swift
|
William-Weng/WWCropViewController
|
d255a565266e62630b95b7a44bad4c156a8a2d26
|
[
"MIT"
] | null | null | null |
Sources/WWCropViewController/Extension+.swift
|
William-Weng/WWCropViewController
|
d255a565266e62630b95b7a44bad4c156a8a2d26
|
[
"MIT"
] | null | null | null |
Sources/WWCropViewController/Extension+.swift
|
William-Weng/WWCropViewController
|
d255a565266e62630b95b7a44bad4c156a8a2d26
|
[
"MIT"
] | null | null | null |
//
// Extension+.swift
// WWCropViewController
//
// Created by William.Weng on 2021/12/15.
//
import UIKit
// MARK: - Collection (override class function)
extension Collection {
/// [為Array加上安全取值特性 => nil](https://stackoverflow.com/questions/25329186/safe-bounds-checked-array-lookup-in-swift-through-optional-bindings)
subscript(safe index: Index) -> Element? { return indices.contains(index) ? self[index] : nil }
}
// MARK: - Collection (class function)
extension Collection where Self.Element: UIView {
/// 將所有Subview隱藏
/// - Parameter isHidden: Bool
func _isHidden(_ isHidden: Bool = true) {
self.forEach { view in view.isHidden = isHidden }
}
}
// MARK: - Array (class function)
extension Array {
/// [仿javaScript的forEach()](https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)
func _forEach(_ forEach: (Int, Element, Self) -> Void) {
for (index, object) in self.enumerated() {
forEach(index, object, self)
}
}
}
// MARK: - CGPoint (class function)
extension CGPoint {
/// CGPoint加法
/// - Parameters:
/// - x: CGFloat
/// - y: CGFloat
/// - Returns: CGPoint
func _add(x: CGFloat , y: CGFloat) -> CGPoint { return CGPoint(x: self.x + x, y: self.y + y) }
}
// MARK: - CGSize (class function)
extension CGSize {
/// CGSize加法
/// - Parameters:
/// - width: CGFloat
/// - height: CGFloat
/// - Returns: CGSize
func _add(width: CGFloat , height: CGFloat) -> CGSize { return CGSize(width: self.width + width, height: self.height + height) }
}
// MARK: - CALayer (class function)
extension CALayer {
/// 設定圓角
/// - 可以個別設定要哪幾個角
/// - 預設是四個角全是圓角
/// - Parameters:
/// - radius: 圓的半徑
/// - corners: 圓角要哪幾個邊
func _maskedCorners(radius: CGFloat, corners: CACornerMask = [.layerMinXMinYCorner, .layerMaxXMinYCorner, .layerMinXMaxYCorner, .layerMaxXMaxYCorner]) {
self.masksToBounds = true
self.maskedCorners = corners
self.cornerRadius = radius
}
}
// MARK: - UIView (class function)
extension UIView {
/// [座標轉換 - 中點](https://medium.com/彼得潘的-swift-ios-app-開發問題解答集/利用轉換座標的-convert-function-判斷點選的-cell-1eee56a57d3b)
/// - scrollView.convert(centerView.center, from: centerView.superview)
/// - Parameter view: 對應的View
/// - Returns: CGPoint
func _center(from view: UIView) -> CGPoint {
let centerFromView = convert(view.center, from: view.superview)
return centerFromView
}
/// 設定GestureRecognizer (拖曳 / 縮放 / 旋轉 / 比例)
/// - Parameter types: Set<Constant.GestureRecognizer>
func _gestureRecognizerSetting(types: Set<Constant.GestureRecognizer> = [.drag, .scale, .rotation]) {
gestureRecognizers?.forEach({ recognizer in
removeGestureRecognizer(recognizer)
})
if types.contains(.drag) { addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(_handleDrag(_:)))) }
if types.contains(.zoom) { addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(_handleZoom(_:)))) }
if types.contains(.scale) { addGestureRecognizer(UIPinchGestureRecognizer(target: self, action: #selector(_handleScale(_:)))) }
if types.contains(.rotation) { addGestureRecognizer(UIRotationGestureRecognizer(target: self, action: #selector(_rotationView(_:)))) }
isUserInteractionEnabled = true
}
/// 取得該View的第一個View => ViewController的第一個View
/// - Returns: UIView
func _rootView() -> UIView {
guard let superview = superview else { return self }
return superview._rootView()
}
}
// MARK: - UIView (@objc class function)
extension UIView {
// 移動View (歸零)
@objc func _handleDrag(_ pan: UIPanGestureRecognizer) {
guard let panLocation = Optional.some(pan.translation(in: self._rootView())),
let view = pan.view
else {
return
}
let newCenter = view.center._add(x: panLocation.x, y: panLocation.y)
view.center = newCenter
pan.setTranslation(.zero, in: pan.view)
}
/// [放大UIView (歸零)](https://stackoverflow.com/questions/18681901/setting-alpha-on-uiview-sets-the-alpha-on-its-subviews-which-should-not-happen)
/// - Parameter pan: [UIPanGestureRecognizer](https://stackoverflow.com/questions/11368440/can-i-disable-autolayout-for-a-specific-subview-at-runtime)
@objc func _handleZoom(_ pan: UIPanGestureRecognizer) {
guard let baseView = superview else { return }
zoomSetting(with: pan, baseView: baseView)
pan.setTranslation(.zero, in: pan.view)
}
/// 放大View比例 (歸零)
@objc func _handleScale(_ pinch: UIPinchGestureRecognizer) {
guard let view = pinch.view else { return }
if pinch.state == .began || pinch.state == .changed {
view.transform = view.transform.scaledBy(x: pinch.scale, y: pinch.scale)
pinch.scale = 1.0
}
}
/// 旋轉View (歸零)
@objc func _rotationView(_ rotation: UIRotationGestureRecognizer) {
guard let view = rotation.view else { return }
view.transform = view.transform.rotated(by: rotation.rotation)
rotation.rotation = 0
}
}
// MARK: - UIView (private class function)
extension UIView {
/// 設定縮放 => 移動中點 / 預設是置中縮放 / 根據Constant.CropViewTag來分辨位置
/// - Parameters:
/// - pan: UIPanGestureRecognizer
/// - baseView: UIView
private func zoomSetting(with pan: UIPanGestureRecognizer, baseView: UIView) {
let panLocation = pan.translation(in: pan.view)
let frame = baseView.frame
let newCenter = baseView.center
var newFrame = CGRect(origin: frame.origin, size: frame.size._add(width: panLocation.x, height: panLocation.y))
baseView.translatesAutoresizingMaskIntoConstraints = true
guard let tag = Constant.CropViewTag(rawValue: self.tag) else {
baseView.frame = newFrame
baseView.center = newCenter; return
}
switch tag {
case .leftTop: newFrame = CGRect(origin: frame.origin, size: frame.size._add(width: -panLocation.x, height: -panLocation.y))
case .rightTop: newFrame = CGRect(origin: frame.origin, size: frame.size._add(width: panLocation.x, height: -panLocation.y))
case .leftBottom: newFrame = CGRect(origin: frame.origin, size: frame.size._add(width: -panLocation.x, height: panLocation.y))
case .rightBottom: break
}
baseView.frame = newFrame
baseView.center = CGPoint(x: newCenter.x + panLocation.x * 0.5, y: newCenter.y + panLocation.y * 0.5)
}
}
// MARK: - UIImage (class function)
extension UIImage {
/// 改變圖片大小
/// - Parameter size: 設定的大小
/// - Returns: UIImage
func _resized(for size: CGSize) -> UIImage {
let renderer = UIGraphicsImageRenderer(size: size)
let resizeImage = renderer.image { (context) in draw(in: renderer.format.bounds) }
return resizeImage
}
/// 修正圖片在Exif上的方向設定值
/// - 重畫一張
/// - Returns: UIImage?
func _normalized() -> UIImage? {
guard imageOrientation != .up else { return self }
let normalizedImage = _resized(for: size)
return normalizedImage
}
}
// MARK: - UIImageView (class function)
extension UIImageView {
/// [裁切圖片 - 長方形](https://www.codenong.com/a7e72f95108711ebb8a3/)
/// - 把照片轉正 => 算出照片跟View的比例 => 裁切圖片
/// - Parameters:
/// - rect: [CGRect](https://www.advancedswift.com/crop-image/)
/// - Returns: UIImage?
func _cropImage(with rect: CGRect) -> UIImage? {
guard let image = image?._normalized(),
let cgImage = image.cgImage,
let scale = Optional.some((x: CGFloat(cgImage.width) / self.frame.width, y: CGFloat(cgImage.height) / self.frame.height)),
let cropRect = Optional.some(rect.applying(CGAffineTransform(scaleX: scale.x, y: scale.y))),
let croppingImage = cgImage.cropping(to: cropRect)
else {
return nil
}
return UIImage(cgImage: croppingImage, scale: UIScreen.main.scale, orientation: .up)
}
/// [裁切圖片 - 橢圓形](https://www.advancedswift.com/crop-image/)
/// - Parameters:
/// - rect: [CGRect](https://stackoverflow.com/questions/32041420/cropping-image-with-swift-and-put-it-on-center-position)
/// - Returns: UIImage?
func _cropCircleImage(with rect: CGRect) -> UIImage? {
let path = UIBezierPath(ovalIn: CGRect(origin: .zero, size: rect.size))
return _cropPolygonImage(with: rect, path: path)
}
/// [裁切圖片 - 多邊形](https://www.advancedswift.com/crop-image/)
/// - 先切出正方形 => 再畫路徑去切
/// - Parameters:
/// - rect: [CGRect](https://stackoverflow.com/questions/32041420/cropping-image-with-swift-and-put-it-on-center-position)
/// - path: [UIBezierPath?](https://medium.com/彼得潘的-swift-ios-app-開發問題解答集/運用-uibezierpath-繪製形-3c858e194676)
/// - Returns: [UIImage?](https://www.codenong.com/a7e72f95108711ebb8a3/)
func _cropPolygonImage(with rect: CGRect, path: UIBezierPath? = nil) -> UIImage? {
guard let cropImage = _cropImage(with: rect),
let path = path
else {
return nil
}
let circleImage = UIGraphicsImageRenderer(size: rect.size, format: cropImage.imageRendererFormat).image { context in
path.addClip()
cropImage.draw(in: CGRect(origin: .zero, size: rect.size))
}
return circleImage
}
}
| 35.876364
| 156
| 0.625481
|
dd882efbc18919115d7d044fcf4cc0b82677ec64
| 1,845
|
java
|
Java
|
drools-workbench-models/drools-workbench-models-datamodel-api/src/main/java/org/drools/workbench/models/datamodel/rule/ActionWorkItemFieldValue.java
|
bxf12315/drools
|
73c1ee5f3339c4acf4e270b67963085c9357813a
|
[
"Apache-2.0"
] | 1
|
2019-02-15T02:33:45.000Z
|
2019-02-15T02:33:45.000Z
|
drools-workbench-models/drools-workbench-models-datamodel-api/src/main/java/org/drools/workbench/models/datamodel/rule/ActionWorkItemFieldValue.java
|
bxf12315/drools
|
73c1ee5f3339c4acf4e270b67963085c9357813a
|
[
"Apache-2.0"
] | null | null | null |
drools-workbench-models/drools-workbench-models-datamodel-api/src/main/java/org/drools/workbench/models/datamodel/rule/ActionWorkItemFieldValue.java
|
bxf12315/drools
|
73c1ee5f3339c4acf4e270b67963085c9357813a
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright 2012 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.drools.workbench.models.datamodel.rule;
/**
* Holds field and Work Item definition parameters for actions
*/
public class ActionWorkItemFieldValue extends ActionFieldValue {
private static final long serialVersionUID = 540L;
private String workItemName;
private String workItemParameterName;
private String workItemParameterClassName;
public ActionWorkItemFieldValue() {
}
public ActionWorkItemFieldValue( String factField,
String fieldType,
String workItemName,
String workItemParameterName,
String workItemParameterClassName ) {
super( factField,
null,
fieldType );
this.workItemName = workItemName;
this.workItemParameterName = workItemParameterName;
this.workItemParameterClassName = workItemParameterClassName;
}
public String getWorkItemName() {
return workItemName;
}
public String getWorkItemParameterName() {
return workItemParameterName;
}
public String getWorkItemParameterClassName() {
return workItemParameterClassName;
}
}
| 31.810345
| 75
| 0.669377
|
e22516126faad7980966ce82d1f65f429081f7a4
| 5,593
|
py
|
Python
|
scripts/tile-add-gold-flags.py
|
sweverett/Balrog-GalSim
|
10373b6166f0507a59315908b4123bffef0a4370
|
[
"MIT"
] | 4
|
2019-05-23T21:26:33.000Z
|
2021-09-07T17:15:42.000Z
|
scripts/tile-add-gold-flags.py
|
sweverett/Balrog-GalSim
|
10373b6166f0507a59315908b4123bffef0a4370
|
[
"MIT"
] | 81
|
2017-08-31T19:15:12.000Z
|
2020-04-16T19:56:57.000Z
|
scripts/tile-add-gold-flags.py
|
sweverett/Balrog-GalSim
|
10373b6166f0507a59315908b4123bffef0a4370
|
[
"MIT"
] | 9
|
2017-08-30T14:46:16.000Z
|
2022-03-15T14:29:20.000Z
|
#!/usr/bin/env python
'''
tile-add-gold-flags.py
This script will append a FLAGS_GOLD column according to Y3 Gold definitions
Usage: python tile-add-gold-flags.py -d [merged_files_dir]
Author: Nacho Sevilla (nsevilla@gmail.com)
Further edited by Spencer Everett
'''
import sys
import numpy as np
import fitsio
import os
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument(
'merged_file',
type=str,
help='Merged & flattened gold-like catalog'
)
parser.add_argument(
'--mode',
type=str,
default='all',
choices=['all', 'mof', 'sof'],
help='Can choose to include only one of MOF and SOF in merging & flattening'
)
parser.add_argument(
'--vb',
action='store_true',
default=False,
help='Set to print out more information'
)
# Gold cols needed to create FLAGS_GOLD
flag_cols = ['MOF_FLAGS', 'SOF_FLAGS',
'FLAGS_G', 'FLAGS_R', 'FLAGS_I', 'FLAGS_Z',
'IMAFLAGS_ISO_G', 'IMAFLAGS_ISO_R', 'IMAFLAGS_ISO_I', 'IMAFLAGS_ISO_Z',
# This needs to be added once we know where to add these cols to the
# flatten & merge script (ask Nacho)
# Doesn't matter for now as we can't compute flag32 anyway
#'NEPOCHS_G', 'MAG_DETMODEL_I',
'MAG_AUTO_G', 'MAG_AUTO_R', 'MAG_AUTO_I', 'MAG_AUTO_Z',
'MAGERR_AUTO_G', 'MAGERR_AUTO_R', 'MAGERR_AUTO_I', 'MAGERR_AUTO_Z',
'SOF_CM_MAG_G', 'SOF_CM_MAG_R', 'SOF_CM_MAG_I', 'SOF_CM_MAG_Z']
def remove_cols(remove_mode):
for col in flag_cols:
if remove_mode in col:
flag_cols.remove(col)
return
def main():
args = parser.parse_args()
merged_file = args.merged_file
mode = args.mode
if not os.path.isfile(merged_file):
raise OSError('{} not found!'.format(merged_file))
# While this should usually be FLAGS_GOLD, we have some Balrog-specific processing
# where we will want to modify the name to be explicit to signify that the usual
# definition has been changed
if mode == 'all':
flag_gold_colname = 'FLAGS_GOLD'
elif mode == 'mof':
flag_gold_colname = 'FLAGS_GOLD_MOF_ONLY'
remove_cols('SOF')
elif mode == 'sof':
flag_gold_colname = 'FLAGS_GOLD_SOF_ONLY'
remove_cols('MOF')
skipflag = 0b0000000
skipflag |= 0b100000
print('Reading {}'.format(merged_file))
ext = 1
hdulist = fitsio.FITS(merged_file, mode='rw')
# tdata = hdulist[1].read()
tdata = fitsio.read(merged_file, columns=flag_cols, ext=1) # Less memory this way
# cols = hdulist[ext].get_colnames()
flag_gold = np.zeros(tdata.size, dtype=np.int32)
if mode != 'sof':
if (skipflag & 0b1) == False:
print 'Processing MOF_FLAGS: flag 1'
flag_gold[tdata['MOF_FLAGS'] != 0] += 1
else:
print('Can\'t process MOF_FLAGS: flag1 without MOF cols - skipping')
if mode != 'mof':
if (skipflag & 0b10) == False:
print 'Processing SOF_FLAGS: flag 2'
flag_gold[tdata['SOF_FLAGS'] != 0] += 2
if (skipflag & 0b100) == False:
print 'Processing SOF GAL_FIT_FAILURE: flag 4'
flag_gold[(tdata['SOF_FLAGS'] == 1) |
(tdata['SOF_FLAGS'] > 2)] += 4
else:
print('Can\'t process SOF_FLAGS: flag2, flag4 without SOF cols - skipping')
if (skipflag & 0b1000) == False:
print 'Processing SExtractor FLAGS: flag 8'
flag_gold[(tdata['FLAGS_G'] > 3) |
(tdata['FLAGS_R'] > 3) |
(tdata['FLAGS_I'] > 3) |
(tdata['FLAGS_Z'] > 3)] += 8
if (skipflag & 0b10000) == False:
print 'Processing IMAFLAGS: flag 16'
flag_gold[(tdata['IMAFLAGS_ISO_G'] != 0) |
(tdata['IMAFLAGS_ISO_R'] != 0) |
(tdata['IMAFLAGS_ISO_I'] != 0) |
(tdata['IMAFLAGS_ISO_Z'] != 0)] += 6
if (skipflag & 0b100000) == False:
print 'Processing BBJ: flag 32'
flag_gold[(tdata['NEPOCHS_G']==0) &
(tdata['MAGERR_AUTO_G'] < 0.05) &
((tdata['MAG_DETMODEL_I'] - tdata['MAG_AUTO_I']) < -0.4)] += 32
if mode != 'mof':
if (skipflag & 0b1000000) == False:
print 'Processing bright streak rejection: flag 64'
flag_gold[(((tdata['MAGERR_AUTO_G'] < 0.01) &
(tdata['MAG_AUTO_G'] - tdata['SOF_CM_MAG_G'] < -0.5)) |
((tdata['MAGERR_AUTO_R'] < 0.01) & (tdata['MAG_AUTO_R'] - tdata['SOF_CM_MAG_R'] < -0.5)) |
((tdata['MAGERR_AUTO_I'] < 0.01) & (tdata['MAG_AUTO_I'] - tdata['SOF_CM_MAG_I'] < -0.5)) |
((tdata['MAGERR_AUTO_Z'] < 0.01) & (tdata['MAG_AUTO_Z'] - tdata['SOF_CM_MAG_Z'] < -0.5))) &
((tdata['MAG_AUTO_G']-tdata['MAG_AUTO_R'] < -1) | (tdata['MAG_AUTO_G']-tdata['MAG_AUTO_R'] > 4) |
(tdata['MAG_AUTO_R']-tdata['MAG_AUTO_I'] < -1) | (tdata['MAG_AUTO_R']-tdata['MAG_AUTO_I'] > 4) |
(tdata['MAG_AUTO_I']-tdata['MAG_AUTO_Z']< -1) | (tdata['MAG_AUTO_I']-tdata['MAG_AUTO_Z'] > 4))] += 64
else:
print('Can\'t process bright streak rejection: flag64 without SOF cols - skipping')
print('Writing {}'.format(flag_gold_colname))
hdulist[ext].insert_column(flag_gold_colname, flag_gold)
return
if __name__ == '__main__':
sys.exit(main())
| 38.572414
| 126
| 0.574468
|
0fbf3b40c8acb9038dde2fa7ed12189d595e63b0
| 1,393
|
swift
|
Swift
|
wand/ViewControllers/Home/HomeViewController.swift
|
justnaa/wand
|
cb30f57698533b441367220aac5a34fa861bd191
|
[
"MIT"
] | null | null | null |
wand/ViewControllers/Home/HomeViewController.swift
|
justnaa/wand
|
cb30f57698533b441367220aac5a34fa861bd191
|
[
"MIT"
] | null | null | null |
wand/ViewControllers/Home/HomeViewController.swift
|
justnaa/wand
|
cb30f57698533b441367220aac5a34fa861bd191
|
[
"MIT"
] | null | null | null |
//
// HomeViewController.swift
// wand
//
// Created by Juliette on 5/9/21.
//
import Foundation
import UIKit
import WandKit
class HomeViewController : UITabBarController {
override func viewDidLoad () {
super.viewDidLoad()
let spellsViewController = SpellsViewController()
let spellRunnerViewController = SpellRunnerViewController()
let settingsViewController = SettingsViewController()
let spellTabBarItem = UITabBarItem()
let spellRunnerTabBarItem = UITabBarItem()
let settingsTabBarItem = UITabBarItem()
spellTabBarItem.title = "Spells"
spellRunnerTabBarItem.title = "Run spell"
settingsTabBarItem.title = "Settings"
spellTabBarItem.image = UIImage(systemName: "list.bullet")
spellRunnerTabBarItem.image = UIImage(systemName: "wand.and.stars")
settingsTabBarItem.image = UIImage(systemName: "gear")
spellsViewController.tabBarItem = spellTabBarItem
spellRunnerViewController.tabBarItem = spellRunnerTabBarItem
settingsViewController.tabBarItem = settingsTabBarItem
self.viewControllers = [spellsViewController, spellRunnerViewController, settingsViewController]
self.selectedViewController = spellsViewController
self.selectedIndex = 0
}
}
| 32.395349
| 104
| 0.681981
|
d7fb6256dc31c7374727ba3ab0bd696f7f4dbfe7
| 5,676
|
rb
|
Ruby
|
spec/helpers/service_helper_spec.rb
|
TransformCore/trade-tariff-duty-calculator
|
482ba5a8b03c5c0dee605cd4f1d8ba51ee403429
|
[
"MIT"
] | 1
|
2021-02-04T18:44:16.000Z
|
2021-02-04T18:44:16.000Z
|
spec/helpers/service_helper_spec.rb
|
TransformCore/trade-tariff-duty-calculator
|
482ba5a8b03c5c0dee605cd4f1d8ba51ee403429
|
[
"MIT"
] | 1
|
2021-02-22T13:04:14.000Z
|
2021-02-22T13:04:14.000Z
|
spec/helpers/service_helper_spec.rb
|
TransformCore/trade-tariff-duty-calculator
|
482ba5a8b03c5c0dee605cd4f1d8ba51ee403429
|
[
"MIT"
] | null | null | null |
RSpec.describe ServiceHelper, :user_session do
before do
allow(Rails.configuration).to receive(:trade_tariff_frontend_url).and_return(frontend_url)
allow(controller).to receive(:params).and_return(params)
end
let(:params) do
ActionController::Parameters.new(
referred_service: service,
).permit(:referred_service)
end
let(:service) { 'uk' }
let(:frontend_url) { 'https://dev.trade-tariff.service.gov.uk' }
let(:user_session) { build(:user_session) }
describe '#title' do
context 'when referred_service is xi' do
let(:service) { 'xi' }
it { expect(helper.title).to eq('Northern Ireland Online Tariff') }
end
context 'when referred_service is uk' do
let(:service) { 'uk' }
it { expect(helper.title).to eq('UK Integrated Online Tariff') }
end
end
describe '#header' do
context 'when referred_service is xi' do
let(:service) { 'xi' }
it { expect(helper.header).to eq('Northern Ireland Online Tariff') }
end
context 'when referred_service is uk' do
let(:service) { 'uk' }
it { expect(helper.header).to eq('UK Integrated Online Tariff') }
end
context 'when referred_service is not set at all' do
let(:service) { nil }
it { expect(helper.header).to eq('UK Integrated Online Tariff') }
end
end
describe '#trade_tariff_url' do
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
let(:frontend_url) { 'https://dev.trade-tariff.service.gov.uk' }
it 'returns the dev trade tariff url' do
expect(helper.trade_tariff_url).to eq(
'https://dev.trade-tariff.service.gov.uk/sections',
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the staging trade tariff url' do
expect(helper.trade_tariff_url).to eq('#')
end
end
context 'when service choice is XI' do
let(:service) { 'xi' }
it 'returns the dev trade tariff url for XI' do
expect(helper.trade_tariff_url).to eq(
'https://dev.trade-tariff.service.gov.uk/xi/sections',
)
end
end
end
describe '#a_to_z_url' do
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
let(:frontend_url) { 'https://dev.trade-tariff.service.gov.uk' }
it 'returns the dev trade tariff a to z url' do
expect(helper.a_to_z_url).to eq(
'https://dev.trade-tariff.service.gov.uk/a-z-index/a',
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff a to z url' do
expect(helper.a_to_z_url).to eq('#')
end
end
end
describe '#tools_url' do
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
it 'returns the dev trade tariff tools url' do
expect(helper.tools_url).to eq(
'https://dev.trade-tariff.service.gov.uk/tools',
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff tools url' do
expect(helper.tools_url).to eq('#')
end
end
end
describe '#help_url' do
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
it 'returns the dev trade tariff tools url' do
expect(helper.help_url).to eq(
'https://dev.trade-tariff.service.gov.uk/help',
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff tools url' do
expect(helper.help_url).to eq('#')
end
end
end
describe '#previous_service_url' do
let(:commodity_code) { '0702000007' }
let(:user_session) { build(:user_session) }
context 'when redirect_to is set' do
let(:user_session) { build(:user_session, redirect_to: 'https://example.com/chieg') }
it { expect(helper.previous_service_url(commodity_code)).to eq('https://example.com/chieg') }
end
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
it 'returns the dev trade tariff tools url' do
expect(helper.previous_service_url(commodity_code)).to eq(
"https://dev.trade-tariff.service.gov.uk/commodities/#{commodity_code}",
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff tools url' do
expect(helper.previous_service_url(commodity_code)).to eq('#')
end
end
end
describe '#commodity_url' do
let(:commodity_code) { '0702000007' }
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
it 'returns the dev trade tariff tools url' do
expect(helper.commodity_url(commodity_code)).to eq(
"https://dev.trade-tariff.service.gov.uk/commodities/#{commodity_code}",
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff tools url' do
expect(helper.commodity_url(commodity_code)).to eq('#')
end
end
end
describe '#feedback_url' do
context 'when TRADE_TARIFF_FRONTEND_URL is set' do
it 'returns the dev trade tariff tools url' do
expect(helper.feedback_url).to eq(
'https://dev.trade-tariff.service.gov.uk/feedback',
)
end
end
context 'when TRADE_TARIFF_FRONTEND_URL is not set' do
let(:frontend_url) { nil }
it 'returns the dev trade tariff tools url' do
expect(helper.feedback_url).to eq('#')
end
end
end
end
| 27.687805
| 99
| 0.643763
|
2360986be1f1565e5696d927becedbb35acd3fe8
| 3,082
|
css
|
CSS
|
styles/pages/Login.module.css
|
BrunoAngeloti/Avaliacao360
|
8980975cf93b89fa04eed4dcb647d148f8048398
|
[
"MIT"
] | 1
|
2022-02-16T10:06:34.000Z
|
2022-02-16T10:06:34.000Z
|
styles/pages/Login.module.css
|
BrunoAngeloti/Avaliacao360
|
8980975cf93b89fa04eed4dcb647d148f8048398
|
[
"MIT"
] | null | null | null |
styles/pages/Login.module.css
|
BrunoAngeloti/Avaliacao360
|
8980975cf93b89fa04eed4dcb647d148f8048398
|
[
"MIT"
] | null | null | null |
.container {
padding: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--White-Background);
}
.container img {
width: 60%;
}
.boxLog {
display:flex;
width: 40%;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.boxLog h3{
color: var(--Text);
font-family: 'Poppins', sans-serif;
margin-top: 25px;
margin-bottom: 40px;
font-size: 1.4rem;
}
.boxLog img{
width: 40%;
}
.boxLog button{
display: flex;
border: 0;
box-shadow: 2px 2px 5px rgba(0,0,0,0.25);
border-radius: 2px;
width: 60%;
height: 60px;
align-items: center;
justify-content: center;
margin: 20px 5px;
cursor: pointer;
color: var(--Text);
font-family: 'Poppins', sans-serif;
font-weight: 500;
font-size: 1rem;
transition: 0.4s;
}
.boxLog button:hover{
transform: translateY(-5px);
filter:brightness(85%);
}
.boxLog button img{
width: 32px;
margin-right: 20px;
}
.buttonLogin {
background-color: #FFF;
}
.perfil{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.header {
display: flex;
flex-direction: row;
margin-bottom: 40px;
justify-content: space-around;
width: 60%;
}
.titles{
margin-right: 30px;
}
.titles h1{
color: var(--Dark-blue);
font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: 2rem;
margin: 0;
}
.titles h2{
color: var(--Text);
font-family: 'Poppins', sans-serif;
font-weight: 500;
font-size: 1.5rem;
margin: 0;
}
.header img{
width: 80px;
height: 80px;
border-radius:50%;
}
@media (max-width: 1220px){
.titles h1{
font-size: 1.7rem;
}
.titles h2{
font-size: 1.2rem;
}
.header img{
width: 70px;
height: 70px;
border-radius:50%;
}
}
@media (max-width: 1140px){
.boxLog button{
font-size: 0.8rem;
}
.boxLog button img{
width: 28px;
}
}
@media (max-width: 1060px){
.titles h1{
font-size: 1.6rem;
}
.titles h2{
font-size: 1.1rem;
}
}
@media (max-width: 1024px){
.people {
display:none;
}
.boxLog img{
width: 40%;
}
.boxLog{
width:100%;
}
.boxLog button{
width: 60%;
font-size: 1rem;
}
.boxLog button img{
width: 32px;
}
.header img{
width: 70px;
height: 70px;
}
}
@media (max-width: 462px){
.boxLog button{
width: 70%;
font-size: 0.8rem;
}
.boxLog button img{
width: 26px;
}
.titles h1{
font-size: 1.4rem;
}
.titles h2{
font-size: 0.9rem;
}
.header img{
width: 60px;
height: 60px;
}
}
@media (max-width: 420px){
.header{
flex-direction: column;
align-items: center;
margin-bottom: 10px;
}
.titles{
width:100%;
margin-right: 0;
justify-content:center;
align-self: center;
}
.titles h1{
display: flex;
justify-content: center;
}
.titles h2{
display: flex;
justify-content: center;
}
.header img{
margin-top: 10px;
}
}
| 13.945701
| 44
| 0.595717
|
a34be6f2c60e5a827814915a7808d0fe0a88e500
| 250
|
java
|
Java
|
aula10/logica/ProgramaPrincipal.java
|
anachavesrs/desenvolvimento_de_software-java
|
e918669b23c7b5fa7fdb3460527cbf3e0d76c9a2
|
[
"MIT"
] | null | null | null |
aula10/logica/ProgramaPrincipal.java
|
anachavesrs/desenvolvimento_de_software-java
|
e918669b23c7b5fa7fdb3460527cbf3e0d76c9a2
|
[
"MIT"
] | null | null | null |
aula10/logica/ProgramaPrincipal.java
|
anachavesrs/desenvolvimento_de_software-java
|
e918669b23c7b5fa7fdb3460527cbf3e0d76c9a2
|
[
"MIT"
] | null | null | null |
package logica;
import grafica.FrmCalculadoraGeometrica;
public class ProgramaPrincipal{
public static void main(String[] args) {
FrmCalculadoraGeometrica frm = new FrmCalculadoraGeometrica();
frm.setVisible(true);
}
}
| 20.833333
| 70
| 0.716
|
df9bfbdfc60c285a0451b0436ddedc811fa6de57
| 1,324
|
cs
|
C#
|
src/ERPWeb.DAL/WorkSpace/LocationDAL.cs
|
jeffery1010/WXZL
|
ddfb6bd00ecac77a5bbcfd756aad8d00ad07cf07
|
[
"Apache-2.0"
] | null | null | null |
src/ERPWeb.DAL/WorkSpace/LocationDAL.cs
|
jeffery1010/WXZL
|
ddfb6bd00ecac77a5bbcfd756aad8d00ad07cf07
|
[
"Apache-2.0"
] | null | null | null |
src/ERPWeb.DAL/WorkSpace/LocationDAL.cs
|
jeffery1010/WXZL
|
ddfb6bd00ecac77a5bbcfd756aad8d00ad07cf07
|
[
"Apache-2.0"
] | null | null | null |
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ERPWeb.Entity.IMGX;
using ERPWeb.Util.Helper;
namespace ERPWeb.DAL.IMGX
{
public class LocationDAL
{
private LocationDAL() { }
public static List<Location> getRecord(Location record)
{
Dictionary<string, object> map = new Dictionary<string, object>();
map.Add("@id", record.id);
map.Add("@name", record.name);
map.Add("@features", record.features);
DataTable table = new DBHelper("IMGX").GetDataTable("zp_imgx_getlocation", map);
List<Location> list = DataHelper.ToDataList<Location>(table);
return list;
}
public static RBAC putRecord(Location record, string type)
{
Dictionary<string, object> map = new Dictionary<string, object>();
map.Add("@id", record.id);
map.Add("@name", record.name);
map.Add("@features", record.features);
map.Add("@type", type);
DataTable table = new DBHelper("IMGX").GetDataTable("zp_imgx_putlocation", map);
RBAC result = DataHelper.ToDataList<RBAC>(table).FirstOrDefault<RBAC>();
return result;
}
}
}
| 33.1
| 92
| 0.608761
|
872dfa79b9763d452f1f5ea2e839e402903f0f1d
| 16,417
|
sql
|
SQL
|
fma_csa poblacion test.sql
|
SrLezhuga/CentroServicio
|
262c6f85a0af9e3d18a300856638e34cefd4c9ed
|
[
"MIT"
] | null | null | null |
fma_csa poblacion test.sql
|
SrLezhuga/CentroServicio
|
262c6f85a0af9e3d18a300856638e34cefd4c9ed
|
[
"MIT"
] | null | null | null |
fma_csa poblacion test.sql
|
SrLezhuga/CentroServicio
|
262c6f85a0af9e3d18a300856638e34cefd4c9ed
|
[
"MIT"
] | null | null | null |
# Host: localhost (Version 5.5.5-10.4.14-MariaDB)
# Date: 2020-11-28 07:09:09
# Generator: MySQL-Front 6.0 (Build 2.20)
CREATE DATABASE fma_csa;
USE fma_csa;
#
# Structure for table "tab_cliente"
#
DROP TABLE IF EXISTS `tab_cliente`;
CREATE TABLE `tab_cliente` (
`id_cliente` int(11) NOT NULL AUTO_INCREMENT,
`nom_cliente` varchar(50) NOT NULL,
`dir_cliente` varchar(70) NOT NULL,
`mun_cliente` varchar(25) NOT NULL,
`cp_cliente` int(11) NOT NULL,
`tel_cliente` varchar(20) NOT NULL,
`rfc_cliente` varchar(15) NOT NULL,
`mail_cliente` varchar(50) NOT NULL,
PRIMARY KEY (`id_cliente`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_cliente"
#
INSERT INTO `tab_cliente` VALUES (1,'Brandon Lechuga','Pino #6','Tlaquepaque',45530,'3349682154','0123456789','Brihand.lech@gmail.com'),(2,'Juan Scutia','Hidalgo 2055','Tlaquepaque',45530,'3317202513','0123456789','cchenriquez2@yopmail.com'),(3,'Rafael Garcia','La paz 485','Tlaquepaque',45530,'3385967412','9867459865','embeltranz12@yopmail.com'),(4,'Pedro González','Revolucion 45','Tlaquepaque',45530,'3396849576','78965415245','ccsmaili2@yopmail.com'),(5,'Maria Luna','8 de Julio','Tlaquepaque',45530,'3395867485','976284615324','hjpaolo9@yopmail.com'),(6,'Luis Preciado','Guadalupe 35','Tlaquepaque',45530,'3384965874','9687452165','buromanf20@yopmail.com'),(7,'Omar Gallegos Vazquez','Fray antonio de segovia 1244','Tlaquepaque',45530,'3314278911','GAVO9112161VA','ddmurguia3@yopmail.com'),(8,'/*-+$·%&\"·ñÑ','%$·%&','Tlaquepaque',45305,'Sin Capturar','Sin Capturar','NuevoCorreo@Correo.com'),(9,'Ismael Belisario Barreu Aliques','Privada Bors No. 680','Veracruz',75598,'2423770117','41796707636','cpismaelbelisario15@yopmail.com Check Email\r\n\r\ncpi'),(10,'Magdalena Tina Bareas Corne','Avenida Franconetti No. 111','Tlaquepaque',45530,'4530928537','78965415245','idcornes3@yopmail.com'),(11,'Perla G. Fadli Edesa','Bulevar Khouya No. 572','Tlaquepaque',87765,'0304339385','37601093344','adedesa3@yopmail.com'),(12,'Sahul Asier Vila Cenusa','Privada Bouzian No. 125','Chihuahua',36035,'7370227506','34642272407','jksahulasier10@yopmail.com'),(13,'Alejandro Flavio Aberasturi Saña','Boulevard Lamolda No. 418','Sinaloa',24066,'4448566390','41026136456','gssana18@yopmail.com '),(14,'Merce Hodar Ruiz de Erenchun','Privada Varden No. 606','Nayarit',97414,'7478009080','42129090283','eyruizdeerenchun24@yopmail.com'),(15,'Liliana Lamuño Cango','De Roman No. 491','Nayarit',83808,'3202664255','37843346425','fdcango3@yopmail.com'),(16,'Tina Solano Viñaspre','Bulevar Pastaza No. 391','Tlaxcala',64290,'9494993737','41807739846','dvvinaspre21@yopmail.com'),(17,'Atila B. Lojan Mandingorra','Calle Tomasa No. 81','Michoacán',45530,'3317202513','32326004794','alatilab11@yopmail.com'),(18,'Remigio F. Santaya Aydillo','Privada Diedhiou No. 674','Quintana Roo',45357,'9497882522','41809228075','bsremigiof18@yopmail.com'),(19,'Dalmiro F. Rael Cioban','Avenida Ciriaco No. 536','Tlaxcala',67907,'4340224253','37874342201','fjcioban9@yopmail.com'),(20,'José Aaron Chávez Soto','Luis J. Jiménez 577','1o. de Mayo',44979,'3330300900','0123456789','aaron.chavez@utj.edu.mx');
#
# Structure for table "tab_herramienta"
#
DROP TABLE IF EXISTS `tab_herramienta`;
CREATE TABLE `tab_herramienta` (
`Id_herramienta` int(11) NOT NULL AUTO_INCREMENT,
`cod_herramienta` varchar(50) NOT NULL,
`desc_herramienta` varchar(100) NOT NULL,
`marca_herramienta` varchar(50) NOT NULL,
`status_herramienta` varchar(50) NOT NULL,
PRIMARY KEY (`Id_herramienta`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_herramienta"
#
INSERT INTO `tab_herramienta` VALUES (1,'EW3051H','Motobomba 60.000 L/h','MAKITA','DISPONIBLE'),(2,'EG6050A','Generador 6.0kVA','MAKITA','DISPONIBLE'),(3,'5008MG','Sierra circular 210 mm','MAKITA','DISPONIBLE'),(4,'EW3051H','Motobomba 60.000 L/h','MAKITA','EN PRESTAMO');
#
# Structure for table "tab_marca"
#
DROP TABLE IF EXISTS `tab_marca`;
CREATE TABLE `tab_marca` (
`marca_herramienta` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_marca"
#
INSERT INTO `tab_marca` VALUES ('DEWALT'),('BLACK AND DECKER'),('BOSCH '),('MAKITA'),('MILWAUKEE'),('STANLEY'),('URREA'),('TRUPER'),('NACOBRE'),('IUSA'),('PHILLIPS'),('AUSTROMEX'),('3M'),('KNOVA'),('EINHELL'),('FESTOOL'),('HILTI');
#
# Structure for table "tab_orden"
#
DROP TABLE IF EXISTS `tab_orden`;
CREATE TABLE `tab_orden` (
`id_orden` int(11) NOT NULL AUTO_INCREMENT,
`id_cliente` int(11) NOT NULL,
`code_user` int(11) NOT NULL,
`fech_entrada` date NOT NULL,
`fech_salida` date NOT NULL,
`status_orden` varchar(30) NOT NULL,
`img` varchar(30) NOT NULL DEFAULT 'CSA.webp',
`desc_herramienta` varchar(50) NOT NULL,
`marca_herramienta` varchar(50) NOT NULL,
`mod_herramienta` varchar(20) NOT NULL,
`tipo_herramienta` varchar(20) NOT NULL,
`tipo_servicio` varchar(25) NOT NULL,
`detalle_servicio` varchar(100) NOT NULL,
`tec_taller` varchar(30) NOT NULL,
`pago_orden` varchar(15) NOT NULL,
`iva_orden` varchar(15) NOT NULL,
PRIMARY KEY (`id_orden`) USING BTREE,
KEY `code_user` (`code_user`) USING BTREE,
KEY `id_cliente` (`id_cliente`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_orden"
#
INSERT INTO `tab_orden` VALUES (1,1,2,'2020-10-01','2020-10-28','ENTREGADA','CSA.webp','AMARRADORA DE VARILLA INALAMBRICA','MAKITA','DTR180Z','0','Presupuesto','NO PRENDE, SE VE EN BUEN ESTADO\r\nFALLO EN UN CABLE INTERNO\r\nESTA ES OTRA LINEA\r\nOTRA ADIOS LINEA','Administrador','EFECTIVO','Si'),(7,7,2,'2020-10-07','2020-11-14','ENTREGADA','CSA.webp','TALADRO PERCUTOR/ATORNILLADOR ','DEWALT','DCD778D2-B2','0','Presupuesto','NO PRENDE, SE VE EN BUEN ESTADO\r\nFALLO EN UN CABLE INTERNO\r\nTEST','Administrador','TARJETA','Si'),(8,2,2,'2020-10-07','0000-00-00','CANCELADA','CSA.webp','TALADRO INALAMBRICO 1/2\"','MAKITA','PH02X2','0','Garantia','Sin Observaciones','Emmanuel Luna','Sin Asignar','Sin Asignar'),(9,3,2,'2020-10-07','0000-00-00','CANCELADA','CSA.webp','---','GENERICA','---','0','Ninguno','Sin observaciones','Administrador','Sin Asignar','Sin Asignar'),(10,7,2,'2020-10-10','2020-11-22','ENTREGADA','CSA.webp','Gama plus','MAKITA','DCD778D2-B2','0','Mantenimiento','NO PRENDE, SE VE EN BUEN ESTADO\r\nFALLO EN UN CABLE INTERNO','Emmanuel Luna','EFECTIVO','Si'),(11,1,2,'2020-10-16','2020-11-05','ENTREGADA','CSA.webp','Test','GENERICA','Test','Tipo 1','Mantenimiento/Garantía','Se hicieron cosas','Administrador','EFECTIVO','Si'),(12,1,2,'2020-11-05','2020-11-16','ENTREGADA','CSA.webp','Test Herramienta','GENERICA','Test','Test','Test','Mantenimiento','Emmanuel Luna','EFECTIVO','Si'),(13,3,2,'2020-11-05','2020-11-15','ENTREGADA','CSA.webp','Test Herramienta','DEWALT','DCD778D2-B2','Test Adicional','Mantenimiento','Diagnostico','Administrador','EFECTIVO','Si'),(14,10,2,'2020-11-05','0000-00-00','EN TALLER','CSA.webp','Test Herramienta','STANLEY','Test Modelo','Test Adicional','Mantenimiento/Garantía','Test Diagnostico','Emmanuel Luna','Sin Asignar','Sin Asignar'),(15,1,1,'2020-11-11','0000-00-00','PxP','CSA.webp','asdasd','MILWAUKEE','asdasd','asdas','Presupuesto','asdasd','Emmanuel Luna','Sin Asignar','Sin Asignar'),(16,3,1,'2020-11-15','0000-00-00','EN ESPERA','CSA.webp','asdasd','GENERICA','asdasd','asdas','Presupuesto','Xd','Sin Asignar','Sin Asignar','Sin Asignar'),(17,1,5,'2020-11-16','0000-00-00','EN ESPERA','CSA.webp','asdasd','GENERICA','asdasd','asdas','Garantia','Test de serivicio','Emmanuel Luna','Sin Asignar','Sin Asignar'),(18,1,1,'2020-11-23','2020-11-23','ENTREGADA','CSA.webp','asdf','GENERICA','asd','asd','Mantenimiento','asdasdasd','Emmanuel Luna','EFECTIVO','Si'),(19,3,1,'2020-11-22','2020-11-22','ENTREGADA','CSA.webp','asdsadasd','BOSCH ','asdasdad','asdadadsd','Presupuesto','adasdasd','Administrador','EFECTIVO','Si'),(20,1,1,'2020-11-23','2020-11-23','ENTREGADA','CSA.webp','Rotomartillo','MAKITA','MD-354s','Tipo 1','Garantia','La herramienta funciona','Administrador','EFECTIVO','Si'),(21,20,1,'2020-11-23','2020-11-23','REPARADA','CSA.webp','Rotomartillo','MAKITA','MD-354s','Tipo 1','Garantia','No enciende','Administrador','Sin Asignar','Sin Asignar');
#
# Structure for table "tab_ordenrefaccion"
#
DROP TABLE IF EXISTS `tab_ordenrefaccion`;
CREATE TABLE `tab_ordenrefaccion` (
`id_orden` int(11) DEFAULT NULL,
`cod_refaccion` varchar(50) DEFAULT NULL,
`desc_refaccion` varchar(50) DEFAULT NULL,
`marca_refaccion` varchar(50) DEFAULT NULL,
`costo_refaccion` int(11) DEFAULT NULL,
KEY `id_orden` (`id_orden`) USING BTREE,
KEY `id_refaccion` (`cod_refaccion`) USING BTREE,
CONSTRAINT `tab_ordenrefaccion_ibfk_1` FOREIGN KEY (`id_orden`) REFERENCES `tab_orden` (`id_orden`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_ordenrefaccion"
#
INSERT INTO `tab_ordenrefaccion` VALUES (1,'181019-9','JUEGO DE CARBONES CB-1 P/903','MAKITA',120),(1,'0011806160','TORNILLO M6X30 P/RBC411','MAKITA',29),(1,'001-173-020 ','FILTRO DE AIRE INTERIOR P/DPC7000','MAKITA',24),(11,'0011705200','TORNILLO M5X20 P/RBC320','MAKITA',24),(11,'0011705200','TORNILLO M5X20 P/RBC320','MAKITA',24),(11,'001-131-150 ','VALVULA DE DESCOMPRESION','MAKITA',340),(7,'90552433-01','FILTRO PARA ASPIRADORA','BLACK & DECKER',85),(13,'90552433-01','FILTRO PARA ASPIRADORA','BLACK & DECKER',85),(12,'370009-00','VENTILADOR PARA ASPIRADORA','DEWALT',186),(18,'001-131-150 ','VALVULA DE DESCOMPRESION','MAKITA',340),(19,'370009-00','VENTILADOR PARA ASPIRADORA','DEWALT',186),(10,'001-173-020 ','FILTRO DE AIRE INTERIOR P/DPC7000','MAKITA',24),(20,'181019-9','JUEGO DE CARBONES CB-1 P/903','MAKITA',100),(21,'001-131-150 ','VALVULA DE DESCOMPRESION','MAKITA',340);
#
# Structure for table "tab_ordenservicio"
#
DROP TABLE IF EXISTS `tab_ordenservicio`;
CREATE TABLE `tab_ordenservicio` (
`id_servicio` int(11) NOT NULL AUTO_INCREMENT,
`id_orden` int(11) NOT NULL,
`cod_servicio` int(11) NOT NULL,
`desc_servicio` varchar(50) NOT NULL,
`costo_servicio` int(11) NOT NULL,
PRIMARY KEY (`id_servicio`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_ordenservicio"
#
INSERT INTO `tab_ordenservicio` VALUES (1,1,1,'REVISIÓN HERRRAMIENTA',50),(4,7,2,'MANO DE OBRA',300),(8,7,1,'REVISIÓN HERRRAMIENTA',50),(9,7,4,'EJEMPLO DE SERVICIO',1),(10,11,1,'REVISIÓN HERRRAMIENTA',50),(11,11,2,'MANO DE OBRA',300),(12,13,1,'REVISIÓN HERRRAMIENTA',50),(13,12,2,'MANO DE OBRA',300),(14,12,1,'REVISIÓN HERRRAMIENTA',50),(15,18,3,'LIMPIEZA HERRAMIENTA',60),(16,18,1,'REVISIÓN HERRRAMIENTA',50),(17,19,2,'MANO DE OBRA',300),(18,10,2,'MANO DE OBRA',300),(19,20,1,'REVISIÓN HERRRAMIENTA',50),(20,20,2,'MANO DE OBRA',300),(21,21,1,'REVISIÓN HERRRAMIENTA',50),(22,21,2,'MANO DE OBRA',300);
#
# Structure for table "tab_prestamo"
#
DROP TABLE IF EXISTS `tab_prestamo`;
CREATE TABLE `tab_prestamo` (
`id_prestamo` int(11) NOT NULL AUTO_INCREMENT,
`id_herramienta` int(11) NOT NULL DEFAULT 0,
`cod_herramienta` varchar(25) NOT NULL,
`desc_prestamo` varchar(50) NOT NULL,
`marca_prestamo` varchar(50) NOT NULL,
`id_cliente` int(11) NOT NULL DEFAULT 0,
`cliente_prestamo` varchar(50) NOT NULL DEFAULT '',
`fech_salida_prestamo` date NOT NULL,
`fech_entrada_prestamo` date NOT NULL,
`status_prestamo` varchar(15) NOT NULL,
PRIMARY KEY (`id_prestamo`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_prestamo"
#
INSERT INTO `tab_prestamo` VALUES (1,2,'EG6050A','Generador 6.0kVA','MAKITA',1,'Brandon Lechuga','2020-11-14','2020-11-15','CANCELADA'),(2,1,'EW3051H','Motobomba 60.000 L/h','MAKITA',2,'Juan Scutia','2020-11-14','2020-11-15','FINALIZADA'),(3,3,'5008MG','Sierra circular 210 mm','MAKITA',10,'Lorena Herrera','2020-11-14','2020-11-15','FINALIZADA'),(4,4,'EW3051H','Motobomba 60.000 L/h','MAKITA',7,'Omar Gallegos Vazquez','2020-11-15','0000-00-00','EN PRESTAMO');
#
# Structure for table "tab_refaccion"
#
DROP TABLE IF EXISTS `tab_refaccion`;
CREATE TABLE `tab_refaccion` (
`id_refaccion` int(11) NOT NULL AUTO_INCREMENT,
`cod_refaccion` varchar(50) NOT NULL,
`desc_refaccion` varchar(50) NOT NULL,
`marca_refaccion` varchar(50) NOT NULL,
`cant_refaccion` int(11) NOT NULL,
`costo_refaccion` int(11) NOT NULL,
PRIMARY KEY (`id_refaccion`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_refaccion"
#
INSERT INTO `tab_refaccion` VALUES (1,'181019-9','JUEGO DE CARBONES CB-1 P/903','MAKITA',0,100),(2,'001-131-150 ','VALVULA DE DESCOMPRESION','MAKITA',1,340),(3,'001-173-020 ','FILTRO DE AIRE INTERIOR P/DPC7000','MAKITA',1,25),(4,'001118062','TUERCA P/DCS6000I,DCS6800I','MAKITA',15,31),(5,'0011806160','TORNILLO M6X30 P/RBC411','MAKITA',5,29),(6,'0011705200','TORNILLO M5X20 P/RBC320','MAKITA',9,24),(7,'90552433-01','FILTRO PARA ASPIRADORA','BLACK & DECKER',0,85),(8,'370009-00','VENTILADOR PARA ASPIRADORA','DEWALT',0,186);
#
# Structure for table "tab_servicio"
#
DROP TABLE IF EXISTS `tab_servicio`;
CREATE TABLE `tab_servicio` (
`id_servicio` int(11) NOT NULL AUTO_INCREMENT,
`cod_servicio` int(11) NOT NULL,
`desc_servicio` varchar(30) NOT NULL,
`costo_servicio` int(11) NOT NULL,
PRIMARY KEY (`id_servicio`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_servicio"
#
INSERT INTO `tab_servicio` VALUES (1,1,'REVISIÓN HERRRAMIENTA',50),(2,2,'MANO DE OBRA',300),(3,3,'LIMPIEZA HERRAMIENTA',60),(4,4,'EJEMPLO DE SERVICIO',1);
#
# Structure for table "tab_users"
#
DROP TABLE IF EXISTS `tab_users`;
CREATE TABLE `tab_users` (
`code_user` int(11) NOT NULL AUTO_INCREMENT,
`name_user` varchar(50) NOT NULL,
`nick_user` varchar(50) NOT NULL,
`pass_user` varchar(50) NOT NULL,
`priv_user` int(1) NOT NULL,
`conf_user` varchar(15) NOT NULL,
`taller` int(11) NOT NULL,
PRIMARY KEY (`code_user`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
#
# Data for table "tab_users"
#
INSERT INTO `tab_users` VALUES (1,'Administrador','CSA','8cb2237d0679ca88db6464eac60da96345513964',1,'10',0),(2,'Armando Cruz','ARMCRU','3b3d55eebac28f87bf6d04adf85f9c9782fb7a2e',2,'1',0),(3,'Emmanuel Luna','EMMLUN','40bd001563085fc35165329ea1ff5c5ecbdbbeef',3,'7',14),(4,'Brandon Lechuga','BRALEC','40bd001563085fc35165329ea1ff5c5ecbdbbeef',1,'1',0),(5,'Pedro Loza','PEDLOZ','40bd001563085fc35165329ea1ff5c5ecbdbbeef',2,'1',0),(6,'Rafael Garcia','RAFGAR','40bd001563085fc35165329ea1ff5c5ecbdbbeef',3,'1',0),(7,'Ivanitza Ponce','IVAPON','3b3d55eebac28f87bf6d04adf85f9c9782fb7a2e',1,'2',0);
#
# Procedure "Refacciones"
#
DROP PROCEDURE IF EXISTS Refacciones;
CREATE PROCEDURE Refacciones(IN id INT)
BEGIN
SELECT R.cod_refaccion, R.desc_refaccion, R.marca_refaccion, R.costo_refaccion FROM tab_ordenrefaccion AS R
JOIN tab_orden AS O
ON R.id_orden = O.id_orden
WHERE O.id_orden = id;
END;
#
# Procedure "ReporteStado"
#
DROP PROCEDURE IF EXISTS ReporteStado;
CREATE PROCEDURE ReporteStado(IN list VARCHAR(15), fechIn VARCHAR(10), fechaOut VARCHAR(10))
BEGIN
SELECT O.id_orden, C.nom_cliente, O.tipo_servicio, O.desc_herramienta, O.fech_entrada, U.name_user, O.status_orden FROM tab_orden AS O
JOIN tab_cliente AS C
ON O.id_cliente = C.id_cliente
JOIN tab_users AS U
ON O.code_user = U.code_user
WHERE O.status_orden = list AND (O.fech_entrada BETWEEN fechIn AND fechaOut);
END;
#
# Procedure "ReporteTodos"
#
DROP PROCEDURE IF EXISTS ReporteTodos;
CREATE PROCEDURE ReporteTodos(IN fechIn VARCHAR(10), fechaOut VARCHAR(10))
BEGIN
SELECT O.id_orden, C.nom_cliente, O.tipo_servicio, O.desc_herramienta, O.fech_entrada, U.name_user, O.status_orden FROM tab_orden AS O
JOIN tab_cliente AS C
ON O.id_cliente = C.id_cliente
JOIN tab_users AS U
ON O.code_user = U.code_user
WHERE O.fech_entrada BETWEEN fechIn AND fechaOut;
END;
#
# Procedure "Servicios"
#
DROP PROCEDURE IF EXISTS Servicios;
CREATE PROCEDURE Servicios(IN id INT)
BEGIN
SELECT S.cod_servicio, S.desc_servicio, S.costo_servicio FROM tab_ordenservicio AS S
JOIN tab_orden AS O
ON S.id_orden = O.id_orden
WHERE O.id_orden = id;
END;
| 57.202091
| 2,921
| 0.725955
|
a10e1c002036608f604b6aca77a8d9bbf6d75fee
| 2,492
|
ts
|
TypeScript
|
src/tools/filesize/index.ts
|
Himenon/performance-report
|
765179338bc8a0fe30b6543876cebb0291894a91
|
[
"MIT"
] | null | null | null |
src/tools/filesize/index.ts
|
Himenon/performance-report
|
765179338bc8a0fe30b6543876cebb0291894a91
|
[
"MIT"
] | 9
|
2020-11-17T16:11:43.000Z
|
2020-12-15T07:26:49.000Z
|
src/tools/filesize/index.ts
|
Himenon/performance-report
|
765179338bc8a0fe30b6543876cebb0291894a91
|
[
"MIT"
] | null | null | null |
import * as fs from "fs";
import * as zlib from "zlib";
import * as Calculator from "../calculator";
import { decorateDiffText, decorateUnit } from "../decorator";
export interface Item {
/** File name */
name: string;
/** file path from repository root */
path: string;
/** file size (bytes)) */
sizeByte: number;
/** gzip file size (bytes)) */
gzipSizeByte: number;
}
export interface Group {
name: string;
version: string;
description?: string;
items: Item[];
}
export interface Comparison {
/** filename */
filename: string;
/** percentage */
fileSizeDiff: number;
/** percentage */
gzipFileSizeDiff: number;
prevFileSizeByte: number;
currentGzipFileSizeByte: number;
prevGzipSizeByte: number;
currentFileSizeByte: number;
}
/** 新旧の情報を比較した一次元のデータを提供する */
export const generateComparison = (previous: Item | undefined, current: Item): Comparison => {
return {
filename: current.name,
fileSizeDiff: Calculator.diff(previous && previous.sizeByte, current.sizeByte),
gzipFileSizeDiff: Calculator.diff(previous && previous.gzipSizeByte, current.gzipSizeByte),
prevFileSizeByte: previous ? previous.sizeByte : NaN,
currentFileSizeByte: current.sizeByte,
prevGzipSizeByte: previous ? previous.gzipSizeByte : NaN,
currentGzipFileSizeByte: current.gzipSizeByte,
};
};
export const bytesToKB = (byte: number): number => {
return byte / 1000;
};
export const markdownTableHeader: string[] = [
"**File**",
"**Current file size**",
"**Prev file size**",
"**File size Diff**",
"**Current gzip size**",
"**Prev gzip size**",
"**Gzip size Diff**",
];
export const markdownTableAlign: string[] = ["l", "r", "r", "r", "r", "r", "r"];
export const generateMarkdownRow = (c: Comparison): string[] => {
return [
c.filename,
decorateUnit(bytesToKB(c.currentFileSizeByte), "KB"),
decorateUnit(bytesToKB(c.prevFileSizeByte), "KB"),
decorateDiffText(c.fileSizeDiff, "%"),
decorateUnit(bytesToKB(c.currentGzipFileSizeByte), "KB"),
decorateUnit(bytesToKB(c.prevGzipSizeByte), "KB"),
decorateDiffText(c.gzipFileSizeDiff, "%"),
];
};
export interface Profile {
sizeByte: number;
gzipSizeByte: number;
}
export const generateProfile = (filename: string): Profile => {
const text = fs.readFileSync(filename);
const buffer = Buffer.from(text);
const gzip = zlib.gzipSync(buffer);
return {
sizeByte: fs.statSync(filename).size,
gzipSizeByte: gzip.byteLength,
};
};
| 27.086957
| 95
| 0.682183
|
254d83eeb1f9e694d1bc9a4480b59412366a477c
| 213
|
cs
|
C#
|
src/StartupIdentity.Core.Domain.Entities/UserToken.cs
|
isilveira/StartUpIdentity
|
576a7a835d6d3f25c54f6898f80d13e6cc2059bd
|
[
"MIT"
] | 1
|
2020-01-20T14:09:20.000Z
|
2020-01-20T14:09:20.000Z
|
src/StartupIdentity.Core.Domain.Entities/UserToken.cs
|
isilveira/startup-identity
|
576a7a835d6d3f25c54f6898f80d13e6cc2059bd
|
[
"MIT"
] | null | null | null |
src/StartupIdentity.Core.Domain.Entities/UserToken.cs
|
isilveira/startup-identity
|
576a7a835d6d3f25c54f6898f80d13e6cc2059bd
|
[
"MIT"
] | null | null | null |
using Microsoft.AspNetCore.Identity;
namespace StartupIdentity.Core.Domain.Entities
{
public class UserToken : IdentityUserToken<string>
{
public UserToken() : base()
{
}
}
}
| 17.75
| 54
| 0.638498
|
e1de6d0046baf2d4bd02dd351a1a9e8e0b7f16e4
| 434
|
rb
|
Ruby
|
app/workers/namespaces/onboarding_pipeline_created_worker.rb
|
samg/a-gl
|
dc46bfcc8c5ac83d878c3eb236619423faf9cd9d
|
[
"MIT"
] | null | null | null |
app/workers/namespaces/onboarding_pipeline_created_worker.rb
|
samg/a-gl
|
dc46bfcc8c5ac83d878c3eb236619423faf9cd9d
|
[
"MIT"
] | 21
|
2020-05-19T00:04:51.000Z
|
2022-03-30T22:05:57.000Z
|
app/workers/namespaces/onboarding_pipeline_created_worker.rb
|
rohitesh1/gitlab
|
4a797e9fc8f222853549151c50656de5bd999f53
|
[
"MIT"
] | 2
|
2020-11-04T05:27:00.000Z
|
2021-04-01T11:21:10.000Z
|
# frozen_string_literal: true
module Namespaces
class OnboardingPipelineCreatedWorker
include ApplicationWorker
feature_category :subgroups
urgency :low
deduplicate :until_executing
idempotent!
def perform(namespace_id)
namespace = Namespace.find_by_id(namespace_id)
return unless namespace
OnboardingProgressService.new(namespace).execute(action: :pipeline_created)
end
end
end
| 20.666667
| 81
| 0.760369
|
c94510303f3990e6c070ec907f203d6a5908790e
| 310
|
tsx
|
TypeScript
|
src/StructuredData.tsx
|
Shlizer/new-www
|
3ef44ec58862ac54a8dccc59a889c5cc7d5520b3
|
[
"MIT"
] | null | null | null |
src/StructuredData.tsx
|
Shlizer/new-www
|
3ef44ec58862ac54a8dccc59a889c5cc7d5520b3
|
[
"MIT"
] | null | null | null |
src/StructuredData.tsx
|
Shlizer/new-www
|
3ef44ec58862ac54a8dccc59a889c5cc7d5520b3
|
[
"MIT"
] | null | null | null |
import { Thing, WithContext } from 'schema-dts'
import React from 'react'
export const StructuredData: <T extends Thing>(props: WithContext<T>) => ReturnType<React.FC> = (props) => {
return <script type='application/ld+json'
dangerouslySetInnerHTML={{ __html: JSON.stringify(props) }} />
}
| 38.75
| 108
| 0.683871
|
0782b674f67dcee673888c475f9f9f9d292cb572
| 828
|
cpp
|
C++
|
Debouncer/Debouncer.cpp
|
apechinsky/arduino-libs
|
64a62695c7f77f72f7e54f3715071ba42056534c
|
[
"Apache-2.0"
] | 1
|
2016-12-02T16:49:13.000Z
|
2016-12-02T16:49:13.000Z
|
Debouncer/Debouncer.cpp
|
apechinsky/arduino-libs
|
64a62695c7f77f72f7e54f3715071ba42056534c
|
[
"Apache-2.0"
] | 1
|
2018-06-12T07:54:17.000Z
|
2018-06-12T07:54:17.000Z
|
Debouncer/Debouncer.cpp
|
apechinsky/arduino-libs
|
64a62695c7f77f72f7e54f3715071ba42056534c
|
[
"Apache-2.0"
] | null | null | null |
/*
Debouncer library
Copyright (c) 2016 Anton Pechinsky. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the Apache License v2.0.
See file LICENSE for further informations on licensing terms.
*/
#include "Arduino.h"
#include "Debouncer.h"
Debouncer::Debouncer(int bounceTime) {
this->bounceTime = bounceTime;
this->value = 0;
this->valueTimestamp = 0;
}
bool Debouncer::update(int newValue) {
bool valueChanged = newValue != value;
bool bounceCompleted = millis() - valueTimestamp > bounceTime;
if (valueChanged && bounceCompleted) {
value = newValue;
valueTimestamp = millis();
return true;
}
return false;
}
int Debouncer::get() {
return value;
}
| 22.378378
| 67
| 0.649758
|
d1c5c34407ebffb8be26187d1c26b1b2eacb4f7a
| 1,159
|
swift
|
Swift
|
TethysAppSpecs/Helpers/Fakes/FakeArticleUseCase.swift
|
younata/RSSClient
|
8a04936d0941973232e57cbb981e063d39258ced
|
[
"MIT"
] | 10
|
2015-05-15T07:04:18.000Z
|
2016-11-28T20:11:42.000Z
|
TethysAppSpecs/Helpers/Fakes/FakeArticleUseCase.swift
|
younata/RSSClient
|
8a04936d0941973232e57cbb981e063d39258ced
|
[
"MIT"
] | 17
|
2015-01-06T06:14:06.000Z
|
2016-11-06T22:46:28.000Z
|
TethysAppSpecs/Helpers/Fakes/FakeArticleUseCase.swift
|
younata/RSSClient
|
8a04936d0941973232e57cbb981e063d39258ced
|
[
"MIT"
] | 1
|
2015-06-23T13:23:13.000Z
|
2015-06-23T13:23:13.000Z
|
import TethysKit
import Tethys
import CBGPromise
import Result
final class FakeArticleUseCase: ArticleUseCase {
private(set) var readArticleCallCount : Int = 0
var readArticleStub : ((Article) -> (String))?
private var readArticleArgs : Array<(Article)> = []
func readArticleReturns(_ stubbedValues: (String)) {
self.readArticleStub = {(article: Article) -> (String) in
return stubbedValues
}
}
func readArticleArgsForCall(_ callIndex: Int) -> (Article) {
return self.readArticleArgs[callIndex]
}
func readArticle(_ article: Article) -> String {
self.readArticleCallCount += 1
self.readArticleArgs.append((article))
return self.readArticleStub!(article)
}
private(set) var toggleArticleReadCallCount : Int = 0
private var toggleArticleReadArgs : Array<(Article)> = []
func toggleArticleReadArgsForCall(_ callIndex: Int) -> (Article) {
return self.toggleArticleReadArgs[callIndex]
}
func toggleArticleRead(_ article: Article) {
self.toggleArticleReadCallCount += 1
self.toggleArticleReadArgs.append((article))
}
}
| 34.088235
| 70
| 0.683348
|
fd431e4ff9babd75b9dc8aedd8316703c26811c9
| 1,610
|
rs
|
Rust
|
src/sequence1.rs
|
muzudho/iterator-rust
|
718b67b95f609bc3ccf248e8cc02029fa5a58139
|
[
"MIT"
] | null | null | null |
src/sequence1.rs
|
muzudho/iterator-rust
|
718b67b95f609bc3ccf248e8cc02029fa5a58139
|
[
"MIT"
] | null | null | null |
src/sequence1.rs
|
muzudho/iterator-rust
|
718b67b95f609bc3ccf248e8cc02029fa5a58139
|
[
"MIT"
] | null | null | null |
use std::fmt;
/// イテレートできるもの。 Clone derive を外せない。
#[derive(Clone)]
pub struct Sequence1 {
/// String型は Unicodeなのでイテレートが案外難しい。 `Vec<char>` にしたのが工夫。
pub sequence: Vec<char>,
/// イテレートで使う配列のインデックスのようなもの。
/// しかし `&mut self` でないと イテレートできない(`iter_mut()相当`)よな。
pub curr: usize,
}
/// 普段よく見る `for item in &items {` イテレーションの下地となる、
/// 普段あまり表に出てこない `items.next()` を使ったイテレーションの実装です。
impl Iterator for Sequence1 {
// Self::Item ってこれ。
type Item = Box<char>;
// The return type is `Option<T>`:
// * When the `Iterator` is finished, `None` is returned.
// * Otherwise, the next value is wrapped in `Some` and returned.
fn next(&mut self) -> Option<Self::Item> {
if self.curr < self.sequence.len() {
println!(
"[Sequence1.next] curr={: >2} {}",
self.curr, self.sequence[self.curr]
);
// .clone() するよりは Box でラッピングした方がいいだろうか?
let item = Some(Box::new(self.sequence[self.curr]));
self.curr += 1;
return item;
}
return None;
}
}
/// デバッグ出力。
impl fmt::Debug for Sequence1 {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut buf = String::new();
// イテレートするたびに .clone() するのは重くないか?
let mut copy = self.clone();
loop {
// `copy.next()` ではなくて、 `self.next() {` と書けないの?
if let Some(chr) = copy.next() {
buf.push_str(&format!("{:?}", chr));
} else {
break;
}
}
write!(f, "{}", buf)
}
}
| 29.272727
| 73
| 0.520497
|
a9235797bfeb675788131118425403c959e429e0
| 46
|
sql
|
SQL
|
src/test/modules/test_csn/sql/test_csn.sql
|
qiuwenhuifx/PolarDB-for-PostgreSQL
|
398902a8ba8cc3a89dc581f3d681971e887e7ebd
|
[
"Apache-2.0"
] | 202
|
2021-10-13T09:21:34.000Z
|
2022-03-31T09:52:47.000Z
|
src/test/modules/test_csn/sql/test_csn.sql
|
qiuwenhuifx/PolarDB-for-PostgreSQL
|
398902a8ba8cc3a89dc581f3d681971e887e7ebd
|
[
"Apache-2.0"
] | 9
|
2021-11-01T09:10:56.000Z
|
2022-03-28T14:24:23.000Z
|
src/test/modules/test_csn/sql/test_csn.sql
|
qiuwenhuifx/PolarDB-for-PostgreSQL
|
398902a8ba8cc3a89dc581f3d681971e887e7ebd
|
[
"Apache-2.0"
] | 47
|
2021-10-21T07:15:26.000Z
|
2022-03-29T11:37:15.000Z
|
CREATE EXTENSION test_csn;
SELECT test_csn();
| 15.333333
| 26
| 0.804348
|
60090b560f2b8cca5751f60639df768d67be53f4
| 354
|
sql
|
SQL
|
BBScoreboard.Database/dbo/Tables/UCPlayer.sql
|
dsalunga/BBScoreboard
|
d71f171d20c5942495195cc4ee63aa647ea976bb
|
[
"MIT"
] | null | null | null |
BBScoreboard.Database/dbo/Tables/UCPlayer.sql
|
dsalunga/BBScoreboard
|
d71f171d20c5942495195cc4ee63aa647ea976bb
|
[
"MIT"
] | null | null | null |
BBScoreboard.Database/dbo/Tables/UCPlayer.sql
|
dsalunga/BBScoreboard
|
d71f171d20c5942495195cc4ee63aa647ea976bb
|
[
"MIT"
] | 1
|
2022-02-02T03:39:05.000Z
|
2022-02-02T03:39:05.000Z
|
CREATE TABLE [dbo].[UCPlayer] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[FirstName] NVARCHAR (500) NOT NULL,
[LastName] NVARCHAR (500) NOT NULL,
[PlayerNumber] INT NOT NULL,
[PositionId] INT NOT NULL,
[TeamId] INT NOT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
| 32.181818
| 59
| 0.50565
|
e3f4ae3b15620b9f27a83cfed326c8c84fee5bce
| 977
|
rb
|
Ruby
|
vendor/plugins/rails_sql_views/lib/rails_sql_views/connection_adapters/sqlserver_adapter.rb
|
NESCent/max-bodysize-evol
|
943385c4bf571888a4b3ab4d02e19669d427978a
|
[
"MIT"
] | null | null | null |
vendor/plugins/rails_sql_views/lib/rails_sql_views/connection_adapters/sqlserver_adapter.rb
|
NESCent/max-bodysize-evol
|
943385c4bf571888a4b3ab4d02e19669d427978a
|
[
"MIT"
] | null | null | null |
vendor/plugins/rails_sql_views/lib/rails_sql_views/connection_adapters/sqlserver_adapter.rb
|
NESCent/max-bodysize-evol
|
943385c4bf571888a4b3ab4d02e19669d427978a
|
[
"MIT"
] | 1
|
2019-03-05T12:53:59.000Z
|
2019-03-05T12:53:59.000Z
|
module ActiveRecord
module ConnectionAdapters
class SQLServerAdapter
# Returns true as this adapter supports views.
def supports_views?
true
end
# Returns all the view names from the currently connected schema.
def views(name = nil)
select_values("SELECT table_name FROM information_schema.views", name)
end
# Get the view select statement for the specified view.
def view_select_statement(view, name=nil)
q =<<-ENDSQL
SELECT view_definition FROM information_schema.views
WHERE table_name = '#{view}'
ENDSQL
view_def = select_value(q, name)
if view_def
return convert_statement(view_def)
else
raise "No view called #{view} found"
end
end
private
def convert_statement(s)
s.sub(/^CREATE.* AS (select .*)/i, '\1').gsub(/\n/, '')
end
end
end
end
| 27.138889
| 78
| 0.594678
|
0f5a5b9eab791bfa60c211944bb0ea4c00988ca6
| 2,140
|
css
|
CSS
|
src/main/web/css/mxjs.css
|
ghode/gwrbms
|
3f80af3f78c2ee01d2b55af076516f01e4262ea5
|
[
"Apache-2.0"
] | 1
|
2019-11-10T09:34:48.000Z
|
2019-11-10T09:34:48.000Z
|
src/main/web/css/mxjs.css
|
ghode/gwrbms
|
3f80af3f78c2ee01d2b55af076516f01e4262ea5
|
[
"Apache-2.0"
] | 2
|
2019-11-30T16:26:51.000Z
|
2019-12-14T13:26:07.000Z
|
src/main/web/css/mxjs.css
|
ghode/gwrbms
|
3f80af3f78c2ee01d2b55af076516f01e4262ea5
|
[
"Apache-2.0"
] | null | null | null |
/*
* Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute
* of Technology. Users are free to copy, change or remove. Because no one
* will read this. Only I know is that Repeaters are the best of the world.
* Only I know is that Repeaters are the best of the world. Only I know is
* that Repeaters are the best of the world. Maybe a long copyright text
* seems professional. Therefore this text will be a bit lengthy. However,
* the author seems to be afraid that one day, this text may be uploaded to
* business projects. That is the time you can contact with author via email
* ghode@cirnocraft.im or directly ignore this, which will be interesting.
*/
@charset "utf-8";
body {
font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
background: #252c35;
background-size: cover;
}
.mScroll {
overflow-y: scroll;
scrollbar-face-color: #888; /*滚动长条*/
scrollbar-shadow-color: #888; /*滚动长条 边框*/
scrollbar-highlight-color: #000; /*xxxxxxxxxxx*/
scrollbar-track-color: lightgrey; /*背景图*/
scrollbar-arrow-color: lightgrey; /*箭头*/
overflow: -moz-scrollbars-button(#000) !important;
}
/*IE用的滑轮*/
.mScroll::-webkit-scrollbar {
max-width: 10px;
height: 0
}
.mScroll::-webkit-scrollbar-button {
background-color: none
}
/*上下按钮*/
.mScroll::-webkit-scrollbar-track {
background: #ccc
}
/*背景颜色*/
.mScroll::-webkit-scrollbar-thumb {
background: #888;
}
/*滑动按钮*/
.mScroll::-webkit-scrollbar-corner {
background: #82AFFF;
}
/*上下的中点交接处*/
.mScroll::-webkit-scrollbar-resizer {
background: #FF0BEE;
}
/*谷歌苹果用的滑轮*/
/* ↑ overflow-Y专用______________________________________________________________________________________*/
.mxlength {
margin-top: 18px;
background: #23241F;
color: #fff;
padding: 0 25px;
border-bottom: 1px solid rgb(56, 56, 56);
padding-bottom: 25px;
}
.jsbg {
background: #23241F;
float: left;
margin-top: 35px;
width: 100%;
border-radius: 9px;
border: 4px dashed #516877;
}
.jsbg > div > pre {
max-height: 370px;
}
.mx-1 {
margin-left: 30px
}
| 22.765957
| 105
| 0.681308
|
a312d077856b3aabfd4398c6be432e858c774001
| 1,623
|
ts
|
TypeScript
|
server/src/resources/debug/debug_base.ts
|
eGust/visualgorithms
|
a78d759bff46e484a0d79c61a91115c48359f8c2
|
[
"MIT"
] | 1
|
2021-05-28T20:12:28.000Z
|
2021-05-28T20:12:28.000Z
|
server/src/resources/debug/debug_base.ts
|
eGust/visualgorithms
|
a78d759bff46e484a0d79c61a91115c48359f8c2
|
[
"MIT"
] | 19
|
2020-09-04T18:21:01.000Z
|
2022-03-08T22:47:53.000Z
|
server/src/resources/debug/debug_base.ts
|
eGust/visualgorithms
|
a78d759bff46e484a0d79c61a91115c48359f8c2
|
[
"MIT"
] | null | null | null |
import WebSocket from 'ws';
import { MethodMessage, ResponseMessage } from '../../types';
const defaultMessageHandler = (message: MethodMessage): void => {
console.info('defaultMessageHandler', message);
};
const defaultResponseHandler = (response: ResponseMessage): void => {
console.info('defaultResponseHandler', response);
};
export default class DebuggerBase {
public reset(): void {
this.messageHandler = defaultMessageHandler;
this.responseHandler = defaultResponseHandler;
this.resolveTask();
}
public get lastTask(): Promise<Record<string, unknown>> { return this.lastTaskPromise; }
protected constructor() {
this.send = this.send.bind(this);
this.lastTaskPromise = new Promise<Record<string, unknown>>((resolve) => {
this.taskResolver = resolve;
});
}
protected send(message: Record<string, unknown>): number {
if (message.id) {
this.connection.send(JSON.stringify(message));
return message.id as number;
}
const id = this.msgId + 1;
this.msgId = id;
this.connection.send(JSON.stringify({ ...message, id }));
return id;
}
protected messageHandler: (message: MethodMessage) => void;
protected responseHandler: (response: ResponseMessage) => void;
protected connection: WebSocket;
protected resolveTask(result: Record<string, unknown> = {}): void {
if (!this.taskResolver) return;
this.taskResolver(result);
this.taskResolver = null;
}
private taskResolver: (result: Record<string, unknown>) => void;
private lastTaskPromise: Promise<Record<string, unknown>>;
private msgId: number = 0;
}
| 27.982759
| 90
| 0.694393
|
a7b755977b3c15c08ed678f68b8195833d0c3bc8
| 1,068
|
css
|
CSS
|
client/src/app/components/tweet-form/tweet-form.component.css
|
arevi/utica-tweets
|
20496f5d17c4061f4dc50fc6d008fcc8b5e87cfd
|
[
"MIT"
] | null | null | null |
client/src/app/components/tweet-form/tweet-form.component.css
|
arevi/utica-tweets
|
20496f5d17c4061f4dc50fc6d008fcc8b5e87cfd
|
[
"MIT"
] | 1
|
2020-05-27T16:08:53.000Z
|
2020-05-27T16:19:24.000Z
|
client/src/app/components/tweet-form/tweet-form.component.css
|
arevi/utica-tweets
|
20496f5d17c4061f4dc50fc6d008fcc8b5e87cfd
|
[
"MIT"
] | null | null | null |
.container{
margin-top: 2em;
display: flex;
justify-content: center;
}
.tweet-form{
width: 50vw;
display: flex;
flex-flow: column;
align-items: center;
border: 1px solid #1DA1F2;
border-radius: 2px;
min-width: 350px;
max-width: 500px;
}
.tweet-prompt{
color: white;
width: 100%;
text-align: center;
background-color: #1DA1F2;
padding: 0.2em 0em;
}
label{
display: block;
}
.tweet-input{
display: block;
width: 80%;
border: 1px solid #1DA1F2;
resize: none;
margin: 1em 0;
border-radius: 0.2em;
outline: none;
height: 4em;
}
.tweet-input:hover{
border: 1px solid #1DA1F2;
}
.btn{
font-weight: bold;
border: 1px solid #1DA1F2;
color: #1DA1F2;
background-color: white;
font-size: 0.8em;
border-radius: 0.2em;
padding: 0.2em 0.5em;
margin: 0.5em 0;
outline: none;
}
.btn:hover:enabled{
background-color: #1DA1F2;
color: white;
cursor: pointer;
}
.btn:disabled{
border: 1px solid grey;
color: grey;
}
.btn:hover:disabled{
cursor: not-allowed;
}
.tweet-count{
font-size: 0.8em;
}
| 14.052632
| 28
| 0.64794
|
870257486e2cbbb24aed7b7485a08b2bc8fdf308
| 8,791
|
dart
|
Dart
|
flutter_map_example/lib/main.dart
|
HninNwayNwayHlaing/flutter_map
|
cde77a0791c4bbe268b3d8ceea678bbdd3c3bd2f
|
[
"BSD-2-Clause"
] | 1
|
2018-10-22T18:35:07.000Z
|
2018-10-22T18:35:07.000Z
|
flutter_map_example/lib/main.dart
|
HninNwayNwayHlaing/flutter_map
|
cde77a0791c4bbe268b3d8ceea678bbdd3c3bd2f
|
[
"BSD-2-Clause"
] | null | null | null |
flutter_map_example/lib/main.dart
|
HninNwayNwayHlaing/flutter_map
|
cde77a0791c4bbe268b3d8ceea678bbdd3c3bd2f
|
[
"BSD-2-Clause"
] | 1
|
2018-08-17T13:51:10.000Z
|
2018-08-17T13:51:10.000Z
|
import 'package:flutter/material.dart';
import 'package:latlong/latlong.dart';
import 'package:flutter_map/flutter_map.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Map Example',
theme: new ThemeData(
primarySwatch: mapBoxBlue,
),
home: new HomePage(),
routes: <String, WidgetBuilder>{
TapToAddPage.route: (context) => new TapToAddPage(),
EsriPage.route: (context) => new EsriPage(),
PolylinePage.route: (context) => new PolylinePage(),
},
);
}
}
class HomePage extends StatelessWidget {
static const String route = '/';
Widget build(BuildContext context) {
var markers = <Marker>[
new Marker(
width: 80.0,
height: 80.0,
point: new LatLng(51.5, -0.09),
builder: (ctx) => new Container(
child: new FlutterLogo(),
),
),
new Marker(
width: 80.0,
height: 80.0,
point: new LatLng(53.3498, -6.2603),
builder: (ctx) => new Container(
child: new FlutterLogo(
colors: Colors.green,
),
),
),
new Marker(
width: 80.0,
height: 80.0,
point: new LatLng(48.8566, 2.3522),
builder: (ctx) => new Container(
child: new FlutterLogo(colors: Colors.purple),
),
),
];
return new Scaffold(
appBar: new AppBar(title: new Text("Home")),
drawer: _buildDrawer(context, route),
body: new Padding(
padding: new EdgeInsets.all(8.0),
child: new Column(
children: [
new Padding(
padding: new EdgeInsets.only(top: 8.0, bottom: 8.0),
child: new Text("This is a map that is showing (51.5, -0.9)."),
),
new Flexible(
child: new FlutterMap(
options: new MapOptions(
center: new LatLng(51.5, -0.09),
zoom: 5.0,
),
layers: [
new TileLayerOptions(
urlTemplate:
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
subdomains: ['a', 'b', 'c']),
new MarkerLayerOptions(markers: markers)
],
),
),
],
),
),
);
}
}
class TapToAddPage extends StatefulWidget {
static const String route = '/tap';
State<StatefulWidget> createState() {
return new TapToAddPageState();
}
}
class TapToAddPageState extends State<TapToAddPage> {
List<LatLng> tappedPoints = [];
Widget build(BuildContext context) {
var markers = tappedPoints.map((latlng) {
return new Marker(
width: 80.0,
height: 80.0,
point: latlng,
builder: (ctx) => new Container(
child: new FlutterLogo(),
),
);
}).toList();
return new Scaffold(
appBar: new AppBar(title: new Text("Tap to add pins")),
drawer: _buildDrawer(context, TapToAddPage.route),
body: new Padding(
padding: new EdgeInsets.all(8.0),
child: new Column(
children: [
new Padding(
padding: new EdgeInsets.only(top: 8.0, bottom: 8.0),
child: new Text("Tap to add pins"),
),
new Flexible(
child: new FlutterMap(
options: new MapOptions(
center: new LatLng(45.5231, -122.6765),
zoom: 13.0,
onTap: _handleTap),
layers: [
new TileLayerOptions(
urlTemplate:
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
),
new MarkerLayerOptions(markers: markers)
],
),
),
],
),
),
);
}
void _handleTap(LatLng latlng) {
setState(() {
tappedPoints.add(latlng);
});
}
}
class EsriPage extends StatelessWidget {
static const String route = "esri";
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(title: new Text("Esri")),
drawer: _buildDrawer(context, TapToAddPage.route),
body: new Padding(
padding: new EdgeInsets.all(8.0),
child: new Column(
children: [
new Padding(
padding: new EdgeInsets.only(top: 8.0, bottom: 8.0),
child: new Text("Esri"),
),
new Flexible(
child: new FlutterMap(
options: new MapOptions(
center: new LatLng(45.5231, -122.6765),
zoom: 13.0,
),
layers: [
new TileLayerOptions(
urlTemplate:
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
),
],
),
),
],
),
),
);
}
}
class PolylinePage extends StatelessWidget {
static const String route = "polyline";
Widget build(BuildContext context) {
var points = <LatLng>[
new LatLng(51.5, -0.09),
new LatLng(53.3498, -6.2603),
new LatLng(48.8566, 2.3522),
];
return new Scaffold(
appBar: new AppBar(title: new Text("Polylines")),
drawer: _buildDrawer(context, TapToAddPage.route),
body: new Padding(
padding: new EdgeInsets.all(8.0),
child: new Column(
children: [
new Padding(
padding: new EdgeInsets.only(top: 8.0, bottom: 8.0),
child: new Text("Polylines"),
),
new Flexible(
child: new FlutterMap(
options: new MapOptions(
center: new LatLng(51.5, -0.09),
zoom: 5.0,
),
layers: [
new TileLayerOptions(
urlTemplate:
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
subdomains: ['a', 'b', 'c']),
new PolylineLayerOptions(
polylines: [
new Polyline(
points: points,
strokeWidth: 4.0,
color: Colors.purple
),
],
)
],
),
),
],
),
),
);
}
}
class AppDrawer extends StatelessWidget {
Widget build(BuildContext context) {
return new AppBar(
elevation: 0.0,
title: new Text("Examples"),
);
}
}
Drawer _buildDrawer(BuildContext context, String currentRoute) {
return new Drawer(
child: new ListView(
children: <Widget>[
const DrawerHeader(
child: const Center(
child: const Text("Flutter Map Examples"),
),
),
new ListTile(
title: const Text('OpenStreetMap'),
selected: currentRoute == HomePage.route,
onTap: () {
Navigator.popAndPushNamed(context, HomePage.route);
},
),
new ListTile(
title: const Text('Add Pins'),
selected: currentRoute == TapToAddPage.route,
onTap: () {
Navigator.popAndPushNamed(context, TapToAddPage.route);
},
),
new ListTile(
title: const Text('Esri'),
selected: currentRoute == EsriPage.route,
onTap: () {
Navigator.popAndPushNamed(context, EsriPage.route);
},
),
new ListTile(
title: const Text('Polylines'),
selected: currentRoute == EsriPage.route,
onTap: () {
Navigator.popAndPushNamed(context, PolylinePage.route);
},
),
],
),
);
}
// Generated using Material Design Palette/Theme Generator
// http://mcg.mbitson.com/
// https://github.com/mbitson/mcg
const int _bluePrimary = 0xFF395afa;
const MaterialColor mapBoxBlue = const MaterialColor(
_bluePrimary,
const <int, Color>{
50: const Color(0xFFE7EBFE),
100: const Color(0xFFC4CEFE),
200: const Color(0xFF9CADFD),
300: const Color(0xFF748CFC),
400: const Color(0xFF5773FB),
500: const Color(_bluePrimary),
600: const Color(0xFF3352F9),
700: const Color(0xFF2C48F9),
800: const Color(0xFF243FF8),
900: const Color(0xFF172EF6),
},
);
| 28.449838
| 123
| 0.502787
|
7445085b3b4204e94876c11bc5068884c2cad734
| 6,640
|
h
|
C
|
pkgs/apps/facesim/src/Public_Library/Geometry/TETRAHEDRALIZED_VOLUME.h
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 64
|
2015-03-06T00:30:56.000Z
|
2022-03-24T13:26:53.000Z
|
pkgs/apps/facesim/src/Public_Library/Geometry/TETRAHEDRALIZED_VOLUME.h
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 12
|
2020-12-15T08:30:19.000Z
|
2022-03-13T03:54:24.000Z
|
pkgs/apps/facesim/src/Public_Library/Geometry/TETRAHEDRALIZED_VOLUME.h
|
manggoguy/parsec-modified
|
d14edfb62795805c84a4280d67b50cca175b95af
|
[
"BSD-3-Clause"
] | 40
|
2015-02-26T15:31:16.000Z
|
2022-03-03T23:23:37.000Z
|
//#####################################################################
// Copyright 2002-2004, Ron Fedkiw, Eilene Hao, Geoffrey Irving, Neil Molino, Joseph Teran, Robert Bridson, Andrew Selle, Zhaosheng Bao.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
//#####################################################################
// Class TETRAHEDRALIZED_VOLUME
//#####################################################################
#ifndef __TETRAHEDRALIZED_VOLUME__
#define __TETRAHEDRALIZED_VOLUME__
#include <iostream>
#include "TETRAHEDRON.h"
#include "TRIANGULATED_SURFACE.h"
#include "IMPLICIT_SURFACE.h"
#include "../Collisions_And_Interactions/TETRAHEDRON_HIERARCHY.h"
#include "../Grids/TETRAHEDRON_MESH.h"
#include "../Particles/SOLIDS_PARTICLE.h"
#include "../Grids/GRID_3D.h"
namespace PhysBAM
{
template<class T>
class TETRAHEDRALIZED_VOLUME
{
public:
TETRAHEDRON_MESH& tetrahedron_mesh;
SOLIDS_PARTICLE<T, VECTOR_3D<T> >& particles;
LIST_ARRAY<TETRAHEDRON<T> >* tetrahedron_list;
BOX_3D<T>* bounding_box;
TRIANGULATED_SURFACE<T>* triangulated_surface;
TETRAHEDRON_HIERARCHY<T>* tetrahedron_hierarchy;
LIST_ARRAY<T>* tetrahedron_volumes;
LIST_ARRAY<T>* nodal_volumes;
T density;
TETRAHEDRALIZED_VOLUME (TETRAHEDRON_MESH& tetrahedron_mesh_input, SOLIDS_PARTICLE<T, VECTOR_3D<T> >& particles_input)
: tetrahedron_mesh (tetrahedron_mesh_input), particles (particles_input), tetrahedron_list (0), bounding_box (0),
triangulated_surface (0), tetrahedron_hierarchy (0), tetrahedron_volumes (0), nodal_volumes (0), density (0)
{
Set_Density();
}
virtual ~TETRAHEDRALIZED_VOLUME()
{
delete tetrahedron_list;
delete bounding_box;
delete triangulated_surface;
delete tetrahedron_hierarchy;
delete tetrahedron_volumes;
delete nodal_volumes;
}
static TETRAHEDRALIZED_VOLUME* Create()
{
return new TETRAHEDRALIZED_VOLUME (* (new TETRAHEDRON_MESH), * (new SOLIDS_PARTICLE<T, VECTOR_3D<T> >));
}
void Destroy_Data() // this is dangerous
{
delete &tetrahedron_mesh;
delete &particles;
}
void Clean_Up_Memory()
{
delete tetrahedron_list;
tetrahedron_list = 0;
delete bounding_box;
bounding_box = 0;
delete triangulated_surface;
triangulated_surface = 0;
delete tetrahedron_hierarchy;
tetrahedron_hierarchy = 0;
delete tetrahedron_volumes;
tetrahedron_volumes = 0;
delete nodal_volumes;
nodal_volumes = 0;
}
void Initialize_Tetrahedron_Hierarchy (const bool update_boxes = true) // creates and updates the boxes as well
{
delete tetrahedron_hierarchy;
if (tetrahedron_list) tetrahedron_hierarchy = new TETRAHEDRON_HIERARCHY<T> (tetrahedron_mesh, particles, *tetrahedron_list, update_boxes);
else tetrahedron_hierarchy = new TETRAHEDRON_HIERARCHY<T> (tetrahedron_mesh, particles, update_boxes);
}
void Set_Density (const T density_input = 1000) // default is water
{
density = density_input;
}
template<class RW>
void Read (std::istream& input_stream)
{
tetrahedron_mesh.template Read<RW> (input_stream);
particles.template Read_State<RW> (input_stream);
particles.X.template Read<RW> (input_stream);
}
template<class RW>
void Write (std::ostream& output_stream) const
{
tetrahedron_mesh.template Write<RW> (output_stream);
particles.template Write_State<RW> (output_stream);
particles.X.template Write<RW> (output_stream, particles.number);
}
void Compute_Nodal_And_Tetrahedron_Volumes()
{
Compute_Nodal_Volumes (true);
}
void Discard_Valence_Zero_Particles_And_Renumber()
{
ARRAY<int> condensation_mapping;
Discard_Valence_Zero_Particles_And_Renumber (condensation_mapping);
}
//#####################################################################
void Update_Tetrahedron_List(); // updates the tets assuming the particle positions are already updated
void Update_Bounding_Box();
void Initialize_Octahedron_Mesh_And_Particles (const GRID_3D<T> &grid);
void Initialize_Cube_Mesh_And_Particles (const GRID_3D<T> &grid);
void Check_Signed_Volumes_And_Make_Consistent (bool verbose = true);
void Discard_Valence_Zero_Particles_And_Renumber (ARRAY<int>& condensation_mapping);
void Initialize_Triangulated_Surface();
T Minimum_Volume (int* index = 0) const;
T Minimum_Signed_Volume (int* index = 0) const;
T Total_Volume() const;
T Minimum_Angle (int* index = 0) const;
T Maximum_Angle (int* index = 0) const;
T Minimum_Altitude (int* index = 0) const;
T Minimum_Edge_Length (int* index = 0) const;
T Maximum_Edge_Length (int* index = 0) const;
T Maximum_Aspect_Ratio (int* index = 0) const;
T Maximum_Interior_Aspect_Ratio (int* index = 0);
T Maximum_Boundary_Aspect_Ratio (int* index = 0);
T Average_Aspect_Ratio();
T Average_Interior_Aspect_Ratio();
T Average_Boundary_Aspect_Ratio();
T Minimum_Dihedral_Angle (int* index = 0) const;
T Maximum_Dihedral_Angle (int* index = 0) const;
T Maximum_Edge_Length (int* index = 0);
T Minimum_Edge_Length (int* index = 0);
void Advance_Interior_Laplacian_Smoothing();
VECTOR_3D<T> Centroid (const int tetrahedron) const;
void Rescale (const T scaling_factor);
void Rescale (const T scaling_x, const T scaling_y, const T scaling_z);
T Volume (const int tetrahedron) const;
T Signed_Volume (const int tetrahedron) const;
VECTOR_3D<T> Centroid_Of_Neighbors (const int node) const;
bool Completely_Inside_Box (const int tetrahedron, const BOX_3D<T>& box) const;
void Discard_Spikes_From_Adjacent_Tetrahedrons (LIST_ARRAY<int>* deletion_list = 0);
void Discard_Spikes (LIST_ARRAY<int>* deletion_list = 0);
void Interior_Edges_With_Boundary_Nodes (LIST_ARRAYS<int>* deletion_list);
void Inverted_Tetrahedrons (LIST_ARRAY<int>& inverted_tetrahedrons) const;
int Inside (const VECTOR_3D<T>& location, const T thickness_over_two = 0) const;
void Discard_Tetrahedrons_Outside_Implicit_Surface (IMPLICIT_SURFACE<T>& implicit_surface);
void Set_Mass_Of_Particles (const bool use_constant_mass = false);
void Increase_Mass_Of_Boundary_Particles (const T multiplicative_fraction = 1);
T Maximum_Magnitude_Phi_On_Boundary (const IMPLICIT_SURFACE<T>& implicit_surface, int* index = 0);
T Volume_Incident_On_A_Particle (const int particle_index);
void Split_Along_Fracture_Plane (const PLANE<T>& plane, LIST_ARRAY<int>& particle_replicated);
int Split_Node (const int particle_index, const VECTOR_3D<T>& normal);
int Split_Connected_Component (const int node);
void Compute_Tetrahedron_Volumes();
void Compute_Nodal_Volumes (bool save_tetrahedron_volumes = false);
//#####################################################################
};
}
#endif
| 38.381503
| 140
| 0.744428
|
23a6c0f59612460f91b157d114dbec4fcc1f7413
| 5,425
|
js
|
JavaScript
|
rich-mini/src/mixins/goods_detail.js
|
Ethereal-Coder/RichEC
|
347d12cbd854deb471bd372b8eb34225b6f81882
|
[
"MIT"
] | 1
|
2019-09-03T03:04:24.000Z
|
2019-09-03T03:04:24.000Z
|
rich-mini/src/mixins/goods_detail.js
|
Ethereal-Coder/RichEC
|
347d12cbd854deb471bd372b8eb34225b6f81882
|
[
"MIT"
] | 5
|
2021-05-10T09:32:00.000Z
|
2022-02-26T16:57:11.000Z
|
rich-mini/src/mixins/goods_detail.js
|
Ethereal-Coder/RichEC
|
347d12cbd854deb471bd372b8eb34225b6f81882
|
[
"MIT"
] | null | null | null |
import wepy from 'wepy'
import * as echarts from '@/components/ec-canvas/echarts';
import util from '@/utils/util.js'
export default class extends wepy.mixin {
data = {
goods_id: '',
vid: '',
goodsInfo: {},
ec: {
onInit: ''
},
showPriceHistory: false,
hpInfo: null,
option: null
}
onLoad(options) {
console.log(options);
this.goods_id = options.goods_id
this.vid = options.vid
this.initData()
}
methods = {
preview(current) {
wepy.previewImage({
urls: this.goodsInfo.slideImgs,
current: current
})
},
showPriceHistory() {
this.showPriceHistory = true
// if (this.hpInfo && this.option) {
// console.log(this.option);
// this.ecInit()
// this.showPriceHistory = true
// } else {
// this.gethp(() => {
// this.ecInit()
// this.showPriceHistory = true
// })
// }
},
jumpBuy() {
},
closePriceHistory() {
this.showPriceHistory = false
}
}
async gethp(cb) {
const { data: res } = await wepy.richGet('/home/goods_price_history', { goods_id: this.goods_id })
if (res.state !== 0) return wepy.richToast()
this.hpInfo = res.data
this.ecInit()
cb && cb()
}
ecInit() {
let date_list = []
let price_list = []
this.hpInfo.listPrice.forEach(dp => {
date_list.push(util.formatHpTime(new Date(dp.dt * 1)))
price_list.push(dp.pr * 1)
});
this.ec.onInit = (canvas, width, height) => {
const chart = echarts.init(canvas, null, {
// width: width,
// height: height
width: 300,
height: 300
});
canvas.setChart(chart);
const op = {
// title: {
// text: '测试下面legend的红色区域不应被裁剪',
// left: 'center'
// },
color: ["#da2f25"],
// legend: {
// data: ['A', 'B', 'C'],
// top: 50,
// left: 'center',
// backgroundColor: 'red',
// z: 100
// },
grid: {
top: 30,
bottom: 60,
left: 0,
right: 0,
containLabel: true
},
tooltip: {
show: true,
trigger: 'axis'
},
xAxis: {
type: 'category',
boundaryGap: false,
data: date_list,
// show: false
},
yAxis: {
scale: true,
x: 'center',
type: 'value',
splitLine: {
lineStyle: {
type: 'dashed'
}
}
// show: false
},
series: [{
name: 'price',
type: 'line',
smooth: true,
data: price_list
}]
}
chart.setOption(op);
return chart;
}
}
initOption() {
let date_list = []
let price_list = []
this.hpInfo.listPrice.forEach(dp => {
date_list.push(util.formatHpTime(new Date(dp.dt * 1)))
price_list.push(dp.pr * 1)
});
return {
// title: {
// text: '测试下面legend的红色区域不应被裁剪',
// left: 'center'
// },
color: ["#da2f25"],
// legend: {
// data: ['A', 'B', 'C'],
// top: 50,
// left: 'center',
// backgroundColor: 'red',
// z: 100
// },
grid: {
containLabel: true
},
tooltip: {
show: true,
trigger: 'axis'
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
// show: false
},
yAxis: {
x: 'center',
type: 'value',
splitLine: {
lineStyle: {
type: 'dashed'
}
}
// show: false
},
series: [{
name: 'price',
type: 'line',
smooth: true,
data: [18, 36, 65, 30, 78, 40, 33]
}]
}
}
initData() {
this.getDetailData()
this.gethp()
}
async getDetailData() {
const { data: res } = await wepy.richGet('/home/goods_detail', { goods_id: this.goods_id, vid: this.vid })
if (res.state !== 0) return wepy.richToast()
this.goodsInfo = res.data
this.$apply()
}
}
| 27.820513
| 114
| 0.359816
|
3f41782cec5d481570720084e1337efe3ab72276
| 1,367
|
php
|
PHP
|
resources/views/makePayment.blade.php
|
LooJiaChen0908/WebBasedSystem_Project
|
3dc2a939a6dbb3787ae358341da89fb02498cfee
|
[
"MIT"
] | null | null | null |
resources/views/makePayment.blade.php
|
LooJiaChen0908/WebBasedSystem_Project
|
3dc2a939a6dbb3787ae358341da89fb02498cfee
|
[
"MIT"
] | null | null | null |
resources/views/makePayment.blade.php
|
LooJiaChen0908/WebBasedSystem_Project
|
3dc2a939a6dbb3787ae358341da89fb02498cfee
|
[
"MIT"
] | null | null | null |
@extends('layout')
@section('content')
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<h2 class="text-center p-3">Make Payment</h2>
<form method="POST" , action="{{ route('addPayment') }}">
@CSRF
<div class="form-group">
<label for="IC Number">IC Number</label>
<select name="icNo" id="icNo" class="form-control">
@foreach($icNo as $patient)
<option value="{{$patient->icNo}}">{{$patient->icNo}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<label for="amount" class="form-label">Amount</label>
<input type="number" class="form-control" id="amount" name="amount" min="0">
</div>
<div class="form-group">
<label for="note" class="form-label">Note</label>
<input type="text" class="form-control" id="note" name="note">
</div>
<button type="submit" class="btn btn-primary mb-3" style="margin-left: 46%;">Submit</button>
</form>
</div>
<div class="col-sm-3"></div>
</div>
</div>
@endsection
| 42.71875
| 108
| 0.463058
|
3a27db4e4e2b6cdda7a5caaf432cbc55839ba426
| 1,583
|
lua
|
Lua
|
leinwand.lua
|
c3e/ShinyLongitude
|
028f925c2ec2c9ef8ca301c10f173b096cdf9b17
|
[
"BSD-2-Clause"
] | null | null | null |
leinwand.lua
|
c3e/ShinyLongitude
|
028f925c2ec2c9ef8ca301c10f173b096cdf9b17
|
[
"BSD-2-Clause"
] | 2
|
2017-01-30T20:09:36.000Z
|
2017-02-20T17:07:16.000Z
|
leinwand.lua
|
c3e/ShinyLongitude
|
028f925c2ec2c9ef8ca301c10f173b096cdf9b17
|
[
"BSD-2-Clause"
] | null | null | null |
oc_up = 7
oc_stop = 6
oc_down = 5
duration = 42*1000
gpio.mode(oc_up, gpio.OUTPUT)
gpio.write(oc_up, gpio.LOW)
gpio.mode(oc_stop, gpio.OUTPUT)
gpio.write(oc_stop, gpio.LOW)
gpio.mode(oc_down, gpio.OUTPUT)
gpio.write(oc_down, gpio.LOW)
-- Beamer Serial Codes
--* 0 IR 001 //on
--* 0 IR 002 //off
function lower_leinwand()
--start_light()
gpio.write(oc_up, gpio.LOW)
gpio.write(oc_down, gpio.HIGH)
--m:publish(mqtt_topic .. "status", "RAUF!", 0, 0) --breaks the light timer. dont use!
print(light_timer:start())
ll_timer = tmr.create()
ll_timer:register(500, tmr.ALARM_SINGLE, function (t) gpio.write(oc_down, gpio.LOW); t:unregister() end)
ll_timer:start()
hl_timer = tmr.create()
hl_timer:register(duration, tmr.ALARM_SINGLE, function (t) halt_leinwand(); t:unregister() end)
hl_timer:start()
end
function upper_leinwand()
--start_light()
gpio.write(oc_down, gpio.LOW)
gpio.write(oc_up, gpio.HIGH)
--m:publish(mqtt_topic .. "status", "RAUF!", 0, 0)
print(light_timer:start())
ul_timer = tmr.create()
ul_timer:register(500, tmr.ALARM_SINGLE, function (t) gpio.write(oc_up, gpio.LOW); t:unregister() end)
ul_timer:start()
hl_timer = tmr.create()
hl_timer:register(duration, tmr.ALARM_SINGLE, function (t) halt_leinwand(); t:unregister() end)
hl_timer:start()
end
function halt_leinwand()
stop_light()
gpio.write(oc_up, gpio.LOW)
gpio.write(oc_down, gpio.LOW)
gpio.write(oc_stop, gpio.HIGH)
halt_timer = tmr.create()
halt_timer:register(500, tmr.ALARM_SINGLE, function (t) gpio.write(oc_stop, gpio.LOW); t:unregister() end)
halt_timer:start()
end
| 26.830508
| 107
| 0.723942
|
596413a519f808b973c7998038b35fa9751582ba
| 2,904
|
kt
|
Kotlin
|
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/keydownload/ui/KeyFileDownloadAdapter.kt
|
grnet/exo-app-android
|
7549397240489c860470dd780ecb96aa73a6c4d4
|
[
"Apache-2.0"
] | 1
|
2021-01-12T19:11:08.000Z
|
2021-01-12T19:11:08.000Z
|
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/keydownload/ui/KeyFileDownloadAdapter.kt
|
grnet/exo-app-android
|
7549397240489c860470dd780ecb96aa73a6c4d4
|
[
"Apache-2.0"
] | null | null | null |
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/keydownload/ui/KeyFileDownloadAdapter.kt
|
grnet/exo-app-android
|
7549397240489c860470dd780ecb96aa73a6c4d4
|
[
"Apache-2.0"
] | null | null | null |
package de.rki.coronawarnapp.test.keydownload.ui
import android.text.format.Formatter
import android.view.ViewGroup
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.FragmentTestKeydownloadAdapterLineBinding
import de.rki.coronawarnapp.diagnosiskeys.storage.CachedKeyInfo
import de.rki.coronawarnapp.ui.lists.BaseAdapter
import de.rki.coronawarnapp.util.lists.BindableVH
import de.rki.coronawarnapp.util.lists.diffutil.AsyncDiffUtilAdapter
import de.rki.coronawarnapp.util.lists.diffutil.AsyncDiffer
import de.rki.coronawarnapp.util.ui.setGone
import org.joda.time.format.DateTimeFormat
class KeyFileDownloadAdapter(
private val deleteAction: (CachedKeyListItem) -> Unit
) : BaseAdapter<KeyFileDownloadAdapter.CachedKeyViewHolder>(), AsyncDiffUtilAdapter<CachedKeyListItem> {
init {
setHasStableIds(true)
}
override val asyncDiffer: AsyncDiffer<CachedKeyListItem> = AsyncDiffer(this)
override fun getItemCount(): Int = data.size
override fun getItemId(position: Int): Long = data[position].stableId
override fun onCreateBaseVH(parent: ViewGroup, viewType: Int): CachedKeyViewHolder = CachedKeyViewHolder(parent)
override fun onBindBaseVH(holder: CachedKeyViewHolder, position: Int) {
val item = data[position]
holder.itemView.setOnLongClickListener {
deleteAction(item)
true
}
holder.bind(item)
}
class CachedKeyViewHolder(
val parent: ViewGroup
) : BaseAdapter.VH(
R.layout.fragment_test_keydownload_adapter_line, parent
), BindableVH<CachedKeyListItem, FragmentTestKeydownloadAdapterLineBinding> {
override val viewBinding = lazy { FragmentTestKeydownloadAdapterLineBinding.bind(itemView) }
override val onBindData: FragmentTestKeydownloadAdapterLineBinding.(key: CachedKeyListItem) -> Unit = { item ->
locationInfo.text = item.info.location.identifier
val shortSize = Formatter.formatShortFileSize(context, item.fileSize)
typeInfo.text = when (item.info.type) {
CachedKeyInfo.Type.LOCATION_DAY -> "Day ($shortSize)"
CachedKeyInfo.Type.LOCATION_HOUR -> "Hour ($shortSize)"
}
timeInfo.text = when (item.info.type) {
CachedKeyInfo.Type.LOCATION_DAY -> "${item.info.day}"
CachedKeyInfo.Type.LOCATION_HOUR -> "${item.info.day} ${item.info.hour!!.hourOfDay}:00"
}
creationData.text = item.info.createdAt.toString(DOWNLOAD_TIME_FORMATTER)
creationLabel.setGone(!item.info.isDownloadComplete)
creationData.setGone(!item.info.isDownloadComplete)
progressIndicator.setGone(item.info.isDownloadComplete)
}
}
companion object {
private val DOWNLOAD_TIME_FORMATTER = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss.SSSS")
}
}
| 40.901408
| 119
| 0.720386
|
68a9a44ae0c9dc6989050672f30b21278403f721
| 2,348
|
rb
|
Ruby
|
spec/xpathquery/nokogiri_spec.rb
|
gioele/xpathquery
|
ba4b04ee3418d68695794d113630f49c103bbeee
|
[
"CC0-1.0"
] | 1
|
2017-09-20T02:05:49.000Z
|
2017-09-20T02:05:49.000Z
|
spec/xpathquery/nokogiri_spec.rb
|
gioele/xpathquery
|
ba4b04ee3418d68695794d113630f49c103bbeee
|
[
"CC0-1.0"
] | null | null | null |
spec/xpathquery/nokogiri_spec.rb
|
gioele/xpathquery
|
ba4b04ee3418d68695794d113630f49c103bbeee
|
[
"CC0-1.0"
] | null | null | null |
require 'spec_helpers'
require 'xpathquery/nokogiri'
describe XPathQuery::Nokogiri do
describe "#query" do
let(:nokogiri) { XPathQuery::Nokogiri.new(fixture_file(:library)) }
it "works for simple queries" do
results = nokogiri.query('//book')
results.should have(3).items
end
it "takes namespaces into account" do
ns = { 'foaf' => 'http://xmlns.com/foaf/0.1/' }
results = nokogiri.query('//patron/foaf:name', [], ns)
results.should have(2).items
results.map { |n| n.text }.should == ["Mel Petit", "Bertrand Müller"]
end
it "returns atomic values" do
results = nokogiri.query('string(//patron[1]/*)')
results.should have(1).item
results.first.should == "Mel Petit"
end
it "may return no results" do
results = nokogiri.query('//loan[not(@date)]')
results.should be_empty
end
it "raises an error when the there is a problem with the XML file" do
nokogiri = XPathQuery::Nokogiri.new(fixture_file(:non_existing))
expect { nokogiri.query('//*') }.to raise_error(/non_existing/)
end
it "accepts parameters" do
params = { :patron_id => 'p1' }
results = nokogiri.query('//patron[@xml:id="%{patron_id}"]', params)
results.should have(1).items
end
it "does not return more than max_results results" do
nokogiri = XPathQuery::Nokogiri.new(fixture_file(:library), :max_results => 2)
results = nokogiri.query('//book')
results.should have(2).items
end
end
describe "#direct_query" do
let(:nokogiri) { XPathQuery::Nokogiri.new(fixture_file(:library)) }
it "works for simple queries" do
results = nokogiri.direct_query('//book')
results.should have(3).items
end
it "takes namespaces into account" do
ns = { 'foaf' => 'http://xmlns.com/foaf/0.1/' }
results = nokogiri.direct_query('//patron/foaf:name', ns)
results.should have(2).items
results.map { |n| n.text }.should == ["Mel Petit", "Bertrand Müller"]
end
it "may return no results" do
results = nokogiri.direct_query('//loan[not(@date)]')
results.should be_empty
end
it "raises an error when the there is a problem with the XML file" do
nokogiri = XPathQuery::Nokogiri.new(fixture_file(:non_existing))
expect { nokogiri.direct_query('//*') }.to raise_error(/non_existing/)
end
end
end
# This is free software released into the public domain (CC0 license).
| 30.102564
| 81
| 0.682709
|
5531f603fa154eb47603c9f82d88e519c8ae8659
| 1,320
|
sql
|
SQL
|
KoerierService/src/main/resources/mykoeriers.sql
|
AlexisMartens/SystemDesignPostNL
|
73b80b7143d6f8911e5152b46e59d0a8313ed319
|
[
"MIT"
] | 1
|
2021-01-18T10:51:40.000Z
|
2021-01-18T10:51:40.000Z
|
KoerierService/src/main/resources/mykoeriers.sql
|
AlexisMartens/SystemDesignPostNL
|
73b80b7143d6f8911e5152b46e59d0a8313ed319
|
[
"MIT"
] | null | null | null |
KoerierService/src/main/resources/mykoeriers.sql
|
AlexisMartens/SystemDesignPostNL
|
73b80b7143d6f8911e5152b46e59d0a8313ed319
|
[
"MIT"
] | null | null | null |
INSERT INTO koerier_data_model(koerier_id, naam, postcode_ronde, vervoercapaciteit)
VALUES
('1','Jonny','9900','150'),
('2','James','9000','80'),
('3','Betty','9000','100'),
('4','Jamie','4000','90');
INSERT INTO order_data_model(order_id, koerier_id, naam_afzender, postcode_afzender, straat_afzender, plaats_afzender, land_afzender, naam_ontvanger, postcode_ontvanger, straat_ontvanger, plaats_ontvanger, land_ontvanger, aanmaak_datum , spoed, extern, order_status)
VALUES ('1' ,'1' ,'Jan klaasen' ,'9000' ,'griekstraat 5' ,'Gent' ,'Belgie' , 'Geert Klaasen' ,'9100' ,'klopperstraat 5','Sint-Niklaas' , 'Belgie' , TO_DATE('20/12/2020','DD/MM/YYYY'), FALSE, FALSE, 'OP_TE_HALEN'),
('2' ,'2' ,'Jan klaasen' ,'9000' ,'griekstraat 5' ,'Gent' ,'Belgie' , 'Geert Klaasen' ,'9100' ,'klopperstraat 5','Sint-Niklaas' , 'Belgie' , TO_DATE('20/12/2020','DD/MM/YYYY'), FALSE, TRUE, 'OP_TE_HALEN'),
('3' ,'2' ,'Jan klaasen' ,'9000' ,'griekstraat 5' ,'Gent' ,'Belgie' , 'Geert Klaasen' ,'9100' ,'klopperstraat 5','Sint-Niklaas' , 'Belgie' , TO_DATE('20/12/2020','DD/MM/YYYY'), FALSE, FALSE, 'OP_TE_HALEN');
| 66
| 287
| 0.569697
|
57f34c8185f53a74152a444f9de8456177289778
| 357
|
php
|
PHP
|
application/common/model/LiveCourseRecord.php
|
cyxsissie/blog
|
8002b734d9266a78cea2f25783339593d873c160
|
[
"Apache-2.0"
] | null | null | null |
application/common/model/LiveCourseRecord.php
|
cyxsissie/blog
|
8002b734d9266a78cea2f25783339593d873c160
|
[
"Apache-2.0"
] | null | null | null |
application/common/model/LiveCourseRecord.php
|
cyxsissie/blog
|
8002b734d9266a78cea2f25783339593d873c160
|
[
"Apache-2.0"
] | null | null | null |
<?php
namespace app\common\model;
class LiveCourseRecord extends BaseModel
{
public function user()
{
//一对一关联ea_live_user表 参数一表示关联的表名,参数二表示本表关联的字段名,参数三表示关联表的关联字段名
return $this->belongsTo("LiveUser", "user_id", "id");
}
public function course()
{
return $this->belongsTo("Course", "course_id", "id");
}
}
| 17.85
| 68
| 0.638655
|
a328122dbc86e32a74977940ad54ae02736e2a40
| 1,262
|
java
|
Java
|
message-service/src/main/java/com/github/mgramin/funny_microservices_sns/message_service/Message.java
|
mgramin/funny-microservices-sns
|
7371a88d0c3241d20e90ea33bebe2516a28512b7
|
[
"MIT"
] | null | null | null |
message-service/src/main/java/com/github/mgramin/funny_microservices_sns/message_service/Message.java
|
mgramin/funny-microservices-sns
|
7371a88d0c3241d20e90ea33bebe2516a28512b7
|
[
"MIT"
] | 10
|
2018-02-02T07:00:52.000Z
|
2018-03-04T20:39:42.000Z
|
message-service/src/main/java/com/github/mgramin/funny_microservices_sns/message_service/Message.java
|
mgramin/funny-microservices-sns
|
7371a88d0c3241d20e90ea33bebe2516a28512b7
|
[
"MIT"
] | null | null | null |
package com.github.mgramin.funny_microservices_sns.message_service;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.Column;
import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn;
import org.springframework.data.cassandra.core.mapping.Table;
import java.time.Instant;
import java.util.UUID;
@Table(value = "message")
@ToString @Getter @Data @NoArgsConstructor
public class Message {
@PrimaryKeyColumn(name = "from_account", type = PrimaryKeyType.PARTITIONED)
private UUID fromAccount;
@PrimaryKeyColumn(name = "to_account", type = PrimaryKeyType.PARTITIONED)
private UUID toAccount;
@PrimaryKeyColumn(name = "time", type = PrimaryKeyType.CLUSTERED, ordering = Ordering.ASCENDING)
private Instant time;
@Column("text")
private String text;
public Message(final UUID fromAccount, final UUID toAccount, final String text) {
this.fromAccount = fromAccount;
this.toAccount = toAccount;
this.text = text;
this.time = Instant.now();
}
}
| 31.55
| 100
| 0.76149
|
3877563783c16d241f5c6244705896ad4ba2e21d
| 1,132
|
php
|
PHP
|
app/Http/Controllers/UserController.php
|
TeamSolutionsSict/Solutions_backend
|
f3f5828e02e57d3276e69bb965295a728439c600
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/UserController.php
|
TeamSolutionsSict/Solutions_backend
|
f3f5828e02e57d3276e69bb965295a728439c600
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/UserController.php
|
TeamSolutionsSict/Solutions_backend
|
f3f5828e02e57d3276e69bb965295a728439c600
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class UserController extends Controller
{
public function getListUser(){
$user= User::selectRaw('tb_user.username,tb_user.phone, tb_user.id, tb_user.email, tb_user.avatar, tb_user.status, tb_user.level, count(tb_post.id) as num_post, count(tb_comment.id) as num_comment')
->leftjoin('tb_post','tb_user.username','tb_post.username')
->leftjoin('tb_comment','tb_comment.username','tb_user.username')
->groupBy('tb_user.username','tb_user.phone', 'tb_user.id', 'tb_user.email', 'tb_user.avatar', 'tb_user.status', 'tb_user.level')
->get()->toArray();
return view('admin.list_user', compact('user'));
}
public function getDisableUser($id){
$user = User::find($id)->first();
$user->status = 0;
$user->save();
return redirect()->back();
}
public function getActiveUser($id){
$user = User::find($id)->first();
$user->status = 1;
$user->save();
// dd($user);
return redirect()->back();
}
}
| 36.516129
| 209
| 0.612191
|
46d606485c86562f3b1889e101a8bba2a6c49954
| 1,050
|
py
|
Python
|
run/pair-filtering.py
|
ai-ku/uwsd
|
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
|
[
"MIT"
] | 3
|
2015-08-23T04:12:38.000Z
|
2022-02-05T23:30:06.000Z
|
run/pair-filtering.py
|
ai-ku/uwsd
|
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
|
[
"MIT"
] | null | null | null |
run/pair-filtering.py
|
ai-ku/uwsd
|
a74c5c8ebb668a2a1e6156a4b1570dfaa762e931
|
[
"MIT"
] | null | null | null |
#! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Osman Baskaya"
"""
This module is for filtering issues for scode input. on.all.gz file contains
all instaances in Ontonotes dataset. However, we'd like to use some subset of
it. For instance, we may use only the subset of instances where all instances
have at least 0.9 ITA agreement. Another subset may consist of only Wordnet
3.0 instances. For such circumstances, this module can be used.
INPUT:
- sys.stdin: the list that indicates which instances will be used as scode input.
- pairs directory
"""
import sys
from collections import defaultdict as dd
from nlp_utils import fopen
import os
pairs_d = sys.argv[1]
pairs = dd(set)
for line in sys.stdin:
tw, inst = line.split()
#print pair_f, "\t\t", inst
pairs[tw].add(inst)
sys.stderr.write("pairs dict is loaded.\n")
for tw, S in pairs.viewitems():
pair_f = "{}.pairs.gz".format(os.path.join(pairs_d, tw))
for line in fopen(pair_f):
inst = line.split()[0]
if inst in S:
print line,
| 26.923077
| 81
| 0.698095
|
966a6547ae2791cd533c5750cb7707b57616facd
| 2,503
|
ps1
|
PowerShell
|
Final dashboard/Pages/Home-Page.ps1
|
bahahmidi/ud-powershell
|
c53be25f0aa9d5d7d8cbc4bc27b393da2d4922d3
|
[
"MIT"
] | null | null | null |
Final dashboard/Pages/Home-Page.ps1
|
bahahmidi/ud-powershell
|
c53be25f0aa9d5d7d8cbc4bc27b393da2d4922d3
|
[
"MIT"
] | null | null | null |
Final dashboard/Pages/Home-Page.ps1
|
bahahmidi/ud-powershell
|
c53be25f0aa9d5d7d8cbc4bc27b393da2d4922d3
|
[
"MIT"
] | null | null | null |
# Parent Root Path
$ParentRootPath = Split-Path -path $PSScriptRoot -Parent
New-UDPage -name "Home" -DefaultHomePage -Content{
# Table
$Table = New-UDTable -Title "Domain information" -Headers @(" ", " ") -Endpoint {
$DomainInfo = Get-ADDomain
$ForestInfo = Get-ADForest
@{
'Domain mode' = $DomainInfo.DomainMode.ToString()
'Infrastructure Master' = $DomainInfo.InfrastructureMaster
'RID Master' = $DomainInfo.RIDMaster
'PDC Emulator' = $DomainInfo.PDCEmulator
'Domain Naming Master' = $ForestInfo.DomainNamingMaster
'Schema Master' = $ForestInfo.SchemaMaster
}.GetEnumerator() | Out-UDTableData -Property @("Name", "Value")
}
# Grid
$DCGrid = New-UDGrid -Title "Domain controllers" -Headers @("Name","IP","STATUS") -Properties @("name" ,"ip","online") -Endpoint {
# Collect results from script
$results = . "$ParentRootPath\Scripts\Get-DCStatus.ps1"
$results | Out-UDGridData
}
# OS pie chart
$OSPiechart = New-UDChart -Type Pie -Title "Active Directory Computer OS Piechart" -Endpoint {
# To collect the results
$results = {}.Invoke()
# Computer OS list
$OSList = get-content -path "$ParentRootPath\Scripts\ComputerOSList.txt"
# TODO
# Chart colors
$ChartColors = "#037bfc", "#e00202", "#6FFF37"
Class OSPieChartClass {
$Name
$Num
}
Foreach($OS in $OSList){
$computers = Get-ADComputer -Filter * -Properties OperatingSystem | Where-Object {$_.Operatingsystem -eq $OS}
$result = [OSPieChartClass]::new()
$result.Name = $OS
$result.Num = $computers.count
$results.Add($result)
}
$Results | Out-UDChartData -LabelProperty "Name" -DataProperty "Num" -BackgroundColor $ChartColors
}
# Welcome Card
$WelcomeCard = New-UDCard -Title "Welcome to the Active Directory Dashboard" -Content {
New-UDParagraph -Text "This Dashboard provides realtime data on the active directory domain!"
New-UDParagraph -Text "This also includes domain tools to reset user passwords and create computer accounts!"
}
New-UDLayout -Columns 1 -Content {
$WelcomeCard
}
New-UDLayout -Columns 2 -Content {
$Table
$DCGrid
$OSPiechart
}
}
| 36.808824
| 135
| 0.594487
|
2fd555999127be8ea1f80b52299a580a547988c9
| 9,714
|
py
|
Python
|
tests/interpret/juster/event_model.py
|
juster-finance/juster-core
|
c45ce1a9c6588e5518d3fdc8e2383e55f7aa1a61
|
[
"MIT"
] | 3
|
2021-11-23T22:08:35.000Z
|
2021-12-23T19:43:36.000Z
|
tests/interpret/juster/event_model.py
|
juster-finance/juster-core
|
c45ce1a9c6588e5518d3fdc8e2383e55f7aa1a61
|
[
"MIT"
] | null | null | null |
tests/interpret/juster/event_model.py
|
juster-finance/juster-core
|
c45ce1a9c6588e5518d3fdc8e2383e55f7aa1a61
|
[
"MIT"
] | null | null | null |
import json
def calc_liquidity_bonus_multiplier(
current_time, start_time, close_time):
""" Returns multiplier that applied to reduce bets """
return (current_time - start_time) / (close_time - start_time)
def calc_bet_return(top, bottom, amount, fee=0):
""" Calculates the amount that would be returned if participant wins
Not included the bet amount itself, only added value
"""
ratio = top / (bottom + amount)
return int(amount * ratio * (1-fee))
def select_event(ledger, event_id):
""" Selects only those records that are belongs to the
event_id, key is tuple: (participant_address, event_id) """
return {
key[0]: value for key, value in ledger.items()
if key[1] == event_id
}
def select_event_ledgers(storage, event_id):
""" Returns ledgers for given event_id from contract storage """
ledger_names = [
'betsAboveEq',
'betsBelow',
'providedLiquidityAboveEq',
'providedLiquidityBelow',
'liquidityShares',
'depositedBets'
]
return {
ledger_name: select_event(storage[ledger_name], event_id)
for ledger_name in ledger_names
}
def rename_ledgers(ledgers, winning_pool):
""" Renames ledgers based on the given outcome """
if winning_pool == 'aboveEq':
ledgers['winLedger'] = ledgers.pop('betsAboveEq')
ledgers['splitLedger'] = ledgers.pop('providedLiquidityBelow')
elif winning_pool == 'below':
ledgers['winLedger'] = ledgers.pop('betsBelow')
ledgers['splitLedger'] = ledgers.pop('providedLiquidityAboveEq')
else:
raise Exception('wrong winning pool')
return ledgers
def calculate_diff(user, ledgers, split_pool):
""" Calculate profit/loss for given user and ledgers """
win_amount = ledgers['winLedger'].get(user, 0)
deposited_bets = ledgers['depositedBets'].get(user, 0)
split_liquidity = ledgers['splitLedger'].get(user, 0)
share = ledgers['liquidityShares'].get(user, 0)
total_shares = sum(ledgers['liquidityShares'].values())
bets_diff = win_amount - deposited_bets
split_share = (0 if total_shares == 0 else
split_pool * share / total_shares)
liquidity_diff = split_share - split_liquidity
return int(bets_diff + liquidity_diff)
def filter_non_zero(dct):
return {k: v for k, v in dct.items() if v != 0}
def calculate_diffs(ledgers, split_pool):
""" Calculates profit/loss for all participants
- ledgers: all event ledgers with win/split names
- split_pool: the loosed pool amount in event
"""
participants = set(
participant for ledger in ledgers.values()
for participant in ledger)
diffs = {
user: calculate_diff(user, ledgers, split_pool)
for user in participants
}
return diffs
class EventModel:
share_precision = 100_000_000
def __init__(self, fee=0, winning_pool='aboveEq', pool_a=0, pool_b=0,
total_shares=0, shares=None, diffs=None):
assert pool_a >= 0
assert pool_b >= 0
assert total_shares >= 0
self.pool_a = pool_a
self.pool_b = pool_b
self.total_shares = total_shares
self.fee = fee
self.winning_pool = winning_pool
self.diffs = (diffs or {}).copy()
self.shares = (shares or {}).copy()
assert all(v > 0 for v in self.shares.values())
def calc_provided_shares(self, amount, pool_a=0, pool_b=0):
""" Calculates amount of shares that will receive provider if he adds
amount with current pools ratio (or given pool_a and pool_b if current
this is first liquidity provided)
"""
assert amount >= 0
# NOTE: here I do not perform checking that provided ratio is valid
# NOTE: provided a & b only make sense if there are empty pools
pool_a = self.pool_a if self.pool_a > 0 else pool_a
pool_b = self.pool_b if self.pool_b > 0 else pool_b
assert pool_a > 0
assert pool_b > 0
max_pool = max(pool_a, pool_b)
shares = int(self.total_shares * amount / max_pool)
shares = shares if self.total_shares > 0 else self.share_precision
provided_a = int(amount * pool_a / max_pool)
provided_b = int(amount * pool_b / max_pool)
return provided_a, provided_b, shares
def provide_liquidity(self, user, amount, pool_a=0, pool_b=0):
provided_a, provided_b, shares = self.calc_provided_shares(amount, pool_a, pool_b)
self.shares[user] = self.shares.get(user, 0) + shares
self.pool_a += provided_a
self.pool_b += provided_b
self.total_shares += shares
return self
def calc_bet_profit(self, amount, pool, time):
""" Calculates bet profit for a given amount placed in a given pool
at a given time with current event pools """
multiplier = calc_liquidity_bonus_multiplier(time, 0, 1)
is_above = pool == 'aboveEq'
top = self.pool_b if is_above else self.pool_a
bottom = self.pool_a if is_above else self.pool_b
bet_profit = calc_bet_return(top, bottom, amount, self.fee*multiplier)
return bet_profit
def bet(self, user, amount, pool, time):
""" Changes event state adding bet from user to the given pool using
time param to calculate fees
- user: user identificator (string for example)
- amount: bet value
- pool: either aboveEq or below pool
- time: value between 0 and 1 when bet was placed where
0 is event started and 1 is bet close time
"""
assert amount >= 0
bet_profit = self.calc_bet_profit(amount, pool, time)
is_above = pool == 'aboveEq'
self.pool_a += amount if is_above else -bet_profit
self.pool_b += -bet_profit if is_above else amount
if pool == self.winning_pool:
self.diffs[user] = self.diffs.get(user, 0) + bet_profit
self.distribute_between_providers(-bet_profit)
else:
self.diffs[user] = self.diffs.get(user, 0) - amount
self.distribute_between_providers(amount)
# TODO: save event diffs history?
return self
def distribute_between_providers(self, amount):
""" distributes profit/loss between liquidity providers """
for provider, shares in self.shares.items():
fraction = self.shares.get(provider, 0) / self.total_shares
self.diffs[provider] = self.diffs.get(provider, 0) + int(fraction*amount)
def to_dict(self):
""" Returns all storage values in dict form """
return dict(
pool_a=self.pool_a,
pool_b=self.pool_b,
total_shares=self.total_shares,
fee=self.fee,
winning_pool=self.winning_pool,
diffs=self.diffs,
shares=self.shares
)
def __repr__(self):
""" This can lead to some problems if keys of the shares/diffs is not
serializable, but otherwise it works fine """
return (f'<Event>\n{json.dumps(self.to_dict(), indent=4)}')
def copy(self):
""" Returns copy of the same event """
return EventModel(
fee=self.fee,
winning_pool=self.winning_pool,
pool_a=self.pool_a,
pool_b=self.pool_b,
total_shares=self.total_shares,
shares=self.shares.copy(),
diffs=self.diffs.copy()
)
# There are different ways to measure ratio / expected return:
# - pool_X_expected is normalized value of the X pool share
# - pool_X_ratio is the X pool divided by the opposite pool
# - there are also pool_X_return: it is pool_X_ratio + 1 and this is
# return of the bet if X pool wins
def pool_a_expected(self):
""" Returns normalized pool_a expectance """
return self.pool_a / (self.pool_a + self.pool_b)
def pool_b_expected(self):
""" Returns normalized pool_a expectance """
return self.pool_b / (self.pool_a + self.pool_b)
def pool_a_ratio(self):
""" Returns the ratio for pool_a """
return self.pool_a / self.pool_b
def pool_b_ratio(self):
""" Returns the ratio for pool_b """
return self.pool_b / self.pool_a
@classmethod
def from_storage(cls, storage, event_id, winning_pool):
""" Creates exemplar of this class using contract storage data """
event = storage['events'][event_id]
fee_nat = event['liquidityPercent']
fee = fee_nat / storage['liquidityPrecision']
ledgers = select_event_ledgers(storage, event_id)
ledgers = rename_ledgers(ledgers, winning_pool)
split_pool = (event['poolBelow']
if winning_pool == 'aboveEq' else event['poolAboveEq'])
return EventModel(
fee=fee,
winning_pool=winning_pool,
pool_a=event['poolAboveEq'],
pool_b=event['poolBelow'],
total_shares=event['totalLiquidityShares'],
shares=ledgers['liquidityShares'],
diffs=calculate_diffs(ledgers, split_pool)
)
def __eq__(self, other):
return all([
self.pool_a == other.pool_a,
self.pool_b == other.pool_b,
self.total_shares == other.total_shares,
self.fee == other.fee,
self.winning_pool == other.winning_pool,
filter_non_zero(self.shares) == filter_non_zero(other.shares),
filter_non_zero(self.diffs) == filter_non_zero(other.diffs)
])
| 31.035144
| 90
| 0.62971
|
4594d5e9c6171b900540cc9f0d141171ef10e9d4
| 23,620
|
py
|
Python
|
tupan/lib/extensions.py
|
ggf84/tupan
|
67d3aa103d77248a04e8f112930ba7bdb55024b2
|
[
"MIT"
] | 1
|
2016-06-12T19:43:51.000Z
|
2016-06-12T19:43:51.000Z
|
tupan/lib/extensions.py
|
ggf84/tupan
|
67d3aa103d77248a04e8f112930ba7bdb55024b2
|
[
"MIT"
] | 1
|
2021-09-24T13:28:57.000Z
|
2021-09-24T13:28:57.000Z
|
tupan/lib/extensions.py
|
ggf84/tupan
|
67d3aa103d77248a04e8f112930ba7bdb55024b2
|
[
"MIT"
] | 3
|
2015-11-03T15:35:31.000Z
|
2021-03-02T17:41:27.000Z
|
# -*- coding: utf-8 -*-
#
"""This module implements highlevel interfaces for C/CL-extensions.
"""
from __future__ import print_function, division
import sys
import logging
from .utils import ctype
from .utils.timing import decallmethods, timings
__all__ = ["Phi", "phi",
"Acc", "acc",
"AccJerk", "acc_jerk",
"SnapCrackle", "snap_crackle",
"Tstep", "tstep",
"PNAcc", "pnacc",
"Sakura", "sakura",
"NREG_X", "nreg_x",
"NREG_V", "nreg_v",
]
logger = logging.getLogger(__name__)
@decallmethods(timings)
class Clight(object):
"""This class holds the values of the PN-order, the speed of light and
some of its inverse powers.
"""
def __init__(self):
self._pn_order = 0
self._clight = None
@property
def pn_order(self):
return self._pn_order
@pn_order.setter
def pn_order(self, value):
self._pn_order = int(value)
@property
def clight(self):
return self._clight
@clight.setter
def clight(self, value):
self._clight = float(value)
self.inv1 = 1.0/self._clight
self.inv2 = self.inv1**2
self.inv3 = self.inv1**3
self.inv4 = self.inv1**4
self.inv5 = self.inv1**5
self.inv6 = self.inv1**6
self.inv7 = self.inv1**7
@timings
def get_kernel(name, backend, prec):
if backend == "C":
from .cffi_backend import CKernel as Kernel
elif backend == "CL":
from .opencl_backend import CLKernel as Kernel
else:
msg = "Inappropriate 'backend': {}. Supported values: ['C', 'CL']"
raise ValueError(msg.format(backend))
logger.debug(
"Using '%s' from %s precision %s extension module.",
name, prec, backend
)
return Kernel(prec, name)
@timings
def prepare_args(args, argtypes):
return [argtype(arg) for (arg, argtype) in zip(args, argtypes)]
class AbstractExtension(object):
def set_args(self, ips, jps, *args):
raise NotImplemented
def run(self):
self.kernel.run()
def get_result(self):
return self.kernel.map_buffers(self._outargs, self.outargs)
def calc(self, ips, jps, *args):
self.set_args(ips, jps, *args)
self.run()
return self.get_result()
@decallmethods(timings)
class Phi(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("phi_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p)
restypes = (cty.c_real_p,)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "phi" in ips.__dict__:
ips.register_auxiliary_attribute("phi", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2)
self._outargs = (ips.phi,)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
def _pycalc(self, ips, jps):
# Never use this method for production runs. It is very slow
# and is here only for performance comparisons. It is also
# likely that only the classes Acc and Phi will have an
# implementation of this method.
import numpy as np
ni = ips.n
if not "phi" in ips.__dict__:
ips.register_auxiliary_attribute("phi", "real")
for i in range(ni):
rx = ips.rx[i] - jps.rx
ry = ips.ry[i] - jps.ry
rz = ips.rz[i] - jps.rz
e2 = ips.eps2[i] + jps.eps2
r2 = rx * rx + ry * ry + rz * rz
mask = r2 > 0
inv_r2 = 1 / (r2 + e2)
inv_r = np.sqrt(inv_r2)
ips.phi[i] = -(jps.mass * inv_r)[mask].sum()
return (ips.phi,)
# calc = _pycalc
@decallmethods(timings)
class Acc(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("acc_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "ax" in ips.__dict__:
ips.register_auxiliary_attribute("ax", "real")
if not "ay" in ips.__dict__:
ips.register_auxiliary_attribute("ay", "real")
if not "az" in ips.__dict__:
ips.register_auxiliary_attribute("az", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2)
self._outargs = (ips.ax, ips.ay, ips.az)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
def _pycalc(self, ips, jps):
# Never use this method for production runs. It is very slow
# and is here only for performance comparisons. It is also
# likely that only the classes Acc and Phi will have an
# implementation of this method.
import numpy as np
ni = ips.n
if not "ax" in ips.__dict__:
ips.register_auxiliary_attribute("ax", "real")
if not "ay" in ips.__dict__:
ips.register_auxiliary_attribute("ay", "real")
if not "az" in ips.__dict__:
ips.register_auxiliary_attribute("az", "real")
for i in range(ni):
rx = ips.rx[i] - jps.rx
ry = ips.ry[i] - jps.ry
rz = ips.rz[i] - jps.rz
e2 = ips.eps2[i] + jps.eps2
r2 = rx * rx + ry * ry + rz * rz
mask = r2 > 0
inv_r2 = 1 / (r2 + e2)
inv_r = np.sqrt(inv_r2)
inv_r3 = inv_r * inv_r2
inv_r3 *= jps.mass
ips.ax[i] = -(inv_r3 * rx)[mask].sum()
ips.ay[i] = -(inv_r3 * ry)[mask].sum()
ips.az[i] = -(inv_r3 * rz)[mask].sum()
return (ips.ax, ips.ay, ips.az)
# calc = _pycalc
@decallmethods(timings)
class AccJerk(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("acc_jerk_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "ax" in ips.__dict__:
ips.register_auxiliary_attribute("ax", "real")
if not "ay" in ips.__dict__:
ips.register_auxiliary_attribute("ay", "real")
if not "az" in ips.__dict__:
ips.register_auxiliary_attribute("az", "real")
if not "jx" in ips.__dict__:
ips.register_auxiliary_attribute("jx", "real")
if not "jy" in ips.__dict__:
ips.register_auxiliary_attribute("jy", "real")
if not "jz" in ips.__dict__:
ips.register_auxiliary_attribute("jz", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz)
self._outargs = (ips.ax, ips.ay, ips.az,
ips.jx, ips.jy, ips.jz)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class SnapCrackle(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("snap_crackle_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "sx" in ips.__dict__:
ips.register_auxiliary_attribute("sx", "real")
if not "sy" in ips.__dict__:
ips.register_auxiliary_attribute("sy", "real")
if not "sz" in ips.__dict__:
ips.register_auxiliary_attribute("sz", "real")
if not "cx" in ips.__dict__:
ips.register_auxiliary_attribute("cx", "real")
if not "cy" in ips.__dict__:
ips.register_auxiliary_attribute("cy", "real")
if not "cz" in ips.__dict__:
ips.register_auxiliary_attribute("cz", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
ips.ax, ips.ay, ips.az, ips.jx, ips.jy, ips.jz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz,
jps.ax, jps.ay, jps.az, jps.jx, jps.jy, jps.jz)
self._outargs = (ips.sx, ips.sy, ips.sz,
ips.cx, ips.cy, ips.cz)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class Tstep(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("tstep_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real)
restypes = (cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps, eta):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "tstep" in ips.__dict__:
ips.register_auxiliary_attribute("tstep", "real")
if not "tstepij" in ips.__dict__:
ips.register_auxiliary_attribute("tstepij", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz,
eta)
self._outargs = (ips.tstep, ips.tstepij)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class PNAcc(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("pnacc_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint, cty.c_real,
cty.c_real, cty.c_real,
cty.c_real, cty.c_real,
cty.c_real, cty.c_real)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "pnax" in ips.__dict__:
ips.register_auxiliary_attribute("pnax", "real")
if not "pnay" in ips.__dict__:
ips.register_auxiliary_attribute("pnay", "real")
if not "pnaz" in ips.__dict__:
ips.register_auxiliary_attribute("pnaz", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz,
clight.pn_order, clight.inv1,
clight.inv2, clight.inv3,
clight.inv4, clight.inv5,
clight.inv6, clight.inv7)
self._outargs = (ips.pnax, ips.pnay, ips.pnaz)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class Sakura(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("sakura_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real, cty.c_int)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps, dt, flag):
ni = ips.n
nj = jps.n
if hasattr(self.kernel, "max_lsize"):
vw = 1
wpt = self.kernel.work_per_thread
max_lsize = self.kernel.max_lsize
import math
gs = (ni + wpt * vw - 1) // (wpt * vw)
ls = 2**int(math.log(gs, 2))
lsize = min(ls, max_lsize)
gsize = ((gs + lsize - 1) // lsize) * lsize
self.kernel.global_size = (gsize, 1, 1)
self.kernel.local_size = (lsize, 1, 1)
# self.kernel.set_gsize(ni, nj)
if not "drx" in ips.__dict__:
ips.register_auxiliary_attribute("drx", "real")
if not "dry" in ips.__dict__:
ips.register_auxiliary_attribute("dry", "real")
if not "drz" in ips.__dict__:
ips.register_auxiliary_attribute("drz", "real")
if not "dvx" in ips.__dict__:
ips.register_auxiliary_attribute("dvx", "real")
if not "dvy" in ips.__dict__:
ips.register_auxiliary_attribute("dvy", "real")
if not "dvz" in ips.__dict__:
ips.register_auxiliary_attribute("dvz", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz,
dt, flag)
self._outargs = (ips.drx, ips.dry, ips.drz,
ips.dvx, ips.dvy, ips.dvz)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class NREG_X(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("nreg_Xkernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps, dt):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "mrx" in ips.__dict__:
ips.register_auxiliary_attribute("mrx", "real")
if not "mry" in ips.__dict__:
ips.register_auxiliary_attribute("mry", "real")
if not "mrz" in ips.__dict__:
ips.register_auxiliary_attribute("mrz", "real")
if not "ax" in ips.__dict__:
ips.register_auxiliary_attribute("ax", "real")
if not "ay" in ips.__dict__:
ips.register_auxiliary_attribute("ay", "real")
if not "az" in ips.__dict__:
ips.register_auxiliary_attribute("az", "real")
if not "u" in ips.__dict__:
ips.register_auxiliary_attribute("u", "real")
self._inargs = (ni,
ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
nj,
jps.mass, jps.rx, jps.ry, jps.rz,
jps.eps2, jps.vx, jps.vy, jps.vz,
dt)
self._outargs = (ips.mrx, ips.mry, ips.mrz,
ips.ax, ips.ay, ips.az,
ips.u)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class NREG_V(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
self.kernel = get_kernel("nreg_Vkernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_uint,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps, dt):
ni = ips.n
nj = jps.n
self.kernel.set_gsize(ni, nj)
if not "mvx" in ips.__dict__:
ips.register_auxiliary_attribute("mvx", "real")
if not "mvy" in ips.__dict__:
ips.register_auxiliary_attribute("mvy", "real")
if not "mvz" in ips.__dict__:
ips.register_auxiliary_attribute("mvz", "real")
if not "mk" in ips.__dict__:
ips.register_auxiliary_attribute("mk", "real")
self._inargs = (ni,
ips.mass, ips.vx, ips.vy, ips.vz,
ips.ax, ips.ay, ips.az,
nj,
jps.mass, jps.vx, jps.vy, jps.vz,
jps.ax, jps.ay, jps.az,
dt)
self._outargs = (ips.mvx, ips.mvy, ips.mvz,
ips.mk)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
@decallmethods(timings)
class Kepler(AbstractExtension):
"""
"""
def __init__(self, backend, prec):
if backend == "CL": # No need for CL support.
backend = "C" # C is fast enough!
self.kernel = get_kernel("kepler_solver_kernel", backend, prec)
cty = self.kernel.cty
argtypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real)
restypes = (cty.c_real_p, cty.c_real_p, cty.c_real_p,
cty.c_real_p, cty.c_real_p, cty.c_real_p)
self.argtypes = argtypes
self.restypes = restypes
def set_args(self, ips, jps, dt):
ni = ips.n
nj = jps.n
self._inargs = (ips.mass, ips.rx, ips.ry, ips.rz,
ips.eps2, ips.vx, ips.vy, ips.vz,
dt)
self._outargs = (ips.rx, ips.ry, ips.rz,
ips.vx, ips.vy, ips.vz)
self.inargs = prepare_args(self._inargs, self.argtypes)
self.outargs = prepare_args(self._outargs, self.restypes)
self.kernel.set_args(self.inargs + self.outargs)
backend = "CL" if "--use_cl" in sys.argv else "C"
clight = Clight()
phi = Phi(backend, ctype.prec)
acc = Acc(backend, ctype.prec)
acc_jerk = AccJerk(backend, ctype.prec)
snap_crackle = SnapCrackle(backend, ctype.prec)
tstep = Tstep(backend, ctype.prec)
pnacc = PNAcc(backend, ctype.prec)
sakura = Sakura(backend, ctype.prec)
nreg_x = NREG_X(backend, ctype.prec)
nreg_v = NREG_V(backend, ctype.prec)
kepler = Kepler(backend, ctype.prec)
########## end of file ##########
| 35.253731
| 75
| 0.545766
|
dbaeb39cd6ec24ae3da36981eebfdcc724bff5b1
| 712
|
php
|
PHP
|
core/anomaly/multiple-field_type/src/Table/LookupTableColumns.php
|
vileopratama/portal-toyotadjakarta
|
25478d5940fcd724d4d37018de9493684d9539cf
|
[
"MIT"
] | null | null | null |
core/anomaly/multiple-field_type/src/Table/LookupTableColumns.php
|
vileopratama/portal-toyotadjakarta
|
25478d5940fcd724d4d37018de9493684d9539cf
|
[
"MIT"
] | 21
|
2015-06-18T03:17:25.000Z
|
2020-01-31T04:48:55.000Z
|
core/anomaly/multiple-field_type/src/Table/LookupTableColumns.php
|
vileopratama/portal-toyotadjakarta
|
25478d5940fcd724d4d37018de9493684d9539cf
|
[
"MIT"
] | 29
|
2015-06-17T13:57:43.000Z
|
2020-12-08T22:36:51.000Z
|
<?php namespace Anomaly\MultipleFieldType\Table;
/**
* Class LookupTableColumns
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
* @author Ryan Thompson <ryan@pyrocms.com>
*/
class LookupTableColumns
{
/**
* Handle the command.
*
* @param LookupTableBuilder $builder
*/
public function handle(LookupTableBuilder $builder)
{
$stream = $builder->getTableStream();
$column = $stream->getTitleColumn();
if ($column == 'id') {
$builder->setColumns([]);
return;
}
$builder->setColumns(
[
$column,
]
);
}
}
| 18.25641
| 55
| 0.519663
|
2c8d5e267d7b8d613a2c1c6def6003b81ec2976d
| 9,668
|
py
|
Python
|
functions/SeasonalARIMA.py
|
mmfink/raster-functions
|
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
|
[
"Apache-2.0"
] | 173
|
2015-01-21T03:10:13.000Z
|
2022-02-16T17:16:45.000Z
|
functions/SeasonalARIMA.py
|
mmfink/raster-functions
|
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
|
[
"Apache-2.0"
] | 34
|
2015-02-18T10:58:31.000Z
|
2021-09-20T17:24:34.000Z
|
functions/SeasonalARIMA.py
|
mmfink/raster-functions
|
55a33bdd2ac4f3333eca6ccd49de6f3d5d21f7ba
|
[
"Apache-2.0"
] | 78
|
2015-01-30T16:26:31.000Z
|
2022-03-22T10:59:13.000Z
|
import numpy as np
import statsmodels.api as sm
import pandas as pd
import datetime
# For Debugging
import os
import sys
import pickle
debug_logs_directory = r'C:\PROJECTS\gbrunner-raster-functions\pickles\daymet'
class SeasonalARIMA():
def __init__(self):
self.name = "Seasonal ARIMA"
self.description = "This function performs a Seasonal AutoRegressive Integrated Moving Average (ARIMA) on " \
"a time-series of rasters. The function takes in the rasters as a mosaic dataset, trains " \
"a seasonal ARIMA model on the input mosaic dataset, and predicts the change in the " \
"observed variable (pixel values). This currently only supports single band time-series " \
"rasters that generally contain scientific data."
self.times = []
self.data_start_year = None
self.predict_month = None
self.predict_year = None
self.train_start_year = None
self.train_end_year = None
self.p = None
self.d = None
self.q = None
self.s = None
def getParameterInfo(self):
return [
{
'name': 'rasters',
'dataType': 'rasters',
'value': None,
'required': True,
'displayName': "Rasters",
'description': "The collection of temporal reasters for which we want to predict seasonal change.",
},
{
'name': 'data_start_year',
'dataType': 'numeric',
'value': 1980,
'required': True,
'displayName': 'Data Start Year',
'description': 'The first year in the dataset'
},
{
'name': 'train_start_year',
'dataType': 'numeric',
'value': 1980,
'required': True,
'displayName': 'Training Start Year',
'description': 'The year on which to start training model'
},
{
'name': 'train_end_year',
'dataType': 'numeric',
'value': 2010,
'required': True,
'displayName': 'Training End Year',
'description': 'The year on which to end training model'
},
{
'name': 'predict_year',
'dataType': 'numeric',
'value': 2050,
'required': True,
'displayName': 'Prediction Year',
'description': 'The year for which we want to predict our seasonal variable'
},
{
'name': 'predict_month',
'dataType': 'string',
'value': 'Jun',
'required': True,
'domain': ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'),
'displayName': 'Month to Predict',
'description': 'The month for which we want to predict the change in the observed variable.'
},
{
'name': 'seasonal_order',
'dataType': 'string',
'value': '0,1,1,12',
'required': True,
'displayName': 'Seasonal Order (P, D, Q, s)',
'description': 'The (P,D,Q,s) order of the seasonal component of the model for the AR parameters, ' \
'differences, MA parameters, and periodicity. d must be an integer indicating the ' \
'integration order of the process, while p and q may either be an integers indicating ' \
'the AR and MA orders (so that all lags up to those orders are included) or else ' \
'iterables giving specific AR and / or MA lags to include. s is an integer giving ' \
'the periodicity (number of periods in season), often it is 4 for quarterly data ' \
'or 12 for monthly data. Default is no seasonal effect.'
}
]
def getConfiguration(self, **scalars):
return {
'compositeRasters': False,
'inheritProperties': 1 | 2 | 4 | 8, # inherit all from the raster
'invalidateProperties': 2 | 4 | 8, # reset stats, histogram, key properties
'inputMask': False,
'keyMetadata': ['time'] #['StdTime']#
}
def updateRasterInfo(self, **kwargs):
#outStats = {'minimum': 0,'maximum': 25}
outBandCount = 1
kwargs['output_info']['pixelType'] = 'f4' # output pixels are floating-point values
kwargs['output_info']['histogram'] = () # no statistics/histogram for output raster specified
kwargs['output_info']['statistics'] = ()
kwargs['output_info']['bandCount'] = outBandCount # number of output bands.
month_dict = {'Jan': 1,
'Feb': 2,
'Mar': 3,
'Apr': 4,
'May': 5,
'Jun': 6,
'Jul': 7,
'Aug': 8,
'Sep': 9,
'Oct': 10,
'Nov': 11,
'Dec': 12}
self.data_start_year = int(kwargs['data_start_year'])
self.predict_month = int(month_dict[kwargs['predict_month']])
self.predict_year = int(kwargs['predict_year'])
self.train_start_year = int(kwargs['train_start_year'])
self.train_end_year = int(kwargs['train_end_year'])
seasonal_order = kwargs['seasonal_order'].split(',')
self.p = int(seasonal_order[0])
self.d = int(seasonal_order[1])
self.q = int(seasonal_order[2])
self.s = int(seasonal_order[3])
self.times = kwargs['rasters_keyMetadata']
return kwargs
def updatePixels(self, tlc, shape, props, **pixelBlocks):
# pixelBlocks['rasters_pixels']: tuple of 3-d array containing pixel blocks from each input raster
# apply the selected operator over each array in the tuple
#fname = '{:%Y_%b_%d_%H_%M_%S}_t.txt'.format(datetime.datetime.now())
#filename = os.path.join(debug_logs_directory, fname)
#file = open(filename,"w")
#file.write("File Open.\n")
pix_blocks = pixelBlocks['rasters_pixels']
pix_array = np.asarray(pix_blocks)
pix_time = [j['time'] for j in self.times]
sorted_t = np.sort(pix_time)
sorted_t_idx = np.argsort(pix_time)
#pickle_filename = os.path.join(debug_logs_directory, fname)
#pickle.dump(pix_blocks, open(pickle_filename[:-4]+'pix_blocks.p',"wb"))
#pickle_filename = os.path.join(debug_logs_directory, fname)
#pickle.dump(pix_time, open(pickle_filename[:-4]+'pix_time.p',"wb"))
pix_array_dim = pix_array.shape
num_squares_x = pix_array_dim[2]
num_squares_y = pix_array_dim[3]
new_stack = np.zeros((1, num_squares_x, num_squares_y))
my_order = (1,0,0)
my_seasonal_order = (self.p, self.d, self.q, self.s)
now = datetime.datetime.now()
current_year = int(now.year)
data_start_year = self.data_start_year
train_start_year = self.train_start_year
predict_year = self.predict_year
train_end_year = self.train_end_year
predict_month = self.predict_month
train_data_end_index = (train_end_year - data_start_year) * 12
train_data_start_index = (train_start_year - data_start_year) * 12
predict_data_end_index = (predict_year - train_end_year) * 12
current_year_index = (current_year - train_end_year) * 12
for num_x in range(0, int(num_squares_x)):
for num_y in range(0, int(num_squares_y)):
data = pix_array[:, 0, num_x, num_y]
sorted_data = data[sorted_t_idx]
try:
# define model
model = sm.tsa.statespace.SARIMAX(sorted_data[train_data_start_index:train_data_end_index],
order=my_order,
seasonal_order=my_seasonal_order, trend='c',
enforce_invertibility=False, enforce_stationarity=False)
model_fit = model.fit()
#index = (predict_year - train_end_year) * 12 + predict_month
yhat = model_fit.predict(start=train_data_end_index,
end=train_data_end_index + predict_data_end_index)
final_year_prediction = yhat[predict_data_end_index - (12 - predict_month)]
current_year_prediction = yhat[current_year_index - (12 - predict_month)]
delta = final_year_prediction - current_year_prediction
new_stack[0, num_x, num_y] = delta
#print(delta, num_x, num_y)
except:
delta = -999
new_stack[0, num_x, num_y] = delta
#print(delta, num_x, num_y)
pixelBlocks['output_pixels'] = new_stack.astype(props['pixelType'], copy=False)#new_stack.astype(props['pixelType'], copy=False)
#file.write("Done.")
#file.close()
return pixelBlocks
def updateKeyMetadata(self, names, bandIndex, **keyMetadata):
return keyMetadata
| 42.590308
| 136
| 0.537443
|
8d959a0c88de5cb739372b57ba0d5f246b721ccc
| 66
|
js
|
JavaScript
|
demo/todomvc/Components/TodoMVC/Todos/TodosUiBox/TodoList/Todo/RemoveTodo/RemoveTodo.events.js
|
webextensions/kins
|
257e9d29229029231942a26be478a2849a597927
|
[
"MIT"
] | 1
|
2019-06-02T04:10:56.000Z
|
2019-06-02T04:10:56.000Z
|
demo/todomvc/Components/TodoMVC/Todos/TodosUiBox/TodoList/Todo/RemoveTodo/RemoveTodo.events.js
|
webextensions/kins
|
257e9d29229029231942a26be478a2849a597927
|
[
"MIT"
] | null | null | null |
demo/todomvc/Components/TodoMVC/Todos/TodosUiBox/TodoList/Todo/RemoveTodo/RemoveTodo.events.js
|
webextensions/kins
|
257e9d29229029231942a26be478a2849a597927
|
[
"MIT"
] | null | null | null |
export const
TODOS__REMOVE_CLICKED = 'TODOS__REMOVE_CLICKED';
| 22
| 52
| 0.80303
|
d9cda0ef4d0df6dfd6f8388403b746f2aa73b0f1
| 18,605
|
lua
|
Lua
|
love2d/lua/blanke/util.lua
|
xharris/blankejs
|
5ff05f82607e2a2ac370a8f56c1ce70545cfb1ed
|
[
"MIT"
] | 1
|
2020-07-21T03:58:29.000Z
|
2020-07-21T03:58:29.000Z
|
love2d/lua/blanke/util.lua
|
xharris/blankejs
|
5ff05f82607e2a2ac370a8f56c1ce70545cfb1ed
|
[
"MIT"
] | 25
|
2019-07-03T17:00:09.000Z
|
2022-03-25T19:05:40.000Z
|
love2d/lua/blanke/util.lua
|
xharris/blankejs
|
5ff05f82607e2a2ac370a8f56c1ce70545cfb1ed
|
[
"MIT"
] | 1
|
2019-07-18T15:45:30.000Z
|
2019-07-18T15:45:30.000Z
|
local tbl_to_str
tbl_to_str = function(t, str)
local empty = true
str = str or ''
str = str .. "["
for i = 1, #t, 1 do
if i ~= 1 then
str = str .. ','
end
if type(t[i]) == "table" then
str = str .. tbl_to_str(t[i], str)
else
str = str .. tostring(t[i])
end
end
str = str .. "]"
return str
end
callable = function(t)
if t.__ then
for _, mm in ipairs(t) do t['__'..mm] = t.__[mm] end
end
return setmetatable(t, { __call = t.__call })
end
-- blanke_require("ecs")
memoize = nil
do
local mem_cache = {}
setmetatable(mem_cache, {__mode = "kv"})
memoize = function(f, cache)
-- default cache or user-given cache?
cache = cache or mem_cache
if not cache[f] then
cache[f] = {}
end
cache = cache[f]
return function(...)
local args = {...}
local cache_str = '<no-args>'
local found_args = false
for i, v in ipairs(args) do
if v ~= nil then
if not found_args then
found_args = true
cache_str = ''
end
if i ~= 1 then
cache_str = cache_str .. '~'
end
if type(v) == "table" then
cache_str = cache_str .. tbl_to_str(v)
else
cache_str = cache_str .. tostring(v)
end
end
end
-- retrieve cached value?
local ret = cache[cache_str]
if not ret then
-- not cached yet
ret = { f(unpack(args)) }
cache[cache_str] = ret
-- print('store',cache_str,'as',unpack(ret))
end
return unpack(ret)
end
end
end
-- is given version greater than or equal to current LoVE version?
ge_version = function(major, minor, rev)
if major and major > Game.love_version[1] then return false end
if minor and minor > Game.love_version[2] then return false end
if rev and rev > Game.love_version[3] then return false end
return true
end
--TABLE
table.update = function (old_t, new_t, keys)
if keys == nil then
for k, v in pairs(new_t) do
old_t[k] = v
end
else
for _,k in ipairs(keys) do if new_t[k] ~= nil then old_t[k] = new_t[k] end end
end
return old_t
end
table.keys = function (t)
ret = {}
for k, v in pairs(t) do table.insert(ret,k) end
return ret
end
table.every = function (t, fn)
for k,v in pairs(t) do if fn ~= nil and not fn(v, k) or not v then return false end end
return true
end
table.some = function (t, fn)
for k,v in pairs(t) do if fn ~= nil and fn(v, k) or v then return true end end
return false
end
table.len = function (t)
c = 0
for k,v in pairs(t) do c = c + 1 end
return c
end
table.hasValue = function (t, val)
for k,v in pairs(t) do
if v == val then return true end
end
return false
end
table.slice = function (t, start, finish)
i, res, finish = 1, {}, finish or table.len(t)
for j = start, finish do
res[i] = t[j]
i = i + 1
end
return res
end
table.defaults = function (t,defaults)
for k,v in pairs(defaults) do
if type(t) == 'table' and t[k] == nil then t[k] = v
elseif type(v) == 'table' then table.defaults(t[k],defaults[k]) end
end
return t
end
table.append = function (t, new_t)
for k,v in pairs(new_t) do
if type(k) == 'string' then t[k] = v
else table.insert(t, v) end
end
end
table.filter = function(t, fn)
local len = table.len(t)
local offset = 0
for o = 1, len do
local element = t[o]
if element then
if fn(element, o) then -- keep element
t[o] = nil
t[o - offset] = element
else -- remove element
t[o] = nil
offset = offset + 1
end
end
end
end
table.random = function(t)
return t[Math.random(1,#t)]
end
table.randomWeighted = function(t)
local r = Math.random(0,100)
end
table.includes = function(t, v)
for i = 1,#t do if t[i] == v then return true end end
return false
end
table.join = function(t, sep, nil_str)
local str = ''
for i = 1, #t do
str = str .. tostring(t[i] ~= nil and t[i] or (nil_str and 'nil'))
if i ~= #t then
str = str .. tostring(sep)
end
end
return str
end
--STRING
function string:starts(start)
return string.sub(self,1,string.len(start))==start
end
function string:contains(q)
return string.match(tostring(self), tostring(q)) ~= nil
end
function string:count(str)
local _, count = string.gsub(self, str, "")
return count
end
function string:capitalize()
return string.upper(string.sub(self,1,1))..string.sub(self,2)
end
function string:split(sep)
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, function(c) fields[#fields+1] = c end)
return fields
end
function string:replace(find, replace, wholeword)
if wholeword then
find = '%f[%a]'..find..'%f[%A]'
end
return (self:gsub(find,replace))
end
string.expand = memoize(function(self, ...)
-- version: 0.0.1
-- code: Ketmar // Avalon Group
-- public domain
-- expand $var and ${var} in string
-- ${var} can call Lua functions: ${string.rep(' ', 10)}
-- `$' can be screened with `\'
-- `...': args for $<number>
-- if `...' is just a one table -- take it as args
function ExpandVars (s, ...)
local args = {...};
args = #args == 1 and type(args[1]) == "table" and args[1] or args;
-- return true if there was an expansion
local function DoExpand (iscode)
local was = false;
local mask = iscode and "()%$(%b{})" or "()%$([%a%d_]*)";
local drepl = iscode and "\\$" or "\\\\$";
s = s:gsub(mask, function (pos, code)
if s:sub(pos-1, pos-1) == "\\" then return "$"..code;
else was = true; local v, err;
if iscode then code = code:sub(2, -2);
else local n = tonumber(code);
if n then v = args[n]; end;
end;
if not v then
v, err = loadstring("return "..code); if not v then error(err); end;
v = v();
end;
if v == nil then v = ""; end;
v = tostring(v):gsub("%$", drepl);
return v;
end;
end);
if not (iscode or was) then s = s:gsub("\\%$", "$"); end;
return was;
end;
repeat DoExpand(true); until not DoExpand(false);
return s;
end;
return ExpandVars(self, ...)
end)
--math
local sin, cos, rad, deg, abs, min, max = math.sin, math.cos, math.rad, math.deg, math.abs, math.min, math.max
floor = function(x) return math.floor(x+0.5) end
Math = {}
do
for name, fn in pairs(math) do Math[name] = function(...) return fn(...) end end
local clamp = function(x, _min, _max) return min(_max, max(_min, x)) end
Math.clamp = clamp
Math.sign = function(x) return (x < 0) and -1 or 1 end
Math.seed = function(l,h) if l then love.math.setRandomSeed(l,h) else return love.math.getRandomSeed() end end
Math.random = function(...) return love.math.random(...) end
Math.indexTo2d = function(i, col) return math.floor((i-1)%col)+1, math.floor((i-1)/col)+1 end
Math.getXY = memoize(function(angle, dist) return dist * cos(angle), dist * sin(angle) end)
Math.distance = memoize(function(x1,y1,x2,y2) return math.sqrt( (x2-x1)^2 + (y2-y1)^2 ) end)
Math.lerp = function(a,b,t)
local r = a * (1-t) + b * t
if a < b then return clamp(r, a, b)
else return clamp(r, b, a) end
end
Math.prel = function(a,b,v) -- returns what percent v is between a and b
if v >= b then return 1
elseif v <= a then return 0
else return (v - a) / (b - a) end
end
Math.sinusoidal = function(min, max, spd, percent) return Math.lerp(min, max, Math.prel(-1, 1, math.cos(Math.lerp(0,math.pi/2,percent or 0) + (Game.time * (spd or 1)) )) ) end
-- return min + -math.cos(Math.lerp(0,math.pi/2,off or 0) + (Game.time * spd)) * ((max - min)/2) + ((max - min)/2) end
Math.angle = memoize(function(x1, y1, x2, y2) return math.atan2((y2-y1), (x2-x1)) end)
Math.pointInShape = function(shape, x, y)
local pts = {}
for p = 1,#shape,2 do
table.insert(pts, {x=shape[p], y=shape[p+1]})
end
return PointWithinShape(pts,x,y)
end
function PointWithinShape(shape, tx, ty)
if #shape == 0 then
return false
elseif #shape == 1 then
return shape[1].x == tx and shape[1].y == ty
elseif #shape == 2 then
return PointWithinLine(shape, tx, ty)
else
return CrossingsMultiplyTest(shape, tx, ty)
end
end
function BoundingBox(box, tx, ty)
return (box[2].x >= tx and box[2].y >= ty)
and (box[1].x <= tx and box[1].y <= ty)
or (box[1].x >= tx and box[2].y >= ty)
and (box[2].x <= tx and box[1].y <= ty)
end
function colinear(line, x, y, e)
e = e or 0.1
m = (line[2].y - line[1].y) / (line[2].x - line[1].x)
local function f(x) return line[1].y + m*(x - line[1].x) end
return math.abs(y - f(x)) <= e
end
function PointWithinLine(line, tx, ty, e)
e = e or 0.66
if BoundingBox(line, tx, ty) then
return colinear(line, tx, ty, e)
else
return false
end
end
-- from http://erich.realtimerendering.com/ptinpoly/
function CrossingsMultiplyTest(pgon, tx, ty)
local i, yflag0, yflag1, inside_flag
local vtx0, vtx1
local numverts = #pgon
vtx0 = pgon[numverts]
vtx1 = pgon[1]
-- get test bit for above/below X axis
yflag0 = ( vtx0.y >= ty )
inside_flag = false
for i=2,numverts+1 do
yflag1 = ( vtx1.y >= ty )
--[[ Check if endpoints straddle (are on opposite sides) of X axis
* (i.e. the Y's differ); if so, +X ray could intersect this edge.
* The old test also checked whether the endpoints are both to the
* right or to the left of the test point. However, given the faster
* intersection point computation used below, this test was found to
* be a break-even proposition for most polygons and a loser for
* triangles (where 50% or more of the edges which survive this test
* will cross quadrants and so have to have the X intersection computed
* anyway). I credit Joseph Samosky with inspiring me to try dropping
* the "both left or both right" part of my code.
--]]
if ( yflag0 ~= yflag1 ) then
--[[ Check intersection of pgon segment with +X ray.
* Note if >= point's X; if so, the ray hits it.
* The division operation is avoided for the ">=" test by checking
* the sign of the first vertex wrto the test point; idea inspired
* by Joseph Samosky's and Mark Haigh-Hutchinson's different
* polygon inclusion tests.
--]]
if ( ((vtx1.y - ty) * (vtx0.x - vtx1.x) >= (vtx1.x - tx) * (vtx0.y - vtx1.y)) == yflag1 ) then
inside_flag = not inside_flag
end
end
-- Move to the next pair of vertices, retaining info as possible.
yflag0 = yflag1
vtx0 = vtx1
vtx1 = pgon[i]
end
return inside_flag
end
function GetIntersect( points )
local g1 = points[1].x
local h1 = points[1].y
local g2 = points[2].x
local h2 = points[2].y
local i1 = points[3].x
local j1 = points[3].y
local i2 = points[4].x
local j2 = points[4].y
local xk = 0
local yk = 0
if checkIntersect({x=g1, y=h1}, {x=g2, y=h2}, {x=i1, y=j1}, {x=i2, y=j2}) then
local a = h2-h1
local b = (g2-g1)
local v = ((h2-h1)*g1) - ((g2-g1)*h1)
local d = i2-i1
local c = (j2-j1)
local w = ((j2-j1)*i1) - ((i2-i1)*j1)
xk = (1/((a*d)-(b*c))) * ((d*v)-(b*w))
yk = (-1/((a*d)-(b*c))) * ((a*w)-(c*v))
end
return xk, yk
end
end
--UTIL.extra
switch = function(val, choices)
if choices[val] then choices[val]()
elseif choices.default then choices.default() end
end
-- for sorting a table of objects
sort = nil
do
sort = function(t, key, default)
if #t == 0 then return end
table.sort(t, function(a, b)
if a == nil and b == nil then
return false
end
if a == nil then
return true
end
if b == nil then
return false
end
if a[key] == nil then a[key] = default end
if b[key] == nil then b[key] = default end
return a[key] < b[key]
end)
end
end
iterate = function(t, fn)
if not t then return end
local len = #t
local offset = 0
local removals = {}
for o=1,len do
local obj = t[o]
if obj then
-- return true to remove element
if fn(obj, o) == true then
table.insert(removals, o)
end
else
table.insert(removals, o)
end
end
if #removals > 0 then
for i = #removals, 1, -1 do
table.remove(t, removals[i])
end
end
end
local nonzero_z = false
iterateEntities = function(t, test_val, fn)
if not t then return end
local len = #t
local offset = 0
local removals = {}
local z_sort = false
for o=1,len do
local obj = t[o]
if obj then
if obj.parent and obj.parent.z then obj.z = obj.parent.z end
if not obj.z then obj.z = 0 end
if obj.destroyed or not obj[test_val] or fn(obj, o) == true then
table.insert(removals, o)
elseif obj._last_z ~= obj.z then
obj._last_z = obj.z
z_sort = true
end
end
end
if #removals > 0 then
for i = #removals, 1, -1 do
table.remove(t, removals[i])
end
end
if reorder then
sort(t, 'z', 0)
end
return reorder
end
copy = function(orig, copies)
copies = copies or {}
local orig_type = type(orig)
local t_copy
if orig_type == 'table' then
if copies[orig] then
t_copy = copies[orig]
else
t_copy = {}
copies[orig] = t_copy
for orig_key, orig_value in next, orig, nil do
t_copy[copy(orig_key, copies)] = copy(orig_value, copies)
end
setmetatable(t_copy, copy(getmetatable(orig), copies))
end
else -- number, string, boolean, etc
t_copy = orig
end
return t_copy
end
is_object = function(o) return type(o) == 'table' and o.init and type(o.init) == 'function' end
encrypt = function(str, code, seed)
local oldseed = {Math.seed()}
if not seed then
seed = 0
for c = 1, string.len(code) do
seed = seed + string.byte(string.sub(code,c,c))
end
end
Math.seed(seed)
local ret_str = ''
local code_len = string.len(code)
for c = 1, string.len(str) do
ret_str = ret_str .. string.char(bit.bxor(string.byte(string.sub(str,c,c)), (c + Math.random(c,code_len)) % code_len))
end
Math.seed(unpack(oldseed))
return ret_str
end
decrypt = function(str, code, seed)
local oldseed = {Math.seed()}
if not seed then
seed = 0
for c = 1, string.len(code) do
seed = seed + string.byte(string.sub(code,c,c))
end
end
Math.seed(seed)
local ret_str = ''
local code_len = string.len(code)
for c = 1, string.len(str) do
ret_str = ret_str .. string.char(bit.bxor(string.byte(string.sub(str,c,c)), (c + Math.random(c,code_len)) % code_len))
end
Math.seed(unpack(oldseed))
return ret_str
end
local lua_print = print
do
local str = ''
local args
print = function(...)
str = ''
args = {...}
len = table.len(args)
for i = 1,len do
str = str .. tostring(args[i] or 'nil')
if i ~= len then str = str .. ' ' end
end
lua_print(str)
end
end
--CACHE
Cache = {}
do
local storage = {}
Cache.group = function(name) return Cache[name] end
Cache.key = function(group_name, key) return (Cache[group_name] and Cache[group_name][key]) end
Cache.get = function(group_name, key, fn_not_found)
if not storage[group_name] then storage[group_name] = {} end
if storage[group_name][key] then
return storage[group_name][key]
elseif fn_not_found then
storage[group_name][key] = fn_not_found(key)
return storage[group_name][key]
end
end
Cache.stats = function()
local str = ''
for name, list in pairs(storage) do
str = str .. name .. '=' .. table.len(list) .. ' '
end
print(str)
end
Cache.image = function(image)
local key = Game.res('image', image)
return Cache.get("image", Game.res('image', image), function(key)
return love.graphics.newImage(key)
end)
end
Cache.quad = function(image, tx, ty, tw, th)
local image_obj = Cache.image(image)
local key = image..':'..tx..","..ty..","..tw..","..th
return Cache.get('image.quad', image..':'..tx..","..ty..","..tw..","..th, function(key)
return love.graphics.newQuad(tx,ty,tw,th,image_obj:getWidth(),image_obj:getHeight())
end)
end
Cache.spritebatch = function(image, z, uuid)
z = z or 0
local image_obj = Cache.image(image)
local key = image..':'..z
if uuid then key = key .. ':' .. uuid end
return Cache.get('spritebatch', key, function(key)
return love.graphics.newSpriteBatch(image_obj)
end)
end
end
--STACK
Stack = class{
init = function(self, fn_new)
self.stack = {} -- { { used:t/f, value:?, is_stack:true, release:fn() } }
self.fn_new = fn_new
end,
new = function(self, remake)
local found = false
for _, s in ipairs(self.stack) do
if not s.used then
found = true
s.used = true
if remake then
s.value = self.fn_new()
end
return s
end
end
if not found then
local new_uuid = uuid()
local new_stack_obj = {
uuid=new_uuid,
used=true,
value=self.fn_new(obj),
is_stack=true
}
table.insert(self.stack, new_stack_obj)
return new_stack_obj
end
end,
release = function(self, object)
for _, s in ipairs(self.stack) do
if s.uuid == object.uuid then
s.used = false
return
end
end
end
}
| 29.161442
| 177
| 0.563397
|
4d2ed82efcbcad530ac561da8b082208c3713a1c
| 3,320
|
asm
|
Assembly
|
programs/oeis/201/A201553.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/201/A201553.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/201/A201553.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A201553: Number of arrays of 6 integers in -n..n with sum zero.
; 1,141,1751,9331,32661,88913,204763,418503,782153,1363573,2248575,3543035,5375005,7896825,11287235,15753487,21533457,28897757,38151847,49638147,63738149,80874529,101513259,126165719,155390809,189797061,230044751,276848011,330976941,393259721,464584723,545902623,638228513,742644013,860299383,992415635,1140286645,1305281265,1488845435,1692504295,1917864297,2166615317,2440532767,2741479707,3071408957,3432365209,3826487139,4256009519,4723265329,5230687869,5780812871,6376280611,7019838021,7714340801,8462755531,9268161783,10133754233,11062844773,12058864623,13125366443,14266026445,15484646505,16785156275,18171615295,19648215105,21219281357,22889275927,24662799027,26544591317,28539536017,30652661019,32889140999,35254299529,37753611189,40392703679,43177359931,46113520221,49207284281,52464913411,55892832591,59497632593,63286072093,67265079783,71441756483,75823377253,80417393505,85231435115,90273312535,95551018905,101072732165,106846817167,112881827787,119186509037,125769799177,132640831827,139808938079,147283648609,155074695789,163192015799,171645750739,180446250741,189604076081,199129999291,209035007271,219330303401,230027309653,241137668703,252673246043,264646132093,277068644313,289953329315,303312964975,317160562545,331509368765,346372867975,361764784227,377699083397,394189975297,411251915787,428899608887,447148008889,466012322469,485508010799,505650791659,526456641549,547941797801,570122760691,593016295551,616639434881,641009480461,666144005463,692060856563,718778156053,746314303953,774687980123,803918146375,834024048585,865025218805,896941477375,929792935035,963599995037,998383355257,1034164010307,1070963253647,1108802679697,1147704185949,1187689975079,1228782557059,1271004751269,1314379688609,1358930813611,1404681886551,1451656985561,1499880508741,1549377176271,1600172032523,1652290448173,1705758122313,1760601084563,1816845697183,1874518657185,1933646998445,1994258093815,2056379657235,2120039745845,2185266762097,2252089455867,2320536926567,2390638625257,2462424356757,2535924281759,2611168918939,2688189147069,2767016207129,2847681704419,2930217610671,3014656266161,3101030381821,3189373041351,3279717703331,3372098203333,3466548756033,3563103957323,3661798786423,3762668607993,3865749174245,3971076627055,4078687500075,4188618720845,4300907612905,4415591897907,4532709697727,4652299536577,4774400343117,4899051452567,5026292608819,5156163966549,5288706093329,5423959971739,5561967001479,5702769001481,5846408212021,5992927296831,6142369345211,6294777874141,6450196830393,6608670592643,6770243973583,6934962222033,7102871025053,7274016510055,7448445246915,7626204250085,7807340980705,7991903348715,8179939714967,8371498893337,8566630152837,8765383219727,8967808279627,9173955979629,9383877430409,9597624208339,9815248357599,10036802392289,10262339298541,10491912536631,10725576043091,10963384232821,11205392001201,11451654726203,11702228270503,11957168983593,12216533703893,12480379760863,12748764977115,13021747670525,13299386656345,13581741249315,13868871265775,14160837025777,14457699355197,14759519587847,15066359567587,15378281650437,15695348706689,16017624123019,16345171804599,16678056177209,17016342189349
mul $0,2
cal $0,71816 ; Number of ordered solutions to x+y+z = u+v+w, 0 <= x, y, z, u, v, w < n.
mov $1,$0
| 474.285714
| 3,145
| 0.903614
|
2c9906f2412fb99fe815cd8e0bf6f588ffaa072a
| 2,660
|
py
|
Python
|
website/addons/dataverse/client.py
|
lbanner/osf.io
|
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
|
[
"Apache-2.0"
] | null | null | null |
website/addons/dataverse/client.py
|
lbanner/osf.io
|
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
|
[
"Apache-2.0"
] | null | null | null |
website/addons/dataverse/client.py
|
lbanner/osf.io
|
1898ef0ff8bd91713e94c60e7463b5f81ac62caa
|
[
"Apache-2.0"
] | null | null | null |
import httplib as http
from dataverse import Connection
from framework.exceptions import HTTPError
from website.addons.dataverse import settings
def connect(username, password, host=settings.HOST):
connection = Connection(
username=username,
password=password,
host=host,
disable_ssl=not settings.VERIFY_SSL,
)
return connection if connection.connected else None
def connect_from_settings(user_settings):
return connect(
user_settings.dataverse_username,
user_settings.dataverse_password
) if user_settings else None
def connect_or_403(username, password, host=settings.HOST):
connection = Connection(
username=username,
password=password,
host=host,
disable_ssl=not settings.VERIFY_SSL,
)
if connection.status == http.FORBIDDEN:
raise HTTPError(http.FORBIDDEN)
return connection if connection.connected else None
def connect_from_settings_or_403(user_settings):
return connect_or_403(
user_settings.dataverse_username,
user_settings.dataverse_password
) if user_settings else None
def delete_file(file):
study = file.study
study.delete_file(file)
def upload_file(study, filename, content):
study.upload_file(filename, content)
def get_file(study, filename, released=False):
return study.get_file(filename, released)
def get_file_by_id(study, file_id, released=False):
return study.get_file_by_id(file_id, released)
def get_files(study, released=False):
return study.get_files(released)
def release_study(study):
return study.release()
def get_studies(dataverse):
if dataverse is None:
return [], []
accessible_studies = []
bad_studies = [] # Currently none, but we may filter some out
for s in dataverse.get_studies():
accessible_studies.append(s)
return accessible_studies, bad_studies
def get_study(dataverse, hdl):
if dataverse is None:
return
study = dataverse.get_study_by_doi(hdl)
try:
if study.get_state() == 'DEACCESSIONED':
raise HTTPError(http.GONE)
return study
except UnicodeDecodeError:
raise HTTPError(http.NOT_ACCEPTABLE)
def get_dataverses(connection):
if connection is None:
return []
dataverses = connection.get_dataverses()
released_dataverses = [d for d in dataverses if d.is_released]
return released_dataverses
def get_dataverse(connection, alias):
if connection is None:
return
dataverse = connection.get_dataverse(alias)
return dataverse if dataverse and dataverse.is_released else None
| 25.576923
| 69
| 0.716541
|
798cfdaefe05cc0746340d8f21b2b8b38e2d616b
| 7,439
|
php
|
PHP
|
src/Wallabag/ImportBundle/Import/PocketImport.php
|
delyriand/wallabag
|
a707643ef1a0d5f1cf4ab9826492f4c9cb2d8c09
|
[
"MIT"
] | null | null | null |
src/Wallabag/ImportBundle/Import/PocketImport.php
|
delyriand/wallabag
|
a707643ef1a0d5f1cf4ab9826492f4c9cb2d8c09
|
[
"MIT"
] | null | null | null |
src/Wallabag/ImportBundle/Import/PocketImport.php
|
delyriand/wallabag
|
a707643ef1a0d5f1cf4ab9826492f4c9cb2d8c09
|
[
"MIT"
] | null | null | null |
<?php
namespace Wallabag\ImportBundle\Import;
use Psr\Log\NullLogger;
use Doctrine\ORM\EntityManager;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Helper\ContentProxy;
use Craue\ConfigBundle\Util\Config;
class PocketImport extends AbstractImport
{
private $user;
private $client;
private $consumerKey;
private $skippedEntries = 0;
private $importedEntries = 0;
private $markAsRead;
protected $accessToken;
public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig)
{
$this->user = $tokenStorage->getToken()->getUser();
$this->em = $em;
$this->contentProxy = $contentProxy;
$this->consumerKey = $craueConfig->get('pocket_consumer_key');
$this->logger = new NullLogger();
}
/**
* {@inheritdoc}
*/
public function getName()
{
return 'Pocket';
}
/**
* {@inheritdoc}
*/
public function getUrl()
{
return 'import_pocket';
}
/**
* {@inheritdoc}
*/
public function getDescription()
{
return 'import.pocket.description';
}
/**
* Return the oauth url to authenticate the client.
*
* @param string $redirectUri Redirect url in case of error
*
* @return string|false request_token for callback method
*/
public function getRequestToken($redirectUri)
{
$request = $this->client->createRequest('POST', 'https://getpocket.com/v3/oauth/request',
[
'body' => json_encode([
'consumer_key' => $this->consumerKey,
'redirect_uri' => $redirectUri,
]),
]
);
try {
$response = $this->client->send($request);
} catch (RequestException $e) {
$this->logger->error(sprintf('PocketImport: Failed to request token: %s', $e->getMessage()), ['exception' => $e]);
return false;
}
return $response->json()['code'];
}
/**
* Usually called by the previous callback to authorize the client.
* Then it return a token that can be used for next requests.
*
* @param string $code request_token from getRequestToken
*
* @return bool
*/
public function authorize($code)
{
$request = $this->client->createRequest('POST', 'https://getpocket.com/v3/oauth/authorize',
[
'body' => json_encode([
'consumer_key' => $this->consumerKey,
'code' => $code,
]),
]
);
try {
$response = $this->client->send($request);
} catch (RequestException $e) {
$this->logger->error(sprintf('PocketImport: Failed to authorize client: %s', $e->getMessage()), ['exception' => $e]);
return false;
}
$this->accessToken = $response->json()['access_token'];
return true;
}
/**
* Set whether articles must be all marked as read.
*
* @param bool $markAsRead
*/
public function setMarkAsRead($markAsRead)
{
$this->markAsRead = $markAsRead;
return $this;
}
/**
* Get whether articles must be all marked as read.
*/
public function getMarkAsRead()
{
return $this->markAsRead;
}
/**
* {@inheritdoc}
*/
public function import()
{
$request = $this->client->createRequest('POST', 'https://getpocket.com/v3/get',
[
'body' => json_encode([
'consumer_key' => $this->consumerKey,
'access_token' => $this->accessToken,
'detailType' => 'complete',
'state' => 'all',
'sort' => 'oldest',
]),
]
);
try {
$response = $this->client->send($request);
} catch (RequestException $e) {
$this->logger->error(sprintf('PocketImport: Failed to import: %s', $e->getMessage()), ['exception' => $e]);
return false;
}
$entries = $response->json();
$this->parseEntries($entries['list']);
return true;
}
/**
* {@inheritdoc}
*/
public function getSummary()
{
return [
'skipped' => $this->skippedEntries,
'imported' => $this->importedEntries,
];
}
/**
* Set the Guzzle client.
*
* @param Client $client
*/
public function setClient(Client $client)
{
$this->client = $client;
}
/**
* @see https://getpocket.com/developer/docs/v3/retrieve
*
* @param $entries
*/
private function parseEntries($entries)
{
$i = 1;
foreach ($entries as $pocketEntry) {
$url = isset($pocketEntry['resolved_url']) && $pocketEntry['resolved_url'] != '' ? $pocketEntry['resolved_url'] : $pocketEntry['given_url'];
$existingEntry = $this->em
->getRepository('WallabagCoreBundle:Entry')
->findByUrlAndUserId($url, $this->user->getId());
if (false !== $existingEntry) {
++$this->skippedEntries;
continue;
}
$entry = new Entry($this->user);
$entry = $this->fetchContent($entry, $url);
// jump to next entry in case of problem while getting content
if (false === $entry) {
++$this->skippedEntries;
continue;
}
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
if ($pocketEntry['status'] == 1 || $this->markAsRead) {
$entry->setArchived(true);
}
// 0 or 1 - 1 If the item is starred
if ($pocketEntry['favorite'] == 1) {
$entry->setStarred(true);
}
$title = 'Untitled';
if (isset($pocketEntry['resolved_title']) && $pocketEntry['resolved_title'] != '') {
$title = $pocketEntry['resolved_title'];
} elseif (isset($pocketEntry['given_title']) && $pocketEntry['given_title'] != '') {
$title = $pocketEntry['given_title'];
}
$entry->setTitle($title);
// 0, 1, or 2 - 1 if the item has images in it - 2 if the item is an image
if (isset($pocketEntry['has_image']) && $pocketEntry['has_image'] > 0 && isset($pocketEntry['images'][1])) {
$entry->setPreviewPicture($pocketEntry['images'][1]['src']);
}
if (isset($pocketEntry['tags']) && !empty($pocketEntry['tags'])) {
$this->contentProxy->assignTagsToEntry(
$entry,
array_keys($pocketEntry['tags'])
);
}
$this->em->persist($entry);
++$this->importedEntries;
// flush every 20 entries
if (($i % 20) === 0) {
$this->em->flush();
$this->em->clear($entry);
}
++$i;
}
$this->em->flush();
}
}
| 27.966165
| 152
| 0.517812
|
a4a4ef941af394f5e98a4b01832c72ba268d6724
| 108
|
sql
|
SQL
|
src/MariaDB/examples/Kap07/Mitarbeiter.sql
|
YodaCh96/sql
|
d7a4f3fe92e22a91191b23e884b652d3b32f01a3
|
[
"MIT"
] | null | null | null |
src/MariaDB/examples/Kap07/Mitarbeiter.sql
|
YodaCh96/sql
|
d7a4f3fe92e22a91191b23e884b652d3b32f01a3
|
[
"MIT"
] | null | null | null |
src/MariaDB/examples/Kap07/Mitarbeiter.sql
|
YodaCh96/sql
|
d7a4f3fe92e22a91191b23e884b652d3b32f01a3
|
[
"MIT"
] | null | null | null |
CREATE TABLE ma
(id INTEGER NOT NULL,
vname VARCHAR(100),
name VARCHAR(100),
adr TEXT);
| 18
| 25
| 0.601852
|
ddc787c96e609527f1cebf60098913dabe471e5c
| 2,179
|
java
|
Java
|
src/main/java/top/chenxin/mc/service/impl/CustomerServiceImpl.java
|
zhchenxin/mc
|
4a29d863dea2c8c8c8702a92be0f0bdd76a60d31
|
[
"MIT"
] | 3
|
2018-11-02T06:11:37.000Z
|
2021-11-07T20:23:49.000Z
|
src/main/java/top/chenxin/mc/service/impl/CustomerServiceImpl.java
|
zhchenxin/mc
|
4a29d863dea2c8c8c8702a92be0f0bdd76a60d31
|
[
"MIT"
] | null | null | null |
src/main/java/top/chenxin/mc/service/impl/CustomerServiceImpl.java
|
zhchenxin/mc
|
4a29d863dea2c8c8c8702a92be0f0bdd76a60d31
|
[
"MIT"
] | null | null | null |
package top.chenxin.mc.service.impl;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.chenxin.mc.core.ResourceCollection;
import top.chenxin.mc.entity.FailedMessage;
import top.chenxin.mc.resource.CustomerResource;
import top.chenxin.mc.resource.FailedMessageResource;
import top.chenxin.mc.service.CustomerService;
import top.chenxin.mc.dao.CustomerDao;
import top.chenxin.mc.dao.TopicDao;
import top.chenxin.mc.entity.Customer;
import java.util.ArrayList;
import java.util.List;
@Service
public class CustomerServiceImpl implements CustomerService {
@Autowired
private TopicDao topicDao;
@Autowired
private CustomerDao customerDao;
@Override
public void insert(Long topicId, String name, String api, Integer timeout, Integer attempts) {
Customer item = new Customer();
item.setTopicId(topicId);
item.setName(name);
item.setApi(api);
item.setAttempts(attempts);
item.setTimeout(timeout);
customerDao.insert(item);
}
@Override
public void update(Long id, String name, String api, Integer timeout, Integer attempts) {
Customer item = new Customer();
item.setId(id);
item.setName(name);
item.setApi(api);
item.setAttempts(attempts);
item.setTimeout(timeout);
customerDao.update(item);
}
@Override
public void delete(Long id) {
customerDao.delete(id);
}
@Override
public ResourceCollection<CustomerResource> search(List<Long> ids, Long topicId, Integer page, Integer limit) {
Page<Customer> customers = this.customerDao.search(topicId, ids, page, limit);
List<CustomerResource> resources = new ArrayList<>();
for (Customer customer : customers) {
resources.add(new CustomerResource(customer));
}
return new ResourceCollection<>(resources, customers);
}
@Override
public CustomerResource getById(Long id) {
Customer customer = this.customerDao.getById(id);
return new CustomerResource(customer);
}
}
| 30.263889
| 115
| 0.702157
|
6613784465fbe681eca8f0c3cf2705afe08e720c
| 308
|
py
|
Python
|
test.py
|
Adelved/synth-cube
|
4f7f8af5140edd3b5da61dfe391085e32d9fb034
|
[
"MIT"
] | null | null | null |
test.py
|
Adelved/synth-cube
|
4f7f8af5140edd3b5da61dfe391085e32d9fb034
|
[
"MIT"
] | null | null | null |
test.py
|
Adelved/synth-cube
|
4f7f8af5140edd3b5da61dfe391085e32d9fb034
|
[
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
import scipy as sp
import scipy.ndimage
from fault_utils import *
vol = Cube(128)
vol.fold_with_gaussian(10)
vol.single_normal_fault(dip=20,position=10,throw=5,orientation=40,strike_type="linear")
print(np.unique(vol.fault))
plt.imshow(vol.seis[0,:,:])
| 20.533333
| 87
| 0.779221
|
a498267b6962e3b7ec8515368851c7f4d0304a56
| 1,236
|
php
|
PHP
|
tests/ManuxiGoogleReviewsExtensionTest.php
|
RosskoDCA/google-reviews-bundle
|
d80865c9eb67433725e9158e01b891e1889ab101
|
[
"MIT"
] | 1
|
2022-01-11T20:24:46.000Z
|
2022-01-11T20:24:46.000Z
|
tests/ManuxiGoogleReviewsExtensionTest.php
|
RosskoDCA/google-reviews-bundle
|
d80865c9eb67433725e9158e01b891e1889ab101
|
[
"MIT"
] | null | null | null |
tests/ManuxiGoogleReviewsExtensionTest.php
|
RosskoDCA/google-reviews-bundle
|
d80865c9eb67433725e9158e01b891e1889ab101
|
[
"MIT"
] | 2
|
2022-01-11T20:14:37.000Z
|
2022-01-11T20:18:12.000Z
|
<?php
namespace Manuxi\GoogleReviewsBundle\Tests;
use Manuxi\GoogleReviewsBundle\DependencyInjection\ManuxiGoogleReviewsExtension;
use Manuxi\GoogleReviewsBundle\ManuxiGoogleReviews;
use Manuxi\GoogleReviewsBundle\Service\Cache;
use Manuxi\GoogleReviewsBundle\Service\CurlConnector;
use Manuxi\GoogleReviewsBundle\Twig\TwigGoogleReviews;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
class ManuxiGoogleReviewsExtensionTest extends AbstractExtensionTestCase
{
protected function getContainerExtensions(): array
{
return [
new ManuxiGoogleReviewsExtension(),
];
}
public function testServiceExists()
{
$this->load();
$this->assertContainerBuilderHasService('manuxi_google_reviews.google_reviews');
$this->assertContainerBuilderHasAlias(ManuxiGoogleReviews::class, 'manuxi_google_reviews.google_reviews');
$this->assertContainerBuilderHasService('manuxi_google_reviews.connector', CurlConnector::class);
$this->assertContainerBuilderHasService('manuxi_google_reviews.cache', Cache::class);
$this->assertContainerBuilderHasService('twig.extension.manuxi_google_reviews', TwigGoogleReviews::class);
}
}
| 38.625
| 114
| 0.788835
|
7554d89a39025db72c3f553eddbb5e765e4fce15
| 1,687
|
swift
|
Swift
|
BeerFinder/BeerFinder/LocationPermitter.swift
|
jeffreybergier/beerfinder
|
85a9adf7fef09804830adc6558245514dd41fa73
|
[
"MIT"
] | null | null | null |
BeerFinder/BeerFinder/LocationPermitter.swift
|
jeffreybergier/beerfinder
|
85a9adf7fef09804830adc6558245514dd41fa73
|
[
"MIT"
] | null | null | null |
BeerFinder/BeerFinder/LocationPermitter.swift
|
jeffreybergier/beerfinder
|
85a9adf7fef09804830adc6558245514dd41fa73
|
[
"MIT"
] | null | null | null |
//
// LocationPermitter.swift
// BeerFinder
//
// Created by Jeffrey Bergier on 4/17/17.
// Copyright © 2017 Jeffrey Bergier. All rights reserved.
//
import CoreLocation
internal protocol LocationPermittable: Resettable {
var permission: CLAuthorizationStatus { get }
func requestPermission(_ completionHandler: ((CLAuthorizationStatus) -> Void)?)
}
internal protocol HasLocationPermittable {
var locationPermitter: LocationPermittable { get set }
}
internal extension HasLocationPermittable {
internal mutating func configure(with permitter: LocationPermittable?) {
guard let permitter = permitter else { return }
self.locationPermitter = permitter
}
}
internal class LocationPermitter: NSObject, CLLocationManagerDelegate, LocationPermittable {
private var permissionHandler: ((CLAuthorizationStatus) -> Void)?
private let manager = CLLocationManager()
internal var permission: CLAuthorizationStatus {
return CLLocationManager.authorizationStatus()
}
internal override init() {
super.init()
self.manager.desiredAccuracy = kCLLocationAccuracyBest
self.manager.delegate = self
}
internal func reset() {
self.permissionHandler = nil
}
@objc internal func requestPermission(_ completionHandler: ((CLAuthorizationStatus) -> Void)?) {
self.manager.requestWhenInUseAuthorization()
self.permissionHandler = completionHandler
}
@objc internal func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
self.permissionHandler?(status)
self.reset()
}
}
| 30.125
| 125
| 0.716064
|
9d36511a2e3e1b758f74f889626e5e82e0c8e9c2
| 5,451
|
dart
|
Dart
|
lib/SdpTransform/Parser.dart
|
NicolaiLassen/mediasoup-client-flutter
|
419a9603ef8b36475c4a218cf12bb4cec40e6be3
|
[
"MIT"
] | null | null | null |
lib/SdpTransform/Parser.dart
|
NicolaiLassen/mediasoup-client-flutter
|
419a9603ef8b36475c4a218cf12bb4cec40e6be3
|
[
"MIT"
] | null | null | null |
lib/SdpTransform/Parser.dart
|
NicolaiLassen/mediasoup-client-flutter
|
419a9603ef8b36475c4a218cf12bb4cec40e6be3
|
[
"MIT"
] | null | null | null |
import 'dart:convert';
import 'Grammer.dart' show grammer;
dynamic tryToParseInt(String testNumber) {
if (testNumber is String && testNumber.isNotEmpty) {
return int.tryParse(testNumber) ?? testNumber;
}
return null;
}
void attachProperties(Iterable<RegExpMatch> matchs,
Map<String, dynamic> location, names, String rawName) {
if ((rawName != null && rawName.isNotEmpty) &&
(names == null || names.isEmpty)) {
matchs.forEach((match) {
location[rawName] =
tryToParseInt(match.groupCount == 0 ? match.input : match.group(1));
});
} else {
matchs.forEach((match) {
for (int i = 0; i < match.groupCount; i++) {
location[names[i].toString()] = tryToParseInt(match.group(i + 1));
}
});
}
}
void parseReg(
Map<String, dynamic> obj, Map<String, dynamic> location, String content) {
final bool needsBlank = obj['name'] != null && obj['names'] != null;
if (obj['push'] != null && location[obj['push']] == null) {
location[obj['push']] = [];
} else if (needsBlank && location[obj['name']] == null) {
location[obj['name']] = <String, dynamic>{};
}
var keyLocation;
if (obj['push'] != null) {
keyLocation = <String, dynamic>{};
} else {
if (needsBlank) {
keyLocation = location[obj['name']];
} else {
keyLocation = location;
}
}
if (obj['reg'] is RegExp) {
attachProperties(
obj['reg'].allMatches(content), keyLocation, obj['names'], obj['name']);
} else {
attachProperties(RegExp(obj['reg']).allMatches(content), keyLocation,
obj['names'], obj['name']);
}
if (obj['push'] != null) {
location[obj['push']].add(keyLocation);
}
}
Map<String, dynamic> parse(String sdp) {
Map<String, dynamic> session = <String, dynamic>{};
var medias = [];
var location =
session; // points at where properties go under (one of the above)
LineSplitter().convert(sdp).forEach((line) {
if (line != '') {
var type = line[0];
var content = line.substring(2);
if (type == 'm') {
Map<String, dynamic> media = <String, dynamic>{};
media['rtp'] = [];
media['fmtp'] = [];
location = media; // point at latest media line
medias.add(media);
}
if (grammer[type] != null) {
for (int j = 0; j < grammer[type].length; j++) {
var obj = grammer[type][j];
if (obj['reg'] == null) {
if (obj['name'] != null) {
location[obj['name']] = content;
} else {
print('SdpTransform: trying to add null key');
}
continue;
}
if (obj['reg'] is RegExp) {
if ((obj['reg'] as RegExp).hasMatch(content)) {
parseReg(obj, location, content);
return;
}
} else if (RegExp(obj['reg']).hasMatch(content)) {
parseReg(obj, location, content);
return;
}
}
if (location['invalid'] == null) {
location['invalid'] = [];
}
Map<String, dynamic> tmp = <String, dynamic>{};
tmp['value'] = content;
location['invalid'].add(tmp);
} else {
print('SdpTransform: Error: unknown grammer type $type');
}
}
});
session['media'] = medias; // link it up
return session;
}
Map<dynamic, dynamic> parseParams(String str) {
Map<dynamic, dynamic> params = <dynamic, dynamic>{};
str.split(RegExp(r';').pattern).forEach((line) {
// only split at the first '=' as there may be an '=' in the value as well
int index = line.indexOf('=');
String key;
String value = '';
if (index == -1) {
key = line;
} else {
key = line.substring(0, index).trim();
value = line.substring(index + 1, line.length).trim();
}
params[key] = tryToParseInt(value);
});
return params;
}
List<String> parsePayloads(str) => str.split(' ');
List<String> parseRemoteCandidates(String str) {
var candidates = [];
List<String> parts = [];
str.split(' ').forEach((dynamic v) {
dynamic value = tryToParseInt(v);
if (value != null) {
parts.add(value);
}
});
for (int i = 0; i < parts.length; i += 3) {
candidates.add({
'component': parts[i],
'ip': parts[i + 1],
'port': parts[i + 2],
});
}
return candidates;
}
List<Map<String, dynamic>> parseImageAttributes(String str) {
List<Map<String, dynamic>> attributes = [];
str.split(' ').forEach((item) {
Map<String, dynamic> params = <String, dynamic>{};
item.substring(1, item.length - 1).split(',').forEach((attr) {
List<String> kv = attr.split(RegExp(r'=').pattern);
assert(kv[0] != null);
params[kv[0]] = tryToParseInt(kv[1]);
});
attributes.add(params);
});
return attributes;
}
List<dynamic> parseSimulcastStreamList(String str) {
List<dynamic> attributes = [];
str.split(';').forEach((stream) {
List scids = [];
stream.split(',').forEach((format) {
var scid;
bool paused = false;
if (format[0] != '~') {
scid = tryToParseInt(format);
} else {
scid = tryToParseInt(format.substring(1, format.length));
paused = true;
}
Map<String, dynamic> data = <String, dynamic>{};
data['scid'] = scid;
data['paused'] = paused;
scids.add(data);
});
attributes.add(scids);
});
return attributes;
}
| 26.852217
| 80
| 0.554944
|
c1597a4a47bb52be286af13e2bcba501d753aa43
| 1,953
|
ps1
|
PowerShell
|
PowerShell.ps1
|
drmohundro/PowerShellEnv
|
5c42b56bd713b909e6a9e200b0121f71904a9215
|
[
"MIT"
] | 4
|
2015-10-16T20:08:26.000Z
|
2017-06-20T20:08:34.000Z
|
PowerShell.ps1
|
drmohundro/PowerShellEnv
|
5c42b56bd713b909e6a9e200b0121f71904a9215
|
[
"MIT"
] | null | null | null |
PowerShell.ps1
|
drmohundro/PowerShellEnv
|
5c42b56bd713b909e6a9e200b0121f71904a9215
|
[
"MIT"
] | 1
|
2017-01-11T15:10:53.000Z
|
2017-01-11T15:10:53.000Z
|
Push-Location $ProfileDir
Import-Module posh-git
Import-Module Terminal-Icons
function Write-VcsPrompt {
$git = Get-GitStatus -WarningAction SilentlyContinue
if ($null -ne $git) {
$text = " $($git.Branch)"
if ($git.HasWorking) {
$text = $text + " +"
}
if ($git.HasUntracked) {
$text = $text + " !"
}
New-PromptText "$text " -BackgroundColor Yellow -ForegroundColor Black
}
}
$global:prompt = @(
{ "`n" }
{ " $(Get-ShortenedPath -SingleCharacterSegment) " }
{ "`t" } # right align
{ Write-VcsPrompt }
{ " $(Get-Date -f "T") " }
{ "`n" }
{ New-PromptText $([char]0x00BB) -BackgroundColor Black -ForegroundColor Cyan }
)
Set-PowerLinePrompt -Colors "#00DDFF", "#0066FF" -RestoreVirtualTerminal:$false -SetCurrentDirectory -PowerLineFont -Title {
-join @(if (Test-Elevation) { "Administrator: " }
Get-ShortenedPath -SingleCharacterSegment)
}
. ./lib/utils.ps1
. ./lib/aliases.ps1
if ($IsWindows) {
. ./lib/windows.ps1
}
elseif ($IsMacOS) {
. ./lib/mac.ps1
}
Invoke-Expression (& {
$hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
(zoxide init --hook $hook powershell --cmd j) -join "`n"
})
# Bring in env-specific functionality (i.e. work-specific dev stuff, etc.)
If (Test-Path ./EnvSpecificProfile.ps1) { . ./EnvSpecificProfile.ps1 }
Update-TypeData ./TypeData/System.Type.ps1xml
# Update-FormatData -PrependPath ./Formats.ps1xml
Pop-Location
if ($null -ne (Get-Module PSReadLine -ListAvailable)) {
Import-Module PSReadLine
Set-PSReadlineOption -EditMode Emacs
Set-PSReadlineOption -BellStyle None
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineOption -PredictionSource History
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
}
| 27.507042
| 124
| 0.661034
|
bdadced50228e655bd0e8000c5b3269a751c7d1d
| 627
|
lua
|
Lua
|
_userpanel/files/data/monitor/monitor_s.lua
|
emanuelbernardes/MTA-RACE
|
30095ccb9b9d66310272f5bbff76b3f1aba73c41
|
[
"Unlicense"
] | null | null | null |
_userpanel/files/data/monitor/monitor_s.lua
|
emanuelbernardes/MTA-RACE
|
30095ccb9b9d66310272f5bbff76b3f1aba73c41
|
[
"Unlicense"
] | null | null | null |
_userpanel/files/data/monitor/monitor_s.lua
|
emanuelbernardes/MTA-RACE
|
30095ccb9b9d66310272f5bbff76b3f1aba73c41
|
[
"Unlicense"
] | null | null | null |
monTimers = {}
function getInfosMonitor(player)
local rows = {}
local info = {}
_,rows = getPerformanceStats("Server info")
for i=1,5 do
table.insert(info,{rows[i][1]..":",rows[i][2]})
end
table.insert(info,{rows[1][3],rows[1][4]})
table.insert(info,{rows[2][3],rows[2][4]})
table.insert(info,{rows[8][3],rows[8][4]})
table.insert(info,{rows[1][5],rows[1][6]})
callClientFunction(player,"monitorRefresh",info)
monTimers[player] = setTimer(getInfosMonitor,1000,1,player)
end
function destroyTimeMonitor(player)
if isTimer(monTimers[player]) then
killTimer(monTimers[player])
monTimers[player] = nil
end
end
| 29.857143
| 60
| 0.698565
|
43b291c7473a42df5a01dcb62dc085f13d21df69
| 1,625
|
ts
|
TypeScript
|
packages/arco-lib/src/generated/types/Collapse.ts
|
webzard-io/sunmao-ui
|
6e5a1e19cba3e5f69951c85229eee23d0a8e11f8
|
[
"MIT"
] | 7
|
2021-12-01T02:20:07.000Z
|
2022-02-21T07:00:16.000Z
|
packages/arco-lib/src/generated/types/Collapse.ts
|
webzard-io/sunmao-ui
|
6e5a1e19cba3e5f69951c85229eee23d0a8e11f8
|
[
"MIT"
] | 247
|
2021-11-21T07:46:44.000Z
|
2022-03-31T08:02:13.000Z
|
packages/arco-lib/src/generated/types/Collapse.ts
|
webzard-io/sunmao-ui
|
6e5a1e19cba3e5f69951c85229eee23d0a8e11f8
|
[
"MIT"
] | 2
|
2021-11-23T08:47:46.000Z
|
2021-12-29T01:49:02.000Z
|
import { Type } from '@sinclair/typebox';
import { Category } from '../../constants/category';
import { StringUnion } from '../../sunmao-helper';
export const CollapseItemPropsSpec = {
key: Type.String({
title: 'Key',
category: Category.Basic,
weight: 2,
}),
header: Type.String({
title: 'Header',
category: Category.Basic,
weight: 1,
}),
disabled: Type.Boolean({
title: 'Disabled',
category: Category.Basic,
}),
showExpandIcon: Type.Boolean({
title: 'Show Expand Icon',
category: Category.Basic,
}),
destroyOnHide: Type.Optional(
Type.Boolean({
title: 'Destroy On Hide',
})
),
};
export const CollapsePropsSpec = {
defaultActiveKey: Type.Array(Type.String(), {
title: 'Default Active Key',
category: Category.Basic,
}),
accordion: Type.Boolean({
title: 'Accordion',
category: Category.Style,
}),
expandIconPosition: StringUnion(['left', 'right'], {
title: 'Expand Icon Position',
category: Category.Layout,
}),
bordered: Type.Boolean({
title: 'Bordered',
category: Category.Style,
}),
options: Type.Array(Type.Object(CollapseItemPropsSpec), {
title: 'Options',
category: Category.Basic,
widgetOptions: {
displayedKeys: ['header'],
},
}),
updateWhenDefaultValueChanges: Type.Boolean({
title: 'Update When Default Value Changes',
category: Category.Basic,
}),
lazyLoad: Type.Boolean({
title: 'Lazy Load',
description: 'If true, invisible panels will not be rendered on mount',
}),
destroyOnHide: Type.Boolean({
title: 'Destroy On Hide',
}),
};
| 24.253731
| 75
| 0.638769
|